/* ==========================================================================
   vivaVoyage — Warm Boudoir Luxury
   Дизайн-система: цвета #EDE5DF #C9B8AE #A99A91 #514641 #2D2827
   Шрифты: Cormorant Garamond (заголовки), Montserrat (текст) — локальные, /fonts/
   ========================================================================== */

:root {
  --cream:      #EDE5DF;
  --cream-deep: #E4D8CD;
  --ivory:      #F8F3EE;
  --beige:      #C9B8AE;
  --taupe:      #A99A91;
  --graphite:   #514641;
  --ink:        #2D2827;
  --dark:       #241E1C;
  --dark-2:     #2E2623;
  --brown:      #6E5449;
  --brown-dark: #5B443A;
  --silver:     #C8C0BA;
  --line:       rgba(81, 70, 65, .26);
  --line-soft:  rgba(81, 70, 65, .14);
  --line-light: rgba(237, 229, 223, .28);

  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans:  'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --container: 1280px;
  --pad: clamp(18px, 4vw, 56px);
  --header-h: 88px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

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

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

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 300; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--graphite);
}

.h-display {
  font-family: var(--serif);
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.06;
  font-weight: 300;
  letter-spacing: -.005em;
  margin: 0;
}

.h-page {
  font-family: var(--sans);
  font-size: clamp(26px, 3.1vw, 40px);
  line-height: 1.16;
  font-weight: 300;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0;
}

.h-section {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.12;
  font-weight: 300;
  margin: 0;
}

.lead { font-size: 17px; line-height: 1.75; color: var(--graphite); }
.small { font-size: 13px; line-height: 1.7; color: var(--taupe); }

.rule {
  width: 54px;
  height: 1px;
  background: currentColor;
  opacity: .55;
  margin: 22px 0;
  border: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 34px;
  border: 1px solid var(--graphite);
  background: transparent;
  color: var(--graphite);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { background: var(--graphite); color: var(--ivory); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn--light { border-color: var(--cream); color: var(--cream); }
.btn--light:hover { background: var(--cream); color: var(--ink); }

.btn--solid {
  width: 100%;
  padding: 18px 24px;
  background: var(--brown);
  border-color: var(--brown);
  color: #fff;
  letter-spacing: .22em;
}
.btn--solid:hover { background: var(--brown-dark); border-color: var(--brown-dark); color: #fff; }
.btn--solid:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ivory);
  border-bottom: 1px solid var(--line-soft);
  transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
/* Шапка поверх тёмного первого экрана: в потоке, но сдвигает контент под себя */
.header--over {
  position: sticky;
  top: 0;
  margin-bottom: calc(-1 * var(--header-h));
  background: transparent;
  border-bottom: 0;
  color: var(--cream);
}
/* Состояние после прокрутки — фон, чтобы текст читался на светлых секциях */
.header.is-stuck {
  background: rgba(248, 243, 238, .97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  border-bottom-color: transparent;
  box-shadow: 0 1px 0 rgba(81, 70, 65, .14), 0 6px 24px rgba(45, 40, 39, .06);
}
.header.is-stuck .cart-count { background: var(--brown); color: #fff; }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 88px;
}

.logo {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
}
.logo span { font-weight: 300; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 46px);
  margin-left: auto;
}

.nav a {
  position: relative;
  font-size: 11px;
  letter-spacing: .17em;
  text-transform: uppercase;
  padding: 6px 0;
  opacity: .88;
  transition: opacity .3s;
}
.nav a:hover { opacity: 1; }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { opacity: 1; }

.header__tools { display: flex; align-items: center; gap: 18px; }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  opacity: .9;
  transition: opacity .3s;
}
.icon-btn:hover { opacity: 1; }
.icon-btn svg { width: 20px; height: 20px; }

.cart-count {
  position: absolute;
  top: 0; right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--brown);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  display: none;
}
.cart-count.is-visible { display: block; }
.header--over .cart-count { background: var(--cream); color: var(--ink); }

.burger { display: none; }

/* мобильное меню */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ivory);
  padding: 34px var(--pad);
  flex-direction: column;
  gap: 6px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  font-family: var(--serif);
  font-size: 26px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav .close {
  align-self: flex-end;
  background: none;
  border: 0;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  margin-bottom: 10px;
}

