/* =========================================================
   Ли & Ки v2 — система Leif («аптека на сыром льне»)
   + концепт бренда «Подпись и росток»: отбор, тишина, доверие.
   Замены шрифтов: PP Right Grotesk → Inter Tight 200,
   Söhne → Inter, Söhne Mono → IBM Plex Mono (все с кириллицей).
   ========================================================= */
:root {
  --bone: #FBF8F5; /* Жемчуг из брендбука, раньше был #fafaf9 */
  --ink: #000000;
  --stone: #e5e2dc;
  --linen: #edede7;
  --graphite: #595959;
  --silt: #d6d1c7;
  --blush: #ead1d0;
  --citron: #f3ffa9;

  --display: "Inter Tight", "Inter", Arial, sans-serif;
  --body: "Inter", Arial, sans-serif;
  --mono: "IBM Plex Mono", Menlo, monospace;

  --gutter: clamp(16px, 4.4vw, 64px);
  --section: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bone); color: var(--ink);
  font: 400 15px/1.38 var(--body); letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Типографика ---------- */
.d-lg, .d, .d-sm {
  font-family: var(--display); font-weight: 200; line-height: 1; letter-spacing: -.015em;
  text-wrap: balance;
}
.d-lg { font-size: clamp(44px, 5.2vw, 75px); }
.d    { font-size: clamp(36px, 3.6vw, 52px); }
.d-sm { font-size: 34px; }
.tag-mono {
  font: 400 11px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase;
}
.muted { color: var(--graphite); }
.lead { font-size: 18px; line-height: 1.33; max-width: 440px; text-wrap: pretty; }
p { text-wrap: pretty; }

/* ---------- Действия ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border: 1px solid var(--ink); background: var(--bone); color: var(--ink);
  font: 500 12px/1.2 var(--body); letter-spacing: .02em; text-transform: uppercase;
}
.btn:hover { background: var(--ink); color: var(--bone); }
.btn--block { width: 100%; padding-block: 16px; }
.ghost {
  display: inline-block; border-bottom: 1px solid var(--ink); padding-bottom: 1px;
  font: 500 13px/1.3 var(--body);
}
.ghost--mono { font: 400 11px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; }

/* ---------- Полоса и шапка ---------- */
.announce {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 48px; background: var(--blush); text-align: center;
  font: 400 12px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase;
}
.announce button { position: absolute; right: 16px; font: 300 20px/1 var(--body); }
.announce[hidden] { display: none; }
.nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 72px; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter);
}
.wordmark { justify-self: start; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.wordmark__ru { font: 200 26px/1 var(--display); letter-spacing: .06em; white-space: nowrap; }
.wordmark__kr { font: 400 9px/1 var(--mono); letter-spacing: .5em; text-indent: .5em; color: var(--graphite); }
.nav__menu { display: flex; gap: 32px; font: 500 13px/1 var(--body); }
.nav__menu a[aria-current] { border-bottom: 1px solid var(--ink); }
.nav__menu a:hover { border-bottom: 1px solid var(--ink); }
.nav__tools { justify-self: end; display: flex; align-items: center; gap: 22px; font: 500 13px/1 var(--body); }
.nav__tools svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.3; }
.burger { display: none; }

/* ---------- Первый экран: редакционный разворот 50/50 ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100svh - 112px); max-height: 940px; }
.hero__img { position: relative; overflow: hidden; background: var(--linen); }
.hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; }
.hero__text {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px;
  padding: 64px clamp(32px, 7vw, 120px);
}
.hero__text .lead { max-width: 400px; }
.signature { display: flex; align-items: center; gap: 14px; margin-top: 12px; color: var(--graphite); }
.signature svg { width: 26px; height: 38px; color: var(--ink); }

/* ---------- Полосы с сеткой ---------- */
.band { padding-block: var(--section); }
.band__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-bottom: 40px;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 20px; }

/* карточка товара: квадрат, имя слева, цена справа, бирка внизу */
.card { display: flex; flex-direction: column; gap: 12px; }
.card__img { position: relative; aspect-ratio: 1; background: var(--linen); overflow: hidden; }
.card__img > img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--citron); padding: 6px 8px; }
.card__row { display: flex; justify-content: space-between; gap: 16px; font-size: 16px; line-height: 1.3; }
.card__name { font-weight: 400; }
.card:hover .card__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card__family { color: var(--graphite); }

