/* =========================================================================
   ПОМОР — дизайн-система (поверх tokens.css)
   Современная медицинская палитра: бирюза/мята + графит, акцент-оранж для CTA.
   Mobile-first, clamp-типографика, секции с воздухом, анимации.
   ========================================================================= */

/* ---------- Reset / база ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

[x-cloak] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal-600); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--teal); }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--graphite); font-weight: 800; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }

.muted { color: var(--muted); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Контейнеры / секции ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.container--narrow { max-width: 760px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--surface); }

.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-title { font-size: var(--h2); margin-bottom: .35em; }
.section-sub { font-size: 1.125rem; color: var(--muted); margin: 0; }
.section-foot { text-align: center; margin-top: clamp(2rem, 4vw, 3rem); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .75rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--teal);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease),
    background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-accent {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  box-shadow: 0 10px 24px rgba(30, 143, 203, .32);
}
.btn-accent:hover { background: var(--accent-600); color: #fff; box-shadow: 0 14px 30px rgba(30, 143, 203, .4); }

.btn-outline {
  background: transparent;
  color: var(--teal-600);
  border-color: var(--teal);
}
.btn-outline:hover { background: var(--teal-050); color: var(--teal-600); }

.btn-ghost {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .26); color: #fff; }

.btn-light { background: #fff; color: var(--graphite); }
.btn-light:hover { background: #fff; color: var(--teal-600); }

.btn-lg { padding: 1.05rem 2rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }

/* спиннер htmx-индикатор внутри кнопки */
.btn .htmx-indicator { display: none; }
.btn.htmx-request .htmx-indicator { display: inline-block; }
.btn.htmx-request .btn-label { opacity: .6; }
.spinner {
  width: 1em; height: 1em;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================================
   ШАПКА
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 6px 24px rgba(14, 27, 38, .08);
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, .94);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--graphite); }
.logo-mark { font-size: 1.6rem; line-height: 1; }
.logo-text {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -.02em;
  line-height: 1;
}
.logo-text small { font-weight: 500; font-size: .68rem; color: var(--muted); letter-spacing: .01em; margin-top: 3px; }

.nav { display: flex; gap: clamp(1rem, 2vw, 1.75rem); }
.nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: .98rem;
  position: relative;
  padding: .25rem 0;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--teal);
  transition: right .25s var(--ease);
}
.nav a:hover { color: var(--teal-600); }
.nav a:hover::after { right: 0; }

.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-phone { font-weight: 800; color: var(--graphite); white-space: nowrap; }
.header-phone:hover { color: var(--teal-600); }

/* мобильное меню (бургер) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 22px;
  margin-inline: auto;
  background: var(--graphite);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   HERO + ПАРАЛЛАКС
   ========================================================================= */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(160deg, #0B3A5E 0%, var(--teal-600) 45%, var(--teal) 100%);
  color: #fff;
  padding-block: clamp(4rem, 9vw, 8rem) clamp(5rem, 10vw, 9rem);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-layer { position: absolute; border-radius: 50%; filter: blur(2px); will-change: transform; }
.hero-layer--1 { width: 60vw; height: 60vw; top: -20%; right: -10%; background: radial-gradient(circle at 30% 30%, rgba(91, 184, 230, .55), transparent 60%); }
.hero-layer--2 { width: 45vw; height: 45vw; bottom: -25%; left: -10%; background: radial-gradient(circle at 50% 50%, rgba(30, 143, 203, .45), transparent 60%); }
.hero-layer--3 { width: 30vw; height: 30vw; top: 20%; left: 35%; background: radial-gradient(circle, rgba(255, 255, 255, .12), transparent 60%); }

.hero-blob { position: absolute; border-radius: 46% 54% 60% 40% / 52% 48% 52% 48%; opacity: .5; will-change: transform; }
.hero-blob--a { width: 280px; height: 280px; top: 8%; right: 18%; background: rgba(255, 255, 255, .18); filter: blur(20px); }
.hero-blob--b { width: 220px; height: 220px; bottom: 12%; right: 8%; background: rgba(91, 184, 230, .3); filter: blur(24px); }

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 30%, #000 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-content { max-width: 640px; }
.hero-eyebrow {
  display: inline-block;
  font-size: .82rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  padding: .4rem .9rem; border-radius: 999px;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: var(--h1);
  color: #fff;
  margin-bottom: .4em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .2);
}
.hero-lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: rgba(255, 255, 255, .92); max-width: 38ch; margin-bottom: 2rem; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.75rem; }

