/* ============================================================
   NORD — премиум-минимализм, тёплая природная гамма
   ============================================================ */

:root {
  --milk: #FAF6F0;
  --paper: #FFFDFA;
  --sand: #F1EADF;
  --line: #E6DDCF;
  --ink: #29241F;
  --ink-soft: #6B6157;
  --camel: #8B6F55;
  --camel-dark: #6E5540;
  --wine: #7A4A44;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 18px 50px -24px rgba(41, 36, 31, .28);
  --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.12;
  letter-spacing: .01em;
}

.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(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.rv.on { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; }
.rv-d2 { transition-delay: .16s; }
.rv-d3 { transition-delay: .24s; }

/* ============================ header ============================ */
.topline {
  background: var(--ink);
  color: #EDE6DC;
  font-size: 12px;
  letter-spacing: .08em;
  text-align: center;
  padding: 9px 16px;
}
.topline b { color: #D8C3A5; font-weight: 600; }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, .94);
  border-bottom: 1px solid var(--line);
}
.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: .34em;
  margin-right: -.34em;
}
.logo-sub {
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--camel);
  margin-top: 5px;
}
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .04em;
  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(--camel);
  transition: right .35s var(--ease);
}
.nav a:hover { color: var(--camel-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: .03em;
  color: var(--ink);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.cart-btn:hover { border-color: var(--camel); background: #fff; }
.cart-count {
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--camel);
  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 ============================ */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 6vw, 88px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--camel);
  margin-bottom: 26px;
}
.hero-eyebrow::before { content: ""; width: 42px; height: 1px; background: var(--camel); }
.hero h1 {
  font-size: clamp(40px, 5.4vw, 74px);
  font-weight: 500;
  margin-bottom: 26px;
}
.hero h1 em { font-style: italic; color: var(--camel-dark); }
.hero-lead {
  font-size: 16.5px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 38px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--camel);
  color: #fff;
  border: 1px solid var(--camel);
  padding: 16px 34px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover { background: var(--camel-dark); border-color: var(--camel-dark); }
.btn:hover .arr { transform: translateX(5px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #CBBFA9; }
.btn-ghost:hover { background: #fff; color: var(--camel-dark); border-color: var(--camel); }

.hero-figure { position: relative; }
.hero-figure img {
  width: 100%;
  height: clamp(360px, 44vw, 620px);
  object-fit: cover;
  border-radius: 3px;
  box-shadow: var(--shadow);
}
.hero-note {
  position: absolute;
  left: -22px;
  bottom: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 18px 24px;
  max-width: 260px;
  box-shadow: var(--shadow);
}
.hero-note .serif { font-size: 21px; margin-bottom: 4px; }
.hero-note p { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }

.hero-stats {
  display: flex;
  gap: clamp(28px, 5vw, 64px);
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.hero-stats .num {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  font-variant-numeric: lining-nums;
}
.hero-stats span { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }

/* ============================ sections ============================ */
.section { padding: clamp(52px, 7vw, 104px) 0; }
.section-tint { background: var(--sand); }
.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: 11.5px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--camel);
  display: block;
  margin-bottom: 14px;
}
.sec-head h2 { font-size: clamp(30px, 3.6vw, 48px); }
.sec-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--camel-dark);
  border-bottom: 1px solid #CBB79E;
  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: 22px;
}
.cat-tile {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: block;
  background: var(--sand);
}
.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, 25, 20, 0) 46%, rgba(30, 25, 20, .62) 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: 25px; font-weight: 500; }
.cat-tile-label .cnt {
  font-size: 11.5px;
  letter-spacing: .1em;
  opacity: .85;
  font-variant-numeric: tabular-nums;
}

/* ---------- материалы ---------- */
.mat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.mat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  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(--camel);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 27px;
  font-style: italic;
  color: var(--camel-dark);
  margin-bottom: 22px;
}
.mat-card h3 { font-size: 26px; margin-bottom: 6px; }
.mat-sub {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--camel);
  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);
}

/* ---------- карточки товара ---------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card { position: relative; display: flex; flex-direction: column; }
.card-media {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--sand);
  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, 246, 240, .93);
  border: 1px solid rgba(139, 111, 85, .35);
  color: var(--camel-dark);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 2px;
}
.badge-flag {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  background: var(--ink);
  color: #F3EBDF;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 2px;
}
.badge-flag.sale { background: var(--wine); }
.card-add {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  background: rgba(250, 246, 240, .96);
  border: 0;
  border-radius: 2px;
  padding: 12px;
  font-size: 12px;
  font-weight: 700;
  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(--camel); color: #fff; }
.card-cat { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.card-name { font-family: var(--serif); font-size: 21px; 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: 16.5px; font-weight: 700; }
.price-old {
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

/* ---------- преимущества ---------- */
.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: 23px; margin-bottom: 8px; display: block; }
.feat p { font-size: 14px; color: var(--ink-soft); }
.feat-ico { color: var(--camel); margin-bottom: 18px; }

