/* ============================================================
   HYGGE — домашний текстиль. Тёплая скандинавская гамма.
   ============================================================ */

:root {
  --milk: #FAF7F2;
  --paper: #FFFDFA;
  --oat: #EFE7DA;
  --oat-deep: #E7DCCA;
  --line: #E2D8C7;
  --ink: #262220;
  --ink-soft: #6C6155;
  --clay: #8C7761;
  --clay-dark: #6E5B47;
  --brick: #8A5546;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 20px 54px -26px rgba(38, 34, 32, .3);
  --shadow-soft: 0 12px 34px -22px rgba(38, 34, 32, .34);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--milk);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .005em;
}

.container { width: min(1280px, 100% - 48px); margin-inline: auto; }

.num, .price, .p-price, .sum {
  font-family: var(--sans);
  font-variant-numeric: lining-nums tabular-nums;
}

/* ---------- reveal (IntersectionObserver + transition) ---------- */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.rv.on { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; }
.rv-d2 { transition-delay: .16s; }
.rv-d3 { transition-delay: .24s; }

/* ============================ шапка ============================ */
.topline {
  background: var(--ink);
  color: #EBE3D8;
  font-size: 12px;
  letter-spacing: .07em;
  text-align: center;
  padding: 9px 16px;
}
.topline b { color: #D6BE9F; font-weight: 600; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(250, 247, 242);
  border-bottom: 1px solid var(--line);
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
/* над фотографией первого экрана шапка прозрачная, после прокрутки — обычная */
.page-hero .header:not(.is-stuck) { background: transparent; border-bottom-color: transparent; color: #fff; }
.page-hero .header:not(.is-stuck) .logo,
.page-hero .header:not(.is-stuck) .logo * { color: #fff; }
.page-hero .header:not(.is-stuck) .nav a { color: rgba(255, 255, 255, .92); }
.page-hero .header:not(.is-stuck) .nav a:hover { color: #fff; }
.page-hero .header:not(.is-stuck) .nav a::after { background: #fff; }
.page-hero .header:not(.is-stuck) .cart-btn { color: #fff; border-color: rgba(255, 255, 255, .55); }
.page-hero .header:not(.is-stuck) .cart-btn:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.page-hero .header:not(.is-stuck) .burger span { background: #fff; }
/* лёгкая тень под прозрачной шапкой, чтобы белые надписи читались на светлом фото */
.page-hero .header:not(.is-stuck)::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 190px;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(28, 22, 17, .5) 0%, rgba(28, 22, 17, .24) 55%, transparent 100%);
}
.header-in {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 0;
}
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo-word {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .32em;
  margin-right: -.32em;
}
.logo-sub {
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--clay);
  margin-top: 6px;
}
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .02em;
  padding: 6px 0;
  position: relative;
  color: var(--ink);
  transition: color .3s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--clay);
  transition: right .35s var(--ease);
}
.nav a:hover { color: var(--clay-dark); }
.nav a:hover::after { right: 0; }

.h-actions { display: flex; align-items: center; gap: 14px; }
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.cart-btn:hover { border-color: var(--clay); background: var(--paper); }
.cart-count {
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--clay);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.burger {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span {
  width: 22px;
  height: 1.6px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.mobile-open .burger span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.mobile-open .burger span:nth-child(2) { opacity: 0; }
.mobile-open .burger span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--milk);
}
.mobile-nav a {
  display: block;
  padding: 15px 24px;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-open .mobile-nav { display: block; }

/* ============================ первый экран ============================ */
/* Первый экран: фотография во всю ширину и высоту, поверх — короткий текст.
   Сеточный вариант с колонками уступал главному требованию: фото на весь экран */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  margin-top: calc(-1 * var(--head-h, 83px));
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30, 24, 19, .82) 0%, rgba(30, 24, 19, .55) 34%, rgba(30, 24, 19, .18) 62%, rgba(30, 24, 19, .04) 100%);
}
.hero-in { position: relative; z-index: 2; color: #fff; padding-block: clamp(48px, 8vh, 100px); }
.hero-in .hero-eyebrow { color: rgba(255, 255, 255, .82); }
.hero-in .hero-eyebrow::before { background: rgba(255, 255, 255, .6); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1.04; margin: 14px 0 14px; text-wrap: balance; }
.hero-lead { color: rgba(255, 255, 255, .88); max-width: 42ch; margin-bottom: 30px; }
.hero .btn-onphoto { color: #fff; border: 1px solid rgba(255, 255, 255, .6); background: transparent; box-shadow: none; }
.hero .btn-onphoto:hover { background: #fff; color: #2a231d; border-color: #fff; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 24px;
}
.hero-eyebrow::before { content: ""; width: 42px; height: 1px; background: var(--clay); }
.hero h1 em { font-style: italic; }
.hero-lead { font-size: 16.5px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #F6F1E8;
  border: 1px solid var(--ink);
  padding: 16px 32px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover { background: var(--clay-dark); border-color: var(--clay-dark); }
.btn:hover .arr { transform: translateX(5px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #CDBFA9; }
.btn-ghost:hover { background: var(--paper); color: var(--clay-dark); border-color: var(--clay); }

/* ============================ секции ============================ */
.section { padding: clamp(56px, 7vw, 108px) 0; }
.section-tint { background: var(--oat); }
.sec-head { margin-bottom: clamp(30px, 4vw, 52px); }
.sec-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.overline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--clay);
  display: block;
  margin-bottom: 14px;
}
.sec-head h2 { font-size: clamp(32px, 3.8vw, 50px); }
.sec-head .sub { color: var(--ink-soft); font-size: 15px; margin-top: 14px; max-width: 56ch; }
.sec-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--clay-dark);
  border-bottom: 1px solid #CDBCA3;
  padding-bottom: 3px;
  white-space: nowrap;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.sec-link:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- категории ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cat-tile {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: block;
  background: var(--oat-deep);
}
.cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.cat-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 26, 22, 0) 44%, rgba(30, 26, 22, .6) 100%);
}
.cat-tile:hover img { transform: scale(1.045); }
.cat-tile-label {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  z-index: 2;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cat-tile-label .serif { font-size: 27px; font-weight: 500; }
.cat-tile-label .cnt {
  font-size: 11.5px;
  letter-spacing: .08em;
  opacity: .85;
  font-variant-numeric: tabular-nums;
}

/* ---------- карточки товара ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card { position: relative; display: flex; flex-direction: column; }
.card-media {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--oat-deep);
  margin-bottom: 14px;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.card:hover .card-media img { transform: scale(1.05); }
.badge-mat {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  background: rgba(250, 247, 242, .93);
  border: 1px solid rgba(140, 119, 97, .34);
  color: var(--clay-dark);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 3px;
}
.badge-flag {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  background: var(--ink);
  color: #F1E9DC;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 3px;
}
.badge-flag.sale { background: var(--brick); }
.card-add {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  background: rgba(250, 247, 242, .96);
  border: 0;
  border-radius: 3px;
  padding: 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.card:hover .card-add { opacity: 1; transform: none; }
.card-add:hover { background: var(--ink); color: #F6F1E8; }
.card-cat { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 5px; }
.card-name { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.2; margin-bottom: 8px; }
.card a.cover::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.price { font-size: 16px; font-weight: 600; }
.price-old {
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

/* ---------- история бренда ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(28px, 4.5vw, 72px);
  align-items: center;
}
.story-media { position: relative; }
.story-media img {
  width: 100%;
  height: clamp(320px, 42vw, 560px);
  object-fit: cover;
  border-radius: 4px;
}
.story-media .small {
  position: absolute;
  right: -26px;
  bottom: -34px;
  width: 44%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 6px solid var(--oat);
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
}
.story-text h2 { font-size: clamp(32px, 3.8vw, 50px); margin-bottom: 22px; }
.story-text p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 16px; max-width: 52ch; }
.story-sign {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.story-sign div .serif { font-size: 26px; display: block; line-height: 1.25; }
.story-sign div .num { font-size: 23px; font-weight: 300; letter-spacing: -.01em; display: block; line-height: 1.35; }
.story-sign div span { font-size: 12.5px; color: var(--ink-soft); }

/* ---------- принципы ---------- */
.mat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(26px, 3vw, 40px);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.mat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.mat-letter {
  width: 58px;
  height: 58px;
  border: 1px solid var(--clay);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 27px;
  font-style: italic;
  color: var(--clay-dark);
  margin-bottom: 22px;
}
.mat-card h3 { font-size: 27px; margin-bottom: 6px; }
.mat-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 16px;
}
.mat-card p { font-size: 14.5px; color: var(--ink-soft); }
.mat-card .mat-fact {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--ink);
}

