/* ============================================================
   e-sender.ru — фирменный стиль
   Благородный сливово-пурпурный + тёплые нейтральные
   Onest (заголовки) · Golos Text (текст)
   ============================================================ */

:root {
  /* Пурпур — благороднее, глубже, менее «кислотный» */
  --primary: #870a6b;
  --primary-dark: #5f0a4b;
  --primary-light: #a83a94;
  --primary-bg: #f7edf4;
  --primary-line: #ecd8e7;

  /* Тёмная поверхность — тёплая слива, а не чистый чёрный */
  --dark: #241019;
  --dark-soft: #34202c;

  /* Тёплые нейтральные */
  --gray-900: #271d23;
  --gray-700: #574b53;
  --gray-500: #857a81;
  --gray-300: #d8ced4;
  --gray-100: #f5f0f3;
  --cream: #faf6f3;

  --gold: #b0842f;
  --green: #1c7a48;
  --white: #ffffff;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(39,20,32,.05), 0 2px 8px rgba(39,20,32,.04);
  --shadow-md: 0 18px 48px -20px rgba(60,20,50,.28);
  --shadow-primary: 0 10px 22px -10px rgba(135,10,107,.55);
  --container: 1180px;
  --font-head: 'Onest', 'Golos Text', system-ui, Arial, sans-serif;
  --font-body: 'Golos Text', system-ui, 'Segoe UI', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
::selection { background: var(--primary); color: #fff; }

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

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.18; color: var(--gray-900); letter-spacing: -.02em; }
h1 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(27px, 3vw, 40px); font-weight: 700; letter-spacing: -.03em; }
h3 { font-size: 20px; }

.section { padding: 92px 0; }
.section--gray { background: var(--cream); }
.section--dark { background: var(--dark); color: #e6dce2; }
.section--dark h2 { color: var(--white); }

/* ---------- Заголовок секции ---------- */
.section-head { max-width: 680px; margin-bottom: 54px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: 1.6px;
  text-transform: uppercase; color: var(--primary); margin-bottom: 16px;
}
.section-label::before {
  content: ''; width: 26px; height: 2px; background: var(--primary); border-radius: 2px; flex: none;
}
.section-head--center .section-label::after {
  content: ''; width: 26px; height: 2px; background: var(--primary); border-radius: 2px; flex: none;
}
.section-head p { color: var(--gray-500); margin-top: 16px; font-size: 17.5px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  padding: 15px 30px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  text-align: center;
}
.btn--primary { background: var(--primary); color: var(--white); box-shadow: var(--shadow-primary); }
.btn--primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(135,10,107,.6); }
.btn--outline { border-color: var(--gray-300); color: var(--gray-900); background: transparent; }
.btn--outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }
.btn--white { background: var(--white); color: var(--primary); }
.btn--white:hover { background: var(--cream); color: var(--primary-dark); transform: translateY(-1px); }
.btn--lg { padding: 18px 40px; font-size: 16px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--dark); color: #cbbfc7; font-size: 13.5px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #e6dce2; }
.topbar a:hover { color: var(--white); }
.topbar__group { display: flex; gap: 24px; align-items: center; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item svg { width: 15px; height: 15px; fill: var(--primary-light); flex: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 900; background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--gray-100); transition: box-shadow .25s, border-color .25s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: transparent; }
.header__inner { display: flex; align-items: center; gap: 34px; min-height: 80px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark {
  width: 44px; height: 44px; border-radius: 11px; flex: none;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-family: var(--font-head); font-weight: 800; font-size: 19px; letter-spacing: -.03em;
}
.logo__text { font-family: var(--font-head); font-weight: 800; font-size: 21px; color: var(--gray-900); line-height: 1.1; letter-spacing: -.03em; white-space: nowrap; }
.logo__text span { color: var(--primary); }
.logo__sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11.5px; color: var(--gray-500); letter-spacing: .2px; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 26px; }
.nav__list a { font-family: var(--font-head); font-size: 14.5px; font-weight: 500; color: var(--gray-700); padding: 6px 0; position: relative; }
.nav__list a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--primary); transition: width .25s; border-radius: 2px;
}
.nav__list a:hover { color: var(--gray-900); }
.nav__list a:hover::after, .nav__list a.is-active::after { width: 100%; }
.nav__list a.is-active { color: var(--primary); }

