/* =========================================================
   Парфюмер Карелина — Алёна Карелина
   Дизайн-система: luxury editorial / niche perfumery
   Заголовки — Philosopher Bold, текст — Manrope
   ========================================================= */

/* ---------- Шрифты (локальные файлы, без внешних сервисов) ---------- */
@font-face { font-family: "Philosopher"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/philosopher-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Philosopher"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/philosopher-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Philosopher"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/philosopher-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Philosopher"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/philosopher-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Philosopher"; font-style: italic; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/philosopher-cyrillic-700-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Philosopher"; font-style: italic; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/philosopher-latin-700-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }


/* ---------- Токены ---------- */
:root {
  /* Фирменная палитра parfumer.karelina: голубой фон, коричневый текст */
  --ivory: #A2C5E8;                /* основной фон (голубой) и светлый текст на тёмных блоках */
  --ivory-deep: #B6D2EE;           /* фон чередующихся блоков (светлее голубого) */
  --green: #623A21;                /* главный коричневый: заголовки, кнопки, ссылки */
  --green-deep: #4A2A16;           /* тёмный коричневый для наведения и тёмных блоков */
  --ink: #623A21;                  /* главный текст */
  --gold: #8C5E3C;                 /* тонкие линии и детали */
  --gold-text: #5A3820;            /* мелкие подписи на голубом (контраст ≥ 4.5) */
  --gold-light: #C9DCF0;           /* подписи на коричневом фоне */

  --text: var(--ink);
  --text-muted: rgba(98, 58, 33, .88);
  --line: rgba(98, 58, 33, .22);
  --line-strong: rgba(98, 58, 33, .4);
  --line-light: rgba(228, 238, 248, .28);

  --display: "Philosopher", Georgia, "Times New Roman", serif;
  --sans: "Philosopher", Georgia, "Times New Roman", serif;

  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 10vw, 8.5rem);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
sup { font-size: .55em; line-height: 0; }
::selection { background: var(--green); color: var(--ivory); }

:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.on-dark :focus-visible { outline-color: var(--gold); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--ink); color: var(--ivory); padding: .75rem 1.25rem; text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* ---------- Типографика ---------- */
.eyebrow, .section-index, .kicker, .contact-label, .label {
  font-family: var(--sans); font-size: .75rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
}
.section-index { color: var(--green); display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.section-index::before { content: ""; width: 2.5rem; height: 1px; background: currentColor; flex: none; }
.on-dark .section-index { color: var(--gold-light); }

.section-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.1rem, 1.5rem + 2.5vw, 3.6rem);
  line-height: 1.1; letter-spacing: -.01em; color: var(--green);
  text-wrap: balance;
}
.on-dark .section-title { color: var(--ivory); }
.prose { display: grid; gap: 1.1rem; color: var(--text-muted); max-width: 62ch; }
.lead { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); line-height: 1.38; color: var(--text); }
.on-dark .lead { color: var(--ivory); }
.on-dark .prose { color: rgba(228, 238, 248, .82); }

/* ---------- Кнопки и ссылки ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .9rem 1.6rem;
  font-family: var(--sans); font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; text-align: center;
  color: var(--btn-fg); background: var(--btn-bg); border: 1px solid var(--btn-bd); border-radius: 0; cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn-primary { --btn-bg: var(--green); --btn-fg: var(--ivory); --btn-bd: var(--green); }
.btn-primary:hover { --btn-bg: var(--ink); --btn-bd: var(--ink); }
.btn-outline:hover { --btn-bg: var(--ink); --btn-fg: var(--ivory); }
.on-dark .btn-outline { --btn-fg: var(--ivory); --btn-bd: rgba(228, 238, 248,.6); }
.on-dark .btn-outline:hover { --btn-bg: var(--ivory); --btn-fg: var(--ink); --btn-bd: var(--ivory); }
.on-dark .btn-primary { --btn-bg: var(--ivory); --btn-fg: var(--ink); --btn-bd: var(--ivory); }
.on-dark .btn-primary:hover { --btn-bg: var(--gold); --btn-bd: var(--gold); }
.btn-small { min-height: 42px; padding: .55rem 1.1rem; font-size: .72rem; }
.btn-large { min-height: 60px; padding-inline: 2.4rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

.text-link {
  display: inline-flex; gap: .5rem; align-items: center;
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: var(--green); padding-bottom: .3rem;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .45s var(--ease);
}
.text-link:hover { background-size: 30% 1px; }
.on-dark .text-link { color: var(--gold-light); }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), height .4s var(--ease);
}
.site-header.is-scrolled, .page-inner .site-header {
  background: rgba(228, 238, 248, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.site-header.is-scrolled { --header-h: 64px; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.wordmark-name { font-family: var(--display); font-size: 1.35rem; font-weight: 700; letter-spacing: .18em; }
.wordmark-sub { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--text-muted); margin-top: .4rem; }

.nav { display: flex; align-items: center; gap: 2.25rem; }
.nav-list { display: flex; gap: 1.75rem; }
.nav-list a {
  font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding-block: .4rem;
  background: linear-gradient(var(--green), var(--green)) left bottom / 0 1px no-repeat;
  transition: background-size .4s var(--ease), color .3s;
}
.nav-list a:hover, .nav-list a[aria-current] { background-size: 100% 1px; color: var(--green); }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .nav-list { gap: 1.25rem; }
  .nav-cta { display: none; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; position: relative; z-index: 60; width: 48px; height: 48px; margin-right: -12px; padding: 0; background: none; border: 0; cursor: pointer; }
  .nav-toggle-bar { position: absolute; left: 12px; right: 12px; top: 50%; height: 1px; background: var(--ink); transition: transform .4s var(--ease), background-color .3s; }
  .nav-toggle-bar:nth-of-type(2) { transform: translateY(-4px); }
  .nav-toggle-bar:last-of-type { transform: translateY(4px); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: var(--ivory); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(2) { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-of-type { transform: rotate(-45deg); }

  .nav {
    position: fixed; inset: 0; z-index: 55; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2.5rem;
    padding: 6rem var(--gutter) 3rem; background: var(--ink); color: var(--ivory);
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility 0s linear .4s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
  .nav-list { flex-direction: column; gap: .35rem; }
  .nav-list a { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 7vw, 2.5rem); letter-spacing: 0; text-transform: none; color: var(--ivory); }
  .nav-list a:hover, .nav-list a[aria-current] { color: var(--gold-light); }
  .nav-cta { display: inline-flex; --btn-fg: var(--ivory); --btn-bd: rgba(228, 238, 248,.6); }
  .nav-cta:hover { --btn-bg: var(--ivory); --btn-fg: var(--ink); }
  .site-header.menu-open .wordmark { color: var(--ivory); position: relative; z-index: 60; }
  .site-header.menu-open .wordmark-sub { color: rgba(228, 238, 248,.7); }
  .site-header.menu-open { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- Главная: первый экран ---------- */
