/* Шрифты лежат на сайте, без Google Fonts (быстрее и без передачи данных в Google) */
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300; font-display: swap; src: url(fonts/cormorant-garamond-cyrillic-italic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300; font-display: swap; src: url(fonts/cormorant-garamond-latin-italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/cormorant-garamond-cyrillic-italic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/cormorant-garamond-latin-italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/cormorant-garamond-cyrillic-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/cormorant-garamond-latin-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/cormorant-garamond-cyrillic-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/cormorant-garamond-latin-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/manrope-cyrillic-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 300; font-display: swap; src: url(fonts/manrope-latin-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/manrope-cyrillic-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/manrope-latin-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/manrope-cyrillic-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/manrope-latin-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* SERENITY — общие стили */
:root {
  --bg: #F5F1EB;
  --bg-soft: #EFE8DE;
  --card: #FFFDF9;
  --ink: #2F2B28;
  --muted: #6B625B;
  --line: rgba(47, 43, 40, 0.12);
  --accent: #b66a71;
  --accent-dark: #9d5960;
  --accent-text: #985660; /* для мелкого текста — контрастнее */
  --dark: #1F1C1A;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 8px;
  text-decoration: none; font-size: 14px; transition: top .2s;
}
.skip:focus { top: 16px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.15; }

.tag {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 18px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 42px;
  border-radius: 999px;
  background: #a85c64; /* чуть темнее акцента: белый текст с контрастом 4.8:1 */
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .3s ease, background .3s ease;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-breathe { animation: breathe 4.5s ease-in-out 2.5s infinite; }
.btn-breathe:hover { animation-play-state: paused; }
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(182, 106, 113, 0.55), 0 0 0 0 rgba(182, 106, 113, 0); transform: scale(1); }
  50%      { box-shadow: 0 0 0 10px rgba(182, 106, 113, 0), 0 0 36px 6px rgba(182, 106, 113, 0.45); transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-breathe { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Навигация ---------- */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 5%;
  background: rgba(245, 241, 235, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  transform: translateY(-100%);
  transition: transform .4s ease;
}
.topnav.show, .topnav.static { transform: none; }
.logo {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.42em;
  color: var(--ink);
  text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color .3s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.nav-cta { color: var(--accent-text); font-weight: 500; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* цвет панели (r g b) и текста — задаются темой ниже */
  --hp: 26 23 20;
  --h-ink: #fff;
  --h-sub: rgba(255,255,255,.92);
  --h-faint: rgba(255,255,255,.7);
  --h-shadow: rgba(0,0,0,.3);
  color: var(--h-ink);
  background: rgb(var(--hp));
}
/* А: кремовый фон, тёмный текст */
.hero.theme-cream {
  --hp: 245 241 235;
  --h-ink: #2F2B28;
  --h-sub: #514943;
  --h-faint: #6B625B;
  --h-shadow: transparent;
}
/* Б: глубокий сине-зелёный — цвет воды озера */
.hero.theme-teal {
  --hp: 24 55 61;
  --h-sub: rgba(245,241,235,.9);
  --h-faint: rgba(245,241,235,.7);
  --h-shadow: rgba(10,30,34,.35);
}
.hero-media { position: absolute; inset: 0; }
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.22) 50%, rgba(0,0,0,.05) 100%),
    linear-gradient(0deg, rgba(0,0,0,.25) 0%, transparent 40%);
  pointer-events: none;
}
.hero-brand {
  position: absolute;
  top: 40px; left: 0; right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero-brand span:first-child {
  text-shadow: 0 1px 10px var(--h-shadow);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.42em;
  margin-right: -0.42em;
  color: var(--h-sub);
}
.hero-rule { display: flex; align-items: center; gap: 14px; }
.hero-rule i { display: block; width: 44px; height: 1px; background: currentColor; opacity: .35; }
.hero-rule { color: var(--h-faint); }
.hero-rule b { display: block; width: 5px; height: 5px; transform: rotate(45deg); background: currentColor; }
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 120px 7vw 80px;
}
.hero-text { max-width: 600px; }
.hero h1 {
  font-style: italic;
  font-weight: 300;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px var(--h-shadow);
}
.hero h1 span { display: block; }
.hero-sub {
  margin-top: 32px;
  max-width: 440px;
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 400;
  line-height: 1.7;
  color: var(--h-sub);
  text-shadow: 0 1px 12px var(--h-shadow);
}
.hero .btn { margin-top: 40px; }
.hero-caption {
  margin-top: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--h-faint);
}
.hero-caption .line { width: 32px; height: 1px; background: currentColor; opacity: .45; }

/* Первый экран подстраивается под пропорции окна, чтобы текст не ложился на лицо:
   — квадратное или горизонтальное окно: текст слева, фото колонкой справа;
   — вертикальное: лицо сверху, текст снизу (правила для телефонов — ниже). */
@media (min-width: 680px) and (min-aspect-ratio: 1/1) {
  .hero-media {
    left: auto; width: 58%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 12%, rgba(0,0,0,.75) 26%, #000 42%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 12%, rgba(0,0,0,.75) 26%, #000 42%);
  }
  .hero-bg { object-position: 50% 30%; }
  .hero-shade { display: none; }
  .hero-brand { left: 7vw; right: auto; align-items: flex-start; }
  .hero-text { max-width: min(600px, 47vw); }
  .hero h1 { font-size: clamp(40px, 5.4vw, 84px); }
  .hero-sub { max-width: min(440px, 38vw); }
}
/* низкие горизонтальные окна (телефон боком): всё влезает в один экран вместе с кнопкой */
@media (min-aspect-ratio: 1/1) and (max-height: 520px) {
  .hero-inner { padding-top: 84px; padding-bottom: 28px; }
  .hero-brand { top: 22px; }
  .hero h1 { font-size: clamp(30px, 8.5vh, 56px); }
  .hero-sub { margin-top: 14px; font-size: 15px; line-height: 1.6; }
  .hero .btn { margin-top: 20px; }
  .hero-caption { display: none; }
}
/* вертикальные планшеты и окна: фото прижато к верху, текст внизу на затемнении */
@media (min-width: 641px) and (max-aspect-ratio: 999/1000) {
  .hero { align-items: flex-end; }
  .hero-bg { object-position: 60% 0; }
  .hero-shade { background: linear-gradient(0deg, rgb(var(--hp)) 0%, rgb(var(--hp)) 30%, rgb(var(--hp) / .8) 44%, rgb(var(--hp) / 0) 64%); }
  .hero-inner { padding-bottom: 64px; }
  .hero-caption { display: none; }
}

/* ровные переносы: без одиноких слов на последней строке */
h1, h2, h3, .quote blockquote, .quote-text { text-wrap: balance; }
p, li, summary { text-wrap: pretty; }

/* ---------- Общая обёртка секций ---------- */
.section { padding: 120px 6%; }
.wrap { max-width: 1160px; margin: 0 auto; }
.center { text-align: center; }
.h2 { font-size: clamp(34px, 4.6vw, 54px); }

/* ---------- Боль ---------- */
.pain .h2 { max-width: 760px; margin: 0 auto 64px; }
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: left;
}
.pain-card {
  position: relative;
  padding: 44px 36px 40px;
  background: var(--card);
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(47, 43, 40, .05);
  transition: transform .4s ease;
}
.pain-card:hover { transform: translateY(-4px); }
.pain-card::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--accent);
  margin-bottom: 24px;
}
.pain-card p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 23px;
  line-height: 1.45;
  color: var(--ink);
}

