/* Мебель FreewayChina — тёплый «галерейный» стиль: слоновая кость, графит,
   фирменный зелёный FreewayChina и латунь. Заголовки — Cormorant, интерфейс — Manrope.
   Сначала телефон, дальше — планшет (760) и компьютер (900 / 1100). */

:root {
  --bg: #f4efe7;
  --bg-2: #ebe3d6;
  --paper: #fbf8f3;
  --photo: #efe8dd;
  --ink: #1e1c18;
  --ink-2: #55504a;
  --ink-3: #8b847a;
  --line: rgba(30, 28, 24, 0.12);
  --line-2: rgba(30, 28, 24, 0.06);
  --green: #0f6b47;
  --green-2: #0a5236;
  --green-soft: rgba(15, 107, 71, 0.09);
  --brass: #a8885a;
  --night: #16211c;
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 1px 2px rgba(30, 28, 24, 0.04), 0 18px 40px -18px rgba(30, 28, 24, 0.28);
  --shadow-lg: 0 2px 6px rgba(30, 28, 24, 0.05), 0 40px 80px -30px rgba(30, 28, 24, 0.35);
  --serif: 'Cormorant', 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --top-h: 64px;
  --tab-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --gutter: 16px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--top-h) + 72px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: calc(var(--tab-h) + var(--safe-b));
  overflow-x: hidden;
}

/* Лёгкое «зерно» бумаги поверх фона */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .33 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

svg {
  width: 20px;
  height: 20px;
  flex: none;
}

::selection {
  background: var(--green);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sr-only:focus {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
}

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.noscript {
  padding: 40px 20px;
  text-align: center;
}

/* ---------- Типографика ---------- */

.display,
.h1,
.h2,
.h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

.display {
  font-size: clamp(46px, 10vw, 84px);
  line-height: 0.94;
  font-weight: 450;
}

.display em {
  display: block;
}

.display em,
.h2 em,
.h1 em {
  font-style: italic;
  color: var(--green);
  font-weight: 400;
}

.h1 {
  font-size: clamp(40px, 7vw, 76px);
  line-height: 0.98;
}

.h2 {
  font-size: clamp(36px, 6vw, 64px);
  line-height: 0.98;
}

.h3 {
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.05;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 34em;
  margin: 22px 0 0;
}

.light {
  color: #f4efe7 !important;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.btn:active {
  transform: scale(0.97);
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-lg {
  height: 54px;
  padding: 0 28px;
  font-size: 15px;
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}

.btn-dark:hover {
  background: var(--green);
  box-shadow: 0 12px 28px -12px rgba(15, 107, 71, 0.7);
}

.btn-dark:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.btn-line {
  border: 1px solid var(--line);
  background: rgba(251, 248, 243, 0.6);
}

.btn-line:hover {
  border-color: var(--ink);
  background: var(--paper);
}

.btn-light {
  background: var(--paper);
  color: var(--ink);
}

.btn-light:hover {
  background: #fff;
}

.btn-chip {
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 14px;
}

.btn-chip .count:not(:empty) {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-size: 11.5px;
  display: inline-grid;
  place-items: center;
}

.btn.block {
  width: 100%;
}

.btn.icon-only {
  width: 46px;
  padding: 0;
}

.btn.loading {
  color: transparent;
  position: relative;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  position: relative;
  transition: background 0.2s;
}

.icon-btn:hover {
  background: rgba(30, 28, 24, 0.06);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 14.5px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: gap 0.25s var(--ease), border-color 0.25s;
}

.link-arrow svg {
  width: 17px;
  height: 17px;
}

.link-arrow:hover {
  gap: 12px;
  border-color: var(--ink);
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 0;
}

.link-btn svg {
  width: 16px;
  height: 16px;
}

.link-btn:hover {
  color: #b23b2e;
}

.badge:empty {
  display: none;
}

.badge {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--bg);
}

.badge.bump {
  animation: bump 0.5s var(--ease);
}

@keyframes bump {
  40% {
    transform: scale(1.45);
  }
}

/* ---------- Шапка ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--top-h);
  transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}

.topbar.solid {
  background: rgba(244, 239, 231, 0.82);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 0 1px 0 var(--line-2);
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-back {
  display: none;
  margin-left: -8px;
}

body:not([data-route='home']) .topbar-back {
  display: inline-grid;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand img {
  height: 22px;
  width: auto;
}

.brand-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.topbar-nav {
  display: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: -8px;
}

.hide-sm {
  display: none !important;
}

/* ---------- Нижняя панель (телефон) ---------- */

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding-bottom: var(--safe-b);
  background: rgba(251, 248, 243, 0.9);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-top: 1px solid var(--line-2);
}

.tabbar-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: var(--tab-h);
}

.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 650;
  color: var(--ink-3);
  transition: color 0.2s;
}

.tab > span:first-child {
  display: grid;
}

.tab svg {
  width: 23px;
  height: 23px;
}

.tab.active {
  color: var(--ink);
}

.tab .badge {
  top: 6px;
  right: calc(50% - 22px);
}

.tab-ink {
  position: absolute;
  top: 0;
  left: 0;
  width: 20%;
  height: 2px;
  transition: transform 0.45s var(--ease), opacity 0.3s;
}

.tab-ink::before {
  content: '';
  position: absolute;
  left: 30%;
  right: 30%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

/* ---------- Экраны ---------- */

.view-enter {
  animation: viewIn 0.45s var(--ease);
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
}

::view-transition-group(pd-hero) {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.3, 0.7, 0.1, 1);
  z-index: 50;
}

::view-transition-old(pd-hero),
::view-transition-new(pd-hero) {
  height: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
}

.will-reveal {
  opacity: 0;
  transform: translateY(22px);
}

.revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.section {
  padding: 72px 0;
}

.section-head {
  margin-bottom: 32px;
}

.section-head.row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.page {
  padding-top: 24px;
  padding-bottom: 64px;
  min-height: 60vh;
}

.page.narrow {
  max-width: 860px;
}

.page-head {
  margin: 12px 0 32px;
}

.page-lead {
  color: var(--ink-2);
  max-width: 40em;
  margin: 18px 0 0;
  font-size: 16px;
}

/* ---------- Фото ---------- */