.hero { position: relative; padding: calc(var(--header-h) + clamp(2rem, 5vw, 4rem)) 0 clamp(4rem, 8vw, 6rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.eyebrow { color: var(--gold-text); margin-bottom: 1rem; }
.hero-tagline { font-size: .9rem; color: var(--text-muted); letter-spacing: .04em; margin-bottom: 1.75rem; }
.hero-tagline span { color: var(--gold); margin-inline: .35em; }
.hero-title {
  font-family: var(--display); font-weight: 700; color: var(--green);
  font-size: clamp(2.6rem, 1.5rem + 4vw, 4.9rem); line-height: 1.04; letter-spacing: -.015em;
  margin-bottom: 1.75rem; text-wrap: balance;
}
.hero-lead { max-width: 34rem; color: var(--text-muted); margin-bottom: 2.5rem; font-size: 1.06em; }
.hero-meta { margin-top: 2rem; font-size: .8rem; letter-spacing: .08em; color: var(--gold-text); }
.hero-meta span { margin-inline: .5em; opacity: .6; }

.framed { position: relative; isolation: isolate; }
.framed::after { content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; border: 1px solid var(--gold); z-index: -1; pointer-events: none; }
.hero-visual { justify-self: end; width: 100%; max-width: min(480px, 64svh); }
.hero-visual img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 40px 80px -40px rgba(74, 42, 22, .45); }
.hero-caption { display: flex; justify-content: space-between; margin-top: 2.1rem; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- Секции ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section-head { max-width: 48rem; margin-bottom: clamp(2.75rem, 5vw, 4.5rem); }
.section-head .section-title + p { margin-top: 1.5rem; color: var(--text-muted); max-width: 40rem; }
.on-dark .section-head .section-title + p { color: rgba(228, 238, 248, .82); }
.bg-deep { background: var(--ivory-deep); }
.bg-ink { background: var(--ink); color: var(--ivory); }
.bg-green { background: var(--green); color: var(--ivory); }

/* ---------- О бренде ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.about-text .section-title { margin-bottom: 2rem; }
.about-text .prose { margin-bottom: 2rem; }
.about-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.facts { display: grid; gap: .7rem; padding-top: 1.75rem; border-top: 1px solid var(--line-strong); color: var(--text-muted); font-size: .95rem; }
.facts li { display: grid; grid-template-columns: 1.4rem 1fr; }
.facts li::before { content: "—"; color: var(--gold); }

/* ---------- Цифры ---------- */
.numbers { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.numbers-list { display: grid; grid-template-columns: repeat(4, 1fr); }
.number-item { padding: 1rem clamp(1rem, 2.5vw, 2.25rem); border-left: 1px solid var(--line-light); display: flex; flex-direction: column; gap: .9rem; }
.number-item:first-child { border-left: 0; padding-left: 0; }
.number-value { font-family: var(--display); font-weight: 700; font-size: clamp(2.8rem, 1.8rem + 3vw, 4.4rem); line-height: 1; white-space: nowrap; font-variant-numeric: lining-nums; }
.number-value sup { color: var(--gold-light); font-size: .5em; vertical-align: .9em; margin-left: .05em; }
.number-value small { font-size: .42em; font-weight: 400; color: var(--gold-light); margin-right: .15em; }
.number-label { font-size: .875rem; line-height: 1.55; color: rgba(228, 238, 248, .78); max-width: 15rem; }

/* ---------- Услуги (карточки-ссылки) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.service-card {
  position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 1rem;
  padding: clamp(1.75rem, 3.5vw, 3rem); text-decoration: none;
  border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
  transition: background-color .45s var(--ease);
}
.service-card:hover { background-color: rgba(98, 58, 33, .09); }
.service-card .kicker { color: var(--gold-text); }
.service-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 1.35rem + 1.2vw, 2.4rem); line-height: 1.1; color: var(--green); }
.service-desc { color: var(--text-muted); max-width: 30rem; }
.service-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; padding-top: 1.25rem; margin-top: .5rem; border-top: 1px solid var(--line); }
.price { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--ink); white-space: nowrap; }
.price small { font-family: var(--sans); font-weight: 500; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); margin-right: .45em; }
.service-more { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); display: inline-flex; gap: .5rem; }
.service-more span { transition: transform .4s var(--ease); }
.service-card:hover .service-more span { transform: translateX(6px); }

/* ---------- Преимущества ---------- */
.advantages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.advantage { padding-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.advantage-title { font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.2; color: var(--green); margin-bottom: .75rem; }
.advantage p { color: var(--text-muted); font-size: .95rem; }

/* ---------- Отзывы ---------- */
.reviews { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.reviews-side { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); }
.review { display: grid; gap: 1.5rem; padding-top: 2rem; border-top: 1px solid var(--line-light); }
.review-text { font-family: var(--display); font-weight: 400; font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); line-height: 1.55; color: var(--ivory); }
.review-main .review-text { font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem); }
.review-text::before { content: "«"; display: block; font-family: var(--display); font-weight: 700; font-size: 3.5rem; line-height: .6; color: var(--gold-light); margin-bottom: .9rem; }
.review-author { font-size: .85rem; color: rgba(228, 238, 248, .7); }
.review-author strong { display: block; font-weight: 600; color: var(--gold-light); letter-spacing: .04em; }
.reviews-foot { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Опыт ---------- */
.experience-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-strong); }
.exp-card { padding: clamp(1.75rem, 3.5vw, 3rem); display: flex; flex-direction: column; gap: .9rem; }
.exp-card + .exp-card { border-left: 1px solid var(--line-strong); }
.exp-card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; border-bottom: 1px solid var(--line-strong); }
.exp-card-wide + .exp-card { border-left: 0; }
.exp-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.exp-body { display: grid; gap: .9rem; }
.exp-card .kicker { color: var(--gold-text); }
.exp-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 1.35rem + 1.2vw, 2.5rem); line-height: 1.1; color: var(--green); }
.exp-card p:not(.kicker) { color: var(--text-muted); }

