/* v6 — верхнее меню, полоса графика, горизонтальные возможности, пилюли продуктов */

:root {
    --v6-dark: #0f172a;
    --v6-main: #f1f5f9;
    --v6-card: #ffffff;
    --v6-text: #0f172a;
    --v6-muted: #64748b;
    --v6-accent: #f59e0b;
    --v6-accent-bg: #fffbeb;
    --v6-font: 'Outfit', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--v6-font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--v6-text);
    background: var(--v6-main);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ——— Skip link (a11y) ——— */
.v6-skip {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 1000;
    padding: 12px 20px;
    background: var(--v6-dark);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: top 0.2s;
}

.v6-skip:focus {
    top: 16px;
    outline: 2px solid var(--v6-accent);
    outline-offset: 2px;
}

/* ——— Header ——— */
.v6-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #e2e8f0;
    transition: box-shadow 0.2s;
}

.v6-header.is-scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.v6-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.v6-header__logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--v6-text);
    text-decoration: none;
}

.v6-header__logo:hover { color: var(--v6-accent); }

.v6-header__nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.v6-header__nav-link {
    padding: 10px 16px;
    color: var(--v6-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 10px;
    transition: color 0.2s, background 0.2s;
}

.v6-header__nav-link:hover {
    color: var(--v6-text);
    background: var(--v6-main);
}

.v6-header__drop { position: relative; }

.v6-header__drop-btn {
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--v6-muted);
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 16px;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.v6-header__drop-btn:hover {
    color: var(--v6-text);
    background: var(--v6-main);
}

.v6-header__chevron {
    flex-shrink: 0;
    opacity: 0.8;
    transition: transform 0.2s;
}

.v6-header__drop.is-open .v6-header__chevron {
    transform: rotate(180deg);
}

.v6-header__drop-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    min-width: 280px;
    padding: 10px;
    background: var(--v6-card);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    list-style: none;
    transition: opacity 0.2s, transform 0.2s;
}

.v6-header__drop-menu[hidden] { display: none; }

.v6-header__drop-section { padding: 2px 0; }

.v6-header__drop-section + .v6-header__drop-divider { margin-top: 6px; }

.v6-header__drop-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 6px 0;
}

.v6-header__drop-item {
    display: block;
    padding: 10px 14px;
    color: var(--v6-text);
    text-decoration: none;
    font-size: 0.9375rem;
    border-radius: 10px;
    transition: color 0.2s, background 0.2s;
}

.v6-header__drop-item:hover {
    background: var(--v6-main);
    color: var(--v6-accent);
}

.v6-header__drop-item--live {
    background: var(--v6-accent-bg);
    color: #b45309;
    font-weight: 600;
}

.v6-header__drop-item--live:hover {
    background: #fef3c7;
    color: #d97706;
}

.v6-header__drop-item--soon {
    color: var(--v6-muted);
}

.v6-header__drop-name { display: block; }

.v6-header__drop-desc {
    display: block;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--v6-muted);
    margin-top: 2px;
}

.v6-header__drop-item--live .v6-header__drop-desc { color: #b45309; opacity: 0.9; }

.v6-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.v6-header__link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--v6-muted);
    text-decoration: none;
}

.v6-header__link:hover { color: var(--v6-text); }

.v6-header__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: var(--v6-accent);
    border: none;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.v6-header__btn:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.v6-header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--v6-text);
}

.v6-header__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
}

/* ——— Main ——— */
.v6-main {
    max-width: 1200px;
    margin: 0 auto;
}

/* ——— Content ——— */
.v6-content {
    flex: 1;
    padding: 48px 40px 56px;
    overflow-x: hidden;
}

/* ——— Hero (текст + пример графика в одном блоке) ——— */
.v6-hero {
    background: linear-gradient(180deg, var(--v6-card) 0%, var(--v6-main) 100%);
    border-bottom: 1px solid #e2e8f0;
}

.v6-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 40px 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.v6-hero__content {
    min-width: 0;
}

