/* ==========================================================================
   donorsperm.ru — основной стиль
   ========================================================================== */

/* ------------------------------------------------------------- шрифты */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/assets/fonts/manrope-cyrillic-wght-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-display: swap;
  font-weight: 200 800;
  src: url('/assets/fonts/manrope-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url('/assets/fonts/onest-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url('/assets/fonts/onest-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212;
}

/* ------------------------------------------------------------- токены */
:root {
  --cream:      #FBF7F1;
  --cream-2:    #F5EEE4;
  --cream-3:    #EFE6D9;
  --white:      #FFFFFF;

  --ink:        #1C2926;
  --ink-2:      #3D4F4A;
  --ink-3:      #5A6A64;

  --forest:     #274A40;
  --forest-2:   #35604F;
  --sage:       #8AA79A;
  --sage-soft:  #DCE6DF;

  --accent:     #C1795A;
  --accent-2:   #96543C;
  --accent-soft:#F3E1D6;

  --line:       rgba(39, 74, 64, .13);
  --line-2:     rgba(39, 74, 64, .07);

  --sh-1: 0 1px 2px rgba(28,41,38,.05), 0 4px 14px rgba(28,41,38,.05);
  --sh-2: 0 2px 6px rgba(28,41,38,.06), 0 16px 40px rgba(28,41,38,.09);
  --sh-3: 0 30px 70px rgba(28,41,38,.16);

  --r-s: 12px;
  --r-m: 18px;
  --r-l: 26px;
  --r-xl: 34px;

  --gutter: 18px;
  --maxw: 1240px;
  --sec-y: clamp(56px, 8vw, 118px);

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-d: 'Onest', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --header-h: 66px;
}

@media (min-width: 768px)  { :root { --gutter: 32px; --header-h: 78px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; } }

/* --------------------------------------------------------------- база */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  color: var(--ink-2);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

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

h1, h2, h3, h4 {
  font-family: var(--font-d);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.028em;
  margin: 0;
  text-wrap: balance;
}
h3, h4 { letter-spacing: -.018em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--accent-soft); color: var(--ink); }

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

/* ------------------------------------------------------------ раскладка */
.container {
  width: min(var(--maxw), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.container--wide { width: min(1440px, 100% - var(--gutter) * 2); }

.section { padding-block: var(--sec-y); position: relative; }
.section--tight { padding-block: clamp(40px, 5.5vw, 76px); }
.section--cream2 { background: var(--cream-2); }
.section--dark { background: var(--forest); color: rgba(255,255,255,.82); }
.section--dark h2, .section--dark h3 { color: #fff; }

/* -------------------------------------------------------------- типо */
.h-xl { font-size: clamp(2.15rem, 6.4vw, 4.35rem); }
.h-l  { font-size: clamp(1.85rem, 4.6vw, 3.1rem); }
.h-m  { font-size: clamp(1.3rem, 2.6vw, 1.75rem); }
.h-s  { font-size: clamp(1.08rem, 1.8vw, 1.28rem); }

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--ink-3);
  max-width: 62ch;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.kicker::before {
  content: '';
  width: 26px; height: 1px;
  background: currentColor;
  opacity: .5;
}
.kicker--center::before { display: none; }

.sec-head { margin-bottom: clamp(30px, 4vw, 54px); }
.sec-head--center { text-align: center; }
.sec-head--center .lead { margin-inline: auto; }
.sec-head--center .kicker::before { display: none; }

.accent { color: var(--accent-2); }

/* ------------------------------------------------------------- кнопки */
.btn {
  --btn-bg: var(--forest);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s, background .22s, color .22s;
  box-shadow: 0 6px 18px rgba(39,74,64,.18);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(39,74,64,.24); }
.btn:active { transform: translateY(0); }
.btn .ic { width: 19px; height: 19px; flex: none; }

.btn--accent { --btn-bg: var(--accent); box-shadow: 0 6px 18px rgba(193,121,90,.28); }
.btn--accent:hover { --btn-bg: var(--accent-2); box-shadow: 0 12px 26px rgba(193,121,90,.34); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--forest);
  border-color: var(--line);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(39,74,64,.05); box-shadow: none; }

.btn--light { --btn-bg: #fff; --btn-fg: var(--forest); box-shadow: 0 6px 20px rgba(0,0,0,.12); }

.btn--wide { width: 100%; }
.btn--sm { min-height: 44px; padding: 11px 20px; font-size: .9rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
@media (max-width: 419px) { .btn-row .btn { width: 100%; } }

/* ------------------------------------------------------------- шапка */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.header::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(251,247,241,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  opacity: 0;
  transition: opacity .3s;
  border-bottom: 1px solid var(--line-2);
}
.header.is-stuck::before { opacity: 1; }

.header__in {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(var(--maxw), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-d);
  font-size: 1.14rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.025em;
  flex: none;
}
.logo__mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--forest), var(--sage));
  color: #fff;
  flex: none;
}
.logo__mark .ic { width: 19px; height: 19px; }
.logo__sub {
  display: block;
  font-family: var(--font);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 1px;
}