.header__cta { flex: none; }
.header .btn { padding: 12px 24px; font-size: 14px; }

.burger {
  display: none; width: 44px; height: 44px; border: none; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 6px; align-items: center;
}
.burger span { width: 26px; height: 2.5px; background: var(--gray-900); border-radius: 2px; transition: .3s; }
.burger.is-open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--cream);
  border-bottom: 1px solid var(--gray-100);
  padding: 92px 0 100px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(135,10,107,.06) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(120deg, #000 0%, transparent 60%);
  mask-image: linear-gradient(120deg, #000 0%, transparent 60%);
}
.hero__inner { display: grid; grid-template-columns: 1.12fr .88fr; gap: 60px; align-items: center; position: relative; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px; background: var(--white);
  border: 1px solid var(--gray-300); border-radius: 100px; padding: 8px 16px;
  font-size: 13.5px; font-weight: 500; color: var(--gray-700); margin-bottom: 26px; box-shadow: var(--shadow-sm);
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22a45c; flex: none; box-shadow: 0 0 0 3px rgba(34,164,92,.18); }
.hero h1 span { color: var(--primary); }
.hero__lead { font-size: 18.5px; color: var(--gray-700); margin: 26px 0 36px; max-width: 560px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__note { margin-top: 20px; font-size: 13.5px; color: var(--gray-500); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.hero__card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: 34px 32px; border: 1px solid var(--gray-100);
}
.hero__card h3 { font-size: 15px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--gray-500); font-weight: 600; }
.hero__card-row { display: flex; justify-content: space-between; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--gray-100); gap: 12px; }
.hero__card-row:last-of-type { border-bottom: none; }
.hero__card-row .name { font-size: 14.5px; color: var(--gray-700); }
.hero__card-row .price { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--gray-900); white-space: nowrap; font-feature-settings: "tnum" 1; }
.hero__card-row .price--accent { color: var(--primary); }
.hero__card .btn { width: 100%; margin-top: 24px; }

