/* letoyvan.ru — Le Toy Van, премиальная витрина.
   Главное правило: всё оформление монохромное, цвет приходит только с фотографий игрушек.
   Montserrat (замена Gotham) + Garamond курсивом для подзаголовков и цитат — «дорогая» деталь. */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/montserrat-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/montserrat-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/montserrat-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/montserrat-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/montserrat-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/montserrat-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/cormorant-garamond-cyrillic-400-italic.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/eb-garamond-cyrillic-400-italic.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/eb-garamond-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  /* Фирменный монохром — единственные цвета оформления (брендбук, с. 5) */
  --ink: #000; --charcoal: #595859; --white: #fff;
  /* Mid Grey брендбука (#7f7f7f) даёт на белом 4.0:1 — для мелкого текста мало.
     Для надписей берём чуть темнее (4.9:1), исходный остаётся для линий и значков. */
  --mid: #717171; --mid-soft: #7f7f7f;
  --paper: #faf7f4; --paper-2: #f2ede8;
  --line: #e7e7e7; --line-warm: #ded7cf;
  --overlay: rgb(0 0 0 / .5);

  --font-sans: "Montserrat", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;

  --fs-display: clamp(2.5rem, 5.5vw, 5rem);
  --fs-h1: clamp(1.75rem, 3.5vw, 2.75rem);
  --fs-h2: clamp(1.4rem, 2.5vw, 2.1rem);
  --fs-serif-ld: clamp(1.15rem, 2vw, 1.6rem);
  --ls-eyebrow: .16em; --ls-title: .04em;

  --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(48px, 7vw, 112px);
  --maxw: 1440px;
  --t: 200ms; --t-slow: 400ms; --ease: cubic-bezier(.2,.6,.2,1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--white); color: var(--charcoal); overflow-x: clip; overflow-wrap: break-word;
  font: 400 1rem/1.65 var(--font-sans); font-feature-settings: "liga","kern"; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-weight: 600; color: var(--ink); line-height: 1.15; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); text-transform: uppercase; letter-spacing: var(--ls-title); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; }
.narrow { max-width: 760px; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; line-height: 1.4; color: var(--charcoal); }
.lede { font-size: var(--fs-serif-ld); max-width: 60ch; }
.eyebrow { font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: var(--ls-eyebrow); color: var(--mid); margin: 0 0 .5em; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; }
.skip:focus { top: 10px; }
.sec { padding-block: var(--section-y); }
.sec--narrow { padding-block: clamp(32px, 4vw, 56px); }
.sec__head { margin-bottom: var(--s6); }