.media {
  position: relative;
  overflow: hidden;
  background: var(--photo);
  isolation: isolate;
}

.media img {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
}

.media img.loaded {
  opacity: 1;
}

.media.full img {
  object-fit: cover;
}

/* Студийное фото на белом: белый фон «растворяется» в тёплом */
.media.cut img {
  object-fit: contain;
  padding: 7%;
  mix-blend-mode: multiply;
}

.media-fallback {
  position: absolute;
  inset: 25%;
  width: 50%;
  height: 50%;
  color: var(--ink-3);
  opacity: 0.6;
}

.skeleton-media,
.skeleton .media {
  background: linear-gradient(100deg, var(--photo) 30%, #f6f1ea 50%, var(--photo) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.6s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -100% 0;
  }
}

/* ---------- Герой ---------- */

.hero {
  position: relative;
  padding: 20px 0 0;
  margin-top: calc(-1 * var(--top-h));
  padding-top: calc(var(--top-h) + 20px);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  background:
    radial-gradient(60% 50% at 85% 20%, rgba(168, 136, 90, 0.16), transparent 70%),
    radial-gradient(50% 40% at 10% 90%, rgba(15, 107, 71, 0.07), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 36px;
}

.hero-copy {
  padding-top: 8px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 18px clamp(18px, 4vw, 36px);
  margin: 40px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  margin: 0;
}

.hero-stats dt {
  white-space: nowrap;
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1;
  font-weight: 500;
  font-variant-numeric: lining-nums;
}

.hero-stats dd {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
  max-width: 11em;
}

.hero-art {
  position: relative;
  height: min(118vw, 520px);
  margin: 0 -4px;
}

.frame {
  position: absolute;
  will-change: transform;
}

.frame .media {
  width: 100%;
  height: 100%;
  box-shadow: var(--shadow-lg);
}

.frame-arch {
  left: 0;
  top: 0;
  width: 60%;
  height: 86%;
}

.frame-arch .media {
  border-radius: 999px 999px 22px 22px;
}

.frame-round {
  right: 2%;
  top: 4%;
  width: 36%;
  aspect-ratio: 1;
}

.frame-round .media {
  border-radius: 50%;
  outline: 6px solid var(--bg);
}

.frame-card {
  right: 0;
  bottom: 0;
  width: 44%;
  aspect-ratio: 4 / 5;
}

.frame-card .media {
  border-radius: 20px;
  outline: 6px solid var(--bg);
}

.hero-tag {
  position: absolute;
  left: 6%;
  bottom: 4%;
  padding: 10px 16px 10px 14px;
  border-radius: 999px;
  background: rgba(251, 248, 243, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
}

.hero-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2fa36b;
  box-shadow: 0 0 0 4px rgba(47, 163, 107, 0.18);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 8px rgba(47, 163, 107, 0);
  }
}

.marquee {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
}

.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: marquee 48s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--ink-2);
  white-space: nowrap;
}

.marquee-track i {
  font-style: normal;
  color: var(--brass);
  font-size: 0.6em;
  align-self: center;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Разделы ---------- */

.cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.cat {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line-2);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.cat .media {
  aspect-ratio: 1 / 1;
}

.cat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cat:hover .media img {
  transform: scale(1.05);
}

.cat-body {
  padding: 16px 16px 18px;
}

.cat-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.cat h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.02;
  margin: 4px 0 6px;
}

.cat p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-2);
}

.cat-go {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(251, 248, 243, 0.9);
  transform: rotate(-45deg);
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s;
}

.cat:hover .cat-go {
  transform: rotate(0);
  background: var(--ink);
  color: var(--paper);
}

.cat.skeleton {
  aspect-ratio: 3 / 4;
}

.cat.skeleton .media {
  height: 100%;
}

/* ---------- Коллекции ---------- */

.cols-scroller {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.cols-scroller::-webkit-scrollbar {
  display: none;
}

.cols-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 0 var(--gutter) 8px;
}

@media (min-width: 1360px) {
  .cols-track {
    padding-left: calc((100vw - 1360px) / 2 + var(--gutter));
    padding-right: calc((100vw - 1360px) / 2 + var(--gutter));
  }
}

.colcard {
  scroll-snap-align: start;
  scroll-margin-left: var(--gutter);
  width: min(78vw, 360px);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-2);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.colcard .media {
  aspect-ratio: 4 / 3.6;
}

.colcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.colcard:hover .media img {
  transform: scale(1.05);
}

.colcard-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.colcard-no {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brass);
  letter-spacing: 0.1em;
}

.colcard h3,
.colrow h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 46px;
  line-height: 1;
  margin: 6px 0 2px;
}

.colcard-sub {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

.colcard-text {
  margin: 0 0 16px;
  color: var(--ink-2);
  font-size: 14px;
  flex: 1;
}

.colcard-meta {
  font-size: 13px;
  font-weight: 650;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}

/* ---------- Каталог: панель ---------- */

.shop {
  padding-bottom: 40px;
}

.shop-count {
  margin: 0;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 600;
}

.toolbar-sentinel {
  height: 1px;
}

.toolbar {
  position: sticky;
  top: var(--top-h);
  z-index: 30;
  padding: 10px 0;
  background: rgba(244, 239, 231, 0.86);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  transition: box-shadow 0.3s;
}

.toolbar.stuck {
  box-shadow: 0 1px 0 var(--line-2), 0 12px 24px -20px rgba(30, 28, 24, 0.4);
}

.toolbar-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  height: 44px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 0 8px 0 16px;
  gap: 10px;
  transition: box-shadow 0.2s;
  min-width: 0;
}

.search:focus-within {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.search > svg {
  color: var(--ink-3);
  width: 18px;
  height: 18px;
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-size: 15px;
  height: 100%;
}

.search input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-3);
}

.search-clear svg {
  width: 16px;
  height: 16px;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  grid-column: 1 / -1;
  order: 3;
  margin: 0 calc(-1 * var(--gutter));
  padding: 2px var(--gutter);
}

.chips::-webkit-scrollbar {
  display: none;
}

.chips.wrap {
  flex-wrap: wrap;
  overflow: visible;
  margin: 0;
  padding: 0;
}

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.chip small {
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 600;
}

.chip:hover {
  border-color: var(--ink-2);
}

