/* =========================================================
   ПЕТРОВИЧ — сантехника, электрика, кондиционеры
   Дизайн-система: #0B2F5C (тёмно-синий) + #F5A623 (оранжевый)
   ========================================================= */

:root {
  --navy: #0b2f5c;
  --navy-700: #0f3a70;
  --navy-800: #082446;
  --navy-900: #061933;
  --orange: #f5a623;
  --orange-600: #e0940f;
  --orange-700: #c67f08;
  --white: #ffffff;
  --ink: #16233a;
  --ink-soft: #4d5975;
  --line: #e3e8f0;
  --bg-alt: #f4f7fb;
  --bg-card: #ffffff;
  --success: #2e9e5b;
  --danger: #d64545;

  --font-base: 'Manrope', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --container: 1180px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-s: 0 2px 10px rgba(11, 47, 92, 0.08);
  --shadow-m: 0 10px 30px rgba(11, 47, 92, 0.12);
  --shadow-l: 0 20px 50px rgba(11, 47, 92, 0.18);

  --header-h: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

body {
  font-family: var(--font-base);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: var(--header-h);
}

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

section { padding: 88px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange);
  color: var(--navy-900);
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 800; color: var(--navy-900); line-height: 1.15; }
h1 { font-size: clamp(2rem, 4.2vw, 3.15rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.25rem; }
p { color: var(--ink-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-700);
  background: rgba(245, 166, 35, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head--center { max-width: 680px; margin-inline: auto; text-align: center; }
.section-head p { margin-top: 12px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius-s);
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--orange {
  background: var(--orange);
  color: var(--navy-900);
  box-shadow: var(--shadow-s);
}
.btn--orange:hover { background: var(--orange-600); box-shadow: var(--shadow-m); }

.btn--navy {
  background: var(--navy);
  color: var(--white);
}
.btn--navy:hover { background: var(--navy-700); }

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn--outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn--outline:hover { background: var(--navy); color: var(--white); }

.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 0.88rem; }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- Icon ---------- */
.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 1.9; flex-shrink: 0; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(11, 47, 92, 0.97);
  backdrop-filter: blur(6px);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo__mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
  font-weight: 800;
  font-size: 1.35rem;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { color: var(--white); font-weight: 800; font-size: 1.18rem; letter-spacing: 0.01em; }
.logo__tag { color: rgba(255,255,255,0.6); font-size: 0.68rem; letter-spacing: 0.03em; }

.site-nav { margin-inline: auto; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__list li { margin: 0; }
.site-nav__list a {
  display: block;
  color: rgba(255,255,255,0.82);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
}
.site-nav__list a:hover { color: var(--white); }
.site-nav__list a.is-active { color: var(--orange); }

.site-header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }

.header-phone {
  display: flex;
  flex-direction: column;
  color: var(--white);
  text-align: right;
  white-space: nowrap;
}
.header-phone__num { font-weight: 800; font-size: 1rem; white-space: nowrap; }
.header-phone__hint { font-size: 0.7rem; color: rgba(255,255,255,0.6); white-space: nowrap; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: radial-gradient(1100px 520px at 85% -10%, rgba(245,166,35,0.20), transparent 60%),
              linear-gradient(160deg, var(--navy-900) 0%, var(--navy) 55%, var(--navy-700) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 90px 0 76px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,0.5) 40%, transparent 90%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.hero__badge .icon { color: var(--orange); }

.hero h1 { color: var(--white); }
.hero h1 span { color: var(--orange); }
.hero__subtitle { margin-top: 18px; font-size: 1.12rem; color: rgba(255,255,255,0.8); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero__trust { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero__trust-item strong { display: block; font-size: 1.55rem; color: var(--white); font-weight: 800; }
.hero__trust-item span { font-size: 0.82rem; color: rgba(255,255,255,0.6); }

.hero__panel {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-l);
  padding: 28px;
  backdrop-filter: blur(4px);
}
.hero__panel-title { color: var(--white); font-weight: 700; font-size: 1.05rem; margin-bottom: 18px; }
.hero__panel-list { display: flex; flex-direction: column; gap: 14px; }
.hero__panel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  color: rgba(255,255,255,0.88);
  font-size: 0.92rem;
  font-weight: 600;
}
.hero__panel-row .icon { width: 20px; height: 20px; color: var(--orange); }
.hero__panel-foot { margin-top: 18px; font-size: 0.8rem; color: rgba(255,255,255,0.55); }

/* =========================================================
   SERVICES
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 32px 28px;
  box-shadow: var(--shadow-s);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.service-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--navy), var(--navy-700));
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-card__icon .icon { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { flex-grow: 1; }
.service-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.service-card__price { font-weight: 800; color: var(--navy-900); }
.service-card__price small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 0.72rem; }
.service-card__link { color: var(--orange-700); font-weight: 700; font-size: 0.88rem; display: flex; align-items: center; gap: 4px; }

/* =========================================================
   WHY US
   ========================================================= */
.why-us { background: var(--bg-alt); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.why-item {
  background: var(--white);
  border-radius: var(--radius-m);
  padding: 26px 20px;
  text-align: center;
  border: 1px solid var(--line);
}
.why-item__icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(11,47,92,0.07);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-item h3 { font-size: 1rem; margin-bottom: 6px; }
.why-item p { font-size: 0.86rem; }

/* =========================================================
   WORKS (gallery)
   ========================================================= */
.works__scroller {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.works__scroller::-webkit-scrollbar { height: 8px; }
.works__scroller::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }

.work-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-s);
}
.work-card__media {
  height: 200px;
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-700) 55%, var(--orange) 165%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  position: relative;
}
.work-card__media .icon { width: 34px; height: 34px; }
.work-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11,47,92,0.55);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.work-card__body { padding: 16px 18px; }
.work-card__body h3 { font-size: 0.98rem; margin-bottom: 4px; }
.work-card__body p { font-size: 0.84rem; margin: 0; }
.works__note { margin-top: 16px; font-size: 0.82rem; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }

/* =========================================================
   FOR BUSINESS
   ========================================================= */
.for-business {
  background: linear-gradient(160deg, var(--navy-900), var(--navy));
  color: var(--white);
  border-radius: var(--radius-l);
  margin-inline: 20px;
  max-width: calc(var(--container) + 40px);
  margin-inline: auto;
  padding: 64px;
  position: relative;
  overflow: hidden;
}
.for-business::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(245,166,35,0.14);
}
.for-business__inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; }
.for-business h2 { color: var(--white); }
.for-business p { color: rgba(255,255,255,0.78); margin-top: 14px; font-size: 1.02rem; }
.for-business__list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.for-business__list li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,0.88); font-weight: 600; font-size: 0.94rem; }
.for-business__list .icon { color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.for-business__actions { margin-top: 30px; }
.for-business__card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-m);
  padding: 26px;
}
.for-business__card ul { display: flex; flex-direction: column; gap: 16px; }
.for-business__card li { display: flex; justify-content: space-between; font-size: 0.92rem; color: rgba(255,255,255,0.85); padding-bottom: 14px; border-bottom: 1px dashed rgba(255,255,255,0.16); }
.for-business__card li:last-child { border-bottom: none; padding-bottom: 0; }
.for-business__card strong { color: var(--white); }

/* =========================================================
   CALCULATOR
   ========================================================= */
.calc { background: var(--bg-alt); }
.calc__wrap {
  background: var(--white);
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-m);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  overflow: hidden;
}
.calc__form { padding: 44px; }
.calc__field { margin-bottom: 22px; }
.calc__field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; color: var(--navy-900); }
.calc__field select,
.calc__field input {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--line);
  background: var(--white);
  font-size: 0.96rem;
  transition: border-color .15s ease;
}
.calc__field select:focus,
.calc__field input:focus { outline: none; border-color: var(--orange); }
.calc__hint { font-size: 0.78rem; color: var(--ink-soft); margin-top: 6px; }