/* кнопки: квадратные, монохромные, всегда с иконкой */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px;
  border: 1px solid transparent; border-radius: 0; cursor: pointer; text-decoration: none; text-align: center;
  font: 500 .8125rem/1.2 var(--font-sans); text-transform: uppercase; letter-spacing: .1em;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--black { background: var(--ink); color: #fff; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--sm { min-height: 40px; padding: 8px 16px; }
.btn--lg { min-height: 56px; padding: 16px 32px; }
.btn--block { width: 100%; }
@media (hover: hover) {
  .btn--black:hover { background: var(--charcoal); }
  .btn--line:hover { background: var(--ink); color: #fff; }
}
.iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; background: none;
  color: var(--ink); cursor: pointer; text-decoration: none; }
.iconbtn svg { width: 22px; height: 22px; }
.iconbtn--sm { width: 36px; height: 36px; } .iconbtn--sm svg { width: 18px; height: 18px; }
.iconbtn.is-done { background: var(--ink); color: #fff; }
.copy__msg { font-size: .8rem; color: var(--charcoal); } .copy__msg:empty { display: none; }
.more { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.more svg { width: 16px; height: 16px; transition: translate var(--t) var(--ease); }
.more:hover svg { translate: 4px 0; }

/* верхняя плашка + шапка */
.topbar { background: var(--ink); color: #fff; }
.topbar .wrap { display: flex; justify-content: center; align-items: center; min-height: 40px; text-align: center;
  font-size: .6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: var(--ls-eyebrow); }
.hdr { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line-warm); }
.hdr__in { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: var(--s4); min-height: 76px; }
.logo { display: grid; justify-items: center; gap: 4px; text-decoration: none; justify-self: center; }
.logo img { width: clamp(124px, 20vw, 190px); height: auto; }
.logo__tag { font-size: .8rem; color: var(--charcoal); }
.hdr__u { display: flex; align-items: center; gap: 4px; justify-self: end; }
.hdr__u .btn span { display: none; }
@media (min-width: 1024px) { .hdr__u .btn span { display: inline; } }
@media (max-width: 1023px) { .hdr__tel { display: none; } }

.nav { display: none; border-top: 1px solid var(--line-warm); }
@media (min-width: 1024px) {
  .hdr__menu { display: none; }
  .hdr__in { grid-template-columns: 1fr auto 1fr; }
  .logo { justify-self: center; }
  .nav { display: block; }
  .nav__in { display: flex; justify-content: center; align-items: center; gap: var(--s5); min-height: 52px; }
  .nav__a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 2px; text-decoration: none; color: var(--charcoal);
    font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: var(--ls-eyebrow);
    border-bottom: 1px solid transparent; transition: color var(--t), border-color var(--t); }
  .nav__a svg { width: 16px; height: 16px; }
  .nav__a:hover, .nav__a.is-cur { color: var(--ink); border-color: var(--ink); }
  /* Панель раскрытого каталога центрируется по СТРАНИЦЕ, а не по пункту меню:
     «Каталог» стоит слева, и отсчёт от него уводил половину панели за край экрана. */
  .nav { position: relative; }
  .nav__item { position: static; }
  .mega { position: absolute; left: 50%; translate: -50% 8px; top: 100%; z-index: 60;
    width: min(1100px, 100% - var(--gutter) * 2);
    background: var(--white); border: 1px solid var(--line); padding: var(--s7) var(--s6);
    opacity: 0; visibility: hidden; transition: opacity var(--t) var(--ease), translate var(--t) var(--ease), visibility 0s var(--t); }
  .nav__item:hover .mega, .nav__item:focus-within .mega { opacity: 1; visibility: visible; translate: -50% 0; transition-delay: 0s; }
  .mega__in { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--s7); width: 100%; }
}
.mega__h { font-size: .6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: var(--ls-eyebrow); color: var(--mid); margin: 0 0 var(--s4); }
.mega__list { list-style: none; margin: 0 0 var(--s6); padding: 0; display: grid; gap: 2px; }
.mega__list a { display: flex; align-items: center; gap: 10px; padding: 7px 0; text-decoration: none; color: var(--charcoal); font-size: .9rem; }
.mega__list a svg { width: 18px; height: 18px; color: var(--ink); flex: none; }
.mega__list a:hover { color: var(--ink); }
.mega__list small { margin-left: auto; color: var(--mid); font-size: .75rem; }
.mega__note .serif { font-size: 1.15rem; margin-bottom: var(--s5); }

/* карточка товара */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 40px) clamp(14px, 2vw, 32px); }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pc { position: relative; display: flex; flex-direction: column; min-width: 0; }
.pc__link { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; }
.pc__media { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: var(--white); overflow: hidden; }
.pc__media img { width: 100%; height: 100%; object-fit: contain; transition: scale var(--t-slow) var(--ease); }
@media (hover: hover) { .pc:hover .pc__media img { scale: 1.03; } }
.pc__body { display: grid; gap: 4px; min-width: 0; }
.pc__eyebrow { font-size: .6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: var(--ls-eyebrow); color: var(--mid); }
/* название не обрезаем: на узком экране длинное имя уходило под срез. Карточки в
   ряду всё равно выравниваются по subgrid, поэтому высота не разъезжается. */
