/* ============================================================
   ClaudeAPI Hub — Editorial Light Theme
   Тёплая «бумажная» эстетика в духе бренда Claude
   ============================================================ */

:root {
    /* Поверхности — тёплая бумага */
    --paper: #f0eee5;
    --paper-2: #e9e6da;
    --card: #faf9f5;
    --card-2: #ffffff;
    --ink: #141413;
    --ink-soft: #3d3b36;
    --muted: #6c685e;
    --dim: #938e80;

    /* Линии */
    --line: #ddd9cb;
    --line-soft: #e6e2d4;

    /* Бренд — глина Claude */
    --clay: #cc785c;
    --clay-dark: #b5613f;
    --clay-soft: #e8b8a3;
    --clay-bg: #f5e6df;
    --clay-bg-2: #fbeae2;

    /* Акценты */
    --sage: #4a6741;
    --slate: #3d5a6c;
    --gold: #b8860b;

    /* Тёмная карта для контраста */
    --dark: #1c1b18;
    --dark-2: #26241f;

    /* Тени */
    --shadow-sm: 0 1px 2px rgba(20, 20, 19, 0.04), 0 1px 3px rgba(20, 20, 19, 0.06);
    --shadow: 0 4px 16px -4px rgba(20, 20, 19, 0.08), 0 2px 6px -2px rgba(20, 20, 19, 0.06);
    --shadow-lg: 0 20px 50px -16px rgba(20, 20, 19, 0.18), 0 6px 18px -8px rgba(20, 20, 19, 0.1);

    --radius: 14px;
    --radius-lg: 20px;
    --radius-sm: 10px;
    --radius-xs: 7px;

    --container: 1160px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    --serif: 'Fraunces', 'Iowan Old Style', 'Apple Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', 'SF Mono', 'Consolas', 'Monaco', monospace;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv11', 'ss01';
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 820px; }
.container--wide { max-width: 1280px; }

/* ============================================================
   Анонс-бар
   ============================================================ */
.announce {
    background: var(--ink);
    color: var(--paper);
    text-align: center;
    padding: 9px 24px;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.announce strong { color: var(--clay-soft); font-weight: 700; }
.announce a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255,255,255,0.3); }

