/* edapartner.ru — дизайн-система в духе сервисов Яндекса */

:root {
    --yellow: #fce000;
    --yellow-hover: #f5d200;
    --yellow-soft: #fff8cc;
    --ink: #21201f;
    --ink-2: #4a4846;
    --muted: #85827e;
    --line: #ebe9e6;
    --bg: #ffffff;
    --bg-2: #f5f4f2;
    --bg-3: #edebe8;
    --dark: #1a1918;
    --green: #33b56b;
    --blue: #3f8cff;
    --red: #ff5226;
    --radius-s: 12px;
    --radius: 20px;
    --radius-l: 28px;
    --radius-xl: 36px;
    --shadow: 0 4px 24px rgba(33, 32, 31, .08);
    --shadow-l: 0 16px 48px rgba(33, 32, 31, .14);
    --font: 'Onest', 'YS Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --container: 1216px;
    --gutter: 16px;
    --header-h: 64px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --header-h: 72px; } }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 52px; padding: 0 24px;
    border: 0; border-radius: 16px;
    font-size: 16px; font-weight: 600; line-height: 1; white-space: nowrap;
    cursor: pointer; transition: background-color .2s, transform .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn .icon { width: 20px; height: 20px; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--yellow-hover); box-shadow: 0 8px 24px rgba(252, 224, 0, .45); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--light { background: var(--bg-2); color: var(--ink); }
.btn--light:hover { background: var(--bg-3); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: var(--bg-2); }
.btn--lg { height: 60px; padding: 0 32px; font-size: 17px; border-radius: 18px; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.hdr {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr__in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.hdr__logo { display: flex; align-items: center; gap: 10px; flex: none; }
.hdr__logo img { width: 112px; height: auto; }
.hdr__tag { display: none; padding: 4px 10px; border-radius: 8px; background: var(--bg-2); font-size: 12px; font-weight: 600; color: var(--ink-2); line-height: 1.2; }
.hdr__nav { display: none; gap: 4px; margin-left: auto; }
.hdr__nav a, .hdr__drop > button { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px; border-radius: 12px; font-size: 15px; font-weight: 500; color: var(--ink-2); background: none; border: 0; cursor: pointer; transition: background-color .2s, color .2s; }
.hdr__nav a:hover, .hdr__drop > button:hover, .hdr__nav a.is-active { background: var(--bg-2); color: var(--ink); }
.hdr__drop { position: relative; }
.hdr__drop > button .icon { width: 16px; height: 16px; transition: transform .2s; }
.hdr__drop:hover > button .icon, .hdr__drop:focus-within > button .icon { transform: rotate(180deg); }
.hdr__menu {
    position: absolute; top: 100%; left: -8px; padding: 8px; min-width: 280px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-l);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s;
}
.hdr__drop:hover .hdr__menu, .hdr__drop:focus-within .hdr__menu { opacity: 1; visibility: visible; transform: none; }
.hdr__menu a { display: flex; gap: 12px; height: auto; padding: 10px 12px; color: var(--ink); }
.hdr__menu a .ico-badge { width: 40px; height: 40px; border-radius: 12px; }
.hdr__menu a small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.hdr__cta { display: none; margin-left: 8px; }
.hdr__burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 12px; background: var(--bg-2); cursor: pointer; }

