/* cyrillic-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-500-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/manrope-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/manrope-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/manrope-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/manrope-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #ddd6cc;
  --paper: #f2eee8;
  --ink: #17120e;
  --ink-soft: #2e2822;
  --muted: #5d5348;
  --line: rgba(23, 18, 14, 0.16);
  --accent: #8f512d;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1; hyphens: none; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--ink); color: var(--paper); border-radius: var(--radius); transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* шапка */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  /* непрозрачный фон без blur: размытие под шапкой пересчитывается на каждом кадре скролла */
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: transform 0.5s var(--ease);
}
.js .site-header[data-home]:not(.is-shown) { transform: translateY(-100%); }
.site-header__bar {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  max-width: 1360px; margin-inline: auto; padding: 14px var(--gutter);
}
.logo { font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: 0.2em; line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; font-size: 14px; }
.site-nav a { opacity: 0.8; transition: opacity 0.2s; }
.site-nav a:hover { opacity: 1; }
.site-nav__buy {
  opacity: 1 !important; padding: 10px 18px; background: var(--ink); color: var(--paper);
  border-radius: var(--radius); font-weight: 500; transition: background 0.3s;
}
.site-nav__buy:hover { background: var(--accent); color: #f7f1ea; }
.lang { display: flex; gap: 10px; font-size: 13px; letter-spacing: 0.08em; }
.lang__current { font-weight: 600; }
.lang a { opacity: 0.6; }
.lang a:hover { opacity: 1; }
.menu-btn { display: none; margin-left: auto; font-size: 14px; padding: 8px 0; }

/* кнопки и ссылки */
.btn {
  display: inline-block; padding: 16px 28px; background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 500; letter-spacing: 0.03em; border-radius: var(--radius);
  transition: background 0.3s, color 0.3s; text-align: center;
}
.btn:hover { background: var(--accent); color: #f7f1ea; }
.btn--block { display: block; width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.link { border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: color 0.2s; }
.link:hover { color: var(--muted); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }

/* главный экран: сцена закреплена через sticky, секция выше сцены на длину анимации */
.hero { position: relative; }
.js .hero { height: calc(max(560px, 100vh) + 170vh); height: calc(max(560px, 100svh) + 170svh); }
.hero__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, rgba(255, 250, 244, 0.6), rgba(255, 250, 244, 0) 65%), var(--bg);
}
.hero__fan {
  position: absolute; z-index: 2; left: 50%; top: 10vh; bottom: 13vh;
  aspect-ratio: 2 / 3; transform: translateX(-50%); pointer-events: none;
}
.piece { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 94%; will-change: transform; }
.hero__brand {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 9vh;
  display: flex; justify-content: center;
  font-size: min(21vw, 34vh); font-weight: 500; line-height: 0.8; letter-spacing: -0.01em; color: var(--ink);
  pointer-events: none; will-change: transform;
}
/* инверсия букв поверх вещей нужна только на десктопе, на телефоне буквы с вещами почти не пересекаются */
@media (hover: hover) and (min-width: 821px) {
  .hero__brand { color: #ece6da; mix-blend-mode: difference; }
}
.hero__word { display: inline-flex; overflow: hidden; padding: 0.06em 0.04em 0.1em; }
.hero__word span { display: inline-block; }
.js .hero__fan { animation: fade-in 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) both; }
.js .hero__word span { animation: rise 1.3s cubic-bezier(0.165, 0.84, 0.44, 1) 0.25s both; }
.js .hero__word span:nth-child(2) { animation-delay: 0.37s; }
.js .hero__word span:nth-child(3) { animation-delay: 0.49s; }
.js .hero__word span:nth-child(4) { animation-delay: 0.61s; }
.js .hero__word span:nth-child(5) { animation-delay: 0.73s; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(115%); } }
.no-js .piece:nth-child(1) { transform: rotate(-38deg); }
.no-js .piece:nth-child(2) { transform: rotate(-19deg); }
.no-js .piece:nth-child(4) { transform: rotate(19deg); }
.no-js .piece:nth-child(5) { transform: rotate(38deg); }
.no-js .hero__brand { z-index: 4; }

/* секции */
.section { padding: clamp(72px, 11vw, 150px) 0; }
.section--tight { padding-top: 0; }
.section--panel { background: var(--paper); }
.h1 { font-size: clamp(42px, 6.4vw, 96px); margin-bottom: 28px; }
.h1--product { font-size: clamp(34px, 3.8vw, 54px); line-height: 1.05; margin-bottom: 18px; }
.h2 { font-size: clamp(34px, 4.6vw, 68px); margin-bottom: clamp(28px, 4vw, 56px); }
.h3 { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 14px; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--ink-soft); max-width: 62ch; }
.lead--narrow { max-width: 56ch; margin-bottom: 36px; }
.eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 6vw, 96px); align-items: end; }
.intro .h2 { margin-bottom: 0; }
.intro .lead { margin-bottom: 30px; }
.more { margin-top: 44px; }

/* карточки */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.6vw, 40px) clamp(14px, 2vw, 28px); }
.card__link { display: block; }
.card__media {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #e9e2d8; border-radius: var(--radius);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card__title { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.12; margin: 14px 0 6px; text-wrap: balance; }
.price { font-size: 15px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price b { font-weight: 600; }
.price__old { color: var(--muted); font-size: 14px; }
.price--lg { font-size: 22px; margin-bottom: 22px; }
.badge {
  position: absolute; left: 10px; top: 10px; padding: 4px 9px; background: var(--ink); color: var(--paper);
  font-size: 12px; font-weight: 600; border-radius: 2px; letter-spacing: 0.02em;
}
.badge--inline { position: static; display: inline-block; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 32px); }
.tile { display: block; }
.tile__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e9e2d8; border-radius: var(--radius); margin-bottom: 14px; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform 0.9s var(--ease); }
.tile__name { display: block; font-family: var(--serif); font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; }
.tile__count { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }

