/* ZUMO — базовые стили публичных сайтов. Без сборки и внешних зависимостей.
   Цвета направления задаются переменными --z-* в <head> (из темы сайта). */

:root {
    --z-primary: #5B3CF5;
    --z-accent: #00C2A8;
    --z-ink: #14121F;
    --z-surface: #F6F5FB;
    --z-muted: #5E5A70;
    --z-line: #E4E2EE;
    --z-white: #FFFFFF;
    --z-radius: 16px;
    --z-gap: clamp(16px, 3vw, 28px);
    --z-font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--z-font);
    font-size: 17px;
    line-height: 1.55;
    color: var(--z-ink);
    background: var(--z-white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--z-primary); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.z-container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.z-container--narrow { max-width: 820px; }

.z-skip { position: absolute; left: -9999px; }
.z-skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--z-white); padding: 8px 12px; border-radius: 8px; }

:focus-visible { outline: 3px solid var(--z-accent); outline-offset: 2px; }

/* ---------- Шапка ---------- */
.z-header { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--z-line); }
.z-header__row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }

.z-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--z-ink); font-weight: 700; }
.z-brand__mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--z-primary); color: var(--z-white); font-weight: 800; font-size: 18px; }
.z-brand__name { font-size: 18px; }

.z-nav { position: relative; }
.z-nav__check { position: absolute; opacity: 0; pointer-events: none; }
.z-nav__toggle { display: none; cursor: pointer; padding: 8px 14px; border: 1px solid var(--z-line); border-radius: 999px; font-weight: 600; user-select: none; }
.z-nav__check:focus-visible + .z-nav__toggle { outline: 3px solid var(--z-accent); }
.z-nav__panel { display: flex; align-items: center; gap: 20px; }
.z-nav__link { color: var(--z-ink); text-decoration: none; font-weight: 500; }
.z-nav__link:hover { color: var(--z-primary); }

.z-lang { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--z-line); border-radius: 999px; }
.z-lang__item { padding: 4px 10px; border-radius: 999px; text-decoration: none; color: var(--z-muted); font-size: 14px; white-space: nowrap; }
.z-lang__item.is-active { background: var(--z-ink); color: var(--z-white); }

@media (max-width: 860px) {
    .z-nav__toggle { display: inline-block; }
    .z-nav__panel { display: none; position: absolute; right: 0; top: calc(100% + 10px); flex-direction: column; align-items: stretch; gap: 4px; min-width: 240px; padding: 12px; background: var(--z-white); border: 1px solid var(--z-line); border-radius: var(--z-radius); box-shadow: 0 12px 32px rgba(20,18,31,.12); }
    .z-nav__check:checked ~ .z-nav__panel { display: flex; }
    .z-nav__link { padding: 10px 8px; }
    .z-lang { flex-direction: column; border-radius: 12px; margin-top: 8px; }
    .z-lang__item { border-radius: 8px; padding: 8px 10px; }
}

/* ---------- Уведомление о резервном языке ---------- */
.z-notice { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: #FFF6E0; color: #5C4300; font-size: 15px; }

/* ---------- Hero ---------- */
.z-hero { padding: clamp(40px, 8vw, 96px) 0 clamp(32px, 6vw, 72px); background: linear-gradient(180deg, var(--z-surface), var(--z-white)); }
.z-hero__grid { display: grid; gap: var(--z-gap); align-items: center; }
.z-hero__grid.has-image { grid-template-columns: 1.1fr .9fr; }
.z-hero__title { font-size: clamp(32px, 5.5vw, 56px); font-weight: 800; max-width: 18ch; }
.z-hero__subtitle { font-size: clamp(18px, 2.2vw, 21px); color: var(--z-muted); max-width: 52ch; }
.z-hero__image { border-radius: 24px; }
@media (max-width: 860px) { .z-hero__grid.has-image { grid-template-columns: 1fr; } }

/* ---------- Кнопки ---------- */
.z-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.z-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.z-btn--primary { background: var(--z-primary); color: var(--z-white); }
.z-btn--primary:hover { filter: brightness(1.08); }
.z-btn--ghost { border-color: var(--z-line); color: var(--z-ink); background: var(--z-white); }
.z-btn--light { background: var(--z-white); color: var(--z-ink); }
.z-btn--dark { background: var(--z-ink); color: var(--z-white); }

/* ---------- Секции ---------- */
.z-section { padding: clamp(40px, 7vw, 80px) 0; }
.z-section--tint { background: var(--z-surface); }
.z-section--compact { padding: 24px 0; }
.z-section__title { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; margin-bottom: 24px; }
.z-lead { font-size: 19px; color: var(--z-muted); max-width: 60ch; }

.z-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--z-gap); align-items: center; }
.z-split .z-actions { justify-content: flex-end; }
@media (max-width: 860px) { .z-split { grid-template-columns: 1fr; } .z-split .z-actions { justify-content: flex-start; } }

