/* ==========================================================================
   ЛИПОВЫЙ МЁД (LIPOVY MED) - RED & BLACK SWISS MINIMALISM STYLESHEET
   Aggressive Engineering Red & Solid Matte Black Aesthetics
   ========================================================================== */

:root {
    --bg: #0A0A0A;
    --surface: #141414;
    --surface-border: #242424;
    --surface-hover: #1E1E1E;
    
    --accent: #E63946;
    --accent-bright: #FF1A40;
    --accent-light: #FF4D6D;
    
    --text: #F8FAFC;
    --text-muted: #A1A1AA;
    --text-dim: #71717A;
    
    --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius: 6px;
    --transition: all 0.2s ease;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--text);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.mono {
    font-family: var(--font-mono);
}

.accent-text {
    color: var(--accent);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--surface-border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.logo-img {
    height: 32px;
    width: auto;
}

.brand-title {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.brand-subtitle {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
}

.btn-primary:hover {
    background: #FFFFFF;
    opacity: 0.9;
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--surface-border);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: #333333;
}

.btn-accent {
    background: var(--accent);
    color: #FFFFFF;
    font-weight: 600;
}

.btn-accent:hover {
    background: var(--accent-bright);
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    padding: 160px 0 90px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.tag-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    background: rgba(230, 57, 70, 0.12);
    border: 1px solid rgba(230, 57, 70, 0.25);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--surface-border);
}

.stat-item span {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
}

.stat-item label {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.hero-actions {
    display: flex;
    gap: 12px;
}

.hero-photo-box {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--surface-border);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    gap: 24px;
    min-height: 360px;
}

.hero-photo-box img {
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* ==========================================================================
   SECTION & HANGAR
   ========================================================================== */

section {
    padding: 90px 0;
    border-top: 1px solid var(--surface-border);
    background: var(--bg);
}

#sponsors {
    background: var(--bg) !important;
}

#sponsors .section-head h2,
#sponsors .section-head p {
    color: var(--text);
}

#sponsors .section-head p {
    color: var(--text-muted);
}

.section-head {
    margin-bottom: 48px;
}

.section-head h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.section-head p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Dual Robots Grid Layout */
.robots-dual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    align-items: stretch;
}

@media (max-width: 868px) {
    .robots-dual-grid {
        grid-template-columns: 1fr;
    }
}

.robot-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.robot-card:hover {
    border-color: #333333;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.robot-photo-frame {
    position: relative;
    width: 100%;
    height: 320px;
    background: #0E0E0E;
    overflow: hidden;
    border-bottom: 1px solid var(--surface-border);
}

.robot-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.robot-card:hover .robot-photo-frame img {
    transform: scale(1.03);
}

.robot-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text);
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--surface-border);
    padding: 4px 10px;
    border-radius: 4px;
}

.robot-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.robot-card-body h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.robot-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.robot-card-body h4 {
    font-size: 0.9rem;
    margin-top: 16px;
    margin-bottom: 8px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

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

.specs-table td {
    padding: 12px 0;
    font-size: 0.9rem;
}

.specs-table td:first-child {
    color: var(--text-dim);
    width: 35%;
}

.specs-table td:last-child {
    color: var(--text);
    font-weight: 500;
}

.details-list {
    margin-top: 20px;
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.details-list li {
    margin-bottom: 8px;
}

/* ==========================================================================
   SPONSOR BENEFITS & CARDS
   ========================================================================== */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.benefit-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}

.benefit-card:hover {
    border-color: var(--accent);
}

.benefit-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.benefit-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.sponsor-cta-box {
    margin-top: 24px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-left: 3px solid var(--accent);
    padding: 24px 28px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.sponsor-cta-box h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.sponsor-cta-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   CONTACT & COLLABORATION
   ========================================================================== */

.contact-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    padding: 40px;
}

.contact-head {
    margin-bottom: 32px;
}

.contact-head h2 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.contact-head p {
    color: var(--text-muted);
    font-size: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

@media (max-width: 1040px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-channel-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    padding: 18px;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    min-width: 0;
}

.contact-channel-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.channel-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: rgba(230, 57, 70, 0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.channel-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 0;
}

.channel-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.contact-actions {
    display: flex;
    justify-content: flex-start;
    padding-top: 24px;
    border-top: 1px solid var(--surface-border);
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--surface-border);
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ==========================================================================
   VIDEO SHOWCASE
   ========================================================================== */

.video-filter-select-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    padding: 12px 18px;
    border-radius: var(--radius);
    max-width: 420px;
}

.select-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    white-space: nowrap;
    font-family: var(--font-mono);
}

.video-select-filter {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
    width: 100%;
}

.video-select-filter:focus, .video-select-filter:hover {
    border-color: var(--accent);
}

.video-category-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    background: rgba(230, 57, 70, 0.12);
    border: 1px solid rgba(230, 57, 70, 0.25);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 1040px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
}

.video-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.video-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background: #000;
}

.video-wrapper iframe, .video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-info {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0;
    line-height: 1.35;
}

.video-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.video-cta {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    padding: 20px 24px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.video-cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==========================================================================
   NEWS & TELEGRAM FEED
   ========================================================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.news-card {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    transition: var(--transition);
    border-radius: var(--radius);
}

.news-card:hover {
    transform: translateY(-2px);
}

/* Telegram widget fills card naturally */
.news-card iframe,
.news-card > script + * {
    width: 100% !important;
    max-width: 100% !important;
    display: block;
}

.telegram-preview-card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tg-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.tg-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg);
    padding: 4px;
    border: 1px solid var(--surface-border);
}

.tg-author {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.tg-date {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.tg-card-body {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
}

.tg-card-link {
    font-size: 0.85rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.tg-card-link:hover {
    color: var(--accent-bright);
    text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE & MOBILE OPTIMIZATION
   ========================================================================== */

@media (max-width: 868px) {
    .container {
        padding: 0 20px;
    }

    .navbar {
        padding: 14px 0;
    }

    .nav-links {
        display: none;
    }

    .hero-section {
        padding: 110px 0 60px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .robots-dual-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    section {
        padding: 50px 0;
    }

    .brand-title {
        font-size: 0.95rem;
    }

    .brand-subtitle {
        font-size: 0.62rem;
    }

    .navbar .btn-accent {
        padding: 7px 12px;
        font-size: 0.78rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }

    .hero-stats {
        gap: 8px;
    }

    .stat-item span {
        font-size: 1.25rem;
    }

    .stat-item label {
        font-size: 0.68rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .sponsor-cta-box {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .sponsor-cta-box .btn {
        width: 100%;
    }

    .contact-card {
        padding: 24px 16px;
    }

    .contact-head h2 {
        font-size: 1.6rem;
    }

    .footer-row {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .logo-img {
        height: 26px;
    }

    .hero-photo-box {
        padding: 24px 16px;
    }

    .robot-photo-frame {
        height: 240px;
    }

    .robot-card-body {
        padding: 16px;
    }

    .robot-card-body h3 {
        font-size: 1.3rem;
    }

    .specs-table td {
        font-size: 0.82rem;
        padding: 8px 0;
    }

    .specs-table td:first-child {
        width: 42%;
    }

    .contact-channel-card {
        flex-wrap: wrap;
        padding: 14px;
    }

    .contact-channel-card .btn-sm {
        width: 100%;
        margin-top: 4px;
    }

    .section-head h2 {
        font-size: 1.5rem;
    }
}