.chip.on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.chip.on small {
  color: rgba(251, 248, 243, 0.6);
}

.toolbar-actions {
  display: flex;
  gap: 8px;
}

.select {
  position: relative;
  display: none;
}

.select select {
  appearance: none;
  height: 44px;
  padding: 0 40px 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.select svg {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.btn-chip span {
  display: none;
}

.active-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 4px;
}

.active-tags:empty {
  display: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px 0 14px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-2);
  font-size: 13px;
  font-weight: 650;
}

.tag svg {
  width: 14px;
  height: 14px;
}

.tag-reset {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-3);
  padding: 0 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Сетка и карточка ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 12px;
  margin-top: 20px;
}

.grid > .empty {
  grid-column: 1 / -1;
}

.pcard {
  position: relative;
  min-width: 0;
}

.pcard-link {
  display: block;
}

.pcard .media {
  aspect-ratio: 4 / 5;
  border-radius: var(--r);
}

.pcard .media img.alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  object-fit: cover;
  transition: opacity 0.6s var(--ease);
}

.pcard .media img.alt[data-cut='1'] {
  object-fit: contain;
  padding: 7%;
  mix-blend-mode: multiply;
}

@media (hover: hover) {
  .pcard:hover .media img:not(.alt) {
    transform: scale(1.045);
  }

  .pcard:hover .media img.alt.loaded {
    opacity: 1;
  }

  /* Вторая фото на карточке заменяет первую, а не лежит поверх неё: у студийных фото на светлом фоне
     (multiply) иначе обе просвечивали друг через друга */
  .pcard:hover .media:has(img.alt.loaded) img:not(.alt) {
    opacity: 0;
  }
}

.pcard-body {
  padding: 14px 4px 0;
}

.pcard-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pcard-art {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 550;
  line-height: 1.1;
  margin-top: 3px;
}

.pcard-art i {
  font-size: 15px;
  color: var(--brass);
  font-weight: 500;
}

.pcard-meta {
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pcard-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin-top: 8px;
}

.pcard-price b {
  font-size: 15.5px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.pcard-price.ask b {
  font-weight: 650;
  color: var(--ink-2);
  font-size: 14px;
}

.rub {
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 600;
}

.rub:empty {
  display: none;
}

.pcard-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.pcard-badge:not(.soft)::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2fa36b;
}

.pcard-badge.soft {
  color: var(--ink-2);
}

.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(251, 248, 243, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  transition: transform 0.2s, color 0.2s;
}

.fav-btn svg {
  width: 19px;
  height: 19px;
}

.fav-btn[aria-pressed='true'] {
  color: #c0392b;
}

.fav-btn[aria-pressed='true'] svg {
  fill: currentColor;
}

.fav-btn.pop {
  animation: bump 0.45s var(--ease);
}

.fav-btn.big {
  position: static;
  width: 54px;
  height: 54px;
  flex: none;
  border: 1px solid var(--line);
  background: var(--paper);
}

.pcard.skeleton .pcard-body span {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: var(--bg-2);
  margin-top: 10px;
  width: 50%;
}

.pcard.skeleton .pcard-body span:nth-child(2) {
  width: 70%;
  height: 20px;
}

.more {
  display: flex;
  justify-content: center;
  padding: 40px 0 0;
}

.more .btn small {
  color: var(--ink-3);
  font-weight: 600;
}

.more-end {
  color: var(--ink-3);
  font-size: 13.5px;
  margin: 0;
}

.empty {
  text-align: center;
  padding: 56px 20px;
  max-width: 460px;
  margin: 0 auto;
}

.empty-art {
  width: 110px;
  height: 110px;
  color: var(--brass);
  margin: 0 auto 10px;
}

.empty h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.05;
  margin: 0 0 10px;
}

.empty p {
  color: var(--ink-2);
  margin: 0 0 24px;
}

/* ---------- Как мы работаем, преимущества ---------- */

.steps-section {
  background: var(--paper);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}

.steps li {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.steps .num {
  font-family: var(--serif);
  font-size: 54px;
  line-height: 1;
  color: var(--brass);
  font-weight: 400;
  font-style: italic;
}

.steps h3 {
  font-size: 18px;
  font-weight: 750;
  margin: 12px 0 8px;
  letter-spacing: -0.01em;
}

.steps p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
}

.steps.vertical {
  margin: 8px 0 48px;
}

.perks {
  display: grid;
  gap: 14px;
}

.perk {
  padding: 26px 24px;
  border-radius: var(--r-lg);
  background: rgba(251, 248, 243, 0.6);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.perk svg {
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  stroke-width: 1.5;
}

.perk h3 {
  font-family: var(--serif);
  font-weight: 550;
  font-size: 26px;
  line-height: 1.05;
  margin: 18px 0 8px;
}

.perk p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
}

.cta-band {
  position: relative;
  background: var(--night);
  color: rgba(244, 239, 231, 0.75);
  padding: 72px 0;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto auto;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(168, 136, 90, 0.25), transparent);
}

.cta-inner {
  position: relative;
  display: grid;
  gap: 28px;
  align-items: end;
}

.cta-band .eyebrow {
  color: var(--brass);
}

.cta-band .h2 em {
  color: #d9bd8f;
}

.cta-band p {
  max-width: 36em;
  margin: 18px 0 0;
}

/* ---------- Подвал ---------- */

.footer {
  background: #121a16;
  color: rgba(244, 239, 231, 0.62);
  padding: 56px 0 calc(28px + var(--safe-b));
  font-size: 14px;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

.footer-about img {
  height: 22px;
  width: auto;
  margin-bottom: 18px;
  opacity: 0.95;
}

.footer-about p {
  margin: 0;
  max-width: 28em;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav b {
  color: #f4efe7;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.footer-nav a svg {
  width: 17px;
  height: 17px;
}

.footer-nav a:hover {
  color: #f4efe7;
}

.footer-legal {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(244, 239, 231, 0.1);
}

.footer-legal small {
  font-size: 12px;
  line-height: 1.6;
  display: block;
  max-width: 70em;
}

/* ---------- Карточка модели ---------- */

.pd {
  padding-top: 12px;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-3);
  margin: 4px 0 18px;
  white-space: nowrap;
  overflow: hidden;
}

.crumbs svg {
  width: 13px;
  height: 13px;
}

.crumbs a:hover {
  color: var(--ink);
}

.crumbs span {
  color: var(--ink);
  font-weight: 600;
}

.pd-grid {
  display: grid;
  gap: 28px;
}

.gallery {
  position: relative;
  min-width: 0;
}

.gallery-main {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--r-lg);
  margin: 0 calc(-1 * var(--gutter));
}

