/* ==========================================================================
   ewig.me — Styles. ПИКСЕЛЬНО по Figma RkYVuJeNxE6gZ8v1onRPdE.
   Типографика: заголовки Montserrat 400 UPPER серые #5A5A59 + трекинг;
   тело Montserrat 500 14px rgba(52,52,52,.8). Плашки #F4F1EE, карточки #F5F1EE,
   футер #E5DAD0, акцент контур #BB9174 / заливка #C0A489.
   ========================================================================== */

:root {
  --accent: #bb9174;
  --accent-fill: #c0a489;
  --accent-dark: #a97f61;
  --accent-soft: rgba(187,145,116,.5);

  --ink-title: #2d2d2d;        /* hero H1 */
  --ink-head: #5a5a59;         /* заголовки секций (серые) */
  --ink-body: rgba(52,52,52,.8);
  --ink-soft: #8a8480;

  --bg: #ffffff;
  --panel: #f4f1ee;            /* плашки/секции-баннеры */
  --card: #f5f1ee;             /* карточки */
  --footer-bg: #e5dad0;
  --line: #d8cabb;

  --font: "Montserrat", system-ui, sans-serif;
  --font-display: "Bebas Neue", sans-serif;
  --font-logo: "Russo One", sans-serif;
  --font-script: "Montez", cursive;

  --r-pill: 40px;
  --r-card: 20px;
  --r-field: 30px;

  --container: 1280px;
  --pad-x: clamp(16px, 4vw, 40px);
  --section-y: clamp(48px, 7vw, 92px);

  --shadow-card: 0 4px 40px rgba(187,145,116,.12);
  --shadow-pop: 0 24px 60px rgba(120,90,66,.22);
  --ring: 0 0 0 3px rgba(187,145,116,.35);
  --ease: cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; font-family: var(--font); font-weight: 500; font-size: 14px; line-height: 1.43;
  color: var(--ink-body); background: var(--bg); letter-spacing: .03em;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* Заголовки — лёгкие, серые, UPPER, с трекингом (как в Figma) */
h1,h2,h3 { margin: 0; font-weight: 400; }
.h-section {
  font-weight: 400; text-transform: uppercase; color: var(--ink-head);
  font-size: 32px; line-height: 1.18; letter-spacing: 0;
}

/* -------- Layout -------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); }
.band { background: var(--panel); }

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 26px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 14px; letter-spacing: .02em; white-space: nowrap;
  border: 2px solid transparent; transition: all .22s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--primary { background: var(--accent-fill); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(169,127,97,.28); }
.btn--outline { border-color: var(--accent); color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* refresh-кнопка (пилюля с иконкой обновления) */
.btn-refresh {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--accent-fill); color: #fff; border-radius: var(--r-pill);
  padding: 12px 22px 12px 12px; transition: background .2s var(--ease);
}
.btn-refresh:hover { background: var(--accent-dark); }
.btn-refresh__ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.btn-refresh__ic svg { width: 20px; height: 20px; transition: transform .5s var(--ease); }
.btn-refresh:hover .btn-refresh__ic svg { transform: rotate(180deg); }
.btn-refresh__txt { font-size: 13px; font-weight: 600; line-height: 1.25; text-align: left; letter-spacing: .01em; }
/* тёмный вариант (на светлом фоне секции) */
.btn-refresh--muted { background: transparent; color: var(--ink-head); padding-left: 0; }
.btn-refresh--muted .btn-refresh__ic { background: var(--accent-fill); color: #fff; }
.btn-refresh--muted:hover { background: transparent; color: var(--accent); }

/* текст-ссылка со шевроном */
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .01em; transition: gap .2s var(--ease); }
.link-arrow svg { width: 6px; height: 11px; }
.link-arrow:hover { gap: 12px; color: var(--accent-dark); }