/* ---------- Цитата ---------- */
.quote {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 6%;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.quote blockquote, .quote figure { margin: 0; }
.quote::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(245,241,235,.88) 0%, rgba(245,241,235,.72) 50%, rgba(245,241,235,.9) 100%);
}
.quote-inner { position: relative; max-width: 780px; }
.quote-text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.35;
  color: var(--ink);
}
.quote-author {
  display: inline-block;
  margin-top: 32px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6f3a42;
}
/* фото слева без рамки: края растворяются в тумане */
.quote.with-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4vw;
  padding: 0 7% 0 0;
  text-align: left;
}
.quote-photo { position: relative; align-self: stretch; }
.quote-photo img {
  display: block; width: 100%; height: 100%; min-height: 560px; max-height: 860px;
  object-fit: cover; object-position: 40% 18%;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 58%, transparent 98%), linear-gradient(to bottom, transparent 0%, #000 16%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, #000 0%, #000 58%, transparent 98%), linear-gradient(to bottom, transparent 0%, #000 16%, #000 78%, transparent 100%);
  mask-composite: intersect;
}
.quote.with-photo .quote-inner { max-width: 560px; padding: 90px 0; }

/* ---------- Триптих ---------- */
.benefits { background: var(--card); }
.benefits .h2 { margin-bottom: 80px; }
.benefit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
}
.benefit + .benefit { margin-top: 0; }
.benefit-img { position: relative; height: 600px; overflow: hidden; }
.benefit-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.benefit:hover .benefit-img img { transform: scale(1.03); }
.benefit-text { padding: 60px 8%; }
.benefit.rev .benefit-img { order: 2; }
.benefit-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 18px;
}
.benefit-text h3 { font-size: clamp(30px, 3vw, 40px); margin-bottom: 22px; }
.benefit-text p { font-size: 17px; color: var(--muted); max-width: 440px; }

