:root {
  --ink: #171511;
  --ink-soft: #252119;
  --paper: #f1ede5;
  --paper-warm: #e8e0d3;
  --gold: #c49a57;
  --gold-light: #e0c18a;
  --muted: #7f776b;
  --line: rgba(23, 21, 17, 0.16);
  --white-line: rgba(255, 255, 255, 0.18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --r-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select {
  font-family: var(--sans);
}

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

button,
select,
input {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

.page-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

/* Полоса чтения масштабируется через transform, а не через width: ширина
   меняется на каждом событии прокрутки и заставляла браузер пересчитывать
   раскладку. scaleX работает на композиторе, выглядит точно так же. */
.page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 80ms linear;
}

.site-header {
  /* fixed, а не sticky: шапка должна оставаться при прокрутке и при этом
     не занимать место в потоке — иначе герой съезжает вниз на её высоту. */
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  height: 98px;
  padding: 0 5.5vw;
  color: #f8f3e9;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  transition:
    background 240ms ease,
    border-color 240ms ease;
}

/* Над героем шапка прозрачная; ниже светлые секции — там нужен фон,
   иначе светлый текст ложится на светлое. */
.site-header.is-stuck {
  background: var(--ink);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  /* Без этого на узком экране флекс-строка шапки сжимала кружок
     в овал (на 360px было 29x36 вместо 36x36). */
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.06em;
  /* В Cormorant по умолчанию старостильные цифры: «2» ростом со строчную
     букву, а «4» ещё и свисает под базовую линию. Рядом с прописной «К»
     это читалось как разный кегль. Прямые цифры набраны в высоту
     прописной — все знаки становятся одного роста. */
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.11em;
  /* То же и в названии рядом с монограммой: «24» перед «КАРАТ». */
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.brand-name small {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.58;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
}

.main-nav a {
  position: relative;
  font-size: 15px;
  letter-spacing: 0.08em;
  opacity: 0.72;
  transition: opacity 180ms ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--gold-light);
  transition: right 220ms ease;
}

.main-nav a:hover {
  opacity: 1;
}

.main-nav a:hover::after {
  right: 0;
}

.block {
  position: relative;
  min-height: 760px;
  overflow: hidden;
}

.shell {
  width: min(1240px, calc(100% - 11vw));
  margin: 0 auto;
}

.hero {
  /* Пол в 830px нужен, чтобы на невысоком окне текст не сплющивался. Но на
     планшете в альбомной ориентации (768px) он делал первый экран выше окна,
     и «3 шага / Цена сразу» уезжали под сгиб. min() держит пол только там,
     где для него есть место. */
  min-height: min(830px, 100svh);
  height: 100svh;
  color: #f7f1e7;
  background: #14110e;
}

.hero-background,
.hero-background img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-background img {
  object-fit: cover;
  object-position: center center;
  transform: scale(1.015);
  animation: hero-settle 1600ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(11, 10, 8, 0.98) 0%, rgba(11, 10, 8, 0.88) 31%, rgba(11, 10, 8, 0.18) 64%, rgba(11, 10, 8, 0.1) 100%),
    linear-gradient(0deg, rgba(12, 10, 8, 0.7), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding-top: 114px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: currentColor;
}

.eyebrow.dark {
  color: #9a7341;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(68px, 7vw, 118px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.77;
}

.hero h1 span,
.hero h1 em {
  display: block;
}

.hero h1 span {
  margin-left: 0.5em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(248, 243, 233, 0.68);
}

.hero h1 em {
  margin: 0.24em 0 0 1.1em;
  color: var(--gold-light);
  font-size: 0.54em;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.hero-lead {
  max-width: 560px;
  margin: 36px 0 0 6px;
  color: rgba(247, 241, 231, 0.68);
  font-size: 16px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 54px;
  padding: 0 25px;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--ink);
  background: #f5efe4;
}

.button-primary:hover {
  background: var(--gold-light);
}

.button-dark {
  color: #fffaf0;
  background: var(--ink);
}

.button-dark:hover {
  background: #3a3024;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  color: rgba(247, 241, 231, 0.76);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.play-dot {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  padding-left: 2px;
  color: var(--gold-light);
  border: 1px solid rgba(224, 193, 138, 0.5);
  border-radius: 50%;
  font-size: 11px;
}

.hero-proof {
  display: flex;
  gap: 0;
  margin-top: 54px;
}

.hero-proof div {
  display: flex;
  min-width: 182px;
  flex-direction: column;
  padding: 0 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-proof div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-proof strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.hero-proof span {
  margin-top: 2px;
  color: rgba(247, 241, 231, 0.48);
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-caption {
  position: absolute;
  z-index: 2;
  right: 5.5vw;
  bottom: 35px;
  margin: 0;
  color: rgba(247, 241, 231, 0.45);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-index {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 2.5vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.65);
  transform: translateY(-50%);
}

.section-index span {
  font-family: var(--serif);
  font-size: 18px;
}

.section-index i {
  width: 1px;
  height: 74px;
  margin: 8px 0;
  background: currentColor;
  opacity: 0.32;
}

.section-index small {
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.5;
}

.dark-index {
  color: rgba(23, 21, 17, 0.5);
}

.constructor {
  padding: 118px 0 132px;
  background:
    radial-gradient(circle at 8% 18%, rgba(196, 154, 87, 0.12), transparent 24%),
    var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.8fr 2.2fr;
  gap: 48px;
  margin-bottom: 58px;
}

.section-heading > div {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
}

.section-heading h2,
.process-intro h2,
.start-copy h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(54px, 5vw, 78px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.section-heading h2 em,
.process-intro h2 em,
.start-copy h2 em {
  color: #9a7341;
  font-weight: 500;
}

.section-heading > div > p {
  max-width: 410px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.configurator {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(470px, 0.92fr);
  min-height: 670px;
  border: 1px solid var(--line);
  box-shadow: 0 34px 80px rgba(45, 34, 22, 0.1);
}

.ring-stage {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: #f7f1e7;
  background: #171511;
  overflow: hidden;
}

.stage-topline {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 30px 0;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stage-topline > span {
  opacity: 0.5;
}

.stage-topline button {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(247, 241, 231, 0.62);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-topline button span {
  font-size: 17px;
  transition: transform 400ms ease;
}

.stage-topline button:hover span {
  transform: rotate(180deg);
}

.stage-visual {
  position: relative;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.stage-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #171511 0%, transparent 30%),
    radial-gradient(circle at center, transparent 0, rgba(23, 21, 17, 0.06) 44%, rgba(23, 21, 17, 0.6) 100%);
  pointer-events: none;
}

.stage-visual img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  object-position: 67% center;
  transform: scale(1.12);
  transition:
    filter 500ms ease,
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ring-stage.is-rotated .stage-visual img {
  transform: scale(1.12) rotateY(180deg);
}

.ring-stage.tone-white .stage-visual img {
  filter: saturate(0.13) brightness(1.08) contrast(0.97);
}

/* Загруженный эскиз показываем без тонировки: фильтры ниже подкрашивают
   стоковый рендер под выбранный металл, а чужую картинку они портили —
   цвет уходил в серый, светлый набросок сливался с бумагой. */
.ring-stage.has-custom-design .stage-visual img {
  filter: none;
}

.ring-stage.tone-rose .stage-visual img {
  filter: sepia(0.35) saturate(1.25) hue-rotate(325deg) brightness(1.03);
}

.gem-aura {
  position: absolute;
  z-index: 1;
  top: 27%;
  left: 60%;
  width: 18%;
  aspect-ratio: 1 / 1.2;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  mix-blend-mode: color;
  filter: blur(5px);
  opacity: 0;
  transform: rotate(-9deg);
  transition:
    opacity 300ms ease,
    background 300ms ease;
}

.gem-aura.sapphire {
  background: radial-gradient(circle, rgba(31, 86, 210, 0.98), rgba(14, 28, 90, 0.62) 52%, transparent 75%);
  opacity: 0.82;
}

.gem-aura.emerald {
  background: radial-gradient(circle, rgba(16, 132, 79, 0.96), rgba(11, 72, 49, 0.65) 52%, transparent 75%);
  opacity: 0.82;
}

.stage-summary {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 30px 10px;
}

.stage-summary div {
  display: flex;
  flex-direction: column;
}

.stage-summary div:last-child {
  text-align: right;
}

.stage-summary small {
  color: rgba(247, 241, 231, 0.42);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.stage-summary strong {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.price-note {
  position: relative;
  z-index: 3;
  margin: 0;
  padding: 0 30px 26px;
  color: rgba(247, 241, 231, 0.33);
  font-size: 12px;
}

.config-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 28px 36px 34px;
  background: #fbf8f2;
}

.config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* .config-tabs переиспользует класс .config-head, но вкладки уже рисуют
   свою линию снизу сами (у каждой .config-tab свой border-bottom) — общая
   рамка .config-head поверх всего блока попадала прямо на кнопку «К заявке»
   лишней полосой. */
.config-head.config-tabs {
  padding-bottom: 0;
  border-bottom: 0;
}

.config-head button {
  padding: 0;
  color: #9a7341;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(154, 115, 65, 0.35);
  cursor: pointer;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.config-panel fieldset {
  margin: 0;
  padding: 23px 0 0;
  border: 0;
}

.config-panel legend {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.config-panel legend span {
  color: #a98b61;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.choice-row {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

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

.choice,
.stone-choice {
  position: relative;
  cursor: pointer;
}

.choice input,
.stone-choice input,
.messenger-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 11px;
  border: 1px solid var(--line);
  transition:
    border 180ms ease,
    background 180ms ease;
}

.choice:has(input:checked) {
  border-color: var(--ink);
  background: #f4ede2;
}

.choice b,
.stone-choice b {
  font-size: 13px;
  font-weight: 600;
}

.material-swatch {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.42);
}

.material-swatch.white {
  background: linear-gradient(135deg, #f8f7f4, #b8b6b1);
}

.material-swatch.gold {
  background: linear-gradient(135deg, #f3d69c, #ab7933);
}

.material-swatch.rose {
  background: linear-gradient(135deg, #f0c2ae, #b16e59);
}

.stone-choice {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: 1fr 1fr;
  column-gap: 9px;
  align-items: center;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  transition:
    border 180ms ease,
    background 180ms ease;
}

.stone-choice:has(input:checked) {
  border-color: var(--ink);
  background: #f4ede2;
}

.stone-choice b {
  align-self: end;
}

.stone-choice small {
  align-self: start;
  color: var(--muted);
  font-size: 11px;
}

.stone-icon {
  grid-row: 1 / 3;
  display: block;
  width: 24px;
  height: 30px;
  margin: auto;
  background: #d7d4cd;
  clip-path: polygon(50% 0, 88% 20%, 100% 62%, 50% 100%, 0 62%, 12% 20%);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.22));
}

.stone-icon.diamond {
  background: linear-gradient(135deg, #fff, #c9c7bf 48%, #f7f6f1);
}

.stone-icon.sapphire {
  background: linear-gradient(135deg, #4c79d9, #0f2a68 58%, #3560c2);
}

.stone-icon.emerald {
  background: linear-gradient(135deg, #4aad7f, #0e5839 58%, #2b8a5d);
}

.split-fields {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin-top: 22px;
}

.split-fields label,
.range-field,
.config-footer > div {
  display: flex;
  flex-direction: column;
}

.split-fields label > span,
.range-field label,
.config-footer > div > span {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

select,
input[type="text"] {
  width: 100%;
  height: 43px;
  padding: 0 13px;
  color: var(--ink);
  background-color: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  outline: 0;
  font-size: 13px;
}

select:focus,
input[type="text"]:focus {
  border-color: #9a7341;
  box-shadow: 0 0 0 2px rgba(154, 115, 65, 0.1);
}

.range-field {
  margin-top: 22px;
}

.range-field > div:first-child {
  display: flex;
  justify-content: space-between;
}

.range-field output {
  font-family: var(--serif);
  font-size: 18px;
}

input[type="range"] {
  width: 100%;
  height: 2px;
  margin: 12px 0 0;
  accent-color: #9a7341;
  cursor: pointer;
}

.range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: #a69e92;
  font-size: 11px;
}

.config-footer {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 12px;
  align-items: end;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.config-footer .button {
  width: 100%;
}

.process {
  padding: 126px 0 116px;
  color: #f5efe5;
  background:
    linear-gradient(135deg, #16130f 0%, #242017 52%, #15120f 100%);
}

.process-glow {
  position: absolute;
  top: -280px;
  right: 6%;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(196, 154, 87, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(196, 154, 87, 0.025),
    0 0 0 180px rgba(196, 154, 87, 0.018);
}

.process-intro {
  display: grid;
  grid-template-columns: 0.7fr 1.65fr 0.9fr;
  gap: 48px;
  align-items: end;
}

.process-intro .eyebrow {
  align-self: start;
}

.process-intro h2 {
  font-size: clamp(56px, 5vw, 76px);
}

.process-intro h2 em {
  display: block;
  color: var(--gold-light);
}

.process-intro > p:last-child {
  margin: 0 0 6px;
  color: rgba(245, 239, 229, 0.54);
  font-size: 14px;
  line-height: 1.9;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 78px;
  border-top: 1px solid var(--white-line);
  border-bottom: 1px solid var(--white-line);
}

.process-step {
  min-height: 290px;
  padding: 28px 28px 36px;
  border-left: 1px solid var(--white-line);
}

.process-step:first-child {
  border-left: 0;
}

.process-step > span {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 28px;
}

.step-line {
  /* Черта выезжает через transform, а не через width: анимация ширины гоняет
     пересчёт раскладки на каждом кадре. Ширина теперь постоянная, по вертикали
     ничего не сдвигается — это горизонтальная линейка в колонке. */
  width: 34px;
  height: 1px;
  margin: 19px 0 28px;
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 700ms ease 250ms;
}

.process-step.is-visible .step-line {
  transform: none;
}

.process-step small {
  display: block;
  color: rgba(245, 239, 229, 0.38);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.process-step h3 {
  margin: 13px 0 12px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.process-step p {
  margin: 0;
  color: rgba(245, 239, 229, 0.5);
  font-size: 13px;
  line-height: 1.85;
}

.trust-strip {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 8vw;
  align-items: center;
  margin-top: 70px;
}

.trust-strip blockquote {
  margin: 0;
  padding-left: 25px;
  border-left: 1px solid var(--gold);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.35;
}

.trust-strip blockquote em {
  color: var(--gold-light);
}

.trust-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.trust-facts div {
  display: flex;
  flex-direction: column;
}

.trust-facts strong {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
}

.trust-facts span {
  color: rgba(245, 239, 229, 0.42);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.55;
  text-transform: uppercase;
}

.start {
  padding: 125px 0 0;
  background:
    radial-gradient(circle at 25% 40%, rgba(196, 154, 87, 0.16), transparent 26%),
    var(--paper);
}

.start-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10vw;
  align-items: start;
}

.start-copy > p:not(.eyebrow) {
  max-width: 470px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.idea-form {
  padding: 38px;
  background: #fbf8f2;
  border: 1px solid var(--line);
  box-shadow: 0 32px 80px rgba(45, 34, 22, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.idea-form label > span,
.messenger-choice > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.idea-form select,
.idea-form input[type="text"] {
  height: 50px;
  font-size: 14px;
}

.contact-field {
  display: block;
  margin-top: 23px;
}

.messenger-choice {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
}

.messenger-choice > span {
  margin: 0 10px 0 0;
}

.messenger-choice label {
  position: relative;
  cursor: pointer;
}

.messenger-choice label span {
  display: inline-flex;
  min-height: 33px;
  align-items: center;
  margin: 0;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
}

.messenger-choice label:has(input:checked) span {
  color: #fffaf0;
  background: var(--ink);
  border-color: var(--ink);
}

.submit-button {
  width: 100%;
  margin-top: 28px;
}

.form-consent {
  margin: 12px 0 0;
  color: #9f978b;
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.form-success {
  margin: 16px 0 0;
  padding: 13px 15px;
  color: #2e5e44;
  background: #e4eee7;
  font-size: 13px;
  text-align: center;
}

/* Парный к .form-success: если отправка не удалась, человек должен это
   увидеть, а не остаться с ложным «спасибо». */
.form-error {
  margin: 16px 0 0;
  padding: 13px 15px;
  color: #7a2e2e;
  background: #f6e4e4;
  font-size: 13px;
  text-align: center;
}

.form-error a {
  color: inherit;
  text-decoration: underline;
}

.start-marquee {
  display: flex;
  width: max-content;
  margin-top: 110px;
  color: rgba(23, 21, 17, 0.14);
  font-family: var(--serif);
  font-size: clamp(60px, 8vw, 124px);
  line-height: 0.8;
  white-space: nowrap;
  animation: marquee 26s linear infinite;
}

.start-marquee span {
  padding-right: 0.25em;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  min-height: 112px;
  padding: 26px 5.5vw;
  color: rgba(247, 241, 231, 0.68);
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand-mark {
  width: 36px;
  height: 36px;
  font-size: 15px;
}

.footer-brand .brand-name strong {
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer > div {
  justify-self: end;
  display: flex;
  gap: 24px;
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 650ms ease,
    transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-settle {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1.015);
  }
}

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

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(11, 10, 8, 0.98) 0%, rgba(11, 10, 8, 0.82) 43%, rgba(11, 10, 8, 0.2) 86%),
      linear-gradient(0deg, rgba(12, 10, 8, 0.72), transparent 45%);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .configurator {
    grid-template-columns: 1fr;
  }

  .ring-stage {
    min-height: 650px;
  }

  .config-panel {
    min-height: 660px;
  }

  .process-intro {
    grid-template-columns: 1fr 1.4fr;
  }

  .process-intro > p:last-child {
    grid-column: 2;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-step:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--white-line);
  }

  .process-step:nth-child(4) {
    border-top: 1px solid var(--white-line);
  }

  .trust-strip,
  .start-layout {
    gap: 6vw;
  }

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

  .site-footer p {
    display: none;
  }
}

@media (max-width: 760px) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-header {
    height: 76px;
    padding: 0 20px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .brand-name strong {
    font-size: 18px;
  }

  .shell {
    width: calc(100% - 40px);
  }

  .block {
    min-height: auto;
  }

  .hero {
    min-height: 780px;
    height: 100svh;
  }

  .hero-background img {
    object-position: 69% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(11, 10, 8, 0.96), rgba(11, 10, 8, 0.38)),
      linear-gradient(0deg, rgba(12, 10, 8, 0.98) 0%, rgba(12, 10, 8, 0.3) 60%, rgba(12, 10, 8, 0.45));
  }

  .hero-content {
    justify-content: flex-end;
    padding: 110px 0 74px;
  }

  .eyebrow {
    margin-bottom: 19px;
    font-size: 11px;
  }

  .hero h1 {
    font-size: clamp(52px, 16vw, 76px);
    line-height: 0.82;
  }

  .hero h1 span {
    margin-left: 0.1em;
  }

  .hero h1 em {
    margin-left: 0.4em;
  }

  .hero-lead {
    max-width: 92%;
    margin-top: 28px;
    font-size: 14px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
    margin-top: 24px;
  }

  .button-primary {
    width: 100%;
  }

  .text-link {
    justify-content: center;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 30px;
  }

  .hero-proof div {
    min-width: 0;
    padding: 0 10px;
  }

  .hero-proof strong {
    font-size: 17px;
  }

  .hero-proof span {
    font-size: 10px;
  }

  .hero-caption,
  .section-index {
    display: none;
  }

  .constructor,
  .process,
  .start {
    padding-top: 84px;
  }

  .constructor {
    padding-bottom: 86px;
  }

  .section-heading > div {
    display: block;
  }

  .section-heading h2,
  .process-intro h2,
  .start-copy h2 {
    font-size: 47px;
  }

  .section-heading > div > p {
    margin-top: 22px;
  }

  .configurator {
    min-height: 0;
    border: 0;
    box-shadow: none;
  }

  .ring-stage {
    min-height: 520px;
  }

  .stage-visual img {
    min-height: 390px;
    object-position: 67% center;
  }

  .gem-aura {
    top: 25%;
    left: 58%;
  }

  .stage-summary {
    padding-inline: 20px;
  }

  .stage-summary strong {
    font-size: 18px;
  }

  .price-note {
    padding-inline: 20px;
  }

  .config-panel {
    min-height: 0;
    padding: 26px 20px 28px;
  }

  .stone-choice {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: center;
    padding: 10px 5px;
    text-align: center;
  }

  .stone-icon {
    grid-row: auto;
  }

  .stone-choice b,
  .stone-choice small {
    align-self: auto;
  }

  .stone-choice small {
    display: none;
  }

  .split-fields {
    grid-template-columns: 1fr;
  }

  .config-footer {
    margin-top: 28px;
  }

  .process {
    padding-bottom: 84px;
  }

  .process-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .process-intro > p:last-child {
    grid-column: auto;
    margin-top: 8px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    margin-top: 52px;
  }

  .process-step {
    min-height: 220px;
    border-top: 1px solid var(--white-line);
    border-left: 0;
  }

  .process-step:first-child {
    border-top: 0;
  }

  .trust-strip {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .trust-strip blockquote {
    font-size: 21px;
  }

  .start {
    padding-bottom: 0;
  }

  .start-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .idea-form {
    padding: 24px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .messenger-choice {
    flex-wrap: wrap;
  }

  .messenger-choice > span {
    width: 100%;
  }

  .start-marquee {
    margin-top: 75px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer > div {
    justify-self: center;
  }
}

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

/* Variant 2: the sketch-led concept. The original version remains in the parent folder. */

.concept-v2 .hero-v2 .hero-background img {
  object-position: center;
}

.concept-v2 [hidden] {
  display: none !important;
}

.concept-v2 .hero-v2 .hero-shade {
  background:
    linear-gradient(90deg, rgba(11, 10, 8, 0.99) 0%, rgba(11, 10, 8, 0.9) 32%, rgba(11, 10, 8, 0.25) 61%, rgba(11, 10, 8, 0.08) 100%),
    linear-gradient(0deg, rgba(12, 10, 8, 0.66), transparent 38%);
}

.constructor-v2 {
  padding-bottom: 110px;
}

.configurator-v2 {
  grid-template-columns: minmax(0, 0.92fr) minmax(570px, 1.08fr);
  min-height: 800px;
}

.sketch-stage {
  min-height: 800px;
  background:
    radial-gradient(circle at 48% 38%, rgba(196, 154, 87, 0.09), transparent 34%),
    #191713;
}

.sketch-visual {
  display: grid;
  min-height: 530px;
  place-items: center;
  margin: 18px 25px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
    #211e19;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sketch-visual::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  pointer-events: none;
}

.sketch-visual::after {
  background:
    linear-gradient(0deg, rgba(23, 21, 17, 0.5), transparent 24%),
    radial-gradient(circle at center, transparent 32%, rgba(23, 21, 17, 0.36) 100%);
}

.sketch-visual img {
  width: calc(100% - 48px);
  height: calc(100% - 48px);
  min-height: 470px;
  object-fit: contain;
  object-position: center;
  filter: sepia(0.12) contrast(0.98);
  transform: none;
}

.sketch-stage.is-switching .sketch-visual img {
  opacity: 0;
  transform: scale(0.98);
}

.sketch-stage .sketch-visual img {
  transition:
    opacity 220ms ease,
    transform 420ms ease,
    filter 300ms ease;
}

.stage-summary-v2 {
  padding-top: 3px;
}

.configuration-line {
  position: relative;
  z-index: 3;
  margin: 2px 30px 26px;
  padding-top: 13px;
  color: rgba(247, 241, 231, 0.42);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.config-panel-v2 {
  min-height: 800px;
  padding-top: 24px;
}

.config-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 0;
  align-items: stretch;
  padding-bottom: 0;
}

.config-tabs .config-tab,
.config-tabs .reset-config {
  display: flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 8px;
  color: #9e9589;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.config-tabs .config-tab span {
  color: #b28b55;
  font-size: 11px;
}

.config-tabs .config-tab.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.config-tabs .reset-config {
  justify-content: flex-end;
  padding-left: 18px;
  margin-top: 12px;
  color: #9a7341;
  border-bottom-color: var(--line);
}

.config-tabs .order-config {
  gap: 9px;
  justify-content: center;
  padding-inline: 17px;
  color: #fffaf0;
  background: #9a7341;
  border-bottom-color: #9a7341;
  transition: background 180ms ease;
}

.config-tabs .order-config:hover,
.config-tabs .order-config:focus-visible {
  background: var(--ink);
  outline: none;
}

.config-tabs .order-config span {
  color: #fff0d3;
  font-size: 14px;
}

.config-page {
  display: none;
  min-height: 622px;
  animation: config-in 260ms ease both;
}

.config-page.active {
  display: block;
}

.design-fieldset {
  padding-top: 22px !important;
}

.design-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.design-choice {
  position: relative;
  display: grid;
  grid-template-rows: 96px auto;
  min-width: 0;
  cursor: pointer;
  border: 1px solid var(--line);
  overflow: hidden;
  transition:
    border 180ms ease,
    box-shadow 180ms ease;
}

.design-choice:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--ink);
}

.design-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.design-choice img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  filter: sepia(0.1) saturate(0.8);
}

.design-choice > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 8px 9px 10px;
}

.design-choice b {
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-choice small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.parameter-grid {
  display: grid;
  gap: 9px;
  margin-top: 13px;
}

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

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

.parameter-grid label,
.engraving-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.parameter-grid label > span,
.engraving-field > span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.parameter-grid select {
  min-width: 0;
}

.stone-parameters {
  margin-top: 27px;
}

.config-page.stone-disabled .stone-choices,
.config-page.stone-disabled .stone-parameters,
.config-page.stone-disabled .range-field {
  opacity: 0.38;
  pointer-events: none;
}

.option-switch {
  position: relative;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
  padding: 14px 16px;
  cursor: pointer;
  border: 1px solid var(--line);
}

.option-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch-mark {
  position: relative;
  display: block;
  width: 32px;
  height: 18px;
  background: #d9d3c9;
  border-radius: 999px;
  transition: background 180ms ease;
}

.switch-mark::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease;
}

.option-switch input:checked + .switch-mark {
  background: #9a7341;
}

.option-switch input:checked + .switch-mark::after {
  transform: translateX(14px);
}

.option-switch > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.option-switch b {
  font-size: 13px;
}

.option-switch small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.conditional-group {
  padding: 0 14px 14px;
  background: #f4eee5;
  border: 1px solid var(--line);
  border-top: 0;
}

.muted-group {
  background: #f1ece4;
}

.engraving-field {
  margin-top: 22px;
}

.engraving-field input {
  height: 48px;
}

.config-footer-v2 {
  grid-template-columns: 105px 1fr;
  margin-top: auto;
}

.config-footer-v2 .config-back {
  height: 54px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 13px;
}

.config-footer-v2 .config-back:disabled {
  cursor: default;
  opacity: 0.35;
}

.config-footer-v2 .config-save {
  width: 100%;
}

.parameter-note {
  margin: 23px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.03em;
  text-align: center;
}

.saved-config {
  display: flex;
  flex-direction: column;
  margin: -4px 0 24px;
  padding: 14px 16px;
  color: #f8f2e8;
  background: var(--ink);
}

.saved-config span {
  color: rgba(248, 242, 232, 0.44);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.saved-config strong {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}

.idea-form-v2 input[type="email"],
.idea-form-v2 textarea {
  width: 100%;
  padding: 0 13px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  outline: 0;
  font-size: 13px;
}

.idea-form-v2 input[type="email"] {
  height: 50px;
}

.idea-form-v2 textarea {
  min-height: 86px;
  padding-top: 13px;
  resize: vertical;
}

.idea-form-v2 input[type="email"]:focus,
.idea-form-v2 textarea:focus {
  border-color: #9a7341;
  box-shadow: 0 0 0 2px rgba(154, 115, 65, 0.1);
}

.second-row,
.comment-field {
  margin-top: 18px;
}

.comment-field {
  display: block;
}

.comment-field > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.consent-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.consent-check input {
  accent-color: var(--ink);
}

.consent-check span {
  margin: 0 !important;
  color: inherit !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

@keyframes config-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .configurator-v2 {
    grid-template-columns: 1fr;
  }

  .sketch-stage,
  .config-panel-v2 {
    min-height: 760px;
  }
}

@media (max-width: 760px) {
  .concept-v2 .hero-v2 .hero-background img {
    object-position: 68% center;
  }

  .concept-v2 .hero-v2 .hero-shade {
    background:
      linear-gradient(90deg, rgba(11, 10, 8, 0.94), rgba(11, 10, 8, 0.4)),
      linear-gradient(0deg, rgba(12, 10, 8, 0.97) 0%, rgba(12, 10, 8, 0.32) 67%, rgba(12, 10, 8, 0.5));
  }

  .configurator-v2 {
    display: block;
  }

  /* На мобильном сетка становится блоком — «бесплатный» зазор из grid
     колонок пропадает, и фото-блок с формой склеивались без разделения. */
  .sketch-stage {
    min-height: 530px;
    margin-bottom: 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 26px rgba(45, 34, 22, 0.08);
  }

  .sketch-visual {
    min-height: 365px;
    margin: 14px 16px;
  }

  .sketch-visual img {
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    min-height: 335px;
  }

  .configuration-line {
    margin-inline: 20px;
  }

  .config-panel-v2 {
    min-height: 770px;
  }

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

  .config-tabs .reset-config {
    grid-column: 1 / -1;
    min-height: 28px;
    justify-content: center;
    padding: 0;
  }

  .config-page {
    min-height: 610px;
  }

  .design-choice {
    grid-template-rows: 72px auto;
  }

  .design-choice img {
    height: 72px;
  }

  .design-choice > span {
    padding-inline: 6px;
  }

  .design-choice b {
    font-size: 11px;
  }

  .parameter-grid.three,
  .parameter-grid.two {
    grid-template-columns: 1fr;
  }

  .parameter-grid {
    gap: 11px;
  }

  .stone-parameters {
    margin-top: 22px;
  }

  .config-footer-v2 {
    grid-template-columns: 84px 1fr;
  }

  .idea-form-v2 {
    padding-inline: 20px;
  }
}

/* Compact constructor heading: keep each phrase on a single line. */
@media (min-width: 1121px) {
  .constructor-v2 {
    padding-top: 94px;
  }

  .constructor-v2 .section-heading {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 44px;
    margin-bottom: 46px;
  }

  .constructor-v2 .section-heading > .eyebrow {
    align-self: start;
    margin-top: 13px;
  }

  .constructor-v2 .section-heading > div {
    gap: 38px;
  }

  .constructor-v2 .section-heading h2 {
    flex: 0 0 auto;
    font-size: clamp(58px, 3.4vw, 64px);
    line-height: 0.98;
    white-space: nowrap;
  }

  .constructor-v2 .section-heading > div > p {
    flex: 0 0 330px;
    max-width: 330px;
    font-size: 16px;
    line-height: 1.65;
  }
}

/* Three ways to start the ring order. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.design-start-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 17px;
}

.design-start-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 166px;
  flex-direction: column;
  padding: 17px 17px 18px;
  appearance: none;
  color: var(--ink);
  background: #faf6ef;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.design-start-card:hover,
.design-start-card:focus-visible {
  z-index: 1;
  border-color: #9a7341;
  outline: none;
  transform: translateY(-2px);
}

.design-start-card.is-selected {
  color: #fff9ef;
  background: #24211d;
  border-color: #24211d;
  box-shadow: inset 0 -3px 0 #c49a57;
}

.design-start-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 29px;
}

.design-start-top b {
  color: #a77b41;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
}

.design-start-top i {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #9a7341;
  border: 1px solid rgba(154, 115, 65, 0.38);
  border-radius: 50%;
  font-size: 16px;
  font-style: normal;
}

.design-start-card.is-selected .design-start-top b,
.design-start-card.is-selected .design-start-top i {
  color: var(--gold-light);
}

.design-start-card.is-selected .design-start-top i {
  border-color: rgba(224, 193, 138, 0.38);
}

.design-start-card > strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.08;
}

.design-start-card > small {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.design-start-card.is-selected > small {
  color: rgba(255, 249, 239, 0.58);
}

.design-start-status {
  margin: 12px 0 0;
  padding: 10px 12px;
  color: #766b5e;
  background: #eee5d8;
  border-left: 2px solid #b7894d;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .design-start-options {
    grid-template-columns: 1fr;
  }

  .design-start-card {
    min-height: 132px;
  }

  .design-start-top {
    margin-bottom: 20px;
  }
}

/* Production deadline and contact channels. */
.idea-form-v2 .messenger-choice {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.idea-form-v2 .messenger-choice > span {
  grid-column: 1 / -1;
  width: auto;
  margin: 0 0 2px;
}

.idea-form-v2 .messenger-choice label {
  min-width: 0;
}

.idea-form-v2 .messenger-pill {
  display: flex;
  min-height: 56px;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 8px;
  text-align: center;
}

.messenger-pill b {
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.contact-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.icon-telegram {
  padding-right: 1px;
  background: #259bd7;
}

.icon-whatsapp {
  background: #27ae60;
}

.icon-video {
  color: #2d2923;
  background: #d8c5a5;
}

.icon-max {
  background: linear-gradient(145deg, #745cff, #20b7d9);
}

.idea-form-v2 .messenger-choice label:has(input:checked) .messenger-pill {
  box-shadow: inset 0 -2px 0 var(--gold-light);
}

@media (max-width: 520px) {
  .idea-form-v2 .messenger-choice {
    grid-template-columns: 1fr 1fr;
  }

  .idea-form-v2 .messenger-choice > span {
    grid-column: 1 / -1;
  }
}

/* Full-width stone and carat selectors. */
.stone-select-field,
.carat-select-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.stone-select-field {
  margin-top: 16px;
}

.stone-select-field > label,
.carat-select-field > label {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stone-select-field select {
  width: 100%;
  height: 64px;
  padding: 0 18px;
  color: var(--ink);
  background-color: #faf6ef;
  border-color: var(--line);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}

.stone-select-field select:focus,
.carat-select-field select:focus {
  border-color: #9a7341;
  box-shadow: 0 0 0 2px rgba(154, 115, 65, 0.1);
}

.carat-select-field {
  margin-top: 22px;
}

.carat-select-field select {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  color: var(--ink);
  background-color: #faf6ef;
  border-color: var(--line);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}

.config-page.stone-disabled .stone-select-field,
.config-page.stone-disabled .carat-select-field {
  opacity: 0.38;
  pointer-events: none;
}

@media (max-width: 700px) {
  .stone-select-field select {
    height: 58px;
    padding-inline: 13px;
    font-size: 16px;
  }

}

/* Light sketch preview instead of the dark bars around the image. */
.concept-v2 .sketch-stage {
  color: var(--ink);
  background:
    radial-gradient(circle at 48% 38%, rgba(180, 138, 80, 0.07), transparent 35%),
    #fbf8f2;
  border-right: 1px solid var(--line);
}

.concept-v2 .sketch-stage .stage-topline > span {
  color: #756d62;
  opacity: 1;
}

.concept-v2 .sketch-visual {
  background: #f7f3ec;
  border: 1px solid #cfc6ba;
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.48);
}

.concept-v2 .sketch-visual::before {
  border-color: rgba(74, 65, 54, 0.12);
}

.concept-v2 .sketch-visual::after {
  background: radial-gradient(circle at center, transparent 48%, rgba(91, 77, 60, 0.08) 100%);
}

.concept-v2 .stage-summary-v2 small {
  color: #8b8276;
}

.concept-v2 .stage-summary-v2 strong {
  color: #2a2621;
}

.concept-v2 .configuration-line {
  color: #7d7469;
  border-top-color: #d8d0c5;
}

/* Point-by-point explanations without changing the visual concept. */
.live-price {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 11px 13px;
  background: #f2eadf;
  border-left: 2px solid #b7894d;
}

.live-price span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.live-price strong {
  margin-left: auto;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.live-price button,
.config-tools button,
.upload-remove {
  padding: 0;
  color: #7c5a2f;
  background: transparent;
  border: 0;
  border-bottom: 1px dashed rgba(124, 90, 47, 0.45);
  cursor: pointer;
  font-size: 12px;
}

.config-tools {
  display: flex;
  justify-content: flex-end;
  min-height: 20px;
  padding-top: 9px;
}

.preview-chip {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 18px;
  padding: 8px 10px;
  color: #2b261f;
  background: rgba(248, 243, 235, 0.9);
  border: 1px solid rgba(74, 65, 54, 0.16);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.preview-disclaimer {
  position: relative;
  z-index: 3;
  margin: 0 30px 24px;
  color: #8b8276;
  font-size: 12px;
  line-height: 1.55;
}

.field-explain {
  display: block;
  margin-top: 7px;
  color: #81786d;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

.group-explain,
.stone-guidance {
  margin: 12px 0 0;
  padding: 10px 12px;
  color: #756b60;
  background: #eee6da;
  border-left: 2px solid #b7894d;
  font-size: 13px;
  line-height: 1.55;
}

.field-help,
.privacy-details {
  margin-top: 16px;
  color: #746b60;
  font-size: 13px;
}

.field-help summary,
.privacy-details summary {
  width: fit-content;
  color: #7c5a2f;
  cursor: pointer;
  border-bottom: 1px dashed rgba(124, 90, 47, 0.45);
}

.field-help p,
.privacy-details p {
  margin: 9px 0 0;
  line-height: 1.65;
}

.design-start-status.is-error {
  color: #7d302d;
  background: #f4dfdc;
  border-left-color: #a64d46;
}

.design-start-status.is-success {
  color: #315f46;
  background: #e3eee7;
  border-left-color: #4f8063;
}

.field-error {
  display: block;
  min-height: 14px;
  margin-top: 4px;
  color: #8b322f;
  font-size: 13px;
}

.field-hint {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.idea-form [aria-invalid="true"] {
  border-color: #9a3f38 !important;
  box-shadow: 0 0 0 2px rgba(154, 63, 56, 0.1);
}

.button:focus-visible,
.config-back:focus-visible,
.design-start-card:focus-visible,
.text-link:focus-visible,
.main-nav a:focus-visible,
.config-tab:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .concept-v2 .hero-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .concept-v2 .config-panel-v2,
  .concept-v2 .config-page,
  .concept-v2 .config-page[data-config-page="base"] {
    min-height: 0;
  }

  .live-price {
    flex-wrap: wrap;
  }

  .live-price button {
    width: 100%;
    border-bottom: 0;
    text-align: left;
  }

  .preview-disclaimer {
    margin-inline: 20px;
    font-size: 13px;
  }

  .field-explain,
  .group-explain,
  .stone-guidance {
    font-size: 14px;
    line-height: 1.5;
  }

  .parameter-grid label > span,
  .engraving-field > span {
    font-size: 13px;
  }

  .concept-v2 select,
  .concept-v2 input[type="text"],
  .concept-v2 textarea {
    font-size: 16px;
  }
}

/* =========================================================
   ЧИТАЕМОСТЬ: единая типографическая шкала.
   Раньше десятки объявлений были 6–12px — мельче порога
   комфортного чтения. Минимум для подписей теперь 13px,
   для основного текста — 16–17px.
   ========================================================= */

body {
  font-size: 17px;
}

:root {
  /* было #7f776b — контраст 3.9:1 на светлом фоне, ниже нормы AA */
  --muted: #6b6357;
}

/* --- Шапка и футер --- */
.brand-name small { font-size: 13px; letter-spacing: 0.18em; opacity: 0.72; }
.main-nav a { font-size: 16px; opacity: 0.85; }
.site-footer p { font-size: 15px; letter-spacing: 0.06em; }
.site-footer > div { font-size: 16px; }
.site-footer { color: rgba(247, 241, 231, 0.82); }

/* --- Общие элементы --- */
.eyebrow { font-size: 14px; letter-spacing: 0.16em; }
.button { min-height: 56px; font-size: 16px; }
.text-link { font-size: 16px; }

/* --- Первый экран --- */
.hero-lead { font-size: 18px; line-height: 1.7; color: rgba(247, 241, 231, 0.8); }
.hero-proof strong { font-size: 26px; }
.hero-proof span { font-size: 14px; color: rgba(247, 241, 231, 0.62); letter-spacing: 0.06em; }
.hero-caption { font-size: 13px; color: rgba(247, 241, 231, 0.55); }
.section-index small { font-size: 13px; }

/* --- Заголовки секций --- */
.section-heading > div > p,
.constructor-v2 .section-heading > div > p { font-size: 17px; line-height: 1.7; }
.start-copy > p:not(.eyebrow) { font-size: 17px; line-height: 1.75; }
.process-intro > p:last-child { font-size: 16px; line-height: 1.8; color: rgba(245, 239, 229, 0.7); }

/* --- Конструктор: превью --- */
.stage-topline { font-size: 14px; letter-spacing: 0.12em; }
.preview-chip { font-size: 13px; }
.stage-summary small { font-size: 13px; letter-spacing: 0.1em; }
.stage-summary strong { font-size: 23px; }
.configuration-line { font-size: 15px; }
.preview-disclaimer { font-size: 15px; line-height: 1.6; }

/* --- Конструктор: панель --- */
.config-tabs .config-tab,
.config-tabs .reset-config { min-height: 46px; font-size: 14px; letter-spacing: 0.06em; }
.config-tabs .config-tab span { font-size: 13px; }
.config-panel legend { font-size: 20px; }
.config-panel legend span { font-size: 13px; }
.live-price span { font-size: 14px; }
.live-price strong { font-size: 22px; }
.live-price button,
.config-tools button,
.upload-remove { font-size: 15px; }

.design-start-card > strong { font-size: 19px; }
.design-start-card > small { font-size: 15px; line-height: 1.5; }
.design-start-top b { font-size: 17px; }
.design-start-status { font-size: 15px; line-height: 1.55; }

.parameter-grid label > span,
.engraving-field > span,
.split-fields label > span,
.stone-select-field > label,
.carat-select-field > label,
.idea-form label > span,
.messenger-choice > span,
.comment-field > span { font-size: 14px; letter-spacing: 0.08em; }

.field-explain { font-size: 15px; line-height: 1.5; }
.group-explain,
.stone-guidance { font-size: 15px; line-height: 1.6; }
.field-help,
.privacy-details { font-size: 16px; }
.parameter-note { font-size: 15px; line-height: 1.6; }

.option-switch b { font-size: 16px; }
.option-switch small { font-size: 14px; }
.stone-choice small { font-size: 14px; }
.design-choice b { font-size: 15px; }
.design-choice small { font-size: 13px; }
.choice b, .stone-choice b { font-size: 16px; }

/* Поля ввода: 16px убирает авто-зум в Safari на iPhone */
select,
input[type="text"],
input[type="email"],
textarea,
.idea-form select,
.idea-form input[type="text"],
.idea-form-v2 input[type="email"],
.idea-form-v2 textarea {
  font-size: 17px;
}

select,
input[type="text"] { height: 50px; }
.idea-form select,
.idea-form input[type="text"],
.idea-form-v2 input[type="email"] { height: 54px; }
.engraving-field input { height: 52px; }
.config-footer-v2 .config-back { height: 56px; font-size: 15px; }

/* --- Процесс --- */
.process-step small { font-size: 14px; letter-spacing: 0.1em; color: rgba(245, 239, 229, 0.55); }
.process-step h3 { font-size: 26px; }
.process-step p { font-size: 16px; line-height: 1.7; color: rgba(245, 239, 229, 0.68); }
.trust-strip blockquote { font-size: 26px; }
.trust-facts strong { font-size: 34px; }
.trust-facts span { font-size: 14px; letter-spacing: 0.06em; color: rgba(245, 239, 229, 0.6); }

/* --- Форма заявки --- */
.saved-config span { font-size: 13px; }
.saved-config strong { font-size: 19px; }
.saved-config p { margin: 6px 0 0; font-size: 16px; color: rgba(248, 242, 232, 0.72); }
.messenger-pill b { font-size: 15px; }
.consent-check { font-size: 15px; line-height: 1.5; align-items: flex-start; }
.consent-check input { margin-top: 2px; width: 18px; height: 18px; flex: 0 0 auto; }
.form-consent { font-size: 15px; }
.form-success { font-size: 16px; padding: 16px; }
.field-error { font-size: 15px; min-height: 16px; }
.field-hint { font-size: 15px; }

/* --- Мобильные: ничего мельче 12px --- */
@media (max-width: 760px) {
  .eyebrow { font-size: 14px; }
  .hero-lead { font-size: 17px; }
  .hero-proof strong { font-size: 20px; }
  .hero-proof span { font-size: 13px; }
  .field-explain,
  .group-explain,
  .stone-guidance,
  .design-start-status { font-size: 16px; }
  .parameter-grid label > span,
  .engraving-field > span { font-size: 14px; }
  .concept-v2 select,
  .concept-v2 input[type="text"],
  .concept-v2 input[type="email"],
  .concept-v2 textarea { font-size: 17px; }
  .design-choice b { font-size: 15px; }
  .config-tabs .config-tab { font-size: 14px; }
}

/* =========================================================
   Футер: контакты и реквизиты
   ========================================================= */
.site-footer {
  display: block;
  min-height: 0;
  padding: 56px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-col { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }

.footer-col h3 {
  margin: 0 0 4px;
  color: rgba(247, 241, 231, 0.5);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-about {
  margin: 0;
  max-width: 320px;
  color: rgba(247, 241, 231, 0.6);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  text-transform: none;
}

.footer-about span { color: rgba(247, 241, 231, 0.35); }

.footer-col > a { font-size: 16px; transition: color 180ms ease; }
.footer-col > a:hover { color: var(--gold-light); }

.footer-contact { font-family: var(--serif); font-size: 19px; font-weight: 500; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  color: rgba(247, 241, 231, 0.42);
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* =========================================================
   Липкая панель заказа — CTA всегда под рукой
   ========================================================= */
.sticky-cta {
  position: fixed;
  z-index: 60;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(251, 248, 242, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(45, 34, 22, 0.12);
  backdrop-filter: blur(8px);
  transform: translateY(100%);
  transition: transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.sticky-cta.is-shown { transform: translateY(0); }
.sticky-cta div { display: flex; flex-direction: column; min-width: 0; }
.sticky-cta small { color: var(--muted); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.sticky-cta strong { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.sticky-cta .button { min-height: 50px; padding-inline: 22px; white-space: nowrap; }

@media (min-width: 1121px) {
  .sticky-cta { display: none; }
}

@media (max-width: 420px) {
  .sticky-cta { padding-inline: 14px; gap: 12px; }
  .sticky-cta strong { font-size: 18px; }
  .sticky-cta .button { font-size: 14px; padding-inline: 14px; }
}

/* Старое правило `.site-footer > div` (специфичность выше) ломало сетку футера. */
.site-footer > .footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  justify-self: auto;
  font-size: 17px;
}

.site-footer > .footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  justify-self: auto;
  font-size: 17px;
}

@media (max-width: 900px) {
  .site-footer > .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer > .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .site-footer > .footer-top { grid-template-columns: 1fr; }
}

.footer-col > a.footer-contact {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}

/* Полностью прозрачная строка заголовка плохо читалась на фото —
   добавляем лёгкую заливку, контур остаётся. */
.hero h1 span {
  color: rgba(248, 243, 233, 0.16);
  -webkit-text-stroke: 1px rgba(248, 243, 233, 0.85);
}

/* =========================================================
   Окно «Как определить размер кольца»
   ========================================================= */
.inline-link {
  display: inline;
  padding: 0;
  margin-left: 4px;
  color: #7c5a2f;
  background: transparent;
  border: 0;
  border-bottom: 1px dashed rgba(124, 90, 47, 0.5);
  cursor: pointer;
  font: inherit;
  font-size: inherit;
}

.inline-link:hover { color: var(--ink); border-bottom-style: solid; }

.field-help-line {
  margin: 16px 0 0;
  padding: 10px 12px;
  color: #756b60;
  background: #eee6da;
  border-left: 2px solid #b7894d;
  font-size: 15px;
  line-height: 1.55;
}

.size-guide {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.size-guide[hidden] { display: none; }

.size-guide-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 13, 10, 0.72);
  backdrop-filter: blur(3px);
}

.size-guide-panel {
  position: relative;
  display: flex;
  width: min(1180px, 100%);
  max-height: 100%;
  flex-direction: column;
  background: #fbf8f2;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px rgba(20, 15, 8, 0.45);
  animation: size-guide-in 240ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.size-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.size-guide-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.size-guide-close {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: background 180ms ease;
}

.size-guide-close:hover { color: #fffaf0; background: var(--ink); }

.size-guide-body {
  min-height: 0;
  padding: 20px 24px;
  overflow: auto;
  background: #f3efe7;
}

.size-guide-body img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #fff;
}

.size-guide-fallback p {
  margin: 0 0 14px;
  color: #4a443b;
  font-size: 16px;
  line-height: 1.7;
}

.size-guide-fallback p:last-child { margin-bottom: 0; }

.size-guide-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
}

.size-guide-foot p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.size-guide-foot .button { flex: 0 0 auto; }

@keyframes size-guide-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .size-guide { padding: 0; }
  .size-guide-panel { width: 100%; height: 100%; max-height: none; }
  .size-guide-head { padding: 16px 18px; }
  .size-guide-head h2 { font-size: 20px; }
  .size-guide-body { padding: 14px; }
  .size-guide-foot { flex-direction: column; align-items: stretch; padding: 16px 18px; }
  .size-guide-foot .button { width: 100%; }
}

/* Цена уже крупно показана в превью слева — на десктопе не дублируем. */
@media (min-width: 1121px) {
  .live-price { display: none; }
}

/* Превью: единственная колонка со стоимостью. */
.stage-summary-v2 { justify-content: flex-start; }
.stage-summary-v2 div:last-child { text-align: left; }
.stage-summary-v2 strong { font-size: 30px; }

.saved-config strong[hidden] { display: none; }

/* Состав заказа: пары «параметр — значение» вместо длинной строки. */
.config-spec {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr;
  /* dt (14px) и dd (16px) разного кегля — без baseline подпись и значение
     стояли на разных оптических уровнях («Размер» и «17» не на одной линии). */
  align-items: baseline;
  gap: 9px 16px;
  margin: 4px 30px 20px;
  padding: 16px 18px;
  background: #f7f3ec;
  border: 1px solid #cfc6ba;
  /* Рамка фото над этим блоком настоящая (border + скругление), а тут
     раньше была только линия сверху без фона — скругление было объявлено,
     но невидимо, и на стыке казалось, что оно «обрывается». Теперь блок —
     такая же по весу карточка, как и фото над ним. */
}

.config-spec dt {
  color: #8b8276;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.config-spec dd {
  margin: 0;
  color: #3a352d;
  font-size: 16px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .config-spec { margin-inline: 20px; }
  .config-spec dd { font-size: 16px; }
}

/* Параметры камня в одну колонку: в трёх текст в списках обрезался. */
.stone-parameters {
  grid-template-columns: 1fr;
  gap: 16px;
}

.stone-parameters select {
  text-overflow: ellipsis;
}

.stone-guidance[hidden],
.design-start-status[hidden] {
  display: none !important;
}

/* =========================================================
   Фото мастера вместо именной карточки дизайнера
   ========================================================= */
.master-shot {
  position: relative;
  margin: 40px 0 0;
  max-width: 470px;
}

.master-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  filter: saturate(0.92);
}

.master-shot figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: -1px;
  padding: 16px 18px;
  color: #f8f2e8;
  background: var(--ink);
}

.master-shot figcaption strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.master-shot figcaption span {
  color: rgba(248, 242, 232, 0.6);
  font-size: 15px;
  line-height: 1.5;
}

/* если фото ещё не добавлено — остаётся аккуратная подпись без пустой рамки */
.master-shot.is-missing img { display: none; }
.master-shot.is-missing figcaption { margin-top: 0; }

@media (max-width: 1120px) {
  .master-shot { max-width: 380px; }
}

@media (max-width: 760px) {
  .master-shot { max-width: none; margin-top: 32px; }
}

/* =========================================================
   Информационные подсказки параметров конструктора
   ========================================================= */
.has-info-tip {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 6px;
}

.info-tip {
  position: relative;
  z-index: 20;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  color: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.info-tip-trigger {
  display: inline-grid;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  place-items: center;
  color: #785b37;
  background: rgba(224, 193, 138, 0.12);
  border: 1px solid rgba(120, 91, 55, 0.42);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease,
    transform 160ms ease;
}

.info-tip-trigger:hover,
.info-tip-trigger:focus-visible,
.info-tip.is-open .info-tip-trigger {
  color: #fffaf1;
  background: #8d693d;
  border-color: #8d693d;
  transform: translateY(-1px);
}

.info-tip-trigger:focus-visible {
  outline: 2px solid rgba(141, 105, 61, 0.28);
  outline-offset: 3px;
}

.info-popover {
  position: absolute;
  z-index: 50;
  bottom: calc(100% + 12px);
  left: -8px;
  width: min(410px, calc(100vw - 48px));
  padding: 19px 22px;
  color: #f7f1e7;
  background: #211e19;
  border: 1px solid rgba(224, 193, 138, 0.28);
  box-shadow: 0 20px 46px rgba(23, 19, 14, 0.3);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.info-popover::after {
  position: absolute;
  top: 100%;
  left: 14px;
  width: 9px;
  height: 9px;
  background: #211e19;
  border-right: 1px solid rgba(224, 193, 138, 0.28);
  border-bottom: 1px solid rgba(224, 193, 138, 0.28);
  content: "";
  transform: translateY(-5px) rotate(45deg);
}

.info-popover .inline-link {
  display: block;
  margin-top: 10px;
  color: #e0c18a;
  font-size: 17px;
  text-align: left;
}

.info-tip.is-open > .info-popover,
.info-tip-trigger:focus-visible + .info-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

@media (hover: hover) {
  .info-tip:hover > .info-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* =========================================================
   Мини-инфографика четырёх этапов изготовления
   ========================================================= */
.step-visual {
  display: flex;
  height: 112px;
  margin: 8px 0 4px;
  align-items: center;
  justify-content: center;
  color: #d4b57d;
}

.step-visual img {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: cover;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 420ms ease 180ms, transform 520ms cubic-bezier(0.2, 0.7, 0.2, 1) 180ms;
}

.process-step.is-visible .step-visual img {
  opacity: 1;
  transform: translateY(0);
}

.step-visual + h3 {
  margin-top: 14px;
}

@media (max-width: 760px) {
  .step-visual {
    height: 128px;
    margin-top: 12px;
  }

  .step-visual img {
    width: 128px;
    height: 128px;
  }
}

/* Выравниваем окна внутрь панели, чтобы крайние колонки их не обрезали. */
.parameter-grid.three label:nth-child(3n + 2) .info-popover {
  left: 50%;
  transform: translate(-50%, 6px);
}

.parameter-grid.three label:nth-child(3n + 2) .info-tip.is-open > .info-popover,
.parameter-grid.three label:nth-child(3n + 2) .info-tip-trigger:focus-visible + .info-popover {
  transform: translate(-50%, 0);
}

.parameter-grid.three label:nth-child(3n) .info-popover,
.parameter-grid.two label:nth-child(2n) .info-popover {
  right: -8px;
  left: auto;
}

.parameter-grid.three label:nth-child(3n) .info-popover::after,
.parameter-grid.two label:nth-child(2n) .info-popover::after {
  right: 14px;
  left: auto;
}

@media (hover: hover) {
  .parameter-grid.three label:nth-child(3n + 2) .info-tip:hover > .info-popover {
    transform: translate(-50%, 0);
  }
}

@media (max-width: 760px) {
  .has-info-tip {
    position: relative;
    width: 100%;
    gap: 7px;
  }

  .info-tip {
    position: static;
  }

  .info-tip-trigger {
    width: 22px;
    height: 22px;
    font-size: 16px;
  }

  .info-popover,
  .parameter-grid.three label:nth-child(n) .info-popover,
  .parameter-grid.two label:nth-child(n) .info-popover {
    right: auto;
    left: 0;
    width: min(370px, calc(100vw - 32px));
    padding: 17px 18px;
    font-size: 17px;
    transform: translateY(6px);
  }

  .info-tip.is-open > .info-popover,
  .parameter-grid.three label:nth-child(n) .info-tip.is-open > .info-popover,
  .parameter-grid.two label:nth-child(n) .info-tip.is-open > .info-popover,
  .info-tip-trigger:focus-visible + .info-popover {
    transform: translateY(0);
  }

  .parameter-grid.three label:nth-child(n) .info-popover::after,
  .parameter-grid.two label:nth-child(n) .info-popover::after {
    right: auto;
    left: 70px;
  }
}

/* ==========================================================================
   Скругления углов
   Единая шкала радиусов для всех блочных элементов интерфейса.
   ========================================================================== */

/* --- Кнопки и пилюли --- */
.button,
.button-primary,
.button-dark,
.submit-button,
.sticky-cta .button,
.config-footer-v2 .config-back,
.config-footer-v2 .config-save,
.size-guide-foot .button,
.messenger-pill,
.preview-chip,
.upload-remove {
  border-radius: var(--r-pill);
}

/* Вкладки лежат на линии-подчёркивании — скругляем только верх,
   иначе подчёркивание загибается по краям. */
.config-tabs .config-tab,
.config-tabs .reset-config:not(.order-config) {
  border-radius: var(--r-sm) var(--r-sm) 0 0;
}

/* Кнопка «К заявке» носит класс .reset-config, но это обычная кнопка. */
.config-tabs .order-config {
  border-radius: var(--r-pill);
}

/* Блоки с текстом в несколько строк — прямоугольник со скруглением,
   не «капсула»: у капсулы овал съедает края строк. */
.live-price,
.design-start-status,
.field-help-line {
  border-radius: var(--r-md);
}

/* --- Поля ввода --- */
select,
textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
.idea-form input[type="text"],
.idea-form-v2 input[type="email"],
.parameter-grid select,
.stone-parameters select,
.stone-select-field select,
.carat-select-field select,
.engraving-field input,
.idea-form [aria-invalid="true"] {
  border-radius: var(--r-sm);
}

.idea-form-v2 textarea,
.comment-field textarea {
  border-radius: var(--r-md);
}

/* --- Карточки выбора --- */
.choice,
.stone-choice,
.design-choice,
.messenger-choice label,
.idea-form-v2 .messenger-choice label,
.option-switch,
.privacy-details,
.consent-check,
.stage-summary,
.stage-summary-v2,
.configuration-line,
.trust-facts div,
.hero-proof,
.process-step,
.footer-contact,
.conditional-group,
.muted-group,
.field-explain,
.stone-guidance,
.parameter-note,
.preview-disclaimer,
.saved-config,
.config-spec,
.form-success {
  border-radius: var(--r-md);
}

.design-start-card {
  border-radius: var(--r-lg);
}

/* --- Панели, сцены и крупные блоки --- */
.config-panel,
.config-panel-v2,
.configurator,
.configurator-v2,
.ring-stage,
.sketch-stage,
.stage-visual,
.sketch-visual,
.step-visual,
.master-shot,
.info-popover,
.size-guide-panel,
.sticky-cta,
.trust-strip,
.idea-form,
.idea-form-v2,
.process-glow,
.hero-caption,
.footer-about {
  border-radius: var(--r-lg);
}

/* --- Изображения внутри скруглённых блоков --- */
.stage-visual img,
.sketch-visual img,
.step-visual img,
.master-shot img,
.design-choice img,
.size-guide-body img {
  border-radius: inherit;
}

.design-choice img {
  border-radius: calc(var(--r-md) - 4px);
}

/* --- Мелкие декоративные элементы --- */
.material-swatch,
.stone-icon,
.contact-icon,
.section-index i,
.range-scale,
.switch-mark,
.info-tip-trigger,
.size-guide-close,
.page-progress,
.page-progress span,
.start-marquee {
  border-radius: var(--r-pill);
}

input[type="range"] {
  border-radius: var(--r-pill);
}

input[type="range"]::-webkit-slider-runnable-track {
  border-radius: var(--r-pill);
}

input[type="range"]::-moz-range-track {
  border-radius: var(--r-pill);
}

input[type="range"]::-webkit-slider-thumb {
  border-radius: 50%;
}

input[type="range"]::-moz-range-thumb {
  border-radius: 50%;
}

/* --- Обрезка содержимого по скруглению
   (без .info-popover — у него внешний «хвостик» ::after) --- */
.stage-visual,
.sketch-visual,
.step-visual,
.master-shot,
.design-choice,
.size-guide-panel,
.start-marquee {
  overflow: hidden;
}


/* --- Узкие экраны: крупный шрифт не должен ломать сетку --- */
@media (max-width: 760px) {
  .trust-facts {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 20px;
  }

  .trust-strip blockquote {
    font-size: 22px;
  }
}

@media (max-width: 420px) {
  .trust-facts span {
    font-size: 13px;
    letter-spacing: 0.04em;
  }
}

/* --- Чекбокс: нативный квадрат не принимает border-radius,
   поэтому рисуем свой со скруглением и галочкой-фоном --- */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 18px;
  height: 18px;
  margin: 0;
  background-color: #fffdf9;
  border: 1px solid rgba(23, 21, 17, 0.32);
  /* 5px, а не --r-xs: на 18px круг читался бы как радиокнопка */
  border-radius: 5px;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    border-color 140ms ease;
}

/* Тумблеры .option-switch — исключение: нативный чекбокс тут нужен только для
   доступности, видимый переключатель рисует .switch-mark. Правило выше имеет ту
   же специфичность, что и .option-switch input, но лежит ниже по файлу — и
   возвращало input в поток. Он занимал первую колонку сетки, текст уезжал на
   вторую строку шириной 32px и рвался по одному слову. Здесь специфичность выше. */
.option-switch input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  background: none;
  opacity: 0;
  pointer-events: none;
}

input[type="checkbox"]:hover {
  border-color: rgba(23, 21, 17, 0.55);
}

input[type="checkbox"]:checked {
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.2l2.4 2.4 4.8-5.2' fill='none' stroke='%23f1ede5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  border-color: var(--ink);
}

input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Ручной перенос в цитате нужен только на широком экране —
   на узком строки и так короткие, лишний разрыв рвал бы текст. */
@media (max-width: 760px) {
  .br-wide {
    display: none;
  }
}

/* ==========================================================================
   Шапка: иконки магазина (кабинет, избранное, корзина)
   ========================================================================== */
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #f8f3e9;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-pill);
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.header-icon svg {
  width: 19px;
  height: 19px;
}

.header-icon:hover {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.header-icon:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

/* --- Бутерброд и меню каталога (как на внутренних страницах) --- */

/* Логотип и бутерброд занимают одну ячейку сетки шапки — иначе колонок
   стало бы четыре и меню с иконками разъехались бы. */
.header-lead {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.header-burger {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  color: #f8f3e9;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.header-burger:hover,
.header-burger[aria-expanded="true"] {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.header-burger:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

/* Абсолютное позиционирование, чтобы панель не занимала ячейку сетки шапки. */
.header-catalog {
  position: absolute;
  z-index: 25;
  top: 100%;
  right: 0;
  left: 0;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.header-catalog[hidden] {
  display: none;
}

.header-catalog-inner {
  display: grid;
  gap: 16px;
  padding: 22px 5.5vw 28px;
}

.header-catalog-all {
  color: var(--gold-light);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-catalog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px 28px;
}

.header-catalog-list a {
  color: #f8f3e9;
  font-size: 16px;
  opacity: 0.85;
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.header-catalog-list a:hover {
  color: var(--gold-light);
  opacity: 1;
}

.header-catalog-empty {
  color: rgba(248, 243, 233, 0.6);
  font-size: 15px;
}

@media (max-width: 1120px) {
  .header-actions {
    gap: 8px;
  }
}

@media (max-width: 760px) {
  .header-icon {
    width: 38px;
    height: 38px;
  }

  .header-icon svg {
    width: 18px;
    height: 18px;
  }

  /* Бутерброд уменьшается вместе с иконками, иначе шапка перестаёт помещаться. */
  .header-burger {
    width: 38px;
    height: 38px;
  }

  .header-lead {
    gap: 10px;
  }
}

/* Колонки шапки — по содержимому: при 1fr…1fr браузер уравнивал
   боковые колонки по более широкой (иконки + кнопка) и меню переносилось. */
.site-header {
  grid-template-columns: auto 1fr auto;
  gap: clamp(20px, 2.5vw, 40px);
}

.main-nav {
  justify-self: center;
  gap: clamp(18px, 2.2vw, 40px);
}

.main-nav a {
  white-space: nowrap;
}

/* Совсем узкие экраны: подпись «ювелирное ателье» уводила иконки
   за правый край — на этой ширине она уступает место корзине. */
@media (max-width: 420px) {
  .site-header .brand-name small {
    display: none;
  }

  .header-actions {
    gap: 4px;
  }

  .header-icon {
    width: 36px;
    height: 36px;
  }

  /* Бутерброд добавил в шапку ещё 46px — ужимаем зазоры, иначе он
     наезжает на иконки справа. */
  .site-header {
    gap: 12px;
  }

  .header-lead {
    gap: 8px;
  }

  .header-burger {
    width: 36px;
    height: 36px;
  }
}

/* Ниже 1120px правило .site-footer p { display: none } прятало в футере
   весь текст: адрес (заголовок «Ателье» оставался пустым), описание
   ателье и копирайт с оговоркой об оферте. Возвращаем. */
@media (max-width: 1120px) {
  .site-footer p {
    display: block;
    /* колонки выровнены по левому краю (align-items: flex-start),
       унаследованный center рассинхронил бы текст с заголовками */
    text-align: left;
  }
}

/* =========================================================
   Блок «Покажите идею» — фото подложкой, текст поверх
   ========================================================= */

.start-copy--photo {
  position: relative;
  isolation: isolate;
  display: flex;
  overflow: hidden;
  border-radius: var(--r-lg);
  /* Колонка тянется до высоты формы справа: у сетки .start-layout стоит
     align-items: start, поэтому растягиваем только этот блок. */
  align-self: stretch;
  min-height: clamp(520px, 58vw, 720px);
}

.start-copy-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Снимок вертикальный: при растяжении по высоте держим фокус на руках
     мастера, а не на верхнем крае фартука. */
  object-position: 50% 62%;
  filter: saturate(0.92);
}

/* Затемнение: без него светлые блики на руках съедали текст. Плотнее
   сверху и снизу — там как раз лежат заголовок и подпись. */
.start-copy--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 8, 5, 0.88) 0%,
    rgba(10, 8, 5, 0.70) 38%,
    rgba(10, 8, 5, 0.74) 64%,
    rgba(10, 8, 5, 0.9) 100%
  );
}

.start-copy-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  padding: clamp(28px, 3.4vw, 52px);
}

/* Текст на фото — светлый. Прежние цвета рассчитаны на бумагу. */
.start-copy--photo .eyebrow { color: var(--gold-light); }
.start-copy--photo h2 { color: #f6f1e6; }
.start-copy--photo h2 em { color: var(--gold-light); }

/* Правило .start-copy > p:not(.eyebrow) больше не достаёт абзац: он
   переехал внутрь .start-copy-top. Повторяем нужное явно. */
.start-copy--photo .start-copy-top p:not(.eyebrow) {
  max-width: 470px;
  margin: 30px 0 0;
  color: rgba(246, 241, 230, 0.92);
  font-size: 15px;
  line-height: 1.85;
}

.start-copy-note {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 470px;
  padding-top: 20px;
  border-top: 1px solid rgba(246, 241, 230, 0.22);
}

.start-copy-note strong {
  color: #f6f1e6;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.start-copy-note span {
  color: rgba(246, 241, 230, 0.66);
  font-size: 15px;
  line-height: 1.5;
}

/* Если фото не загрузилось — остаётся тёмная плашка, текст на ней читается. */
.start-copy--photo.is-missing { background: var(--ink); }
.start-copy--photo.is-missing .start-copy-photo { display: none; }

@media (max-width: 760px) {
  .start-copy--photo {
    min-height: 0;
    align-self: auto;
  }
  .start-copy-inner { gap: 32px; }
}

/* Блок с фото шире: вылезает влево за поле .shell и подходит ближе к форме.
   Раньше между ним и формой пустовало 10vw (144px на ноутбуке), а слева
   оставалось поле страницы — снимок выглядел узкой колонкой.
   Ограничено min-width: 761px, потому что ниже раскладка одноколоночная. */
@media (min-width: 761px) {
  .start-layout {
    grid-template-columns: 0.96fr 1fr;
    gap: clamp(32px, 4vw, 64px);
  }

  .start-copy--photo {
    /* .shell = min(1240px, 100% - 11vw), значит поле по краю страницы —
       половина остатка. Вылезаем в него, оставляя 56px до края экрана;
       больше 120px не тянем, иначе на широком мониторе блок расползается.
       56, а не 40: 100vw считает и полосу прокрутки, поэтому на ноутбуке
       1440 фактический отступ выходил на 7px меньше расчётного. */
    --gutter: calc((100vw - min(1240px, 89vw)) / 2);
    margin-left: calc(-1 * clamp(0px, var(--gutter) - 56px, 120px));
  }
}

/* ===== Окно выбора готового эскиза ===== */

.ring-picker {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
}

.ring-picker[hidden] { display: none; }

.ring-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 10, 7, 0.62);
  backdrop-filter: blur(3px);
}

.ring-picker-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  /* Шире прежних 920px: тринадцать карточек в пять колонок укладываются
     в три ряда и помещаются на экран целиком, без полосы прокрутки. */
  width: min(1320px, 100%);
  max-height: calc(100vh - 40px);
  overflow: hidden;
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.ring-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 26px 16px;
  border-bottom: 1px solid var(--line);
}

.ring-picker-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.ring-picker-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.ring-picker-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  /* Явные линия и радиус: без них браузер рисовал кнопку прямоугольником
     со своей рамкой, и крестик выглядел квадратом. */
  border: 1px solid rgba(23, 21, 17, 0.16);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 26px;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
}
.ring-picker-close:hover,
.ring-picker-close:focus-visible {
  background: rgba(23, 21, 17, 0.07);
  border-color: rgba(23, 21, 17, 0.3);
  color: var(--ink);
}

.ring-picker-grid {
  display: grid;
  /* Ровно пять в ряд: при auto-fill число колонок скакало от ширины окна,
     и на некоторых размерах последний ряд оставался почти пустым. */
  grid-template-columns: repeat(5, 1fr);
  /* Ряды делят между собой оставшуюся высоту, а прокрутка запрещена совсем:
     на невысоком экране карточки просто становятся ниже. Раньше при 1280x720
     не хватало 11px и появлялась полоса. */
  /* minmax(0, 1fr), а не 1fr: у обычного 1fr минимум равен содержимому,
     и ряды отказывались сжиматься. flex: 1 1 auto + min-height: 0 нужны,
     чтобы сетка была сжимаемым элементом внутри колонки-панели. */
  grid-auto-rows: minmax(0, 1fr);
  gap: 14px;
  padding: 20px 26px 26px;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
}

.ring-option {
  display: grid;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  /* Поле небольшое: раньше половину карточки занимала подпись, теперь
     всё место отдано самому кольцу. */
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md, 14px);
  background: #fffdf9;
  cursor: pointer;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.ring-option:hover,
.ring-option:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 154, 87, 0.18);
}

.ring-option.is-current {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold);
}

.ring-option img {
  /* Высоту задаёт ячейка сетки, а не пропорция картинки: так три ряда
     всегда укладываются в окно, каким бы низким оно ни было. */
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

@media (max-width: 760px) {
  .ring-picker { padding: 0; }
  .ring-picker-panel { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .ring-picker-head { padding: 18px 18px 14px; }
  .ring-picker-head h2 { font-size: 24px; }
  .ring-picker-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 14px 16px 22px;
  }
}

/* Стрелки перебора форм на превью. Лежат поверх картинки по краям,
   на самом эскизе места не занимают. */
.stage-visual { position: relative; }

.stage-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  padding: 0;
  border: 1px solid rgba(23, 21, 17, 0.14);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.92);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(23, 21, 17, 0.12);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.stage-nav:hover,
.stage-nav:focus-visible {
  background: #fffdf9;
  border-color: var(--gold);
  transform: scale(1.06);
}

.stage-nav-prev { left: 14px; }
.stage-nav-next { right: 14px; }

/* При своём эскизе перебор форм не нужен — человек смотрит своё фото. */
.ring-stage.has-custom-design .stage-nav { display: none; }

@media (max-width: 760px) {
  .stage-nav { width: 40px; height: 40px; margin-top: -20px; }
  .stage-nav-prev { left: 8px; }
  .stage-nav-next { right: 8px; }
}


/* Между телефоном и широким монитором: четыре в ряд, тоже без прокрутки. */
@media (min-width: 761px) and (max-width: 1160px) {
  .ring-picker-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Подсказка «?» в заголовке карточки выбора начала. */
.design-start-tip { margin-left: 8px; vertical-align: middle; }

/* Эскиз в превью крупнее. Рамка ::before отстоит от края на 16px, поэтому
   раньше картинка отступала от неё ещё на 24px с каждой стороны и болталась
   в середине. Оставляем узкий зазор — кольцо занимает почти весь кадр. */
.sketch-visual img {
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  min-height: 500px;
}

@media (max-width: 760px) {
  .sketch-visual img {
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    min-height: 380px;
  }
}

/* ===== Первый экран на широких, но невысоких мониторах =====

   Заголовок растёт от ширины окна (7vw), а высота блока привязана к высоте
   экрана. На соотношении вроде 2560x900 текст становился огромным, места по
   вертикали не оставалось, и блок «3 шага / Цена сразу» вылезал за границу
   первого экрана, а подпись внизу налезала на него.

   Ограничиваем кегль ещё и высотой окна и поджимаем вертикальные отступы,
   когда экран низкий. На обычных пропорциях ничего не меняется. */

/* Только для больших экранов: на телефоне свой кегль clamp(52px, 16vw, 76px),
   и правило без ограничения по ширине его перебивало. */
@media (min-width: 761px) {
  .hero h1 {
    font-size: clamp(68px, min(7vw, 12.5vh), 118px);
  }
}

/* Только для больших экранов: на телефоне свои, более плотные отступы
   (24 и 30px), и правила по высоте их перебивали — первый экран начинал
   вылезать. Поэтому добавляем min-width. */
@media (min-width: 761px) and (max-height: 960px) {
  .hero-lead { margin-top: 26px; }
  .hero-actions { margin-top: 30px; }
  .hero-proof { margin-top: 34px; }
}

/* ===== Превью кольца на планшете =====
   В две колонки высоту .ring-stage задаёт строка сетки, поэтому у .stage-visual
   она определённая, картинка честно берёт height:100% и кадрируется через
   object-fit: cover. Ниже 1120px конфигуратор схлопывается в одну колонку,
   высота строки становится «по содержимому», height:100% у картинки
   превращается в auto — и рендер 1024x1024 разворачивался в натуральную
   величину: на 1024x768 блок вырастал до 1157px и занимал весь экран одним
   светлым пятном. Возвращаем блоку определённую высоту, привязанную к окну. */
/* ===== Планшет в альбомной: конструктор остаётся в две колонки =====
   Ниже 1120px сетка схлопывалась в одну колонку, и кольцо уезжало наверх, над
   настройками. Схлопывание было вынужденным: у правой колонки стоял жёсткий
   минимум 570px, который на 1024px просто не помещался рядом со стендом.
   Ослабляем минимум и отдаём панели большую долю — раскладка остаётся
   ноутбучной: слева кольцо, справа настройки. */
@media (min-width: 900px) and (max-width: 1120px) {
  .configurator-v2 {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    min-height: 0;
  }

  /* Высоту снова задаёт строка сетки, а не подпорки одноколоночного вида. */
  .sketch-stage,
  .config-panel-v2 {
    min-height: 0;
  }

  .config-panel-v2 {
    padding-left: 24px;
    padding-right: 24px;
  }

  /* Подсказки у подписей полей цепляются левым краем к значку. В правой
     колонке параметров при 900px окошко шириной 410px не помещалось и
     вылезало за экран на 13px. Поджимаем ширину — текста немного, места
     хватает. */
  .config-panel-v2 .parameter-grid .info-popover {
    width: min(340px, calc(100vw - 48px));
  }
}

/* Портрет планшета остаётся в одну колонку — для двух не хватает ширины.
   Здесь у стенда нет высоты от строки сетки, поэтому область эскиза
   ограничиваем вручную: иначе квадратный рендер 1024x1024 разворачивался
   в натуральную величину и занимал весь экран. */
@media (min-width: 761px) and (max-width: 899px) {
  .sketch-visual {
    flex: 0 0 auto;
    min-height: 0;
    height: min(530px, 52svh);
  }

  .stage-visual img {
    min-height: 0;
  }

  .ring-stage,
  .sketch-stage {
    min-height: 0;
  }
}

@media (min-width: 761px) and (max-height: 820px) {
  .hero-lead { margin-top: 20px; font-size: 15px; line-height: 1.65; }
  .hero-actions { margin-top: 24px; }
  .hero-proof { margin-top: 24px; }
  .hero-content { padding-top: 96px; }
}

/* ===== Подсказки «?» у карточек начала =====
   Окошко цепляется левым краем к значку и уходит вправо на 410px. У второй и
   третьей карточек значок сам стоит близко к правому краю, и подсказку
   обрезало: замеры показали вылет 89 и 234px на 1024, 32 и 193 на 1280,
   150 на 1440. Разворачиваем их влево — как это делает любая всплывающая
   подсказка у края. На 1920 вылета уже нет, поэтому выше 1700 не трогаем. */
@media (max-width: 1700px) {
  .design-start-options .design-start-card:nth-child(n + 2) .info-popover {
    right: -8px;
    left: auto;
  }

  .design-start-options .design-start-card:nth-child(n + 2) .info-popover::after {
    right: 14px;
    left: auto;
  }
}