/* -------- Header -------- */
.header { position: sticky; top: 0; z-index: 60; background: var(--panel); }
.header__row { display: flex; align-items: center; gap: 18px; min-height: 96px; }
.brand__badge { height: 46px; width: auto; }
.search {
  position: relative;
  flex: 1; max-width: 620px; display: flex; align-items: center; gap: 12px;
  height: 50px; padding: 0 22px; border: 2px solid var(--accent); border-radius: var(--r-pill); background: #fff;
}
.search-results { position: absolute; top: calc(100% + 10px); left: 0; right: 0; background: #fff; border-radius: 20px; box-shadow: var(--shadow-pop); overflow: hidden; z-index: 80; display: none; max-height: 60vh; overflow-y: auto; }
.search-results.is-open { display: block; }
.sr-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; cursor: pointer; transition: background .15s; }
.sr-item:hover { background: var(--panel); }
.sr-item img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; object-position: 50% 14%; flex: none; }
.sr-item__name { font-size: 14px; font-weight: 500; color: var(--ink-title); }
.sr-item__dates { font-family: var(--font-display); font-size: 17px; color: var(--accent); }
.sr-empty { padding: 16px; font-size: 13px; color: var(--ink-soft); }
.search svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.search input { flex: 1; border: 0; outline: none; font: inherit; font-size: 14px; color: var(--ink-body); background: transparent; }
.search input::placeholder { color: var(--accent-soft); }
.header__link { font-size: 14px; font-weight: 500; color: var(--ink-body); white-space: nowrap; transition: color .2s; }
.header__link:hover { color: var(--accent); }
.header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.icon-btn { width: 50px; height: 50px; border-radius: 50%; background: var(--accent-fill); color: #fff; display: grid; place-items: center; transition: background .2s, transform .2s; flex: none; }
.icon-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.icon-btn svg { width: 22px; height: 22px; }
.lang { display: inline-flex; border: 1.5px solid var(--accent-soft); border-radius: var(--r-pill); overflow: hidden; }
.lang button { padding: 8px 12px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--accent); transition: all .2s; }
.lang button.is-active { background: var(--accent-fill); color: #fff; }
.burger { display: none; width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--accent); place-items: center; }
.burger span, .burger span::before, .burger span::after { content:""; display:block; width:18px; height:2px; background:var(--accent); border-radius:2px; position:relative; }
.burger span::before { position:absolute; top:-6px; } .burger span::after { position:absolute; top:6px; }

/* -------- Screens -------- */
.screen { display: none; }
.screen.is-active { display: block; }

/* -------- Hero -------- */
.hero { padding-block: clamp(40px, 5vw, 68px); }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4vw, 56px); align-items: stretch; }
.hero__title { font-weight: 400; text-transform: uppercase; color: var(--ink-title); font-size: 32px; line-height: 1.25; letter-spacing: 0; max-width: 640px; }
.hero__lead { margin-top: 22px; font-size: 14px; color: var(--ink-body); max-width: 560px; }
.hero__counter { margin-top: 40px; display: flex; align-items: center; gap: 18px; }
.avatars { display: flex; }
.avatars span { width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--panel); margin-left: -16px; background: #d9d9d9 center/cover; display: grid; place-items: center; }
.avatars span:first-child { margin-left: 0; }
.avatars svg { width: 26px; height: 26px; color: #fff; }
.counter__num { font-family: var(--font-display); font-size: 60px; color: var(--accent); line-height: .8; letter-spacing: .02em; }
.counter__label { font-size: 14px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-body); line-height: 1.15; }
.hero__note { margin-top: 34px; font-size: 13px; font-style: italic; color: var(--ink-soft); }
.hero__cta { margin-top: 20px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero__visual { background: var(--panel); border-radius: 30px; overflow: hidden; display: flex; }
.hp { display: flex; flex-direction: column; flex: 1; color: inherit; min-width: 0; }
.hp__photo { flex: 1 1 auto; min-height: 0; overflow: hidden; background: #fff; position: relative; }
.hp__photo img, .hp__photo svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; transition: transform .5s var(--ease); }
.hp:hover .hp__photo img { transform: scale(1.03); }
.hp__body { padding: 22px clamp(20px,3vw,30px) 26px; }
.hp__name { font-weight: 400; text-transform: uppercase; color: var(--ink-head); font-size: 20px; letter-spacing: .02em; line-height: 1.15; overflow-wrap: anywhere; }
.hp__dates { font-family: var(--font-display); font-size: 30px; color: var(--accent); letter-spacing: .02em; margin: 4px 0 12px; }
.hp__quote { font-size: 13px; font-style: italic; color: var(--ink-body); margin-bottom: 18px; overflow-wrap: anywhere; }
.hp__chips { display: flex; gap: 10px; margin-bottom: 20px; }
.hp__chip { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--accent); box-shadow: var(--shadow-card); font-family: var(--font-logo); font-size: 15px; }
.hp__chip svg { width: 17px; height: 17px; }
.hp__view { font-size: 14px; }