.companies { margin-top: clamp(3.5rem, 7vw, 5.5rem); overflow: hidden; }
.companies-title { color: var(--green); margin-bottom: 1.75rem; }
.companies-list { display: flex; flex-wrap: wrap; align-items: baseline; margin-left: -1.3em; font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 1rem + 1vw, 1.9rem); line-height: 1.6; color: var(--ink); }
.companies-list li { margin-left: 1.3em; white-space: nowrap; }
.companies-list li::before { content: "·"; display: inline-block; width: 1.3em; margin-left: -1.3em; text-align: center; color: var(--gold); }
.companies-note { margin-top: 1.5rem; font-size: .875rem; color: var(--text-muted); }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1px; margin-top: 3rem; background: var(--line); border: 1px solid var(--line); }
.logos[hidden] { display: none; }
.logos li { background: var(--ivory); display: grid; place-items: center; padding: 1.75rem 1.25rem; min-height: 110px; }
.logos img { max-height: 44px; width: auto; filter: grayscale(1); opacity: .7; transition: opacity .3s, filter .3s; }
.logos li:hover img { filter: none; opacity: 1; }

/* ---------- Контакты ---------- */
.contacts-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(3rem, 7vw, 7rem); align-items: end; }
.contacts .section-title { font-size: clamp(2.3rem, 1.5rem + 3vw, 4.2rem); margin-bottom: 1.75rem; }
.contacts-lead { color: rgba(228, 238, 248, .82); max-width: 36rem; margin-bottom: 2.5rem; }
.contact-list { border-top: 1px solid var(--line-light); }
.contact-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .35rem 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line-light); }
.contact-label { color: var(--gold-light); font-size: .7rem; }
.contact-value { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 1.05rem + .45vw, 1.4rem); text-decoration: none; overflow-wrap: break-word; min-width: 0; grid-column: 1 / -1; }
.contact-value-static { grid-column: 1; white-space: nowrap; }
.contact-label { grid-column: 1 / -1; }
a.contact-value { justify-self: start; background: linear-gradient(var(--gold), var(--gold)) left 95% / 0 1px no-repeat; transition: background-size .45s var(--ease), color .3s; }
a.contact-value:hover { background-size: 100% 1px; color: #FFFFFF; }
.copy-btn { font: 500 .66rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ivory); background: none; border: 1px solid var(--line-light); padding: .6rem .8rem; cursor: pointer; transition: border-color .3s; }
.copy-btn:hover { border-color: var(--gold); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--ink); color: rgba(228, 238, 248, .62); border-top: 1px solid var(--line-light); padding-block: 2.5rem; font-size: .8rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem 2rem; }
.footer-brand .wordmark-name { color: var(--ivory); font-size: 1.05rem; margin-right: .9rem; }
.footer-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.footer-nav a { text-decoration: none; color: rgba(228, 238, 248, .78); }
.footer-nav a:hover { color: var(--gold-light); }
.footer-legal { grid-column: 1 / -1; font-size: .72rem; color: rgba(228, 238, 248, .5); }

/* =========================================================
   Страницы услуг
   ========================================================= */
.page-hero { padding: calc(var(--header-h) + clamp(2rem, 5vw, 3.5rem)) 0 clamp(3.5rem, 7vw, 5.5rem); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .78rem; letter-spacing: .06em; color: var(--text-muted); margin-bottom: clamp(2rem, 4vw, 3rem); }
.breadcrumbs a { text-decoration: none; color: var(--green); }
.breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs span[aria-hidden] { color: var(--gold); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.page-title { font-family: var(--display); font-weight: 700; color: var(--green); font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.5rem); line-height: 1.05; letter-spacing: -.015em; margin-bottom: 1.5rem; text-wrap: balance; }
.page-lead { color: var(--text-muted); max-width: 34rem; margin-bottom: 2rem; font-size: 1.06em; }
.price-tag { display: inline-flex; align-items: baseline; gap: .6rem; padding: .9rem 0; margin-bottom: 2rem; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.price-tag .label { color: var(--gold-text); }
.price-tag strong { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); color: var(--ink); }
.page-visual img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Шаги (настоящая последовательность — нумерация уместна) */
.steps { display: grid; counter-reset: step; border-top: 1px solid var(--line-strong); }
.step { display: grid; grid-template-columns: minmax(4rem, 7rem) minmax(0, 1fr) minmax(0, 1.2fr); gap: 1rem clamp(1.5rem, 4vw, 3.5rem); padding: clamp(1.5rem, 3vw, 2.25rem) 0; border-bottom: 1px solid var(--line); counter-increment: step; align-items: baseline; }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); color: var(--gold); line-height: 1; }
.step-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.55rem); line-height: 1.2; color: var(--green); }
.step p { color: var(--text-muted); }
.on-dark .steps { border-top-color: var(--line-light); }
.on-dark .step { border-bottom-color: var(--line-light); }
.on-dark .step::before { color: var(--gold-light); }
.on-dark .step-title { color: var(--ivory); }
.on-dark .step p { color: rgba(228, 238, 248, .8); }

/* Форматы внутри страницы */
.formats { --fgap: clamp(2rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--fgap); border-top: 1px solid var(--line-strong); }
.format { position: relative; display: grid; grid-template-rows: auto auto auto 1fr; gap: 1rem; padding: 2.25rem 0 2.5rem; }
.format + .format::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--fgap) / -2); border-left: 1px solid var(--line); }
.format img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: .5rem; }
.format .kicker { color: var(--gold-text); }
.format-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 1.25rem + .8vw, 2rem); line-height: 1.1; color: var(--green); }
.format p { color: var(--text-muted); font-size: .97rem; }