.pc__name { font-size: .9375rem; font-weight: 500; color: var(--ink); line-height: 1.4; }
.pc__art { font-size: .8125rem; color: var(--mid); font-variant-numeric: tabular-nums; }
.pc__ask { margin-top: 10px; align-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 0 0 3px;
  border: 0; border-bottom: 1px solid var(--ink); background: none; color: var(--ink); cursor: pointer;
  font: 500 .6875rem/1.2 var(--font-sans); text-transform: uppercase; letter-spacing: .1em; }
.pc__ask svg { width: 14px; height: 14px; }
.pc__badges { position: absolute; top: 10px; left: 10px; display: grid; gap: 6px; justify-items: start; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; background: var(--ink); color: #fff;
  font: 500 .625rem/1.2 var(--font-sans); text-transform: uppercase; letter-spacing: .1em; }
.badge--line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.badge--age { background: transparent; color: var(--ink); padding: 0; gap: 3px; align-items: baseline; }
.badge--age b { font-size: .95rem; font-weight: 600; }
.badge--age i { font-style: normal; font-size: .5625rem; border-bottom: 1px solid var(--ink); }
.noimg { display: grid; place-items: center; width: 100%; aspect-ratio: 1; background: var(--paper); color: var(--line-warm); }
.noimg svg { width: 32%; height: 32%; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(72%, 300px); gap: var(--s5); overflow-x: auto;
  scroll-snap-type: x mandatory; padding-bottom: var(--s4); }
.rail > * { scroll-snap-align: start; min-width: 0; }
.rail { max-width: 100%; scrollbar-width: thin; }
@media (min-width: 1024px) { .rail { grid-auto-columns: calc((100% - 3 * var(--s5)) / 4); } }

/* заголовок страницы, хлебные крошки */
.phead { padding-block: var(--s7) var(--s6); }
.phead--prod { padding-bottom: 0; }
.phead__count { font-size: .8125rem; color: var(--mid); margin: var(--s4) 0 0; text-transform: uppercase; letter-spacing: .1em; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 var(--s5); padding: 0; list-style: none;
  font-size: .75rem; color: var(--mid); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-warm); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* карточка-страница товара */
.prod { padding-block: var(--s5) var(--s7); }
.prod__grid { display: grid; gap: var(--s7); align-items: start; }
@media (min-width: 1024px) { .prod__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(48px, 6vw, 96px); } }
.gal { min-width: 0; }
.gal__main { display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: var(--white); cursor: zoom-in; }
.gal__main img { width: 100%; height: 100%; object-fit: contain; }
.gal__thumbs { display: flex; gap: 10px; margin-top: var(--s4); overflow-x: auto; padding-bottom: 4px; }
.gal__t { flex: none; width: 72px; height: 72px; padding: 4px; border: 1px solid var(--line); background: var(--white); cursor: pointer; }
.gal__t img { width: 100%; height: 100%; object-fit: contain; }
.gal__t[aria-pressed="true"] { border-color: var(--ink); }
.noimg--lg { aspect-ratio: 1; }
.prod__info h1 { margin-bottom: .35em; }
.prod__en { font-size: 1.25rem; margin: -.2em 0 1.2em; }
.prod__art { display: flex; align-items: center; gap: 10px; padding: var(--s4) 0; border-block: 1px solid var(--line);
  font-size: .8125rem; text-transform: uppercase; letter-spacing: .1em; color: var(--mid); }
.prod__art b { font-size: 1.05rem; letter-spacing: .02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.prod__stock { margin: var(--s5) 0 0; font-size: .9375rem; }
.prod__short { margin-top: var(--s4); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s5); }
@media (max-width: 520px) { .actions .btn { width: 100%; } }
.prod__buy { margin-top: var(--s4); font-size: .875rem; color: var(--mid); }
.prod__buy a { color: var(--ink); }
.trust { display: flex; flex-wrap: wrap; gap: 10px var(--s5); list-style: none; margin: var(--s6) 0 0; padding: var(--s5) 0 0;
  border-top: 1px solid var(--line); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--charcoal); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--ink); }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-weight: 400; }
.specs th { width: 42%; color: var(--mid); font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; }
.specs td { color: var(--ink); font-variant-numeric: tabular-nums; }
.prose p { max-width: 68ch; }

