/* ============ ЗАМОК24 — служба вскрытия замков ============ */

:root {
  --navy: #0f1b2d;
  --navy-2: #16263f;
  --navy-3: #1e3352;
  --accent: #ff9f1c;
  --accent-2: #ff7a00;
  --accent-soft: #fff3e0;
  --text: #16202e;
  --muted: #64748b;
  --line: #e6ebf2;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 45px -22px rgba(15, 27, 45, .45);
  --shadow-sm: 0 10px 25px -18px rgba(15, 27, 45, .5);
  --container: 1180px;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

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

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

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

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--lg { padding: 17px 34px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a1200;
  box-shadow: 0 14px 28px -12px rgba(255, 122, 0, .75);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -12px rgba(255, 122, 0, .85); }

.btn--ghost {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid rgba(255, 159, 28, .6);
}
.btn--outline:hover { background: rgba(255, 159, 28, .12); }

/* ============ TOPBAR ============ */
.topbar {
  background: var(--navy);
  color: #cdd9ea;
  font-size: 13px;
  font-weight: 600;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 38px;
}
.topbar__badge {
  color: var(--accent);
  letter-spacing: .02em;
}
.topbar__city { opacity: .8; }

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(15, 27, 45, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: box-shadow .25s ease;
}
.header.is-scrolled { box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .65); }
.header__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 76px;
}

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #14213d;
  box-shadow: 0 10px 20px -10px rgba(255, 122, 0, .8);
}
.logo__mark svg { width: 26px; height: 26px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text b { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.logo__text b span { color: var(--accent); }
.logo__text small { font-size: 11px; color: rgba(255, 255, 255, .55); font-weight: 600; }

.nav { display: flex; gap: 24px; margin-left: auto; }
.nav__link {
  font-weight: 600;
  font-size: 15px;
  color: rgba(255, 255, 255, .85);
  position: relative;
  padding: 6px 0;
  transition: color .18s ease;
}
.nav__link::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width .22s ease;
}
.nav__link:hover { color: var(--accent); }
.nav__link:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 18px; }
.phone { display: flex; align-items: center; gap: 10px; }
.phone__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-2);
}
.phone__icon svg { width: 20px; height: 20px; }
.phone__text { display: flex; flex-direction: column; line-height: 1.2; }
.phone__text small { font-size: 11px; color: rgba(255, 255, 255, .55); font-weight: 600; }
.phone__text b { font-size: 16px; color: #fff; font-weight: 800; white-space: nowrap; }
.phone:hover .phone__text b { color: var(--accent); }

.burger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; transition: background .2s ease; }
.burger span { width: 24px; height: 2.5px; background: #fff; border-radius: 3px; transition: transform .25s ease, opacity .2s ease; }
.burger.is-active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(255, 159, 28, .16), transparent 60%),
    linear-gradient(180deg, #f4f8ff 0%, #e9f0fb 100%);
  color: var(--text);
  overflow: hidden;
  padding: 78px 0 88px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(15, 27, 45, .07) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hero__glow {
  position: absolute;
  width: 520px; height: 520px;
  right: -160px; top: -160px;
  background: radial-gradient(circle, rgba(255, 159, 28, .22), transparent 65%);
  filter: blur(20px);
  animation: floaty 9s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-24px, 26px); } }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .9fr;
  gap: 54px;
  align-items: center;
}
.hero__media { display: flex; justify-content: center; align-items: flex-end; align-self: end; }
.hero__photo {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  background: linear-gradient(160deg, #e7eefb, #d6e3f8);
  border: 1px solid rgba(15, 27, 45, .08);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__eyebrow {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 50px;
  background: rgba(255, 159, 28, .16);
  border: 1px solid rgba(255, 159, 28, .4);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.hero__title span {
  background: linear-gradient(120deg, var(--accent), #ffd07a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__text {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
}
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts b { font-size: 26px; font-weight: 800; color: var(--navy); }
.hero__facts span { font-size: 13px; color: var(--muted); }

/* ============ SECTIONS ============ */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 700px; margin: 0 auto 52px; }
.section__title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.section__sub { color: var(--muted); font-size: 17px; }

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

/* ============ ADVANTAGES ============ */
.adv {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.adv:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(255, 159, 28, .45); }
.adv__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-2);
  margin-bottom: 20px;
}
.adv__icon svg { width: 28px; height: 28px; }
.adv h3 { font-size: 19px; color: var(--navy); margin-bottom: 8px; }
.adv p { color: var(--muted); font-size: 15px; }

/* ============ SERVICES ============ */
.service {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service__icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  color: var(--accent);
  margin-bottom: 20px;
}
.service__icon svg { width: 30px; height: 30px; }
.service h3 { font-size: 20px; color: var(--navy); margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.service__link { margin-top: auto; color: var(--accent-2); font-weight: 700; font-size: 15px; }
.service__link:hover { text-decoration: underline; }

/* ============ PRICES ============ */
.price-table {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.price-row:last-child { border-bottom: 0; }
.price-row:nth-child(odd) { background: #fafcff; }
.price-row span { color: var(--navy-2); }
.price-row b { color: var(--accent-2); font-weight: 800; white-space: nowrap; }
.price-extra { max-width: 720px; margin: 40px auto 0; }
.price-extra h3 { font-size: 22px; color: var(--navy); margin-bottom: 18px; text-align: center; }
.price-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 28px; }

/* ============ STEPS ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.step__num {
  display: inline-block;
  font-size: 34px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  margin-bottom: 14px;
}
.step h3 { font-size: 19px; color: var(--navy); margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ============ STATS ============ */
.stats {
  background:
    linear-gradient(rgba(15, 27, 45, .72), rgba(30, 51, 82, .74)),
    url('../img/stats.jpg') center/cover no-repeat;
  padding: 62px 0;
}
.stats__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat { color: #fff; }
.stat__num {
  display: block;
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.02em;
  line-height: 1.1;
}
.stat span { color: #9fb0c7; font-size: 15px; }

/* ============ GALLERY ============ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  background: var(--navy-2);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 20, 33, .78));
  opacity: .85;
  transition: opacity .3s ease;
}
.gallery__item figcaption {
  position: absolute;
  left: 18px; bottom: 16px;
  z-index: 2;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .01em;
}
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item:hover::after { opacity: 1; }

/* ============ FAQ ============ */
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  text-align: left;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  transition: color .18s ease;
}
.faq__q:hover { color: var(--accent-2); }
.faq__arrow {
  position: relative;
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  transition: transform .25s ease, background .25s ease;
}
.faq__arrow::before, .faq__arrow::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 2px;
  background: var(--accent-2);
  border-radius: 2px;
  transform: translate(-50%, -50%);
}
.faq__arrow::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__arrow { transform: rotate(180deg); background: var(--accent); }
.faq__item.is-open .faq__arrow::before { background: #fff; }
.faq__item.is-open .faq__arrow::after { background: #fff; }
.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}
.faq__a p { color: var(--muted); padding: 0 4px 24px; font-size: 15px; }

/* ============ CALLBACK ============ */
.callback {
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(255, 159, 28, .22), transparent 60%),
    linear-gradient(135deg, rgba(15, 27, 45, .75) 0%, rgba(30, 51, 82, .72) 100%),
    url('../img/cta.jpg') center/cover no-repeat;
  color: #fff;
  padding: 76px 0;
}
.callback__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 54px;
  align-items: center;
}
.callback__text h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.callback__text p { color: #c3d0e3; font-size: 17px; margin-bottom: 26px; max-width: 460px; }
.callback__phone { display: inline-flex; flex-direction: column; }
.callback__phone small { color: #93a5bd; font-size: 13px; font-weight: 600; }
.callback__phone b { font-size: 30px; font-weight: 800; color: var(--accent); letter-spacing: -.01em; }
.callback__inner--center { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.callback__inner--center .callback__text { display: flex; flex-direction: column; align-items: center; }
.callback__inner--center .callback__text p { max-width: 560px; }
.callback__inner--center .callback__text .btn { margin-top: 8px; }

/* ============ FORM ============ */
.form {
  background: #fff;
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow);
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form__field { display: flex; flex-direction: column; gap: 7px; }
.form__field span { font-size: 13px; font-weight: 700; color: var(--navy-2); }
.form__field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #f9fbfe;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form__field input::placeholder { color: #a9b6c7; }
.form__field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 159, 28, .16);
  background: #fff;
}
.form__field input.is-error { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .14); }
.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.form__consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent-2); flex-shrink: 0; }
.form__consent a { color: var(--accent-2); text-decoration: underline; }
.form__status { font-size: 14px; font-weight: 600; text-align: center; min-height: 20px; }
.form__status.is-ok { color: #16a34a; }
.form__status.is-err { color: #e5484d; }

/* ============ FOOTER ============ */
.footer { background: #0a1421; color: #9fb0c7; padding: 64px 0 28px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.logo--light .logo__text b { color: #fff; }
.logo--light .logo__text small { color: #6f819a; }
.footer__about { margin-top: 18px; font-size: 14px; max-width: 360px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.footer__links li { margin-bottom: 10px; }
.footer__links a { font-size: 15px; transition: color .18s ease; }
.footer__links a:hover { color: var(--accent); }
.footer__phone { display: block; font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.footer__phone:hover { color: var(--accent); }
.footer__note { font-size: 13px; margin-bottom: 18px; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  font-size: 13px;
  flex-wrap: wrap;
}
.footer__bottom p { max-width: 560px; }

/* ============ FAB ============ */
.fab {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 55;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #14213d;
  box-shadow: 0 16px 32px -10px rgba(255, 122, 0, .8);
  animation: pulse-fab 2.4s infinite;
}
.fab svg { width: 28px; height: 28px; }
.fab:hover { transform: scale(1.06); }
@keyframes pulse-fab {
  0% { box-shadow: 0 16px 32px -10px rgba(255, 122, 0, .8), 0 0 0 0 rgba(255, 122, 0, .5); }
  70% { box-shadow: 0 16px 32px -10px rgba(255, 122, 0, .8), 0 0 0 18px rgba(255, 122, 0, 0); }
  100% { box-shadow: 0 16px 32px -10px rgba(255, 122, 0, .8), 0 0 0 0 rgba(255, 122, 0, 0); }
}

/* ============ MODAL ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal__overlay {
  position: absolute; inset: 0;
  background: rgba(10, 20, 33, .62);
  backdrop-filter: blur(4px);
  animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: 22px;
  padding: 34px 32px;
  box-shadow: var(--shadow);
  animation: pop .25s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__dialog h3 { font-size: 24px; color: var(--navy); margin-bottom: 8px; }
.modal__dialog > p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.modal__close {
  position: absolute;
  top: 14px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  display: grid; place-items: center;
  transition: background .18s ease, color .18s ease;
}
.modal__close:hover { background: var(--bg-alt); color: var(--navy); }
.modal__dialog .form { padding: 0; box-shadow: none; }

/* ============ RESPONSIVE ============ */

/* --- Якоря не прячутся под шапкой --- */
section[id], footer[id] { scroll-margin-top: 96px; }

/* --- Планшеты --- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 0; }
  .hero__content { display: contents; }
  .hero__eyebrow { justify-self: start; }
  .hero__media { order: 1; justify-content: center; align-self: auto; margin: 6px 0 30px; }
  .hero__facts { order: 2; }
  .hero__photo { max-width: 340px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .callback__inner { grid-template-columns: 1fr; gap: 36px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* --- Скрываем текст телефона в шапке --- */
@media (max-width: 900px) {
  .header__actions .phone__text { display: none; }
}

/* --- Мобильное меню и шапка --- */
@media (max-width: 820px) {
  .container { padding: 0 16px; }
  .nav {
    position: fixed;
    inset: 0;
    display: none;
    padding: calc(104px + env(safe-area-inset-top)) 24px 40px;
    background: #fff;
    flex-direction: column;
    gap: 2px;
    box-shadow: var(--shadow);
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 50;
  }
  .nav.is-open {
    display: flex;
    animation: navIn .3s ease both;
  }
  @keyframes navIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .nav__link { font-size: 19px; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--navy); }
  .nav__link:hover { color: var(--accent-2); }
  .nav__link:last-child { border-bottom: 0; }
  .nav__link::after { display: none; }
  .burger { display: flex; order: 3; position: relative; z-index: 60; }
  .burger.is-active { background: rgba(15, 27, 45, .06); }
  .burger.is-active span { background: var(--navy); }
  .header__actions { order: 2; margin-left: auto; }
  .header__inner { gap: 12px; min-height: 68px; }
  .header__actions .phone__icon { display: none; }
  .header__actions .phone__text { display: flex; }
  .header__actions .phone__text small { display: none; }
  .header__actions .phone__text b { font-size: 15px; }
}

/* --- Телефоны --- */
@media (max-width: 680px) {
  .topbar { font-size: 12px; }
  .topbar__inner { justify-content: center; }
  .topbar__city { display: none; }

  .section { padding: 56px 0; }
  .section__head { margin-bottom: 32px; }
  .section__title { font-size: clamp(24px, 7.5vw, 30px); }
  .section__sub { font-size: 15px; }

  .hero { padding: 48px 0 56px; }
  .hero__photo { max-width: 300px; }
  .hero__title { margin-bottom: 16px; }
  .hero__text { font-size: 16px; margin-bottom: 26px; }
  .hero__actions { margin-bottom: 30px; }
  .hero__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 12px; width: 100%; text-align: center; }
  .hero__facts li { align-items: center; }
  .hero__facts li:nth-child(3) { grid-column: 1 / -1; }
  .hero__facts b { font-size: 21px; }
  .hero__facts span { font-size: 12px; line-height: 1.35; }

  .grid { gap: 18px; }
  .grid--3 { grid-template-columns: 1fr; }
  .adv, .service { padding: 26px 22px; }

  .steps { grid-template-columns: 1fr; gap: 18px; }
  .step { padding: 26px 22px; }

  .stats { padding: 52px 0; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }

  .price-row { padding: 15px 18px; font-size: 15px; gap: 14px; }
  .price-row b { font-size: 15px; }
  .price-extra { margin-top: 30px; }
  .price-extra h3 { font-size: 20px; }
  .price-note { font-size: 13px; margin-top: 22px; }

  .gallery { gap: 14px; }
  .gallery__item figcaption { font-size: 15px; left: 14px; bottom: 12px; }

  .faq__q { font-size: 16px; padding: 18px 2px; gap: 14px; }
  .faq__a p { font-size: 14px; padding: 0 2px 20px; }

  .callback { padding: 58px 0; }
  .callback__text p { font-size: 16px; margin-bottom: 22px; }

  .btn--lg { padding: 15px 26px; font-size: 15px; }

  .form { padding: 24px; }

  .footer { padding: 52px 0 24px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__phone { font-size: 20px; }
  .footer__bottom { flex-direction: column; }

  .fab {
    width: 56px; height: 56px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}

/* --- Маленькие телефоны --- */
@media (max-width: 480px) {
  .logo__text small { display: none; }
  .hero__eyebrow { font-size: 12px; padding: 7px 14px; }
  .hero__photo { max-width: 250px; }
  .adv, .service, .step { padding: 24px 20px; }
}

/* --- Очень узкие экраны --- */
@media (max-width: 400px) {
  .logo__text b { font-size: 18px; }
  .header__actions .phone__text b { font-size: 14px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
}
