/* ============ VARIABLES ============ */
/* Кремовый фон, чёрный текст, красный акцент. Два блока (strengths, cta-banner)
   намеренно инвертированы — чёрный и красный фон для контраста. */
:root{
  --cream: #f4f0eb;
  --cream-soft: #ece4d8;
  --paper: #fffdfa;
  --ink: #1b1712;
  --muted: #746a5d;
  --line: #ddd2c0;

  --night: #14110f;
  --night-soft: #1e1a17;
  --night-line: #37312a;
  --cream-text: #f4ede2;
  --muted-on-night: #a89c8d;

  --red: #b91c1c;
  --red-bright: #dc2626;
  --red-dark: #7f1414;
  --white: #ffffff;

  --font: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --font-display: 'Playfair Display', 'Georgia', serif;
  --container: 1180px;
  --radius: 16px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

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

html{ scroll-behavior: smooth; }

body{
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; }
button{ font-family: inherit; cursor:pointer; border:none; background:none; color:inherit; }
input, textarea, select{ font-family: inherit; }

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

.text-accent{ color: var(--red); }

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

/* ============ PRELOADER ============ */
.preloader{
  position: fixed; inset:0; z-index: 9999;
  background: var(--cream);
  display:flex; flex-direction: column; align-items:center; justify-content:center;
  gap: 22px;
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader.is-hidden{ opacity:0; visibility:hidden; pointer-events:none; }

.preloader__mark{
  width: 96px; height: 96px;
  border-radius: 50%;
  opacity:0;
  transform: scale(.5);
  animation: markIn .6s cubic-bezier(.2,.85,.3,1.2) forwards .1s;
}
.preloader__mark img{ width:100%; height:100%; border-radius:50%; }
@keyframes markIn{
  to{ opacity:1; transform: scale(1); }
}

.preloader__word{
  display:flex;
  gap: .04em;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--ink);
}
.preloader__word span{
  opacity:0;
  transform: translateY(12px) scale(.7);
  animation: letterIn .5s cubic-bezier(.2,.9,.3,1) forwards;
}
.preloader__word span:nth-child(1){ animation-delay: .70s; }
.preloader__word span:nth-child(2){ animation-delay: .76s; }
.preloader__word span:nth-child(3){ animation-delay: .82s; }
.preloader__word span:nth-child(4){ animation-delay: .88s; }
.preloader__word span:nth-child(5){ animation-delay: .94s; color: var(--red); }
.preloader__word span:nth-child(6){ animation-delay: 1.00s; }
.preloader__word span:nth-child(7){ animation-delay: 1.06s; }
.preloader__word span:nth-child(8){ animation-delay: 1.12s; }
@keyframes letterIn{
  to{ opacity:1; transform: translateY(0) scale(1); }
}

/* ============ SECTION HELPERS ============ */
.section-tag{
  display:inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.section-tag--night{ color: var(--red-bright); }

.section-title{
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
  max-width: 820px;
  text-wrap: balance;
}
.section-title--night{ color: var(--cream-text); }

.section-subtitle{
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 620px;
  margin-bottom: 48px;
}
.section-subtitle--night{ color: var(--muted-on-night); }

/* ============ BUTTONS ============ */
.btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition), color var(--transition);
  overflow: hidden;
  isolation: isolate;
}
.btn__icon svg{ width:18px; height:18px; }

.btn--primary{
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 0 0 rgba(185,28,28,.5);
}
.btn--outline{
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--light{
  background: var(--white);
  color: var(--red);
}

/* панель при наведении (заливка слева направо) */
.btn--hover-panel::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:-1;
  background: var(--ink);
  transform: translateX(-101%);
  transition: transform var(--transition);
}
.btn--hover-panel.btn--primary::before{ background: var(--red-dark); }
.btn--hover-panel.btn--outline::before{ background: var(--red); }
.btn--hover-panel.btn--light::before{ background: var(--cream); }