/* ---------- О себе ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 90px;
  align-items: start;
}
.about-photos { order: 2; }
.about-photos { position: relative; padding-bottom: 90px; }
.about-photos.single { padding-bottom: 22px; }
.about-photo { position: relative; }
.about-photo::before {
  content: '';
  position: absolute;
  top: 22px; left: 22px; right: -22px; bottom: -22px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  z-index: -1;
}
/* кадр целиком — со столиком, кофе и канноли */
.about-photo img { display: block; width: 100%; height: auto; border-radius: 4px; }
.about-photo2 {
  position: absolute;
  right: -40px; bottom: 0;
  width: 46%;
  border: 8px solid var(--bg);
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0,0,0,.12);
}
/* тёплая подложка, пока фото догружается */
.hero-bg, .benefit-img img, .about-photo img, .about-photo2 img { background: #e8e0d5; }
.about-photo2 img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 25%; }
.about-text h2 { font-size: clamp(36px, 4vw, 50px); margin-bottom: 32px; }
.about-text p { font-size: 17px; color: var(--muted); margin-bottom: 20px; }
.about-text .closing {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 12px;
}
.signature { display: flex; align-items: center; min-height: 60px; }
.sig-img { display: block; width: 230px; max-width: 100%; height: auto; }
.sig-img.missing { display: none; }
.sig-text {
  display: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  color: var(--accent);
}
.sig-img.missing + .sig-text, .sig-text.sig-only { display: block; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-soft); }
.faq .h2 { margin-bottom: 56px; }
.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary, .faq-q {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 4px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q-text { font: inherit; letter-spacing: inherit; }
.faq-plus { position: relative; flex: 0 0 18px; height: 18px; }
.faq-plus::before, .faq-plus::after {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 18px; height: 1px; background: var(--accent);
  transition: transform .3s ease;
}
.faq-plus::after { transform: rotate(90deg); }
details[open] .faq-plus::after { transform: rotate(0); }
.faq-a { padding: 0 4px 28px; font-size: 17px; color: var(--muted); max-width: 680px; }

/* ---------- Финальный CTA ---------- */
.cta { background: var(--dark); color: #F5F1EB; text-align: center; padding: 140px 6%; }
.cta h2 { font-style: italic; font-weight: 300; font-size: clamp(36px, 5vw, 58px); margin-bottom: 24px; }
.cta p { max-width: 560px; margin: 0 auto 44px; font-size: 18px; color: rgba(245,241,235,.82); }
/* фото полосой между текстом и кнопкой, мягко уходит в тёмный фон сверху и снизу */
.cta-photo { max-width: 980px; margin: -8px auto 36px; }
.cta-photo img {
  display: block; width: 100%; height: clamp(300px, 40vw, 480px);
  object-fit: cover; object-position: 50% 10%;
  background: var(--dark);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 72%, transparent 100%), linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 72%, transparent 100%), linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-composite: intersect;
}