.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 48px); }
.why li { border-top: 1px solid var(--ink); padding-top: 20px; }
.why h3 { font-size: clamp(26px, 2.4vw, 34px); margin-bottom: 12px; }
.why p { color: var(--ink-soft); font-size: 15px; }

.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.faq .h2 { margin-bottom: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.15;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq details p { padding: 0 40px 24px 0; color: var(--ink-soft); max-width: 60ch; }

.band { background: #1d1510; color: #ece6da; padding: clamp(64px, 9vw, 120px) 0; }
.band__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 6vw, 96px); align-items: end; }
.band .h2 { margin-bottom: 0; }
.band .lead { color: #c9c4b9; margin-bottom: 28px; }
.band .btn { background: #ece6da; color: var(--ink); }
.band .btn:hover { background: var(--accent); color: #f7f1ea; }

/* внутренние страницы */
.page { padding-top: 104px; padding-bottom: clamp(64px, 9vw, 120px); }
.crumbs { margin-bottom: 36px; font-size: 13px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs li + li::before { content: "/"; margin: 0 10px; opacity: 0.6; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.chip { padding: 10px 18px; border-radius: 100px; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line); transition: background 0.25s, color 0.25s; }
.chip:hover { background: rgba(15, 14, 12, 0.06); }
.chip.is-active { background: var(--ink); color: var(--paper); box-shadow: none; }

.about { display: grid; gap: clamp(36px, 5vw, 64px); max-width: 780px; margin-top: 24px; }
.page--404 section + section { margin-top: 64px; }

/* страница товара */
.pdp { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.pdp__gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pdp__fig { background: #e9e2d8; border-radius: var(--radius); overflow: hidden; }
.pdp__fig:first-child { grid-column: 1 / -1; }
.pdp__fig:only-child { grid-column: 1 / -1; max-width: 640px; }
.pdp__fig img { width: 100%; height: auto; }
.pdp__info { position: sticky; top: 96px; }
.pdp__info .lead { font-size: 17px; margin-bottom: 26px; }
.pdp__buy { margin-bottom: 36px; }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.pdp__h { font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.ticks { margin-bottom: 28px; }
.ticks li { padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 6px; height: 10px; margin-top: -7px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(40deg); }
.specs { margin-bottom: 24px; font-size: 14px; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.specs dt { color: var(--muted); }
.pdp__cats { font-size: 14px; color: var(--muted); }
.pdp__cats .link { color: var(--ink); }
.similar { margin-top: clamp(72px, 10vw, 140px); }

/* подвал */
.site-footer { background: #0e0a07; color: #c9c4b9; padding: 64px 0 28px; font-size: 14px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer__logo { font-family: var(--serif); font-size: 30px; letter-spacing: 0.2em; color: #ece6da; margin-bottom: 12px; }
.site-footer__tagline { max-width: 34ch; }
.site-footer__h { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #8d897f; margin-bottom: 14px; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { transition: color 0.2s; }
.site-footer a:hover { color: #fff; }
.site-footer__copy { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: #8d897f; font-size: 13px; }

@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .pdp { grid-template-columns: 1fr; }
  .pdp__info { position: static; }
}

@media (max-width: 820px) {
  .site-header__bar { gap: 16px; }
  .menu-btn { display: block; }
  .js .site-nav { display: none; width: 100%; order: 5; flex-direction: column; align-items: stretch; gap: 0; margin: 4px 0 8px; }
  .js .site-header[data-open] .site-nav { display: flex; }
  .js .site-nav a { padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; }
  .js .site-nav .site-nav__buy { margin-top: 10px; text-align: center; border-top: 0; }
  .no-js .site-nav { width: 100%; order: 5; flex-wrap: wrap; gap: 16px; margin-left: 0; }
  .lang { margin-left: 0; }
  .hero__fan { top: 13vh; bottom: 27vh; }
  .hero__brand { bottom: 12vh; font-size: min(30vw, 20vh); }
  .intro, .faq, .band__inner, .site-footer__grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .pdp__buy { position: sticky; bottom: 0; z-index: 5; margin-inline: calc(var(--gutter) * -1); padding: 12px var(--gutter) 14px; background: var(--bg); border-top: 1px solid var(--line); margin-bottom: 28px; }
  .pdp__gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; }
  .pdp__fig, .pdp__fig:first-child, .pdp__fig:only-child { flex: 0 0 82%; grid-column: auto; scroll-snap-align: center; max-width: none; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .card__title { font-size: 19px; }
  .price { font-size: 14px; }
}

/* увеличение фото при наведении только там, где есть мышь */
@media (hover: hover) {
  .card__link:hover .card__media img, .tile:hover .tile__media img { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
  .js .hero { height: auto; }
  .js .hero__fan, .js .hero__word span { animation: none; }
}

/* цвета и статистика магазина */
.swatches { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 28px; font-size: 14px; }
.swatches li { display: flex; align-items: center; gap: 8px; }
.swatches i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(23, 18, 14, 0.25); flex: none; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: end; }
.stats .h2 { margin-bottom: 20px; }
.stats__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 16px; }
.stats__list li { border-top: 1px solid var(--ink); padding-top: 14px; }
.stats__list b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 4.4vw, 64px); line-height: 1; margin-bottom: 6px; }
.stats__list span { font-size: 14px; color: var(--muted); }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr; } }