.mnav { position: fixed; inset: var(--header-h) 0 0; z-index: 49; padding: 16px var(--gutter) 32px; background: #fff; overflow-y: auto; display: none; }
.mnav.is-open { display: block; animation: fade .2s; }
.mnav__group { padding: 8px 0 16px; border-bottom: 1px solid var(--line); }
.mnav__title { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 8px 0; }
.mnav a.mnav__link { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 18px; font-weight: 500; }
.mnav .btn { margin-top: 24px; }
body.menu-open { overflow: hidden; }

@media (min-width: 640px) { .hdr__tag { display: inline-block; } }
@media (min-width: 1080px) {
    .hdr__nav { display: flex; }
    .hdr__cta { display: inline-flex; }
    .hdr__burger, .mnav { display: none !important; }
}

/* ---------- Generic UI ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; background: var(--bg-2); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.eyebrow--yellow { background: var(--yellow); color: var(--ink); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(51, 181, 107, .18); animation: pulse 2s infinite; }

.chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 12px; background: var(--bg-2); font-size: 15px; font-weight: 500; transition: background-color .2s; }
a.chip:hover { background: var(--bg-3); }
.chip .icon { width: 18px; height: 18px; }

.ico-badge { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--yellow); color: var(--ink); }
.ico-badge--gray { background: var(--bg-2); }
.ico-badge--dark { background: var(--ink); color: var(--yellow); }

.sec { padding: 56px 0; }
.sec--gray { background: var(--bg-2); }
.sec--tight { padding: 40px 0; }
.sec__head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 32px; max-width: 760px; }
.sec__head--row { max-width: none; flex-direction: row; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.sec__head--center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.h2 { font-size: 30px; }
.h3 { font-size: 20px; line-height: 1.25; }
.lead { font-size: 18px; color: var(--ink-2); line-height: 1.5; }
.muted { color: var(--muted); }
@media (min-width: 768px) { .sec { padding: 88px 0; } .h2 { font-size: 44px; } .h3 { font-size: 22px; } .lead { font-size: 20px; } }

.card { background: #fff; border-radius: var(--radius-l); padding: 24px; }
.sec--gray .card { background: #fff; }
.card--gray { background: var(--bg-2); }
@media (min-width: 768px) { .card { padding: 32px; } }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 20px; font-size: 14px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs .icon { width: 14px; height: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 24px 0 56px; overflow: hidden; }
.hero__grid { display: grid; gap: 32px; align-items: center; }
.hero__title { font-size: 38px; line-height: 1.04; letter-spacing: -.035em; margin: 20px 0 16px; }
.hero__title mark { background: none; color: inherit; position: relative; white-space: nowrap; }
.hero__title mark::after { content: ''; position: absolute; left: -2px; right: -2px; bottom: .06em; height: .34em; background: var(--yellow); border-radius: 6px; z-index: -1; }
.hero__lead { font-size: 18px; color: var(--ink-2); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.hero__chips .chip { background: transparent; border: 1px solid var(--line); height: 36px; font-size: 14px; }
.hero__chips .chip .icon { color: var(--green); }
.hero__note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.hero__note a { text-decoration: underline; text-decoration-color: var(--line); }

.hero__visual { position: relative; }
.hero__photo { position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--bg-2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.25)); }

.float {
    position: absolute; z-index: 2;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px 12px 12px;
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: 18px; box-shadow: var(--shadow-l);
    font-size: 14px; line-height: 1.3;
    animation: floaty 6s ease-in-out infinite;
}
.float b { display: block; font-size: 16px; }
.float small { color: var(--muted); }
.float .ico-badge { width: 40px; height: 40px; border-radius: 12px; }
.float--order { left: -8px; top: 24px; }
.float--pay { right: -8px; bottom: 72px; animation-delay: -2s; }
.float--pay b { color: var(--green); }
.float--rating { left: 16px; bottom: 16px; animation-delay: -4s; }
@media (max-width: 479px) { .float--rating { display: none; } .float { font-size: 13px; } }

@media (min-width: 1024px) {
    .hero { padding: 40px 0 88px; }
    .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
    .hero__title { font-size: 64px; }
    .float--order { left: -40px; top: 48px; }
    .float--pay { right: -24px; }
    .float--rating { left: -24px; bottom: 48px; }
}
@media (min-width: 640px) and (max-width: 1023px) { .hero__title { font-size: 48px; } }

.hero--landing .hero__photo { aspect-ratio: 1 / 1; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 28px; }
.hero-facts div { padding: 14px; border-radius: 16px; background: var(--bg-2); }
.hero-facts b { display: block; font-size: 18px; letter-spacing: -.02em; }
.hero-facts span { display: block; font-size: 13px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
@media (min-width: 768px) { .hero-facts div { padding: 18px; } .hero-facts b { font-size: 24px; } }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stat { padding: 20px; border-radius: var(--radius); background: var(--bg-2); }
.stat b { display: block; font-size: 28px; letter-spacing: -.03em; line-height: 1.1; }
.stat span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.stat--yellow { background: var(--yellow); }
.stat--yellow span { color: var(--ink-2); }
.stat--dark { background: var(--ink); color: #fff; }
.stat--dark span { color: rgba(255,255,255,.6); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 16px; } .stat { padding: 28px; } .stat b { font-size: clamp(24px, 2.4vw, 34px); white-space: nowrap; } }

/* ---------- Transport cards ---------- */
.tcards { display: grid; gap: 16px; }
@media (min-width: 900px) { .tcards { grid-template-columns: repeat(3, 1fr); } }
.tcard { position: relative; display: flex; flex-direction: column; min-height: 100%; padding: 24px; border-radius: var(--radius-l); background: var(--bg-2); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); }
.tcard__img { position: relative; height: 200px; margin: -24px -24px 20px; overflow: hidden; }
.tcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tcard:hover .tcard__img img { transform: scale(1.04); }
.tcard__tag { position: absolute; left: 16px; top: 16px; z-index: 1; padding: 6px 10px; border-radius: 10px; background: var(--yellow); font-size: 13px; font-weight: 700; }
.tcard h3 { font-size: 24px; margin-bottom: 8px; }
.tcard p { color: var(--ink-2); }
.tcard__meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.tcard__meta span { padding: 6px 10px; border-radius: 10px; background: #fff; font-size: 14px; font-weight: 500; }
.tcard .link-arrow { margin-top: auto; }

/* ---------- Calculator ---------- */
.calc { display: grid; gap: 16px; }
@media (min-width: 960px) { .calc { grid-template-columns: 1.2fr 1fr; } }
.calc__controls { display: flex; flex-direction: column; gap: 28px; }
.calc__label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-weight: 600; }
.calc__label output { font-size: 20px; font-weight: 700; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 16px; background: var(--bg-2); }
.seg button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border: 0; border-radius: 12px; background: transparent; font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .2s, box-shadow .2s; }
.seg button .icon { width: 26px; height: 26px; }
.seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.seg button:not([aria-pressed="true"]):hover { background: rgba(255,255,255,.5); }