.gallery-main::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  position: relative;
  cursor: zoom-in;
  padding: 0 var(--gutter);
}

.gallery-slide .media {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
}

.gallery-slide .media.cut img {
  padding: 9%;
}

.live-tag {
  position: absolute;
  left: calc(var(--gutter) + 14px);
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(251, 248, 243, 0.92);
  font-size: 11.5px;
  font-weight: 750;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}

.gallery-dots i {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  transition: width 0.3s var(--ease), background 0.3s;
}

.gallery-dots i.on {
  width: 22px;
  background: var(--ink);
}

.gallery-thumbs,
.gallery-nav,
.gallery-zoom {
  display: none;
}

.pd-col {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.pd-title {
  margin: 0;
  font-weight: 400;
}

.pd-title span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.pd-title b {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(54px, 8vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-top: 6px;
}

.pd-short {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 15px;
}

.pd-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 24px 0 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pd-price b {
  font-size: 36px;
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1;
}

.pd-price b.ask {
  font-size: 26px;
}

.rub.big {
  font-size: 17px;
  color: var(--ink-2);
}

.pd-price small {
  flex-basis: 100%;
  color: var(--ink-3);
  font-size: 12.5px;
}

.pd-block {
  margin-top: 22px;
}

.pd-block h4 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.pd-block h4 small {
  color: var(--ink-3);
  font-weight: 600;
}

.variants {
  display: grid;
  gap: 8px;
}

.variant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.variant span {
  font-weight: 600;
}

.variant b {
  font-weight: 750;
  white-space: nowrap;
}

.variant:hover {
  border-color: var(--ink-3);
}

.variant.on {
  border-color: var(--ink);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.pd-option,
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  cursor: pointer;
  font-size: 14px;
}

.pd-option {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed var(--line);
}

.pd-option input,
.consent input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.box {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid var(--ink-3);
  display: grid;
  place-items: center;
  margin-top: 1px;
  transition: background 0.2s, border-color 0.2s;
}

.box svg {
  width: 14px;
  height: 14px;
  color: #fff;
  opacity: 0;
}

input:checked + .box {
  background: var(--green);
  border-color: var(--green);
}

input:checked + .box svg {
  opacity: 1;
}

input:focus-visible + .box {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.pd-option b {
  display: block;
  font-weight: 700;
}

.pd-option small {
  color: var(--ink-3);
  font-size: 13px;
}

.pd-buy {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.grow {
  flex: 1;
}

.qty {
  display: flex;
  align-items: center;
  height: 54px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  flex: none;
}

.qty button {
  width: 42px;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--ink-2);
}

.qty button svg {
  width: 16px;
  height: 16px;
}

.qty input {
  width: 38px;
  text-align: center;
  border: 0;
  background: none;
  font-weight: 750;
  font-size: 16px;
  outline: none;
  -moz-appearance: textfield;
}

.qty input::-webkit-inner-spin-button,
.qty input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.qty.small {
  height: 40px;
}

.qty.small button {
  width: 34px;
}

.qty.small input {
  width: 32px;
  font-size: 14.5px;
}

.pd-total {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ink-2);
  min-height: 1em;
}

.pd-total:empty {
  display: none;
}

.pd-ask {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.pd-ask .btn:first-child {
  flex: 1;
}

.pd-facts {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
  border-radius: var(--r);
  overflow: hidden;
}

.pd-facts li {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(251, 248, 243, 0.7);
  font-size: 13.5px;
}

.pd-facts svg {
  color: var(--green);
  margin-top: 1px;
}

.pd-facts b {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.pd-facts span {
  display: block;
  color: var(--ink-2);
}

.pd-details {
  display: grid;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.pd-spec dl {
  margin: 20px 0 0;
}

.pd-spec dl div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 14.5px;
}

.pd-spec dt {
  color: var(--ink-2);
  flex: none;
}

.pd-spec dl div::after {
  content: '';
  order: 1;
  flex: 1;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-4px);
}

.pd-spec dd {
  order: 2;
  margin: 0;
  font-weight: 650;
  text-align: right;
  max-width: 60%;
}

.mat-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mat-list li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 13.5px;
}

.note {
  border-top: 1px solid var(--line);
}

.note:last-child {
  border-bottom: 1px solid var(--line);
}

.note summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  font-weight: 700;
  cursor: pointer;
}

.note summary::-webkit-details-marker {
  display: none;
}

.note summary svg:first-child {
  color: var(--green);
}

.note summary svg:last-child {
  margin-left: auto;
  transition: transform 0.3s var(--ease);
}

.note[open] summary svg:last-child {
  transform: rotate(180deg);
}

.note ul {
  margin: 0;
  padding: 0 0 20px 20px;
  color: var(--ink-2);
  font-size: 14px;
  display: grid;
  gap: 8px;
}

.similar {
  padding-top: 72px;
}

.hscroll {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.hscroll::-webkit-scrollbar {
  display: none;
}

.hscroll-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 0 var(--gutter) 8px;
}

@media (min-width: 1360px) {
  .hscroll-track {
    padding-left: calc((100vw - 1360px) / 2 + var(--gutter));
    padding-right: calc((100vw - 1360px) / 2 + var(--gutter));
  }
}

.hscroll .pcard {
  width: min(56vw, 280px);
  scroll-snap-align: start;
  scroll-margin-left: var(--gutter);
}

.buybar {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(var(--tab-h) + var(--safe-b) + 10px);
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  background: rgba(251, 248, 243, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--line-2);
  transform: translateY(140%);
  transition: transform 0.45s var(--ease);
}

.buybar.show {
  transform: none;
}

.buybar b {
  display: block;
  font-size: 16px;
}

.buybar small {
  color: var(--ink-3);
  font-size: 12px;
}

/* ---------- Просмотр фото ---------- */

.viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(18, 16, 13, 0.96);
  opacity: 0;
  transition: opacity 0.3s;
}