/* модальная заявка */
.lead { width: min(620px, 100% - 24px); max-height: min(92dvh, 900px); margin: auto; padding: 0; border: 1px solid var(--line);
  border-radius: 0; background: var(--white); color: var(--charcoal); overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 20px 60px rgb(0 0 0 / .12); }
.lead::backdrop { background: var(--overlay); }
.lead__in { padding: clamp(24px, 4vw, 40px); }
.lead__head { display: flex; align-items: start; justify-content: space-between; gap: var(--s4); }
.lead__head h2 { margin: 0; font-size: 1.4rem; text-transform: uppercase; letter-spacing: var(--ls-title); }
.lead__lede { margin: 0 0 var(--s5); font-size: 1.15rem; }
.lead__f { display: grid; gap: var(--s4); }
.row2 { display: grid; gap: var(--s4); }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.fl { display: grid; gap: 6px; min-width: 0; }
.fl > span { font-size: .75rem; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--charcoal); }
.fl i, .fc i { color: var(--ink); font-style: normal; }
.lead input:not([type=checkbox]), .lead textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 0; background: var(--white); color: var(--ink); font: 400 1rem var(--font-sans); }
.lead textarea { resize: vertical; }
.lead input:focus, .lead textarea:focus { outline: none; border-color: var(--ink); }
.lead input[aria-invalid="true"] { border-color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.fl__err { font-size: .8125rem; color: var(--ink); font-weight: 500; }
.fl__err:empty { display: none; }
.fc { display: flex; align-items: start; gap: 10px; font-size: .875rem; }
.fc input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s4); }
.lead__status { margin: 10px 0 0; font-size: .875rem; font-weight: 500; color: var(--ink); }
.lead__status:empty { display: none; }
.lead__done { text-align: center; padding: var(--s7) var(--s4); }
.done__ic { width: 44px; height: 44px; margin: 0 auto var(--s4); color: var(--ink); }

/* шторка меню на телефоне */
.drawer { width: min(400px, 100%); height: 100dvh; max-height: 100dvh; margin: 0 auto 0 0; padding: 0; border: 0;
  background: var(--white); overflow: auto; }
.drawer::backdrop { background: var(--overlay); }
.drawer__in { padding: var(--s4) var(--s4) calc(32px + env(safe-area-inset-bottom)); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
.drawer__head img { width: 150px; }
.drawer__h { margin: var(--s5) 0 8px; font-size: .6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow); color: var(--mid); }
.drawer__list { list-style: none; margin: 0; padding: 0; }
.drawer__list a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0;
  border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .9375rem; }
.drawer__list a svg { width: 20px; height: 20px; flex: none; }
.drawer__list small { margin-left: auto; color: var(--mid); font-size: .75rem; }
.drawer .btn { margin-top: var(--s6); }

/* плавающая кнопка связи */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; cursor: pointer;
  font: 500 .75rem/1.2 var(--font-sans); text-transform: uppercase; letter-spacing: .1em;
  box-shadow: 0 10px 30px rgb(0 0 0 / .2); }
.fab svg { width: 16px; height: 16px; }
@media (max-width: 560px) { .fab span { display: none; } .fab { padding: 14px; } }