/* ---------- главный экран ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--cream);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: stretch;
  min-height: clamp(480px, 62vh, 660px);
}
.hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 40px 72px max(var(--pad), calc((100vw - var(--container)) / 2));
  background:
    radial-gradient(120% 90% at 12% 40%, rgba(58, 46, 41, .55) 0%, rgba(36, 30, 28, .2) 55%, rgba(36, 30, 28, 0) 78%);
}
.hero__media { position: relative; overflow: hidden; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 55% 45%;
  filter: brightness(.92) contrast(1.02);
}
.hero__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(36, 30, 28, .92) 0%, rgba(36, 30, 28, .45) 26%, rgba(36, 30, 28, 0) 58%);
}
.hero .h-display { max-width: 8.6em; }
.hero__cta { margin-top: 38px; }

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

.collection {
  position: relative;
  padding: clamp(56px, 7vw, 92px) 0 clamp(64px, 8vw, 104px);
  background:
    radial-gradient(80% 60% at 50% 0%, #F3EBE3 0%, rgba(243, 235, 227, 0) 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}
.section-head { text-align: center; margin-bottom: clamp(32px, 4vw, 54px); }
.section-head .eyebrow { display: block; margin-bottom: 10px; }
.section-head .h-section { letter-spacing: .01em; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }

.card { display: block; }
.card__media {
  position: relative;
  overflow: hidden;
  background: #DCD0C5;
  aspect-ratio: 2.05 / 1;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.card:hover .card__media img { transform: scale(1.035); }
.card__title {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  margin: 18px 0 10px;
}
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  transition: border-color .3s, gap .3s;
}
.card:hover .card__link { border-color: var(--graphite); gap: 14px; }

/* ---------- ритуалы (полоса на главной) ---------- */

.rituals-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: stretch;
  background: var(--cream);
}
.rituals-band__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 5vw, 74px) 40px clamp(40px, 5vw, 74px) max(var(--pad), calc((100vw - var(--container)) / 2));
  background: linear-gradient(180deg, #EFE7E1 0%, #E7DBD0 100%);
}
.rituals-band__media { position: relative; min-height: 320px; overflow: hidden; }
.rituals-band__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.rituals-band .h-section { margin-bottom: 4px; }
.rituals-band__sub { color: var(--graphite); font-size: 14px; letter-spacing: .04em; }
.rituals-band__cta { margin-top: 30px; }

/* ---------- искусство ухода ---------- */

.art {
  padding: clamp(54px, 7vw, 90px) 0 clamp(46px, 6vw, 74px);
  background:
    radial-gradient(70% 55% at 50% 8%, #F4ECE5 0%, rgba(244, 236, 229, 0) 62%),
    var(--ivory);
  text-align: center;
}
.art__rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 16px auto 0;
  max-width: 620px;
}
.art__rule::before, .art__rule::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--line);
}
.art__rule span {
  font-size: 10.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--graphite);
  white-space: nowrap;
}
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(36px, 4.6vw, 56px);
}
.feature {
  padding: 0 clamp(14px, 2vw, 34px);
  border-left: 1px solid var(--line-soft);
}
.feature:first-child { border-left: 0; }
.feature__icon { height: 44px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--graphite); }
.feature__icon svg { width: 40px; height: 40px; }
.feature__title {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1.7;
  margin-bottom: 10px;
  color: var(--ink);
}
.feature__text { font-size: 13px; line-height: 1.7; color: var(--graphite); }

/* ---------- философия на главной ---------- */

.philo-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: stretch;
  background: var(--dark);
  color: var(--cream);
}
.philo-band__media { position: relative; min-height: 360px; overflow: hidden; }
.philo-band__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.philo-band__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(46px, 6vw, 84px) max(var(--pad), calc((100vw - var(--container)) / 2)) clamp(46px, 6vw, 84px) clamp(30px, 5vw, 78px);
}
.philo-band__logo {
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: .02em;
  margin-bottom: 22px;
}
.philo-band__quote {
  font-family: var(--serif);
  font-size: clamp(26px, 2.9vw, 40px);
  line-height: 1.28;
  font-weight: 300;
}

/* ---------- футер ---------- */

.footer {
  background: #1C1817;
  color: rgba(237, 229, 223, .72);
  padding: clamp(46px, 6vw, 76px) 0 26px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(237, 229, 223, .12);
}
.footer__logo { font-family: var(--serif); font-size: 26px; color: var(--cream); margin-bottom: 14px; }
.footer__tagline { font-size: 13px; line-height: 1.8; max-width: 26em; }
.footer h4 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(237, 229, 223, .52);
  margin: 0 0 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { font-size: 13px; transition: color .3s; }