.viewer.open {
  opacity: 1;
}

.viewer-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.viewer-track::-webkit-scrollbar {
  display: none;
}

.viewer-slide {
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  scroll-snap-align: center;
  display: grid;
  place-items: center;
  padding: 64px 12px;
}

.viewer-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.viewer-slide.cut img {
  background: var(--photo);
  padding: 4%;
}

.viewer .icon-btn {
  position: absolute;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  width: 46px;
  height: 46px;
}

.viewer .icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.viewer-x {
  top: 14px;
  right: 14px;
}

.viewer-nav {
  top: 50%;
  transform: translateY(-50%);
}

.viewer-nav.prev {
  left: 14px;
}

.viewer-nav.next {
  right: 14px;
}

.viewer-count {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 650;
}

/* ---------- Нижний лист / боковая панель ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(20, 18, 15, 0.42);
  opacity: 0;
  transition: opacity 0.35s;
}

.backdrop.open {
  opacity: 1;
}

.sheet {
  --drag: 0px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: 26px 26px 0 0;
  box-shadow: var(--shadow-lg);
  transform: translateY(calc(100% + 20px));
  transition: transform 0.45s var(--ease);
  padding-bottom: var(--safe-b);
}

.sheet.open {
  transform: translateY(var(--drag));
}

.sheet.dragging {
  transition: none;
}

.sheet-grab {
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: var(--line);
  margin: 10px auto 0;
  flex: none;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 8px 22px;
  flex: none;
}

.sheet-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
}

.sheet-body {
  overflow-y: auto;
  padding: 8px 22px 24px;
  overscroll-behavior: contain;
}

.sheet-foot {
  display: flex;
  gap: 10px;
  padding: 14px 22px 16px;
  border-top: 1px solid var(--line-2);
  flex: none;
}

.sheet-foot .btn {
  flex: 1;
}

.sheet-foot .btn-dark {
  flex: 2;
}

.fgroup {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-2);
}

.fgroup:last-child {
  border-bottom: 0;
}

.fgroup h4 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.price-inputs label {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  color: var(--ink-3);
}

.price-inputs input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  font-weight: 650;
  font-size: 15px;
  color: var(--ink);
}

.price-inputs i {
  font-style: normal;
}

.contacts-lead {
  color: var(--ink-2);
  margin: 0 0 18px;
}

.contact-list {
  display: grid;
  gap: 8px;
}

.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 0.2s, transform 0.2s;
}

.contact:hover {
  box-shadow: inset 0 0 0 1px var(--ink-3);
}

.contact div {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact b {
  font-size: 15px;
}

.contact span {
  font-size: 13px;
  color: var(--ink-3);
}

.contact > svg {
  color: var(--ink-3);
  width: 18px;
}

.ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
}

.ico-wa {
  background: #25d366;
}

.ico-tg {
  background: #2aabee;
}

.ico-mail {
  background: var(--brass);
}

.ico-web {
  background: var(--green);
}

/* ---------- Корзина ---------- */

.cart-grid {
  display: grid;
  gap: 32px;
}

.cart-lines {
  display: grid;
  gap: 12px;
  align-content: start;
}

.line {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: var(--r);
  background: rgba(251, 248, 243, 0.75);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.line-img {
  flex: none;
  width: 96px;
}

.line-img .media {
  aspect-ratio: 1;
  border-radius: 12px;
}

.line-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-right: 34px;
}

.line-title span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.line-title b {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 550;
  line-height: 1.1;
}

.line-var {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink-2);
}

.line-warn {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: #a0522d;
  font-weight: 600;
}

.line-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  flex-wrap: wrap;
}

.line-sum {
  text-align: right;
}

.line-sum b {
  display: block;
  font-size: 16px;
  font-weight: 750;
}

.line-sum b.ask {
  font-size: 14px;
  color: var(--ink-2);
}

.line-sum small {
  font-size: 12px;
  color: var(--ink-3);
}

.line-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  color: var(--ink-3);
}

.line-x svg {
  width: 18px;
  height: 18px;
}

.line-x:hover {
  color: #b23b2e;
}

.cart-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.summary,
.order-form {
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line-2);
}

.sum-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 15px;
}

.sum-row b {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.sum-row.muted {
  color: var(--ink-2);
  font-size: 14px;
}

.sum-row .rub {
  font-size: 14px;
  color: var(--ink-2);
}

.sum-note {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
  font-size: 12.5px;
  color: var(--ink-3);
}

.order-form .h3 {
  margin-bottom: 6px;
}

.form-lead {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field > span {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.field small {
  color: var(--ink-3);
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 13px 14px;
  font-size: 15.5px;
  outline: none;
  transition: box-shadow 0.2s;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.field.invalid input {
  box-shadow: inset 0 0 0 1.5px #c0392b;
}

.consent.invalid .box {
  border-color: #c0392b;
}

.consent {
  font-size: 13px;
  color: var(--ink-2);
  margin: 4px 0 18px;
}

.consent a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.seg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.seg-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-2);
  transition: box-shadow 0.2s, color 0.2s, background 0.2s;
}

.seg-btn.on {
  box-shadow: inset 0 0 0 1.5px var(--ink);
  color: var(--ink);
  background: var(--bg);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.done {
  max-width: 680px;
  margin: 24px auto 0;
  text-align: center;
}

.done-mark {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  color: #fff;
}

.done-mark svg {
  width: 34px;
  height: 34px;
}

.done-mark.ok {
  background: var(--green);
  box-shadow: 0 0 0 10px var(--green-soft);
}

.done-mark.wait {
  background: var(--brass);
  box-shadow: 0 0 0 10px rgba(168, 136, 90, 0.15);
}

.done .lede {
  margin-left: auto;
  margin-right: auto;
}

.done-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 32px 0;
}

.done-list,
.order ul {
  text-align: left;
  display: grid;
  gap: 8px;
}

.done-item,
.order li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(251, 248, 243, 0.75);
  font-size: 14px;
}

.done-item img,
.order li img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--photo);
  flex: none;
}

.done-item span,
.order li span {
  flex: 1;
  min-width: 0;
}

.done-item small,
.order li small {
  display: block;
  color: var(--ink-3);
  font-size: 12.5px;
}