/* Галерея */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.5rem, 1.2vw, 1rem); }
.gallery figure { overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .8s var(--ease); }
.gallery figure:hover img { transform: scale(1.03); }
.gallery .g-a { grid-column: span 7; }
.gallery .g-b { grid-column: span 5; }
.gallery .g-c { grid-column: span 4; }
.gallery .g-d { grid-column: span 4; }
.gallery .g-e { grid-column: span 4; }
.gallery .g-b img, .gallery .g-a img { aspect-ratio: auto; height: 100%; min-height: 100%; }
.gallery .g-a img { aspect-ratio: 7 / 5; }
.gallery figcaption { font-size: .75rem; color: var(--text-muted); margin-top: .5rem; }

/* Две колонки текста + выноска */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split .section-title { margin-bottom: 1.75rem; }
.note-box { padding: 1.75rem 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); display: grid; gap: .8rem; }
.note-box .kicker { color: var(--gold-text); }
.note-box p:not(.kicker) { font-family: var(--display); font-weight: 400; font-size: clamp(1.15rem, 1.05rem + .4vw, 1.4rem); line-height: 1.45; }
.bullet-list { display: grid; gap: .9rem; }
.bullet-list li { display: grid; grid-template-columns: 1.5rem 1fr; color: var(--text-muted); }
.bullet-list li::before { content: "—"; color: var(--gold); }
.on-dark .bullet-list li { color: rgba(228, 238, 248, .82); }

/* Другие услуги */
.other-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.other-services a { display: grid; gap: .5rem; padding: 1.75rem clamp(1rem, 2.5vw, 2rem) 1.75rem 0; text-decoration: none; border-bottom: 1px solid var(--line); transition: color .3s; }
.other-services a + a { padding-left: clamp(1rem, 2.5vw, 2rem); border-left: 1px solid var(--line); }
.other-services strong { font-family: var(--display); font-weight: 700; font-size: 1.35rem; color: var(--green); }
.other-services span { font-size: .85rem; color: var(--text-muted); }
.other-services a:hover strong { color: var(--ink); }

/* CTA-полоса */
.cta-band { text-align: left; }
.cta-band-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 2rem clamp(2rem, 6vw, 5rem); align-items: end; }
.cta-band .section-title { margin-bottom: 1.25rem; }
.cta-band p { color: rgba(228, 238, 248, .84); max-width: 36rem; }