.footer a:hover { color: var(--cream); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 11.5px;
  color: rgba(237, 229, 223, .45);
}

/* ---------- хлебные крошки / верх карточки ---------- */

.crumbs {
  padding: 22px 0 0;
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--taupe);
}
.crumbs a:hover { color: var(--graphite); }
.crumbs span { margin: 0 10px; opacity: .5; }

/* ---------- карточка товара ---------- */

.product {
  padding: clamp(20px, 3vw, 34px) 0 clamp(50px, 6vw, 80px);
  background:
    radial-gradient(90% 60% at 70% 0%, #F6EFE8 0%, rgba(246, 239, 232, 0) 58%),
    var(--cream);
}
.product__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.product__media {
  position: relative;
  background: linear-gradient(160deg, #EADFD4 0%, #DED1C6 100%);
  overflow: hidden;
}
.product__media img { width: 100%; height: auto; object-fit: cover; }
.product__brand {
  font-family: var(--serif);
  font-size: 26px;
  margin: 0 0 14px;
}
.product__sub { color: var(--graphite); font-size: 15px; margin: 14px 0 26px; }

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 30px;
}
.tile {
  border: 1px solid var(--line);
  padding: 13px 16px;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--ink);
  background: rgba(255, 255, 255, .28);
}

.format { margin-bottom: 24px; }
.format__label { font-size: 14px; margin-bottom: 12px; }
.format__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.format__opt { position: relative; }
.format__opt input { position: absolute; opacity: 0; inset: 0; }
.format__opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  padding: 13px 10px;
  font-size: 13px;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.format__opt span::before {
  content: '';
  width: 13px; height: 13px;
  border: 1px solid var(--graphite);
  border-radius: 50%;
  flex: 0 0 auto;
}
.format__opt input:checked + span { background: var(--brown); border-color: var(--brown); color: #fff; }
.format__opt input:checked + span::before { border-color: #fff; background: radial-gradient(circle, #fff 0 40%, transparent 42%); }
.format__opt input:disabled + span { opacity: .5; cursor: not-allowed; }

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 6px 0 20px;
}
.price {
  font-family: var(--sans);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 300;
  letter-spacing: .01em;
}
.price small { font-size: 13px; color: var(--taupe); letter-spacing: .04em; }
.price-row .unit { font-size: 13px; color: var(--graphite); text-align: right; }

.gift {
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 16px 18px;
  margin-top: 18px;
  background: rgba(255, 255, 255, .28);
}
.gift svg { width: 34px; height: 34px; flex: 0 0 auto; color: var(--brown); }
.gift__title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.gift__text { font-size: 13px; line-height: 1.6; color: var(--graphite); }
.gift__note { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); margin-top: 6px; }

/* полоса «у объёма свой характер» */
.statement {
  background: linear-gradient(90deg, #4A3831 0%, #3A2C27 100%);
  color: var(--cream);
  padding: clamp(36px, 4.4vw, 58px) 0;
}
.statement__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
}
.statement__title {
  font-family: var(--sans);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 200;
  line-height: 1.25;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-right: 1px solid rgba(237, 229, 223, .3);
  padding-right: clamp(20px, 3vw, 44px);
}
.statement__text { font-size: 14.5px; line-height: 1.8; color: rgba(237, 229, 223, .86); }

/* секция с тремя шагами */
.steps { padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); background: var(--cream); }
.steps__title {
  text-align: center;
  font-family: var(--sans);
  font-size: clamp(23px, 2.7vw, 34px);
  font-weight: 300;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0;
}
.steps__sub {
  text-align: center;
  font-size: 10.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--graphite);
  margin: 12px 0 0;
}
.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
  margin-top: clamp(30px, 4vw, 48px);
}
.step { padding-top: 4px; }
.step__num {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--graphite);
  margin-bottom: 6px;
}
.step__title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.step__text { font-size: 13px; line-height: 1.75; color: var(--graphite); }