.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(1.25rem, 4vw, 2.75rem); list-style: none; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.02em; }
.hero-stat-label { font-size: .92rem; color: rgba(255, 255, 255, .82); margin-top: .35rem; max-width: 14ch; }

/* щит-эмблема справа (десктоп) */
.hero-shield { display: none; position: relative; justify-self: center; will-change: transform; }
.hero-shield-mark { font-size: clamp(8rem, 16vw, 14rem); display: block; filter: drop-shadow(0 24px 50px rgba(0, 0, 0, .35)); }
.hero-shield-glow {
  position: absolute; inset: -20% -20% 0 -20%;
  background: radial-gradient(circle, rgba(255, 255, 255, .25), transparent 65%);
  animation: pulse 5s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }

/* волна-разделитель внизу hero */
.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 70px;
  background: var(--bg);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C360,90 1080,-10 1440,40 L1440,70 L0,70 Z' fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0,40 C360,90 1080,-10 1440,40 L1440,70 L0,70 Z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}

/* =========================================================================
   КАРТОЧКИ УСЛУГ
   ========================================================================= */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.service-cell { display: flex; }
.service-cell > .service-card { width: 100%; }

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), border-color .25s var(--ease);
}
.service-card::before {
  content: "";
  position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--teal), var(--mint));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card-icon {
  font-size: 2.5rem; line-height: 1;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: var(--teal-050);
  border-radius: var(--radius-sm);
  margin-bottom: 1.1rem;
  transition: transform .3s var(--ease);
}
.service-card:hover .service-card-icon { transform: scale(1.08) rotate(-4deg); }
.service-card-title { font-size: 1.2rem; margin-bottom: .4rem; }
.service-card-desc { font-size: .96rem; color: var(--muted); margin-bottom: 1.25rem; flex: 1; }
.service-card-foot { display: flex; align-items: center; justify-content: space-between; }
.service-card-price { font-weight: 800; color: var(--teal-600); font-size: 1.05rem; }
.service-card-arrow { color: var(--accent); font-weight: 800; transition: transform .25s var(--ease); }
.service-card:hover .service-card-arrow { transform: translateX(4px); }

/* =========================================================================
   ПОЧЕМУ МЫ
   ========================================================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.why-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease);
}
.section--alt .why-card { background: var(--bg); }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.why-icon {
  font-size: 1.75rem;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal-050), #fff);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}
.why-card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.why-card p { font-size: .96rem; color: var(--muted); margin: 0; }

/* =========================================================================
   КАЛЬКУЛЯТОР-ТИЗЕР + ФОРМЫ
   ========================================================================= */
.calc-teaser {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.calc-teaser-points { list-style: none; margin-top: 1.5rem; display: grid; gap: .65rem; }
.calc-teaser-points li { position: relative; padding-left: 1.9rem; color: var(--ink); }
.calc-teaser-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.35rem; height: 1.35rem;
  display: grid; place-items: center;
  background: var(--teal-050); color: var(--teal-600);
  border-radius: 50%; font-weight: 800; font-size: .8rem;
}

/* Поля форм */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .45rem; color: var(--graphite); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="email"],
select,
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235B6B73' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-050);
}

/* honeypot — спрятан и от глаз, и от скринридеров, и от автозаполнения */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

.form-hint { font-size: .8rem; margin: .75rem 0 0; }
.lead-form .btn { margin-top: .25rem; }

/* Успех формы */
.lead-success { text-align: center; padding: 1rem .5rem; animation: fadeInUp .45s var(--ease); }
.lead-success-icon {
  width: 64px; height: 64px; margin: 0 auto 1rem;
  display: grid; place-items: center;
  background: var(--ok); color: #fff;
  border-radius: 50%; font-size: 2rem; font-weight: 800;
  box-shadow: 0 10px 26px rgba(31, 174, 111, .35);
}
.lead-success-title { font-size: 1.4rem; margin-bottom: .35rem; }
.lead-success-text { color: var(--muted); margin-bottom: 1rem; }
.lead-success-sub { font-size: .92rem; }
.lead-success-phone { font-weight: 800; }

