/* ============================================
   РЭБ "Планка" — Landing Page Styles
   Joomla 6 Template
   ============================================ */

:root {
    --reb-bg: #050505;
    --reb-bg-alt: #0d0d0d;
    --reb-card: #111111;
    --reb-border: #1c1c1c;
    --reb-text: #e8e8e8;
    --reb-muted: #777777;
    --reb-accent: #c41e3a;
    --reb-gold: #d4af37;
    --reb-white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.reb-landing {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--reb-bg);
    color: var(--reb-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- HERO --- */
.reb-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 50% 0%, #1a0808 0%, #050505 70%);
    overflow: hidden;
}

.reb-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='45' fill='none' stroke='%23c41e3a18' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='50' r='35' fill='none' stroke='%23c41e3a0d' stroke-width='0.3'/%3E%3C/svg%3E");
    background-size: 800px;
    opacity: 0.5;
    animation: reb-pulse 10s ease-in-out infinite;
}

@keyframes reb-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.03); }
}

.reb-hero-default {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
}

.reb-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--reb-accent);
    color: var(--reb-accent);
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    background: rgba(196,30,58,0.05);
}

.reb-hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.reb-hero h1 .reb-accent-text {
    color: var(--reb-accent);
    text-shadow: 0 0 50px rgba(196,30,58,0.35);
}

.reb-hero h1 .reb-gold {
    font-size: 0.6em;
    color: var(--reb-gold);
    letter-spacing: 0.1em;
}

.reb-hero p {
    font-size: 1.2rem;
    color: var(--reb-muted);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

.reb-hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.reb-btn-primary, .reb-btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.reb-btn-primary {
    background: var(--reb-accent);
    color: #fff;
    box-shadow: 0 0 40px rgba(196,30,58,0.25);
}

.reb-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(196,30,58,0.35);
}

.reb-btn-secondary {
    background: transparent;
    color: var(--reb-text);
    border: 1px solid var(--reb-border);
}

.reb-btn-secondary:hover {
    border-color: var(--reb-accent);
    color: var(--reb-accent);
}

.reb-hero-stats {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.reb-hero-stats > div {
    text-align: center;
}

.reb-hero-stats strong {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--reb-accent);
}