.done-item em,
.order li em {
  font-style: normal;
  font-size: 12.5px;
  color: var(--ink-2);
  text-align: right;
  max-width: 45%;
}

/* ---------- Заказы ---------- */

.orders {
  display: grid;
  gap: 16px;
}

.order {
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line-2);
}

.order header,
.order footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.order header b {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 550;
  display: block;
  line-height: 1.1;
}

.order header small {
  color: var(--ink-3);
  font-size: 12.5px;
}

.order ul {
  list-style: none;
  padding: 0;
  margin: 14px 0;
}

.order footer {
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
  font-size: 14px;
}

.status {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}

.status.sent {
  background: var(--green-soft);
  color: var(--green-2);
}

.status.pending {
  background: rgba(168, 136, 90, 0.16);
  color: #7c5f33;
}

/* ---------- Коллекции и инфо ---------- */

.collections {
  display: grid;
  gap: 20px;
}

.colrow {
  display: grid;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line-2);
  transition: box-shadow 0.4s var(--ease);
}

.colrow:hover {
  box-shadow: var(--shadow);
}

.colrow-cover .media {
  aspect-ratio: 4 / 3;
  height: 100%;
}

.colrow:hover .colrow-cover img {
  transform: scale(1.04);
}

.colrow-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.colrow-body h2 {
  font-size: clamp(48px, 6vw, 72px);
}

.colrow-body > p:not(.colcard-sub) {
  color: var(--ink-2);
  margin: 4px 0 18px;
}

.colrow-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.colrow-thumbs .media {
  aspect-ratio: 1;
  border-radius: 12px;
}

.colrow .link-arrow {
  align-self: flex-start;
  margin-top: auto;
}

.info-block {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.info-block p,
.info-block li {
  color: var(--ink-2);
}

.info-block .h3 {
  margin-bottom: 12px;
}

.dots {
  padding-left: 20px;
  display: grid;
  gap: 10px;
  margin: 0;
}

.dots b {
  color: var(--ink);
}

.info-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

/* ---------- Тосты и «полёт» ---------- */

.toasts {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-h) + var(--safe-b) + 16px);
  z-index: 90;
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  width: min(92vw, 440px);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 16px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.45s var(--ease);
}

.toast span {
  flex: 1;
}

.toast svg {
  width: 18px;
  height: 18px;
  color: #8fd3b0;
}

.toast a,
.toast button {
  color: #d9bd8f;
  font-weight: 750;
  padding: 4px 6px;
}

.toast.out {
  opacity: 0;
  transform: translateY(8px);
  transition: 0.3s;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}

.fly {
  position: fixed;
  z-index: 95;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--photo) center / cover;
  box-shadow: var(--shadow-lg);
  pointer-events: none;
}

/* ======================================================================
   Планшет
   ====================================================================== */

@media (min-width: 760px) {
  :root {
    --gutter: 28px;
  }

  .section {
    padding: 104px 0;
  }

  .section-head {
    margin-bottom: 44px;
  }

  .cats {
    gap: 16px;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 20px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }

  .perks {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }

  .colrow {
    grid-template-columns: 1.1fr 1fr;
  }

  .colrow:nth-child(even) .colrow-cover {
    order: 2;
  }

  .colrow-body {
    padding: 40px;
  }

  .select {
    display: block;
  }

  .btn-chip span {
    display: inline;
  }

  .toolbar-inner {
    grid-template-columns: 1fr auto;
  }

  .hero-art {
    height: 560px;
  }

  .cta-inner {
    grid-template-columns: 1fr auto;
  }

  .pd-details {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .cols-track,
  .hscroll-track {
    gap: 20px;
  }

  .hscroll .pcard {
    width: 280px;
  }
}

/* ======================================================================
   Компьютер
   ====================================================================== */

@media (min-width: 900px) {
  :root {
    --top-h: 76px;
    --tab-h: 0px;
  }

  body {
    padding-bottom: 0;
  }

  .tabbar {
    display: none;
  }

  .hide-sm {
    display: inline-grid !important;
  }

  .topbar-back,
  body:not([data-route='home']) .topbar-back {
    display: none;
  }

  .brand img {
    height: 26px;
  }

  .brand-tag {
    font-size: 25px;
  }

  .topbar-nav {
    display: flex;
    gap: 4px;
    margin-right: 18px;
  }

  .topbar-nav a {
    position: relative;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 650;
    color: var(--ink-2);
    transition: color 0.2s;
  }

  .topbar-nav a::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 1.5px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
  }

  .topbar-nav a:hover,
  .topbar-nav a.active {
    color: var(--ink);
  }

  .topbar-nav a:hover::after,
  .topbar-nav a.active::after {
    transform: scaleX(1);
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
    min-height: min(88vh, 820px);
  }

  .hero-copy {
    padding: 40px 0;
  }

  .display {
    font-size: clamp(60px, 6.4vw, 108px);
  }

  .hero-art {
    height: min(76vh, 680px);
  }

  .cats {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .cat .media {
    aspect-ratio: 4 / 4.6;
  }

  .cat-body {
    padding: 20px 22px 24px;
  }

  .toolbar-inner {
    grid-template-columns: minmax(240px, 340px) 1fr auto;
    gap: 16px;
  }

  .chips {
    grid-column: auto;
    order: 0;
    margin: 0;
    padding: 2px 0;
    -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
    mask-image: linear-gradient(90deg, #000 92%, transparent);
  }

  .pd-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.8fr);
    gap: 64px;
    align-items: start;
  }

  .gallery {
    position: sticky;
    top: calc(var(--top-h) + 16px);
  }

  .gallery-main {
    margin: 0;
  }

  .gallery-slide {
    padding: 0;
  }

  .gallery-slide .media {
    aspect-ratio: 1 / 1;
  }

  .live-tag {
    left: 16px;
  }

  .gallery-dots {
    display: none;
  }

  .gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
  }

  .thumb {
    width: 84px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--line-2);
    opacity: 0.65;
    transition: opacity 0.2s, box-shadow 0.2s;
  }

  .thumb .media {
    aspect-ratio: 1;
  }

  .thumb.on,
  .thumb:hover {
    opacity: 1;
    box-shadow: 0 0 0 1.5px var(--ink);
  }

  .gallery-nav {
    display: grid;
    place-items: center;
    position: absolute;
    top: calc(50% - 50px);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(251, 248, 243, 0.92);
    box-shadow: var(--shadow);
    opacity: 0;
    transition: opacity 0.25s;
  }

  .gallery:hover .gallery-nav {
    opacity: 1;
  }

  .gallery-nav.prev {
    left: 16px;
  }

  .gallery-nav.next {
    right: 16px;
  }

  .gallery-zoom {
    display: grid;
    place-items: center;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(251, 248, 243, 0.92);
    pointer-events: none;
  }

  .gallery-zoom svg {
    width: 18px;
    height: 18px;
  }

  .pd-panel {
    padding-top: 8px;
  }

  .buybar {
    display: none;
  }

  .cart-grid {
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: start;
  }

  .cart-side {
    position: sticky;
    top: calc(var(--top-h) + 16px);
  }

  .line-img {
    width: 120px;
  }

  .sheet-side {
    left: auto;
    top: 0;
    width: 460px;
    max-height: none;
    border-radius: 0;
    transform: translateX(calc(100% + 20px));
  }

  .sheet-side.open {
    transform: none;
  }

  .sheet-side .sheet-grab {
    display: none;
  }

  .sheet-side .sheet-head {
    padding-top: 22px;
  }

  .sheet:not(.sheet-side) {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    width: 480px;
    border-radius: 26px;
    transform: translate(-50%, -46%) scale(0.98);
    opacity: 0;
    transition: transform 0.4s var(--ease), opacity 0.3s;
  }

  .sheet:not(.sheet-side).open {
    transform: translate(-50%, -50%);
    opacity: 1;
  }

  .sheet:not(.sheet-side) .sheet-grab {
    display: none;
  }

  .toasts {
    bottom: 24px;
  }
}

