:root {
    --color-accent: #8cceef;
    --color-accent-soft: #e3f4fd;
    --color-bg: #f5f7fa;
    --color-white: #ffffff;
    --color-black: #2f333d;
    --color-gray: #7a818f;
    --color-border: #dde2ec;
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}
.app-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-content {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-black);
}

/* CONTAINERS */

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 52px;
    width: auto;
    display: block;
}

.main-nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

.nav-link {
    font-size: 14px;
    text-decoration: none;
    color: var(--color-gray);
    padding: 6px 10px;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
}

.nav-link:hover {
    color: var(--color-black);
    background: rgba(140, 206, 239, 0.12);
}

.nav-link.active {
    color: var(--color-black);
    background: var(--color-accent-soft);
}

/* HERO */

.hero {
    padding: 40px 0 30px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.3fr);
    gap: 30px;
    align-items: center;
}

.hero h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 15px;
    color: var(--color-gray);
    max-width: 640px;
}

.hero-buttons {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 10px;
    font-size: 13px;
    color: var(--color-gray);
}

.hero-card {
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
    border-radius: 14px;
    padding: 20px 22px;
}

.hero-card h2 {
    margin-top: 0;
    font-size: 18px;
}

.hero-card ul {
    padding-left: 18px;
    margin: 8px 0 0;
    color: var(--color-gray);
    font-size: 14px;
}

/* BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-black);
    border-color: var(--color-accent);
    box-shadow: 0 6px 18px rgba(140, 206, 239, 0.5);
}

.btn-primary:hover {
    background: #6fbde7;
    border-color: #6fbde7;
}

.btn-outline {
    background: transparent;
    color: var(--color-black);
    border-color: var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-accent-soft);
}

/* SECTIONS */

.section {
    padding: 40px 0;
}

.section-alt {
    background: rgba(255, 255, 255, 0.8);
}

.section-title {
    font-size: 22px;
    margin-bottom: 22px;
    text-align: center;
}

.section-intro {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 24px;
    color: var(--color-gray);
}

/* CARDS GRID */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.card {
    background: var(--color-white);
    border-radius: 14px;
    padding: 8px 20px;
    box-shadow: var(--shadow-soft);
}

.card h3 {
    margin-top: 0;
    font-size: 18px;
    margin-bottom: 8px;
}

.card p {
    font-size: 14px;
    color: var(--color-gray);
}

.cards-payment {
    height: 100px;
    width: auto;
}

/* PRICE LIST */

.price-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 18px;
    font-size: 14px;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed var(--color-border);
}

.price-list span {
    color: var(--color-gray);
}

.price-list strong {
    font-weight: 600;
}

/* COMPARE TABLE */

.table-wrapper {
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--color-white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.compare-table th,
.compare-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.compare-table thead {
    background: var(--color-accent-soft);
}

.compare-table th {
    font-weight: 600;
}

.compare-table tr:last-child td {
    border-bottom: none;
}

.check {
    text-align: center;
    color: var(--color-accent);
    font-weight: 700;
}

.table-note {
    margin-top: 10px;
    font-size: 13px;
    color: var(--color-gray);
}

/* AGREEMENT */

.agreement-box {
    background: var(--color-white);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    padding: 16px;
    max-height: 75vh;
    overflow: auto;
}

.agreement-text {
    margin: 0;
    font-family: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
    white-space: pre-wrap;
}

/* BILLING PAGE */

.billing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    align-items: flex-start;
}

.billing-card h2 {
    margin-top: 0;
    font-size: 18px;
}

.billing-subtitle {
    font-size: 14px;
    color: var(--color-gray);
}

.billing-options {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.billing-option-btn {
    width: 100%;
    text-align: left;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    padding: 10px 12px;
    font-size: 14px;
    background: var(--color-white);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.billing-option-btn:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-soft);
}

.billing-option-btn.active {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-soft);
    background: var(--color-accent-soft);
}

.billing-summary {
    min-height: 100%;
}

.summary-line {
    font-size: 14px;
    margin: 4px 0;
}

.summary-price span {
    font-weight: 600;
}

.pay-buttons {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pay-note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--color-gray);
}

/* FOOTER */

.site-footer {
    margin-top: 30px;
    background: #ffffff;
    border-top: 1px solid var(--color-border);
    padding: 14px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--color-gray);
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-center {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-right {
    text-align: right;
}

.hidden {
    display: none;
}


/* ---------- БУРГЕР-КНОПКА ---------- */

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

/* Три полоски через box-shadow */
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-black);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
    position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after  { top:  6px; }

/* Анимация в крестик когда open */
.nav-toggle.open .nav-toggle-icon {
    background: transparent;
}
.nav-toggle.open .nav-toggle-icon::before {
    transform: rotate(45deg) translate(4px, 4px);
}
.nav-toggle.open .nav-toggle-icon::after {
    transform: rotate(-45deg) translate(4px, -4px);
}
.video-wrapper {
    min-width: 0;
    width: 100%;
}