.nav { display: none; margin-left: auto; }
.nav a {
  padding: 8px 13px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--forest); background: rgba(39,74,64,.06); }

.header__cta { display: none; margin-left: auto; }
.header__phone {
  display: none;
  font-weight: 600;
  color: var(--ink);
  font-size: .96rem;
  white-space: nowrap;
}

.burger {
  margin-left: auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  cursor: pointer;
}
.burger .ic { width: 21px; height: 21px; }

@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; white-space: nowrap; }
  .header__cta { display: inline-flex; margin-left: 14px; }
  .burger { display: none; }
  .nav + .header__cta { margin-left: 14px; }
}
@media (min-width: 1180px) {
  .header__phone { display: block; margin-left: 12px; }
}

/* мобильное меню */
.mmenu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--cream);
  padding: 20px var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform .38s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.mmenu.is-open { transform: translateY(0); }
.mmenu__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.mmenu__close {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer;
}
.mmenu__list { display: flex; flex-direction: column; margin-top: 22px; }
.mmenu__list a {
  font-family: var(--font-d);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.025em;
  color: var(--ink);
  padding: 13px 0;
  border-bottom: 1px solid var(--line-2);
}
.mmenu__foot { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; }

/* -------------------------------------------------------------- герой */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(28px, 6vw, 66px));
  padding-bottom: clamp(48px, 7vw, 96px);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 88% 8%, rgba(220,230,223,.85) 0%, rgba(251,247,241,0) 58%),
    radial-gradient(100% 80% at 4% 96%, rgba(243,225,214,.7) 0%, rgba(251,247,241,0) 55%),
    var(--cream);
}
.hero__grid {
  display: grid;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 64px; }
}

.hero__title {
  font-size: clamp(2.2rem, 6.2vw, 4.1rem);
  line-height: 1.03;
  letter-spacing: -.038em;
}
.hero__title em {
  font-style: normal;
  color: var(--accent-2);
}
.hero__text {
  margin-top: 22px;
  font-size: clamp(1.02rem, 1.45vw, 1.15rem);
  color: var(--ink-2);
  max-width: 54ch;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line-2);
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink-2);
  backdrop-filter: blur(6px);
}
.chip .ic { width: 16px; height: 16px; color: var(--accent); }

.hero__media { position: relative; }
.hero__img {
  position: relative;
  border-radius: clamp(24px, 4vw, 40px);
  overflow: hidden;
  box-shadow: var(--sh-3);
  aspect-ratio: 4 / 5;
  background: var(--cream-3);
}
.hero__img img { width: 100%; height: 100%; object-fit: cover; }