/* -------- ERINNERUNGSSEITEN band -------- */
.eb { background: var(--panel); border-radius: 30px; padding: clamp(30px,4vw,54px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.eb__title { font-weight: 400; text-transform: uppercase; color: var(--ink-head); font-size: 32px; letter-spacing: 0; line-height: 1.4; }
.eb__text { font-size: 14px; color: var(--ink-body); }

/* -------- Examples -------- */
.sec-refresh { margin-bottom: 30px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.ecard { background: var(--card); border-radius: var(--r-card); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.ecard__tag { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--accent); border: 1.5px solid var(--accent); border-radius: var(--r-pill); padding: 7px 16px; }
.ecard__photo { aspect-ratio: 1/.98; border-radius: 12px; overflow: hidden; background: #fff; }
.ecard__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.ecard__name { font-size: 25.7px; font-weight: 500; letter-spacing: .03em; color: var(--ink-body); }
.ecard__dates { font-family: var(--font-display); font-size: 48px; color: var(--accent); letter-spacing: .03em; line-height: 1; }
.ecard__text { font-size: 14px; color: var(--ink-body); }
.ecard__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--accent-soft); }

/* -------- Features (WAS KANNST DU) -------- */
.feat-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; margin-bottom: clamp(36px,5vw,60px); }
.feat-head .h-section { max-width: 560px; }
.feat-head p { font-size: 15px; color: var(--ink-body); padding-top: 6px; }
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.feat__ic { width: 56px; height: 56px; border-radius: 50%; background: var(--accent-fill); color: #fff; display: grid; place-items: center; margin-bottom: 20px; }
.feat__ic svg { width: 26px; height: 26px; }
.feat__ic.is-t { font-family: var(--font-logo); font-size: 22px; }
.feat__title { font-weight: 500; text-transform: uppercase; color: var(--ink-body); font-size: 25.7px; letter-spacing: .03em; margin-bottom: 14px; }
.feat p { font-size: 14px; color: var(--ink-body); }

/* -------- Teaser -------- */
.teaser { background: var(--card); border-radius: 30px; padding: clamp(30px,4vw,54px); }
.teaser__top { display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: start; }
.teaser__photo { width: 250px; max-width: 100%; aspect-ratio: 1/1; border-radius: 14px; overflow: hidden; background: #fff; margin-inline: auto; box-shadow: 0 12px 30px rgba(120,90,66,.14); }
.teaser__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.teaser__quote { position: relative; padding-top: 44px; font-size: 14px; color: var(--ink-body); max-width: 320px; }
.teaser__quote::before { content: "“"; position: absolute; top: -6px; left: 0; font-family: var(--font-display); font-size: 4rem; color: var(--accent); line-height: 1; }
.teaser__name { text-align: center; font-weight: 400; text-transform: uppercase; color: var(--ink-head); font-size: 32px; letter-spacing: 0; margin-top: 30px; }
.teaser__dates { text-align: center; font-family: var(--font-display); font-size: 48px; color: var(--accent); letter-spacing: .03em; margin-top: 10px; }
.teaser__life { display: flex; align-items: center; gap: 16px; margin: 18px auto 0; max-width: 760px; font-size: 13px; color: var(--ink-body); }
.teaser__life .line { flex: 1; height: 1px; background: var(--ink-body); opacity: .5; }
.teaser__actions { display: flex; justify-content: center; margin-top: 26px; }

/* -------- Share (ПОДЕЛИТЕСЬ ПАМЯТЬЮ) -------- */
.share-band { position: relative; overflow: hidden; background: var(--panel); border-radius: 30px; padding: clamp(28px,4vw,44px) clamp(28px,4vw,54px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.share-band .h-section { max-width: 520px; position: relative; z-index: 2; }
.share-band__fp { position: absolute; right: 22%; top: 50%; transform: translateY(-50%); width: 220px; opacity: .5; pointer-events: none; }
.share-band__fp img { width: 100%; }
.share-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 44px; }
.share-item__photo { aspect-ratio: 1/1; border-radius: 14px; overflow: hidden; margin-bottom: 18px; }
.share-item__photo img { width: 100%; height: 100%; object-fit: cover; }
.share-item p { font-size: 15px; color: var(--ink-body); }

/* -------- How it works (steps) -------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: clamp(30px,4vw,52px); }
.step__img { position: relative; width: 150px; height: 150px; margin: 0 auto 18px; }
.step__img img { width: 100%; height: 100%; object-fit: contain; border-radius: 16px; }
.step__n { position: absolute; top: -18px; right: 8px; font-family: var(--font-script); font-size: 37.7px; color: var(--accent); line-height: 1; }
.step p { text-align: center; font-size: 14px; color: var(--ink-body); }
.how-cta { display: flex; justify-content: center; margin-top: clamp(30px,4vw,48px); }
.center-more { display: flex; justify-content: center; margin-top: clamp(36px, 5vw, 52px); }

/* -------- Plans -------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.plan { background: var(--card); border-radius: var(--r-card); overflow: hidden; }
.plan__badge { background: #e6d7c9; color: #fff; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .02em; padding: 8px; }
.plan__inner { padding: clamp(26px,3vw,40px); display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.plan__name { font-weight: 400; text-transform: uppercase; color: var(--ink-head); font-size: 32px; line-height: 1.15; }
.plan__example { margin-top: 16px; }
.plan__price { font-family: var(--font-display); font-size: 48px; color: var(--accent); letter-spacing: .03em; margin: 22px 0; line-height: 1; }
.plan__opts-title { font-size: 14px; color: var(--ink-body); margin-bottom: 18px; }
.plan__opts { display: flex; flex-direction: column; gap: 18px; }
.plan__opts li { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--ink-body); }
.plan__opts .oic { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; flex: none; }
.plan__opts .oic svg { width: 17px; height: 17px; }

/* -------- Articles -------- */
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.acard { position: relative; aspect-ratio: 312/208; border-radius: 12px; overflow: hidden; display: block; }
.acard img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.acard:hover img { transform: scale(1.05); }
.acard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.55)); }
.acard__body { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; color: #fff; }
.acard__label { font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.acard__title { font-size: 14px; font-weight: 500; line-height: 1.35; }

/* -------- FAQ -------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.faq__item { border-bottom: 1px solid var(--accent-soft); }
.faq__q { width: 100%; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 0; text-align: left; font-size: 20px; font-weight: 700; letter-spacing: .03em; color: var(--accent); line-height: 1.2; }
.faq__q .pm { width: 18px; height: 18px; flex: none; position: relative; margin-top: 4px; }
.faq__q .pm::before, .faq__q .pm::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; }
.faq__q .pm::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq__q .pm::after { left: 8px; top: 0; width: 2px; height: 18px; transition: transform .25s var(--ease); }
.faq__item.is-open .pm::after { transform: scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq__a p { padding-bottom: 22px; font-size: 14px; color: var(--ink-body); }

/* -------- Press (О НАС ГОВОРЯТ) -------- */
.pcard__media { position: relative; aspect-ratio: 312/208; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.pcard__play { position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%; background: rgba(192,164,137,.85); display: grid; place-items: center; color: #fff; }
.pcard__play svg { width: 22px; height: 22px; }
.pcard__label { font-size: 20px; font-weight: 700; letter-spacing: .03em; color: var(--accent); margin-bottom: 10px; }
.pcard__title { font-size: 14px; color: var(--ink-body); line-height: 1.4; }

/* -------- Stories (ЖИВЫЕ ИСТОРИИ) -------- */
.stories-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: clamp(30px,4vw,48px); }
.scard { background: var(--card); border-radius: var(--r-card); padding: 30px; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; }
.scard__name { font-size: 15px; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.scard__quote { font-size: 15px; font-style: italic; color: var(--ink-body); line-height: 1.5; }

/* -------- Footer -------- */
.footer { position: relative; overflow: hidden; background: var(--footer-bg); padding-block: clamp(44px,5vw,64px); }
.footer__grid { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr; gap: 40px; align-items: start; position: relative; z-index: 2; }
.footer__badge { height: 58px; width: auto; }
.footer__links { display: flex; flex-direction: column; gap: 14px; }
.footer__links a { font-size: 14px; color: var(--ink-head); font-weight: 500; transition: color .2s; }
.footer__links a:first-child { font-weight: 700; letter-spacing: .04em; color: var(--accent-dark); }
.footer__links a:hover { color: var(--accent); }
.footer__support { background: #fff; border-radius: var(--r-card); padding: 28px; }
.footer__support h4 { font-weight: 400; text-transform: uppercase; color: var(--ink-head); font-size: 1.25rem; letter-spacing: .02em; margin-bottom: 12px; }
.footer__support p { font-size: 14px; color: var(--ink-body); margin-bottom: 20px; }
.footer__fp { position: absolute; left: 34%; bottom: -60px; width: 200px; max-width: 40%; opacity: .35; pointer-events: none; }
.footer__fp img { width: 100%; }
.footer__legal { position: relative; z-index: 2; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(90,90,89,.18); display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.footer__copy { font-size: 13px; color: var(--ink-soft); }
.footer__legal-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__legal-links a { font-size: 13px; color: var(--ink-head); transition: color .2s; }
.footer__legal-links a:hover { color: var(--accent); }

/* -------- Modal / toast / mobile nav -------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(45,35,28,.5); }
.modal__dialog { position: relative; background: #fff; border-radius: var(--r-card); width: min(520px,100%); max-height: 90vh; overflow: auto; padding: 34px; box-shadow: var(--shadow-pop); }
.modal__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-head); background: var(--panel); }
.modal__title { font-weight: 400; text-transform: uppercase; color: var(--ink-head); font-size: 1.3rem; margin-bottom: 12px; }
.toast-wrap { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--ink-title); color: #fff; padding: 14px 22px; border-radius: var(--r-pill); font-size: 14px; box-shadow: var(--shadow-pop); }
.mobile-nav { position: fixed; inset: 0; z-index: 90; display: none; }
.mobile-nav.is-open { display: block; }
.mobile-nav__panel { position: absolute; top: 0; right: 0; height: 100%; width: min(320px,85%); background: var(--bg); box-shadow: var(--shadow-pop); padding: 24px 28px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.mobile-nav__panel a { padding: 13px 4px; font-size: 1rem; color: var(--ink-title); border-bottom: 1px solid var(--line); }
.mobile-nav__brand { padding: 4px 4px 16px !important; border-bottom: none !important; }
.mobile-nav__brand img { height: 34px; width: auto; }
.mobile-nav__legal { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.mobile-nav__legal a { padding: 10px 4px; font-size: 14px; color: var(--ink-soft); border-bottom: none; }

/* -------- Поля форм -------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink-title);
  padding: 14px 18px; border: 1.5px solid var(--accent-soft); border-radius: var(--r-field);
  background: #fff; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
  overflow-wrap: anywhere; word-break: break-word;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23bb9174' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 38px; }
.field textarea { border-radius: var(--r-card); min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--accent-soft); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: var(--ring); outline: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--err); }
.field__err { font-size: 12px; color: var(--err); min-height: 12px; }
.field-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* ======================================================================
   ВНУТРЕННИЕ ЭКРАНЫ (публичная страница, мастер, редактор, кабинет, оплата)
   ====================================================================== */
.subpage { padding-block: clamp(32px,5vw,64px); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 30px; }
.back-link svg { width: 8px; height: 14px; transform: rotate(180deg); }
.card-box { background: var(--card); border-radius: var(--r-card); padding: clamp(24px,3vw,40px); }
.block { margin-bottom: clamp(32px,4vw,52px); }
.block__title { font-weight: 400; text-transform: uppercase; color: var(--ink-head); font-size: 25.7px; letter-spacing: .01em; margin-bottom: 22px; }

/* --- Public memorial --- */
.pub-hero { display: grid; grid-template-columns: 320px 1fr; gap: clamp(28px,4vw,52px); align-items: center; margin-bottom: clamp(36px,5vw,60px); }
.pub-hero__photo { aspect-ratio: 1/1.05; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow-card); }
.pub-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.pub-hero__name { font-weight: 400; text-transform: uppercase; color: var(--ink-head); font-size: 49.7px; line-height: 1.05; letter-spacing: .01em; }
.pub-hero__dates { font-family: var(--font-display); font-size: 48px; color: var(--accent); margin: 12px 0; }
.pub-hero__dates span { font-family: var(--font); font-size: 14px; color: var(--ink-soft); }
.pub-hero__epitaph { font-size: 15px; font-style: italic; color: var(--ink-body); max-width: 560px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.info-cell { border-left: 2px solid var(--accent-soft); padding-left: 16px; }
.info-cell dt { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.info-cell dd { margin: 0; font-size: 15px; color: var(--ink-body); }
.bio-text p { font-size: 15px; color: var(--ink-body); margin: 0 0 16px; line-height: 1.6; }
.bio-text, .pub-hero__name, .pub-hero__epitaph, .info-cell dd, .ecard__name, .ecard__text,
.cab-card__name, .teaser__name, .teaser__quote, .scard__quote { overflow-wrap: anywhere; word-break: break-word; }
.media-box { aspect-ratio: 16/8; border-radius: 14px; background: linear-gradient(135deg,#e7dacd,#cdb6a0); position: relative; display: grid; place-items: center; overflow: hidden; }
.video-embed { aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card); }
.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-embed { position: relative; aspect-ratio: 16/7; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.15) sepia(.08); }
.media-box__ov { position: absolute; inset: 0; background: rgba(45,35,28,.28); transition: background .2s; }
.media-box:hover .media-box__ov { background: rgba(45,35,28,.15); }
.media-box .pcard__play { position: relative; z-index: 2; }
.photos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.photos-grid > div { aspect-ratio: 1/1; border-radius: 12px; background: linear-gradient(135deg,#efe6dc,#ddccbc); }
.photos-grid--cap { align-items: start; }
.ph-fig { margin: 0; }
.ph-fig .ph-img { aspect-ratio: 1/1; border-radius: 12px; background: #eee center/cover; }
.ph-fig figcaption { font-size: 10px; color: var(--ink-soft); margin-top: 6px; line-height: 1.35; }
.ph-fig figcaption a { color: var(--accent); }
.map-box { aspect-ratio: 16/6; border-radius: 14px; overflow: hidden; position: relative; background: #e9e2d8; display: grid; place-items: center; color: var(--accent); }
.map-box svg { width: 46px; height: 46px; }
.map-coords { position: absolute; left: 16px; bottom: 14px; background: #fff; border-radius: 20px; padding: 8px 16px; font-size: 13px; color: var(--ink-body); box-shadow: var(--shadow-card); }
.ext-links { display: flex; gap: 14px; }
.ext-links a { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); display: grid; place-items: center; transition: all .2s; }
.ext-links a:hover { background: var(--accent); color: #fff; }
.ext-links svg { width: 24px; height: 24px; }
.qr-block { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.qr-canvas { width: 180px; height: 180px; background: #fff; border-radius: 14px; padding: 12px; box-shadow: var(--shadow-card); }
.qr-canvas canvas, .qr-canvas img { width: 100%; height: 100%; image-rendering: pixelated; }
.qr-info { max-width: 360px; }
.qr-info p { font-size: 14px; color: var(--ink-body); margin-bottom: 16px; }

/* --- Wizard / forms --- */
.wizard { display: grid; grid-template-columns: 1fr 60px; gap: 30px; align-items: start; }
.wizard__bar { width: 8px; height: 100%; min-height: 300px; background: #f0eae2; border-radius: 8px; position: relative; justify-self: end; }
.wizard__bar span { position: absolute; top: 0; left: 0; width: 100%; background: var(--accent-fill); border-radius: 8px; transition: height .3s var(--ease); }
.form-head { margin-bottom: 30px; }
.form-head .h-section { margin-bottom: 8px; }
.form-head .step { font-size: 14px; color: var(--accent); font-weight: 700; }
.upload { width: 200px; height: 200px; border: 2px dashed var(--accent-soft); border-radius: 20px; display: grid; place-items: center; text-align: center; color: var(--accent); cursor: pointer; transition: border-color .2s; }
.upload:hover { border-color: var(--accent); }
.upload__inner { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.upload.has-photo .upload__inner { opacity: 0; }
.upload__circle { width: 60px; height: 60px; border-radius: 50%; background: var(--accent-fill); color: #fff; display: inline-grid; place-items: center; margin: 0 0 12px; }
.upload__circle svg { width: 26px; height: 26px; display: block; }
.upload span { font-size: 13px; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.auth-card { max-width: 460px; margin-inline: auto; text-align: center; }
.auth-card .h-section { font-size: 25.7px; margin-bottom: 12px; }
.auth-card p { font-size: 14px; color: var(--ink-body); margin-bottom: 24px; }
.auth-links { display: flex; justify-content: center; gap: 20px; margin-top: 18px; font-size: 13px; }
.auth-links a { color: var(--accent); font-weight: 600; }

/* --- Editor --- */
.ed-section { background: var(--card); border-radius: var(--r-card); padding: 26px 30px; margin-bottom: 20px; }
.ed-section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ed-section__title { font-weight: 400; text-transform: uppercase; color: var(--ink-head); font-size: 20px; letter-spacing: .01em; }
.ed-locked { position: relative; }
.ed-locked__overlay { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.ed-locked__msg { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-soft); }
.ed-locked__msg svg { width: 20px; height: 20px; color: var(--accent); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--accent-soft); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row span { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-body); }
.toggle { position: relative; width: 52px; height: 30px; flex: none; }
.toggle input { position: absolute; opacity: 0; }
.toggle__track { position: absolute; inset: 0; background: var(--accent-soft); border-radius: 30px; transition: background .2s; cursor: pointer; }
.toggle__track::after { content: ""; position: absolute; top: 5px; left: 5px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .2s var(--ease); }
.toggle input:checked + .toggle__track { background: var(--accent); }
.toggle input:checked + .toggle__track::after { transform: translateX(22px); }
.bio-choice { display: flex; gap: 14px; flex-wrap: wrap; }
.bio-choice button { flex: 1; min-width: 200px; }
.ed-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 10px; }

/* --- Editor split + live preview --- */
.editor-split { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.editor-form { min-width: 0; }
.editor-preview { position: sticky; top: 96px; }
.editor-tail { margin-top: clamp(20px, 3vw, 32px); }
.phone { width: 300px; max-width: 100%; margin-inline: auto; border: 8px solid #2d2d2d; border-radius: 34px; overflow: hidden; background: #fff; box-shadow: var(--shadow-pop); }
.phone__scroll { height: min(560px, calc(100vh - 140px)); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.phone__scroll::-webkit-scrollbar { width: 5px; } .phone__scroll::-webkit-scrollbar-thumb { background: var(--accent-soft); border-radius: 5px; }
.pv { padding: 20px 18px 30px; }
.pv-name, .pv-dates, .pv-epi, .pv-info, .pv-bio, .pv-link { overflow-wrap: anywhere; word-break: break-word; }
.pv-photo { aspect-ratio: 1/1.05; border-radius: 12px; overflow: hidden; background: #fff; margin-bottom: 16px; }
.pv-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.pv-name { font-weight: 400; text-transform: uppercase; color: var(--ink-head); font-size: 19px; line-height: 1.15; }
.pv-dates { font-family: var(--font-display); font-size: 26px; color: var(--accent); margin: 4px 0 10px; }
.pv-epi { font-size: 13px; font-style: italic; color: var(--ink-body); margin-bottom: 14px; }
.pv-sub { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 16px 0 6px; }
.pv-info, .pv-bio { font-size: 12.5px; color: var(--ink-body); line-height: 1.55; white-space: pre-wrap; }
.pv-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pv-gal div { aspect-ratio: 1/1; border-radius: 6px; background: #eee center/cover; }
.pv-video { position: relative; aspect-ratio: 16/9; border-radius: 10px; background: #ddd center/cover; display: grid; place-items: center; overflow: hidden; }
.pv-video::before { content: ""; position: absolute; inset: 0; background: rgba(45,35,28,.28); }
.pv-play { position: relative; z-index: 2; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--accent); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.pv-play svg { width: 18px; height: 18px; margin-left: 2px; }
.pv-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-link { font-size: 11px; color: var(--accent); border: 1px solid var(--accent-soft); border-radius: 20px; padding: 4px 10px; }
.pv-map { display: flex; align-items: center; gap: 8px; background: #ece4da; border-radius: 8px; padding: 10px 12px; font-size: 11px; color: var(--ink-body); overflow-wrap: anywhere; }
.pv-map__pin { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-fill); color: #fff; display: grid; place-items: center; }
.pv-map__pin svg { width: 12px; height: 12px; }
.pv-mapcap { font-size: 11px; color: var(--ink-body); margin-bottom: 6px; overflow-wrap: anywhere; }
.pv-mapwrap { aspect-ratio: 16/11; border-radius: 8px; overflow: hidden; background: #e9e2d8; }
.pv-mapwrap iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.1) sepia(.05); }
.pv-qr { display: flex; align-items: center; gap: 12px; }
.pv-qr img { width: 62px; height: 62px; border-radius: 6px; image-rendering: pixelated; }
.pv-sharebtn { font-size: 11px; font-weight: 700; color: #fff; background: var(--accent-fill); border-radius: 20px; padding: 8px 16px; }

.ed-hint { font-size: 14px; color: var(--ink-body); margin-bottom: 14px; }
.bio-choice .btn.is-on { background: var(--accent-fill); color: #fff; border-color: var(--accent-fill); }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, 92px); grid-auto-rows: 92px; justify-content: start; gap: 12px; }
.ph-tile { position: relative; width: 92px; height: 92px; border-radius: 12px; background: #eee center/cover; }
.ph-del { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(45,35,28,.6); color: #fff; display: grid; place-items: center; }
.ph-del svg { width: 12px; height: 12px; }
.ph-add { width: 92px; height: 92px; border: 2px dashed var(--accent-soft); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--accent); cursor: pointer; transition: border-color .2s; }
.ph-add:hover { border-color: var(--accent); } .ph-add svg { width: 24px; height: 24px; display: block; }
.row-item { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.row-item input { flex: 1; font: inherit; font-size: 14px; padding: 12px 16px; border: 1.5px solid var(--accent-soft); border-radius: var(--r-field); background: #fff; }
.row-item input:focus { border-color: var(--accent); outline: none; box-shadow: var(--ring); }
.row-item--2 { flex-wrap: wrap; }
.row-del { width: 40px; height: 40px; border-radius: 50%; background: var(--panel); color: var(--ink-muted); display: grid; place-items: center; flex: none; }
.row-del svg { width: 16px; height: 16px; }

/* --- AI --- */
.ai-card { max-width: 720px; margin-inline: auto; }
.ai-progress { font-size: 14px; color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.ai-q { font-size: 18px; color: var(--ink-title); line-height: 1.5; margin-bottom: 22px; }
.ai-track { height: 8px; background: #f0eae2; border-radius: 8px; margin-bottom: 26px; overflow: hidden; }
.ai-track span { display: block; height: 100%; background: var(--accent-fill); border-radius: 8px; transition: width .3s var(--ease); }
.ai-card textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink-title);
  padding: 14px 18px; border: 1.5px solid var(--accent-soft); border-radius: var(--r-card);
  background: #fff; min-height: 120px; resize: vertical; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none; overflow-wrap: anywhere; word-break: break-word;
}
.ai-card textarea::placeholder { color: var(--accent-soft); }
.ai-card textarea:focus { border-color: var(--accent); box-shadow: var(--ring); outline: none; }
.ai-variants { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ai-variant { background: var(--card); border-radius: var(--r-card); padding: 26px; }
.ai-variant h4 { font-weight: 400; text-transform: uppercase; color: var(--ink-head); font-size: 18px; margin-bottom: 14px; }
.ai-variant p { font-size: 14px; color: var(--ink-body); line-height: 1.6; margin-bottom: 18px; }

/* --- Cabinet --- */
.cab-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.cab-card { background: var(--card); border-radius: var(--r-card); padding: 24px; display: flex; gap: 20px; }
.cab-card__photo { width: 110px; height: 130px; border-radius: 12px; overflow: hidden; background: #fff; flex: none; }
.cab-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.cab-card__body { flex: 1; display: flex; flex-direction: column; }
.cab-card__name { font-size: 20px; color: var(--ink-head); text-transform: uppercase; }
.cab-card__dates { font-family: var(--font-display); font-size: 28px; color: var(--accent); margin: 4px 0 8px; }
.cab-card__tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--accent-fill); border-radius: 20px; padding: 4px 12px; margin-bottom: 12px; }
.cab-card__actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.cab-new { border: 2px dashed var(--accent-soft); border-radius: var(--r-card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 200px; text-align: center; padding: 24px; cursor: pointer; transition: border-color .2s, background .2s; }
.cab-new:hover { border-color: var(--accent); background: rgba(187,145,116,.05); }
.cab-new__ic { width: 54px; height: 54px; border-radius: 50%; background: var(--accent-fill); color: #fff; display: grid; place-items: center; flex: none; transition: background .2s; }
.cab-new__ic svg { width: 26px; height: 26px; }
.cab-new:hover .cab-new__ic { background: var(--accent-dark); }
.cab-new__txt { font-weight: 600; font-size: 15px; color: var(--accent-dark); }

/* --- Plaque / Checkout --- */
.opt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.opt-card { background: var(--card); border-radius: var(--r-card); overflow: hidden; }
.opt-card--best { border: 2px solid var(--accent); }
.opt-card__badge { background: #e6d7c9; color: #fff; text-align: center; font-size: 13px; font-weight: 600; padding: 8px; }
.opt-card__inner { padding: 30px; }
.opt-card__title { font-weight: 400; text-transform: uppercase; color: var(--ink-head); font-size: 20px; margin-bottom: 14px; }
.opt-card p { font-size: 14px; color: var(--ink-body); margin-bottom: 22px; }
.order { max-width: 560px; }
.order__row { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--accent-soft); font-size: 15px; color: var(--ink-body); }
.order__total { display: flex; justify-content: space-between; padding: 20px 0; font-size: 20px; color: var(--ink-head); }
.order__total b { font-family: var(--font-display); font-size: 32px; color: var(--accent); }

/* -------- Reveal -------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* -------- Responsive -------- */
@media (max-width: 1024px) {
  .hero__grid, .eb, .feat-head, .faq-grid { grid-template-columns: 1fr; }
  .hero__visual { display: block; }
  .hp { display: block; }
  .hp__photo { flex: none; min-height: 0; aspect-ratio: 16/10; }
  .feats, .share-items, .steps, .cards4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__support { grid-column: 1 / -1; }
  .share-band__fp { display: none; }
}
@media (max-width: 860px) {
  .header__link, .search, .icon-btn--tg { display: none; }
  .burger { display: grid; }
  .header__row { gap: 8px; min-height: 74px; }
  .brand__badge { height: 38px; }
  .header__create span { display: none; }
  .header__create { padding: 0; width: 44px; height: 44px; border-radius: 50%; }
  .header__create svg { width: 20px; height: 20px; }
  .icon-btn, .burger { width: 44px; height: 44px; }
  .lang button { padding: 7px 9px; font-size: 11px; }
  .cards3, .plans { grid-template-columns: 1fr; }
  .plan__inner { grid-template-columns: 1fr; }
  .teaser__top { grid-template-columns: 1fr; }
  .teaser__quote { max-width: 100%; padding-top: 30px; }
  .pub-hero { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .wizard { grid-template-columns: 1fr; }
  .wizard__bar { display: none; }
  .form-grid, .ai-variants, .cab-grid, .opt-cards { grid-template-columns: 1fr; }
  .photos-grid { grid-template-columns: repeat(3,1fr); }
  .editor-split { grid-template-columns: 1fr; }
  .editor-preview { position: static; margin: 24px 0 4px; }
}
@media (max-width: 560px) {
  .feats, .share-items, .steps, .cards4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__counter { flex-wrap: wrap; }
  .stories-head { flex-direction: column; }
  .teaser__life { flex-wrap: wrap; justify-content: center; }
  /* пропорциональное уменьшение точной десктоп-типографики на телефоне */
  .hero__title, .h-section, .eb__title, .plan__name, .teaser__name { font-size: 25px; line-height: 1.25; }
  .counter__num { font-size: 48px; }
  .ecard__dates, .plan__price, .teaser__dates { font-size: 38px; }
  .ecard__name, .feat__title { font-size: 21px; }
  .faq__q, .pcard__label { font-size: 17px; }
  .pub-hero__name { font-size: 32px; }
  .pub-hero__dates { font-size: 38px; }
  .info-grid, .photos-grid { grid-template-columns: 1fr; }
}