/* Результат калькулятора */
.calc-result-card {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--teal-050), #fff);
  border: 1.5px solid var(--teal);
  border-radius: var(--radius);
}
.calc-result-label { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.calc-result-sum { display: flex; align-items: baseline; gap: .4rem; margin: .3rem 0 .6rem; }
.calc-result-from { font-size: 1.1rem; color: var(--muted); font-weight: 600; }
.calc-result-value { font-size: clamp(2.2rem, 6vw, 3rem); font-weight: 800; color: var(--graphite); line-height: 1; letter-spacing: -.02em; }
.calc-result-cur { font-size: 1.5rem; font-weight: 800; color: var(--teal-600); }
.calc-result-text { color: var(--ink); margin-bottom: .35rem; }
.calc-result-note { font-size: .85rem; margin-bottom: 1.1rem; }

/* =========================================================================
   КАРУСЕЛЬ ОТЗЫВОВ
   ========================================================================= */
.carousel { max-width: 760px; margin-inline: auto; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius-lg); }
.carousel-track { display: flex; transition: transform .55s var(--ease); }
.carousel-slide { min-width: 100%; padding: .25rem; }

.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  margin: 0;
  text-align: center;
}
.review-stars { color: #FFB020; font-size: 1.25rem; letter-spacing: 2px; margin-bottom: 1rem; }
.review-stars .star-empty { color: var(--line); }
.review-text { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink); font-style: italic; line-height: 1.6; margin: 0 0 1.25rem; }
.review-text::before { content: "“"; }
.review-text::after { content: "”"; }
.review-author { font-weight: 700; color: var(--teal-600); }

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.carousel-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--graphite);
  font-size: 1.5rem; line-height: 1;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.carousel-btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; transform: scale(1.06); }
.carousel-dots { display: flex; gap: .5rem; }
.carousel-dot {
  width: 10px; height: 10px; padding: 0;
  border: none; border-radius: 50%;
  background: var(--line); cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.carousel-dot.is-active { background: var(--teal); transform: scale(1.3); }

/* =========================================================================
   FAQ-АККОРДЕОН
   (высота анимируется через grid-template-rows: 0fr -> 1fr)
   ========================================================================= */
.faq { display: grid; gap: .85rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq-item.is-open { border-color: var(--teal); box-shadow: var(--shadow); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.35rem;
  background: none; border: none;
  font-family: inherit; font-size: 1.08rem; font-weight: 700;
  color: var(--graphite); text-align: left; cursor: pointer;
}
.faq-q-icon { position: relative; width: 18px; height: 18px; flex: none; }
.faq-q-icon::before,
.faq-q-icon::after {
  content: ""; position: absolute; background: var(--teal); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.faq-q-icon::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-q-icon::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq-item.is-open .faq-q-icon::after { transform: rotate(90deg); opacity: 0; }

.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 { margin: 0; padding: 0 1.35rem 1.25rem; color: var(--muted); }

/* =========================================================================
   ФИНАЛЬНЫЙ CTA-БЛОК
   ========================================================================= */
.cta-band { padding-block: clamp(2.5rem, 5vw, 4rem); }
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
  text-align: center;
  color: #fff;
  isolation: isolate;
}
.cta-card-bg {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, var(--graphite), var(--teal-600));
}
.cta-card-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(30, 143, 203, .35), transparent 45%),
    radial-gradient(circle at 15% 90%, rgba(22, 194, 163, .4), transparent 50%);
}
.cta-title { color: #fff; font-size: var(--h2); margin-bottom: .4em; }
.cta-sub { color: rgba(255, 255, 255, .9); font-size: 1.125rem; max-width: 46ch; margin: 0 auto 2rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* =========================================================================
   PAGE HEAD (заголовки внутренних страниц)
   ========================================================================= */
.page-head {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, var(--teal-050), var(--bg));
  border-bottom: 1px solid var(--line);
}
.page-title { font-size: var(--h1); margin-bottom: .3em; }
.page-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 60ch; margin: 0; }

.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--teal-600); }