/* ---------- Уведомление ---------- */
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 70; transform: translate(-50%, 1rem); background: var(--ivory); color: var(--ink); padding: .8rem 1.3rem; font-size: .85rem; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .numbers-list { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .number-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .advantages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero-grid, .page-hero-grid, .about-grid, .contacts-grid, .split, .reviews, .cta-band-inner { grid-template-columns: 1fr; }
  .hero-visual, .page-visual { justify-self: start; max-width: 440px; }
  .about-photo { max-width: 460px; }
  .services-grid { grid-template-columns: 1fr; }
  .formats { grid-template-columns: 1fr; }
  .format { padding: 2rem 0; border-bottom: 1px solid var(--line); }
  .format + .format::before { display: none; }
  .exp-card-wide { grid-template-columns: 1fr; }
  .step { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .step p { grid-column: 2; }
  .other-services { grid-template-columns: 1fr; }
  .other-services a, .other-services a + a { padding: 1.4rem 0; border-left: 0; }
  .gallery .g-a, .gallery .g-b { grid-column: span 12; }
  .gallery .g-c, .gallery .g-d, .gallery .g-e { grid-column: span 6; }
  .gallery .g-e { grid-column: span 12; }
  .gallery .g-b img { aspect-ratio: 4 / 3; height: auto; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .wordmark-name { font-size: 1.15rem; }
  .btn-row .btn, .hero .btn, .page-hero .btn, .cta-band .btn, .contacts .btn { width: 100%; }
  .framed::after { inset: .75rem -.75rem -.75rem .75rem; }
  .hero-visual, .page-visual { max-width: calc(100% - .75rem); }
  .numbers-list { grid-template-columns: 1fr; row-gap: 0; }
  .number-item, .number-item:first-child, .number-item:nth-child(3) { border-left: 0; padding: 1.6rem 0; border-top: 1px solid var(--line-light); flex-direction: row; align-items: baseline; gap: 1.25rem; }
  .number-item:first-child { border-top: 0; }
  .number-value { min-width: 8rem; font-size: 2.6rem; }
  .advantages { grid-template-columns: 1fr; }
  .experience-grid { grid-template-columns: 1fr; }
  .exp-card + .exp-card { border-left: 0; border-top: 1px solid var(--line-strong); }
  .exp-card-wide + .exp-card { border-top: 0; }
  .contact-item { grid-template-columns: 1fr auto; gap: .35rem 1rem; }
  .contact-label { grid-column: 1 / -1; }
  .contact-value, .contact-value-static { grid-column: 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .gallery .g-c, .gallery .g-d { grid-column: span 12; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .copy-btn, .toast { display: none !important; }
  .bg-ink, .bg-green, .site-footer { background: none !important; color: #000 !important; }
}

.section-note { margin-top: 2.5rem; }

/* =========================================================
   Новые блоки (октябрь 2026)
   ========================================================= */

/* ---------- Первый экран: маршруты, доверие, подсказка «листайте» ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.hero-grid { width: 100%; }
.hero-title { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4.3rem); margin-bottom: 1.5rem; }
.hero-lead { margin-bottom: 2.25rem; }

.hero-ribbon {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem;
  margin-bottom: 1.75rem; padding: .55rem 1rem .55rem .55rem;
  font-size: .85rem; line-height: 1.4; text-decoration: none; color: var(--ink);
  border: 1px solid var(--gold); transition: background-color .35s var(--ease);
}
.hero-ribbon:hover { background: rgba(98, 58, 33, .12); }
.hero-ribbon-tag { background: var(--green); color: var(--ivory); padding: .25rem .6rem; font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

.hero-routes-title { font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text); margin-bottom: .9rem; }
.hero-routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); max-width: 40rem; }
.route {
  display: flex; flex-direction: column; justify-content: space-between; gap: .9rem; height: 100%;
  padding: 1.1rem 1.25rem 1rem; text-decoration: none;
  border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.route-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.05rem, .98rem + .3vw, 1.22rem); line-height: 1.25; color: var(--green); }
.route-meta { display: flex; justify-content: space-between; font-size: .78rem; font-weight: 600; letter-spacing: .06em; color: var(--gold-text); }
.route-meta span { transition: transform .35s var(--ease); }
.route:hover { background: var(--green); }
.route:hover .route-title, .route:hover .route-meta { color: var(--ivory); }
.route:hover .route-meta span { transform: translateX(5px); }

.hero-proof { display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin-top: 1.75rem; font-size: .85rem; color: var(--text-muted); }
.hero-proof strong { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink); margin-right: .3rem; }

.scroll-cue { align-self: center; margin-top: clamp(1.5rem, 4vh, 3rem); display: flex; flex-direction: column; align-items: center; gap: .6rem; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; color: var(--gold-text); }
.scroll-cue-line { width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Услуги: что входит ---------- */
.service-incl { font-size: .88rem; line-height: 1.6; color: var(--text-muted); padding-left: .9rem; border-left: 2px solid var(--gold); }
.service-incl span { font-weight: 600; color: var(--ink); }
.price-unit { font-family: var(--sans); font-weight: 500; font-size: .62rem !important; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-left: .35em; }
.price-tag .price-unit { font-size: .7rem !important; }
.service-card .service-incl { margin-top: -.25rem; }
.price-note { max-width: 34rem; margin: -1rem 0 2rem; font-size: .9rem; color: var(--text-muted); padding-left: .9rem; border-left: 2px solid var(--gold); }

/* ---------- Групповые мастер-классы ---------- */
.mc-box { display: grid; gap: 1.25rem; padding: clamp(1.75rem, 3.5vw, 2.75rem); background: var(--ivory); border: 1px solid var(--line-strong); align-self: center; }
.mc-box .kicker { color: var(--gold-text); }
.mc-empty { font-family: var(--display); font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); line-height: 1.45; }
.mc-box .btn { justify-self: start; }
.mc-note { font-size: .88rem; color: var(--text-muted); }
.mc-list { display: grid; border-top: 1px solid var(--line); }
.mc-item { display: grid; gap: .2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.mc-date { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.mc-name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.mc-price { font-size: .88rem; color: var(--text-muted); }
.inline-link { color: var(--green); text-underline-offset: 3px; }
.on-dark .inline-link { color: var(--gold-light); }

/* ---------- Подарочный сертификат ---------- */
.gift-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.gift-card-wrap { position: relative; padding: 1.5rem 1.5rem 1.5rem 0; }
.gift-card {
  position: relative; aspect-ratio: 1.6 / 1; display: grid; grid-template-rows: auto auto 1fr auto; gap: .5rem;
  padding: clamp(1.5rem, 3.5vw, 2.5rem); color: var(--ivory);
  background: radial-gradient(120% 140% at 100% 0%, #7A4A2B 0%, var(--green) 45%, var(--green-deep) 100%);
  box-shadow: 0 40px 70px -35px rgba(74, 42, 22, .6); transform: rotate(-3deg);
}
.gift-card::before { content: ""; position: absolute; inset: .7rem; border: 1px solid rgba(201, 220, 240, .55); pointer-events: none; }
.gift-card-brand { font-family: var(--display); font-weight: 700; letter-spacing: .24em; font-size: clamp(.95rem, .85rem + .4vw, 1.2rem); }
.gift-card-label { font-size: .64rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-light); }
.gift-card-title { align-self: center; font-family: var(--display); font-style: italic; font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); line-height: 1.1; }
.gift-card-foot { display: flex; justify-content: space-between; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(228, 238, 248, .75); }
.gift-card-wrap::after { content: ""; position: absolute; inset: 0 0 0 1.5rem; border: 1px solid var(--gold); z-index: -1; }
.gift-grid .section-title { margin-bottom: 1.5rem; }
.gift-lead { color: var(--text-muted); max-width: 36rem; margin-bottom: 1.75rem; }
.gift-options { display: grid; border-top: 1px solid var(--line-strong); margin-bottom: 1.5rem; }
.gift-options li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.gift-options strong { font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--green); }
.gift-options span { font-size: .9rem; color: var(--text-muted); }
.gift-how { font-size: .92rem; color: var(--text-muted); margin-bottom: 1.75rem; max-width: 36rem; }

/* ---------- Отзывы ---------- */
.reviews-foot { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; }
.review-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq-grid .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 2rem); }
.faq { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1.35rem 0; cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.3; color: var(--green);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font-family: var(--sans); font-weight: 400; font-size: 1.6rem; line-height: 1; color: var(--gold); transition: transform .35s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--ink); }
.faq-item p { padding: 0 2.5rem 1.5rem 0; color: var(--text-muted); max-width: 46rem; }

/* ---------- Аромабар: цифра ---------- */
.side-stack { display: grid; gap: 2rem; }
.stat-box { display: flex; align-items: baseline; gap: 1.25rem; padding: 1.5rem 1.75rem; background: var(--ink); color: var(--ivory); }
.stat-value { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; white-space: nowrap; }
.stat-value small { font-size: .4em; font-weight: 400; color: var(--gold-light); margin-right: .15em; }
.stat-label { font-size: .9rem; line-height: 1.5; color: rgba(228, 238, 248, .8); }

/* ---------- Духи на заказ: шаги ---------- */
.steps-note { margin-top: 2rem; font-size: .9rem; color: rgba(228, 238, 248, .8); }

/* ---------- Аромамаркетинг: кейсы и подарки ---------- */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.case { display: grid; align-content: start; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.5rem); border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.case .kicker { color: var(--gold-text); }
.case-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 1.15rem + .7vw, 1.75rem); line-height: 1.15; color: var(--green); }
.case-dl { display: grid; gap: 1rem; margin: .5rem 0 0; }
.case-dl dt { font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); margin-bottom: .25rem; }
.case-dl dd { margin: 0; font-size: .93rem; color: var(--text-muted); }
.gift-carriers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; margin-top: 2rem; }
.gift-carriers li { display: grid; gap: .15rem; padding-top: 1rem; border-top: 1px solid var(--line-strong); }
.gift-carriers strong { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--green); }
.gift-carriers span { font-size: .88rem; color: var(--text-muted); }