/* натюрморт: упаковка на камне, мягкая тень, без декора */
.still { position: absolute; inset: 0; display: grid; place-items: center; }
.still svg { height: 58%; width: auto; }
.still--stone { background: var(--stone); }
.still--linen { background: var(--linen); }
.still img { width: 100%; height: 100%; object-fit: cover; }
.line__qty button:disabled { opacity: .3; cursor: default; }

/* ---------- Редакционный разворот: фото + текст ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 720px; }
.split__img { position: relative; overflow: hidden; background: var(--linen); }
.split__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.split__text {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px;
  padding: 64px clamp(32px, 7vw, 120px);
}
.split__text p { max-width: 420px; }
.split--blush .split__text { background: var(--blush); }
.split--reverse .split__img { order: 2; }

/* ---------- Семейства ---------- */
.family { display: flex; flex-direction: column; gap: 14px; }
.family__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--linen); }
.family__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.family p { color: var(--graphite); max-width: 300px; }

/* ---------- Журнал ---------- */
.post { display: flex; flex-direction: column; gap: 12px; }
.post__img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--linen); }
.post__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.post__title { font-size: 20px; line-height: 1.25; max-width: 380px; }
.post:hover .post__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ---------- Коллекция: семейства слева, витрина справа ---------- */
.collection { display: grid; grid-template-columns: minmax(240px, 25%) 1fr; gap: 0 40px; padding-block: 40px var(--section); }
.families-list { align-self: start; position: sticky; top: 24px; border-top: 1px solid var(--stone); }
.fam-row {
  display: grid; grid-template-columns: 56px 1fr 14px; align-items: center; gap: 14px;
  width: 100%; border-bottom: 1px solid var(--stone); text-align: left;
}
.fam-row__thumb { position: relative; width: 56px; height: 56px; overflow: hidden; background: var(--linen); }
.fam-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fam-row__dot { width: 12px; height: 12px; border: 1px solid var(--ink); border-radius: 50%; }
.fam-row[aria-pressed="true"] .fam-row__dot { background: var(--ink); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 56px; border-bottom: 1px solid var(--stone); padding-bottom: 56px; }
.feature__img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--linen); }
.feature__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.feature__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; padding: 40px clamp(24px, 4vw, 64px); }
.feature__text p { max-width: 380px; }

/* ---------- Товар ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; }
.pdp__media { display: flex; flex-direction: column; gap: 2px; }
.pdp__frame { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--linen); }
.pdp__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.pdp__info {
  align-self: start; position: sticky; top: 24px;
  display: flex; flex-direction: column; gap: 20px;
  padding: 56px clamp(24px, 6vw, 104px);
}
.pdp__price { font-size: 18px; }
.pdp__lead { font-size: 16px; line-height: 1.45; max-width: 440px; }
.acc { border-top: 1px solid var(--stone); }
.acc:last-child { border-bottom: 1px solid var(--stone); }
.acc summary {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 0; cursor: pointer; list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font: 300 18px/1 var(--body); }
.acc[open] summary::after { content: "−"; }
.acc p { padding-bottom: 18px; max-width: 460px; color: var(--graphite); }
.qty-row { display: grid; grid-template-columns: 120px 1fr; gap: 8px; }
.qty { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--ink); padding: 0 12px; }
.qty button { font: 400 18px/1 var(--body); padding: 8px; }

/* ---------- Подвал: чернильная зона ---------- */
.footer { background: var(--ink); color: var(--bone); padding: 80px 0 28px; margin-top: var(--section); }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 1.4fr; gap: 32px; }
.footer h4 { color: var(--silt); margin-bottom: 16px; }
.footer__cols a { display: block; font-size: 13px; line-height: 1.9; }
.footer__cols a:hover { text-decoration: underline; }
/* Подписка всегда в правой широкой колонке, даже если колонка контактов скрыта (контакты не заполнены в админке) */
.footer__cols > form { grid-column: -2 / -1; }
.footer__cols .consent a { display: inline; font-size: inherit; line-height: inherit; }
.subscribe { display: flex; border-bottom: 1px solid var(--bone); margin-top: 6px; }
.subscribe input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--bone); font: 400 15px/1 var(--body); padding: 10px 0; }
.subscribe input::placeholder { color: var(--silt); }
.subscribe button { font: 400 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.footer__mark { margin-top: 96px; font: 200 clamp(64px, 18vw, 260px)/.9 var(--display); letter-spacing: .02em; white-space: nowrap; }
.footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; color: var(--silt); }