.btn--hover-panel:hover{ transform: translateY(-2px); }
.btn--hover-panel.btn--primary:hover{ color: var(--white); box-shadow: 0 8px 24px rgba(185,28,28,.35); }
.btn--hover-panel.btn--primary:hover::before{ transform: translateX(0); }
.btn--hover-panel.btn--outline:hover{ color: var(--white); border-color: var(--red); }
.btn--hover-panel.btn--outline:hover::before{ transform: translateX(0); }
.btn--hover-panel.btn--light:hover::before{ transform: translateX(0); }

/* ============ HEADER ============ */
.header{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 500;
  /* safe-area: не даём шапке залезать под вырез/чёлку экрана в вебвью мобильных приложений */
  padding: calc(18px + env(safe-area-inset-top, 0px)) 0 18px;
  background: rgba(244,240,235,.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), padding var(--transition);
}
.header.is-scrolled{
  padding: calc(12px + env(safe-area-inset-top, 0px)) 0 12px;
  background: rgba(244,240,235,.92);
  border-bottom-color: var(--line);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 24px;
}

.logo{
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.logo__word{
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.logo__dot{ color: var(--red); }

/* интерактивный логотип: обод крутится при наведении/фокусе/тапе */
.logo__mark{
  position: relative;
  width: 46px; height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
}
.logo__img{
  width: 100%; height: 100%;
  border-radius: 50%;
  transition: transform .7s cubic-bezier(.22,1,.36,1), filter .4s ease;
}
.logo__mark::before{
  content:'';
  position:absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--red-dark), var(--red-bright), var(--red-dark) 60%, var(--red) 85%, var(--red-dark));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  opacity: 0;
  transform: scale(.85);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
.logo:hover .logo__mark::before,
.logo:focus-visible .logo__mark::before,
.logo.is-spinning .logo__mark::before{
  opacity: 1;
  transform: scale(1);
  animation: wheelSpin 1.4s linear infinite;
}
.logo:hover .logo__img,
.logo:focus-visible .logo__img,
.logo.is-spinning .logo__img{
  transform: rotate(360deg);
  filter: drop-shadow(0 0 10px rgba(185,28,28,.4));
}
@keyframes wheelSpin{ from{ transform: rotate(0deg); } to{ transform: rotate(360deg); } }

.nav{ display:flex; align-items:center; gap: 30px; }
.nav__link{
  font-size: .92rem;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  transition: color var(--transition);
}
.nav__link::after{
  content:'';
  position:absolute; left:0; bottom:-6px;
  width:0; height:2px;
  background: var(--red);
  transition: width var(--transition);
}
.nav__link:hover{ color: var(--ink); }
.nav__link:hover::after{ width:100%; }

.header__cta{ padding: 11px 22px; font-size: .85rem; }

/* переключатель языка RU / KZ */
.lang-switch{
  display:flex;
  align-items:center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  flex-shrink: 0;
}
.lang-switch__btn{
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--muted);
  transition: background var(--transition), color var(--transition);
}
.lang-switch__btn:hover{ color: var(--ink); }
.lang-switch__btn.is-active{ background: var(--red); color: var(--white); }

.burger{
  display:none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  z-index: 600;
}
.burger span{
  display:block; height:2px; width:100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}
.burger.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); background: var(--red); }
.burger.is-open span:nth-child(2){ opacity:0; }
.burger.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); background: var(--red); }

/* ============ HERO ============ */
.hero{
  position: relative;
  padding: 150px 0 90px;
  overflow: hidden;
}
.hero__inner{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items:center;
}
.hero__col{ min-width:0; }

.hero__badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 26px;
  background: var(--paper);
  opacity:0; animation: fadeUp .7s ease forwards .1s;
}
.hero__badge::before{
  content:'';
  width:7px; height:7px;
  border-radius:50%;
  background: var(--red);
  box-shadow: 0 0 10px rgba(185,28,28,.6);
}