.calc__result {
  background: linear-gradient(165deg, var(--navy-900), var(--navy));
  color: var(--white);
  padding: 44px;
  display: flex;
  flex-direction: column;
}
.calc__result h3 { color: var(--white); font-size: 1.05rem; margin-bottom: 20px; }
.calc__result-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,0.18); font-size: 0.92rem; color: rgba(255,255,255,0.8); }
.calc__result-row strong { color: var(--white); }
.calc__total { margin-top: 20px; padding: 18px; background: rgba(245,166,35,0.14); border: 1px solid rgba(245,166,35,0.4); border-radius: var(--radius-s); }
.calc__total span { font-size: 0.8rem; color: rgba(255,255,255,0.7); display: block; margin-bottom: 4px; }
.calc__total strong { font-size: 1.8rem; color: var(--orange); font-weight: 800; }
.calc__result .btn { margin-top: 24px; }
.calc__disclaimer { margin-top: 14px; font-size: 0.74rem; color: rgba(255,255,255,0.55); }

/* =========================================================
   REVIEWS
   ========================================================= */
.reviews-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-s);
}
.review-card__stars { color: var(--orange); display: flex; gap: 3px; margin-bottom: 12px; }
.review-card__stars .icon { width: 15px; height: 15px; fill: currentColor; }
.review-card p { font-size: 0.9rem; flex-grow: 1; }
.review-card__author { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.review-card__author strong { display: block; font-size: 0.88rem; color: var(--navy-900); }
.review-card__author span { font-size: 0.76rem; color: var(--ink-soft); }

/* =========================================================
   CONTACTS
   ========================================================= */
.contacts { background: var(--bg-alt); }
.contacts__wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 32px; align-items: stretch; }
.contacts__info {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-row__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(11,47,92,0.08); color: var(--navy);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-row strong { display: block; color: var(--navy-900); font-size: 0.98rem; }
.contact-row span, .contact-row a { font-size: 0.9rem; color: var(--ink-soft); }
.contact-row a:hover { color: var(--orange-700); }
.contacts__messengers { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.contacts__messengers a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: 0.84rem; font-weight: 700; color: var(--navy-900);
}
.contacts__messengers a:hover { border-color: var(--orange); color: var(--orange-700); }
.msg-badge {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px; flex-shrink: 0;
}
.msg-badge img { width: 100%; height: 100%; display: block; }

.contacts__map { border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); min-height: 320px; }
.contacts__map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.7); }
.site-footer__top { display: grid; grid-template-columns: 1.3fr 0.9fr 0.9fr 1fr; gap: 40px; padding: 64px 0 40px; }
.site-footer h4 { color: var(--white); font-size: 0.92rem; margin-bottom: 16px; letter-spacing: 0.02em; }
.site-footer p, .site-footer a { font-size: 0.86rem; }
.site-footer a:hover { color: var(--orange); }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-docs { display: flex; flex-direction: column; gap: 10px; }
.footer-docs a { display: flex; align-items: center; gap: 8px; }
.footer-brand .logo__name { color: var(--white); }
.footer-brand p { margin-top: 14px; max-width: 320px; }
.footer-req { margin-top: 16px; font-size: 0.78rem; color: rgba(255,255,255,0.45); line-height: 1.7; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--orange); color: var(--navy-900); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}
.site-footer__bottom a { color: rgba(255,255,255,0.6); }

/* =========================================================
   FLOATING WIDGETS
   ========================================================= */
.float-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 400;
  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: var(--shadow-m);
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform .15s ease;
}
.float-btn:hover { transform: scale(1.07); }
.float-btn--tg { background: #2aabee; }
.float-btn--max { background: var(--orange); color: var(--navy-900); }
.float-btn--up { background: var(--navy); font-size: 1.1rem; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .15s ease; }
.float-btn--up.is-visible { opacity: 1; pointer-events: auto; }

.mobile-callbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 450;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(11,47,92,0.12);
  padding: 10px 14px;
  gap: 10px;
}
.mobile-callbar a, .mobile-callbar button { flex: 1; }