/* уведомление о добавлении в корзину */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, calc(100% + 40px));
  background: var(--ink); color: var(--bone); padding: 14px 20px; visibility: hidden;
  transition: transform .4s ease, visibility 0s .4s;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .4s ease; }


/* =========================================================
   Внутренние страницы
   ========================================================= */
.page-head { padding-block: 56px 40px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; border-bottom: 1px solid var(--stone); }
.page-head p { max-width: 380px; color: var(--graphite); }

/* ряды-списки: принципы, шаги, услуги */
.rows { border-top: 1px solid var(--stone); }
.row {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--stone);
}
.row h3 { font: 400 22px/1.25 var(--body); }
.row p { color: var(--graphite); max-width: 520px; }

/* услуга: карточка-разворот как «Category Feature» у Leif */
.service { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--stone); }
.service:nth-child(even) .service__img { order: 2; }
.service__img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--linen); }
.service__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.service__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; padding: 48px clamp(24px, 6vw, 104px); }
.service__text p { max-width: 400px; }

/* статья */
.article { display: grid; grid-template-columns: 1fr 1fr; }
.article__media { position: relative; }
.article__media .pdp__frame { position: sticky; top: 0; }
.article__body { padding: 56px clamp(24px, 6vw, 104px) 64px; display: flex; flex-direction: column; gap: 20px; }
.article__body .lead { max-width: 520px; }
.prose { max-width: 560px; }
.prose h2 { font: 400 22px/1.25 var(--body); margin: 32px 0 12px; }
.prose p { font-size: 16px; line-height: 1.55; margin-bottom: 14px; }
.prose ul { border-top: 1px solid var(--stone); margin: 8px 0 18px; }
.prose li { padding: 12px 0; border-bottom: 1px solid var(--stone); font-size: 16px; }
.prose li::before { content: "— "; color: var(--graphite); }

/* журнал: первая статья разворотом, дальше сетка */
.journal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 20px; }