/* секция «роскошь в каждом флаконе» / активные компоненты */
.ingredients {
  padding: clamp(40px, 5vw, 64px) 0 clamp(48px, 6vw, 76px);
  background: linear-gradient(180deg, var(--cream) 0%, #E9DED4 100%);
  text-align: center;
}
.ingredients__sub { max-width: 46em; margin: 14px auto 0; font-size: 14px; color: var(--graphite); }
.circles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 34px);
  margin-top: clamp(30px, 4vw, 46px);
}
.circle { padding: 0 clamp(4px, 1vw, 16px); border-left: 1px solid var(--line-soft); }
.circle:first-child { border-left: 0; }
.circle__img {
  width: clamp(78px, 8vw, 104px);
  height: clamp(78px, 8vw, 104px);
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 18px;
  background: var(--cream-deep);
}
.circle__img img { width: 100%; height: 100%; object-fit: cover; }
.circle__title {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.65;
  margin-bottom: 10px;
}
.circle__text { font-size: 12.5px; line-height: 1.7; color: var(--graphite); }

/* баннер-слоган */
.slogan {
  background: linear-gradient(90deg, #6B5147 0%, #574137 100%);
  color: var(--ivory);
  text-align: center;
  padding: 22px var(--pad);
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
}

/* состав */
.inci {
  padding: clamp(30px, 4vw, 50px) 0 clamp(50px, 6vw, 76px);
  background: #E9DED4;
}
.inci__grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.inci__title {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0;
}
.inci__body { font-size: 12.5px; line-height: 1.85; color: var(--graphite); }
.inci details { border-top: 1px solid var(--line); padding-top: 16px; }
.inci summary {
  cursor: pointer;
  list-style: none;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--graphite);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.inci summary::-webkit-details-marker { display: none; }
.inci summary::after { content: '+'; font-size: 16px; line-height: 1; }
.inci details[open] summary::after { content: '−'; }
.inci details[open] summary { margin-bottom: 14px; }

/* ---------- страница «Ритуалы» ---------- */

.hero-split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  background: var(--dark);
  color: var(--cream);
  overflow: hidden;
}
.hero-split__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px 40px 64px max(var(--pad), calc((100vw - var(--container)) / 2));
  background: radial-gradient(120% 100% at 20% 40%, rgba(58, 46, 41, .55) 0%, rgba(36, 30, 28, 0) 70%);
}
.hero-split__media { position: relative; min-height: 480px; }
.hero-split__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-split__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(36, 30, 28, .85) 0%, rgba(36, 30, 28, .15) 40%, rgba(36, 30, 28, 0) 72%);
}
.hero-split .h-display { max-width: 9.4em; }
.hero-split__text p { max-width: 30em; font-size: 15px; line-height: 1.75; color: rgba(237, 229, 223, .82); }

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.split--cream { background: var(--cream); }
.split--ivory { background: var(--ivory); }
.split--dark { background: var(--dark-2); color: var(--cream); }
.split--dark .h-page, .split--dark .h-section { color: var(--cream); }
.split--dark .split__text p { color: rgba(237, 229, 223, .84); }
.split--dark .split__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(46, 38, 35, 0) 55%, rgba(46, 38, 35, .55) 100%);
  pointer-events: none;
}
.split__media { position: relative; overflow: hidden; min-height: 340px; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 4.6vw, 68px) clamp(24px, 4vw, 64px);
}
.split__text .h-section { margin-bottom: 18px; }
.split__text p { font-size: 14.5px; line-height: 1.8; color: var(--graphite); margin: 0 0 14px; }

.icon-rows { display: grid; gap: 22px; margin-top: 26px; }
.icon-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; align-items: start; }
.icon-row svg { width: 38px; height: 38px; color: var(--ink); }
.icon-row__title { font-size: 14px; line-height: 1.5; }

.final {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  background: var(--dark);
  color: var(--cream);
  overflow: hidden;
}
.final__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 84px) 40px clamp(48px, 6vw, 84px) max(var(--pad), calc((100vw - var(--container)) / 2));
}
.final__media { position: relative; min-height: 420px; }
.final__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.final__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(36, 30, 28, .9) 0%, rgba(36, 30, 28, .2) 32%, rgba(36, 30, 28, 0) 62%);
}
.final__cta { margin-top: 32px; }

/* ---------- страница «Роман с собой» ---------- */

.philo-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  background: var(--dark);
  color: var(--cream);
  overflow: hidden;
}
.philo-hero__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 128px 40px 70px max(var(--pad), calc((100vw - var(--container)) / 2));
}
.philo-hero__media { position: relative; min-height: 420px; }
.philo-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.philo-hero__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(36, 30, 28, .92) 0%, rgba(36, 30, 28, .3) 38%, rgba(36, 30, 28, 0) 70%);
}
.philo-hero .h-display { font-size: clamp(34px, 4.3vw, 56px); }
.philo-hero__note {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.5;
  color: rgba(237, 229, 223, .8);
  max-width: 24em;
}
.philo-hero .rule { color: rgba(237, 229, 223, .6); }