/* ---------- Адаптив новых блоков ---------- */
@media (max-width: 1240px) { .nav-list { gap: 1.25rem; } .nav { gap: 1.5rem; } }
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .gift-grid, .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
  .gift-card-wrap { max-width: 460px; }
  .cases { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}
@media (max-width: 640px) {
  .hero-routes { grid-template-columns: 1fr; }
  .route { flex-direction: row; align-items: baseline; padding: 1rem; }
  .route-meta { flex: none; gap: .5rem; text-align: right; }
  .hero-proof { gap: .4rem 1.25rem; }
  .gift-carriers { grid-template-columns: 1fr; }
  .stat-box { flex-direction: column; gap: .6rem; }
  .faq-item p { padding-right: 0; }
  .mc-box .btn, .gift-grid .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .scroll-cue-line { animation: none; } }
.hero { padding-top: calc(var(--header-h) + clamp(1.25rem, 3vw, 2.5rem)); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.hero-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 5rem); }
.hero-title { font-size: clamp(2.2rem, 1.3rem + 2.8vw, 3.7rem); line-height: 1.06; }
.hero-lead { max-width: 38rem; margin-bottom: 1.75rem; }
.hero-routes { max-width: 44rem; }
.hero-visual { max-width: min(420px, 58svh); }
.ribbon-short { display: none; }
@media (max-width: 640px) {
  .ribbon-long { display: none; }
  .ribbon-short { display: inline; }
  .hero-ribbon { flex-wrap: nowrap; }
}
.hero-title { font-size: clamp(2.2rem, 1.3rem + 2.4vw, 3.4rem); text-wrap: pretty; }
.route { gap: .45rem; padding: .85rem 1.1rem .8rem; }
.hero-proof { margin-top: 1.4rem; }
/* Фото на первом экране показываем и на телефоне */
@media (max-width: 900px) { .hero-visual { display: block; margin-top: 1rem; } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { max-width: 440px; } }
@media (max-width: 640px) { .hero-visual { max-width: calc(100% - .75rem); } }

/* ---------- Видео в блоке «О бренде» ---------- */
.about-video { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.75rem, 4vw, 4rem); align-items: center; margin-top: clamp(3.5rem, 7vw, 6rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line-strong); }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--ink); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; display: block; }
.video-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: opacity .4s var(--ease), transform .8s var(--ease); }
.video-poster:hover img { opacity: 1; transform: scale(1.02); }
.video-play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--ivory); box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); transition: background-color .35s var(--ease); }
.video-play::after { content: ""; position: absolute; left: 53%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--green); }
.video-poster:hover .video-play { background: var(--gold-light); }
.video-caption { display: grid; gap: .9rem; }
.video-caption .kicker { color: var(--gold-text); }
.video-caption strong { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 1.15rem + .9vw, 2rem); line-height: 1.15; color: var(--green); }
.video-caption > span:not(.kicker) { color: var(--text-muted); }
.video-caption .text-link { justify-self: start; margin-top: .5rem; }
@media (max-width: 900px) { .about-video { grid-template-columns: 1fr; } .video-play { width: 64px; height: 64px; } }
.video-play { left: 22%; top: 62%; }
.video-alt { justify-self: start; font-size: .82rem; color: var(--text-muted); text-underline-offset: 3px; }
.video-alt:hover { color: var(--green); }

/* ---------- Аромабар: недавние события ---------- */
.event-cases { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.event-case { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.75rem, 4vw, 4rem); align-items: center; padding-bottom: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line-strong); }
.event-case:last-child { border-bottom: 0; padding-bottom: 0; }
.event-case-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.event-case-body { display: grid; gap: 1rem; }
.event-case-body .kicker { color: var(--gold-text); }
.event-case-body p:not(.kicker) { color: var(--text-muted); }
.event-case-body .text-link { justify-self: start; }
.event-case-credit { font-size: .78rem; }
@media (max-width: 900px) { .event-case { grid-template-columns: 1fr; } }
.gallery .g-f, .gallery .g-g, .gallery .g-h { grid-column: span 4; }
@media (max-width: 900px) { .gallery .g-f, .gallery .g-g { grid-column: span 6; } .gallery .g-h { grid-column: span 12; } }
@media (max-width: 640px) { .gallery .g-f, .gallery .g-g { grid-column: span 12; } }
.mc-photo { margin-top: 2rem; } .mc-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery .g-i, .gallery .g-j, .gallery .g-k { grid-column: span 4; }
@media (max-width: 900px) { .gallery .g-i, .gallery .g-j { grid-column: span 6; } .gallery .g-k { grid-column: span 12; } }
@media (max-width: 640px) { .gallery .g-i, .gallery .g-j { grid-column: span 12; } }
.gift-photo { margin-bottom: 1.75rem; max-width: 420px; } .gift-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.exp-photo-tall { max-width: 460px; }
.exp-photo-tall img { aspect-ratio: 4 / 5; }
.exp-links { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; margin-top: .75rem; }
/* Логотип «Парфюмер Карелина» длиннее прежнего — чуть плотнее разрядка */
.wordmark-name { letter-spacing: .1em; }
.wordmark-sub { letter-spacing: .22em; }
.footer-brand .wordmark-name { letter-spacing: .12em; }
.gift-card-brand { letter-spacing: .16em; }
@media (max-width: 640px) { .wordmark-name { font-size: 1.02rem; letter-spacing: .06em; } .wordmark-sub { font-size: .56rem; letter-spacing: .14em; } }
.wordmark { white-space: nowrap; flex: none; }
.nav-list a { white-space: nowrap; }
.nav-cta { white-space: nowrap; }
@media (max-width: 1280px) and (min-width: 901px) { .nav-list { gap: 1rem; } .nav { gap: 1.25rem; } .nav-list a { letter-spacing: .08em; } }
@media (max-width: 1180px) and (min-width: 901px) { .nav-cta { display: none; } }