.hero__badge {
  position: absolute;
  left: -10px;
  bottom: 26px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 20px 15px 16px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  box-shadow: var(--sh-2);
  max-width: 300px;
}
.hero__badge .ic { width: 24px; height: 24px; color: var(--accent); flex: none; margin-top: 2px; }
.hero__badge b { display: block; color: var(--ink); font-size: .95rem; }
.hero__badge span { font-size: .8rem; color: var(--ink-3); line-height: 1.35; display: block; }
@media (min-width: 980px) { .hero__badge { left: -34px; } }

.hero__scroll {
  display: none;
  margin-top: 44px;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero__scroll .ic { width: 18px; height: 18px; animation: bob 2.2s ease-in-out infinite; }
@media (min-width: 980px) { .hero__scroll { display: inline-flex; } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ------------------------------------------------------------- факты */
.facts {
  background: var(--white);
  border-block: 1px solid var(--line-2);
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-2);
  border-radius: var(--r-m);
  overflow: hidden;
}
@media (min-width: 620px)  { .facts__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .facts__grid { grid-template-columns: repeat(6, 1fr); } }

.fact {
  background: var(--white);
  padding: 24px 16px;
  text-align: center;
  transition: background .25s;
}
.fact:hover { background: var(--cream); }
.fact .ic { width: 24px; height: 24px; color: var(--sage); margin: 0 auto 12px; }
.fact__v {
  font-family: var(--font-d);
  font-size: clamp(1.12rem, 2.1vw, 1.38rem);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
}
.fact__l {
  font-size: .78rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
}

/* ------------------------------------------------------------ обо мне */
.about__grid {
  display: grid;
  gap: clamp(30px, 4.5vw, 62px);
  align-items: start;
}
@media (min-width: 940px) { .about__grid { grid-template-columns: .82fr 1.18fr; } }

.about__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--sh-2);
  background: var(--cream-3);
}
.about__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 940px) { .about__media { position: sticky; top: calc(var(--header-h) + 24px); } }

.about__lead {
  font-family: var(--font-d);
  font-size: clamp(1.22rem, 2.3vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -.022em;
  color: var(--ink);
  line-height: 1.32;
  margin-bottom: 20px;
}
.about__text { color: var(--ink-2); }

.about__list {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
@media (min-width: 640px) { .about__list { grid-template-columns: 1fr 1fr; gap: 16px; } }

.about__list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-m);
  font-size: .95rem;
  line-height: 1.5;
  color: var(--ink-2);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.about__list li:hover { transform: translateY(-3px); box-shadow: var(--sh-1); border-color: var(--line); }
.about__list .ic {
  width: 21px; height: 21px;
  color: var(--accent);
  flex: none;
  margin-top: 1px;
}

/* -------------------------------------------------- триптих в условиях */
.trip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: clamp(22px, 3vw, 34px);
}
@media (min-width: 640px) { .trip { gap: 18px; } }

.trip__i { margin: 0; }
.trip__i img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-m);
  box-shadow: var(--sh-1);
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.trip__i:hover img { transform: translateY(-4px); }
.trip__i figcaption {
  margin-top: 10px;
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
@media (min-width: 640px) { .trip__i figcaption { font-size: .84rem; } }

/* ------------------------------------------------------------ условия */
.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .cards { grid-template-columns: 1fr 1fr; gap: 18px; } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-l);
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s;
}
.card::after {
  content: '';
  position: absolute;
  inset: auto -30% -55% auto;
  width: 190px; height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193,121,90,.1), transparent 68%);
  opacity: 0;
  transition: opacity .35s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-2); border-color: transparent; }
.card:hover::after { opacity: 1; }

.card__ico {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 15px;
  background: var(--sage-soft);
  color: var(--forest);
  margin-bottom: 20px;
}
.card__ico .ic { width: 25px; height: 25px; }
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { font-size: .95rem; color: var(--ink-3); line-height: 1.58; }