.quote-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--cream);
  padding: clamp(34px, 4.6vw, 68px) clamp(24px, 4vw, 64px);
}
.quote-block .h-section { font-size: clamp(26px, 2.9vw, 40px); }
.quote-block p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.7;
  color: var(--graphite);
  margin: 16px 0 0;
  max-width: 30em;
}

.closing {
  background: var(--dark);
  color: var(--cream);
  text-align: center;
  padding: clamp(50px, 6.4vw, 86px) var(--pad);
}
.closing__quote {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.3;
  margin: 0 0 16px;
}
.closing__brand { font-family: var(--serif); font-size: 22px; margin-bottom: 30px; opacity: .9; }

/* ---------- оформление заказа ---------- */

.order-page {
  padding: clamp(20px, 3vw, 34px) 0 clamp(50px, 6vw, 80px);
  background:
    radial-gradient(80% 50% at 50% 0%, #F6EFE8 0%, rgba(246, 239, 232, 0) 62%),
    var(--cream);
  min-height: 70vh;
}
.order-head { text-align: center; margin-bottom: clamp(22px, 3vw, 34px); }
.order-head .logo { font-size: clamp(30px, 3.4vw, 40px); display: block; margin-bottom: 10px; }
.order-head .eyebrow { letter-spacing: .34em; }

.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(16px, 2.2vw, 28px);
  align-items: start;
}

.panel {
  background: rgba(250, 245, 240, .72);
  border: 1px solid rgba(201, 184, 174, .5);
  padding: clamp(18px, 2.2vw, 30px);
  backdrop-filter: blur(2px);
}
.panel h2 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 400;
  margin: 0 0 18px;
}

.order-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.order-item__img { width: 92px; height: 104px; overflow: hidden; background: var(--cream-deep); }
.order-item__img img { width: 100%; height: 100%; object-fit: cover; }
.order-item__name { font-size: 14px; line-height: 1.5; margin-bottom: 8px; padding-right: 22px; }
.order-item__price { font-size: 17px; margin-bottom: 10px; }
.order-item__del {
  position: absolute;
  top: 0; right: 0;
  width: 22px; height: 22px;
  border: 0;
  background: none;
  color: var(--taupe);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.order-item__del:hover { color: var(--ink); }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .4);
}
.qty button {
  width: 34px; height: 32px;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--graphite);
  font-size: 16px;
  line-height: 1;
}
.qty button:hover { color: var(--ink); }
.qty input {
  width: 40px;
  height: 32px;
  border: 0;
  background: none;
  text-align: center;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.gift-line {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(201, 184, 174, .65);
  background: rgba(233, 222, 212, .55);
  margin-bottom: 18px;
}
.gift-line__img { width: 92px; height: 74px; overflow: hidden; }
.gift-line__img img { width: 100%; height: 100%; object-fit: cover; }
.gift-line__title {
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.gift-line__text { font-size: 13px; line-height: 1.6; color: var(--graphite); }

.total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
}
.total__label { font-family: var(--serif); font-size: 22px; }
.total__value { font-size: 26px; font-weight: 300; }

.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
}
.trust__item { text-align: center; padding: 0 8px; border-left: 1px solid var(--line-soft); }
.trust__item:first-child { border-left: 0; }
.trust__item svg { width: 30px; height: 30px; margin: 0 auto 10px; color: var(--graphite); }
.trust__item span { font-size: 11px; letter-spacing: .06em; line-height: 1.5; color: var(--graphite); display: block; }

.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 11px; letter-spacing: .1em; color: var(--taupe); margin-bottom: 6px; text-transform: uppercase; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(169, 154, 145, .55);
  background: rgba(255, 255, 255, .55);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  transition: border-color .3s, background .3s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--graphite);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 74px; }

.order-subhead {
  font-family: var(--serif);
  font-size: 21px;
  margin: 24px 0 14px;
}
.order-subhead:first-of-type { margin-top: 0; }

.ship-opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid rgba(169, 154, 145, .5);
  background: rgba(255, 255, 255, .5);
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .3s, background .3s;
}
.ship-opt:hover { border-color: var(--graphite); }
.ship-opt input { margin: 3px 0 0; accent-color: var(--brown); }
.ship-opt__icon { color: var(--graphite); flex: 0 0 auto; }
.ship-opt__icon svg { width: 24px; height: 24px; }
.ship-opt__title { display: block; font-size: 13.5px; line-height: 1.45; }
.ship-opt__desc { display: block; font-size: 11.5px; color: var(--taupe); line-height: 1.5; margin-top: 3px; }