/* =========================================================================
   ФИЛЬТР УСЛУГ
   ========================================================================= */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.filter-chip {
  padding: .6rem 1.25rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit; font-weight: 600; font-size: .95rem;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.filter-chip:hover { border-color: var(--teal); transform: translateY(-1px); }
.filter-chip.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }

/* =========================================================================
   ДЕТАЛЬНАЯ УСЛУГА
   ========================================================================= */
.service-hero-icon {
  font-size: 3rem;
  width: 84px; height: 84px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}
.service-hero-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.75rem; }
.service-meta-item { display: flex; flex-direction: column; }
.service-meta-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.service-meta-value { font-weight: 800; font-size: 1.15rem; color: var(--graphite); margin-top: .15rem; }

.service-detail-layout { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 3rem); align-items: start; }

.service-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; margin-top: 2rem; }
.service-feature { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--graphite); }
.service-feature span { color: var(--teal-600); font-weight: 800; }

.service-aside { display: grid; gap: 1.25rem; position: sticky; top: 90px; }
.service-order-title { font-size: 1.3rem; margin-bottom: .25rem; }
.service-call-card { text-align: center; }
.service-call-phone { display: block; font-size: 1.5rem; font-weight: 800; color: var(--graphite); margin: .35rem 0 .15rem; }
.service-call-phone:hover { color: var(--teal-600); }
.service-call-alt { display: block; font-size: 1.05rem; }

/* =========================================================================
   PROSE (статьи и описания услуг — html из markdown)
   ========================================================================= */
.prose { font-size: 1.075rem; line-height: 1.75; color: var(--ink); }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 2rem 0 .75rem; }
.prose h3 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); margin: 1.75rem 0 .6rem; }
.prose p { margin: 0 0 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.prose li { margin-bottom: .5rem; }
.prose ul li::marker { color: var(--teal); }
.prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--graphite); }
.prose blockquote {
  margin: 1.5rem 0; padding: 1rem 1.5rem;
  border-left: 4px solid var(--teal);
  background: var(--teal-050);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink); font-style: italic;
}
.prose img { border-radius: var(--radius); margin: 1.5rem 0; }
.prose code { background: var(--teal-050); padding: .15em .4em; border-radius: 6px; font-size: .9em; }

/* =========================================================================
   СТАТЬИ
   ========================================================================= */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
.article-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .3s var(--ease);
}
.article-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.article-card-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--teal-050); }
.article-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.article-card:hover .article-card-cover img { transform: scale(1.05); }
.article-card-cover-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 3rem; background: linear-gradient(135deg, var(--teal-050), #fff); }
.article-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.article-card-date { font-size: .85rem; margin-bottom: .5rem; }
.article-card-title { font-size: 1.2rem; margin-bottom: .5rem; }
.article-card-excerpt { font-size: .96rem; color: var(--muted); flex: 1; margin-bottom: 1rem; }
.article-card-more { font-weight: 700; color: var(--accent); }

.article-page-head { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 3vw, 2rem); background: linear-gradient(180deg, var(--teal-050), var(--bg)); }
.article-page-date { display: block; font-size: .9rem; margin-bottom: .75rem; }
.article-page-title { font-size: var(--h1); margin-bottom: .35em; }
.article-page-lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); margin: 0; }
.article-page-cover { margin: clamp(1.5rem, 4vw, 2.5rem) 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 8; }
.article-page-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-page-body { padding-block: clamp(1.5rem, 3vw, 2.5rem); }

.empty-state { text-align: center; padding: 3rem 1rem; font-size: 1.1rem; }

/* =========================================================================
   О КОМПАНИИ
   ========================================================================= */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  text-align: center;
}
.stat-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1rem;
  box-shadow: var(--shadow);
}
.stat-block-num { display: block; font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; color: var(--teal-600); line-height: 1; letter-spacing: -.02em; }
.stat-block-label { display: block; font-size: .92rem; color: var(--muted); margin-top: .5rem; }