.hero__title{
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 22px;
  text-wrap: balance;
  opacity:0; animation: fadeUp .7s ease forwards .25s;
}
.hero__subtitle{
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 36px;
  opacity:0; animation: fadeUp .7s ease forwards .4s;
}
.hero__actions{
  display:flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 52px;
  opacity:0; animation: fadeUp .7s ease forwards .55s;
}
.hero__stats{
  display:flex;
  gap: 40px;
  flex-wrap: wrap;
  opacity:0; animation: fadeUp .7s ease forwards .7s;
}
.stat{ display:flex; flex-direction: column; gap: 4px; }
.stat__num{ font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.stat__label{ font-size: .82rem; color: var(--muted); max-width: 120px; }

@keyframes fadeUp{
  from{ opacity:0; transform: translateY(24px); }
  to{ opacity:1; transform: translateY(0); }
}

/* ---- телефон-мокап с перепиской ---- */
.hero__col--phone{
  display:flex;
  justify-content:center;
  position: relative;
}
.hero__phone-glow{
  position:absolute;
  top:50%; left:50%;
  width: 420px; height:420px;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(185,28,28,.16) 0%, rgba(185,28,28,0) 68%);
  z-index:0;
  pointer-events:none;
}
.phone{
  position: relative;
  z-index:1;
  width: min(320px, 78vw);
  aspect-ratio: 320 / 640;
  background: var(--night);
  border-radius: 42px;
  padding: 14px 10px;
  box-shadow: 0 30px 70px rgba(20,17,15,.35), 0 0 0 1px rgba(20,17,15,.08);
  display:flex;
  flex-direction: column;
  opacity:0; animation: fadeUp .8s ease forwards .5s;
}
.phone__notch{
  width: 90px; height: 20px;
  background: var(--night);
  border-radius: 0 0 14px 14px;
  position:absolute;
  top:0; left:50%;
  transform: translateX(-50%);
  z-index:2;
}
.phone__statusbar{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 4px 12px 2px;
  color: var(--cream-text);
  font-size: .68rem;
  font-weight: 700;
}
.phone__chatbar{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--night-line);
}
.phone__avatar{
  width: 34px; height:34px;
  border-radius: 50%;
  overflow:hidden;
  flex-shrink:0;
  background: var(--cream);
}
.phone__avatar img{ width:100%; height:100%; object-fit: cover; }
.phone__who{ display:flex; flex-direction: column; line-height:1.25; }
.phone__who b{ color: var(--cream-text); font-size: .82rem; }
.phone__who span{ color: var(--muted-on-night); font-size: .7rem; }

.phone__chat{
  flex:1;
  padding: 14px 10px;
  display:flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  scrollbar-width: none;
  transition: opacity .35s ease;
}
.phone__chat::-webkit-scrollbar{ display:none; }
.phone__chat.is-fading{ opacity: 0; }

.msg{
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: .78rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px) scale(.96);
  animation: msgIn .35s cubic-bezier(.2,.9,.3,1) forwards;
}
@keyframes msgIn{ to{ opacity:1; transform: translateY(0) scale(1); } }

.msg--in{
  align-self: flex-start;
  background: var(--night-soft);
  color: var(--cream-text);
  border-bottom-left-radius: 4px;
}
.msg--out{
  align-self: flex-end;
  background: var(--red);
  color: var(--white);
  border-bottom-right-radius: 4px;
}
.msg--typing{
  align-self: flex-start;
  background: var(--night-soft);
  border-bottom-left-radius: 4px;
  display:flex;
  gap: 4px;
  padding: 12px 14px;
}
.msg--typing span{
  width:5px; height:5px;
  border-radius:50%;
  background: var(--muted-on-night);
  animation: typingDot 1.1s ease infinite;
}
.msg--typing span:nth-child(2){ animation-delay:.15s; }
.msg--typing span:nth-child(3){ animation-delay:.3s; }
@keyframes typingDot{
  0%,60%,100%{ transform: translateY(0); opacity:.5; }
  30%{ transform: translateY(-4px); opacity:1; }
}

/* ============ ABOUT ============ */
.about{ padding: 110px 0; border-top: 1px solid var(--line); }
.about__inner{
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 60px;
  align-items:start;
}
.about__text p{ color: var(--muted); margin-bottom: 18px; max-width: 62ch; }
.about__text p strong{ color: var(--ink); }