/* ---------- блог ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.blog-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  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: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--camel); margin-bottom: 10px; }
.blog-body h3 { font-size: 24px; 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: 700; letter-spacing: .08em; color: var(--camel-dark); }

/* ============================ футер ============================ */
.footer { background: var(--ink); color: #C8BFB4; 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: #F3EBDF; font-size: 26px; }
.footer .logo-sub { color: #A98F73; }
.footer-about { font-size: 13.5px; margin-top: 18px; max-width: 34ch; color: #9C938A; }
.footer h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #F3EBDF;
  margin-bottom: 18px;
}
.footer li { margin-bottom: 10px; }
.footer li a { font-size: 14px; transition: color .3s var(--ease); }
.footer li a:hover { color: #F3EBDF; }
.footer-contact p { font-size: 14px; margin-bottom: 10px; }
.footer-contact b { color: #F3EBDF; font-weight: 600; }
.footer-demo {
  border-top: 1px solid rgba(243, 235, 223, .14);
  padding: 22px 0 28px;
  font-size: 12.5px;
  color: #8F867D;
  line-height: 1.6;
}
.footer-demo a { color: #D8C3A5; border-bottom: 1px solid rgba(216, 195, 165, .4); transition: color .3s var(--ease); }
.footer-demo a:hover { color: #fff; }

/* ============================ корзина-drawer ============================ */
.drawer-veil {
  position: fixed;
  inset: 0;
  background: rgba(30, 25, 20, .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: 26px; }
.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: 2px; }
.d-name { font-family: var(--serif); font-size: 17.5px; 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(--camel-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: 700; 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(--wine); }
.drawer-empty { text-align: center; padding: 70px 20px; color: var(--ink-soft); }
.drawer-empty .serif { font-size: 25px; color: var(--ink); margin-bottom: 8px; }
.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: 700; }
.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(--camel-dark); }
.page-head h1 { font-size: clamp(34px, 4.4vw, 58px); }
.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: 12px; font-weight: 700; letter-spacing: .16em; 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(--camel); width: 15px; height: 15px; }
.f-check .n { margin-left: auto; font-size: 12px; color: #A79C8E; 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: 2px;
  padding: 9px 10px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.f-price input:focus { outline: none; border-color: var(--camel); }
.f-reset {
  background: none;
  border: 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  text-decoration: underline;
  margin-top: 8px;
  transition: color .25s;
}
.f-reset:hover { color: var(--wine); }

.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: 2px;
  padding: 9px 12px;
  font-size: 13.5px;
}
.sort-wrap select:focus { outline: none; border-color: var(--camel); }
.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: 26px; color: var(--ink); margin-bottom: 6px; }

.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: 3px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--sand);
  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: 86px;
  height: 106px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 0;
  background: var(--sand);
  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(--camel); }

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

.opt-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; display: flex; justify-content: space-between; }
.opt-label .hint { color: var(--ink-soft); font-weight: 500; letter-spacing: .02em; 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: 2px;
  font-size: 13.5px;
  font-weight: 600;
  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(--camel); }
.size-btn.act { background: var(--ink); border-color: var(--ink); color: #fff; }

.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: 2px; background: var(--paper); }
.qty-big button { background: none; border: 0; width: 46px; height: 100%; min-height: 52px; font-size: 19px; color: var(--ink-soft); transition: color .2s; }
.qty-big button:hover { color: var(--camel-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: 3px;
  padding: 26px 28px;
  margin-bottom: 26px;
}
.p-care h3 { font-size: 23px; 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(--camel); }

.specs { border-top: 1px solid var(--line); }
.specs-row {
  display: grid;
  grid-template-columns: 180px 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; }
.p-notfound p { color: var(--ink-soft); margin-bottom: 26px; }

/* ============================ checkout ============================ */
.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: 3px;
  padding: clamp(24px, 3vw, 38px);
}
.co-card + .co-card { margin-top: 22px; }
.co-card h2 { font-size: 27px; margin-bottom: 20px; }
.co-num {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border: 1px solid var(--camel);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--camel-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: 600; letter-spacing: .04em; margin-bottom: 7px; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--milk);
  border-radius: 2px;
  padding: 13px 14px;
  font-size: 15px;
  transition: border-color .3s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--camel); 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: 2px;
  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: #CBB79E; }
.radio-tile input { accent-color: var(--camel); 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: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.radio-tile:has(input:checked) { border-color: var(--camel); 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: 700; }
.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; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure img { height: clamp(300px, 60vw, 460px); }
  .hero-note { left: 14px; bottom: 14px; }
  .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; }
  .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: 3px;
    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: 2px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    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: 17.5px; }
  .price { font-size: 15px; }
  .badge-flag { right: auto; left: 12px; top: 44px; }
  .card-add { opacity: 1; transform: none; padding: 10px; font-size: 11px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .blog-card { grid-template-columns: 1fr; }
  .blog-card img { height: 180px; }
  .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; }
}