.video-frame {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

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

/* Десктоп: видео слева, презентация справа */
.video-promo-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.presentation-card {
    min-width: 0;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #fff;
    padding: 24px;
    max-width: 560px;
    width: 90%;
    border-radius: 12px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}
/* ---------- ШИРОКИЕ ПЛАНШЕТЫ (до 1024px) ---------- */

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

    .hero h1 {
        font-size: 24px;
    }

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

    .video-promo-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 24px;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

/* ---------- ПЛАНШЕТЫ (до 768px) ---------- */

@media (max-width: 768px) {

    /* Шапка */
    .header-inner {
        flex-wrap: wrap;
        gap: 0;
        padding: 10px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 10px 0 14px;
        border-top: 1px solid var(--color-border);
        margin-top: 10px;
    }

    .main-nav.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 9px 12px;
        border-radius: 8px;
        font-size: 15px;
    }

    /* Hero */
    .hero {
        padding: 28px 0 20px;
    }

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

    .hero h1 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .video-promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Видео-обёртка: фиксируем соотношение сторон через aspect-ratio */
    .video-wrapper {
        width: 100%;
    }

    .video-frame {
        position: relative;
        width: 100%;
        padding-bottom: 56.25%; /* 16:9 */
        height: 0;
        overflow: hidden;
        border-radius: 10px;
    }

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

    .presentation-card {
        padding: 20px;
    }

    /* Секции */
    .section {
        padding: 28px 0;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    /* Карточки */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Модалка */
    .modal-content {
        padding: 20px;
        max-width: 95%;
    }

    .modal-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .modal-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Футер */
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .footer-right {
        text-align: left;
    }
}

/* ---------- МОБИЛЬНЫЕ (до 480px) ---------- */

@media (max-width: 480px) {

    .container {
        padding: 0 14px;
    }

    /* Шапка */
    .logo-img {
        height: 42px;
    }

    /* Hero */
    .hero {
        padding: 20px 0 16px;
    }

    .hero h1 {
        font-size: 20px;
        line-height: 1.35;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .hero-card {
        padding: 16px;
    }

    .hero-card h2 {
        font-size: 16px;
    }

    .hero-card ul {
        font-size: 13px;
    }

    /* Кнопки */
    .btn {
        font-size: 13px;
        padding: 10px 14px;
    }

    /* Секции */
    .section {
        padding: 20px 0;
    }

    .section-title {
        font-size: 18px;
    }

    /* Карточки */
    .card {
        padding: 14px 16px;
    }

    .card h3 {
        font-size: 16px;
    }

    .card p {
        font-size: 13px;
    }

    /* Таблица — горизонтальный скролл, не сжимается */
    .table-wrapper {
        -webkit-overflow-scrolling: touch;
    }

    .compare-table {
        min-width: 480px;
        font-size: 12px;
    }

    .compare-table th,
    .compare-table td {
        padding: 7px 8px;
    }

    /* Цены */
    .price-list {
        font-size: 13px;
    }

    /* Футер */
    .footer-inner {
        gap: 10px;
    }

    .footer-logo {
        height: 32px;
    }

    /* Модалка */
    .modal-content {
        padding: 16px;
        font-size: 13px;
    }

    .modal-content h3 {
        font-size: 16px;
    }

    .modal-content ul {
        padding-left: 16px;
    }
}


/* HERO — центрированный вариант */
.hero-centered {
    text-align: center;
    padding: 52px 0 0;
}

.hero-centered h1 {
    font-size: 32px;
    font-weight: 700;
    max-width: 780px;
    margin: 0 auto 16px;
    line-height: 1.3;
}

.hero-centered .hero-subtitle {
    font-size: 16px;
    max-width: 680px;
    margin: 0 auto;
    color: var(--color-gray);
}

.hero-centered .hero-buttons {
    justify-content: center;
    margin-top: 28px;
}

.hero-centered .hero-note {
    text-align: center;
    margin-top: 12px;
}

/* Большая кнопка установки */
.btn-hero {
    font-size: 19px;
    padding: 14px 36px;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(140, 206, 239, 0.55);
}

/* ПРАВАЯ КОЛОНКА в видео-секции */
.promo-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    height: 100%;
}

.promo-sidebar .hero-card h2 {
    margin-top: 0;
    font-size: 17px;
}

.promo-sidebar .hero-card ul {
    margin: 8px 0 0;
    padding-left: 18px;
    color: var(--color-gray);
    font-size: 14px;
    line-height: 1.7;
}

.promo-sidebar .presentation-card p {
    margin-bottom: 16px;
}
.promo-sidebar .card {
    flex: 1; /* обе карточки делят высоту поровну */
}

/* Адаптив — мобильные */
@media (max-width: 768px) {
    .hero-centered {
        padding: 32px 0 24px;
    }

    .hero-centered h1 {
        font-size: 22px;
    }

    .hero-centered .hero-subtitle {
        font-size: 14px;
    }

    .btn-hero {
        font-size: 15px;
        padding: 12px 24px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-centered h1 {
        font-size: 20px;
    }

    .btn-hero {
        font-size: 14px;
        padding: 12px 20px;
    }
}

.mobile-install-note {
    max-width: 520px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    color: #4b5563;
    text-align: center;
}
