:root {
    --bg: #0b0b10;
    --panel: #12121a;
    --panel-2: #151520;
    --text: #e9e9ee;
    --muted: #bfc6cc;
    --brand: #8FD3E6;
    --brand-2: #2F5D4C;
    --max: 1100px;
    --radius: 16px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #0b0b10 0%, #0e0e14 60%, #0b0b10 100%);
    letter-spacing: .1px
}

a {
    color: inherit;
    text-decoration: none
}

.container {
    max-width: var(--max);
    margin-inline: auto;
    padding: 0 20px
}

header.site {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: saturate(120%) blur(8px);
    background: linear-gradient(180deg, rgba(10, 10, 15, .85), rgba(10, 10, 15, .55));
    border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 14px 5px;
}

.brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-weight: 800
}

.brand svg {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 0 8px var(--brand));
}

.nav a.btn, .nav a.btn.ghost {
    white-space: nowrap
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .9rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: var(--panel);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}
.separator {
    width: 1px;
    height: 26px;
    background-color: rgba(255, 255, 255, .12);
    margin: 0 15px;
}
.btn.ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, .12);
}

.btn.primary {
    background: linear-gradient(180deg, var(--brand), var(--brand-2));
    color: #0b0b10;
    border: none
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05)
}

.btn:active {
    transform: translateY(0);
    filter: brightness(.95)
}

.btn.primary:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45)
}

.hero {
    padding: clamp(42px, 8vw, 96px) 0 56px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(400px 400px at 70% 20%,
    color-mix(in oklab, var(--brand) 22%, transparent), transparent 65%), radial-gradient(600px 600px at 10% 60%, rgba(138, 92, 246, .18), transparent 60%);
}

.hero .bg-ring {
    position: absolute;
    inset: -40%;
    background: radial-gradient(400px 400px at 70% 20%, color-mix(in oklab, var(--brand) 22%, transparent), transparent 65%),
    radial-gradient(600px 600px at 10% 60%, rgba(138, 92, 246, .18), transparent 60%)
}

.hero-grid {
    display: grid;
    grid-template-columns:1.15fr .85fr;
    gap: 28px;
    align-items: center
}

@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns:1fr;
        gap: 18px
    }
}

h1 {
    font-size: clamp(28px, 4.5vw, 56px);
    line-height: 1.08;
    margin: 0 0 8px
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .75rem;
    border-radius: 999px;
    background: color-mix(in oklab, var(--brand) 15%, transparent);
    color: var(--brand-2);
    border: 1px solid color-mix(in oklab, var(--brand) 35%, transparent);
    font-weight: 600;
    font-size: .85rem
}

.lede {
    font-size: clamp(16px, 2.1vw, 20px);
    color: var(--muted)
}

.cta {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    align-items: center
}

.note {
    font-size: .9rem;
    color: var(--muted)
}

.device {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 22px;
    background: linear-gradient(180deg, #1b1b26, #101018);
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden
}

.device .title {
    position: absolute;
    left: 18px;
    top: 16px;
    font-weight: 700;
    color: var(--muted)
}

.device .timebar {
    position: absolute;
    top: 22px;
    left: 14px;
    right: 14px;
    height: 10px;
}

.device .timebar img {
    border-radius: 10px;
}

.device .track {
    position: absolute;
    inset: 46px 14px 14px;
    border-radius: 14px;
    background: repeating-linear-gradient(-45deg, #0f0f15 0 12px, #121220 12px 24px);
    border: 1px dashed rgba(255, 255, 255, .06)
}

section {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, .06)
}

.section-title {
    font-size: clamp(22px, 3.3vw, 36px);
    margin: 0 0 10px
}

.section-lede {
    color: var(--muted);
}

.center {
    text-align: center
}

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

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns:1fr
    }
}

.card {
    background: var(--panel-2);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
    border-color: color-mix(in oklab, var(--brand) 40%, rgba(255, 255, 255, .06))
}

.icon {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: color-mix(in oklab, var(--brand) 20%, transparent);
    font-weight: 900
}

.muted {
    color: var(--muted)
}

.modules {
    display: grid;
    grid-template-columns:1.2fr .8fr;
    gap: 24px
}

@media (max-width: 980px) {
    .modules {
        grid-template-columns:1fr
    }

    .modules > aside.card {
        margin-top: 18px
    }
}

.list {
    display: grid;
    gap: 10px
}

.row {
    display: flex;
    gap: .9rem;
    align-items: baseline;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    background: linear-gradient(180deg, #161621, #13131b)
}

.row b {
    font-weight: 700
}

.tag {
    display: inline-flex;
    padding: .2rem .5rem;
    border-radius: 8px;
    background: #0f0f16;
    border: 1px solid rgba(255, 255, 255, .08);
    color: var(--muted);
    font-size: .8rem
}

.main {
    margin-top: 6px
}

.sublist {
    margin-left: 2rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(255, 255, 255, .1);
    display: grid;
    gap: 8px
}

.pricing {
    display: grid;
    grid-template-columns:1fr;
    gap: 16px
}

.price {
    display: flex;
    align-items: baseline;
    gap: .6rem
}

.price .num {
    font-size: clamp(30px, 5vw, 54px);
    font-weight: 900;
    letter-spacing: .5px
}

details {
    border: 1px solid rgba(255, 255, 255, .08);
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--panel-2)
}