/* =========================================================
   MODAL / FORM
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 16, 33, 0.6);
  backdrop-filter: blur(2px);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--white);
  border-radius: var(--radius-l);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  transform: translateY(14px) scale(0.98);
  transition: transform .22s ease;
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }

.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
}
.modal__close:hover { background: var(--line); }

.modal__eyebrow { color: var(--orange-700); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.modal h3 { font-size: 1.35rem; margin-bottom: 6px; }
.modal p.modal__sub { font-size: 0.9rem; margin-bottom: 22px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 0.86rem; margin-bottom: 7px; color: var(--navy-900); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--line);
  font-size: 0.94rem;
  background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); }
.field textarea { resize: vertical; min-height: 80px; }
.field--file {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-s);
  padding: 14px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.field--file:hover { border-color: var(--orange); }
.field--file input { display: none; }

.field-error { color: var(--danger); font-size: 0.78rem; margin-top: 6px; display: none; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }
.field.has-error .field-error { display: block; }

.form-consent { font-size: 0.76rem; color: var(--ink-soft); margin-top: 14px; }
.form-consent a { color: var(--navy); text-decoration: underline; }

.form-success { text-align: center; padding: 10px 0; }
.form-success__icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(46,158,91,0.12); color: var(--success);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.form-success__icon .icon { width: 30px; height: 30px; }
.form-success h3 { margin-bottom: 8px; }

/* =========================================================
   PAGE HERO (inner pages)
   ========================================================= */
.page-hero {
  background: linear-gradient(160deg, var(--navy-900), var(--navy));
  color: var(--white);
  padding: 54px 0;
}
.page-hero .breadcrumbs { font-size: 0.84rem; color: rgba(255,255,255,0.55); margin-bottom: 14px; }
.page-hero .breadcrumbs a:hover { color: var(--orange); }
.page-hero h1 { color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.page-hero p { color: rgba(255,255,255,0.75); margin-top: 10px; max-width: 560px; }

/* ---------- Services catalogue ---------- */
.catalog-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--navy-900);
}
.filter-btn:hover { border-color: var(--orange); }
.filter-btn.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.catalog-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 26px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease, transform .15s ease;
}
.catalog-card:hover { box-shadow: var(--shadow-m); transform: translateY(-3px); }
.catalog-card__cat { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--orange-700); margin-bottom: 10px; }
.catalog-card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(11,47,92,0.08); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.catalog-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.catalog-card p { font-size: 0.88rem; flex-grow: 1; }
.catalog-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.catalog-card__price { font-weight: 800; color: var(--navy-900); font-size: 0.98rem; }
.catalog-empty { text-align: center; padding: 60px 20px; color: var(--ink-soft); display: none; }
.catalog-empty.is-visible { display: block; }

/* ---------- Thank you page ---------- */
.thanks {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  background: var(--bg-alt);
}
.thanks__card {
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
  max-width: 560px;
  margin-inline: auto;
  padding: 56px 44px;
  text-align: center;
}
.thanks__icon {
  width: 84px; height: 84px; border-radius: 50%;
  background: rgba(46,158,91,0.12); color: var(--success);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 26px;
}
.thanks__icon .icon { width: 40px; height: 40px; }
.thanks__card p { margin-top: 12px; font-size: 1rem; }
.thanks__steps { text-align: left; margin: 30px 0; display: flex; flex-direction: column; gap: 14px; }
.thanks__steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--ink-soft); }
.thanks__steps b { color: var(--navy); background: rgba(11,47,92,0.08); width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; }
.thanks__actions { display: flex; gap: 12px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .for-business__inner { grid-template-columns: 1fr; }
  .calc__wrap { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts__wrap { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .header-phone { display: none; }
  .site-header__actions > .btn { display: none; }
  .nav-toggle { display: flex; }

  .site-header.is-open .site-nav {
    display: block;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--navy-900);
    padding: 18px 20px 24px;
    box-shadow: var(--shadow-l);
  }
  .site-header.is-open .site-nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .site-header.is-open .site-nav__list a { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); }

  .mobile-callbar { display: flex; }
  body { padding-bottom: 72px; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .site-footer__top { grid-template-columns: 1fr; padding: 48px 0 30px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .for-business { padding: 40px 24px; border-radius: var(--radius-m); }
  .calc__form, .calc__result { padding: 28px; }
  .contacts__info { padding: 26px; }
  .hero { padding: 56px 0 88px; }
  .hero__trust { gap: 20px; }
  .float-stack { right: 14px; bottom: 86px; }
  .thanks__card { padding: 40px 24px; }
}