.about__card{
  position: sticky;
  top: 110px;
}
.about__photo{
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--cream-soft);
  border: 1px solid var(--line);
}
.about__photo img{ width:100%; height:100%; object-fit: cover; object-position: top center; }
.about__caption{
  margin-top: 16px;
  display:flex;
  flex-direction: column;
  gap: 2px;
}
.about__caption b{ font-family: var(--font-display); font-size: 1.05rem; }
.about__caption span{ color: var(--red); font-size: .85rem; font-weight: 600; }

/* ============ SERVICES ============ */
.services{ padding: 110px 0; border-top: 1px solid var(--line); }
.services__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card{
  position: relative;
  padding: 32px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.service-card:hover{
  border-color: var(--red);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(185,28,28,.12);
}
.service-card--strong{ border-color: rgba(185,28,28,.35); }
.service-card__badge{
  position: absolute;
  top: 18px; right: 18px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--red);
  background: rgba(185,28,28,.1);
  padding: 4px 9px;
  border-radius: 999px;
}
.service-card__icon{
  width: 52px; height:52px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 12px;
  background: rgba(185,28,28,.1);
  color: var(--red);
  margin-bottom: 20px;
}
.service-card__icon svg{ width: 26px; height:26px; }
.service-card h3{ font-size: 1.12rem; margin-bottom: 10px; }
.service-card p{ font-size: .92rem; color: var(--muted); }

/* ============ STRENGTHS (тёмный блок) ============ */
.strengths{ padding: 110px 0; background: var(--night); color: var(--cream-text); }
.strengths__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.strength-card{
  padding: 30px 26px;
  background: var(--night-soft);
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}
.strength-card:hover{ border-color: var(--red-bright); transform: translateY(-6px); }
.strength-card__icon{
  width: 52px; height:52px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 12px;
  background: rgba(220,38,38,.14);
  color: var(--red-bright);
  margin-bottom: 20px;
}
.strength-card__icon svg{ width:26px; height:26px; }
.strength-card h3{ font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 14px; }
.strength-card ul{ display:flex; flex-direction: column; gap: 9px; }
.strength-card li{
  font-size: .88rem;
  color: var(--muted-on-night);
  padding-left: 18px;
  position: relative;
}
.strength-card li::before{
  content:'';
  position:absolute; left:0; top:.55em;
  width:6px; height:6px;
  border-radius:50%;
  background: var(--red-bright);
}

/* ============ PRICING ============ */
.pricing{ padding: 110px 0; border-top: 1px solid var(--line); }
.pricing__group-title{
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 52px 0 22px;
}
.pricing__group-title:first-of-type{ margin-top: 0; }

.pricing__grid{ display:grid; gap: 22px; }
.pricing__grid--3{ grid-template-columns: repeat(3, 1fr); }
.pricing__grid--2{ grid-template-columns: repeat(2, 1fr); }
.pricing__grid--1{ grid-template-columns: 1fr; }

.price-card{
  display:flex;
  flex-direction: column;
  padding: 30px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}
.price-card:hover{ border-color: var(--red); transform: translateY(-4px); }

.price-card__head{ margin-bottom: 18px; }
.price-card__head h4{ font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 8px; }
.price-card__price{ font-size: 1.7rem; font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; }
.price-card__price span{ font-size: .85rem; font-weight: 600; color: var(--muted); }

.price-card__list{ display:flex; flex-direction: column; gap: 10px; margin-bottom: 20px; flex:1; }
.price-card__list--2col{ display:grid; grid-template-columns: 1fr 1fr; column-gap: 22px; row-gap: 10px; }
.price-card__list li{
  font-size: .87rem;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
}
.price-card__list li::before{
  content:'✓';
  position:absolute; left:0; top:0;
  color: var(--red);
  font-weight: 800;
  font-size: .8rem;
}
.price-card__bonus{ color: var(--ink) !important; font-weight: 600; }
.price-card__bonus::before{ content:'' !important; }

.price-card__note{ font-size: .8rem; color: var(--muted); font-style: italic; margin-bottom: 16px; }
.price-card__btn{ width:100%; margin-top: auto; }