/* ---------- Статистика ---------- */
.stats { background: var(--dark); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 58px 0; }
.stat { text-align: center; position: relative; padding: 0 12px; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: rgba(255,255,255,.09); }
.stat__num {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(34px, 3.4vw, 46px);
  color: var(--white); line-height: 1.05; letter-spacing: -.03em; font-feature-settings: "tnum" 1;
}
.stat__num span { color: var(--gold); }
.stat__label { font-size: 14px; color: #a596a0; margin-top: 10px; line-height: 1.45; }

/* ---------- Карточки услуг ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius);
  padding: 34px 30px; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-line); }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--primary-bg);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
  border: 1px solid var(--primary-line);
}
.card__icon svg { width: 26px; height: 26px; fill: var(--primary); }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 15px; color: var(--gray-500); flex: 1; }
.card__price { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--primary); margin: 20px 0 4px; font-feature-settings: "tnum" 1; }
.card__link { font-family: var(--font-head); font-weight: 600; font-size: 14.5px; margin-top: 16px; display: inline-flex; align-items: center; gap: 7px; }
.card__link::after { content: '→'; transition: transform .2s; }
.card:hover .card__link::after { transform: translateX(4px); }

/* ---------- Преимущества ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 34px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature__icon {
  width: 46px; height: 46px; flex: none; border-radius: 11px;
  background: var(--primary-bg); border: 1px solid var(--primary-line);
  display: flex; align-items: center; justify-content: center;
}
.feature__icon svg { width: 22px; height: 22px; fill: var(--primary); }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--gray-500); }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius); padding: 32px 26px; transition: border-color .25s, box-shadow .25s; }
.step:hover { border-color: var(--primary-line); box-shadow: var(--shadow-sm); }
.step__num {
  font-family: var(--font-head); font-weight: 800; font-size: 30px;
  color: var(--primary); line-height: 1; margin-bottom: 18px; letter-spacing: -.03em;
  display: inline-flex; align-items: center; gap: 10px;
}
.step__num::after { content: ''; height: 1px; width: 34px; background: var(--primary-line); }
.step h3 { font-size: 17px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--gray-500); }

/* ---------- Прайс-таблица ---------- */
.price-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-300); }
.price-table th {
  background: var(--dark); color: var(--white); font-family: var(--font-head);
  font-size: 14px; font-weight: 600; text-align: left; padding: 18px 24px; letter-spacing: .2px;
}
.price-table td { padding: 20px 24px; border-bottom: 1px solid var(--gray-100); font-size: 15px; vertical-align: top; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover { background: var(--cream); }
.price-table .p { font-family: var(--font-head); font-weight: 700; color: var(--primary); white-space: nowrap; font-size: 16px; font-feature-settings: "tnum" 1; }
.price-table .free { color: var(--green); font-weight: 700; font-family: var(--font-head); }
.table-wrap { overflow-x: auto; }

/* ---------- Тарифные карточки ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius);
  padding: 38px 32px; display: flex; flex-direction: column; position: relative; transition: border-color .25s, box-shadow .25s, transform .25s;
}
.plan:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--primary-line); }
.plan--featured { border: 1.5px solid var(--primary); box-shadow: var(--shadow-md); }
.plan--featured::before { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(135,10,107,.25); pointer-events: none; }
.plan__tag {
  position: absolute; top: -13px; left: 32px;
  background: var(--primary); color: var(--white); font-family: var(--font-head); font-size: 11.5px; font-weight: 600;
  letter-spacing: .8px; text-transform: uppercase; padding: 6px 16px; border-radius: 100px; white-space: nowrap;
}
.plan h3 { font-size: 19px; }
.plan__price { font-family: var(--font-head); font-weight: 800; font-size: 38px; color: var(--gray-900); margin: 16px 0 4px; letter-spacing: -.03em; font-feature-settings: "tnum" 1; }
.plan__price small { font-size: 15px; font-weight: 500; color: var(--gray-500); }
.plan__price--free { color: var(--green); }
.plan__desc { font-size: 14px; color: var(--gray-500); margin-bottom: 22px; }
.plan ul { flex: 1; margin-bottom: 26px; }
.plan li { font-size: 14.5px; padding: 10px 0 10px 30px; position: relative; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); }
.plan li:last-child { border-bottom: none; }
.plan li::before {
  content: ''; position: absolute; left: 0; top: 14px; width: 18px; height: 18px;
  background: var(--primary-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23870a6b'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat;
  border-radius: 50%;
}

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin: 0 auto; }
.faq__item { background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq__item.is-open { border-color: var(--primary-line); box-shadow: var(--shadow-sm); }
.faq__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 16.5px; color: var(--gray-900);
  padding: 21px 60px 21px 24px; position: relative; line-height: 1.4;
}
.faq__q::after {
  content: ''; position: absolute; right: 24px; top: 50%; width: 11px; height: 11px;
  border-right: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s;
}
.faq__item.is-open .faq__q::after { transform: translateY(-30%) rotate(225deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq__a-inner { padding: 0 24px 24px; font-size: 15px; color: var(--gray-700); }
.faq__a-inner p + p { margin-top: 10px; }

/* ---------- Отзывы ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; transition: border-color .25s, box-shadow .25s; }
.review:hover { border-color: var(--primary-line); box-shadow: var(--shadow-sm); }
.review__stars { color: var(--gold); font-size: 16px; letter-spacing: 3px; margin-bottom: 16px; }
.review__text { font-size: 15px; color: var(--gray-700); flex: 1; }
.review__author { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--gray-100); }
.review__avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--primary-bg); border: 1px solid var(--primary-line);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 17px;
}
.review__name { font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--gray-900); }
.review__meta { font-size: 12.5px; color: var(--gray-500); }

/* ---------- Кейсы ---------- */
.case { background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius); padding: 34px 32px; margin-bottom: 20px; }
.case__tag { display: inline-block; background: var(--primary-bg); color: var(--primary); font-family: var(--font-head); font-size: 12.5px; font-weight: 600; padding: 5px 14px; border-radius: 100px; margin-bottom: 16px; border: 1px solid var(--primary-line); }
.case h3 { margin-bottom: 12px; }
.case p { font-size: 15px; color: var(--gray-700); }
.case__result { margin-top: 16px; padding: 14px 18px; background: #f1f8f3; border-left: 3px solid var(--green); border-radius: 0 8px 8px 0; font-size: 14.5px; color: #1a5e3a; }

/* ---------- Блог ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius); overflow: hidden; transition: border-color .25s, box-shadow .25s, transform .25s; display: flex; flex-direction: column; }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--primary-line); }
.post-card__img { height: 160px; background: var(--dark); display: flex; align-items: center; justify-content: center; }
.post-card__img svg { width: 50px; height: 50px; fill: rgba(255,255,255,.5); }
.post-card__body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.post-card__cat { font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.post-card h3 { font-size: 17.5px; margin-bottom: 10px; }
.post-card h3 a { color: var(--gray-900); }
.post-card h3 a:hover { color: var(--primary); }
.post-card p { font-size: 14px; color: var(--gray-500); flex: 1; }
.post-card__date { font-size: 12.5px; color: var(--gray-500); margin-top: 16px; }

/* ---------- Статья ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article h2 { font-size: 27px; margin: 44px 0 16px; }
.article h3 { font-size: 20px; margin: 32px 0 12px; }
.article p { margin-bottom: 16px; color: var(--gray-700); }
.article ol, .article ul { margin: 0 0 18px 22px; color: var(--gray-700); }
.article ol li, .article ul li { margin-bottom: 8px; list-style: decimal; }
.article ul li { list-style: disc; }
.article .note {
  background: var(--primary-bg); border-left: 3px solid var(--primary);
  padding: 18px 22px; border-radius: 0 10px 10px 0; margin: 24px 0; font-size: 15px;
}

/* ---------- CTA-полоса ---------- */
.cta-band { background: var(--primary); position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(100deg, transparent 40%, #000 100%);
  mask-image: linear-gradient(100deg, transparent 40%, #000 100%);
}
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 60px 0; flex-wrap: wrap; position: relative; }
.cta-band h2 { color: var(--white); max-width: 640px; }
.cta-band p { color: rgba(255,255,255,.86); margin-top: 12px; max-width: 560px; }

/* ---------- Форма ---------- */
.form-section__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 40px 36px; border: 1px solid var(--gray-100); }
.form-card h3 { font-size: 21px; margin-bottom: 8px; }
.form-card > p { font-size: 14.5px; color: var(--gray-500); margin-bottom: 26px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-family: var(--font-head); font-size: 13.5px; font-weight: 600; margin-bottom: 8px; color: var(--gray-700); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 15px; color: var(--gray-900); background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(135,10,107,.12);
}
.form-group input.is-error, .form-group textarea.is-error { border-color: #d63031; }
.form-error { display: none; font-size: 12.5px; color: #d63031; margin-top: 5px; }
.form-group.has-error .form-error { display: block; }
.form-agree { font-size: 12.5px; color: var(--gray-500); margin: 16px 0 20px; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.is-visible { display: block; }
.form-success__icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: #e9f6ee; display: flex; align-items: center; justify-content: center; }
.form-success__icon svg { width: 30px; height: 30px; fill: var(--green); }

.contact-list { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item__icon { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--primary-bg); border: 1px solid var(--primary-line); display: flex; align-items: center; justify-content: center; }
.contact-item__icon svg { width: 22px; height: 22px; fill: var(--primary); }
.contact-item b { display: block; font-family: var(--font-head); font-size: 15px; color: var(--gray-900); }
.contact-item span, .contact-item a.val { font-size: 14.5px; color: var(--gray-500); }

/* ---------- Страничный хедер ---------- */
.page-head { background: var(--cream); border-bottom: 1px solid var(--gray-100); padding: 60px 0 54px; position: relative; overflow: hidden; }
.page-head::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(135,10,107,.06) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(120deg, #000 0%, transparent 55%);
  mask-image: linear-gradient(120deg, #000 0%, transparent 55%);
}
.page-head .container { position: relative; }
.breadcrumbs { font-size: 13.5px; color: var(--gray-500); margin-bottom: 18px; }
.breadcrumbs a { color: var(--gray-500); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { color: var(--primary); }
.page-head p { max-width: 700px; color: var(--gray-700); margin-top: 16px; font-size: 17.5px; }

/* ---------- Футер ---------- */
.footer { background: var(--dark); color: #b3a5ad; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding: 68px 0 48px; }
.footer h4 { color: var(--white); font-family: var(--font-head); font-size: 14px; margin-bottom: 20px; letter-spacing: .6px; text-transform: uppercase; }
.footer a { color: #b3a5ad; }
.footer a:hover { color: var(--white); }
.footer li { margin-bottom: 11px; }
.footer__about p { margin-top: 16px; font-size: 13.5px; line-height: 1.7; color: #9d8f97; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #8a7c84; }
.footer__bottom a { color: #8a7c84; }
.footer__bottom a:hover { color: var(--white); }
.footer__disclaimer { font-size: 12px; color: #7a6d75; padding-bottom: 26px; line-height: 1.6; }

/* ---------- Мессенджеры ---------- */
.msg-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; transition: transform .2s, box-shadow .2s; }
.msg-btn svg { width: 20px; height: 20px; }
.msg-btn--wa { background: rgba(37,211,102,.14); } .msg-btn--wa svg { fill: #25d366; }
.msg-btn--tg { background: rgba(34,158,217,.14); } .msg-btn--tg svg { fill: #3aa8e0; }
.msg-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.float-btns { position: fixed; right: 22px; bottom: 96px; z-index: 950; display: flex; flex-direction: column; gap: 12px; }
.float-btn {
  width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.20); transition: transform .2s;
}
.float-btn:hover { transform: scale(1.07); }
.float-btn svg { width: 27px; height: 27px; fill: #fff; }
.float-btn--wa { background: #25d366; }
.float-btn--tg { background: #229ed9; }

/* ---------- Cookie ---------- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: var(--dark); color: #d0c4cc; padding: 18px 0;
  transform: translateY(110%); transition: transform .4s ease;
  border-top: 1px solid rgba(255,255,255,.08);
}
.cookie-bar.is-visible { transform: translateY(0); }
.cookie-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cookie-bar p { font-size: 13.5px; max-width: 800px; line-height: 1.55; }
.cookie-bar a { color: var(--primary-light); text-decoration: underline; }
.cookie-bar .btn { padding: 11px 26px; font-size: 14px; flex: none; }

/* ---------- Анимация появления ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Юридические страницы ---------- */
.legal { max-width: 840px; margin: 0 auto; }
.legal h2 { font-size: 22px; margin: 36px 0 14px; }
.legal p, .legal li { color: var(--gray-700); font-size: 15px; margin-bottom: 12px; }
.legal ol, .legal ul { margin-left: 22px; }
.legal ol li { list-style: decimal; }
.legal ul li { list-style: disc; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1024px) {
  .cards, .pricing, .reviews, .posts { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .form-section__grid { grid-template-columns: 1fr; gap: 44px; }
  .stat + .stat::before { display: none; }

  /* Меню-бургер начиная с планшетов — 7 пунктов не помещаются в строку */
  .nav {
    position: fixed; inset: 0; top: 0; background: var(--white); z-index: 940;
    transform: translateX(100%); transition: transform .35s ease;
    padding: 108px 32px 40px; overflow-y: auto; margin-left: 0;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__list a { display: block; font-family: var(--font-head); font-size: 19px; font-weight: 600; color: var(--gray-900); padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
  .nav__list a::after { display: none; }
  .burger { display: flex; margin-left: auto; z-index: 960; position: relative; }
  .header__inner { min-height: 72px; }
}

@media (max-width: 768px) {
  .section { padding: 62px 0; }
  .hero { padding: 60px 0 68px; }
  .topbar__group--right { display: none; }
  .header__cta { display: none; }
  .header__inner { min-height: 68px; }
  .cards, .pricing, .reviews, .posts, .features, .steps { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .stat:nth-child(2)::before { display: none; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .float-btns { right: 14px; bottom: 84px; }
  .float-btn { width: 50px; height: 50px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 36px; }
  .hero__actions .btn { width: 100%; }
  .plan__tag { left: 50%; transform: translateX(-50%); }
}