/* подвал */
.ftr { margin-top: var(--section-y); padding-block: var(--s8) var(--s6); background: var(--ink); color: #fff; }
.ftr a { color: #fff; text-decoration: none; }
.ftr a:hover { text-decoration: underline; }
.ftr__grid { display: grid; gap: var(--s7); }
@media (min-width: 900px) { .ftr__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.ftr__brand img { width: 190px; margin-bottom: 12px; }
.ftr__brand .serif { color: #fff; font-size: 1.05rem; margin-bottom: var(--s4); }
.ftr__status { font-size: .8125rem; color: #cfcfcf; }
.ftr h3 { color: #fff; font-size: .6875rem; text-transform: uppercase; letter-spacing: var(--ls-eyebrow); margin-bottom: var(--s4); }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .875rem; }
.ftr__contacts a { display: inline-flex; align-items: center; gap: 10px; }
.ftr__contacts svg { width: 16px; height: 16px; flex: none; }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px var(--s5);
  margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid rgb(255 255 255 / .2);
  font-size: .75rem; color: #cfcfcf; }
.ftr__bottom a { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
}
@media print { .topbar, .hdr, .nav, .ftr, .lead, .drawer, .fab { display: none !important; } }

/* ---------- блоки главной и страниц о бренде ---------- */
/* страховка: иконка без собственного правила не должна разрастаться */
svg:not([width]):not([height]) { width: 24px; height: 24px; }
.btn svg, .iconbtn svg, .more svg, .nav__a svg, .mega__list a svg, .trust svg,
.ftr__contacts svg, .drawer__list a svg, .pc__ask svg, .fab svg { width: revert-layer; height: revert-layer; }

.center { text-align: center; }
.muted { color: var(--mid); font-size: .8125rem; }
.sec--paper { background: var(--paper); }
.sec__head--row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s4); }
.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1024px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* герой */
.hero { position: relative; display: grid; }
.hero__media { grid-area: 1/1; }
.hero__media img { width: 100%; height: clamp(380px, 62vh, 680px); object-fit: cover; }
.hero__in { grid-area: 1/1; display: flex; align-items: center; }
.hero__box { max-width: 36rem; padding: clamp(20px, 3vw, 36px); background: rgb(255 255 255 / .9); }
@supports (backdrop-filter: blur(4px)) { .hero__box { background: rgb(255 255 255 / .74); backdrop-filter: blur(6px); } }
.hero__t { font-size: var(--fs-display); margin-bottom: .3em; }
.hero__sub { font-size: var(--fs-serif-ld); margin-bottom: var(--s5); }

/* плитки категорий */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 40px); }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { display: grid; gap: 14px; text-decoration: none; color: inherit; }
.tile__media { display: block; aspect-ratio: 4/5; overflow: hidden; background: var(--paper); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: scale var(--t-slow) var(--ease); }
@media (hover: hover) { .tile:hover .tile__media img { scale: 1.04; } }
.tile__body { display: grid; gap: 4px; }
.tile__body b { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.tile__body small { font-size: .95rem; }

/* широкая полоса с цитатой */
.band { position: relative; display: grid; margin-block: var(--section-y); }
.band__media { grid-area: 1/1; }
.band__media img { width: 100%; height: clamp(300px, 46vh, 520px); object-fit: cover; }
.band__in { grid-area: 1/1; display: flex; align-items: center; justify-content: center; }
.band__q { max-width: 40rem; margin: 0; padding: clamp(20px, 3vw, 36px); background: rgb(255 255 255 / .9);
  font-size: var(--fs-serif-ld); text-align: center; }
@supports (backdrop-filter: blur(4px)) { .band__q { background: rgb(255 255 255 / .76); backdrop-filter: blur(6px); } }

/* возраст */
.ages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--s5); }
.age { display: grid; justify-items: center; gap: 8px; padding: var(--s6) var(--s4); border: 1px solid var(--line);
  text-decoration: none; color: inherit; background: var(--white); transition: border-color var(--t); }
.age svg { width: 28px; height: 28px; color: var(--ink); }
.age b { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.age small { color: var(--mid); font-size: .8125rem; }
.age:hover { border-color: var(--ink); }

/* ценности */
.vals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: var(--s6); }
.val svg { width: 30px; height: 30px; color: var(--ink); margin-bottom: var(--s4); }
.val h3 { font-size: .9375rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5em; }
.val p { font-size: .9375rem; margin: 0; }

/* тизер истории */
.story-teaser { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 900px) { .story-teaser { grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px); } }
.story-teaser__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.story-teaser__txt .serif { font-size: var(--fs-serif-ld); margin-bottom: 1em; }

/* призыв к действию */
.cta { padding-block: var(--section-y); background: var(--paper); }
.cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s6); }
.cta h2 { margin-bottom: .3em; }
.cta .serif { font-size: 1.15rem; margin: 0; }
.cta .actions { margin-top: 0; }

