/* ==========================================================================
   СДЭК online — тема оформления
   Зелёный + морковный + сине-графитовый
   ========================================================================== */

:root {
    --mint: #F1F6F2;          /* фон страницы */
    --paper: #FFFFFF;
    --sprout: #CDEBD6;        /* светло-зелёный */
    --sprout-deep: #8CD3A3;
    --sprout-wash: #E8F6EC;
    --green: #19A457;
    --green-deep: #0E7F3F;
    --green-ink: #0A6532;

    --graphite: #1E2A36;      /* сине-графитовый */
    --graphite-2: #2A3949;
    --graphite-3: #3A4E62;
    --ink: #131C26;
    --muted: #56677A;
    --line: rgba(30, 42, 54, .12);

    --carrot: #FF6A2A;        /* морковный */
    --carrot-deep: #CC4309;
    --carrot-ink: #A83A05;
    --carrot-wash: #FFEEE4;

    --display: 'Roboto Flex', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --body: 'Wix Madefor Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    --r-s: 10px;
    --r-m: 18px;
    --r-l: 28px;
    --r-xl: 40px;
    --pad: clamp(18px, 5vw, 72px);
    --maxw: 1440px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--mint);
    color: var(--ink);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; }
sup { font-size: .65em; line-height: 0; position: relative; vertical-align: baseline; top: -.5em; }
[hidden] { display: none !important; }
.hidden { display: none !important; }
::selection { background: var(--sprout); color: var(--graphite); }
[id] { scroll-margin-top: 96px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.sec { padding-block: clamp(56px, 7vw, 112px); }
.sec--tight { padding-block: clamp(16px, 3vw, 40px); }

/* ---------- заголовки секций ---------- */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 6px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--carrot-ink);
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.sec-head {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: end;
    gap: 18px clamp(24px, 4vw, 64px);
    margin-bottom: clamp(32px, 4.5vw, 56px);
}
.sec-head .eyebrow { grid-column: 1 / -1; }
.sec-head h2 {
    font-family: var(--display);
    font-stretch: 151%;
    font-size: clamp(28px, 3.8vw, 52px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.01em;
    color: var(--graphite);
}
.sec-head h2 em { font-style: normal; color: var(--green-deep); }
.sec-head p:not(.eyebrow) { margin: 0; max-width: 42ch; color: var(--muted); justify-self: end; }

.note { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); max-width: 90ch; }

/* ---------- кнопки ---------- */
.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.01em;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    background-color: transparent;
    transition: transform .35s var(--ease), background-position .7s var(--ease), color .3s var(--ease),
                box-shadow .35s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.cta:hover { transform: translateY(-2px); }
.cta:active { transform: translateY(0) scale(.985); transition-duration: .09s; }
.cta:focus-visible { outline: 2px solid var(--carrot); outline-offset: 3px; }
.cta--dark, .cta--carrot, .cta--green {
    background-image: linear-gradient(108deg, rgba(255,255,255,0) 34%, rgba(255,255,255,.18) 50%, rgba(255,255,255,0) 66%);
    background-size: 260% 100%;
    background-position: 100% 0;
    background-repeat: no-repeat;
    color: #fff;
}
.cta--dark:hover, .cta--carrot:hover, .cta--green:hover { background-position: 0 0; }
.cta--dark { background-color: var(--graphite); box-shadow: 0 14px 30px -16px rgba(30,42,54,.9); }
.cta--dark:hover { box-shadow: 0 22px 42px -18px rgba(30,42,54,1); }
.cta--carrot { background-color: var(--carrot-deep); box-shadow: 0 14px 30px -16px rgba(204,67,9,.85); }
.cta--carrot:hover { box-shadow: 0 22px 42px -18px rgba(204,67,9,.95); }
.cta--green { background-color: var(--green-deep); box-shadow: 0 14px 30px -16px rgba(14,127,63,.85); }
.cta--ghost { border-color: var(--line); color: var(--graphite); background-color: rgba(255,255,255,.55); }
.cta--ghost:hover { border-color: var(--graphite); background-color: var(--paper); }
.cta--sm { padding: 10px 18px; font-size: 14px; }
.cta--xs { padding: 9px 14px; font-size: 13px; }
.cta--block { width: 100%; }
.cta .arw { display: inline-block; transition: transform .35s var(--ease); }
.cta:hover .arw { transform: translateX(4px); }
.cta svg { width: 16px; height: 16px; flex: none; }
.cta:disabled { opacity: .65; cursor: default; transform: none; box-shadow: none; }

/* ---------- навигация ---------- */
.site-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 60;
    padding: 14px var(--pad);
    pointer-events: none;
}
.site-nav__in, .site-nav__menu { pointer-events: auto; }
.site-nav__in {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 10px 10px 22px;
    border-radius: 999px;
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 12px 40px -18px rgba(30,42,54,.45);
    -webkit-backdrop-filter: blur(10px) saturate(1.25);
    backdrop-filter: blur(10px) saturate(1.25);
    transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.site-nav.scrolled .site-nav__in,
.site-nav.menu-open .site-nav__in { background: rgba(255,255,255,.88); box-shadow: 0 18px 50px -26px rgba(30,42,54,.6); }

.brand {
    display: inline-flex;
    align-items: flex-start;
    gap: 3px;
    font-family: var(--display);
    font-stretch: 151%;
    font-weight: 900;
    font-size: 19px;
    line-height: 1;
    letter-spacing: -.01em;
    color: var(--graphite);
    white-space: nowrap;
}
.brand sup {
    top: 0;
    margin-top: -1px;
    font-family: var(--mono);
    font-stretch: 100%;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--carrot);
}
.brand i { font-style: normal; color: var(--green); }
.brand img { display: block; width: auto; height: 22px; }
.site-foot .brand img { height: 30px; }