.range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; background: linear-gradient(to right, var(--ink) var(--p, 50%), var(--bg-3) var(--p, 50%)); outline: none; cursor: pointer; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); border: 4px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.25); cursor: grab; }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); border: 4px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.25); cursor: grab; }
.range:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--blue); }
.range-scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: var(--muted); }

.calc__result { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-l); background: var(--ink); color: #fff; overflow: hidden; }
.calc__result::before { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(252,224,0,.35), transparent 70%); }
.calc__result small { color: rgba(255,255,255,.6); font-size: 15px; }
.calc__sum { margin: 8px 0 4px; font-size: 48px; font-weight: 800; letter-spacing: -.04em; color: var(--yellow); line-height: 1; font-variant-numeric: tabular-nums; }
.calc__rows { display: grid; gap: 10px; margin: 24px 0; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); font-size: 15px; }
.calc__rows div { display: flex; justify-content: space-between; gap: 12px; }
.calc__rows span { color: rgba(255,255,255,.6); }
.calc__rows b { font-variant-numeric: tabular-nums; }
.calc__note { margin-top: 16px; font-size: 12px; color: rgba(255,255,255,.45); line-height: 1.4; }
.calc__result .btn { margin-top: auto; }
@media (min-width: 768px) { .calc__result { padding: 36px; } .calc__sum { font-size: 64px; } }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 24px; border-radius: var(--radius-l); background: #fff; }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: var(--yellow); font-size: 18px; font-weight: 800; margin-bottom: 20px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15px; }
.step__time { display: inline-block; margin-top: 16px; padding: 4px 10px; border-radius: 8px; background: var(--bg-2); font-size: 13px; font-weight: 600; color: var(--ink-2); }
@media (min-width: 1100px) {
    .step:not(:last-child)::after { content: ''; position: absolute; top: 46px; right: -16px; width: 16px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 8px); opacity: .3; }
}