/* ============================================================
   Шапка
   ============================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(240, 238, 229, 0.82);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.header.scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 1px 0 rgba(20,20,19,0.02);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 66px;
}
.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.025em;
}
.logo__mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-right:10px;
    background: var(--clay);
    border-radius: 8px;
    color: #fff;
}
.logo__mark svg { width: 17px; height: 17px; }
.logo__accent { color: var(--clay); }

.nav { display: flex; gap: 2px; }
.nav__link {
    color: var(--ink-soft);
    font-size: 14.5px;
    font-weight: 500;
    padding: 8px 13px;
    border-radius: 8px;
    transition: all 0.2s;
}
.nav__link:hover { color: var(--ink); background: rgba(20,20,19,0.05); }

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

.burger { display: none; flex-direction: column; gap: 5px; padding: 9px; }
.burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s; }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Кнопки
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-sm);
    padding: 12px 22px;
    transition: all 0.2s var(--ease);
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    line-height: 1;
}
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--primary {
    background: var(--ink);
    color: var(--paper);
    box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}
.btn--clay {
    background: var(--clay);
    color: #fff;
    box-shadow: 0 4px 14px -4px rgba(204, 120, 92, 0.5);
}
.btn--clay:hover {
    background: var(--clay-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px -6px rgba(204, 120, 92, 0.6);
}
.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn--ghost:hover { background: var(--card); border-color: var(--dim); }
.btn--light { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.18); }
.btn--light:hover { background: rgba(255,255,255,0.18); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    padding: 72px 0 56px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -100px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(204, 120, 92, 0.18), transparent 65%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -80px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(74, 103, 65, 0.1), transparent 65%);
    pointer-events: none;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 56px;
    align-items: center;
    position: relative;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 7px 6px 14px;
    background: var(--card-2);
    border: 1px solid var(--line);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
    margin-bottom: 26px;
    box-shadow: var(--shadow-sm);
}
.eyebrow__tag {
    padding: 2px 9px;
    background: var(--clay-bg);
    color: var(--clay-dark);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.eyebrow__dot { width: 7px; height: 7px; background: var(--sage); border-radius: 50%; box-shadow: 0 0 0 3px rgba(74, 103, 65, 0.2); }

.hero__title {
    font-family: var(--serif);
    font-size: clamp(38px, 5.4vw, 62px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.025em;
    margin-bottom: 22px;
    color: var(--ink);
}
.hero__title em {
    font-style: italic;
    font-weight: 400;
    color: var(--clay);
}
.hero__sub {
    font-size: 18px;
    color: var(--muted);
    max-width: 510px;
    margin-bottom: 32px;
    line-height: 1.6;
}
.hero__cta { display: flex; gap: 11px; flex-wrap: wrap; margin-bottom: 26px; }

.hero__points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}
.hero__point {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--ink-soft);
    font-weight: 500;
}
.hero__point svg { width: 17px; height: 17px; color: var(--clay); flex-shrink: 0; }

/* Карточка запроса/ответа */
.hero__visual { position: relative; }
.hero__visual::before {
    content: '';
    position: absolute;
    inset: -16px;
    background: linear-gradient(135deg, rgba(204, 120, 92, 0.15), transparent 60%);
    border-radius: 28px;
    z-index: -1;
}
.chat-card {
    background: var(--card-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.chat-card__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line-soft);
    background: var(--card);
}
.chat-card__title { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-left: 4px; }
.chat-card__pill {
    margin-left: auto;
    padding: 3px 10px;
    background: var(--clay-bg);
    color: var(--clay-dark);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
}
.msg { padding: 16px 18px; }
.msg + .msg { border-top: 1px solid var(--line-soft); }
.msg__role {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--dim);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.msg__avatar {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    font-size: 11px;
}
.msg__avatar--user { background: var(--paper-2); color: var(--ink-soft); }
.msg__avatar--ai { background: var(--clay); color: #fff; }
.msg__text { font-size: 14.5px; color: var(--ink); line-height: 1.6; }
.msg__text code {
    font-family: var(--mono);
    font-size: 13px;
    background: var(--paper-2);
    padding: 1px 6px;
    border-radius: 5px;
    color: var(--clay-dark);
}
.msg--ai .msg__text { color: var(--ink-soft); }

.chat-card__foot {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 16px;
    background: var(--card);
    border-top: 1px solid var(--line-soft);
    font-size: 12px;
    color: var(--dim);
    font-family: var(--mono);
}
.chat-card__foot span { display: flex; align-items: center; gap: 5px; }
.chat-card__foot .live { width: 6px; height: 6px; background: var(--sage); border-radius: 50%; box-shadow: 0 0 6px var(--sage); }

/* ============================================================
   Логотипы
   ============================================================ */
.logos {
    padding: 44px 0 24px;
    border-top: 1px solid var(--line);
    margin-top: 48px;
}
.logos__label {
    text-align: center;
    font-size: 12px;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 28px;
    font-weight: 600;
}
.logos__row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px 56px;
    align-items: center;
}
.logos__row span {
    font-family: var(--serif);
    font-size: 23px;
    font-weight: 500;
    color: var(--dim);
    letter-spacing: -0.02em;
}

/* ============================================================
   Секции
   ============================================================ */
.section { padding: 96px 0; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--dark); color: var(--paper); }
.section--dark .muted { color: rgba(240, 238, 229, 0.65); }

.section__head { max-width: 640px; margin-bottom: 56px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--clay);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}
.section__title {
    font-family: var(--serif);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 14px;
}
.section__title em { font-style: italic; color: var(--clay); font-weight: 400; }
.section--dark .section__title em { color: var(--clay-soft); }
.section__sub { font-size: 17px; color: var(--muted); line-height: 1.6; }
.section--dark .section__sub { color: rgba(240, 238, 229, 0.65); }

/* ============================================================
   Боль — геоблок
   ============================================================ */