/* ---------- Палитра parfumer.karelina: уточнения ---------- */
@media screen { .bg-green { background: var(--green-deep) !important; } }
body { font-size: clamp(1.05rem, 1rem + .25vw, 1.125rem); letter-spacing: .005em; }
.wordmark-name, .footer-brand .wordmark-name, .gift-card-brand { letter-spacing: .02em !important; text-transform: none; }
.wordmark-name { font-size: 1.45rem; }
@media (max-width: 640px) { .wordmark-name { font-size: 1.2rem; letter-spacing: .01em !important; } }

/* ---------- Реквизиты ИП ---------- */
.footer-requisites { grid-column: 1 / -1; font-size: .8rem; color: rgba(228, 238, 248, .72); }
.footer-requisites a { color: inherit; }
.contact-legal { grid-column: 1 / -1; font-size: .95rem; line-height: 1.6; color: rgba(228, 238, 248, .85); }

/* ---------- Кнопки «Назад» и «Наверх» ---------- */
.page-tools {
  position: fixed; z-index: 75;
  right: calc(1rem + env(safe-area-inset-right, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  display: flex; gap: .5rem; align-items: center;
}
.page-tool {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-width: 48px; min-height: 48px; padding: 0 1rem;
  font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--ivory); background: var(--ink);
  border: 1px solid var(--ink); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .45);
  transition: background-color .3s var(--ease), color .3s var(--ease), opacity .35s var(--ease), transform .35s var(--ease), visibility 0s;
}
.page-tool span[aria-hidden] { font-size: 1.05rem; letter-spacing: 0; line-height: 1; }
.page-tool:hover { background: var(--ivory); color: var(--ink); }
.page-tool:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.page-tool-top.is-hidden { opacity: 0; transform: translateY(8px); visibility: hidden; pointer-events: none; transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s; }
@media (max-width: 640px) {
  .page-tool { padding: 0 .85rem; }
  .page-tool-top .page-tool-text { display: none; }
  .page-tool-top { padding: 0; width: 48px; }
}
@media print { .page-tools { display: none !important; } }

/* ---------- Шаги без нумерации («Как это работает» на странице «Духи на заказ») ---------- */
.steps-plain { list-style: none; margin: 0; padding: 0; }
.steps-plain .step { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.steps-plain .step::before { content: none; display: none; }
@media (max-width: 900px) {
  .steps-plain .step { grid-template-columns: 1fr; }
  .steps-plain .step p { grid-column: 1; }
}
.note-box p + p { margin-top: .75rem; }
.page-tool { border-color: rgba(228, 238, 248, .6); }

/* ---------- Окно выбора мессенджера ---------- */
.contact-dialog {
  width: min(28rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem);
  padding: clamp(1.75rem, 5vw, 2.5rem); border: 1px solid var(--line-strong); border-radius: 0;
  background: var(--ivory); color: var(--ink); font-family: var(--sans);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
}
.contact-dialog::backdrop { background: rgba(40, 24, 14, .55); }
.contact-dialog[open] { animation: dialog-in .3s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.contact-dialog-close {
  position: absolute; top: .5rem; right: .5rem; width: 44px; height: 44px;
  background: none; border: 0; color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.contact-dialog-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 .6rem; }
.contact-dialog-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 1.3rem + .8vw, 1.9rem); line-height: 1.15; margin: 0 2rem 1.5rem 0; color: var(--green); }
.contact-dialog-options { display: grid; gap: .75rem; }
.contact-option {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .15rem 1rem;
  padding: 1rem 1.25rem; min-height: 64px; text-decoration: none;
  background: var(--ink); color: var(--ivory); border: 1px solid var(--ink);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.contact-option-name { font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.contact-option-handle { grid-column: 1; font-size: .85rem; opacity: .8; }
.contact-option-arrow { grid-column: 2; grid-row: 1 / span 2; font-size: 1.3rem; }
.contact-option:hover { background: transparent; color: var(--ink); }
.contact-option:focus-visible, .contact-dialog-close:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.contact-dialog-note { margin: 1.25rem 0 0; font-size: .95rem; color: var(--text-muted); }
.contact-dialog-note a { color: var(--ink); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .contact-dialog[open] { animation: none; } }

/* ---------- Аватарка рядом с названием в шапке ---------- */
.site-header .wordmark { display: inline-grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: .75rem; align-items: center; }
.site-header .wordmark-name { grid-column: 1; grid-row: 1; }
.site-header .wordmark-sub { grid-column: 1; grid-row: 2; }
.wordmark-avatar {
  grid-column: 2; grid-row: 1 / span 2; align-self: center;
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: block;
  border: 1px solid var(--line-strong); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .45);
}
@media (max-width: 640px) { .wordmark-avatar { width: 38px; height: 38px; } .site-header .wordmark { column-gap: .6rem; } }

/* ---------- Компании: сетка плашек под логотипы ---------- */
.clients {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong);
}
.client {
  position: relative; display: grid; place-items: center; text-align: center;
  min-height: clamp(110px, 11vw, 150px); padding: 1.25rem 1rem; background: var(--ivory);
  transition: background-color .4s var(--ease);
}
.client:hover { background: var(--ivory-deep); }
.client-name {
  font-family: var(--display); font-weight: 700; color: var(--ink);
  font-size: clamp(1.05rem, .9rem + .55vw, 1.4rem); line-height: 1.2; letter-spacing: .01em;
  text-wrap: balance;
}
/* Логотип: окрашивается в цвет текста через маску, поэтому все знаки выглядят единообразно */
.client-logo {
  display: block; width: min(150px, 78%); height: 52px; background-color: var(--ink);
  -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  opacity: .85; transition: opacity .3s var(--ease);
}
.client.has-logo:hover .client-logo { opacity: 1; }
.client.has-logo .client-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.client-cta { background: var(--ink); }
.client-cta:hover { background: var(--green-deep); }
.client-cta a { display: grid; gap: .45rem; place-items: center; width: 100%; height: 100%; padding: .5rem; text-decoration: none; color: var(--ivory); }
.client-cta-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.05rem, .9rem + .55vw, 1.4rem); }
.client-cta-text { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.client-cta a:focus-visible { outline: 2px solid var(--ivory); outline-offset: -6px; }
@media (max-width: 900px) { .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client { min-height: 96px; padding: 1rem .75rem; }
}

.client-logo { width: min(170px, 74%); height: 58px; }
@media (max-width: 640px) { .client-logo { width: 80%; height: 48px; } }
.client-logo { width: var(--lw, min(170px, 74%)); height: var(--lh, 58px); max-width: 190px; }
@media (max-width: 640px) { .client-logo { height: calc(var(--lh, 58px) * .82); max-width: 88%; } }

/* ---------- Фото в блоках страниц услуг ---------- */
.photo-tall { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.process-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.process-photo { margin: 0; position: sticky; top: calc(var(--header-h, 76px) + 1.5rem); }
.inline-photo { margin: 2rem 0 0; max-width: 420px; }
@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-photo { position: static; max-width: 440px; }
}

/* ---------- Заголовок блока с фото рядом («Как готовится аромабар») ---------- */
.head-with-photo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.head-with-photo .section-head { margin-bottom: 0; }
.head-photo { margin: 0; }
.head-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 62%; display: block; }
@media (max-width: 900px) {
  .head-with-photo { grid-template-columns: 1fr; }
  .head-photo { max-width: 520px; }
}