.v6-hero__demo {
    padding: 24px;
    background: var(--v6-card);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    min-width: 0;
}

.v6-hero__badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--v6-accent);
    background: var(--v6-accent-bg);
    border-radius: 8px;
}

.v6-hero__title {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4.5vw, 2.875rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--v6-text);
}

.v6-hero__text {
    margin: 0 0 24px;
    font-size: 1.125rem;
    color: var(--v6-muted);
    line-height: 1.6;
}

.v6-hero__points {
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.v6-hero__points li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 0.9375rem;
    color: var(--v6-text);
}

.v6-hero__points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--v6-accent);
}

.v6-hero__points li:last-child { margin-bottom: 0; }

.v6-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.v6-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.v6-hero__btn--primary {
    color: #fff;
    background: var(--v6-accent);
    border: 2px solid var(--v6-accent);
}

.v6-hero__btn--primary:hover {
    background: #d97706;
    border-color: #d97706;
    transform: translateY(-1px);
}

.v6-hero__btn--secondary {
    color: var(--v6-text);
    background: transparent;
    border: 2px solid #e2e8f0;
}

.v6-hero__btn--secondary:hover {
    border-color: var(--v6-accent);
    color: var(--v6-accent);
}

.v6-hero__btn:focus-visible {
    outline: 2px solid var(--v6-accent);
    outline-offset: 2px;
}

/* ——— Пример графика (внутри hero) ——— */
.v6-strip__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.v6-strip__title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--v6-muted);
    margin: 0;
}

.v6-strip__link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--v6-accent);
    text-decoration: none;
}

.v6-strip__link:hover { color: #d97706; }

.v6-strip__link:focus-visible {
    outline: 2px solid var(--v6-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.v6-strip__grid {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    gap: 0;
    font-size: 0.75rem;
}

.v6-strip__cell {
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
}

.v6-strip__cell:nth-child(8n) { border-right: none; }

.v6-strip__cell--head {
    background: var(--v6-main);
    font-weight: 600;
    color: var(--v6-muted);
}

.v6-strip__cell--shift {
    background: var(--v6-accent-bg);
    color: #b45309;
    font-weight: 600;
}

.v6-strip__cell--night {
    background: #e0e7ff;
    color: #4338ca;
    font-weight: 600;
}

/* ——— Features row (horizontal) ——— */
.v6-features {
    margin-bottom: 48px;
    padding: 32px 28px 36px;
    background: var(--v6-card);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.v6-features__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--v6-text);
    margin: 0 0 6px;
}

.v6-features__subtitle {
    font-size: 0.9375rem;
    color: var(--v6-muted);
    margin: 0 0 24px;
}

.v6-features__row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.v6-features__row::-webkit-scrollbar { height: 6px; }
.v6-features__row::-webkit-scrollbar-track { background: #e2e8f0; border-radius: 3px; }
.v6-features__row::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.v6-feat {
    min-width: 220px;
    padding: 20px;
    background: var(--v6-card);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.v6-feat:hover {
    border-color: var(--v6-accent);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.v6-feat__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--v6-accent-bg);
    color: var(--v6-accent);
    border-radius: 10px;
    margin-bottom: 12px;
}

.v6-feat__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--v6-text);
    margin: 0 0 4px;
}

.v6-feat__text {
    font-size: 0.8125rem;
    color: var(--v6-muted);
    margin: 0;
    line-height: 1.45;
}

/* ——— Products (compact list in main) ——— */
.v6-products {
    margin-bottom: 48px;
    padding: 32px 28px 36px;
    background: var(--v6-card);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.v6-products__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--v6-text);
    margin: 0 0 8px;
}

.v6-products__intro {
    font-size: 0.9375rem;
    color: var(--v6-muted);
    margin: 0 0 20px;
    max-width: 40ch;
}

.v6-products__list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.v6-prod {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--v6-card);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: var(--v6-text);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.v6-prod:hover {
    border-color: var(--v6-accent);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.12);
}

.v6-prod--live {
    border-color: var(--v6-accent);
    background: var(--v6-accent-bg);
    color: #b45309;
}