/* где купить */
.where { display: grid; gap: var(--s5); }
@media (min-width: 860px) { .where { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wcard { display: grid; align-content: start; gap: 10px; padding: var(--s6); border: 1px solid var(--line);
  background: var(--white); text-align: left; text-decoration: none; color: inherit; cursor: pointer;
  font: inherit; transition: border-color var(--t); }
.wcard:hover { border-color: var(--ink); }
.wcard svg { width: 26px; height: 26px; color: var(--ink); }
.wcard b { font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.wcard span:not(.more) { font-size: .9375rem; }
.wcard .more { margin-top: 6px; justify-self: start; }

/* контакты списком */
.clist { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; gap: var(--s4); }
.clist a { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.clist svg { width: 22px; height: 22px; color: var(--ink); flex: none; }
.clist b { display: block; font-size: 1.05rem; color: var(--ink); }
.clist small { color: var(--mid); font-size: .8125rem; }

/* длинные тексты о бренде */
.story-hero img { width: 100%; height: clamp(260px, 40vh, 460px); object-fit: cover; }
.story { display: grid; gap: var(--s8); margin-bottom: var(--s8); }
.story__s { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s4) var(--s5); align-items: start; }
@media (max-width: 560px) { .story__s { grid-template-columns: 1fr; } }
.story__ic { width: 30px; height: 30px; color: var(--ink); margin-top: 4px; }
.story__s h2 { font-size: var(--fs-h2); margin-bottom: .5em; }
.story__q { margin: 0 0 1em; padding-left: var(--s5); border-left: 1px solid var(--ink);
  font-size: var(--fs-serif-ld); }
.story__ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.story__ul li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; }
.story__ul svg { width: 18px; height: 18px; color: var(--ink); margin-top: 4px; }

/* ---------- правки после первого просмотра ---------- */
/* заголовок страницы и сетка не должны расходиться на две высоты экрана */
.phead + .sec { padding-top: var(--s6); }
.phead { padding-block: var(--s7) var(--s5); }

/* карточки в ряду выравниваются по низу: медиа / текст / кнопка */
.pc { display: grid; grid-template-rows: auto 1fr auto; align-content: start; }
.pc__link { display: grid; grid-template-rows: subgrid; grid-row: span 2; gap: 14px; }
@supports not (grid-template-rows: subgrid) { .pc__link { display: flex; flex-direction: column; } .pc__body { flex: 1; } }
.pc__ask { margin-top: 12px; }

/* возраст уходит в правый нижний угол фото, чтобы не спорить с «под заказ» */
.pc__badges { gap: 6px; }
.badge--age { position: absolute; right: 10px; bottom: 10px; padding: 3px 7px; background: rgb(255 255 255 / .86); }
.pc__media { position: relative; }

/* сколько цветовых вариантов у товара */
.pc__var { font-size: .75rem; color: var(--mid); }
.pc__var::before { content: "· "; }

/* ======================================================================
   Движение. Сдержанная «дорогая» пластика: медленный ease-out, большие
   длительности, ничего не прыгает. Построено на scroll-driven animations —
   чистый CSS, без библиотек; где браузер не поддерживает (Firefox), контент
   просто виден сразу, без риска пустого экрана.
   ====================================================================== */
:root {
  --ease-exp: cubic-bezier(.16, 1, .3, 1);   /* expo-out: быстрый старт, долгое успокоение */
  --t-img: 700ms;                            /* зум фото в карточке */
  --t-reveal: 900ms;
}

/* кадр появления и «шторка» для фотографий */
/* Появление начинается не с нуля: контент ниже экрана обязан оставаться
   читаемым и в поисковом рендере, и при снимке страницы целиком. */
@keyframes rv-rise   { from { opacity: .3; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
@keyframes rv-fade   { from { opacity: .35; } to { opacity: 1; } }
@keyframes rv-wipe   { from { clip-path: inset(0 0 100% 0); scale: 1.06; } to { clip-path: inset(0 0 0 0); scale: 1; } }
@keyframes hero-in   { from { opacity: 0; translate: 0 24px; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes hero-zoom { from { scale: 1.07; } to { scale: 1; } }
@keyframes hdr-shrink{ to { min-height: 60px; } }
@keyframes logo-shrink{ to { scale: .88; } }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* появление блоков по мере прокрутки — один раз, линейно по положению в окне */
    .sec__head, .tile, .pc, .val, .age, .wcard, .story__s, .story-teaser__txt,
    .ages, .specs, .cta__in, .band__q, .prose > p, .phead__count {
      animation: rv-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    /* каскад внутри сеток: соседи «догоняют» чуть позже — плавная волна */
    .grid > .pc:nth-child(2n),  .tiles > .tile:nth-child(2n)  { animation-range: entry 4% entry 76%; }
    .grid > .pc:nth-child(3n),  .tiles > .tile:nth-child(3n)  { animation-range: entry 8% entry 82%; }
    .grid > .pc:nth-child(4n),  .tiles > .tile:nth-child(4n)  { animation-range: entry 12% entry 88%; }
    .vals > .val:nth-child(2n), .ages > .age:nth-child(2n)    { animation-range: entry 4% entry 76%; }
    .vals > .val:nth-child(3n), .ages > .age:nth-child(3n)    { animation-range: entry 8% entry 82%; }

    /* редакционная «шторка» снизу вверх для крупных фотографий */
    .tile__media img, .story-teaser__media img, .band__media img, .story-hero img {
      animation: rv-wipe linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 85%;
    }
    /* карточка товара: фото проявляется мягко, без масштаба — предмет не должен «дышать» */
    .pc__media img, .gal__main img { animation: rv-fade linear both; animation-timeline: view(); animation-range: entry 0% entry 65%; }
  }

  @supports (animation-timeline: scroll()) {
    /* шапка подбирается при прокрутке: меньше высота, меньше логотип */
    .hdr__in { animation: hdr-shrink linear both; animation-timeline: scroll(); animation-range: 0 140px; }
    .logo img { animation: logo-shrink linear both; animation-timeline: scroll(); animation-range: 0 140px; transform-origin: center; }
  }

  /* первый экран: один раз при загрузке, медленно и без рывка */
  .hero__media img { animation: hero-zoom 1600ms var(--ease-exp) both; }
  .hero__box      { animation: hero-in 900ms var(--ease-exp) both 120ms; }
  .hero__t        { animation: hero-in 900ms var(--ease-exp) both 220ms; }
  .hero__sub      { animation: hero-in 900ms var(--ease-exp) both 320ms; }
  .hero__box .actions { animation: hero-in 900ms var(--ease-exp) both 420ms; }

}

/* переход между страницами и «перелёт» фотографии из плитки в карточку товара */
@view-transition { navigation: auto; }

/* фото товара — общий элемент перехода «каталог → карточка» */
.gal__main img { view-transition-name: prodimg; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 380ms; animation-timing-function: var(--ease-exp); }
::view-transition-group(prodimg) { animation-duration: 520ms; animation-timing-function: var(--ease-exp); }

/* замедляем наведение: дорогая вещь двигается неторопливо */
.pc__media img, .tile__media img { transition: scale var(--t-img) var(--ease-exp); }
@media (hover: hover) {
  .pc:hover .pc__media img { scale: 1.04; }
  .tile:hover .tile__media img { scale: 1.05; }
  .tile:hover .tile__body b { text-decoration: underline; text-underline-offset: .25em; }
}

/* отклик на нажатие */
.btn, .iconbtn, .wcard, .age, .gal__t { transition-property: background-color, color, border-color, scale; transition-duration: var(--t); transition-timing-function: var(--ease); }
.btn:active, .iconbtn:active, .wcard:active, .age:active, .gal__t:active { scale: .96; }

/* тонкий контур на фотографиях — край не «растворяется» в фоне */
.tile__media, .story-teaser__media img, .band__media img, .hero__media img, .story-hero img { outline: 1px solid rgb(0 0 0 / .08); outline-offset: -1px; }

/* подчёркивание в меню растёт от левого края */
.nav__a { position: relative; }
.nav__a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: var(--ink);
  scale: 0 1; transform-origin: left; transition: scale var(--t-slow) var(--ease-exp); }
@media (hover: hover) { .nav__a:hover::after, .nav__a[aria-current]::after { scale: 1 1; } }

/* смена кадра в галерее: короткий уход в блюр вместо рывка */
.gal__main img { transition: opacity 150ms var(--ease), filter 150ms var(--ease); }
.gal__main.is-swap img { opacity: .35; filter: blur(5px); }

/* индикатор миниатюр: края на разных пружинах, поэтому полоска тянется на ходу */
.gal__thumbs { position: relative; }
.gal__bar { position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--ink); pointer-events: none;
  transition: left var(--trail, 400ms) var(--ease-exp), width var(--lead, 360ms) var(--ease-exp); }
.gal__t[aria-pressed="true"] { border-color: var(--line); }

/* короткий список фактов в карточке товара */
.feats { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; gap: 10px; }
.feats li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: start; font-size: .9375rem; }
.feats svg { width: 16px; height: 16px; color: var(--ink); margin-top: 5px; }

/* частые вопросы */
.faq { border-top: 1px solid var(--line); }
.faq__i { border-bottom: 1px solid var(--line); }
.faq__i summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s5) 0; list-style: none; cursor: pointer; color: var(--ink); font-weight: 500; }
.faq__i summary::-webkit-details-marker { display: none; }
.faq__i summary svg { width: 18px; height: 18px; flex: none; transition: rotate var(--t-slow) var(--ease-exp); }
.faq__i[open] summary svg { rotate: 180deg; }
.faq__i p { margin: 0 0 var(--s5); max-width: 68ch; }
@media (prefers-reduced-motion: no-preference) {
  .faq__i[open] p { animation: rv-rise 420ms var(--ease-exp) both; }
}