/* ---------- Bento benefits ---------- */
.bento { display: grid; gap: 16px; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .bento { grid-template-columns: repeat(4, 1fr); } .bento__big { grid-column: span 2; grid-row: span 2; } .bento__wide { grid-column: span 2; } }
.bcard { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--radius-l); background: var(--bg-2); overflow: hidden; }
.bcard h3 { font-size: 20px; }
.bcard p { color: var(--ink-2); font-size: 15px; }
.bcard--yellow { background: var(--yellow); }
.bcard--yellow p { color: var(--ink); }
.bcard--dark { background: var(--ink); color: #fff; }
.bcard--dark p { color: rgba(255,255,255,.7); }
.bcard--photo { padding: 0; min-height: 320px; color: #fff; justify-content: flex-end; }
.bcard--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bcard--photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.75)); }
.bcard--photo .bcard__body { position: relative; z-index: 1; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.bcard--photo p { color: rgba(255,255,255,.85); }
.bcard__big { font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.bcard__img3d { position: absolute; right: -10px; bottom: -10px; width: 120px; opacity: .95; }
.bcard--has3d { padding-right: 110px; min-height: 180px; }

/* ---------- Tabs / documents ---------- */
.tabs__list { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--bg-2); overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__list button { flex: 1 0 auto; height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: transparent; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tabs__list button[aria-selected="true"] { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.tabs__panel[hidden] { display: none; }
.sec--gray .tabs__list { background: var(--bg-3); }

.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: ''; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 8px; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2321201f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat; }
.checklist--cols { gap: 12px 32px; }
@media (min-width: 768px) { .checklist--cols { grid-template-columns: repeat(2, 1fr); } }

.split { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; } .split--wide-left { grid-template-columns: 1.3fr 1fr; } }

.photo-card { position: relative; border-radius: var(--radius-l); overflow: hidden; background: var(--bg-2); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Audience ---------- */
.aud { display: grid; gap: 12px; }
@media (min-width: 640px) { .aud { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .aud { grid-template-columns: repeat(4, 1fr); } }
.aud a { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--radius-l); background: #fff; transition: transform .25s, box-shadow .25s; }
.aud a:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); }
.aud h3 { font-size: 20px; }
.aud p { color: var(--ink-2); font-size: 15px; flex: 1; }

/* ---------- Day timeline ---------- */
.timeline { list-style: none; display: grid; gap: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding-bottom: 24px; }
.timeline li::before { content: ''; position: absolute; left: 87px; top: 12px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ''; position: absolute; left: 82px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px #fff; }
.sec--gray .timeline li::after { box-shadow: 0 0 0 4px var(--bg-2); }
.timeline time { font-weight: 700; font-variant-numeric: tabular-nums; }
.timeline p { padding-left: 16px; color: var(--ink-2); }

/* ---------- Cities ---------- */
.cities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .cities { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cities { grid-template-columns: repeat(4, 1fr); } }
.cities a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; border-radius: 16px; background: #fff; font-weight: 600; transition: background-color .2s, transform .2s; }
.cities a small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.cities a .icon { width: 18px; height: 18px; color: var(--muted); transition: transform .2s, color .2s; }
.cities a:hover { background: var(--yellow); }
.cities a:hover .icon { color: var(--ink); transform: translateX(3px); }
.sec:not(.sec--gray) .cities a { background: var(--bg-2); }
.sec:not(.sec--gray) .cities a:hover { background: var(--yellow); }

/* ---------- Articles ---------- */
.acards { display: grid; gap: 16px; }
@media (min-width: 640px) { .acards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .acards { grid-template-columns: repeat(3, 1fr); } }
.acard { display: flex; flex-direction: column; border-radius: var(--radius-l); background: #fff; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.sec:not(.sec--gray) .acard { background: var(--bg-2); }
.acard:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); }
.acard__img { aspect-ratio: 16 / 9; background: var(--bg-3); overflow: hidden; }
.acard__img img { width: 100%; height: 100%; object-fit: cover; }
.acard__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 24px 24px; }
.acard h3 { font-size: 19px; line-height: 1.3; }
.acard p { color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.acard time { font-size: 13px; color: var(--muted); }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--bg-2); font-weight: 600; }
.pager a:hover { background: var(--bg-3); }
.pager .is-current { background: var(--ink); color: #fff; }
.pager .is-disabled { opacity: .4; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 8px; max-width: 900px; }
.faq details { border-radius: var(--radius); background: var(--bg-2); transition: background-color .2s; }
.sec--gray .faq details { background: #fff; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 32px; height: 32px; border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2321201f' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform .25s; }
.sec--gray .faq summary::after { background-color: var(--bg-2); }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--yellow); }
.faq__a { padding: 0 24px 22px; color: var(--ink-2); }
.faq__a ul { padding-left: 20px; display: grid; gap: 6px; }
.faq__a p + p { margin-top: 8px; }

