/* Стили секций: header, hero, services, process, audiences, trust, callback, footer, modal */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- HEADER ---------- */
/* Верхняя строка с адресом и телефоном — часть липкой шапки */
.topbar { border-bottom: 1px solid var(--border-dark); font-size: 13px; color: var(--text-muted-on-dark); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--topbar-h); }
.topbar__item { display: flex; align-items: center; gap: 8px; min-width: 0; }
.topbar__item .icon { flex: none; width: 15px; height: 15px; }
.topbar__address span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topbar__phone { flex: none; font-weight: 700; color: var(--white); transition: color var(--t-fast); }
.topbar__phone:hover { color: var(--red); }
.header--bare { --topbar-h: 0px; }
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  transition: background var(--t-base), box-shadow var(--t-base);
}
.header.is-scrolled {
  background: rgba(8, 9, 10, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-dark);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: var(--header-h);
}
.nav { display: flex; align-items: center; gap: 40px; }
.nav__list { display: flex; gap: 32px; }
.nav__link {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  padding-block: 6px;
  transition: color var(--t-fast);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__cta { display: none; }
.header__actions { display: flex; align-items: center; gap: 16px; }
.header__call { display: none; }
.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  color: var(--white);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-btn);
}
.burger .icon { width: 22px; height: 22px; }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: min(800px, calc(100vh - var(--header-h) - var(--topbar-h)));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: 72px 64px;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__photo {
  position: absolute;
  top: 0; right: 0;
  width: 56%; height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%, #000 100%);
}
/* Косые красные плоскости справа — абстракция по мотивам референса (не логотип) */
.hero__shape { position: absolute; display: block; pointer-events: none; }
.hero__shape--main {
  top: -12%; right: 21%;
  width: 160px; height: 124%;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-hover) 55%, var(--red-dark) 100%);
  transform: skewX(-22deg);
  box-shadow: -40px 0 80px rgba(8, 9, 10, 0.55);
}
.hero__shape--thin {
  top: -12%; right: 36%;
  width: 22px; height: 124%;
  background: linear-gradient(180deg, rgba(229, 31, 38, 0.85) 0%, rgba(169, 15, 21, 0.55) 100%);
  transform: skewX(-22deg);
}
.hero__shape--line {
  top: -6%; right: 44%;
  width: 1px; height: 118%;
  background: rgba(255, 255, 255, 0.12);
  transform: skewX(-22deg);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 680px) 1fr;
  align-items: center;
  gap: 48px;
}
.hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero__title { max-width: 12ch; }
.hero__lead { max-width: 560px; font-size: 18px; color: var(--white); opacity: 0.9; }

/* Правая колонка: подпись у правого края поверх плоскостей */
.hero__visual {
  position: relative;
  align-self: stretch;
  min-height: 460px;
}
.hero__tagline {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  padding-left: 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--white);
}
.hero__tagline::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 2px; height: 78px;
  background: var(--red);
}

