/* ============================================================
   Служба вскрытия замков и дверей — стили лендинга
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --burgundy:        #75012D;
  --burgundy-dark:   #5a0122;
  --burgundy-light:  #8f0a3d;
  --navy:            #16346b;
  --navy-dark:       #102a58;
  --blue:            #1e50a8;   /* акцент заголовков */
  --blue-deep:       #17356d;   /* цены */

  --ink:             #14181f;
  --ink-soft:        #3d4551;
  --muted:           #6b7280;
  --line:            #e3e6ec;

  --bg:              #ffffff;
  --bg-soft:         #eef0f3;
  --bg-panel:        #e6e9ee;

  --radius:          16px;
  --radius-sm:       10px;
  --shadow-sm:       0 2px 8px rgba(20, 24, 31, .06);
  --shadow-md:       0 12px 30px rgba(20, 24, 31, .10);
  --shadow-lg:       0 24px 60px rgba(20, 24, 31, .16);

  --container:       1180px;
  --ease:            cubic-bezier(.22, .61, .36, 1);
  --font-head:       "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body:       "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; font-weight: 500; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--burgundy); color: #fff; padding: 10px 18px;
  border-radius: 8px; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--burgundy);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: 10px;
  letter-spacing: .2px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  box-shadow: 0 8px 20px rgba(117, 1, 45, .28);
  overflow: hidden;
  will-change: transform;
}
.btn::after {   /* shine sweep */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .6s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(117, 1, 45, .38); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(-1px); }
.btn__icon { flex: none; }
.btn--lg { padding: 18px 34px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--primary {
  --btn-bg: var(--burgundy);
  box-shadow: 0 8px 20px rgba(117, 1, 45, .3), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn--primary:hover { --btn-bg: var(--burgundy-light); box-shadow: 0 14px 30px rgba(117, 1, 45, .4), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn--primary::before {   /* бегущий блик */
  content: ""; position: absolute; top: -25%; left: 0; width: 42%; height: 150%;
  background: linear-gradient(100deg, transparent 15%, rgba(255, 255, 255, .5) 50%, transparent 85%);
  transform: translateX(-230%) skewX(-20deg);
  animation: btnGlint 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btnGlint {
  0%   { transform: translateX(-230%) skewX(-20deg); }
  16%  { transform: translateX(340%) skewX(-20deg); }
  100% { transform: translateX(340%) skewX(-20deg); }
}
.btn--navy {
  --btn-bg: var(--navy);
  box-shadow: 0 8px 20px rgba(22, 52, 107, .26);
}
.btn--navy:hover { --btn-bg: var(--navy-dark); box-shadow: 0 14px 30px rgba(22, 52, 107, .34); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  border: 1.5px solid #c7d0e0;
  box-shadow: none;
}
.btn--ghost:hover { --btn-bg: rgba(22, 52, 107, .05); border-color: var(--navy); box-shadow: none; }

/* Phone block */
.hero__phone { display: flex; flex-direction: column; }
.phone-lg {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(19px, 1.9vw, 23px);
  color: var(--ink); letter-spacing: .5px; transition: color .2s var(--ease);
}
.phone-lg:hover { color: var(--burgundy); }
.phone-note { color: var(--muted); font-size: 14.5px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20, 24, 31, .96);
  backdrop-filter: blur(8px);
  color: #fff;
  transition: box-shadow .3s var(--ease), padding .3s var(--ease);
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.header__inner { display: flex; align-items: center; gap: 24px; min-height: 74px; }

.logo { display: flex; align-items: center; gap: 12px; color: #fff; flex: none; }
.logo__mark {
  display: grid; place-items: center; width: 44px; height: 44px;
  background: #fff; color: var(--burgundy); border-radius: 12px; flex: none;
  transition: transform .3s var(--ease);
}
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.05); }
.logo__text { font-family: var(--font-head); font-weight: 800; font-size: 17px; line-height: 1.1; }
.logo__text small { display: block; font-weight: 500; font-size: 11px; letter-spacing: .3px; opacity: .7; text-transform: uppercase; }

/* Image logo — light logo sits directly on the dark header/footer (no plate) */
.logo--img { width: fit-content; transition: transform .3s var(--ease); }
.logo--img:hover { transform: translateY(-1px); }
.logo__img { display: block; height: 44px; width: auto; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 28px; }
.nav__list a {
  position: relative; font-weight: 500; font-size: 16px; color: #e8eaee; padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--burgundy-light); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__list a:hover { color: #fff; }
.nav__list a:hover::after { transform: scaleX(1); }

.header__contact { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.header__phone { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: #fff; white-space: nowrap; transition: color .2s var(--ease); }
.header__phone:hover { color: #ffd7e4; }
.header__status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: #b7c0cc; }
.online-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; position: relative; flex: none; animation: onlineBlink 1.8s ease-in-out infinite; }
.online-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #22c55e;
  animation: onlinePulse 1.8s ease-out infinite;
}
@keyframes onlineBlink { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes onlinePulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.8); opacity: 0; } }

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
.burger span { width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu { background: #1b1f27; padding: 20px 24px 28px; border-top: 1px solid rgba(255,255,255,.08); }
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.mobile-menu a { display: block; color: #e8eaee; font-size: 18px; font-weight: 500; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  min-height: calc(100vh - 74px); min-height: calc(100dvh - 74px);
  padding: 40px 0;
  background:
    radial-gradient(720px 440px at 88% -8%, rgba(30, 80, 168, .13), transparent 62%),
    radial-gradient(620px 460px at -6% 112%, rgba(117, 1, 45, .07), transparent 58%),
    linear-gradient(180deg, #fbfcfe 0%, #ecf0f6 100%);
}
.hero::before {   /* keys & locks pattern, faded for readability */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url(../assets/img/pattern-locks.svg) repeat;
  background-size: 150px 150px;
  opacity: .035;
  -webkit-mask-image: radial-gradient(115% 120% at 72% 32%, #000 38%, transparent 100%);
  mask-image: radial-gradient(115% 120% at 72% 32%, #000 38%, transparent 100%);
}
.hero::after {   /* soft glow accent */
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 460px; height: 460px; right: -130px; top: -140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 80, 168, .16), transparent 66%);
}
.hero > .container { position: relative; z-index: 1; }
.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 52px; align-items: center; }

.hero__title {
  font-size: clamp(27px, 2.8vw, 40px); line-height: 1.2; letter-spacing: -.4px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero__cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }

.hero__media { position: relative; }
.hero__media img { border-radius: 20px; box-shadow: var(--shadow-lg); width: 100%; height: auto; }
.hero__badge {
  position: absolute; right: 22px; bottom: 22px;
  background: var(--navy); color: #fff; padding: 14px 20px; border-radius: 14px;
  text-align: center; box-shadow: var(--shadow-md); max-width: 200px;
  font-style: normal;
}
.hero__badge-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 26px; line-height: 1; }
.hero__badge-text { display: block; font-size: 13px; opacity: .85; margin-top: 4px; }

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 52px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 40px;
  padding: 12px 20px; font-size: 15px; font-weight: 500; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--burgundy); flex: none; }
.pill:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d3d8e0; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section__head { margin-bottom: 44px; }
.section__title { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.4px; font-weight: 600; }
.section__lead { margin-top: 16px; font-size: clamp(16.5px, 2vw, 19px); font-weight: 400; color: var(--ink-soft); font-family: var(--font-body); line-height: 1.5; }
.section__lead strong { color: var(--burgundy); font-weight: 600; }

/* ---------- Services ---------- */
.services { background: var(--bg-soft); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--bg-panel); border-radius: var(--radius); padding: 34px 30px 30px;
  display: flex; flex-direction: column; text-align: center;
  border: 1px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-6px); background: #fff; box-shadow: var(--shadow-md); border-color: var(--line); }
.card__icon {
  width: 78px; height: 78px; margin: 0 auto 18px; border-radius: 18px;
  display: grid; place-items: center; color: var(--navy);
  background: rgba(22, 52, 107, .07);
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.card:hover .card__icon { transform: scale(1.08) rotate(-4deg); background: var(--navy); color: #fff; }
.card__title { font-size: 22px; margin-bottom: 12px; }
.card__text { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 20px; }
.card__price { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--blue-deep); margin: auto 0 20px; }
.card__more {
  font-family: var(--font-head); font-style: italic; font-weight: 600; color: var(--navy);
  display: inline-flex; align-items: center; gap: 8px; align-self: center;
  transition: gap .25s var(--ease), color .2s var(--ease);
}
.card__more span { transition: transform .25s var(--ease); }
.card__more:hover { color: var(--burgundy); }
.card__more:hover span { transform: translateX(5px); }

.services__actions { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; margin-top: 48px; }
.services__actions--sub { margin-top: 22px; gap: 16px; }

/* ---------- How ---------- */
.how { background: #f6f7f9; position: relative; overflow: hidden; }
.how::before {   /* red lock watermark (matches original mockup) */
  content: ""; position: absolute; left: -70px; top: 90px; width: 340px; height: 480px;
  background: url(../assets/img/zamok-bg.svg) no-repeat center / contain;
  opacity: .06; pointer-events: none; z-index: 0;
}
.how__inner, .remember { position: relative; z-index: 1; }
.how__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.how__intro { position: relative; }
.how__lead { margin-top: 22px; font-size: clamp(17px, 2.1vw, 20px); font-weight: 400; font-family: var(--font-body); color: var(--ink-soft); line-height: 1.5; }
.how__lead .accent { font-weight: 500; }

.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.step:last-child { border-bottom: none; }
.step__num {
  flex: none; width: 54px; height: 54px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--navy);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.step:hover .step__num { background: var(--navy); color: #fff; transform: scale(1.06); }
.step__title { font-size: 22px; margin-bottom: 4px; }
.step__text { color: var(--ink-soft); font-size: 16px; }
.how__cta { grid-column: 2; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 12px; }

/* Remember / documents */
.remember { background: var(--burgundy); color: #fff; padding: 46px 0; margin-top: 70px; }
.remember__title { font-size: 26px; margin-bottom: 12px; }
.remember__text { max-width: 900px; font-size: 16.5px; opacity: .92; }
.remember__toggle {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 20px;
  color: #fff; font-family: var(--font-head); font-style: italic; font-weight: 600; font-size: 17px;
  border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 3px;
}
.remember__toggle:hover { border-bottom-color: #fff; }
.remember__arrow { display: inline-flex; transition: transform .35s var(--ease); }
.remember__toggle[aria-expanded="true"] .remember__arrow { transform: rotate(180deg); }
.documents-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.documents-wrap.is-open { grid-template-rows: 1fr; }
.documents-inner { overflow: hidden; }
.documents {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 26px;
  background: rgba(255,255,255,.08); border-radius: var(--radius); padding: 30px 32px;
}
.documents h4 { font-size: 17px; margin-bottom: 14px; }
.documents ul { display: flex; flex-direction: column; gap: 10px; }
.documents li { position: relative; padding-left: 20px; font-size: 15.5px; opacity: .95; }
.documents li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: .7; }
.documents__note { margin-top: 16px; font-size: 14px; opacity: .8; }
.documents__note a { text-decoration: underline; }

/* ---------- Important ---------- */
.important { background: var(--bg-soft); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.feature {
  background: #fff; border-radius: var(--radius); padding: 36px 32px;
  box-shadow: var(--shadow-sm); position: relative;
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  color: var(--navy); background: rgba(22, 52, 107, .08); margin-bottom: 20px;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.feature:hover .feature__icon { background: var(--burgundy); color: #fff; transform: translateY(-2px) scale(1.06); }
.feature__title { font-size: 20px; line-height: 1.3; margin-bottom: 12px; }
.feature__text { color: var(--ink-soft); font-size: 15.5px; line-height: 1.55; }

.important__bottom { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 28px; margin-top: 48px; }
.important__media { min-width: 0; }
.important__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* ---------- Reviews (carousel) ---------- */
.reviews { background: #f4f5f7; overflow: hidden; }
.reviews__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section__title--underline { position: relative; display: inline-block; }
.section__title--underline::after {
  content: ""; position: absolute; left: 0; bottom: -8px; width: 100%; height: 4px;
  background: var(--blue); border-radius: 3px;
}
.reviews__nav { display: flex; gap: 12px; flex: none; }
.rev-arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink-soft); display: grid; place-items: center;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.rev-arrow:hover:not(:disabled) { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-2px); }
.rev-arrow:disabled { opacity: .35; cursor: default; }

.reviews__viewport { width: 100%; }
.reviews__track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 24px 26px; scroll-padding-left: 24px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  max-width: calc(var(--container) + 48px); margin: 0 auto;
}
.reviews__track::-webkit-scrollbar { display: none; }
.rev-card {
  flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start;
  background: #fff; border-radius: 16px; padding: 26px 26px 24px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.rev-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.rev-card__ya { width: 30px; height: 30px; margin-bottom: 12px; }
.rev-card__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.rev-card__stars { color: #ffb400; font-size: 15px; letter-spacing: 1px; }
.rev-card__date { color: var(--muted); font-size: 13px; font-style: italic; }
.rev-card__title { font-size: 19px; line-height: 1.25; margin-bottom: 12px; }
.rev-card__text { color: var(--ink-soft); font-size: 15px; margin-bottom: 20px; }
.rev-card__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.rev-card__avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; }
.rev-card__name { font-size: 14.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { background: #f4f5f7; }
.faq__list { display: flex; flex-direction: column; gap: 14px; }
.faq__item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.faq__item.is-open { box-shadow: var(--shadow-sm); border-color: #d3d8e0; }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 26px; text-align: left;
  font-family: var(--font-head); font-weight: 500; font-size: 17px; color: var(--ink);
  transition: color .2s var(--ease);
}
.faq__q:hover { color: var(--burgundy); }
.faq__chevron { flex: none; color: var(--navy); display: grid; place-items: center; transition: transform .3s var(--ease); }
.faq__item.is-open .faq__chevron { transform: rotate(90deg); color: var(--burgundy); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a-inner { overflow: hidden; }
.faq__a-inner p { padding: 0 26px 22px; color: var(--ink-soft); font-size: 15.5px; max-width: 960px; }

/* ---------- SEO text ---------- */
.seo-text { background: #fff; }
.seo-text .section__title { font-size: clamp(24px, 3vw, 34px); margin-bottom: 20px; }
.seo-text__body { max-width: 940px; }
.seo-text__body p { color: var(--ink-soft); font-size: 16px; margin-bottom: 14px; }

/* ---------- Scroll to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  width: 48px; height: 48px; border-radius: 50%;
  background: #fff; color: var(--navy); border: 1px solid var(--line); box-shadow: var(--shadow-md);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #dfe6f2; padding: 56px 0 0; }
.logo--light .logo__mark { background: #fff; color: var(--navy); }
.site-footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.site-footer__phone { display: block; font-family: var(--font-head); font-weight: 800; font-size: 26px; color: #fff; margin: 20px 0 8px; transition: color .2s var(--ease); }
.site-footer__phone:hover { color: #ffd7e4; }
.site-footer__note { color: #aab8d4; font-size: 14px; margin-bottom: 18px; }
.site-footer__title { color: #fff; font-size: 17px; margin-bottom: 16px; }
.site-footer__links { display: flex; flex-direction: column; gap: 11px; }
.site-footer__links a { color: #c4d0e6; font-size: 15px; transition: color .2s var(--ease), padding-left .2s var(--ease); }
.site-footer__links a:hover { color: #fff; padding-left: 5px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 20px 0; }
.site-footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; color: #aab8d4; }
.site-footer__bottom-inner a { color: #c4d0e6; transition: color .2s var(--ease); }
.site-footer__bottom-inner a:hover { color: #fff; }

/* ---------- Hero sub ---------- */
.hero__sub { font-size: 16.5px; line-height: 1.55; color: var(--ink-soft); max-width: 520px; margin: 0 0 28px; }

/* ---------- Sticky mobile call ---------- */
.sticky-call {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  display: none; align-items: center; justify-content: center; gap: 10px;
  background: var(--burgundy); color: #fff; font-weight: 700; font-size: 17px;
  padding: 16px; border-radius: 14px; box-shadow: 0 12px 30px rgba(117,1,45,.4);
  animation: pulse 2.6s var(--ease) infinite;
}

/* ---------- Modals ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(10, 12, 16, .6); backdrop-filter: blur(3px); animation: fade .25s var(--ease); }
.modal__box {
  position: relative; background: #fff; border-radius: 20px; padding: 40px 36px;
  width: 100%; max-width: 440px; box-shadow: var(--shadow-lg);
  max-height: calc(100dvh - 40px); overflow-y: auto;
  animation: modalIn .35s var(--ease);
}
.modal__box--text { max-width: 560px; }
.modal__close {
  position: absolute; top: 14px; right: 16px; width: 40px; height: 40px;
  font-size: 30px; line-height: 1; color: var(--muted); border-radius: 10px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.modal__close:hover { background: var(--bg-soft); color: var(--ink); }
.modal__title { font-size: 26px; margin-bottom: 8px; }
.modal__sub { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 22px; }
.modal__scroll { max-height: 55vh; overflow-y: auto; }
.modal__scroll p { margin-bottom: 14px; color: var(--ink-soft); }
.modal__scroll a { color: var(--burgundy); text-decoration: underline; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.field input[type="text"], .field input[type="tel"] {
  font-family: inherit; font-size: 16px; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fbfbfc;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,80,168,.14); }
.field input[type="file"] { font-size: 14px; padding: 12px; border: 1.5px dashed var(--line); border-radius: 10px; background: #fbfbfc; }
.field.has-error input { border-color: #d92d20; }
.field__error { color: #d92d20; font-size: 13px; min-height: 0; }
.field.has-error .field__error { min-height: 16px; }
.consent { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--muted); }
.consent input { margin-top: 3px; accent-color: var(--burgundy); }
.consent a { color: var(--burgundy); text-decoration: underline; }

.form-success { text-align: center; padding: 20px 0; animation: fadeDown .4s var(--ease); }
.form-success__icon {
  width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%;
  background: #e7f6ec; color: #17924a; display: grid; place-items: center; font-size: 34px;
  animation: pop .5s var(--ease);
}
.form-success h3 { font-size: 22px; margin-bottom: 8px; }
.form-success p { color: var(--ink-soft); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
/* stagger children grids */
.cards .card, .features .feature, .reviews__grid .review, .pills .pill, .steps .step { transition-delay: calc(var(--i, 0) * 70ms); }

body.no-scroll { overflow: hidden; }

/* ---------- Animations ---------- */
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(0); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes pulse {
  0%, 100% { box-shadow: 0 12px 30px rgba(117,1,45,.4); }
  50% { box-shadow: 0 12px 30px rgba(117,1,45,.4), 0 0 0 8px rgba(117,1,45,.14); }
}

/* ---------- Header CTA (desktop) ---------- */
.header__cta { padding: 11px 20px; font-size: 15px; box-shadow: 0 6px 16px rgba(117, 1, 45, .3); }

/* ---------- Hero: phone row ---------- */
.hero__phone--row { flex-direction: row; align-items: baseline; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

/* ---------- Quiz ---------- */
[data-contact] .modal__box, .modal__box--quiz { max-width: 560px; }
.quiz { margin-top: 8px; }
.quiz__progress { height: 6px; border-radius: 4px; background: var(--bg-soft); overflow: hidden; margin-bottom: 24px; }
.quiz__bar { display: block; height: 100%; width: 25%; background: var(--burgundy); border-radius: 4px; transition: width .35s var(--ease); }
.quiz__step { animation: quizIn .35s var(--ease); }
.quiz__q { font-family: var(--font-head); font-weight: 500; font-size: 20px; margin-bottom: 18px; }
.quiz__opts { display: flex; flex-direction: column; gap: 12px; }
.quiz__opt {
  text-align: left; padding: 16px 20px; border-radius: 12px; background: #fff;
  border: 1.5px solid var(--line); font-size: 16px; font-weight: 500; color: var(--ink);
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease);
}
.quiz__opt:hover { border-color: var(--burgundy); background: #fdf2f6; transform: translateX(3px); }
.quiz__back {
  margin-top: 18px; color: var(--muted); font-size: 15px; font-weight: 500;
  transition: color .2s var(--ease);
}
.quiz__back:hover { color: var(--burgundy); }
.quiz__result {
  text-align: center; padding: 22px; margin-bottom: 22px; border-radius: 14px;
  background: linear-gradient(135deg, #fdf2f6, #eef1f6); border: 1px solid var(--line);
}
.quiz__result-label { display: block; font-size: 14px; color: var(--muted); }
.quiz__result-price { display: block; font-family: var(--font-head); font-weight: 800; font-size: 34px; color: var(--burgundy); margin: 4px 0 8px; }
.quiz__result-note { display: block; font-size: 13.5px; color: var(--ink-soft); }
@keyframes quizIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* ---------- Floating messengers ---------- */
.messengers { position: fixed; right: 24px; bottom: 84px; z-index: 82; display: flex; flex-direction: column; gap: 12px; }
.messenger {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  box-shadow: 0 8px 22px rgba(20, 24, 31, .22);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.messenger:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 12px 28px rgba(20, 24, 31, .3); }
.messenger--wa { background: #25d366; }
.messenger--tg { background: #229ed9; }
.messenger--max { background: transparent; overflow: hidden; border-radius: 15px; }
.messenger--max img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contact channels (в модалках) ---------- */
.channels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 10px 0 4px; }
.channel {
  display: flex; align-items: center; gap: 13px; padding: 15px 18px; border-radius: 14px;
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 15.5px;
  box-shadow: 0 6px 16px rgba(20, 24, 31, .14);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
.channel:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(20, 24, 31, .22); filter: brightness(1.05); }
.channel__ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; flex: none; }
.channel__ic--max { background: #fff; overflow: hidden; }
.channel__ic--max img { width: 34px; height: 34px; }
.channel__txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.channel__txt small { font-family: var(--font-body); font-weight: 500; font-size: 12px; opacity: .9; margin-top: 2px; white-space: nowrap; }
.channel--call { background: var(--burgundy); }
.channel--wa { background: #25d366; }
.channel--tg { background: #229ed9; }
.channel--max { background: linear-gradient(135deg, #6C5CE7, #3B7BFF); }
.channels--msg { grid-template-columns: 1fr; }
.channels__note { text-align: center; font-size: 14px; color: var(--ink-soft); margin-top: 14px; }
.channels__note a { color: var(--burgundy); font-weight: 700; white-space: nowrap; }
.callback-toggle {
  display: block; width: 100%; text-align: center; margin-top: 14px;
  color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px;
  transition: color .2s var(--ease);
}
.callback-toggle:hover { color: var(--burgundy); }
.callback-toggle[hidden] { display: none; }
.quiz__or { text-align: center; font-size: 13.5px; color: var(--muted); margin: 16px 0 12px; position: relative; }
.quiz__or::before, .quiz__or::after { content: ""; position: absolute; top: 50%; width: calc(50% - 40px); height: 1px; background: var(--line); }
.quiz__or::before { left: 0; }
.quiz__or::after { right: 0; }

/* ---------- Cookie notice ---------- */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 95; max-width: 380px;
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px;
  box-shadow: var(--shadow-lg); animation: fadeUp .4s var(--ease);
}
.cookie__text { font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); }
.cookie__text a { color: var(--burgundy); text-decoration: underline; }
.cookie__btn { flex: none; padding: 11px 22px; font-size: 14px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Footer requisites ---------- */
.site-footer__req { margin-top: 18px; font-size: 12.5px; line-height: 1.6; color: #8f9db8; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__media { order: -1; max-width: 560px; }
  .cards, .features { grid-template-columns: repeat(2, 1fr); }
  .how__inner { grid-template-columns: 1fr; gap: 36px; }
  .how__cta { grid-column: 1; }
  .important__bottom { grid-template-columns: 1fr; }
  .important__media { order: -1; }
  .rev-card { flex-basis: calc((100% - 24px) / 2); }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav, .header__contact, .header__cta { display: none; }
  .burger { display: flex; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .cards, .features { grid-template-columns: 1fr; }
  .documents { grid-template-columns: 1fr; gap: 24px; }
  .services__actions, .how__cta, .important__bottom { flex-direction: column; align-items: flex-start; text-align: left; }
  .services__actions { align-items: center; }
  .hero__cta { gap: 18px; }
  .hero__badge { right: 14px; bottom: 14px; padding: 10px 14px; }
  .hero__badge-num { font-size: 22px; }
  .sticky-call { display: flex; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 30px; }
  .site-footer__brand { grid-column: auto; }
  .site-footer__bottom-inner { justify-content: flex-start; gap: 8px; }
  .rev-card { flex-basis: 85%; }
  .reviews__track { padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; }
  .faq__q { font-size: 16px; padding: 18px 18px; }
  .faq__a-inner p { padding: 0 18px 20px; }
  .to-top { bottom: 88px; right: 16px; }
  .messengers { flex-direction: row; left: 16px; right: auto; bottom: 88px; gap: 10px; }
  .messenger { width: 46px; height: 46px; }
  .cookie { left: 12px; right: 12px; bottom: 150px; max-width: none; flex-direction: column; align-items: stretch; text-align: center; }
  body { padding-bottom: 78px; }   /* room for sticky call */
  .modal__box { padding: 32px 22px; }
  .channels { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
}

@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .btn--lg { padding: 16px 22px; font-size: 16px; }
  .logo__text { font-size: 15px; }
}

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