/* ---------- преимущества ---------- */
.feat-strip {
  border-block: 1px solid var(--line);
  background: var(--paper);
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.feat {
  padding: clamp(30px, 4vw, 52px) clamp(20px, 3vw, 44px);
  border-left: 1px solid var(--line);
}
.feat:first-child { border-left: 0; }
.feat .serif { font-size: 24px; margin-bottom: 8px; display: block; }
.feat p { font-size: 14px; color: var(--ink-soft); }
.feat-ico { color: var(--clay); margin-bottom: 18px; display: block; }

/* ---------- журнал ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.blog-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.blog-card img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 26px 28px; display: flex; flex-direction: column; }
.blog-tag { font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--clay); margin-bottom: 10px; }
.blog-body h3 { font-size: 25px; margin-bottom: 10px; }
.blog-body p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 16px; }
.blog-more { margin-top: auto; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; color: var(--clay-dark); }

/* ============================ футер ============================ */
.footer { background: var(--ink); color: #C6BCB0; margin-top: clamp(40px, 6vw, 80px); }
.footer-in {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding: clamp(44px, 6vw, 72px) 0 40px;
}
.footer .logo-word { color: #F1E9DC; font-size: 26px; }
.footer .logo-sub { color: #A68D71; }
.footer-about { font-size: 13.5px; margin-top: 18px; max-width: 34ch; color: #9A9086; }
.footer h4 {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #F1E9DC;
  margin-bottom: 18px;
}
.footer li { margin-bottom: 10px; }
.footer li a { font-size: 14px; transition: color .3s var(--ease); }
.footer li a:hover { color: #F1E9DC; }
.footer-contact p { font-size: 14px; margin-bottom: 10px; }
.footer-contact b { color: #F1E9DC; font-weight: 600; }
.footer-demo {
  border-top: 1px solid rgba(241, 233, 220, .14);
  padding: 22px 0 28px;
  font-size: 12.5px;
  color: #8D847A;
  line-height: 1.6;
}
.footer-demo a { color: #D6BE9F; border-bottom: 1px solid rgba(214, 190, 159, .4); transition: color .3s var(--ease); }
.footer-demo a:hover { color: #fff; }

/* ============================ корзина ============================ */
.drawer-veil {
  position: fixed;
  inset: 0;
  background: rgba(30, 26, 22, .45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
  z-index: 90;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  background: var(--milk);
  z-index: 95;
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform .5s var(--ease);
  border-left: 1px solid var(--line);
}
body.cart-open .drawer { transform: none; }
body.cart-open .drawer-veil { opacity: 1; pointer-events: auto; }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}
.drawer-head .serif { font-size: 27px; }
.drawer-close { background: none; border: 0; font-size: 26px; line-height: 1; color: var(--ink-soft); transition: color .3s var(--ease), transform .3s var(--ease); }
.drawer-close:hover { color: var(--ink); transform: rotate(90deg); }
.drawer-items { flex: 1; overflow-y: auto; padding: 10px 26px; }
.d-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.d-item img { width: 72px; height: 90px; object-fit: cover; border-radius: 3px; }
.d-name { font-family: var(--serif); font-size: 18px; line-height: 1.2; }
.d-size { font-size: 12px; color: var(--ink-soft); margin-top: 3px; }
.d-qty { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; margin-top: 8px; }
.d-qty button { background: none; border: 0; width: 27px; height: 27px; font-size: 15px; color: var(--ink-soft); transition: color .2s; }
.d-qty button:hover { color: var(--clay-dark); }
.d-qty b { font-size: 13px; min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.d-right { text-align: right; }
.d-price { font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.d-del { background: none; border: 0; font-size: 11.5px; color: var(--ink-soft); text-decoration: underline; margin-top: 8px; transition: color .2s; }
.d-del:hover { color: var(--brick); }
.drawer-empty { text-align: center; padding: 70px 20px; color: var(--ink-soft); }
.drawer-empty .serif { font-size: 26px; color: var(--ink); margin-bottom: 8px; display: block; }
.drawer-foot { border-top: 1px solid var(--line); padding: 20px 26px 26px; background: var(--paper); }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.drawer-total .sum { font-size: 21px; font-weight: 600; }
.drawer-foot .btn { width: 100%; justify-content: center; }

/* ============================ каталог ============================ */
.page-head { padding: clamp(36px, 5vw, 64px) 0 clamp(20px, 3vw, 36px); }
.crumbs { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { border-bottom: 1px solid var(--line); transition: color .3s; }
.crumbs a:hover { color: var(--clay-dark); }
.page-head h1 { font-size: clamp(36px, 4.6vw, 60px); }
.page-head .lead { color: var(--ink-soft); margin-top: 12px; max-width: 60ch; }

.cat-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding-bottom: clamp(48px, 6vw, 80px);
}
.filters { position: sticky; top: 96px; }
.f-group { border-top: 1px solid var(--line); padding: 20px 0; }
.f-group h4 { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.f-check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; cursor: pointer; color: var(--ink-soft); transition: color .25s; }
.f-check:hover { color: var(--ink); }
.f-check input { accent-color: var(--clay); width: 15px; height: 15px; }
.f-check .n { margin-left: auto; font-size: 12px; color: #A2988B; font-variant-numeric: tabular-nums; }
.f-price { display: flex; align-items: center; gap: 10px; }
.f-price input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 3px;
  padding: 9px 10px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.f-price input:focus { outline: none; border-color: var(--clay); }
.f-reset {
  background: none;
  border: 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  text-decoration: underline;
  margin-top: 10px;
  transition: color .25s;
}
.f-reset:hover { color: var(--brick); }

.cat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.cat-found { font-size: 13.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.sort-wrap { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-soft); }
.sort-wrap select {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 3px;
  padding: 9px 12px;
  font-size: 13.5px;
}
.sort-wrap select:focus { outline: none; border-color: var(--clay); }
.cat-grid-page { grid-template-columns: repeat(3, 1fr); }
.cat-empty { padding: 60px 0; text-align: center; color: var(--ink-soft); grid-column: 1 / -1; }
.cat-empty .serif { font-size: 27px; color: var(--ink); margin-bottom: 6px; display: block; }

.f-toggle { display: none; }

/* ============================ товар ============================ */
.product-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(30px, 5vw, 72px);
  padding-bottom: clamp(48px, 6vw, 88px);
  align-items: start;
}
.p-gallery { position: sticky; top: 96px; }
.p-main {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--oat-deep);
  margin-bottom: 14px;
  position: relative;
}
.p-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease); }
.p-thumbs { display: flex; gap: 12px; }
.p-thumb {
  width: 88px;
  height: 110px;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 0;
  background: var(--oat-deep);
  opacity: .7;
  transition: opacity .3s var(--ease), border-color .3s var(--ease);
}
.p-thumb img { width: 100%; height: 100%; object-fit: cover; }
.p-thumb.act, .p-thumb:hover { opacity: 1; border-color: var(--clay); }

.p-badge-row { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.p-info h1 { font-size: clamp(34px, 3.8vw, 48px); margin-bottom: 14px; }
.p-price-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.p-price { font-size: 30px; font-weight: 600; }
.p-desc { color: var(--ink-soft); font-size: 15.5px; max-width: 56ch; margin-bottom: 28px; }

.opt-label { font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; display: flex; justify-content: space-between; gap: 12px; }
.opt-label .hint { color: var(--ink-soft); font-weight: 400; letter-spacing: .01em; text-transform: none; }
.size-row { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.size-btn {
  min-width: 56px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 13.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.size-btn:hover { border-color: var(--clay); }
.size-btn.act { background: var(--ink); border-color: var(--ink); color: #F6F1E8; }

.buy-row { display: flex; gap: 14px; align-items: stretch; margin-bottom: 34px; flex-wrap: wrap; }
.qty-big { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); }
.qty-big button { background: none; border: 0; width: 46px; min-height: 52px; font-size: 19px; color: var(--ink-soft); transition: color .2s; }
.qty-big button:hover { color: var(--clay-dark); }
.qty-big b { min-width: 30px; text-align: center; font-size: 15.5px; font-variant-numeric: tabular-nums; }

.p-care {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 4px;
  padding: 26px 28px;
  margin-bottom: 26px;
}
.p-care h3 { font-size: 24px; margin-bottom: 18px; }
.care-list { display: grid; gap: 12px; }
.care-item { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--ink-soft); }
.care-item svg { flex: none; color: var(--clay); }

.specs { border-top: 1px solid var(--line); }
.specs-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.specs-row dt { color: var(--ink-soft); }
.specs-row dd { font-weight: 500; }

.p-notfound { text-align: center; padding: 90px 0; }
.p-notfound .serif { font-size: 34px; margin-bottom: 10px; display: block; }
.p-notfound p { color: var(--ink-soft); margin-bottom: 26px; }

/* ============================ оформление ============================ */
.co-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  padding-bottom: clamp(48px, 6vw, 88px);
}
.co-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(24px, 3vw, 38px);
}
.co-card + .co-card { margin-top: 20px; }
.co-card h2 { font-size: 28px; margin-bottom: 20px; }
.co-num {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border: 1px solid var(--clay);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--clay-dark);
  margin-right: 12px;
  vertical-align: 3px;
  font-variant-numeric: tabular-nums;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 500; letter-spacing: .02em; margin-bottom: 7px; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--milk);
  border-radius: 3px;
  padding: 13px 14px;
  font-size: 15px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--clay); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.radio-tile {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 15px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  background: var(--milk);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.radio-tile:hover { border-color: #CDBCA3; }
.radio-tile input { accent-color: var(--clay); margin-top: 4px; }
.radio-tile b { font-size: 14.5px; font-weight: 600; display: block; }
.radio-tile span { font-size: 12.5px; color: var(--ink-soft); }
.radio-tile .r-price { margin-left: auto; font-size: 13.5px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); }
.radio-tile:has(input:checked) { border-color: var(--clay); background: #fff; }

.co-summary { position: sticky; top: 96px; }
.co-items { max-height: 330px; overflow-y: auto; margin-bottom: 6px; }
.co-line { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.co-line:first-child { border-top: 0; }
.co-line .muted { color: var(--ink-soft); font-size: 12.5px; }
.co-line .sum { font-weight: 600; white-space: nowrap; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--ink); margin-top: 12px; padding-top: 16px; }
.co-total .sum { font-size: 24px; font-weight: 600; }
.co-empty { text-align: center; padding: 40px 0; color: var(--ink-soft); }
.co-submit { width: 100%; justify-content: center; margin-top: 20px; }
.co-legal { font-size: 11.5px; color: var(--ink-soft); margin-top: 14px; line-height: 1.55; }

.thanks {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--milk);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.thanks.on { display: flex; }
.thanks-in { max-width: 520px; }
.thanks .mat-letter { margin: 0 auto 26px; width: 72px; height: 72px; font-size: 34px; }
.thanks h2 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 14px; }
.thanks p { color: var(--ink-soft); margin-bottom: 30px; }

/* ============================ адаптив ============================ */
@media (max-width: 1080px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid-page { grid-template-columns: repeat(2, 1fr); }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .cat-layout { grid-template-columns: 220px 1fr; }
  .story-media .small { right: -14px; bottom: -22px; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; }
  .hero { min-height: 92svh; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .mat-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat { border-left: 0; border-top: 1px solid var(--line); }
  .feat:first-child { border-top: 0; }
  .blog-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; gap: 44px; }
  .story-media .small { width: 38%; right: 8px; bottom: -26px; }
  .product-layout { grid-template-columns: 1fr; }
  .p-gallery { position: static; }
  .co-layout { grid-template-columns: 1fr; }
  .co-summary { position: static; }
  .cat-layout { grid-template-columns: 1fr; }
  .filters {
    position: static;
    display: none;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 6px 20px 14px;
    margin-bottom: 20px;
  }
  .filters.open { display: block; }
  .f-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
  }
}

@media (max-width: 640px) {
  html { overflow-x: hidden; }
  .container { width: min(1280px, 100% - 32px); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cat-grid-page { grid-template-columns: repeat(2, 1fr); }
  .card-name { font-size: 18px; }
  .price { font-size: 15px; }
  .badge-flag { right: auto; left: 12px; top: 44px; }
  .card-add { opacity: 1; transform: none; padding: 10px; font-size: 10.5px; }
  .hero h1 { font-size: clamp(38px, 10vw, 52px); }
  .cat-tile-label { left: 16px; right: 16px; bottom: 14px; flex-direction: column; align-items: flex-start; gap: 2px; }
  .cat-tile-label .serif { font-size: 20px; }
  .story-media .small { display: none; }
  .blog-card { grid-template-columns: 1fr; }
  .blog-card img { height: 190px; }
  .footer-in { grid-template-columns: 1fr; gap: 28px; }
  .field-row { grid-template-columns: 1fr; }
  .specs-row { grid-template-columns: 1fr; gap: 2px; }
  .cart-btn .cart-word { display: none; }
  .cart-btn { padding: 9px 13px; }
  .topline { font-size: 10.5px; letter-spacing: .04em; }
  .p-thumb { width: 72px; height: 90px; }
  .cat-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .sort-wrap select { flex: 1; }
  .buy-row { flex-wrap: nowrap; }
  .buy-row .btn { flex: 1; justify-content: center; padding-inline: 18px; }
}