.agree {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--graphite);
  margin: 18px 0 18px;
}
.agree input { margin-top: 3px; accent-color: var(--brown); }
.agree a { border-bottom: 1px solid var(--line); }
.agree a:hover { border-color: var(--graphite); }

.form-msg { margin-top: 14px; font-size: 13px; display: none; }
.form-msg.ok { display: block; color: #3f6b4a; }
.form-msg.err { display: block; color: #a33b32; }

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

.empty-cart { text-align: center; padding: 26px 0 10px; }
.empty-cart p { margin: 0 0 18px; color: var(--graphite); font-size: 14px; }

/* ---------- утилиты ---------- */

/* Закреплённая шапка не должна перекрывать якоря (#collection) */
[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

.nowrap { white-space: nowrap; }
.mb-0 { margin-bottom: 0; }

/* ---------- адаптив ---------- */

@media (max-width: 1080px) {
  :root { --header-h: 74px; }
  .header__inner { height: 74px; }
  .nav { display: none; }
  .burger { display: inline-flex; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature:nth-child(3) { border-left: 0; }
  .feature { padding-top: 26px; }
  .circles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .circle:nth-child(3) { border-left: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .order-grid { grid-template-columns: minmax(0, 1fr); }
  .order-side { order: -1; }
}

@media (max-width: 860px) {
  .hero__grid, .hero-split, .philo-hero, .final, .rituals-band, .philo-band, .split, .statement__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__grid { min-height: 0; }
  .hero__text, .hero-split__text, .philo-hero__text, .final__text, .rituals-band__text, .philo-band__text {
    padding: 104px var(--pad) 48px;
  }
  .hero__text { justify-content: flex-start; padding: 34px var(--pad) 44px; }
  .hero__media, .hero-split__media, .philo-hero__media { min-height: 0; order: -1; }
  .hero__media::after, .hero-split__media::after, .philo-hero__media::after, .final__media::after {
    background: linear-gradient(180deg, rgba(36, 30, 28, .55) 0%, rgba(36, 30, 28, 0) 45%);
  }
  .hero__text { padding-top: 46px; }
  .hero .h-display { max-width: none; }
  .rituals-band__media, .philo-band__media, .split__media, .final__media { min-height: 0; }

  /* На мобильном фотографии показываем целиком, без обрезки:
     высота по пропорции снимка, без фиксированных min-height и object-fit: cover */
  .hero__media img,
  .hero-split__media img,
  .philo-hero__media img,
  .rituals-band__media img,
  .philo-band__media img,
  .split__media img,
  .final__media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
  }

  /* Карточки коллекции — тоже целиком */
  .card__media { aspect-ratio: auto; }
  .card__media img { width: 100%; height: auto; object-fit: contain; }
  .philo-band__text, .final__text, .hero-split__text, .philo-hero__text, .rituals-band__text { padding: 44px var(--pad); }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .product__grid { grid-template-columns: minmax(0, 1fr); }
  .steps__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .statement__title { border-right: 0; border-bottom: 1px solid rgba(237, 229, 223, .3); padding: 0 0 18px; }
  .inci__grid { grid-template-columns: minmax(0, 1fr); }
  .features { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .feature { border-left: 0; border-top: 1px solid var(--line-soft); padding: 24px 0 0; }
  .feature:first-child { border-top: 0; padding-top: 0; }
  .circles { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .circle { border-left: 0; border-top: 1px solid var(--line-soft); padding: 22px 0 0; }
  .circle:first-child { border-top: 0; padding-top: 0; }
  .trust { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .trust__item { border-left: 0; }
  .footer__top { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .philo-hero .h-display { font-size: clamp(30px, 8vw, 42px); }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .logo { font-size: 22px; }
  .header__tools { gap: 10px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .format__options { grid-template-columns: minmax(0, 1fr); }
  .btn { padding: 14px 24px; }
  .order-item { grid-template-columns: 74px minmax(0, 1fr); }
  .order-item__img { width: 74px; height: 86px; }
  .gift-line { grid-template-columns: 74px minmax(0, 1fr); }
  .gift-line__img { width: 74px; height: 62px; }
  .panel { padding: 16px; }
  .slogan { font-size: 10px; letter-spacing: .18em; line-height: 1.9; }
}