@media (min-width: 1100px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 48px 24px;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .perks {
    grid-template-columns: repeat(4, 1fr);
  }

  .colcard {
    width: 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .marquee-track {
    animation: none;
  }
}

/* ---------- Раздел «Цена по запросу» (/request) и запрос стоимости ---------- */

.display.small {
  font-size: clamp(40px, 8.4vw, 72px);
}

.req-hero {
  padding: 28px 0 8px;
}

.req-hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.req-hero .lede {
  max-width: 34em;
  margin: 18px 0 0;
  color: var(--ink-2);
}

.req-steps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.req-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 14.5px;
}

.req-steps b {
  font: 500 22px/1 var(--serif);
  color: var(--green);
  width: 30px;
}

.req-collage {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.req-frame .media {
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.req-frame:nth-child(1) .media {
  border-radius: 999px 999px var(--r) var(--r);
  aspect-ratio: 4 / 4.4;
}

.req-frame:nth-child(4) .media {
  border-radius: var(--r) var(--r) 999px 999px;
  aspect-ratio: 4 / 4.4;
}

.req-frame:nth-child(2),
.req-frame:nth-child(3) {
  align-self: center;
}

.req-shop {
  padding-top: 8px;
}

.req-cols {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  margin-left: calc(-1 * var(--gutter)) !important;
  margin-right: calc(-1 * var(--gutter)) !important;
  padding: 0 var(--gutter);
  align-items: center;
  gap: 8px;
  margin: 18px 0 6px;
}

.req-cols::-webkit-scrollbar {
  display: none;
}

.req-cols > span {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 4px;
}

.chip.small {
  height: 32px;
  padding: 0 12px;
  font-size: 12.5px;
}

.req-shop .section-head {
  margin-top: 18px;
}

/* Полоса на главной */
.req-band {
  position: relative;
  background: var(--night);
  color: rgba(244, 239, 231, 0.75);
  padding: 56px 0 44px;
  margin: 24px 0;
  overflow: hidden;
}

.req-band::before {
  content: '';
  position: absolute;
  inset: auto auto -50% -10%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(15, 107, 71, 0.45), transparent);
}

.req-band .eyebrow {
  color: var(--brass);
}

.req-band .h2 em {
  color: #d9bd8f;
  font-style: italic;
}

.req-band-head {
  position: relative;
  display: grid;
  gap: 22px;
  align-items: end;
  margin-bottom: 28px;
}

.req-band-head p {
  max-width: 38em;
  margin: 14px 0 0;
}

.req-tiles {
  position: relative;
}

.req-tile {
  position: relative;
  width: min(62vw, 260px);
  scroll-snap-align: start;
  scroll-margin-left: var(--gutter);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--photo);
  color: var(--paper);
}

.req-tile .media {
  aspect-ratio: 4 / 5;
}

.req-tile .media.cut {
  background: var(--paper);
}

.req-tile > span {
  position: absolute;
  inset: auto 0 0;
  padding: 40px 16px 16px;
  background: linear-gradient(transparent, rgba(12, 18, 15, 0.82));
  display: grid;
  gap: 2px;
}

.req-tile b {
  font: 500 24px/1.05 var(--serif);
}

.req-tile small {
  font-size: 12.5px;
  opacity: 0.8;
}

@media (hover: hover) {
  .req-tile .media img {
    transition: transform 0.6s var(--ease);
  }

  .req-tile:hover .media img {
    transform: scale(1.04);
  }
}

/* Лист «Запросить стоимость» */
.quote-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--r);
  background: var(--paper);
  border: 1px solid var(--line-2);
  margin-bottom: 18px;
}

.quote-item .media {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: var(--r-sm);
}

.quote-item b {
  display: block;
  font: 500 20px/1.15 var(--serif);
}

.quote-item span {
  font-size: 13px;
  color: var(--ink-3);
}

.quote-form {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.quote-form .qty {
  width: 150px;
}

.quote-form .form-lead {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
}

.quote-done {
  padding: 8px 0 12px;
}

.quote-done .h2 {
  margin-top: 6px;
}

@media (min-width: 760px) {
  .req-steps {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 22px;
  }

  .req-tile {
    width: 280px;
  }
}

@media (min-width: 900px) {
  .req-hero {
    padding: 44px 0 16px;
  }

  .req-hero-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
  }

  .req-collage {
    display: grid;
  }

  .req-cols {
    flex-wrap: wrap;
    overflow: visible;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0;
  }

  .req-band {
    padding: 80px 0 64px;
  }

  .req-band-head {
    grid-template-columns: 1fr auto;
  }
}