/* ---------- Карточки ---------- */
.z-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--z-gap); }
.z-grid--cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.z-card { padding: 24px; border: 1px solid var(--z-line); border-radius: var(--z-radius); background: var(--z-white); }
.z-card__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--z-surface); color: var(--z-primary); margin-bottom: 16px; }
.z-card__title { font-size: 19px; }
.z-card__title a { color: inherit; text-decoration: none; }
.z-card--link:hover { border-color: var(--z-primary); }
.z-card__text { color: var(--z-muted); margin: 0; }
.z-card__image { border-radius: 12px; margin-bottom: 16px; }

/* ---------- Шаги и этапы ---------- */
.z-steps, .z-stages { list-style: none; margin: 0; padding: 0; counter-reset: z-step; display: grid; gap: var(--z-gap); }
.z-steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.z-steps__item, .z-stages__item { counter-increment: z-step; position: relative; }
.z-steps__item::before { content: counter(z-step); display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--z-primary); color: var(--z-white); font-weight: 700; margin-bottom: 12px; }
.z-steps__title, .z-stages__title { font-size: 19px; }
.z-steps__text, .z-stages__text { color: var(--z-muted); margin: 0; }
.z-stages__item { padding: 0 0 0 56px; min-height: 40px; }
.z-stages__item::before { content: counter(z-step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--z-primary); color: var(--z-primary); font-weight: 700; }

/* ---------- Галерея ---------- */
.z-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.z-gallery__item { margin: 0; }
.z-gallery__item img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.z-gallery__item figcaption { font-size: 14px; color: var(--z-muted); margin-top: 6px; }

/* ---------- FAQ ---------- */
.z-faq { display: grid; gap: 12px; }
.z-faq__item { border: 1px solid var(--z-line); border-radius: 12px; padding: 0 20px; background: var(--z-white); }
.z-faq__q { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; }
.z-faq__q::-webkit-details-marker { display: none; }
.z-faq__q::after { content: "+"; float: right; color: var(--z-primary); font-weight: 700; }
.z-faq__item[open] .z-faq__q::after { content: "−"; }
.z-faq__a { padding-bottom: 18px; color: var(--z-muted); }
.z-faq__a p:last-child { margin-bottom: 0; }

/* ---------- CTA ---------- */
.z-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(24px, 5vw, 48px); border-radius: 24px; background: var(--z-primary); color: var(--z-white); }
.z-cta__title { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; }
.z-cta__text { opacity: .9; margin: 0; }

/* ---------- Контакты и правовые ссылки ---------- */
.z-contacts { display: grid; gap: 12px; margin: 0; }
.z-contacts__row { display: grid; grid-template-columns: 180px 1fr; gap: 12px; }
.z-contacts dt { color: var(--z-muted); }
.z-contacts dd { margin: 0; }
@media (max-width: 600px) { .z-contacts__row { grid-template-columns: 1fr; gap: 2px; } }
.z-legal { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }

/* ---------- Футер ---------- */
.z-footer { margin-top: 40px; padding: 40px 0; background: var(--z-ink); color: #CFCBE0; font-size: 15px; }
.z-footer a { color: var(--z-white); text-decoration: none; }
.z-footer a:hover { text-decoration: underline; }
.z-footer a[aria-current] { color: var(--z-accent); }
.z-footer__title { font-weight: 700; color: var(--z-white); margin-bottom: 12px; }
.z-footer__eco ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.z-footer__menu, .z-footer__legal { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 16px; }
.z-footer__copy { margin: 16px 0 0; opacity: .7; }

/* ---------- Служебные страницы (404, 503, в разработке) ---------- */
.z-status-page { min-height: 100vh; display: grid; place-items: center; background: var(--z-surface); padding: 24px; }
.z-status { max-width: 520px; text-align: center; }
.z-status__mark { margin: 0 auto 20px; width: 48px; height: 48px; font-size: 24px; display: grid; }
.z-status__code { font-size: 64px; font-weight: 800; margin-bottom: 8px; }
.z-status__title { font-size: 24px; font-weight: 700; }
.z-status p { color: var(--z-muted); margin-bottom: .4em; }

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