.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-bottom: 14px; }
.footer-links a { color: rgba(245,241,235,.75); text-decoration: none; letter-spacing: .08em; }
.footer-links a:hover { color: #fff; }
footer.site-footer {
  padding: 40px 6%;
  background: #171513;
  color: rgba(245,241,235,.62);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ---------- Плавное появление ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Музыка ---------- */
.music-btn {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 40;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(182, 106, 113, .92);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transition: transform .3s ease;
}
.music-btn:hover { transform: scale(1.08); }
.music-btn svg { width: 24px; height: 24px; }
.music-btn .bar { transform-origin: center; }
.music-btn.playing .bar { animation: wave 1.2s ease-in-out infinite; }
.music-btn.playing .bar:nth-child(2) { animation-delay: .2s; }
.music-btn.playing .bar:nth-child(3) { animation-delay: .4s; }
.music-btn.playing .bar:nth-child(4) { animation-delay: .6s; }
@keyframes wave { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
.music-tip {
  position: fixed;
  right: 24px; bottom: 86px;
  z-index: 40;
  background: rgba(255,255,255,.95);
  color: var(--muted);
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.music-btn:hover + .music-tip { opacity: 1; }
#yt-player { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .pain-grid { grid-template-columns: 1fr; gap: 18px; max-width: 560px; margin: 0 auto; }
  .benefit, .benefit.rev { grid-template-columns: 1fr; }
  .benefit.rev .benefit-img { order: 0; }
  .benefit-img { height: 380px; }
  .benefit-text { padding: 44px 6% 64px; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-photos { order: 0; max-width: 420px; margin: 0 auto; width: 88%; }
  .about-photo2 { right: -24px; }
}

@media (max-width: 640px) {
  .section { padding: 84px 20px; }
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .topnav { padding: 14px 20px; }

  .hero { align-items: flex-end; }
  .hero-bg { object-position: 58% 15%; }
  .hero-shade { display: none; }
  .hero-brand { top: 28px; }
  .hero-inner { padding: 120px 22px 56px; }
  /* курсив на мобильном — чуть плотнее и с тенью для читаемости на ярком свету */
  .hero h1 { font-weight: 400; font-size: clamp(40px, 11.5vw, 52px); }
  .hero-sub { font-size: 16px; font-weight: 400; margin-top: 22px; }
  .hero .btn { margin-top: 30px; }
  .hero-caption { margin-top: 36px; padding-right: 56px; letter-spacing: .16em; white-space: nowrap; }
  .hero-caption .line { display: none; }

  .pain .h2 { margin-bottom: 40px; }
  .pain-card { padding: 34px 26px 30px; }
  .pain-card p { font-size: 21px; }
  .quote { background-attachment: scroll; background-image: var(--bg-sm); min-height: 60vh; padding: 90px 22px; }
  .quote.with-photo { grid-template-columns: 1fr; gap: 0; padding: 0 22px 84px; text-align: center; }
  .quote-photo { margin: 0 -22px; }
  .quote-photo img { height: 112vw; min-height: 0; max-height: 560px; object-position: 38% 12%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 66%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 66%, transparent 100%); }
  .quote.with-photo .quote-inner { padding: 0; margin-top: -16px; }
  .benefits .h2 { margin-bottom: 48px; }
  .benefit-img { height: 300px; }
  .benefit-text { padding: 36px 20px 56px; }
  .benefits.section { padding-left: 0; padding-right: 0; }
  .benefits .center { padding: 0 20px; }
  .faq-item summary, .faq-q { font-size: 21px; padding: 22px 2px; }
  .cta { padding: 100px 22px; }
  .cta-photo { margin: -12px -22px 28px; }
  .cta-photo img { height: 82vw; max-height: 420px; object-position: 50% 4%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 76%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 76%, transparent 100%); }
  .music-btn { right: 16px; bottom: 16px; width: 46px; height: 46px; }
  /* телефон: мелкий текст крупнее, области нажатия не меньше 44 px */
  .tag { font-size: 12.5px; }
  .benefit-label, .quote-author { font-size: 13px; }
  .nav-links a, .logo { padding: 13px 0; margin: -13px 0; }
  .nav-links a { font-size: 13px; }
  .footer-links a { display: inline-block; padding: 11px 8px; }
  .footer-links { gap: 0 12px; margin-bottom: 6px; }
  footer.site-footer { font-size: 14px; }
}

/* телефоны: фото сверху во всю ширину, лицо целиком, низ фото плавно уходит в цвет панели,
   текст ниже — на ровном фоне */
@media (max-width: 640px) and (max-aspect-ratio: 999/1000) {
  .hero-media { bottom: auto; height: 150vw; }
  .hero-media::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 52%; pointer-events: none;
    background: linear-gradient(180deg, rgb(var(--hp) / 0) 0%, rgb(var(--hp) / .82) 36%, rgb(var(--hp)) 70%);
  }
  /* текст всегда ниже лица: на невысоких телефонах экран просто становится чуть длиннее */
  .hero-inner { padding-top: 100vw; }
  .hero-bg { object-position: 50% 0; }
  .hero-inner { padding-bottom: 34px; }
  .hero-sub { margin-top: 16px; }
  .hero .btn { margin-top: 24px; }
  .hero-caption { display: none; }
}
/* совсем узкие экраны */
@media (max-width: 360px) {
  .hero h1 { font-size: 38px; }
  .hero-caption { letter-spacing: .14em; }
}

@supports (-webkit-touch-callout: none) {
  .quote { background-attachment: scroll; }
}

/* ---------- Режим редактирования ---------- */
.editing [data-k] { outline: 1px dashed transparent; outline-offset: 4px; border-radius: 2px; transition: outline-color .2s; cursor: text; }
.editing [data-k]:hover { outline-color: rgba(182,106,113,.7); }
.editing [data-k]:focus { outline: 2px solid var(--accent); }
.editing [data-img], .editing [data-bg] { cursor: pointer; }
.about-text .ed-del { top: 2px; right: -36px; }
.editing .sig-img.missing { display: inline-flex; min-width: 220px; height: 64px; border: 1px dashed var(--accent); }
.editing .sig-img.missing + .sig-text { display: block; margin-left: 16px; }
.editing .reveal, .ed-previewing .reveal { opacity: 1; transform: none; }
.editing .btn-breathe { animation: none; }
.ed-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 12px 20px;
  background: #1F1C1A;
  color: #F5F1EB;
  font-size: 13px;
  box-shadow: 0 -6px 30px rgba(0,0,0,.25);
}
.ed-bar .ed-hint { flex: 1 1 260px; opacity: .8; line-height: 1.4; }
.ed-btn {
  font: 500 13px var(--sans);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(245,241,235,.3);
  background: transparent;
  color: #F5F1EB;
  cursor: pointer;
  white-space: nowrap;
}
.ed-btn.primary { background: var(--accent); border-color: var(--accent); }
.ed-btn:hover { border-color: #F5F1EB; }
.ed-mini {
  font: 500 12px var(--sans);
  border: 1px dashed var(--accent);
  background: rgba(255,255,255,.9);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}
.ed-del {
  position: absolute; top: 8px; right: 8px;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 16px; line-height: 1;
  cursor: pointer;
  z-index: 5;
}
.ed-row { position: relative; }
.ed-add-wrap { text-align: center; margin-top: 24px; }
.ed-img-badge {
  position: absolute; left: 12px; top: 12px; z-index: 5;
  background: rgba(31,28,26,.8); color: #fff;
  font-size: 12px; padding: 6px 12px; border-radius: 999px;
  pointer-events: none;
}
.ed-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(440px, 100%);
  z-index: 1001;
  background: var(--card);
  box-shadow: -10px 0 40px rgba(0,0,0,.2);
  overflow-y: auto;
  padding: 28px 24px 120px;
  transform: translateX(105%);
  transition: transform .35s ease;
  font-size: 14px;
}
.ed-panel.open { transform: none; }
.ed-panel h3 { font-size: 26px; margin-bottom: 6px; }
.ed-panel h4 { font: 600 11px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 28px 0 10px; }
.ed-panel label { display: block; margin: 12px 0 4px; color: var(--muted); font-size: 12.5px; }
.ed-panel input[type=text], .ed-panel input[type=number], .ed-panel textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 6px;
  font: 400 14px var(--sans); color: var(--ink); background: #fff;
}
.ed-panel textarea { min-height: 70px; resize: vertical; }
.ed-panel .ed-tariff { border: 1px solid var(--line); border-radius: 8px; padding: 4px 12px 12px; margin-bottom: 10px; position: relative; }
.ed-panel .ed-close { position: absolute; top: 18px; right: 18px; }
.ed-panel .ed-check { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--ink); }
.ed-panel small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.ed-panel .ed-note { color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.ed-days { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ed-days .ed-check { margin-top: 4px; }
.ed-toast {
  position: fixed; left: 50%; bottom: 84px;
  transform: translateX(-50%) translateY(20px);
  z-index: 1002;
  background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: 10px;
  font-size: 14px; max-width: min(520px, 90vw); text-align: center;
  opacity: 0; transition: all .3s; pointer-events: none;
}
.ed-toast.show { opacity: 1; transform: translateX(-50%); }
body.editing { padding-bottom: 70px; }
body.editing .music-btn, body.editing .music-tip { bottom: 90px; }
/* в редакторе клик по пустому месту первого экрана меняет фото */
.editing .hero-inner, .editing .hero-brand { pointer-events: none; }
.editing .hero-inner [data-k], .editing .hero-inner a, .editing .hero-brand [data-k] { pointer-events: auto; }