/* ------------------------------------------------------------ процесс */
.steps { display: grid; gap: 14px; counter-reset: st; }
@media (min-width: 700px)  { .steps { grid-template-columns: 1fr 1fr; gap: 18px; } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  position: relative;
  counter-increment: st;
  padding: 30px 24px 26px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--r-l);
  transition: background .3s, transform .3s;
}
.step:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.step__n {
  font-family: var(--font-d);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  color: rgba(255,255,255,.3);
  margin-bottom: 14px;
  display: block;
}
.step h3 { font-size: 1.14rem; margin-bottom: 8px; color: #fff; }
.step p { font-size: .93rem; color: rgba(255,255,255,.7); line-height: 1.55; }

/* ------------------------------------------------------------ стоимость */
.price {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--cream-2);
  isolation: isolate;
}
.price__bg {
  position: absolute; inset: 0; z-index: -1;
}
.price__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.price__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(251,247,241,.97) 0%, rgba(251,247,241,.88) 46%, rgba(251,247,241,.55) 100%);
}
.price__in {
  display: grid;
  gap: 32px;
  padding: clamp(30px, 4.4vw, 60px);
  align-items: center;
}
@media (min-width: 860px) { .price__in { grid-template-columns: 1fr 1fr; gap: 54px; } }

.price__num {
  font-family: var(--font-d);
  font-size: clamp(2.7rem, 7.4vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  color: var(--forest);
  letter-spacing: -.04em;
}
.price__note { color: var(--ink-3); margin-top: 8px; font-size: 1rem; }

.price__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.price__list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: .97rem; color: var(--ink-2);
}
.price__list .ic {
  width: 20px; height: 20px; flex: none; margin-top: 3px;
  color: #fff; background: var(--sage); border-radius: 50%; padding: 3px;
  stroke-width: 2.4;
}

.price__extra {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 22px 0 0;
  padding: 14px 16px;
  border-radius: var(--r-m);
  background: rgba(255,255,255,.62);
  border: 1px solid var(--line-2);
  font-size: .9rem;
  line-height: 1.5;
  color: var(--ink-3);
}
.price__extra .ic { width: 19px; height: 19px; flex: none; margin-top: 2px; color: var(--accent); }

/* ------------------------------------------------------------ галерея */
.gal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 600px)  { .gal { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1000px) { .gal { grid-template-columns: repeat(4, 1fr); gap: 16px; } }

.gal__item {
  position: relative;
  display: block;
  border-radius: var(--r-m);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--cream-3);
  cursor: zoom-in;
  box-shadow: var(--sh-1);
}
.gal__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.3,1), filter .4s;
}
.gal__item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,41,38,.32), transparent 46%);
  opacity: 0;
  transition: opacity .35s;
}
.gal__item:hover img { transform: scale(1.06); }
.gal__item:hover::after { opacity: 1; }

/* лайтбокс */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20,28,26,.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(6px);
}
.lb.is-open { display: flex; }
.lb__img {
  max-width: min(1100px, 100%);
  max-height: 86vh;
  width: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
}
.lb__btn {
  position: absolute;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  cursor: pointer;
  transition: background .2s;
}
.lb__btn:hover { background: rgba(255,255,255,.25); }
.lb__close { top: 16px; right: 16px; }
.lb__prev { left: 14px; top: 50%; transform: translateY(-50%) rotate(180deg); }
.lb__next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb__count {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7); font-size: .88rem; letter-spacing: .06em;
}
@media (min-width: 700px) { .lb__prev { left: 26px; } .lb__next { right: 26px; } }