/* формы: волосяные линии, острые углы */
.form { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
.form[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--stone); border-radius: 0; background: var(--bone); outline: 0;
  padding: 13px 14px; font: 400 15px/1.3 var(--body); color: var(--ink); resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.check input { accent-color: #000; width: 16px; height: 16px; margin: 0; flex: none; }
.check.consent { align-items: flex-start; }
.check.consent input { margin-top: 2px; }
.radio-rows { border-top: 1px solid var(--stone); }
.radio-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--stone); cursor: pointer; }
.radio-row input { accent-color: #000; width: 14px; height: 14px; margin: 0; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--stone); margin-bottom: 28px; }
.tabs button { padding: 0 0 12px; margin-bottom: -1px; border-bottom: 1px solid transparent; color: var(--graphite); }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.note { color: var(--graphite); font-size: 13px; }
.form-error { background: var(--blush); padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.btn:disabled { opacity: .45; cursor: default; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.narrow { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100svh - 112px); }
.narrow__img { position: relative; overflow: hidden; background: var(--linen); }
.narrow__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.narrow__body { padding: 64px clamp(24px, 6vw, 104px); display: flex; flex-direction: column; justify-content: center; }

/* корзина и оформление */
.checkout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0 64px; padding-block: 40px var(--section); }
.summary { align-self: start; position: sticky; top: 24px; background: var(--linen); padding: 28px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--stone); }
.line__img { position: relative; width: 72px; height: 72px; overflow: hidden; }
.line__name { display: block; font-size: 15px; line-height: 1.3; }
.line__qty { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.line__qty button[data-q="-1"], .line__qty button[data-q="1"] {
  display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--ink); font: 400 14px/1 var(--body);
}
.line__qty span { min-width: 14px; text-align: center; font-variant-numeric: tabular-nums; }
.line__remove { margin-left: 8px; padding-bottom: 1px; font: 400 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; border-bottom: 1px solid var(--ink); }
.line > span:last-child { white-space: nowrap; align-self: start; padding-top: 2px; }
.sum { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--stone); }
.sum--total { font-size: 18px; border-bottom: 0; padding-top: 18px; }
.empty-state { padding: 80px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.empty-state[hidden], .checkout[hidden] { display: none; }

@media (max-width: 760px) {
  .page-head { flex-direction: column; align-items: flex-start; padding-block: 36px 28px; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .service, .article, .narrow, .checkout { grid-template-columns: 1fr; }
  .service:nth-child(even) .service__img { order: 0; }
  .article__media .pdp__frame { position: relative; }
  .narrow { min-height: 0; }
  .narrow__img { aspect-ratio: 4 / 3; }
  .narrow__body, .article__body, .service__text { padding: 32px 20px 48px; }
  .journal-grid { grid-template-columns: 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; margin-bottom: 32px; }
}

/* ---------- Главная: семейства на месте, наборы на черном, лента ---------- */
.home-coll { display: grid; grid-template-columns: minmax(220px, 1fr) 3fr; gap: 40px; }
.home-coll .feature { margin-bottom: 32px; padding-bottom: 32px; }
.ink-band { background: var(--ink); color: var(--bone); }
.ink-band .ghost { color: var(--bone); border-color: var(--bone); }
.ink-band .card__family { color: #9a9a9a; }
.badge { color: var(--ink); }
.card__row > span:last-child { white-space: nowrap; }
.rows--compact { width: 100%; max-width: 440px; }
.follow__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.follow__head p { color: var(--graphite); max-width: 360px; margin-top: 12px; }
.follow__links { display: flex; gap: 24px; }
.follow__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; }
.follow__grid a { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--linen); }
.follow__grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.follow__grid a:hover img { opacity: .85; }

/* ---------- Блок доверия: фото во всю ширину и плашка поверх ---------- */
.trust { position: relative; min-height: 760px; display: flex; align-items: flex-end; }
.trust > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.trust__card { position: relative; background: var(--bone); margin: 0 0 var(--gutter) var(--gutter); padding: 48px; max-width: 560px; display: grid; gap: 20px; }
.trust__card .ghost { justify-self: start; }
.trust__list { display: grid; border-top: 1px solid var(--stone); }
.trust__list div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--stone); }
.trust__list h3 { font-size: 15px; font-weight: 500; }
.trust__list p { color: var(--graphite); font-size: 14px; }

/* ---------- Подбор ухода: карточки услуг, шаги, призыв на черном ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 20px; }
.svc-card { display: grid; gap: 14px; align-content: start; }
.svc-card__img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--linen); }
.svc-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.svc-card p { color: var(--graphite); max-width: 460px; }
.svc-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.steps > div { padding: 24px 24px 0 0; display: grid; gap: 10px; align-content: start; }
.steps > div + div { padding-left: 24px; border-left: 1px solid var(--stone); }
.steps__num { font: 200 75px/1 var(--display); letter-spacing: -.015em; }
.steps p { color: var(--graphite); max-width: 300px; }
.cta-ink { background: var(--ink); color: var(--bone); padding-block: 96px; }
.cta-ink .wrap { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.cta-ink p { color: #a9a9a9; max-width: 420px; margin-top: 16px; }
.btn--inv { border-color: var(--bone); color: var(--bone); background: transparent; }
.btn--inv:hover { background: var(--bone); color: var(--ink); }

/* ---------- О нас: путь средства ---------- */
.about-head { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; align-items: end; padding-block: 96px 64px; }
.about-head h1 { margin: 0; }
.journey-wrap { padding-bottom: 96px; }
.journey { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.journey > div { display: grid; grid-template-rows: auto auto auto 1fr; gap: 12px; align-content: start; padding: 20px 16px 0 0; }
.journey > div + div { padding-left: 16px; border-left: 1px solid var(--stone); }
.journey__num { font: 200 52px/1 var(--display); }
/* высота фиксирована, а не через пропорцию: у первой колонки нет левого отступа, и она шире остальных */
.journey__img { position: relative; height: clamp(220px, 22vw, 340px); overflow: hidden; background: var(--linen); }
.journey__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.journey p { color: var(--graphite); font-size: 14px; }
.journey__note { margin-top: 32px; }
.badge-citron { display: inline-block; background: var(--citron); padding: 6px 8px; font: 400 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; }

/* ---------- Вход в кабинет: форма по центру, без фото ---------- */
.auth { display: grid; place-items: center; min-height: calc(100svh - 112px); padding: 64px var(--gutter); }
.auth__box { width: 100%; max-width: 440px; }
.auth__title { margin-bottom: 32px; text-align: center; }
.auth .tabs { justify-content: center; }

/* ---------- Широкая полоса с фото модели ---------- */
.banner { position: relative; height: clamp(240px, 28vw, 460px); overflow: hidden; background: var(--linen); }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Каналы связи крупными строками ---------- */
.channels { border-top: 1px solid var(--ink); }
.channels a { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--stone); }
.channels .d-sm { transition: padding-left .3s; }
.channels a:hover .d-sm { padding-left: 12px; }
.channels__arrow { font: 200 34px/1 var(--display); }