.region-block { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.region-list { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.region-list li {
  padding: .45rem 1rem;
  background: var(--teal-050);
  color: var(--teal-600);
  border-radius: 999px;
  font-weight: 600; font-size: .92rem;
}
.region-aside { text-align: center; display: grid; gap: .5rem; align-content: start; justify-items: center; padding: 1.5rem; background: var(--bg); border-radius: var(--radius); }
.region-badge { font-size: 2.5rem; }

.requisites { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.requisite-row { display: grid; grid-template-columns: 1fr; gap: .15rem; padding: 1rem 1.25rem; }
.requisite-row + .requisite-row { border-top: 1px solid var(--line); }
.requisite-row dt { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.requisite-row dd { margin: 0; font-weight: 600; color: var(--graphite); }

/* =========================================================================
   КОНТАКТЫ
   ========================================================================= */
.contacts-layout { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 4vw, 3rem); align-items: start; }
.contacts-info { display: grid; gap: 1.5rem; }
.contact-block { padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.contact-block:last-child { border-bottom: none; padding-bottom: 0; }
.contact-block-title { font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.contact-phone { display: block; font-size: 1.4rem; font-weight: 800; color: var(--graphite); }
.contact-phone:hover { color: var(--teal-600); }
.contact-phone--alt { font-size: 1.15rem; margin-top: .5rem; }
.contact-note { display: block; font-size: .88rem; margin-top: .15rem; }
.contact-link { display: block; font-weight: 600; margin-bottom: .25rem; }
.contact-text { margin: 0 0 .35rem; }
.contact-socials { display: flex; gap: .75rem; flex-wrap: wrap; }
.social-link {
  padding: .55rem 1.25rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.social-link:hover { background: var(--teal-050); border-color: var(--teal); }
.contacts-form-title { font-size: 1.4rem; margin-bottom: .25rem; }

/* карта-заглушка */
.map-placeholder {
  position: relative;
  height: clamp(260px, 40vw, 420px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #e9f4f3, #d8ebe9);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.map-placeholder-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15, 163, 163, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 163, 163, .12) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-placeholder-pin { font-size: 3rem; filter: drop-shadow(0 8px 12px rgba(14, 27, 38, .25)); animation: bob 2.5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.map-placeholder-label {
  position: absolute; bottom: 1.25rem; left: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: .85rem 1.15rem;
  box-shadow: var(--shadow);
  display: grid; gap: .15rem;
}
.map-placeholder-label strong { color: var(--graphite); }
.map-placeholder-label span { font-size: .9rem; color: var(--muted); }

/* =========================================================================
   ПОЛНОЭКРАННЫЙ КАЛЬКУЛЯТОР
   ========================================================================= */
.calc-page { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }

.object-type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.object-type {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding: 1.1rem .75rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer; text-align: center;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .15s var(--ease);
}
.object-type:hover { border-color: var(--teal); transform: translateY(-2px); }
.object-type input { position: absolute; opacity: 0; pointer-events: none; }
.object-type-icon { font-size: 1.75rem; line-height: 1; }
.object-type-label { font-weight: 700; font-size: .92rem; color: var(--graphite); }
.object-type.is-active { border-color: var(--teal); background: var(--teal-050); box-shadow: 0 0 0 3px var(--teal-050); }

.calc-page-result { position: sticky; top: 90px; }
.calc-placeholder {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--surface);
}
.calc-placeholder-icon { font-size: 2.5rem; margin-bottom: .75rem; }

/* =========================================================================
   ПОДВАЛ
   ========================================================================= */
.site-footer { background: var(--graphite); color: rgba(255, 255, 255, .8); padding-block: clamp(3rem, 5vw, 4rem) 1.5rem; margin-top: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: .85rem; }
.footer-col p { margin: 0 0 .6rem; font-size: .95rem; }
.footer-col a { color: rgba(255, 255, 255, .85); }
.footer-col a:hover { color: var(--mint); }
.footer-col .muted { color: rgba(255, 255, 255, .55); }
.logo--footer { color: #fff; margin-bottom: 1rem; }
.logo--footer .logo-text { color: #fff; }
.logo--footer .logo-text small { color: rgba(255, 255, 255, .6); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: rgba(255, 255, 255, .5); }

/* =========================================================================
   ЛИПКАЯ КНОПКА + МОДАЛКА
   ========================================================================= */
.fab-call {
  position: fixed;
  z-index: 90;
  right: 1.25rem; bottom: 1.25rem;
  width: 60px; height: 60px;
  border: none; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(30, 143, 203, .45);
  display: grid; place-items: center;
  animation: fabPulse 2.6s ease-in-out infinite;
  transition: transform .2s var(--ease);
}
.fab-call:hover { transform: scale(1.08); }
@keyframes fabPulse {
  0% { box-shadow: 0 12px 28px rgba(30, 143, 203, .45), 0 0 0 0 rgba(30, 143, 203, .5); }
  70% { box-shadow: 0 12px 28px rgba(30, 143, 203, .45), 0 0 0 16px rgba(30, 143, 203, 0); }
  100% { box-shadow: 0 12px 28px rgba(30, 143, 203, .45), 0 0 0 0 rgba(30, 143, 203, 0); }
}

.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(14, 27, 38, .55); backdrop-filter: blur(4px); animation: fadeIn .25s var(--ease); }
.modal-card {
  position: relative;
  width: 100%; max-width: 460px;
  max-height: 92vh; overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  animation: modalIn .35s var(--ease);
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 40px; height: 40px;
  border: none; border-radius: 50%;
  background: var(--bg); color: var(--graphite);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.modal-close:hover { background: var(--line); transform: rotate(90deg); }
.modal-title { font-size: 1.5rem; margin-bottom: .25rem; }

/* =========================================================================
   АНИМАЦИИ
   ========================================================================= */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* reveal-on-scroll: стартовое состояние + появление при .in */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }

/* лёгкий стаггер для карточек в гридах */
.service-grid [data-reveal].in,
.why-grid [data-reveal].in,
.article-grid [data-reveal].in { transition-delay: .05s; }

/* =========================================================================
   АДАПТИВ (mobile-first → расширяем вверх)
   ========================================================================= */
@media (min-width: 600px) {
  .region-block { grid-template-columns: 1.6fr 1fr; }
  .object-type-grid { grid-template-columns: repeat(4, 1fr); }
  .requisite-row { grid-template-columns: 200px 1fr; gap: 1rem; align-items: baseline; }
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .calc-teaser { grid-template-columns: 1fr 1fr; }
  .contacts-layout { grid-template-columns: 1fr 1.1fr; }
  .service-detail-layout { grid-template-columns: 1.6fr 1fr; }
  .calc-page { grid-template-columns: 1.3fr 1fr; }
}

@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.2fr .8fr; }
  .hero-shield { display: block; }
}

/* мобильное меню: до 880px прячем горизонтальную навигацию */
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: .5rem 0;
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
    z-index: 95;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: .9rem clamp(1rem, 4vw, 2rem); border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .header-cta .btn-accent { padding: .7rem 1.1rem; font-size: .92rem; }
}

@media (max-width: 460px) {
  .field-row { grid-template-columns: 1fr; }
  .hero-cta .btn, .cta-actions .btn { width: 100%; }
  .object-type-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================================
   PREFERS-REDUCED-MOTION — уважаем настройку пользователя
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-layer, .hero-blob, .hero-shield { transform: none !important; }
}

/* ===== Главная: контакты + соцсети ===== */
.contacts-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-bottom: 2.5rem;
}
.contact-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact-card-icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  font-size: 1.5rem; border-radius: 14px;
  background: var(--teal-050); margin-bottom: 1rem;
}
.contact-card h3 { font-size: 1.15rem; margin-bottom: .6rem; color: var(--graphite); }
.contact-card p { margin: .15rem 0; font-weight: 600; }
.contact-card a { color: var(--teal-600); }
.contact-card a:hover { color: var(--teal); }
.contact-card-note { display: block; margin-top: .6rem; font-size: .85rem; color: var(--muted); font-weight: 400; }

.socials {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  padding: 1.5rem 1.75rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.socials-label { font-weight: 700; color: var(--graphite); }
.socials-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.social-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .92rem;
  color: #fff; background: var(--teal);
  transition: transform .2s var(--ease), filter .2s var(--ease);
}
.social-btn:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.08); }
.social-btn--tg { background: #2AABEE; }
.social-btn--vk { background: #0077FF; }
.social-btn--wa { background: #25D366; }
.social-btn--max { background: #1E8FCB; }
.social-btn--rt { background: #14233A; }
@media (max-width: 560px) { .socials { flex-direction: column; align-items: flex-start; } }