/* Увеличенные кадры (зум первого экрана, «шторка» плиток) обязаны обрезаться
   контейнером, иначе на телефоне появляется горизонтальная прокрутка. */
.hero, .hero__media, .band, .band__media, .story-hero, .story-teaser__media { overflow: clip; }

/* «Запросить» на карточке: подчёркивание остаётся тонким, но палец попадает —
   зона нажатия расширена до 44px по вертикали. */
.pc__ask { min-height: 44px; padding: 10px 0 9px; align-items: end; }
.pc__ask span { display: contents; }

/* поиск по каталогу */
.srch { margin-bottom: var(--s5); }
.srch__l { display: block; font-size: .75rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: .1em; color: var(--charcoal); margin-bottom: 8px; }
.srch__row { display: flex; align-items: center; gap: 12px; padding: 0 16px;
  border: 1px solid var(--line); background: var(--white); }
.srch__row:focus-within { border-color: var(--ink); }
.srch__row svg { width: 20px; height: 20px; color: var(--ink); flex: none; }
.srch__row input { flex: 1; min-width: 0; min-height: 56px; border: 0; background: none; outline: none;
  color: var(--ink); font: 400 1.0625rem var(--font-sans); }
.srch__st { font-size: .875rem; color: var(--charcoal); margin: 0 0 var(--s5); }
.srch__st:empty { display: none; }

/* кнопка-строка в списке контактов выглядит как остальные пункты */
.clist__btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 0; border: 0;
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.clist__btn b { display: block; font-size: 1.05rem; color: var(--ink); }
.clist__btn small { color: var(--mid); font-size: .8125rem; }
/* текстовая кнопка внутри абзаца */
.linkish { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: .22em; }

/* Плавающая кнопка перекрывала «Запросить» в нижнем ряду карточек.
   На широком экране она лишняя: в шапке уже есть видимая кнопка «Заказать»
   с подписью, а на телефоне там только иконка — вот там плавающая и нужна. */
@media (min-width: 1024px) { .fab { display: none; } }