/* ---------------------------------------------------------------- FAQ */
.faq { max-width: 880px; margin-inline: auto; display: grid; gap: 10px; }
.faq details {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-m);
  overflow: hidden;
  transition: box-shadow .3s, border-color .3s;
}
.faq details[open] { box-shadow: var(--sh-1); border-color: var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 22px;
  position: relative;
  font-weight: 600;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.45;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 22px; top: 50%;
  width: 13px; height: 13px;
  margin-top: -7px;
  background: currentColor;
  color: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23000' stroke-width='2.4' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23000' stroke-width='2.4' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .3s;
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq__a { padding: 0 22px 22px; color: var(--ink-3); font-size: .97rem; }

/* ------------------------------------------------------------ контакты */
.contact__grid {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
@media (min-width: 940px) { .contact__grid { grid-template-columns: 1fr 1.1fr; } }

.ccard {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-m);
  transition: transform .25s, box-shadow .25s;
}
.ccard + .ccard { margin-top: 12px; }
.ccard:hover { transform: translateY(-3px); box-shadow: var(--sh-1); }
.ccard__ic {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--sage-soft);
  color: var(--forest);
}
.ccard span { display: block; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.ccard b {
  display: block;
  font-size: 1.03rem;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  word-break: break-word;
}

.form {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3.4vw, 40px);
  box-shadow: var(--sh-1);
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 7px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 13px;
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none;
}
.field textarea { min-height: 116px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(138,167,154,.2);
}
.field input::placeholder, .field textarea::placeholder { color: #8B9893; }

.form__note { font-size: .8rem; color: var(--ink-3); margin-top: 14px; line-height: 1.5; }
.form__msg {
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: .93rem;
  display: none;
}
.form__msg.is-ok  { display: block; background: #E7F1EA; color: #256045; }
.form__msg.is-err { display: block; background: #FBE9E4; color: #A03A20; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ------------------------------------------------------------- баннер */
.band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  isolation: isolate;
  min-height: 320px;
  display: grid;
  align-items: center;
}
.band__bg { position: absolute; inset: 0; z-index: -1; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band__bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(28,41,38,.82) 0%, rgba(28,41,38,.6) 48%, rgba(28,41,38,.28) 100%);
}
.band__in { padding: clamp(34px, 5vw, 68px); color: #fff; max-width: 720px; }
.band__in h2 { color: #fff; }
.band__in p { color: rgba(255,255,255,.8); margin-top: 14px; }

/* -------------------------------------------------------------- подвал */
.footer {
  background: var(--forest);
  color: rgba(255,255,255,.62);
  padding-block: clamp(44px, 5vw, 70px) 30px;
  font-size: .92rem;
}
.footer a { color: rgba(255,255,255,.86); }
.footer a:hover { color: #fff; }
.footer__top {
  display: grid;
  gap: 30px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (min-width: 780px) { .footer__top { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; } }
.footer .logo { color: #fff; }
.footer .logo__sub { color: rgba(255,255,255,.5); }
.footer__h {
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.62); margin-bottom: 14px;
}
.footer__list { display: grid; gap: 9px; }
.footer__bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: .84rem;
  color: rgba(255,255,255,.6);
}

/* --------------------------------------------------- мобильная панель */
.dock {
  position: fixed;
  left: 10px; right: 10px; bottom: 10px;
  z-index: 90;
  display: flex;
  gap: 8px;
  padding: 8px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  box-shadow: 0 8px 30px rgba(28,41,38,.18);
  transform: translateY(150%);
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.dock.is-on { transform: translateY(0); }
.dock .btn { flex: 1; min-height: 46px; padding: 10px 14px; font-size: .9rem; box-shadow: none; }
.dock .btn:hover { transform: none; }
@media (max-width: 1023px) {
  /* чтобы плавающая панель не перекрывала конец страницы */
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .dock { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 1024px) { .dock { display: none; } }

/* --------------------------------------------------------- появление */
.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
.rv.is-in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .07s; }
.rv-d2 { transition-delay: .14s; }
.rv-d3 { transition-delay: .21s; }
.rv-d4 { transition-delay: .28s; }
.rv-d5 { transition-delay: .35s; }

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

/* ------------------------------------------------------------- утилиты */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mt-l { margin-top: clamp(30px, 4vw, 52px); }
.nowrap { white-space: nowrap; }
body.is-locked { overflow: hidden; }