.price-card--popular{
  background: var(--night);
  border-color: var(--night);
  position: relative;
}
.price-card--popular .price-card__head h4{ color: var(--cream-text); }
.price-card--popular .price-card__price{ color: var(--red-bright); }
.price-card--popular .price-card__price span{ color: var(--muted-on-night); }
.price-card--popular .price-card__list li{ color: var(--muted-on-night); }
.price-card--popular .price-card__list li::before{ color: var(--red-bright); }
.price-card--popular .price-card__bonus{ color: var(--cream-text) !important; }
.price-card--popular .price-card__note{ color: var(--muted-on-night); }
.price-card__ribbon{
  position: absolute;
  top: -13px; left: 26px;
  background: var(--red);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 5px 14px;
  border-radius: 999px;
}

.price-card--callout{
  background: rgba(185,28,28,.06);
  border: 1.5px dashed var(--red);
  justify-content: center;
}
.price-card__callout-icon{
  width: 46px; height:46px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display:flex; align-items:center; justify-content:center;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.price-card--callout h4{ font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 12px; }
.price-card--callout p{ font-size: .92rem; color: var(--ink); margin-bottom: 10px; }
.price-card--callout .price-card__note{ margin-bottom: 0; }

.price-card--wide{ padding: 34px 34px; }

.pricing__cta{
  display:flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: space-between;
  align-items:center;
  padding: 34px;
  background: var(--night);
  color: var(--cream-text);
  border-radius: var(--radius);
}
.pricing__cta-text h4{ font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 8px; }
.pricing__cta-text p{ color: var(--muted-on-night); max-width: 46ch; font-size: .92rem; }
.pricing__cta-actions{ display:flex; gap: 14px; flex-wrap: wrap; }

/* ============ CTA BANNER (красный) ============ */
.cta-banner{ background: var(--red); }
.cta-banner__inner{
  padding: 80px 24px;
  text-align:center;
  display:flex;
  flex-direction: column;
  align-items:center;
  gap: 18px;
}
.cta-banner h2{
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  color: var(--white);
  max-width: 720px;
  text-wrap: balance;
}
.cta-banner p{ color: rgba(255,255,255,.85); max-width: 520px; }

/* ============ CONTACT ============ */
.contact{ padding: 110px 0; }
.contact__inner{ max-width: 560px; }
.contact__list{ margin: 28px 0 32px; display:flex; flex-direction: column; gap: 16px; }
.contact__list li{ display:flex; align-items:center; gap: 14px; color: var(--muted); font-size: .92rem; }
.contact__list a{ color: var(--muted); transition: color var(--transition); }
.contact__list a:hover{ color: var(--red); }
.contact__icon{
  width: 38px; height:38px;
  flex-shrink:0;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  color: var(--red);
}
.contact__icon svg{ width:18px; height:18px; }
.contact__socials{ display:flex; gap: 14px; flex-wrap: wrap; }

/* ============ МОДАЛЬНОЕ ОКНО (политика конфиденциальности) ============
   На странице остаётся только ссылка — полный текст открывается по клику
   поверх контента и не разворачивается в общей ленте сайта. */
.modal{
  position: fixed;
  inset: 0;
  z-index: 1000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.modal.is-open{ opacity:1; visibility:visible; }
.modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(20,17,15,.58);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.modal__panel{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 44px 38px;
  transform: translateY(16px) scale(.98);
  transition: transform var(--transition);
}
.modal.is-open .modal__panel{ transform: translateY(0) scale(1); }
.modal__close{
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height:38px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 1rem;
  display:flex; align-items:center; justify-content:center;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.modal__close:hover{ background: var(--red); border-color: var(--red); color: var(--white); }

.modal__body .section-title{ font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.privacy__intro{ max-width: 100%; margin-bottom: 32px; }

.privacy__sections{
  display:flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 28px;
}
.privacy__section h3{
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.privacy__section p{ color: var(--muted); font-size: .89rem; max-width: 68ch; }

.privacy__contact-line{ font-size: .89rem; color: var(--muted); }
.privacy__contact-line a{ color: var(--red); }

@media (max-width: 600px){
  .modal__panel{ padding: 32px 22px; }
}

/* ============ FOOTER ============ */
.footer{ background: var(--night); color: var(--cream-text); padding-top: 70px; }
.footer .logo__word{ color: var(--cream-text); }
.footer .logo__mark{ width: 58px; height: 58px; }
.footer__inner{
  display:grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer__brand p{ margin-top: 14px; color: var(--muted-on-night); font-size: .9rem; max-width: 280px; }
.footer__col{ display:flex; flex-direction: column; gap: 12px; }
.footer__col h4{ font-size: .82rem; text-transform: uppercase; letter-spacing:.08em; color: var(--muted-on-night); margin-bottom: 6px; }
.footer__col a, .footer__col span{ font-size: .9rem; color: var(--muted-on-night); transition: color var(--transition); }
.footer__col a:hover{ color: var(--red-bright); }

.footer__bottom{ border-top: 1px solid var(--night-line); padding: 22px 0; }
.footer__bottom-inner{
  display:flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .82rem;
  color: var(--muted-on-night);
}

/* ============ FLOATING WHATSAPP ============ */
.fab-whatsapp{
  position: fixed;
  /* safe-area: не даём кнопке прятаться под индикатор "домой" на iOS/Android */
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: calc(24px + env(safe-area-inset-right, 0px));
  width: 58px; height:58px;
  background: var(--red);
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  color: var(--white);
  box-shadow: 0 10px 30px rgba(185,28,28,.4);
  z-index: 400;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse 2.4s ease infinite;
}
.fab-whatsapp svg{ width: 28px; height:28px; }
.fab-whatsapp:hover{ transform: scale(1.08); box-shadow: 0 14px 36px rgba(185,28,28,.55); }
@keyframes pulse{
  0%,100%{ box-shadow: 0 0 0 0 rgba(185,28,28,.45); }
  50%{ box-shadow: 0 0 0 14px rgba(185,28,28,0); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px){
  .hero__inner{ grid-template-columns: 1fr; }
  .hero__col--phone{ order:-1; margin-bottom: 20px; }
  .phone{ width: min(280px, 60vw); }
  .about__inner{ grid-template-columns: 1fr; }
  .about__card{ position: static; max-width: 320px; }
}

@media (max-width: 980px){
  .services__grid{ grid-template-columns: repeat(2, 1fr); }
  .strengths__grid{ grid-template-columns: 1fr; }
  .pricing__grid--3{ grid-template-columns: repeat(2, 1fr); }
  .pricing__grid--2{ grid-template-columns: 1fr; }
  .price-card__list--2col{ grid-template-columns: 1fr; }
  .footer__inner{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px){
  .nav{
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(78vw, 320px);
    background: var(--night);
    border-left: 1px solid var(--night-line);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    /* safe-area: панель меню — во всю высоту экрана вебвью, поэтому учитываем вырезы */
    padding: calc(40px + env(safe-area-inset-top, 0px)) calc(40px + env(safe-area-inset-right, 0px)) calc(40px + env(safe-area-inset-bottom, 0px)) 40px;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 550;
  }
  .nav.is-open{ transform: translateX(0); }
  .nav__link{ font-size: 1.1rem; color: var(--cream-text); }
  .header__cta{ display:none; }
  .burger{ display:flex; }

  .hero{ padding-top: 120px; }
  .hero__stats{ gap: 26px; }

  .services__grid{ grid-template-columns: 1fr; }
  .pricing__grid--3{ grid-template-columns: 1fr; }
  .footer__inner{ grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom-inner{ flex-direction: column; text-align:center; }

  .pricing__cta{ flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px){
  .hero__actions .btn{ width:100%; }
  .contact__socials .btn{ width:100%; }
}

/* ============ NAV OVERLAY (mobile) ============ */
.nav-overlay{
  position: fixed; inset:0;
  background: rgba(20,17,15,.5);
  opacity:0; visibility:hidden;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 540;
}
.nav-overlay.is-open{ opacity:1; visibility:visible; }

/* ============ REVEAL ON SCROLL ============ */
.reveal{ opacity:0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity:1; transform: translateY(0); }
