/* ==========================================================================
   МультиСсылка - оформление сайта.

   Логика: мультиссылка - продукт визуальный, поэтому главная должна ПОКАЗЫВАТЬ
   готовые страницы, а не рассказывать о них текстом. Отсюда телефоны с живыми
   примерами, мягкие цветные подложки и цветные иконки категорий.

   Светлая схема: белый и очень light-мятный фон, насыщенный зелёный для
   действий, четыре тёплых цвета для иконок. Имена переменных совпадают с теми,
   что использует admin.css.
   ========================================================================== */

:root {
    /* Поверхности */
    --paper: #FFFFFF;
    --surface: #FFFFFF;
    --surface-2: #F4FAF7;
    --surface-3: #EDF6F1;

    /* Текст */
    --ink: #08211A;
    --ink-2: #2E4740;
    --muted: #6B8179;

    /* Линии */
    --line: #E4EFE9;
    --line-soft: #EFF6F2;

    /* Основной цвет действия */
    --accent: #0FA36B;
    --accent-hover: #0B8657;
    --accent-deep: #076B46;
    --accent-light: #3ED598;
    --accent-soft: #E3F6EC;

    /* Тёплый второй акцент */
    --warm: #FF6B4A;
    --warm-soft: #FFEDE8;

    /* Цвета иконок категорий */
    --c-coral: #FF6B4A;
    --c-violet: #7A5CFF;
    --c-amber: #FFA412;
    --c-sky: #2BA8F5;
    --c-pink: #FF52A0;
    --c-mint: #0FA36B;

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;

    --shadow-sm: 0 1px 2px rgba(8, 33, 26, .05);
    --shadow: 0 6px 24px rgba(8, 33, 26, .06);
    --shadow-md: 0 14px 40px rgba(8, 33, 26, .09);
    --shadow-lg: 0 30px 70px rgba(8, 33, 26, .14);

    --font-display: "Onest", system-ui, sans-serif;
    --font-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --container: 1180px;
    --gutter: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 12px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.gradient-text {
    background: linear-gradient(96deg, var(--accent) 8%, var(--accent-light) 52%, #12C2A0 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* --- Шапка -------------------------------------------------------------- */

.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line-soft); box-shadow: 0 2px 20px rgba(8, 33, 26, .04); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; }

.brand { font-weight: 800; font-size: 21px; letter-spacing: -.035em; color: var(--ink);
    display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 11px; flex: 0 0 34px;
    background: linear-gradient(140deg, var(--accent-light), var(--accent) 62%, var(--accent-deep));
    color: #fff; display: grid; place-items: center;
    box-shadow: 0 6px 16px rgba(15, 163, 107, .32);
}
.brand-mark svg { width: 18px; height: 18px; }

.header-nav { display: flex; align-items: center; gap: 4px; }
.header-nav a { color: var(--ink-2); font-weight: 500; font-size: 15.5px; padding: 9px 14px; border-radius: 999px; }
.header-nav a:hover { text-decoration: none; background: var(--surface-2); color: var(--ink); }
.header-nav a.is-active { color: var(--accent); background: var(--accent-soft); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff;
    border-radius: 14px; cursor: pointer; padding: 0; place-items: center; flex: 0 0 44px; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.burger span + span { margin-top: 4px; }

.mobile-menu { display: none; border-top: 1px solid var(--line-soft); background: #fff; }
.mobile-menu.is-open { display: block; }
.mobile-menu nav { display: grid; gap: 2px; padding-block: 12px; }
.mobile-menu nav a { padding: 13px 14px; border-radius: 14px; color: var(--ink-2); font-weight: 500; }
.mobile-menu nav a:hover { text-decoration: none; background: var(--surface-2); }

/* --- Кнопки ------------------------------------------------------------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
    font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; text-align: center;
    transition: transform .18s cubic-bezier(.2,.8,.3,1), box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; }
/* Иконки внутри кнопок: без явного размера SVG растягивается на всю кнопку. */
.btn svg { width: 19px; height: 19px; flex: 0 0 19px; }
.btn-lg svg { width: 21px; height: 21px; flex-basis: 21px; }
.btn-sm svg { width: 17px; height: 17px; flex-basis: 17px; }
.btn:active { transform: translateY(1px); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent-light) -10%, var(--accent) 45%, var(--accent-deep) 130%);
    color: #fff; box-shadow: 0 10px 24px rgba(15, 163, 107, .28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(15, 163, 107, .34); }

.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #C9DFD5; background: var(--surface-2); transform: translateY(-1px); }

.btn-light { background: var(--surface-2); color: var(--ink); border-color: transparent; }
.btn-light:hover { background: var(--surface-3); }

.btn-white { background: #fff; color: var(--accent-deep); box-shadow: var(--shadow-md); }
.btn-white:hover { transform: translateY(-2px); }

.btn-sm { padding: 9px 17px; font-size: 14.5px; }
.btn-lg { padding: 17px 32px; font-size: 17.5px; }
.btn-danger { background: #D4453A; color: #fff; }
.btn-danger:hover { background: #B93A30; }

/* --- Секции ------------------------------------------------------------- */

main { flex: 1 0 auto; }

.section { padding-block: clamp(60px, 8vw, 110px); position: relative; }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }
.section--soft { background: var(--surface-2); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px 7px 11px;
    border-radius: 999px; background: var(--accent-soft); color: var(--accent-deep);
    font-size: 13.5px; font-weight: 700; letter-spacing: .01em; margin-bottom: 18px;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: block; }

.section-head { max-width: 740px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { max-width: 680px; margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(29px, 4.2vw, 46px); font-weight: 800; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; max-width: 58ch; }
.section-head--center p { margin-inline: auto; }

/* --- Первый экран ------------------------------------------------------- */

.hero { position: relative; padding-block: clamp(40px, 5vw, 76px) clamp(56px, 7vw, 96px); }

/* Мягкая цветная подложка: три размытых пятна вместо картинки.
   Даёт объём и «дорогой» вид, ничего не весит и не грузится. */
.hero::before {
    content: ""; position: absolute; inset: -180px 0 auto; height: 820px; z-index: -1; pointer-events: none;
    background:
        radial-gradient(620px 420px at 12% 22%, rgba(62, 213, 152, .26), transparent 62%),
        radial-gradient(560px 420px at 88% 12%, rgba(43, 168, 245, .20), transparent 62%),
        radial-gradient(700px 480px at 62% 88%, rgba(255, 164, 18, .14), transparent 64%);
    filter: blur(6px);
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 60px); align-items: center; }

.hero-copy h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; letter-spacing: -.035em; }
.hero-sub { margin-top: 20px; font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 44ch; }

.hero-note { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 9px; }
.hero-note span {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px;
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    font-size: 14.5px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.hero-note span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: 0 0 7px; }
.hero-note span:nth-child(2)::before { background: var(--c-coral); }
.hero-note span:nth-child(3)::before { background: var(--c-amber); }

.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Телефон с живым примером ------------------------------------------ */

.phone-stage { position: relative; display: flex; justify-content: center; padding-inline: 44px; }

.phone {
    position: relative; width: 300px; flex: 0 0 300px;
    background: #0B1512; border-radius: 44px; padding: 10px;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(8, 33, 26, .06);
}
.phone-screen { border-radius: 35px; overflow: hidden; background: #fff; height: 588px; position: relative; }
.phone-notch {
    position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
    width: 96px; height: 22px; border-radius: 999px; background: #0B1512; z-index: 3;
}

.ml { height: 100%; overflow: hidden; padding: 44px 20px 22px; display: flex; flex-direction: column; gap: 13px; }
.ml--mint { background: linear-gradient(168deg, #EAFBF2 0%, #D6F3E7 52%, #CFEFF4 100%); }
.ml--peach { background: linear-gradient(168deg, #FFF3EC 0%, #FFE4D6 55%, #FFD9E4 100%); }
.ml--night { background: linear-gradient(168deg, #1B2430 0%, #16303A 60%, #123536 100%); }
.ml--lilac { background: linear-gradient(168deg, #F1EEFF 0%, #E6E0FF 55%, #EFE2FF 100%); }

.ml-avatar {
    width: 78px; height: 78px; border-radius: 50%; margin: 4px auto 2px;
    display: grid; place-items: center; font-size: 27px; font-weight: 800; color: #fff;
    box-shadow: 0 10px 24px rgba(8, 33, 26, .16); border: 3px solid rgba(255, 255, 255, .85);
}
.ml-name { text-align: center; font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: #0B241C; }
.ml-role { text-align: center; font-size: 13.5px; color: #4B6259; margin-top: -7px; line-height: 1.45; }
.ml--night .ml-name { color: #F3FBF7; }
.ml--night .ml-role { color: #A9C6BC; }

.ml-btn {
    display: flex; align-items: center; gap: 11px; padding: 12px 15px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    background: rgba(255, 255, 255, .92); border-radius: 15px; font-size: 14.5px; font-weight: 600;
    color: #0B241C; box-shadow: 0 3px 10px rgba(8, 33, 26, .07);
}
.ml--night .ml-btn { background: rgba(255, 255, 255, .13); color: #EAF6F1; box-shadow: none; }
.ml-btn i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 26px; }
.ml-btn i svg { width: 14px; height: 14px; }

.ml-socials { display: flex; justify-content: center; gap: 10px; margin-top: 4px; }
.ml-socials span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .92); box-shadow: 0 3px 10px rgba(8, 33, 26, .07); }
.ml--night .ml-socials span { background: rgba(255, 255, 255, .13); }
.ml-socials svg { width: 16px; height: 16px; }
.example .phone-stage { padding-inline: 0; }

/* Плавающие подписи вокруг телефона - объясняют продукт без текста */
.phone-badge {
    position: absolute; display: inline-flex; align-items: center; gap: 9px;
    padding: 11px 16px; background: #fff; border-radius: 999px;
    box-shadow: var(--shadow-md); font-size: 14px; font-weight: 700; color: var(--ink);
    white-space: nowrap; z-index: 2;
}
.phone-badge svg { width: 16px; height: 16px; flex: 0 0 16px; }
.phone-badge--tl { top: 30px; left: 0; color: var(--accent-deep); }
.phone-badge--br { bottom: 58px; right: 0; color: var(--c-coral); }
.phone-badge--bl { bottom: 150px; left: -44px; color: var(--c-sky); }

/* --- Конструктор на главной --------------------------------------------- */

.builder { position: relative; }
.builder-frame {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg); overflow: hidden;
}
.builder-bar { display: flex; align-items: center; gap: 12px; padding: 15px 22px;
    background: var(--surface-2); border-bottom: 1px solid var(--line-soft); }
.builder-dots { display: flex; gap: 7px; }
.builder-dots i { width: 10px; height: 10px; border-radius: 50%; background: #D3E3DB; display: block; }
.builder-dots i:first-child { background: #FFB4A4; }
.builder-dots i:nth-child(2) { background: #FFD9A0; }
.builder-dots i:nth-child(3) { background: #A8E6C8; }
.builder-url {
    flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: 7px 16px; font-size: 13.5px; color: var(--muted);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px;
}
.builder-body { position: relative; background: #fff; min-height: 560px; }
.builder-body iframe { display: block; width: 100%; height: 620px; border: 0; }

.builder-loading { position: absolute; inset: 0; display: grid; place-items: center; gap: 12px;
    background: #fff; color: var(--muted); font-size: 15px; transition: opacity .3s ease; }
.builder-loading.is-hidden { opacity: 0; pointer-events: none; }

.builder-cta { padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 56px); display: grid; gap: 18px; justify-items: center;
    text-align: center; background: linear-gradient(120deg, #F2FBF6 0%, #EAF7FF 100%); }
.builder-cta h3 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; max-width: 20ch; }
.builder-cta p { color: var(--ink-2); max-width: 54ch; font-size: 17.5px; }

/* --- Шаги --------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px; box-shadow: var(--shadow-sm); }
.step-num {
    width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center;
    font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 20px;
    background: linear-gradient(140deg, var(--accent-light), var(--accent));
    box-shadow: 0 8px 18px rgba(15, 163, 107, .26);
}
.step:nth-child(2) .step-num { background: linear-gradient(140deg, #FFC46B, var(--c-amber)); box-shadow: 0 8px 18px rgba(255, 164, 18, .26); }
.step:nth-child(3) .step-num { background: linear-gradient(140deg, #FF9E86, var(--c-coral)); box-shadow: 0 8px 18px rgba(255, 107, 74, .26); }
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 16px; }

/* --- Карточки аудитории ------------------------------------------------- */

.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    padding: 28px 26px; box-shadow: var(--shadow-sm);
    transition: transform .2s cubic-bezier(.2,.8,.3,1), box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #CFE6DA; }
.card h3 { font-size: 19.5px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }

.card-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg { width: 23px; height: 23px; }
.i-mint   { background: #E3F6EC; color: var(--c-mint); }
.i-coral  { background: #FFEBE5; color: var(--c-coral); }
.i-violet { background: #EEEAFF; color: var(--c-violet); }
.i-amber  { background: #FFF2DC; color: #D98800; }
.i-sky    { background: #E2F2FE; color: var(--c-sky); }
.i-pink   { background: #FFE7F1; color: var(--c-pink); }

/* --- Примеры ------------------------------------------------------------ */

.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); justify-items: center; }
.example { display: grid; justify-items: center; gap: 18px; }
.example .phone { width: 262px; flex-basis: 262px; border-radius: 40px; }
.example .phone-screen { height: 512px; border-radius: 31px; }
.example-label { text-align: center; }
.example-label b { display: block; font-size: 17.5px; font-weight: 700; }
.example-label span { color: var(--muted); font-size: 15px; }

/* --- Почему ------------------------------------------------------------- */

.why-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.why-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 26px; position: relative; overflow: hidden; }
.why-item::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--accent-light), var(--accent)); }
.why-item:nth-child(2)::before { background: linear-gradient(180deg, #FFC46B, var(--c-amber)); }
.why-item:nth-child(3)::before { background: linear-gradient(180deg, #FF9E86, var(--c-coral)); }
.why-item h3 { font-size: 19px; font-weight: 700; margin-bottom: 9px; }
.why-item p { color: var(--muted); font-size: 16px; }

/* --- Вопросы ------------------------------------------------------------ */

.faq { display: grid; gap: 12px; max-width: 880px; margin-inline: auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease; }
.faq-item.is-open { box-shadow: var(--shadow); border-color: #CFE6DA; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font: inherit;
    font-weight: 600; font-size: 17.5px; color: var(--ink); padding: 22px 60px 22px 26px; position: relative; line-height: 1.4; }
.faq-q::after {
    content: ""; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
    width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230FA36B' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-size: 14px; background-position: center; background-repeat: no-repeat;
    transition: transform .22s ease;
}
.faq-item.is-open .faq-q::after { transform: translateY(-50%) rotate(180deg); }
.faq-a { padding: 0 26px 24px; color: var(--muted); font-size: 16.5px; max-width: 70ch; }
.faq-a[hidden] { display: none !important; }

/* --- Финальный призыв --------------------------------------------------- */

.cta-band {
    position: relative; overflow: hidden; border-radius: var(--radius-xl); color: #fff;
    padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px);
    background: linear-gradient(128deg, #0B8657 0%, #0FA36B 42%, #12BE96 76%, #16C2B4 100%);
    display: grid; gap: 20px; justify-items: start;
}
.cta-band::after {
    content: ""; position: absolute; right: -90px; top: -110px; width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 66%); pointer-events: none;
}
.cta-band h2 { font-size: clamp(27px, 4vw, 42px); font-weight: 800; max-width: 19ch; }
.cta-band p { color: rgba(255, 255, 255, .86); font-size: 18px; max-width: 52ch; }

/* --- Текстовая страница ------------------------------------------------- */

.prose { max-width: 68ch; font-size: 17.5px; color: var(--ink-2); }
.prose h2 { font-size: 28px; font-weight: 800; margin: 36px 0 14px; color: var(--ink); }
.prose h3 { font-size: 21px; font-weight: 700; margin: 26px 0 10px; color: var(--ink); }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: 16px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose blockquote { margin: 0 0 18px; padding: 16px 22px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 14px 14px 0; }

/* --- Подвал ------------------------------------------------------------- */

.site-footer { margin-top: auto; background: var(--surface-2); border-top: 1px solid var(--line-soft); padding-block: 56px 34px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 36px; }
.footer-about { color: var(--muted); font-size: 15.5px; margin-top: 16px; max-width: 40ch; }
.footer-col h4 { font-size: 13.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col nav { display: grid; gap: 10px; }
.footer-col a { color: var(--ink-2); font-size: 15.5px; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line);
    display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: var(--muted); font-size: 14.5px; }

/* --- Сообщения и ошибки ------------------------------------------------- */

.alert { padding: 15px 20px; border-radius: 16px; margin-bottom: 18px; font-size: 16px; }
.alert-success { background: var(--accent-soft); color: #07603F; border: 1px solid #BFE7D3; }
.alert-error { background: #FDECE9; color: #97281A; border: 1px solid #F7CDC5; }
.alert-info { background: var(--warm-soft); color: #9A3A1E; border: 1px solid #FBD5C8; }

.error-page { padding-block: clamp(70px, 10vw, 130px); text-align: center; }
.error-code { font-size: clamp(76px, 15vw, 150px); font-weight: 800; line-height: 1; letter-spacing: -.05em;
    background: linear-gradient(140deg, var(--accent-light), var(--accent) 55%, #16C2B4);
    -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page h1 { font-size: clamp(27px, 4vw, 40px); font-weight: 800; margin-top: 6px; }
.error-page p { color: var(--muted); margin: 16px auto 30px; max-width: 46ch; }

/* --- Адаптив ------------------------------------------------------------ */

@media (max-width: 1040px) {
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .steps, .cards--3, .why-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .examples { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .builder-body iframe { height: 580px; }
}

@media (max-width: 760px) {
    body { font-size: 16.5px; }
    .header-nav, .header-actions .btn-ghost { display: none; }
    .burger { display: grid; }
    .steps, .cards--3, .why-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero-actions .btn, .cta-band .btn, .builder-cta .btn { width: 100%; }
    /* Поля вокруг телефона нужны были для плавающих подписей; на узком
       экране они лишь выталкивают страницу за край. */
    .phone-stage { padding-inline: 0; }
    .phone-badge--tl { top: 16px; left: 0; }
    /* На узком экране плавающие подписи наезжают на кнопки примера -
       оставляем только верхнюю. */
    .phone-badge--br, .phone-badge--bl { display: none; }
    .builder-url { max-width: none; }
}

@media (max-width: 620px) {
    .header-inner { gap: 10px; min-height: 66px; }
    .brand { font-size: 17.5px; gap: 8px; }
    .brand-mark { width: 30px; height: 30px; flex-basis: 30px; border-radius: 10px; }
    .brand-mark svg { width: 16px; height: 16px; }
    .header-actions { gap: 8px; }
    .header-actions .btn-sm { padding: 9px 14px; font-size: 14px; }
    .burger { width: 40px; height: 40px; flex-basis: 40px; }
    .phone { width: 288px; flex-basis: 288px; }
    .phone-screen { height: 566px; }
    .ml { padding: 42px 16px 18px; gap: 11px; }
    .ml-btn { font-size: 14px; padding: 11px 13px; gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}