/* ---------- Личный кабинет: сводка ---------- */
.cab-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; padding-block: 64px 32px; }
.cab-head p { color: var(--graphite); margin-top: 12px; }
.cab-head__side { display: flex; align-items: center; gap: 20px; }
.demo-note { display: inline-block; background: var(--citron); padding: 6px 8px; font: 400 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.cab { display: grid; gap: 20px; padding-bottom: 96px; }
.cab-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.tile { border: 1px solid var(--stone); padding: 28px; display: grid; gap: 16px; align-content: start; }
.tile h3 { font: 200 34px/1.05 var(--display); letter-spacing: -.01em; }
.tile .btn { justify-self: start; }
.tile--blush { background: var(--blush); border-color: var(--blush); }
.tile--ink { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.tile--ink p { color: #a9a9a9; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { position: relative; width: 64px; height: 64px; overflow: hidden; background: var(--linen); flex: none; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.routine { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.routine h3 { margin-bottom: 16px; }
.step { display: grid; grid-template-columns: 28px 64px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--stone); }
.step:first-of-type { border-top: 1px solid var(--ink); }
.step small, .order-line small { display: block; color: var(--graphite); font-size: 13px; margin-top: 2px; }
.track { display: grid; grid-template-columns: repeat(4, 1fr); }
.track span { padding-top: 10px; border-top: 2px solid var(--stone); font: 400 11px/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--graphite); }
.track span.on { border-color: var(--ink); color: var(--ink); }
.orders { border-top: 1px solid var(--ink); }
.orders details { border-bottom: 1px solid var(--stone); }
.orders summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 1fr 1fr auto 24px; gap: 16px; align-items: center; padding: 18px 0; }
.orders summary::-webkit-details-marker { display: none; }
.orders summary::after { content: "+"; font: 400 16px/1 var(--mono); text-align: right; }
.orders details[open] summary::after { content: "−"; }
.status { justify-self: start; padding: 6px 8px; font: 400 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; border: 1px solid var(--ink); }
.status--done { border-color: var(--stone); color: var(--graphite); }
.status--way { background: var(--citron); border-color: var(--citron); }
.order-body { display: grid; gap: 10px; padding-bottom: 24px; }
.order-body .ghost { justify-self: start; margin-top: 6px; }
.order-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100svh - 112px); display: grid; align-items: center; padding-block: 96px; }
.notfound__in { display: grid; gap: 24px; justify-items: start; }
.notfound__actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* ---------- Политика и согласия ---------- */
.legal { max-width: 760px; padding-block: 64px 96px; display: grid; gap: 16px; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { margin-top: 24px; }
.legal p, .legal li { line-height: 1.55; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal__draft { justify-self: start; background: var(--citron); padding: 6px 8px; }
.consent { font-size: 13px; color: var(--graphite); }
.consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.consent--footer { margin-top: 12px; color: inherit; opacity: .75; }
.footer__legal a:hover { text-decoration: underline; }

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .journey > div + div { padding-left: 0; border-left: 0; }
  .journey > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--stone); }
  .about-head { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-coll { grid-template-columns: 1fr; }
  .follow__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .collection { grid-template-columns: 1fr; }
  .families-list { position: static; margin-bottom: 32px; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__cols > form { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .cab-grid, .routine { grid-template-columns: 1fr; }
  .orders summary { grid-template-columns: 1fr auto 24px; }
  .orders summary .hide-sm { display: none; }
  .step { grid-template-columns: 24px 56px 1fr; }
  .step > .tag-mono:last-child { display: none; }
  .channels a { grid-template-columns: 1fr auto; }
  .channels .tag-mono { display: none; }
  .svc-grid, .steps { grid-template-columns: 1fr; }
  .steps > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--stone); }
  .trust { min-height: 0; flex-direction: column; align-items: stretch; }
  .trust > img { position: relative; aspect-ratio: 4 / 5; height: auto; }
  .trust__card { margin: 0; padding: 32px var(--gutter); max-width: none; }
  .trust__list div { grid-template-columns: 1fr; gap: 4px; }
  .follow__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { grid-template-columns: auto 1fr auto; height: 60px; }
  .nav__menu { display: none; }
  .nav__menu.is-open {
    display: flex; flex-direction: column; gap: 18px; position: absolute; left: 0; right: 0; top: 100px; z-index: 30;
    background: var(--bone); padding: 24px var(--gutter) 32px; border-bottom: 1px solid var(--stone); font-size: 20px;
  }
  .burger { display: block; font: 500 13px/1 var(--body); }
  .wordmark { justify-self: center; grid-column: 2; }
  .burger { grid-column: 1; grid-row: 1; }
  .nav__tools { grid-column: 3; }
  .nav__tools .hide-sm { display: none; }
  .hero, .split, .pdp, .feature { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero__img { aspect-ratio: 4 / 5; }
  .hero__text, .split__text { padding: 40px 20px 48px; }
  .split { min-height: 0; }
  .split__img { aspect-ratio: 4 / 5; }
  .split--reverse .split__img { order: 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .band__head { flex-direction: column; align-items: flex-start; }
  .pdp__info { position: static; padding: 32px 20px; }
  .footer__cols { grid-template-columns: 1fr; }
  .announce { font-size: 10px; padding: 0 40px; }
}

/* ---------- Атрибут hidden сильнее любых display ---------- */
[hidden] { display: none !important; }

/* ---------- Избранное ---------- */
.card-wrap { position: relative; }
.fav { position: absolute; top: 10px; right: 10px; z-index: 3; width: 38px; height: 38px; display: grid; place-items: center; background: rgba(251, 248, 245, .88); }
.fav svg, .fav-text svg, .nav__fav svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.4; }
.fav:hover svg, .fav-text:hover svg { stroke-width: 1.8; }
.fav[aria-pressed="true"] svg, .fav-text[aria-pressed="true"] svg { fill: var(--ink); }
.fav-text { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; font: 400 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.nav__fav { position: relative; display: inline-flex; align-items: center; gap: 4px; }
.nav__fav svg { width: 20px; height: 20px; stroke-width: 1.3; }
.nav__fav [data-fav-count] { font: 400 11px/1 var(--mono); }
.fav-guest { margin-bottom: 32px; }
.fav-grid { padding-bottom: 96px; }

/* ---------- Вход по коду ---------- */
.auth__lead { text-align: center; color: var(--graphite); margin: -16px 0 28px; font-size: 15px; line-height: 1.45; }
.auth__links { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.auth__links button:disabled { color: var(--graphite); border-color: transparent; cursor: default; }
.auth .form-error { margin-top: 18px; }
.code-input { font: 400 28px/1 var(--mono) !important; letter-spacing: .4em; text-align: center; }

/* ---------- Профиль в кабинете ---------- */
.field select {
  width: 100%; border: 1px solid var(--stone); border-radius: 0; background: var(--bone); outline: 0; appearance: none;
  padding: 13px 40px 13px 14px; font: 400 15px/1.3 var(--body); color: var(--ink);
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.field select:focus { border-color: var(--ink); }
.form--wide { max-width: none; }
.form__actions { display: flex; align-items: center; gap: 24px; }
.tile .ghost { justify-self: start; }
.cab-head + .form-error { margin-bottom: 24px; }

/* ---------- Сохраненные адреса: кабинет и оформление заказа ---------- */
.addr-list { display: grid; gap: 8px; }
.addr { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--stone); }
.addr input[type="radio"] { margin: 0; }
.addr.is-on { border-color: var(--ink); }
.addr__text { display: grid; gap: 4px; font-size: 14px; }
.addr__text .tag-mono { color: var(--graphite); }
.addr__acts { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.addr-form, .addr-new { display: grid; gap: 16px; }
[data-addr-add] { justify-self: start; }
@media (max-width: 760px) { .addr { grid-template-columns: auto 1fr; } .addr__acts { grid-column: 1 / -1; justify-content: flex-start; } }