details + details {
    margin-top: 10px
}

summary {
    cursor: pointer;
    list-style: none;
    font-weight: 700
}

summary::-webkit-details-marker {
    display: none
}

footer {
    padding: 40px 0 80px;
    color: var(--muted)
}

footer .grid {
    display: grid;
    grid-template-columns:1fr auto;
    gap: 10px
}

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

/* modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px
}

.modal-overlay.is-visible {
    display: flex
}

.modal {
    background: var(--panel-2);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    width: min(560px, 96vw);
    box-shadow: var(--shadow);
    padding: 20px
}

.block-card {
    border: 0px;
    width: inherit;
}

.modal header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px
}

.modal h3 {
    margin: 0;
    font-size: 1.5rem
}

.modal p {
    margin: 0 0 10px;
    color: var(--muted)
}

.modal .features {
    margin: 10px 0 14px;
    padding-left: 1.2rem;
    color: var(--muted)
}

.modal .price {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    margin: 8px 0 0;
}

.modal .actions {
    display: flex;
    gap: .6rem;
    justify-content: space-between;
    margin-top: 50px;
}

/* checkout extras */
.pay-options {
    display: grid;
    gap: 3px;
    margin: 20px 0 20px;
}

.pay-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer
}

input {
    accent-color: var(--brand)
}

.legal {
    font-size: .85rem;
    color: var(--muted)
}

.secure {
    font-size: .85rem;
    color: var(--muted);
    opacity: 0.5;
}

.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: auto; /* оставляем клики, чтобы показать подсказку */
}
#agree-error, #email-error {
    color: #FF4C4C;
    font-size: .9rem;
    padding-bottom: 20px;
    display: none;
}

.modal p.form-error {
    color: #FF4C4C;
    font-size: .9rem;
    padding-bottom: 20px;
}

#terms section, #privacy section {
    padding: 10px 0;
    border: 0;
}


/* Палитра в духе edu.fuzeev.com */
:root {
    --bg: #0B0B0B;
    --surface: #111111;
    --border: #343434;
    --text: #F5F5F5;
    --subtle: #A3A3A3;
    --danger: #EF4444;
    --success: #10B981;
}

/* Контейнер формы (необязательно) */
.form {
    max-width: 520px;
    margin: 0 auto;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,.25);
    color: var(--text);
}

/* Группа полей */
.form-group {
}

/* Лейбл */
.form-label {
    display: inline-block;
    margin-bottom: .5rem;
    font-size: .95rem;
    color: var(--muted);
}

/* Базовый инпут/текстовая область/селект */
.form-control, .form-select, .form-textarea {
    width: 100%;
    appearance: none;
    background: #0E0E0E;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: .8rem 1rem;
    font-size: 1rem;
    line-height: 1.4;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

/* Hover */
.form-control:hover, .form-select:hover, .form-textarea:hover {
    border-color: #3D3D3D;
}

/* Focus (жёлтое кольцо) */
.form-control:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: #111111;
}

/* placeholder */
.form-control::placeholder, .form-textarea::placeholder {
    color: #7A7A7A;
}

/* Disabled */
.form-control:disabled, .form-select:disabled, .form-textarea:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Ошибка валидации */
.form-control.is-invalid, .form-select.is-invalid, .form-textarea.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(239,68,68,.18);
}

/* Подсказка под полем */
.form-hint {
    margin-top: .5rem;
    color: var(--subtle);
    font-size: .875rem;
}

/* Варианты размеров */
.form-control.sm { padding: .6rem .8rem; font-size: .9rem; border-radius: 10px; }
.form-control.lg { padding: 1rem 1.1rem; font-size: 1.05rem; border-radius: 14px; }

/* Инпут с иконкой слева */
.input-with-icon {
    position: relative;
}
.input-with-icon .icon {
    position: absolute;
    left: .75rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: .8;
}
.input-with-icon .form-control {
    padding-left: 2.25rem;
}

.btn-submit {
    width: 100%;
    display: inline-block;
    padding: .9rem 1.1rem;
    font-weight: 700;
    letter-spacing: .2px;
    color: #0B0B0B;
    background: var(--brand);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform .06s ease, box-shadow .2s ease, filter .2s ease;
    box-shadow: 0 8px 20px rgba(255,213,79,.18);
}
.btn-submit:hover { filter: brightness(1.02); }
.btn-submit:active { transform: translateY(1px); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
}
@media (min-width: 720px) {
    .form-grid .col-span-2 { grid-column: span 2; }
}

/* Social links */
.t-sociallinks {
    padding: 20px 0;
}
.t-sociallinks__wrapper {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}
.t-sociallinks__item a {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
}
.t-sociallinks__svg path {
    fill: #fff;
    transition: fill 0.25s ease;
}
.t-sociallinks__item a:hover .t-sociallinks__svg path {
    fill: var(--brand); /* твой акцентный цвет */
}