/* ---------- CTA band ---------- */
.cta { position: relative; display: grid; gap: 24px; align-items: center; padding: 32px 24px; border-radius: var(--radius-xl); background: var(--yellow); overflow: hidden; }
.cta h2 { font-size: 30px; }
.cta p { font-size: 17px; color: var(--ink-2); max-width: 520px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta__img { display: none; }
.cta__qr { display: none; }
@media (min-width: 900px) {
    .cta { grid-template-columns: 1.3fr 1fr; padding: 56px; min-height: 380px; }
    .cta h2 { font-size: 48px; }
    .cta__img { display: block; position: absolute; right: 0; bottom: 0; top: 0; width: 42%; }
    .cta__img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
}

/* ---------- Mini cards (kurero / community) ---------- */
.mini { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius-l); background: var(--bg-2); }
.sec--gray .mini { background: #fff; }
.mini h3 { font-size: 22px; }
.mini p { color: var(--ink-2); }
.mini__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.btn--tg { background: #2aabee; color: #fff; }
.btn--tg:hover { background: #1d97d6; }
.btn--max { background: linear-gradient(135deg, #4c6fff, #9b4dff); color: #fff; }
.btn--max:hover { filter: brightness(1.08); }

/* ---------- Prose (контент из админки) ---------- */
.prose { font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 760px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 28px; color: var(--ink); margin-top: 1.6em; line-height: 1.2; }
.prose h3 { font-size: 21px; color: var(--ink); margin-top: 1.4em; line-height: 1.25; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.prose a:hover { background: var(--yellow-soft); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 24px; display: grid; gap: .4em; }
.prose li::marker { color: var(--ink); font-weight: 700; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 20px 24px; border-radius: var(--radius); background: var(--yellow-soft); color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { color: var(--ink); background: var(--bg-2); }
@media (min-width: 768px) { .prose h2 { font-size: 32px; } }

/* ---------- Page layouts ---------- */
.page-head { padding: 8px 0 40px; }
.page-head h1 { font-size: 36px; letter-spacing: -.03em; margin: 16px 0 12px; }
@media (min-width: 768px) { .page-head h1 { font-size: 56px; } }

.article { display: grid; gap: 40px; padding-bottom: 64px; }
@media (min-width: 1024px) { .article { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; } }
.article__cover { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 16 / 8; margin-bottom: 32px; background: var(--bg-2); }
.article__cover img { width: 100%; height: 100%; object-fit: cover; }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--muted); }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.aside-cta { padding: 28px; border-radius: var(--radius-l); background: var(--yellow); display: flex; flex-direction: column; gap: 12px; }
.aside-cta h3 { font-size: 24px; }
.aside-cta img { width: 120px; margin: -8px 0 0 auto; }
.toc { padding: 24px; border-radius: var(--radius-l); background: var(--bg-2); }
.toc b { display: block; margin-bottom: 12px; }
.toc ol { list-style: none; display: grid; gap: 8px; font-size: 15px; }
.toc a { color: var(--ink-2); }
.toc a:hover { color: var(--ink); }

.inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 40px 0; padding: 24px; border-radius: var(--radius-l); background: var(--ink); color: #fff; }
.inline-cta b { font-size: 20px; display: block; }
.inline-cta span { color: rgba(255,255,255,.65); font-size: 15px; }

/* ---------- 404 ---------- */
.err { padding: 64px 0 96px; text-align: center; }
.err__code { font-size: 120px; font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.err__code span { color: var(--yellow); -webkit-text-stroke: 3px var(--ink); }

/* ---------- Footer ---------- */
.ftr { padding: 56px 0 120px; background: var(--dark); color: rgba(255,255,255,.7); font-size: 15px; }
.ftr__grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .ftr__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } .ftr { padding-bottom: 48px; } }
.ftr__logo img { width: 120px; filter: invert(1); }
.ftr__about { margin-top: 16px; max-width: 340px; }
.ftr h4 { color: #fff; font-size: 15px; margin-bottom: 14px; letter-spacing: 0; }
.ftr ul { list-style: none; display: grid; gap: 10px; }
.ftr a:hover { color: var(--yellow); }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.45); }
.ftr__disc { margin-top: 24px; font-size: 12px; line-height: 1.5; color: rgba(255,255,255,.4); }

/* ---------- Sticky mobile CTA ---------- */
.mcta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s; }
.mcta.is-visible { transform: none; }
.mcta .btn { width: 100%; }
@media (min-width: 900px) { .mcta { display: none; } }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(51,181,107,.18); } 50% { box-shadow: 0 0 0 8px rgba(51,181,107,.06); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* Элементы grid не должны растягиваться шире колонки из-за содержимого (вкладки, длинные слова) */
.split > *, .grid > *, .calc > *, .hero__grid > *, .ftr__grid > *, .article > * { min-width: 0; }
.prose, .faq summary, h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 479px) {
    .tabs__list button { padding: 0 12px; font-size: 14px; }
}

.ftr__kurero { color: rgba(255,255,255,.7); text-decoration: underline; text-decoration-color: rgba(252,224,0,.6); text-underline-offset: 3px; }