/* Галерея аромабара: первое фото во всю ширину */
.gallery .g-wide { grid-column: span 12; }
.gallery .g-wide img { aspect-ratio: 16 / 7; }
@media (max-width: 640px) { .gallery .g-wide img { aspect-ratio: 4 / 3; } }

.gallery .g-v { grid-column: span 4; }
.gallery .g-v img { aspect-ratio: 4 / 5; }
@media (max-width: 640px) { .gallery .g-v { grid-column: span 12; } }

/* ---------- Круглое фото у заголовка на телефоне ---------- */
.hero-avatar { display: none; }
@media (max-width: 900px) {
  .hero-avatar {
    display: block; float: right; shape-outside: circle(50%);
    width: clamp(108px, 30vw, 170px); height: auto; aspect-ratio: 1; object-fit: cover;
    border-radius: 50%; margin: .4rem 0 .75rem 1rem;
    border: 1px solid var(--line-strong); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .5);
  }
  .hero-routes-title { clear: both; }
}
@media (max-width: 520px) {
  .hero-avatar { width: clamp(96px, 27vw, 130px); margin-left: .75rem; }
  .hero-title { font-size: clamp(1.85rem, 8.2vw, 2.35rem); }
}

/* ---------- Первый экран: фото по высоте заголовка и описания, «Что вы ищете?» на всю ширину ---------- */
.hero-grid { grid-template-areas: "ribbon ribbon" "text visual" "bottom bottom"; align-items: stretch; row-gap: 0; }
.hero-ribbon { grid-area: ribbon; justify-self: start; }
.hero-text { grid-area: text; display: flex; flex-direction: column; justify-content: center; }
.hero-text .hero-lead { margin-bottom: 0; }
.hero-visual { grid-area: visual; align-self: stretch; justify-self: stretch; max-width: none; width: 100%; }
.hero-visual .framed { height: 100%; }
.hero-visual img { height: 100%; min-height: 260px; aspect-ratio: auto; object-fit: cover; object-position: 50% 38% !important; }
.hero-bottom { grid-area: bottom; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.hero-bottom .hero-routes { max-width: none; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 901px) {
  .hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, .75fr); }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .hero-bottom .hero-routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "ribbon" "text" "bottom" "visual"; }
  .hero-text { display: block; }
  .hero-text .hero-lead { margin-bottom: 0; }
  .hero-bottom { margin-top: 2rem; }
  .hero-bottom .hero-routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-visual { justify-self: start; max-width: 440px; margin-top: 2.5rem; }
  .hero-visual .framed, .hero-visual img { height: auto; }
  .hero-visual img { aspect-ratio: 4 / 5; object-position: 50% 80% !important; }
}
@media (max-width: 640px) {
  .hero-bottom .hero-routes { grid-template-columns: 1fr; }
  .hero-visual { max-width: calc(100% - .75rem); }
}
@media (min-width: 901px) {
  .hero-visual { position: relative; min-height: 280px; }
  .hero-visual .framed { position: absolute; inset: 0; }
  .hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; }
}

/* ---------- Первый экран: фото целиком, от плашки «К Новому году» до конца описания ---------- */
@media (min-width: 901px) {
  .hero-grid { grid-template-areas: "ribbon visual" "text visual" "bottom bottom"; }
  .hero-visual { position: relative; min-height: 0; }
  .hero-visual .framed { position: absolute; top: 0; bottom: 0; right: 0; left: auto; height: 100%; width: auto; aspect-ratio: 853 / 1280; }
  .hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50% !important; }
}

/* ---------- Первый экран: фото масштабируется вместе с экраном (целиком, без обрезки) ---------- */
@media (min-width: 901px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .hero-visual { position: static; align-self: start; justify-self: end; width: auto; }
  .hero-visual .framed { position: relative; inset: auto; height: auto; aspect-ratio: 853 / 1280;
    width: clamp(240px, min(24vw, 36svh), 520px); }
  .hero-visual img { position: static; width: 100%; height: 100%; object-fit: cover; }
  .hero-text { align-self: center; }
}

/* ---------- Цена групповых мастер-классов ---------- */
.mc-price { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin: 0; }
.mc-price-value { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 1.5rem + 1vw, 2.4rem); line-height: 1; color: var(--ink); }
.mc-price-value small { font-size: .45em; font-weight: 400; margin-right: .3em; color: var(--gold-text); letter-spacing: .1em; text-transform: uppercase; }
.mc-price-unit { font-size: .9rem; color: var(--text-muted); }
.mc-prices { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mc-prices li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.mc-prices strong { font-family: var(--display); font-weight: 700; color: var(--ink); }
@media (max-width: 900px) { .site-header.menu-open ~ .page-tools { display: none; } }

/* ---------- Фото в карточке «Авторская работа» ---------- */
.exp-card-photo { margin: 0 0 .5rem; }
.exp-card-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.exp-card-photo figcaption { margin-top: .6rem; font-size: .8rem; color: var(--text-muted); }
.experience-grid > .exp-card:not(.exp-card-wide):not(:has(.exp-card-photo)) { justify-content: center; }