.site-nav__links { display: flex; gap: 2px; margin-left: auto; }
.site-nav__links a {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--graphite-2);
    transition: background .25s var(--ease), color .25s var(--ease);
}
.site-nav__links a:hover { background: rgba(205,235,214,.6); color: var(--graphite); }
.site-nav__links a.is-active { background: var(--sprout-wash); color: var(--green-ink); }

.site-nav__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--graphite);
    white-space: nowrap;
}
.site-nav__phone:hover { color: var(--green-deep); }

.live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.live-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid var(--green);
    opacity: 0;
    animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

.burger {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    cursor: pointer;
    place-items: center;
    align-content: center;
    gap: 5px;
    padding: 0;
}
.burger span { display: block; width: 18px; height: 1.5px; margin: 0 auto; background: var(--graphite); border-radius: 2px; transition: transform .3s var(--ease); }
.menu-open .burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.site-nav__menu {
    max-width: var(--maxw);
    margin: 8px auto 0;
    padding: 10px;
    display: grid;
    gap: 2px;
    border-radius: 26px;
    background: rgba(255,255,255,.97);
    border: 1px solid var(--line);
    box-shadow: 0 30px 60px -30px rgba(30,42,54,.55);
    animation: dropIn .35s var(--ease);
}
.site-nav__menu a { padding: 14px 16px; border-radius: 16px; font-weight: 600; color: var(--graphite); }
.site-nav__menu a:hover { background: var(--sprout-wash); }
.site-nav__menu .cta { margin-top: 6px; color: #fff; }
.site-nav__menu .cta:hover { background-color: var(--graphite-2); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: 112px; overflow: hidden; }
.hero__bg {
    position: absolute;
    inset: -10% -10% auto;
    height: 120%;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(70% 60% at 50% 34%, rgba(205,235,214,.95) 0%, rgba(241,246,242,0) 70%),
        radial-gradient(42% 38% at 86% 8%, rgba(255,106,42,.15) 0%, rgba(241,246,242,0) 70%),
        radial-gradient(50% 45% at 8% 16%, rgba(42,57,73,.16) 0%, rgba(241,246,242,0) 70%);
}
.hero__frame { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.hero__stage { position: relative; padding-bottom: clamp(36px, 7vw, 110px); }
.hero__word {
    position: relative;
    z-index: 2;
    margin: clamp(8px, 2.5vw, 36px) 0 0;
    font-family: var(--display);
    font-stretch: 151%;
    font-weight: 900;
    font-size: clamp(84px, 21vw, 300px);
    line-height: .84;
    letter-spacing: -.015em;
    text-align: center;
    color: var(--graphite);
    white-space: nowrap;
    -webkit-user-select: none;
    user-select: none;
}
.hero__word span { display: inline-block; }
.hero__word span:nth-child(1) { color: #1E2A36; }
.hero__word span:nth-child(2) { color: #1C4E40; }
.hero__word span:nth-child(3) { color: #148A4A; }
.hero__word span:nth-child(4) { color: #62C888; }

#silk {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    width: min(1280px, 118vw);
    height: clamp(300px, 44vw, 600px);
    transform: translate(-50%, -48%);
    pointer-events: none;
}

.chip {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 15px 9px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.93);
    border: 1px solid rgba(255,255,255,.95);
    box-shadow: 0 14px 34px -20px rgba(30,42,54,.75);
    font-size: 13px;
    font-weight: 500;
    color: var(--graphite);
    white-space: nowrap;
}
.pip { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.pip--hot { background: var(--carrot); }
.pip--dark { background: var(--graphite-3); }
.chip-1 { left: 1%; bottom: 20%; }
.chip-2 { left: 17%; bottom: -2%; }
.chip-3 { right: 1%; bottom: 30%; }
.chip-4 { right: 14%; bottom: 2%; }

.hero__foot {
    position: relative;
    z-index: 6;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(24px, 5vw, 80px);
    align-items: end;
    padding: clamp(20px, 3vw, 44px) 0 clamp(48px, 6vw, 88px);
}
.hero__claim {
    margin: 12px 0 0;
    max-width: 21ch;
    font-family: var(--display);
    font-stretch: 151%;
    font-size: clamp(26px, 3.1vw, 42px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.01em;
    color: var(--graphite);
}
.hero__claim em { font-style: normal; color: var(--carrot-deep); }
.hero__sub { max-width: 52ch; margin: 18px 0 26px; color: var(--muted); font-size: 16.5px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__phones { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; }
.hero__phones a { display: grid; gap: 2px; }
.hero__phones b { font-size: 16px; font-weight: 700; color: var(--graphite); letter-spacing: -.01em; transition: color .25s; }
.hero__phones small { font-size: 12.5px; color: var(--muted); line-height: 1.3; max-width: 30ch; }
.hero__phones a:hover b { color: var(--green-deep); }

.perks {
    list-style: none;
    margin: 0;
    padding: 8px;
    display: grid;
    gap: 2px;
    border-radius: var(--r-l);
    background: rgba(255,255,255,.66);
    border: 1px solid rgba(255,255,255,.95);
    box-shadow: 0 30px 60px -40px rgba(30,42,54,.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.perks li {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    font-size: 14.5px;
    line-height: 1.45;
    color: var(--muted);
    transition: background .3s var(--ease);
}
.perks li:hover { background: var(--paper); }
.perks b { display: block; margin-bottom: 2px; font-weight: 600; color: var(--graphite); }
.perks__ico {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--sprout-wash);
    color: var(--green-deep);
}
.perks li:nth-child(3) .perks__ico { background: var(--carrot-wash); color: var(--carrot-deep); }
.perks li:nth-child(2) .perks__ico { background: #E6EBF0; color: var(--graphite-2); }

.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- бегущая строка ---------- */
.ticker {
    position: relative;
    z-index: 2;
    overflow: hidden;
    padding: 16px 0;
    border-block: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(205,235,214,.4), rgba(255,255,255,.65), rgba(205,235,214,.4));
}
.ticker__track { display: flex; width: max-content; animation: slide 40s linear infinite; }
.ticker__track span {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-inline: 28px 0;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--graphite-2);
    white-space: nowrap;
}
.ticker__track span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--carrot); flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- карточки ---------- */
.card {
    position: relative;
    padding: clamp(22px, 2.6vw, 36px);
    border-radius: var(--r-xl);
    background: var(--paper);
    border: 1px solid var(--line);
}
.card--float { box-shadow: 0 50px 90px -52px rgba(30,42,54,.55); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.card__kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.card__kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.card__title {
    margin: 0 0 22px;
    font-family: var(--display);
    font-stretch: 140%;
    font-size: clamp(20px, 1.9vw, 26px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.01em;
    color: var(--graphite);
}

/* ---------- поля форм ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 8px; align-content: start; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field > label:not(.check), .lbl {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.field label em, .lbl em { font-style: normal; color: var(--carrot-deep); }

.input, .field select, .field textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 15px;
    border-radius: var(--r-s);
    border: 1px solid var(--line);
    background-color: var(--mint);
    font-size: 15px;
    line-height: 1.4;
    color: var(--ink);
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; }
.field select {
    padding-right: 42px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356677A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}
.input::placeholder, .field textarea::placeholder, .dims input::placeholder { color: #93A1B0; }
.input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--green);
    background-color: var(--paper);
    box-shadow: 0 0 0 4px rgba(25,164,87,.14);
}
.input[readonly] { background-color: var(--paper); }
.field select:disabled, .input:disabled { opacity: .55; cursor: not-allowed; }

.input-suffix { position: relative; }
.input-suffix > .input { padding-right: 46px; }
.input-suffix > span {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    pointer-events: none;
}

.dims {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 48px;
    padding: 0 14px 0 4px;
    border-radius: var(--r-s);
    border: 1px solid var(--line);
    background: var(--mint);
    transition: border-color .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.dims:focus-within { border-color: var(--green); background: var(--paper); box-shadow: 0 0 0 4px rgba(25,164,87,.14); }
.dims input {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    padding: 12px 4px;
    border: 0;
    background: transparent;
    font-size: 15px;
    text-align: center;
    outline: none;
}
.dims span { color: #93A1B0; font-size: 13px; }
.dims em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--muted); padding-left: 6px; }

/* ошибки валидации (класс ставит js/constructor.js) */
.has-error > .input, .has-error .input { border-color: var(--carrot-deep); background-color: #FFF5F0; }
.dims.has-error { border-color: var(--carrot-deep); background-color: #FFF5F0; }

.check { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--graphite-2); cursor: pointer; }
.check input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 1.5px solid rgba(30,42,54,.3);
    border-radius: 6px;
    background: var(--paper);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.check input:hover { border-color: var(--green); }
.check input:checked {
    border-color: var(--green-deep);
    background: var(--green-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5 9.5 18 20 6.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.check input:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* автоподбор городов (typeahead.js) */
.twitter-typeahead { display: block !important; width: 100%; }
.tt-menu {
    width: 100%;
    min-width: 220px;
    max-height: 320px;
    overflow-y: auto;
    margin-top: 6px;
    padding: 6px;
    border-radius: 14px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 24px 48px -24px rgba(30,42,54,.45);
    z-index: 100 !important;
}
.tt-suggestion { padding: 9px 12px; border-radius: 9px; font-size: 14.5px; color: var(--graphite-2); cursor: pointer; }
.tt-suggestion:hover, .tt-suggestion.tt-cursor { background: var(--sprout-wash); color: var(--green-ink); }
.tt-suggestion p { margin: 0; }
.tt-highlight { font-weight: 700; }
.tt-info { padding: 8px 12px; font-size: 13px; color: var(--muted); }
.tt-info .text-danger { color: var(--carrot-ink); }

/* ---------- калькулятор стоимости ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(16px, 2vw, 26px); align-items: start; }
.calc__form { position: sticky; top: 100px; display: grid; gap: 16px; }
.calc__form .card__head { margin-bottom: 4px; }
.calc__cities { position: relative; display: grid; gap: 12px; }
.swap {
    position: absolute;
    right: 10px;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-top: -5px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--graphite);
    cursor: pointer;
    transition: transform .45s var(--ease), border-color .3s, color .3s;
}
.swap:hover { border-color: var(--green); color: var(--green-deep); }
.swap.is-flipped { transform: rotate(180deg); }
.swap svg { width: 16px; height: 16px; }
.calc__cities .input { padding-right: 52px; }
.calc__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.calc__result { padding: clamp(20px, 2.4vw, 32px); }

#compare-table { position: relative; }
.route { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin-bottom: 18px; }
.route__to {
    font-family: var(--display);
    font-stretch: 130%;
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--graphite);
}
.route__meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: var(--muted); }
.route__meta sup { top: -.4em; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: -4px; padding-inline: 4px; }
.ptable { width: 100%; min-width: 700px; border-collapse: separate; border-spacing: 0; }
.ptable th {
    padding: 14px 10px;
    vertical-align: bottom;
    text-align: center;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}
.ptable th.ptable__corner { text-align: left; padding-left: 0; }
.ptable td { padding: 13px 10px; text-align: center; vertical-align: middle; border-bottom: 1px dashed var(--line); }
.ptable tr.grp-end td, .ptable td[rowspan] { border-bottom: 1px solid rgba(30,42,54,.16); }
.ptable .is-hl { background: var(--sprout-wash); }
.ptable th.is-hl { color: var(--green-ink); }
.ptable th.hl-l { border-top-left-radius: 16px; }
.ptable th.hl-r { border-top-right-radius: 16px; }
.ptable tfoot td.hl-l { border-bottom-left-radius: 16px; }
.ptable tfoot td.hl-r { border-bottom-right-radius: 16px; }
.ptable__tarif { text-align: left !important; vertical-align: top !important; padding-left: 0 !important; padding-top: 16px !important; }
.ptable__tarif b {
    display: block;
    font-family: var(--display);
    font-stretch: 125%;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--graphite);
}
.ptable__tarif span {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--carrot-wash);
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--carrot-ink);
    white-space: nowrap;
}
.ptable__mode { text-align: left !important; font-size: 13.5px; line-height: 1.35; color: var(--muted); white-space: nowrap; }
.ptable__price { white-space: nowrap; }
.ptable__price b {
    font-family: var(--display);
    font-stretch: 115%;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--graphite);
}
.ptable__price small { font-size: 13px; color: var(--muted); }
.ptable td.is-hl.ptable__price b { color: var(--green-ink); }
.ptable__na { color: rgba(30,42,54,.28); }
.ptable__na svg { width: 16px; height: 16px; vertical-align: middle; }
.ptable tbody tr:hover td:not([rowspan]) { background-color: rgba(241,246,242,.9); }
.ptable tbody tr:hover td.is-hl { background-color: #DCF1E3; }
.ptable tfoot td { padding: 16px 8px; border-bottom: 0; }

/* ---------- тёмная панель с цифрами ---------- */
.panel {
    position: relative;
    overflow: hidden;
    padding: clamp(32px, 5vw, 72px);
    border-radius: var(--r-xl);
    color: #fff;
    background: linear-gradient(150deg, #1A2430 0%, #22303F 50%, #1D4439 100%);
}
.panel::before {
    content: "";
    position: absolute;
    inset: -40% auto auto -10%;
    width: 50%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(58,78,98,.55), rgba(30,42,54,0) 68%);
    pointer-events: none;
}
.panel::after {
    content: "";
    position: absolute;
    inset: auto -5% -55% 45%;
    width: 55%;
    aspect-ratio: 1.6 / 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(25,164,87,.42), rgba(30,42,54,0) 68%);
    pointer-events: none;
}
.panel .eyebrow { position: relative; color: var(--sprout); }
.panel .eyebrow::after { background: rgba(255,255,255,.2); }
.panel h2 {
    position: relative;
    max-width: 20ch;
    margin: 0 0 clamp(28px, 4vw, 54px);
    font-family: var(--display);
    font-stretch: 151%;
    font-size: clamp(26px, 3.4vw, 44px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.01em;
}
.panel h2 em { font-style: normal; color: var(--carrot); }
.stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.stat { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.22); }
.stat b {
    display: block;
    font-family: var(--display);
    font-stretch: 151%;
    font-size: clamp(36px, 4.8vw, 66px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
    color: #fff;
}
.stat b i { font-style: normal; font-size: .5em; letter-spacing: 0; color: var(--sprout); }
.stat p { max-width: 28ch; margin: 14px 0 0; font-size: 15px; color: rgba(255,255,255,.72); }

/* ---------- тарифы ---------- */
.tariffs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.tariff {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 26px 24px 24px;
    border-radius: var(--r-l);
    background: var(--paper);
    border: 1px solid var(--line);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.tariff::before {
    content: "";
    position: absolute;
    inset: auto -35% -55% auto;
    width: 80%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(205,235,214,.9), rgba(205,235,214,0) 70%);
    opacity: .8;
    transition: transform .8s var(--ease);
    pointer-events: none;
}
.tariff.is-contract::before { background: radial-gradient(circle, rgba(255,106,42,.16), rgba(255,106,42,0) 70%); }
.tariff:hover { transform: translateY(-6px); border-color: rgba(25,164,87,.35); box-shadow: 0 40px 70px -46px rgba(30,42,54,.7); }
.tariff:hover::before { transform: translate(-14%, -14%) scale(1.15); }
.tariff > * { position: relative; }
.tariff__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tariff__ico {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--sprout-wash);
    color: var(--green-deep);
    transition: background-color .4s var(--ease), color .4s var(--ease), transform .5s var(--ease);
}
.tariff__ico .ico { width: 30px; height: 30px; stroke-width: 1.6; }
.tariff:hover .tariff__ico { background: var(--graphite); color: #fff; transform: rotate(-6deg); }
.tariff__n { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.tariff h3 {
    margin: 20px 0 10px;
    font-family: var(--display);
    font-stretch: 130%;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.01em;
    color: var(--graphite);
}
.tariff p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.tariff__foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 6px;
    background: var(--sprout-wash);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--green-ink);
}
.tag--carrot { background: var(--carrot-wash); color: var(--carrot-ink); }
.tag--dark { background: var(--graphite); color: #fff; }

/* ---------- виды договоров ---------- */
.card--flush { padding: clamp(10px, 1.4vw, 18px) clamp(14px, 2vw, 28px); }
.ftable { width: 100%; min-width: 780px; border-collapse: separate; border-spacing: 0; }
.ftable th {
    padding: 26px 14px 18px;
    vertical-align: bottom;
    text-align: center;
    font-family: var(--display);
    font-stretch: 118%;
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--graphite);
    border-bottom: 1px solid var(--line);
}
.ftable th.ftable__corner {
    text-align: left;
    padding-left: 4px;
    font-family: var(--mono);
    font-stretch: 100%;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.ftable th.is-muted { color: var(--muted); }
.ftable .is-hl { background: var(--sprout-wash); }
.ftable th.hl-l { border-top-left-radius: 18px; }
.ftable th.hl-r { border-top-right-radius: 18px; }
.ftable tfoot td.hl-l { border-bottom-left-radius: 18px; }
.ftable tfoot td.hl-r { border-bottom-right-radius: 18px; }
.ftable__tag { display: block; width: max-content; margin: 0 auto 12px; }
.ftable td { padding: 13px 14px; text-align: center; vertical-align: middle; font-size: 15px; border-bottom: 1px solid var(--line); }
.ftable td:first-child { padding-left: 4px; text-align: left; font-weight: 500; color: var(--graphite-2); }
.ftable td:first-child small { display: block; margin-top: 3px; font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--muted); }
.ftable tbody tr { transition: background-color .25s; }
.ftable tbody tr:hover td:not(.is-hl) { background-color: rgba(241,246,242,.95); }
.ftable tbody tr:hover td.is-hl { background-color: #DCF1E3; }
.ftable tfoot td { padding: 18px 10px; border-bottom: 0; }

.yes, .no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; vertical-align: middle; }
.yes { background: var(--green); color: #fff; }
.no { color: rgba(30,42,54,.3); }
.yes svg, .no svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.no svg { width: 16px; height: 16px; stroke-width: 2.2; }
.val {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--paper);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--graphite);
    white-space: nowrap;
}
.val--bad { border-color: transparent; background: var(--carrot-wash); color: var(--carrot-ink); }

/* ---------- заявка на договор ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact__copy h2 {
    margin: 0 0 18px;
    font-family: var(--display);
    font-stretch: 151%;
    font-size: clamp(28px, 3.8vw, 50px);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -.01em;
    color: var(--graphite);
}
.contact__copy h2 em { font-style: normal; color: var(--green-deep); }
.contact__copy > p { max-width: 40ch; margin: 0 0 28px; color: var(--muted); }

.steps-v { list-style: none; margin: 0 0 32px; padding: 0; border-top: 1px solid var(--line); }
.steps-v li {
    position: relative;
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--graphite);
}
.steps-v li span {
    font-family: var(--display);
    font-stretch: 151%;
    font-size: 28px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--sprout-deep);
    transition: color .4s var(--ease);
}
.steps-v li::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 0;
    background: var(--carrot);
    transition: width .7s var(--ease);
}
.steps-v.in li::after { width: 44px; transition-delay: calc(var(--s, 0) * 120ms + 200ms); }
.steps-v li:hover span { color: var(--green); }

.contact-links { display: grid; gap: 10px; }
.clink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 18px;
    border-radius: var(--r-m);
    background: var(--paper);
    border: 1px solid var(--line);
    transition: border-color .3s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.clink b { display: block; font-size: 16px; font-weight: 700; color: var(--graphite); letter-spacing: -.01em; }
.clink small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.clink i { flex: none; font-style: normal; font-family: var(--mono); color: var(--muted); transition: transform .35s var(--ease), color .3s; }
.clink:hover { border-color: rgba(25,164,87,.45); transform: translateY(-2px); box-shadow: 0 20px 40px -30px rgba(30,42,54,.5); }
.clink:hover i { color: var(--carrot-deep); transform: translate(3px, -3px); }

#contract { scroll-margin-top: 100px; }
.form-card .card__title { margin: 14px 0 6px; }
.form-card .form-sub { margin: 0 0 22px; font-size: 14.5px; color: var(--muted); }
.form-extra { margin-top: 16px; padding-top: 18px; border-top: 1px dashed var(--line); }
.form-extra .lbl { margin-bottom: 14px; color: var(--green-ink); }
#hide-contract-options:not(.hidden) { animation: dropIn .45s var(--ease); }
.form-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.form-actions .cta { width: 100%; white-space: normal; }
#form-contract-wrap { border-radius: inherit; }

/* ---------- конструктор виджета ---------- */
.builder { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(16px, 2vw, 26px); align-items: start; }
.builder__preview { position: sticky; top: 100px; }
.builder .form-grid { row-gap: 18px; }
.city-row { display: flex; align-items: center; gap: 8px; }
.city-row .twitter-typeahead { flex: 1 1 auto; min-width: 0; }
.cities .typeahead-wrap + .typeahead-wrap { margin-top: 8px; }
.city-delete {
    display: grid;
    place-items: center;
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: var(--r-s);
    border: 1px solid var(--line);
    font-size: 20px;
    line-height: 1;
    color: var(--muted);
    transition: color .25s, border-color .25s, background-color .25s;
}
.city-delete:hover { color: var(--carrot-deep); border-color: var(--carrot-deep); background: var(--carrot-wash); }
.add-city {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    font-size: 14px;
    font-weight: 600;
    color: var(--green-deep);
}
.add-city:hover { color: var(--carrot-deep); }
.hint {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--graphite);
    font-family: var(--body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    color: #fff;
    cursor: help;
}
.cod-padding { display: flex; align-items: flex-end; min-height: 48px; }
#cod { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.inline-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.inline-row .input-suffix { flex: 0 1 150px; }

.preview-stage {
    display: flex;
    justify-content: center;
    overflow: auto;
    margin: 0 0 22px;
    padding: 28px 16px;
    border-radius: var(--r-m);
    background:
        radial-gradient(circle at 1px 1px, rgba(30,42,54,.13) 1px, transparent 0) 0 0 / 16px 16px,
        var(--mint);
}
.preview-stage iframe { display: block; max-width: none; background: #fff; border-radius: 12px; box-shadow: 0 30px 60px -36px rgba(30,42,54,.55); }
.code-box { display: grid; gap: 10px; }
#code-insert { min-height: 104px; font-family: var(--mono); font-size: 12px; line-height: 1.55; resize: none; color: var(--graphite-2); }
.code-box .cta { justify-self: start; }

/* ---------- футер ---------- */
.site-foot {
    position: relative;
    overflow: hidden;
    margin-top: clamp(24px, 4vw, 56px);
    padding: clamp(48px, 6vw, 84px) 0 32px;
    background: var(--graphite);
    color: rgba(255,255,255,.7);
}
.site-foot::after {
    content: "";
    position: absolute;
    right: -10%;
    top: -60%;
    width: 55%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(25,164,87,.28), rgba(30,42,54,0) 66%);
    pointer-events: none;
}
.site-foot .wrap { position: relative; z-index: 1; }
.site-foot .brand { color: #fff; font-size: 24px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.12); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { font-size: 14px; color: rgba(255,255,255,.72); transition: color .25s; }
.foot-links a:hover { color: var(--carrot); }
.foot-contacts { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 20px clamp(28px, 5vw, 72px); padding: 30px 0 34px; }
.foot-contacts a { display: grid; gap: 4px; }
.foot-contacts b {
    font-family: var(--display);
    font-stretch: 125%;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #fff;
    transition: color .25s;
}
.foot-contacts a:hover b { color: var(--sprout); }
.foot-contacts small { font-size: 13px; line-height: 1.4; color: rgba(255,255,255,.55); max-width: 32ch; }
.foot-legal { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.42); }

/* ---------- плавающая кнопка звонка ---------- */
.fab {
    position: fixed;
    right: clamp(14px, 2vw, 28px);
    bottom: clamp(14px, 2vw, 28px);
    z-index: 70;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px 10px 10px;
    border-radius: 999px;
    background: var(--carrot-deep);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 22px 44px -18px rgba(204,67,9,.95);
    opacity: 0;
    transform: translateY(140%);
    transition: transform .55s var(--ease), opacity .4s var(--ease), background-color .3s;
}
.fab.is-visible { opacity: 1; transform: none; }
.fab:hover { background-color: #B83B06; }
.fab__ico { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.18); }
.fab__ico::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); animation: ring 2.4s var(--ease) infinite; }
.fab__ico .ico { width: 18px; height: 18px; stroke-width: 2; animation: wiggle 2.4s ease-in-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
@keyframes wiggle { 0%, 60%, 100% { transform: rotate(0); } 65% { transform: rotate(-14deg); } 72% { transform: rotate(12deg); } 79% { transform: rotate(-8deg); } 86% { transform: rotate(4deg); } }

/* ---------- модальное окно (Bootstrap 3 JS) ---------- */
.fade { opacity: 0; transition: opacity .2s linear; }
.fade.in { opacity: 1; }
.modal-open { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 1050; display: none; overflow: hidden; outline: 0; -webkit-overflow-scrolling: touch; }
.modal-open .modal { overflow-x: hidden; overflow-y: auto; }
.modal-dialog { position: relative; width: auto; max-width: 460px; margin: 9vh auto 40px; padding: 0 16px; }
.modal.fade .modal-dialog { opacity: 0; transform: translateY(24px) scale(.98); transition: transform .45s var(--ease), opacity .3s var(--ease); }
.modal.in .modal-dialog { opacity: 1; transform: none; }
.modal-backdrop { position: fixed; inset: 0; z-index: 1040; background: #121A22; }
.modal-backdrop.fade { opacity: 0; }
.modal-backdrop.in { opacity: .6; }
.modal-scrollbar-measure { position: absolute; top: -9999px; width: 50px; height: 50px; overflow: scroll; }
.modal-content { position: relative; overflow: hidden; border-radius: var(--r-l); background: var(--paper); box-shadow: 0 60px 120px -50px rgba(18,26,34,.85); }
.modal-content::before {
    content: "";
    position: absolute;
    inset: -40% -30% auto auto;
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,106,42,.14), rgba(255,106,42,0) 70%);
    pointer-events: none;
}
.modal-header { position: relative; padding: 30px 30px 6px; }
.modal-header .eyebrow { padding-right: 48px; }
.modal-title { margin: 8px 0 6px; font-family: var(--display); font-stretch: 140%; font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--graphite); }
.modal-sub { margin: 0; font-size: 14.5px; color: var(--muted); }
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--paper);
    font-size: 22px;
    line-height: 1;
    color: var(--graphite);
    cursor: pointer;
    transition: transform .35s var(--ease), border-color .25s;
}
.modal-close:hover { transform: rotate(90deg); border-color: var(--graphite); }
.modal-body { position: relative; display: grid; gap: 14px; padding: 18px 30px 6px; }
.modal-footer { position: relative; padding: 14px 30px 30px; }

/* ---------- подсказки (Bootstrap 3 tooltip) ---------- */
.tooltip { position: absolute; z-index: 1070; display: block; font-family: var(--body); font-size: 12.5px; font-weight: 400; line-height: 1.45; letter-spacing: 0; text-transform: none; text-align: left; white-space: normal; opacity: 0; }
.tooltip.in { opacity: 1; }
.tooltip.top { margin-top: -4px; padding: 6px 0; }
.tooltip.bottom { margin-top: 4px; padding: 6px 0; }
.tooltip.left { margin-left: -4px; padding: 0 6px; }
.tooltip.right { margin-left: 4px; padding: 0 6px; }
.tooltip-inner { max-width: 280px; padding: 10px 13px; border-radius: 12px; background: var(--graphite); color: #fff; box-shadow: 0 20px 40px -20px rgba(18,26,34,.8); }
.tooltip-arrow { position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid; }
.tooltip.bottom .tooltip-arrow { top: 0; left: 50%; margin-left: -6px; border-width: 0 6px 6px; border-bottom-color: var(--graphite); }
.tooltip.top .tooltip-arrow { bottom: 0; left: 50%; margin-left: -6px; border-width: 6px 6px 0; border-top-color: var(--graphite); }
.tooltip.left .tooltip-arrow { right: 0; top: 50%; margin-top: -6px; border-width: 6px 0 6px 6px; border-left-color: var(--graphite); }
.tooltip.right .tooltip-arrow { left: 0; top: 50%; margin-top: -6px; border-width: 6px 6px 6px 0; border-right-color: var(--graphite); }

/* ---------- уведомления и загрузка ---------- */
.alert { margin-top: 14px; padding: 12px 16px; border-radius: 12px; border: 1px solid transparent; font-size: 14.5px; }
.alert p { margin: 0; }
.alert-success { background: var(--sprout-wash); border-color: rgba(25,164,87,.25); color: var(--green-ink); }
.alert-danger { background: var(--carrot-wash); border-color: rgba(204,67,9,.2); color: var(--carrot-ink); }

.compare-load { position: relative; pointer-events: none; }
.compare-load::before { content: ""; position: absolute; inset: 0; z-index: 20; border-radius: inherit; background: rgba(255,255,255,.7); }
.compare-load::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 21;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border-radius: 50%;
    border: 3px solid var(--sprout);
    border-top-color: var(--green);
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- появление при скролле ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }

.js .hero__word span { opacity: 0; transform: translateY(.3em); filter: blur(10px); }
.js.loaded .hero__word span {
    opacity: 1;
    transform: none;
    filter: blur(0);
    transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease);
    transition-delay: calc(var(--i) * 70ms + 80ms);
}
.js .chip { opacity: 0; }
.js.loaded .chip { animation: chipIn .9s var(--ease) forwards, float 7s ease-in-out infinite alternate; }
.chip-1 { animation-delay: .7s, 1.6s !important; }
.chip-2 { animation-delay: .85s, 1.9s !important; }
.chip-3 { animation-delay: 1s, 2.2s !important; }
.chip-4 { animation-delay: 1.15s, 2.5s !important; }
@keyframes chipIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes float { from { translate: 0 0; } to { translate: 0 -10px; } }
.js #silk { opacity: 0; transition: opacity 1.6s var(--ease) .3s; }
.js.loaded #silk { opacity: 1; }

/* ---------- адаптив ---------- */
@media (max-width: 1240px) {
    .site-nav__phone { display: none; }
    .tariffs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
    .calc, .builder, .contact { grid-template-columns: minmax(0, 1fr); }
    .calc__form, .builder__preview { position: static; }
    .tariffs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .stat { padding-block: 22px; }
    .foot-contacts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
    .site-nav__links, .site-nav__in > .cta { display: none; }
    .burger { display: grid; }
    .hero__foot { grid-template-columns: minmax(0, 1fr); align-items: start; }
    .sec-head { grid-template-columns: minmax(0, 1fr); }
    .sec-head p:not(.eyebrow) { justify-self: start; }
    .chip-2, .chip-4 { display: none; }
    .chip-1 { bottom: 4%; }
    .chip-3 { bottom: 16%; }
}
@media (max-width: 560px) {
    .sec-head h2, .panel h2, .contact__copy h2 { font-stretch: 128%; }
    .hero { padding-top: 92px; }
    .hero__claim { font-stretch: 130%; }
    .tariffs, .form-grid, .form-actions, #cod { grid-template-columns: minmax(0, 1fr); }
    .hero__stage { padding-bottom: 60px; }
    .chip { font-size: 12px; padding: 7px 12px 7px 9px; }
    .chip-1 { left: 0; bottom: 6px; }
    .chip-3 { display: none; }
    .hero__cta .cta { width: 100%; }
    .card { border-radius: var(--r-l); padding: 20px 18px; }
    .preview-stage { padding: 16px 0; margin-inline: -8px; }
    .panel { border-radius: var(--r-l); }
    .modal-header { padding: 26px 22px 6px; }
    .modal-body { padding: 16px 22px 6px; }
    .modal-footer { padding: 14px 22px 22px; }
    .fab { padding: 10px; }
    .fab__txt { display: none; }
    .brand sup { display: none; }
}

.m-lbl { display: none; }

/* таблицы → карточки на телефонах */
@media (max-width: 640px) {
    .table-scroll--cards { overflow: visible; margin: 0; padding: 0; }
    .table-scroll--cards table, .table-scroll--cards tbody, .table-scroll--cards tfoot { display: block; min-width: 0; width: 100%; }
    .table-scroll--cards thead { display: none; }
    .table-scroll--cards td { display: block; padding: 0; border: 0 !important; text-align: left; }
    .table-scroll--cards td[data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        font-family: var(--mono);
        font-size: 9.5px;
        font-weight: 500;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--muted);
    }
    .table-scroll--cards tfoot tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 16px; }
    .table-scroll--cards tfoot td:empty { display: none; }
    .table-scroll--cards tfoot td { background: none !important; }
    .table-scroll--cards tfoot .cta { width: 100%; white-space: normal; }
    .m-lbl { display: inline; }

    .ptable tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 10px 0 14px; border-bottom: 1px dashed var(--line); }
    .ptable tr.grp-end { border-bottom: 1px solid rgba(30,42,54,.18); }
    .ptable td[rowspan] { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0 4px !important; }
    .ptable td[rowspan] br { display: none; }
    .ptable__tarif span { margin-top: 0; }
    .ptable__mode { grid-column: 1 / -1; padding: 2px 0 2px !important; font-weight: 600; color: var(--graphite); white-space: normal; }
    .ptable__price, .ptable__na { padding: 9px 11px !important; border-radius: 12px; background: var(--mint); }
    .ptable td.is-hl { background: var(--sprout-wash); }
    .ptable tbody tr:hover td:not([rowspan]) { background-color: var(--mint); }
    .ptable tbody tr:hover td.is-hl { background-color: var(--sprout-wash); }

    .card--flush { padding: 18px; }
    .ftable tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .ftable td:first-child { grid-column: 1 / -1; padding: 0 0 4px; }
    .ftable td[data-label] { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 4px; border-radius: 10px; text-align: center; background: var(--mint); }
    .ftable td[data-label]::before { margin-bottom: 0; }
    .ftable td.is-hl { background: var(--sprout-wash); }
    .ftable td[data-label]::before { font-size: 8.5px; letter-spacing: .04em; }
    .ftable tbody tr:hover td:not(.is-hl) { background-color: transparent; }
    .ftable tbody tr:hover td[data-label]:not(.is-hl) { background-color: var(--mint); }
    .ftable .val { padding: 3px 6px; font-size: 11px; }
    .ftable tfoot tr { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
    .js .reveal, .js .hero__word span, .js .chip, .js #silk { opacity: 1; transform: none; filter: none; }
    .ticker__track { animation: none; }
}

/* ---------- согласие в формах ---------- */
.check--agree { display: flex; align-items: flex-start; margin-top: 18px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.check--agree input { margin-top: 1px; }
.check--agree a { color: var(--graphite-2); text-decoration: underline; text-underline-offset: 2px; }
.check--agree a:hover { color: var(--green-deep); }
.form-note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.form-note a { color: var(--graphite-2); text-decoration: underline; text-underline-offset: 2px; }
.form-note a:hover { color: var(--green-deep); }

/* ---------- футер: реквизиты и документы ---------- */
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.foot-docs { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-docs a { font-size: 13px; color: rgba(255,255,255,.6); text-decoration: underline; text-underline-offset: 3px; transition: color .25s; }
.foot-docs a:hover { color: var(--carrot); }

/* ---------- страницы документов ---------- */
.legal { padding-top: 128px; padding-bottom: clamp(48px, 7vw, 96px); }
.legal__doc {
    max-width: 880px;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 56px);
    border-radius: var(--r-xl);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 50px 90px -60px rgba(30,42,54,.5);
}
.legal__doc h1 {
    margin: 10px 0 16px;
    font-family: var(--display);
    font-stretch: 140%;
    font-size: clamp(27px, 3.4vw, 44px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.01em;
    color: var(--graphite);
}
.legal__lead { max-width: 62ch; margin: 0 0 8px; font-size: 16.5px; color: var(--muted); }
.legal__doc h2 {
    margin: 36px 0 14px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-family: var(--display);
    font-stretch: 125%;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--graphite);
}
.legal__doc p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.6; color: var(--graphite-2); }
.legal__doc ul { margin: 0 0 14px; padding-left: 22px; }
.legal__doc li { margin-bottom: 7px; font-size: 15.5px; line-height: 1.6; color: var(--graphite-2); }
.legal__doc li::marker { color: var(--green); }
.legal__doc strong { color: var(--graphite); }
.legal__doc a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 2px; }
.legal__doc a:hover { color: var(--carrot-deep); }
.req { width: 100%; margin: 4px 0 18px; border-collapse: collapse; }
.req th, .req td { padding: 11px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.req th { width: 38%; padding-right: 20px; font-weight: 500; color: var(--muted); }
.req td { font-weight: 500; color: var(--graphite); }
.legal__foot {
    max-width: 880px;
    margin: 22px auto 0;
    padding: 0 6px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    line-height: 1.8;
    color: var(--muted);
}
.legal__foot a { color: var(--graphite-2); text-decoration: underline; text-underline-offset: 3px; }
.legal__foot a:hover { color: var(--carrot-deep); }
.legal-page .site-nav__links a { font-size: 13.5px; }

@media (max-width: 860px) {
    .legal-page .site-nav__links { display: none; }
    .legal-page .site-nav__in > .cta { display: inline-flex; margin-left: auto; }
    .legal { padding-top: 104px; }
}
@media (max-width: 560px) {
    .req th, .req td { display: block; width: auto; padding: 0; border-bottom: 0; }
    .req th { padding-top: 12px; }
    .req td { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
}
/* плавающая кнопка звонка не должна перекрывать ссылки на документы */
.site-foot { padding-bottom: clamp(74px, 8vw, 104px); }

/* ---------- частые вопросы ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 4px;
    list-style: none;
    cursor: pointer;
    font-family: var(--display);
    font-stretch: 118%;
    font-size: clamp(16px, 1.6vw, 19px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.01em;
    color: var(--graphite);
    transition: color .25s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--green-deep); }
.faq__sign { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--sprout-wash); transition: background-color .3s var(--ease), transform .35s var(--ease); }
.faq__sign::before, .faq__sign::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 1.6px;
    margin: -.8px 0 0 -5px;
    border-radius: 2px;
    background: var(--green-deep);
    transition: transform .35s var(--ease), background-color .3s var(--ease);
}
.faq__sign::after { transform: rotate(90deg); }
.faq__item[open] .faq__sign { background: var(--graphite); transform: rotate(180deg); }
.faq__item[open] .faq__sign::before, .faq__item[open] .faq__sign::after { background: #fff; }
.faq__item[open] .faq__sign::after { transform: rotate(0deg); }
.faq__answer { padding: 0 4px 24px; }
.faq__answer p { margin: 0; max-width: 90ch; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