.v6-prod__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--v6-accent);
}

.v6-prod--soon .v6-prod__dot {
    background: var(--v6-muted);
    opacity: 0.5;
}

/* ——— CTA ——— */
.v6-cta {
    padding: 36px 40px;
    background: var(--v6-dark);
    color: #f8fafc;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.v6-cta__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 6px;
}

.v6-cta__p {
    font-size: 0.9375rem;
    color: #94a3b8;
    margin: 0;
}

.v6-cta__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.v6-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--v6-dark);
    background: var(--v6-accent);
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.v6-cta__btn:hover {
    background: #fbbf24;
    transform: translateY(-1px);
}

.v6-cta__btn:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

.v6-cta__secondary {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.v6-cta__secondary:hover {
    color: #f8fafc;
}

.v6-cta__secondary:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 6px;
}

/* ——— Footer ——— */
.v6-footer {
    margin-top: 48px;
    padding: 32px 24px 28px;
    background: var(--v6-card);
    border-top: 1px solid #e2e8f0;
}

.v6-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}

.v6-footer__brand {
    max-width: 240px;
}

.v6-footer__logo {
    display: block;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--v6-text);
    text-decoration: none;
    margin-bottom: 6px;
}

.v6-footer__logo:hover { color: var(--v6-accent); }

.v6-footer__tagline {
    margin: 0;
    font-size: 0.875rem;
    color: var(--v6-muted);
    line-height: 1.4;
}

.v6-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.v6-footer__nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--v6-muted);
    text-decoration: none;
}

.v6-footer__nav a:hover { color: var(--v6-text); }

.v6-footer__copy {
    width: 100%;
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: var(--v6-muted);
}

/* ——— Focus (accessibility) ——— */
.v6-header__logo:focus-visible,
.v6-header__nav-link:focus-visible,
.v6-header__drop-btn:focus-visible,
.v6-header__link:focus-visible,
.v6-header__btn:focus-visible,
.v6-header__drop-item:focus-visible,
.v6-prod:focus-visible {
    outline: 2px solid var(--v6-accent);
    outline-offset: 2px;
    border-radius: 6px;
}

.v6-header__burger:focus-visible {
    outline: 2px solid var(--v6-accent);
    outline-offset: 2px;
    border-radius: 8px;
}

/* ——— Mobile ——— */
@media (max-width: 900px) {
    .v6-header__inner { flex-wrap: wrap; }
    .v6-header__burger { display: flex; }
    .v6-header__nav {
        display: none;
        width: 100%;
        order: 99;
        flex-direction: column;
        padding-top: 12px;
        border-top: 1px solid #e2e8f0;
        margin-top: 12px;
    }
    .v6-header__nav--open { display: flex; }
    .v6-header__drop-menu { left: 0; right: auto; min-width: 100%; }
    .v6-hero__inner {
        grid-template-columns: 1fr;
        padding: 40px 20px 36px;
        gap: 32px;
    }
    .v6-hero__demo { padding: 20px; order: 2; }
    .v6-hero__points li { font-size: 0.875rem; }
    .v6-hero__actions { flex-direction: column; }
    .v6-hero__btn { width: 100%; justify-content: center; }
    .v6-content { padding: 28px 20px 40px; }
    .v6-strip__grid {
        grid-template-columns: 70px repeat(7, 1fr);
        font-size: 0.75rem;
    }
    .v6-features__row { flex-direction: column; }
    .v6-feat { min-width: 0; }
    .v6-features { padding: 24px 20px 28px; }
    .v6-products { padding: 24px 20px 28px; }
    .v6-cta { padding: 28px 20px; flex-direction: column; align-items: stretch; text-align: center; }
    .v6-cta__actions { justify-content: center; }
    .v6-footer { margin-top: 32px; padding: 24px 20px; }
    .v6-footer__inner { flex-direction: column; align-items: flex-start; }
    .v6-footer__brand { max-width: none; }
    .v6-footer__copy { padding-top: 16px; }
}