/* ---------- Услуги ---------- */

.svcs {
  display: grid;
  gap: 16px;
  margin: 8px 0 24px;
}

.svc {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line-2);
}

.svc-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}

.svc-ico svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.5;
}

.svc h2 {
  font: 500 28px/1.1 var(--serif);
  margin: 0 0 10px;
}

.svc-lead {
  margin: 0 0 16px;
  color: var(--ink-2);
}

.svc .dots {
  margin-bottom: 16px;
  color: var(--ink-2);
}

.svc-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 650;
}

.svc-note svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--brass);
}

.svc-for {
  margin: 0 0 20px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.svc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pay-grid {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
}

.pay-card {
  padding: 18px 20px;
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.pay-card b {
  display: block;
  font: 550 22px/1.15 var(--serif);
  color: var(--ink);
}

.pay-card p {
  margin: 6px 0 0;
  font-size: 14px;
}

.info-block .steps {
  margin-top: 4px;
}

/* Варианты в форме заявки: один из нескольких */
.opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opt {
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink-2);
  transition: box-shadow 0.2s, color 0.2s, background 0.2s;
}

.opt[aria-checked='true'] {
  box-shadow: inset 0 0 0 1.5px var(--ink);
  color: var(--ink);
  background: var(--bg);
}

/* Заявка на услугу в «Моих заказах» */
.order-svc {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(251, 248, 243, 0.75);
  font-size: 14px;
}

/* Блок услуг на главной */
.svc-tiles {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.svc-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.svc-tile:hover {
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
  transform: translateY(-2px);
}

.svc-tile .svc-ico {
  margin-bottom: 10px;
}

.svc-tile b {
  font: 550 22px/1.15 var(--serif);
}

.svc-tile > span:last-child {
  font-size: 14px;
  color: var(--ink-2);
}

@media (min-width: 760px) {
  .svc {
    grid-template-columns: 72px 1fr;
    gap: 28px;
    padding: 32px;
  }

  .svc-ico {
    width: 64px;
    height: 64px;
  }

  .svc-ico svg {
    width: 30px;
    height: 30px;
  }

  .svc h2 {
    font-size: 34px;
  }

  .pay-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Видео-презентация ---------- */

.vid {
  display: grid;
  gap: 20px;
  align-items: center;
  justify-items: center;
  margin: 8px 0 28px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line-2);
}

.vid-frame {
  width: min(100%, 280px);
  aspect-ratio: 9 / 16;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--night);
  box-shadow: var(--shadow);
}

.vid-frame video,
.vid-play {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--night);
}

.vid-play {
  position: relative;
  padding: 0;
  border: 0;
  cursor: pointer;
}

.vid-play img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vid-btn {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border-radius: 50%;
  background: rgba(251, 248, 243, 0.92);
  color: var(--green);
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease);
}

.vid-btn svg {
  width: 30px;
  height: 30px;
  margin-left: 3px;
}

.vid-play:hover .vid-btn,
.vid-play:focus-visible .vid-btn {
  transform: scale(1.08);
}

.vid-text p:not(.eyebrow) {
  margin: 10px 0 18px;
  color: var(--ink-2);
}

@media (min-width: 760px) {
  .vid {
    grid-template-columns: auto 1fr;
    gap: 40px;
    justify-items: start;
    padding: 28px 40px;
  }

  .vid-frame {
    width: 280px;
  }

  .vid-text {
    max-width: 440px;
  }
}

/* Language control stays visible on every screen, including small phones. */
.language-switch { display: flex; flex-shrink: 0; padding: 3px; margin-right: 6px; border: 1px solid var(--line); border-radius: 99px; }
.language-switch button { min-width: 36px; min-height: 36px; padding: 0 7px; border: 0; border-radius: 99px; background: transparent; color: var(--ink); font: 600 11px var(--sans); cursor: pointer; }
.language-switch button[aria-pressed='true'] { background: var(--green, #0f6b47); color: #fff; }
.language-switch button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 599px) {
  .brand-tag { display: none; }
  .brand img { height: 19px; }
  .topbar-actions { gap: 0; }
  .language-switch { margin-right: 2px; }
  .language-switch button { min-width: 32px; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .topbar-nav { gap: 14px; }
  .brand-tag { display: none; }
}
.currency-note { flex-basis: 100%; font-size: 12px; line-height: 1.6; color: var(--ink-2); }
.pd-panel { min-width: 0; }
@media (max-width: 599px) {
  .pd-buy { flex-wrap: wrap; }
  .pd-buy > .btn { order: 3; flex-basis: 100%; }
  .pd-buy > .fav-btn { margin-left: auto; }
  .variant { min-width: 0; }
  .variant span { overflow-wrap: anywhere; }
}

/* Готовый HTML для поисковиков и мессенджеров (api/page.js, index.html): приложение убирает его при запуске */
.seo-static {
  padding-top: 88px;
  font-size: 15px;
  line-height: 1.55;
}

.seo-static img {
  display: block;
  max-width: 280px;
  height: auto;
  margin: 12px 0;
}

.seo-static ul {
  padding-left: 18px;
}

.seo-static table {
  border-collapse: collapse;
}

.seo-static th,
.seo-static td {
  text-align: left;
  padding: 4px 12px 4px 0;
}

/* Search is the first content below the site header. */
.catalog-search { padding-top: 24px; padding-bottom: 12px; }
/* The hero no longer sits directly below the header: do not overlap search. */
.catalog-search + .hero { margin-top: 0; padding-top: 20px; }
.catalog-search-label { display: block; font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.catalog-search-row { display: flex; gap: 10px; }
.catalog-search-row .search { flex: 1; height: 52px; }
.catalog-search-row > .btn { padding-inline: 28px; }
.catalog-search-hint { color: var(--ink-3); font-size: 13px; margin: 8px 0 0; }
.search [hidden] { display: none; }
.shop .toolbar-inner { grid-template-columns: minmax(0, 1fr) auto; }
.shop .toolbar-actions { grid-column: 2; grid-row: 1; }
@media (max-width: 599px) {
  .catalog-search-row { gap: 8px; }
  .catalog-search-row > .btn { padding-inline: 16px; }
  .catalog-search-row .search input { font-size: 16px; }
}