.pain {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 40px;
}
.pain__card {
    padding: 28px;
    background: var(--card-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}
.pain__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    margin-bottom: 18px;
}
.pain__icon svg { width: 22px; height: 22px; }
.pain__card--x .pain__icon { background: #fdecec; color: #c44; }
.pain__card--v .pain__icon { background: #e8f5e9; color: var(--sage); }
.pain__card:nth-child(2) { transform: translateY(18px); }
.pain__title { font-size: 17px; font-weight: 700; margin-bottom: 7px; letter-spacing: -0.01em; }
.pain__text { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

.pain__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 22px;
    background: linear-gradient(90deg, #fdecec, var(--card-2) 50%, #e8f5e9);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--serif);
    font-size: 20px;
    font-style: italic;
    font-weight: 500;
    color: var(--ink-soft);
}
.pain__arrow svg { width: 28px; height: 28px; color: var(--clay); }
.pain__arrow strong { color: var(--clay-dark); font-weight: 600; }

/* ============================================================
   Модели
   ============================================================ */
.models {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.model {
    padding: 28px;
    background: var(--card-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: all 0.3s var(--ease);
    position: relative;
}
.model:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--clay-soft); }
.model--featured { border-color: var(--clay); box-shadow: 0 0 0 1px var(--clay), var(--shadow); }
.model__tag {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 3px 10px;
    background: var(--clay-bg);
    color: var(--clay-dark);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.model__name {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.model__role { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.model__specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 22px;
    padding: 18px;
    background: var(--paper);
    border-radius: var(--radius-sm);
}
.model__spec-val { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.model__spec-val span { font-size: 13px; font-weight: 500; color: var(--dim); }
.model__spec-label { font-size: 12px; color: var(--dim); margin-top: 2px; }
.model__price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    border-top: 1px solid var(--line-soft);
    font-size: 14px;
}
.model__price-row span:first-child { color: var(--muted); }
.model__price-row span:last-child { font-weight: 700; font-family: var(--mono); font-size: 14px; }
.model__note { font-size: 12px; color: var(--dim); margin-top: 14px; line-height: 1.5; }

/* ============================================================
   Возможности — bento
   ============================================================ */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.bento__cell {
    padding: 28px;
    background: var(--card-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}
.bento__cell:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--clay-soft); }
.bento__cell--2 { grid-column: span 2; }
.bento__cell--3 { grid-column: span 3; }
.bento__cell--6 { grid-column: span 6; }
.bento__cell--dark {
    background: var(--dark);
    color: var(--paper);
    border-color: var(--dark);
}
.bento__cell--clay {
    background: linear-gradient(135deg, var(--clay), var(--clay-dark));
    color: #fff;
    border-color: transparent;
}
.bento__cell--dark .bento__text, .bento__cell--clay .bento__text { color: rgba(255,255,255,0.78); }
.bento__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: var(--clay-bg);
    color: var(--clay-dark);
    border-radius: 11px;
    margin-bottom: 18px;
}
.bento__cell--dark .bento__icon { background: rgba(204, 120, 92, 0.18); color: var(--clay-soft); }
.bento__cell--clay .bento__icon { background: rgba(255,255,255,0.18); color: #fff; }
.bento__icon svg { width: 22px; height: 22px; }
.bento__title { font-size: 17px; font-weight: 700; margin-bottom: 7px; letter-spacing: -0.01em; }
.bento__text { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.bento__badge {
    display: inline-block;
    margin-top: 14px;
    padding: 3px 10px;
    background: var(--clay-bg);
    color: var(--clay-dark);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
}
.bento__cell--clay .bento__badge { background: rgba(255,255,255,0.22); color: #fff; }

/* Мини-визуалы внутри bento */
.mini-stats { display: flex; gap: 26px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.bento__cell--dark .mini-stats { border-top-color: rgba(255,255,255,0.1); }
.mini-stat__val { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.mini-stat__val span { color: var(--clay); font-size: 16px; }
.mini-stat__label { font-size: 12px; color: var(--dim); margin-top: 2px; }
.bento__cell--dark .mini-stat__label { color: rgba(255,255,255,0.5); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag-list span {
    padding: 5px 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 100px;
    font-size: 13px;
    color: var(--ink-soft);
    font-weight: 500;
}
.bento__cell--dark .tag-list span { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }

/* ============================================================
   Use cases — табы
   ============================================================ */
.usetabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}
.usetab {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 100px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    transition: all 0.2s;
}
.usetab svg { width: 18px; height: 18px; color: var(--dim); transition: color 0.2s; }
.usetab:hover { border-color: var(--clay-soft); }
.usetab.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.usetab.active svg { color: var(--clay-soft); }

.usepanel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.usepanel.active { display: grid; }
.usepanel__content h3 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}
.usepanel__content p { font-size: 16px; color: var(--muted); margin-bottom: 22px; line-height: 1.6; }
.usepanel__list { display: flex; flex-direction: column; gap: 12px; }
.usepanel__list li {
    display: flex;
    gap: 11px;
    font-size: 15px;
    color: var(--ink-soft);
}
.usepanel__list svg { width: 20px; height: 20px; color: var(--clay); flex-shrink: 0; margin-top: 1px; }
.usepanel__visual {
    padding: 24px;
    background: var(--dark);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.usepanel__visual .msg__text { color: rgba(240,238,229,0.9); }
.usepanel__visual .msg__avatar--ai { background: var(--clay); }
.usepanel__visual .msg__role { color: rgba(240,238,229,0.5); }
.usepanel__visual .msg__text code { background: rgba(255,255,255,0.08); color: var(--clay-soft); }
.usepanel__visual .msg + .msg { border-top-color: rgba(255,255,255,0.08); }

/* ============================================================
   Код — табы
   ============================================================ */
.code-block {
    background: var(--dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.code-block__tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 14px 0;
    background: var(--dark-2);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.codetab {
    padding: 9px 15px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(240,238,229,0.5);
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.codetab:hover { color: rgba(240,238,229,0.8); }
.codetab.active { color: var(--clay-soft); border-bottom-color: var(--clay); }
.code-block__copy {
    margin-left: auto;
    margin-bottom: 8px;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(240,238,229,0.5);
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.code-block__copy:hover { color: var(--clay-soft); background: rgba(255,255,255,0.08); }
.codepanes { padding: 22px 24px; font-family: var(--mono); font-size: 13.5px; line-height: 1.75; }
.codepane { display: none; }
.codepane.active { display: block; }
.codepane pre { margin: 0; color: #d4d2c8; white-space: pre; overflow-x: auto; }
.tk-k { color: #c792ea; }
.tk-s { color: #a5d6a7; }
.tk-n { color: #f7c873; }
.tk-c { color: #5c594e; font-style: italic; }
.tk-f { color: #82aaff; }
.tk-p { color: #89ddff; }

/* ============================================================
   Как это работает
   ============================================================ */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
}
.step {
    padding: 30px 26px;
    background: var(--card-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    position: relative;
}
.step__index {
    font-family: var(--serif);
    font-size: 44px;
    font-weight: 500;
    font-style: italic;
    color: var(--clay);
    line-height: 1;
    margin-bottom: 18px;
    opacity: 0.9;
}
.step__title { font-size: 17px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.step__text { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.step__code {
    margin-top: 16px;
    padding: 12px 14px;
    background: var(--dark);
    border-radius: var(--radius-sm);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--clay-soft);
    overflow-x: auto;
}

/* ============================================================
   Калькулятор
   ============================================================ */
.calc {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0;
    background: var(--card-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.calc__controls { padding: 36px; border-right: 1px solid var(--line); }
.calc__result {
    padding: 36px;
    background: linear-gradient(160deg, var(--dark), var(--dark-2));
    color: var(--paper);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.calc__field { margin-bottom: 26px; }
.calc__label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 10px;
}
.calc__label span { font-family: var(--mono); font-size: 14px; color: var(--clay-dark); font-weight: 700; }
.calc__range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: var(--paper-2);
    border-radius: 100px;
    outline: none;
}
.calc__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    background: var(--clay);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px -2px rgba(204,120,92,0.6);
    border: 3px solid #fff;
}
.calc__range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--clay);
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid #fff;
}
.calc__models { display: flex; gap: 8px; flex-wrap: wrap; }
.calc__model {
    padding: 10px 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    flex: 1;
}
.calc__model small { display: block; font-weight: 400; color: var(--dim); font-size: 12px; margin-top: 2px; }
.calc__model.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.calc__model.active small { color: rgba(255,255,255,0.6); }

.calc__total-label { font-size: 13px; color: rgba(240,238,229,0.55); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.calc__total {
    font-family: var(--serif);
    font-size: 56px;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 6px;
}
.calc__total span { font-size: 26px; color: var(--clay-soft); }
.calc__total-sub { font-size: 14px; color: rgba(240,238,229,0.6); margin-bottom: 28px; }
.calc__breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.calc__breakdown-row { display: flex; justify-content: space-between; font-size: 14px; }
.calc__breakdown-row span:first-child { color: rgba(240,238,229,0.6); }
.calc__breakdown-row span:last-child { font-family: var(--mono); font-weight: 600; }
.calc__save {
    margin-top: 18px;
    padding: 12px 16px;
    background: rgba(204,120,92,0.12);
    border: 1px solid rgba(204,120,92,0.25);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    color: var(--clay-soft);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   Тарифы
   ============================================================ */
.toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-bottom: 44px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
}
.switch { position: relative; display: inline-block; width: 50px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch__slider {
    position: absolute; inset: 0;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 100px;
    transition: 0.3s;
    cursor: pointer;
}
.switch__slider::before {
    content: ''; position: absolute;
    width: 20px; height: 20px; left: 3px; top: 3px;
    background: var(--ink); border-radius: 50%;
    transition: 0.3s var(--ease);
}
.switch input:checked + .switch__slider { background: var(--clay); border-color: transparent; }
.switch input:checked + .switch__slider::before { transform: translateX(22px); background: #fff; }
.toggle__save {
    padding: 2px 9px;
    background: rgba(74,103,65,0.12);
    color: var(--sage);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
}

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.plan {
    padding: 34px 30px;
    background: var(--card-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: all 0.3s var(--ease);
    position: relative;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan--featured { border-color: var(--clay); box-shadow: 0 0 0 1px var(--clay), var(--shadow-lg); }
.plan__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 14px;
    background: var(--clay);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 100px;
    white-space: nowrap;
    box-shadow: 0 6px 16px -4px rgba(204,120,92,0.5);
}
.plan__name { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 14px; }
.plan__price { display: flex; align-items: baseline; gap: 3px; margin-bottom: 6px; }
.plan__currency { font-size: 22px; font-weight: 600; color: var(--muted); }
.plan__amount { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; font-family: var(--sans); }
.plan__amount--custom { font-size: 22px; color: var(--muted); font-family: var(--serif); font-style: italic; font-weight: 500; }
.plan__period { font-size: 15px; color: var(--dim); }
.plan__desc { font-size: 14px; color: var(--muted); margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line-soft); }
.plan__features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.plan__features li {
    position: relative;
    padding-left: 26px;
    font-size: 14.5px;
    color: var(--ink-soft);
    line-height: 1.5;
}
.plan__features li::before {
    content: '';
    position: absolute;
    left: 0; top: 2px;
    width: 18px; height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a6741' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.plan__features li b { color: var(--ink); font-weight: 700; }
.pricing__note { text-align: center; color: var(--dim); font-size: 14px; margin-top: 32px; }

/* ============================================================
   Отзывы
   ============================================================ */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote {
    padding: 28px;
    background: var(--card-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
}
.quote__text {
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.5;
    color: var(--ink);
    margin-bottom: 22px;
    flex: 1;
}
.quote__text::before { content: '«'; color: var(--clay); }
.quote__text::after { content: '»'; color: var(--clay); }
.quote__author { display: flex; align-items: center; gap: 12px; }
.quote__avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--clay-bg);
    color: var(--clay-dark);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 15px;
}
.quote__name { font-size: 14px; font-weight: 700; }
.quote__role { font-size: 13px; color: var(--dim); }

/* ============================================================
   FAQ
   ============================================================ */
.accordion { display: flex; flex-direction: column; gap: 10px; }
.acc {
    background: var(--card-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.25s;
}
.acc.open { border-color: var(--clay-soft); box-shadow: var(--shadow-sm); }
.acc__head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s;
}
.acc__head:hover { color: var(--clay-dark); }
.acc__icon { position: relative; flex-shrink: 0; width: 20px; height: 20px; }
.acc__icon::before, .acc__icon::after {
    content: ''; position: absolute;
    background: var(--muted); border-radius: 2px;
    transition: all 0.3s var(--ease);
}
.acc__icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.acc__icon::after { top: 0; left: 9px; width: 2px; height: 20px; }
.acc.open .acc__icon::after { transform: rotate(90deg); opacity: 0; }
.acc.open .acc__icon::before { background: var(--clay); }
.acc__panel { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.acc__panel-inner { padding: 0 26px 24px; color: var(--muted); font-size: 15px; line-height: 1.65; }

/* ============================================================
   CTA
   ============================================================ */
.cta { padding: 60px 0 110px; }
.cta__box {
    text-align: center;
    background: var(--dark);
    color: var(--paper);
    border-radius: var(--radius-lg);
    padding: 76px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.cta__box::before {
    content: '';
    position: absolute;
    top: -100px; left: 20%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(204,120,92,0.3), transparent 60%);
    pointer-events: none;
}
.cta__box::after {
    content: '';
    position: absolute;
    bottom: -100px; right: 15%;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(74,103,65,0.25), transparent 60%);
    pointer-events: none;
}
.cta__title {
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 500;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
    position: relative;
}
.cta__title em { font-style: italic; color: var(--clay-soft); font-weight: 400; }
.cta__sub { font-size: 17px; color: rgba(240,238,229,0.7); margin-bottom: 34px; position: relative; }
.cta__form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; position: relative; }
.cta__input {
    flex: 1;
    padding: 15px 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 15px;
    transition: border-color 0.2s;
}
.cta__input::placeholder { color: rgba(240,238,229,0.4); }
.cta__input:focus { outline: none; border-color: var(--clay); }
.cta__note { font-size: 13px; color: rgba(240,238,229,0.45); margin-top: 16px; position: relative; }

/* ============================================================
   Подвал
   ============================================================ */
.footer { background: var(--paper-2); border-top: 1px solid var(--line); padding-top: 64px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer__about { color: var(--muted); font-size: 14px; max-width: 280px; margin-top: 16px; line-height: 1.6; }
.footer__col a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; transition: color 0.2s; }
.footer__col a:hover { color: var(--clay-dark); }
.footer__title { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.footer__bottom { border-top: 1px solid var(--line); padding: 22px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--dim); }
.footer__socials { display: flex; gap: 9px; }
.footer__socials a {
    display: grid; place-items: center;
    width: 36px; height: 36px;
    background: var(--card-2);
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: 12px; font-weight: 700;
    color: var(--muted);
    transition: all 0.2s;
}
.footer__socials a:hover { color: var(--clay); border-color: var(--clay-soft); }

/* ============================================================
   Reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 980px) {
    .nav, .header__actions .btn--ghost { display: none; }
    .burger { display: flex; }
    .nav.active {
        display: flex; position: absolute;
        top: 66px; left: 0; right: 0;
        flex-direction: column; gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 10px 28px 20px;
    }
    .nav.active .nav__link { padding: 14px 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
    .hero__grid { grid-template-columns: 1fr; gap: 44px; }
    .hero__visual { max-width: 520px; }
    .pain { grid-template-columns: 1fr; }
    .pain__card:nth-child(2) { transform: none; }
    .models { grid-template-columns: 1fr; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento__cell--2, .bento__cell--3, .bento__cell--6 { grid-column: span 2; }
    .usepanel.active { grid-template-columns: 1fr; }
    .calc { grid-template-columns: 1fr; }
    .calc__controls { border-right: none; border-bottom: 1px solid var(--line); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .plans { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
    .quotes { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer__bottom-inner { flex-direction: column; gap: 14px; }
}

@media (max-width: 560px) {
    .section { padding: 70px 0; }
    .hero { padding: 48px 0 40px; }
    .hero__cta .btn { flex: 1; }
    .bento { grid-template-columns: 1fr; }
    .bento__cell--2, .bento__cell--3, .bento__cell--6 { grid-column: span 1; }
    .steps { grid-template-columns: 1fr; }
    .cta__form { flex-direction: column; }
    .footer__inner { grid-template-columns: 1fr; }
    .logos__row { gap: 16px 32px; }
    .logos__row span { font-size: 19px; }
    .calc__total { font-size: 44px; }
}