.reb-hero-stats span {
    font-size: 0.75rem;
    color: var(--reb-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* --- HERITAGE BAR --- */
.reb-heritage {
    background: linear-gradient(90deg, transparent, rgba(196,30,58,0.08), transparent);
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(196,30,58,0.15);
    border-bottom: 1px solid rgba(196,30,58,0.15);
}

.reb-heritage p {
    margin: 0;
    color: var(--reb-muted);
    font-size: 0.9rem;
    font-style: italic;
    max-width: 900px;
    margin: 0 auto;
}

/* --- SECTIONS --- */
.reb-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.reb-section.reb-dark {
    background: var(--reb-bg-alt);
    max-width: 100%;
    padding: 5rem 2rem;
}

.reb-section.reb-dark > * {
    max-width: 1200px;
    margin: 0 auto;
}

.reb-section h2 {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

/* --- GRID --- */
.reb-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* --- CARD --- */
.reb-card {
    background: var(--reb-card);
    border: 1px solid var(--reb-border);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.reb-card h3 {
    color: var(--reb-accent);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.5rem;
}

.reb-card.center {
    text-align: center;
}

/* --- LIST --- */
.reb-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reb-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--reb-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reb-list li:last-child {
    border-bottom: none;
}

.reb-list li span {
    color: var(--reb-accent);
    font-weight: 700;
    font-size: 1.2rem;
}

/* --- FREQUENCY CARDS --- */
.reb-freq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.reb-freq-card {
    background: var(--reb-card);
    border: 1px solid var(--reb-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.reb-freq-card:hover {
    transform: translateY(-4px);
    border-color: var(--reb-accent);
}

.reb-freq-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--reb-accent);
}

.reb-freq-card.wifi::before {
    background: var(--reb-gold);
}

.reb-freq-card .freq-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--reb-accent);
    margin-bottom: 0.25rem;
}

.reb-freq-card.wifi .freq-value {
    color: var(--reb-gold);
}

.reb-freq-card .freq-label {
    font-size: 0.8rem;
    color: var(--reb-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.reb-hint {
    display: inline-block;
    border: 1px dashed var(--reb-gold);
    color: var(--reb-gold);
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
}

/* --- CONTROL CARDS --- */
.reb-control-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.reb-control-card {
    background: var(--reb-card);
    border: 1px solid var(--reb-border);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    transition: all 0.3s;
}

.reb-control-card:hover {
    border-color: rgba(196,30,58,0.3);
}

.reb-control-card.wide {
    grid-column: span 2;
}

.reb-control-card .icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    opacity: 0.5;
}

.reb-control-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--reb-accent);
    padding-right: 3rem;
}

.reb-control-card p {
    color: var(--reb-muted);
    font-size: 0.9rem;
}

/* --- FEATURE LIST --- */
.reb-feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.reb-feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.reb-feature-icon {
    min-width: 40px;
    height: 40px;
    background: rgba(196,30,58,0.1);
    border: 1px solid rgba(196,30,58,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.reb-feature-item h4 {
    margin: 0 0 0.25rem;
    font-weight: 700;
}

.reb-feature-item p {
    margin: 0;
    color: var(--reb-muted);
    font-size: 0.9rem;
}

/* --- TAGS --- */
.reb-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.reb-tags span {
    background: rgba(196,30,58,0.1);
    border: 1px solid rgba(196,30,58,0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.8rem;
}

/* --- SPECS TABLE --- */
.reb-specs-table {
    background: var(--reb-card);
    border: 1px solid var(--reb-border);
    border-radius: 1rem;
    overflow: hidden;
    margin-top: 2rem;
}

.reb-specs-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.reb-specs-table tr {
    border-bottom: 1px solid var(--reb-border);
}

.reb-specs-table tr:last-child {
    border-bottom: none;
}

.reb-specs-table td {
    padding: 1rem 1.5rem;
}

.reb-specs-table td:first-child {
    color: var(--reb-muted);
    width: 50%;
}

.reb-specs-table td:last-child {
    font-weight: 600;
}

/* --- ORDER FORM --- */
.reb-order-form {
    background: var(--reb-card);
    border: 1px solid var(--reb-border);
    border-radius: 1rem;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.reb-order-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--reb-accent), var(--reb-gold));
}

.reb-order-form h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.reb-form-group {
    margin-bottom: 1.25rem;
}

.reb-form-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--reb-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
}

.reb-form-group input,
.reb-form-group select,
.reb-form-group textarea {
    width: 100%;
    background: var(--reb-bg);
    border: 1px solid var(--reb-border);
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    color: var(--reb-text);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
}

.reb-form-group input:focus,
.reb-form-group select:focus,
.reb-form-group textarea:focus {
    border-color: var(--reb-accent);
}

.reb-form-group input::placeholder,
.reb-form-group textarea::placeholder {
    color: #444;
}

.reb-submit-btn {
    width: 100%;
    background: var(--reb-accent);
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s;
    box-shadow: 0 4px 25px rgba(196,30,58,0.25);
}

.reb-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(196,30,58,0.35);
}

/* --- FOOTER --- */
.reb-footer {
    background: var(--reb-bg);
    border-top: 1px solid var(--reb-border);
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.reb-footer-default {
    max-width: 800px;
    margin: 0 auto;
}

.reb-footer h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: var(--reb-accent);
}

.reb-footer-contacts {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.reb-footer-contacts > div {
    text-align: center;
}

.reb-label {
    display: block;
    color: var(--reb-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
}

.reb-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.reb-footer-copy {
    border-top: 1px solid var(--reb-border);
    padding-top: 1.5rem;
}

.reb-footer-copy p {
    color: var(--reb-muted);
    font-size: 0.8rem;
    margin: 0;
}

.reb-slogan {
    font-style: italic;
    margin-top: 0.5rem !important;
}

/* --- SCROLL BEHAVIOR --- */
html {
    scroll-behavior: smooth;
}

/* --- SELECTION --- */
::selection {
    background: rgba(196,30,58,0.3);
    color: var(--reb-white);
}

/* --- ANIMATIONS --- */
.reb-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reb-visible {
    opacity: 1;
    transform: translateY(0);
}