/* ---------- ШАПКА СЕКЦИИ ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 32px 64px;
  margin-bottom: 48px;
}
.section-head__title { margin-top: 20px; }
.section-head__text { max-width: 360px; padding-bottom: 6px; }
.section-head__text--right { text-align: right; }
.section-head__link { padding-bottom: 8px; }

/* ---------- УСЛУГИ ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
/* Карточка: иконка слева, заголовок справа от неё, подпись внизу, стрелка в правом нижнем углу */
.service-card {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  column-gap: 16px;
  align-items: start;
  min-height: 176px;
  padding: 28px 28px 24px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  color: var(--text-dark);
  transition: background var(--t-base), border-color var(--t-base), transform var(--t-base);
}
.service-card:hover { background: var(--off-white); border-color: #D6D8DA; transform: translateY(-3px); }
.service-card__icon { width: 30px; height: 30px; margin-top: -3px; }
.service-card__title { grid-column: 2; font-size: 18px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.service-card__text {
  grid-column: 2;
  align-self: end;
  padding-top: 20px;
  padding-right: 32px;
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--text-muted);
}
.service-card__price {
  grid-column: 2;
  padding-top: 10px;
  padding-right: 32px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}
.service-card__arrow {
  position: absolute;
  right: 24px; bottom: 26px;
  width: 20px; height: 20px;
  color: var(--red);
  transition: transform var(--t-fast);
}
.service-card:hover .service-card__arrow { transform: translateX(4px); }

/* Карточка с длинным названием — на две колонки; оформление общее со всеми услугами */
.service-card--wide { grid-column: span 2; }
.service-card--wide .service-card__title { font-size: 20px; max-width: 30ch; }

.service-card--cta {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  min-height: 0;
  padding: 24px 28px;
  background: var(--white);
}
.service-card--cta:hover { transform: none; }
.service-card--cta .service-card__icon { margin-top: 0; }
.service-card--cta .service-card__title { flex: 0 1 auto; }
.service-card--cta .service-card__text { flex: 1 1 260px; margin: 0; padding: 0; }
.service-card--cta .btn { margin-left: auto; }

/* ---------- ПРОЦЕСС ---------- */
.process { position: relative; background: var(--off-white); overflow: hidden; }
/* Водяной знак: официальный логотип, очень слабо, без цвета */
.process__mark {
  position: absolute;
  top: 50%; right: 4%;
  width: min(520px, 38vw); height: auto;
  margin-top: calc(min(520px, 38vw) * -0.425);
  pointer-events: none;
  user-select: none;
}
.process .container { position: relative; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 16px;
}
.step { position: relative; padding-right: 32px; }
.step__head { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.step__num {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #C9CBCE;
}
.step__icon { width: 34px; height: 34px; }
.step__title { max-width: 16ch; }
.step__text { margin-top: 14px; font-size: 15px; color: var(--text-muted); }
.step__arrow {
  position: absolute;
  right: 0; top: 96px;
  width: 22px; height: 22px;
  color: var(--red);
}

/* ---------- ГРАЖДАНЕ / БИЗНЕС ---------- */
.audiences { padding-block: 24px 56px; background: var(--off-white); }
.audiences__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.audience {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "body note";
  align-items: end;
  column-gap: 32px;
  min-height: 360px;
  padding: 48px 44px 40px;
  border-radius: var(--radius-card);
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}
.audience > picture { position: absolute; inset: 0; z-index: -2; }
.audience__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  filter: grayscale(1);
  z-index: -2;
}
.audience::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}
.audience--dark { background: var(--black-soft); }
.audience--dark::before { background: linear-gradient(90deg, var(--black-soft) 42%, rgba(16, 18, 20, 0.55) 72%, rgba(16, 18, 20, 0.25) 100%); }
.audience--red { background: var(--red-dark); }
.audience--red .audience__bg { opacity: 0.7; }
.audience--red::before { background: linear-gradient(90deg, var(--red-dark) 40%, rgba(169, 15, 21, 0.65) 70%, rgba(169, 15, 21, 0.2) 100%); }
.audience__body { grid-area: body; align-self: start; max-width: 420px; }
.audience__title { font-size: clamp(30px, 2.6vw, 38px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.audience__text { margin-top: 16px; font-size: 15px; line-height: 1.6; opacity: 0.9; }
.audience__btn { margin-top: 28px; background: var(--white); color: var(--text-dark); }
.audience__btn:hover { background: var(--off-white); }
.audience--red .audience__btn { background: var(--black); color: var(--white); }
.audience--red .audience__btn:hover { background: var(--black-soft); }
.audience__note {
  grid-area: note;
  align-self: end;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.6;
  text-align: left;
  opacity: 0.85;
}

/* ---------- ДОВЕРИЕ ---------- */
.trust { background: var(--off-white); padding-block: 32px 96px; }
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust__item {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
}
.trust__icon { width: 28px; height: 28px; margin-bottom: 20px; }
.trust__title { font-size: 18px; min-height: 2.5em; }
.trust__text { margin-top: 10px; font-size: 15px; color: var(--text-muted); }

/* ---------- CALLBACK ---------- */
.callback { background: var(--black-soft); }
.callback__grid {
  display: grid;
  grid-template-columns: 1fr minmax(380px, 560px);
  align-items: center;
  gap: 64px;
}
.callback__title { margin-top: 20px; font-size: clamp(32px, 3.3vw, 46px); }
.callback__perks { display: flex; flex-wrap: wrap; gap: 20px 40px; margin-top: 40px; }
.perk { display: flex; align-items: center; gap: 14px; font-size: 14px; line-height: 1.4; color: var(--white); }
.perk .icon { width: 26px; height: 26px; }

/* Форма */
.form { display: flex; flex-direction: column; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.field__control { position: relative; }
.field__icon {
  position: absolute;
  left: 18px; top: 18px;
  width: 18px; height: 18px;
  color: var(--text-muted-on-dark);
  pointer-events: none;
}
.field__input {
  width: 100%;
  min-height: var(--btn-h);
  padding: 16px 18px 16px 48px;
  background: var(--surface-dark-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-input);
  color: var(--white);
  transition: border-color var(--t-fast), background var(--t-fast);
  resize: vertical;
}
.field__input::placeholder { color: var(--text-muted-on-dark); }
.field__input:focus { outline: none; border-color: rgba(255, 255, 255, 0.4); background: #202327; }
.field.is-invalid .field__input { border-color: var(--red); }
.field__error { display: none; font-size: 13px; color: #FF6B70; }
.field.is-invalid .field__error { display: block; }

.form__submit { width: 100%; margin-top: 4px; }
.form.is-loading .form__submit { pointer-events: none; opacity: 0.7; }
.form.is-loading .form__submit-text::after { content: "…"; }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; color: var(--text-muted-on-dark); }
.check__input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
  display: inline-flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  border: 1.5px solid var(--red);
  border-radius: 4px;
  transition: background var(--t-fast);
}
.check__box .icon { width: 12px; height: 12px; color: var(--white); opacity: 0; stroke-width: 3; }
.check__input:checked + .check__box { background: var(--red); }
.check__input:checked + .check__box .icon { opacity: 1; }
.check__input:focus-visible + .check__box { outline: 2px solid var(--red); outline-offset: 2px; }
.check.is-invalid .check__box { box-shadow: 0 0 0 3px rgba(229, 31, 38, 0.3); }
.check__text a { text-decoration: underline; text-underline-offset: 3px; }

.form__status { display: none; padding: 14px 18px; border-radius: var(--radius-input); font-size: 14px; }
.form__status.is-success { display: block; background: rgba(255, 255, 255, 0.06); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.16); }
.form__status.is-error { display: block; background: rgba(229, 31, 38, 0.12); color: #FF8A8E; border: 1px solid rgba(229, 31, 38, 0.4); }
.form.is-sent .field, .form.is-sent .form__submit, .form.is-sent .check { display: none; }

/* ---------- FOOTER ---------- */
.footer { background: var(--black); color: var(--white); padding-block: 56px 28px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1fr auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border-dark);
}
.logo--lg .logo__mark { height: 64px; }
.logo--lg .logo__name { font-size: 22px; }
.logo--lg .logo__sub { font-size: 11px; }
.footer__contacts, .footer__legal, .footer__links { display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.footer__contact { display: flex; align-items: center; gap: 12px; }
.footer__contact .icon { width: 18px; height: 18px; }
.footer__contact a:hover { color: var(--red); }
.footer__contact--todo { color: var(--text-muted-on-dark); }
.footer__legal { color: var(--text-muted-on-dark); }
.footer__link { position: relative; padding-bottom: 2px; }
.footer__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; opacity: 0.4; transition: opacity var(--t-fast);
}
.footer__link:hover::after { opacity: 1; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-muted-on-dark);
}
.footer__slogan {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
}
.footer__slogan::after { content: ""; width: 48px; height: 2px; background: var(--red); }

/* ---------- MODAL ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8, 9, 10, 0.72); backdrop-filter: blur(4px); }
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 40px;
  background: var(--black-soft);
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  color: var(--white);
  animation: modal-in var(--t-slow);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-btn);
  color: var(--text-muted-on-dark);
  transition: color var(--t-fast), background var(--t-fast);
}
.modal__close:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.modal__close .icon { width: 20px; height: 20px; }
.modal__title { font-size: 26px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; padding-right: 40px; }
.modal__text { margin: 12px 0 24px; font-size: 14px; color: var(--text-muted-on-dark); }

/* ---------- Служебные страницы (privacy / consent) ---------- */
.header--static { position: static; }
.doc { background: var(--white); color: var(--text-dark); padding-block: 72px 96px; }
.doc__inner { max-width: 820px; }
.doc__title { margin-top: 20px; font-size: 44px; font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; }
.doc__note {
  margin: 28px 0 40px;
  padding: 16px 20px;
  border-left: 2px solid var(--red);
  background: var(--light-bg);
  font-size: 15px;
  color: var(--text-muted);
}
.doc__section + .doc__section { margin-top: 28px; }
.doc__h2 { font-size: 20px; font-weight: 700; line-height: 1.2; }
.doc__text { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.doc__back { margin-top: 48px; }
.footer--slim { padding-block: 28px; }
.footer--slim .footer__bottom { margin-top: 0; padding-top: 0; border-top: 0; }
.footer__docs { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }

/* ---------- Оплата по QR (/oplata) ---------- */
.pay__title { max-width: 16ch; }
.pay__lead { max-width: 640px; margin-top: 18px; font-size: 17px; line-height: 1.6; color: var(--text-muted); }
.pay__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  margin-top: 48px;
  align-items: start;
}

/* Светлый вариант полей формы */
.form--light .field__label--visible {
  position: static; width: auto; height: auto; clip: auto;
  font-size: 13px; font-weight: 600; color: var(--text-dark);
}
.form--light .field__icon { color: var(--text-muted); }
.form--light .field__input { background: var(--off-white); border-color: var(--border-light); color: var(--text-dark); }
.form--light .field__input::placeholder { color: #9A9EA3; }
.form--light .field__input:focus { background: var(--white); border-color: var(--text-dark); }
.form--light .field__error { color: var(--red-dark); }
.field__select { appearance: none; cursor: pointer; font: inherit; font-size: 15px; }
.check--light { color: var(--text-muted); }
.form--light .form__status.is-error, .pay__result .form__status.is-error { background: rgba(229, 31, 38, 0.06); color: var(--red-dark); }
.form--light .form__status.is-success, .pay__result .form__status.is-success { background: var(--off-white); color: var(--text-dark); border-color: var(--border-light); }

.btn--ghost-dark { background: transparent; color: var(--text-dark); border: 1px solid var(--border-light); }
.btn--ghost-dark:hover { border-color: var(--text-dark); }

.pay__panel {
  min-height: 100%;
  padding: 32px;
  background: var(--off-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
}
.pay__placeholder, .pay__done {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; min-height: 360px; text-align: center; color: var(--text-muted); font-size: 15px;
}
.pay__placeholder[hidden], .pay__done[hidden], .pay__result[hidden] { display: none; }
.pay__placeholder-icon { width: 56px; height: 56px; color: var(--border-light); stroke-width: 1.4; }
.pay__done-icon { width: 48px; height: 48px; padding: 10px; border-radius: 50%; background: var(--red); color: var(--white); stroke-width: 2.4; }
.pay__done p { max-width: 32ch; color: var(--text-dark); font-weight: 600; }

.pay__qr {
  width: min(100%, 280px);
  margin-inline: auto;
  padding: 12px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
}
.pay__qr svg { display: block; width: 100%; height: auto; }
.pay__summary { display: grid; gap: 10px; margin-top: 24px; font-size: 14px; }
.pay__summary div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.pay__summary dt { color: var(--text-muted); }
.pay__summary dd { font-weight: 600; color: var(--text-dark); overflow-wrap: anywhere; }
.pay__summary [data-pay-amount] { font-size: 20px; font-weight: 800; }
.pay__steps { margin-top: 20px; padding-left: 20px; list-style: decimal; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.pay__hint { margin-top: 12px; font-size: 14px; color: var(--text-dark); font-weight: 600; }
.pay__open { margin-top: 12px; }
.pay__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.pay__actions .btn { flex: 1 1 180px; }
.pay__result .form__status { margin-top: 14px; }

.pay__requisites { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border-light); max-width: 820px; }
.pay__req-list { display: grid; gap: 12px; margin-top: 20px; font-size: 15px; }
.pay__req { display: grid; grid-template-columns: 180px 1fr; gap: 16px; }
.pay__req dt { color: var(--text-muted); }
.pay__req dd { color: var(--text-dark); font-weight: 600; overflow-wrap: anywhere; }
.pay__summary dd, .pay__req dd { margin: 0; }
.pay__title .accent { white-space: nowrap; }
