:root {
  --bg: #eef3f7;
  --bg-soft: #f7fafc;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.78);
  --line: #d6dee6;
  --line-strong: #c0ccd8;
  --text: #1d313f;
  --text-soft: #566c7b;
  --muted: #708594;
  --primary: #0e3554;
  --primary-strong: #0a2438;
  --accent: #0f7997;
  --accent-2: #14b5b1;
  --success: #0e7b67;
  --danger: #b42318;
  --shadow-lg: 0 28px 72px rgba(14, 53, 84, 0.12);
  --shadow-md: 0 18px 42px rgba(14, 53, 84, 0.1);
  --shadow-sm: 0 10px 24px rgba(14, 53, 84, 0.08);
  --radius-xl: 32px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 16px;
  --container: 1280px;
  --header-height: 92px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 121, 151, 0.08), transparent 28%),
    linear-gradient(180deg, #f6f9fb 0%, var(--bg) 35%, #edf3f7 100%);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(15, 121, 151, 0.28);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.section,
.contacts {
  padding: 96px 0;
  position: relative;
}

section[id],
.contacts[id] {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

:where(
  .hero-grid,
  .coverage-gallery,
  .coverage-meta,
  .brand-groups,
  .brand-grid,
  .services-grid,
  .systems-highlight,
  .systems-highlight__tags,
  .impact-grid,
  .fault-grid,
  .formats-grid,
  .docs-grid,
  .process-grid,
  .team-grid,
  .lead-grid,
  .form-grid,
  .faq-grid,
  .contacts-grid,
  .footer-grid
) > * {
  min-width: 0;
}

:where(h1, h2, h3) {
  margin: 0;
  font-family: Manrope, Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: manual;
}

h1 {
  font-size: clamp(2.5rem, 4.9vw, 4.7rem);
  max-width: 780px;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3.35rem);
}

h3 {
  font-size: clamp(1.22rem, 1.8vw, 1.55rem);
  line-height: 1.18;
}

p,
li,
summary,
span,
strong {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

p {
  margin: 0;
}

.pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image: radial-gradient(rgba(14, 53, 84, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.08) 60%, transparent);
}

.section-head {
  max-width: 780px;
  margin-bottom: 38px;
}

.section-head--compact {
  max-width: 700px;
}

.section-head--left {
  margin-bottom: 0;
}

.section-kicker,
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.82rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head p,
.hero-text,
.coverage-card__content p,
.coverage-meta__copy p,
.service-card p,
.systems-highlight__body p,
.impact-copy p,
.fault-card p,
.format-card p,
.docs-card p,
.process-step p,
.team-card__body p,
.lead-copy p,
.form-note,
.faq-list p,
.contacts-text,
.contact-list,
.contacts-card p,
.footer-grid p,
.footer-grid a {
  color: var(--text-soft);
}



/* Финальная полировка ритма: увеличиваем расстояние между крупными заголовками и описаниями */
.section-head > :is(h1, h2, h3) + p,
.impact-copy > h2 + p,
.lead-copy > h2 + p,
.contacts-grid > div:first-child > h2 + p,
.contacts-card__body > h3 + p {
  margin-top: 22px;
}

.section-head > p,
.impact-copy > p,
.lead-copy > p,
.contacts-grid > div:first-child > p {
  max-width: 62ch;
}

@media (max-width: 900px) {
  .section-head > :is(h1, h2, h3) + p,
  .impact-copy > h2 + p,
  .lead-copy > h2 + p,
  .contacts-grid > div:first-child > h2 + p,
  .contacts-card__body > h3 + p {
    margin-top: 18px;
  }
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(246, 249, 251, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(214, 222, 230, 0.92);
}

.header-grid {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-size: 1.08rem;
  line-height: 1;
}

.brand-copy span {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  height: 0;
}

.main-nav a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
}

.header-phone {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.header-phone-label {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.95rem;
  line-height: 1;
}

.header-phone-meta {
  display: none;
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.header-cta {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn {
  cursor: pointer;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  border-color: rgba(192, 204, 216, 0.9);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(192, 204, 216, 0.9);
  background: rgba(255, 255, 255, 0.96);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--primary);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-toggle .sr-only {
  display: none;
}

.hero {
  padding: 32px 0 64px;
  position: relative;
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 16%, rgba(15, 121, 151, 0.12), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(20, 181, 177, 0.11), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 28px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 3.9vw, 3.95rem);
  max-width: 18ch;
  hyphens: none;
  overflow-wrap: normal;
}

.hero :where(p, li) {
  hyphens: none;
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top left, rgba(20, 181, 177, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(235, 242, 247, 0.94));
  border: 1px solid rgba(214, 222, 230, 0.94);
  box-shadow: var(--shadow-md);
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 92px;
  height: 92px;
  border-radius: 24px;
  border: 1px solid rgba(14, 53, 84, 0.08);
  opacity: 0.54;
}

.hero-text {
  margin-top: 18px;
  max-width: 680px;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.hero-points li {
  position: relative;
  padding-left: 32px;
  font-size: 1rem;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(14, 53, 84, 0.05);
  border: 1px solid rgba(14, 53, 84, 0.08);
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-media {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
}

.hero-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #dfe8ef;
  border: 1px solid rgba(14, 53, 84, 0.08);
  box-shadow: var(--shadow-lg);
}

.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(14, 53, 84, 0), rgba(14, 53, 84, 0.16));
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* Logo marquee (в пределах сетки, плавно и бесконечно) */
.logos {
  background: linear-gradient(180deg, rgba(236, 243, 247, 0.76), rgba(255, 255, 255, 0.5));
}

.logo-strip {
  display: grid;
  gap: 10px;
}

.logo-strip__title {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--muted);
}

.logo-marquee {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(214, 222, 230, 0.92);
  box-shadow: var(--shadow-sm);
}

.logo-marquee::before,
.logo-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  pointer-events: none;
  z-index: 2;
}

.logo-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(248, 251, 253, 0.98), rgba(248, 251, 253, 0));
}

.logo-marquee::after {
  right: 0;
  background: linear-gradient(-90deg, rgba(248, 251, 253, 0.98), rgba(248, 251, 253, 0));
}

.logo-marquee__track {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  width: max-content;
  animation: logoMarquee var(--duration, 46s) linear infinite;
}

.logo-marquee--reverse .logo-marquee__track {
  animation-direction: reverse;
}

.logo-marquee:hover .logo-marquee__track {
  animation-play-state: paused;
}

.logo-pill {
  height: 56px;
  min-width: 140px;
  padding: 10px 14px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(192, 204, 216, 0.7);
  box-shadow: 0 10px 20px rgba(14, 53, 84, 0.06);
}

.logo-pill img {
  height: 100%;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.92;
}

@media (hover: hover) {
  .logo-pill:hover img {
    filter: none;
    opacity: 1;
  }
}

.logo-pill--text span {
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--primary);
}

@keyframes logoMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.hero-fact {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(214, 222, 230, 0.96);
  box-shadow: var(--shadow-sm);
}

.hero-fact strong {
  display: block;
  font-size: 1rem;
  color: var(--primary);
}

.hero-fact span {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.coverage {
  background: linear-gradient(180deg, rgba(235, 242, 247, 0.72), rgba(247, 250, 252, 0.94));
}

.brand-panel,
.coverage-meta,
.coverage-card,
.service-card,
.systems-highlight,
.fault-card,
.format-card,
.docs-card,
.process-step,
.team-card,
.lead-form,
.faq-list details,
.contacts-card,
.impact-note {
  border: 1px solid rgba(214, 222, 230, 0.94);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.coverage-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.coverage-card {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #dbe5ee;
  isolation: isolate;
}

.coverage-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 36, 56, 0.04) 24%, rgba(10, 36, 56, 0.2) 56%, rgba(10, 36, 56, 0.86) 100%);
  pointer-events: none;
}

.coverage-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.coverage-card__content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 18px;
}

.coverage-card__content h3 {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  color: #fff;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.coverage-card__content p {
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.coverage-meta {
  margin-top: 26px;
  padding: 24px 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(240, 246, 250, 0.88));
}

.coverage-meta__copy {
  max-width: 860px;
}

.coverage-meta__copy h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.coverage-meta__copy p:last-child {
  margin-top: 12px;
}

.brand-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.brand-panel {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(14,116,144,0.05), transparent 42%);
  pointer-events: none;
}

.brand-panel__head {
  margin-bottom: 18px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.logo-card {
  min-height: 72px;
  padding: 12px 16px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(248,251,253,0.98), rgba(242,247,250,0.98));
  border: 1px solid rgba(192, 204, 216, 0.84);
  box-shadow: 0 10px 24px rgba(14, 53, 84, 0.05);
}

.logo-card img {
  max-width: 160px;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.92;
  transition: filter 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.logo-card--text span {
  display: inline-block;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  text-wrap: balance;
}

.systems-highlight {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(234, 242, 247, 0.92));
}

.systems-highlight__media {
  overflow: hidden;
  border-radius: 24px;
}

.systems-highlight__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.systems-highlight__body {
  display: grid;
  gap: 14px;
  padding: 4px 2px;
}

.systems-highlight__body h3 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.systems-highlight__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.systems-highlight__tags span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(14, 53, 84, 0.05);
  border: 1px solid rgba(14, 53, 84, 0.08);
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 9px;
}

.service-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-soft);
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px;
  background: rgba(255, 255, 255, 0.96);
}

.service-card--accent {
  background: linear-gradient(180deg, rgba(14, 53, 84, 0.04), rgba(255, 255, 255, 0.98));
  border-color: rgba(15, 121, 151, 0.22);
}

.service-icon,
.docs-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 121, 151, 0.08);
  color: var(--primary);
  margin-bottom: 16px;
}

.service-icon svg,
.docs-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.impact {
  background: linear-gradient(180deg, rgba(234, 240, 245, 0.88), rgba(247, 250, 252, 1));
}

.impact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: start;
}

.impact-copy {
  display: grid;
  gap: 18px;
}

.impact-copy h2 {
  margin-bottom: 0;
}

.impact-cta-btn {
  margin-top: 8px;
}

.impact-right {
  display: grid;
  gap: 18px;
}

.impact-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.impact-media img {
  width: 100%;
  display: block;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.impact-note {
  padding: 22px;
  border-top: 0;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background: var(--surface);
}

.impact-note__list {
  margin: 14px 0 0;
  padding: 0 0 0 18px;
  color: var(--text-soft);
  display: grid;
  gap: 8px;
}

.impact-note strong {
  display: block;
  color: var(--primary);
}

.impact-note span {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
}

.fault-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.fault-card {
  padding: 24px;
  min-height: 180px;
}

.fault-card h3 {
  margin-bottom: 12px;
}

.formats {
  background: linear-gradient(180deg, rgba(240, 245, 249, 0.84), rgba(248, 251, 253, 0.98));
}

.formats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.format-card {
  padding: 24px;
  min-height: 100%;
}

.format-card__label {
  margin: 0 0 12px;
  font-size: 0.76rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.format-card h3 {
  margin-bottom: 10px;
}

.format-card--accent {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 46px rgba(14, 53, 84, 0.18);
}

.format-card--accent .format-card__label,
.format-card--accent h3,
.format-card--accent p {
  color: #fff;
}

.docs {
  background: linear-gradient(180deg, rgba(245, 248, 250, 0.8), rgba(236, 243, 247, 0.88));
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.docs-card {
  padding: 24px;
  min-height: 208px;
}

.docs-card h3 {
  margin-bottom: 10px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.process-step {
  position: relative;
  padding: 24px;
  min-height: 208px;
}

.process-step span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  margin-bottom: 18px;
}

.process-step h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
}

.team {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(236, 243, 247, 0.82));
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.team-card {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,251,0.98));
}

.team-card__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #dbe5ee;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  display: block;
}

.team-card--master-1 img {
  object-position: center 6%;
}

.team-card--master-2 img {
  object-position: center 8%;
}

.team-card--master-3 img {
  object-position: center 6%;
}

.team-card__body {
  padding: 18px 18px 20px;
  border-top: 1px solid rgba(214, 222, 230, 0.92);
}

.team-card__body h3 {
  margin-bottom: 4px;
  font-size: 1.18rem;
}

.team-role {
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Делаем карточки команды ровными по высоте и убираем «скачки» от длинных описаний */
.team-card__body p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.lead {
  background: linear-gradient(135deg, rgba(10, 36, 56, 0.98), rgba(15, 121, 151, 0.96));
  color: #fff;
}

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 32px;
  align-items: center;
}

.lead-copy h2,
.lead-copy p,
.lead-bullets,
.lead-bullets li,
.lead .section-kicker {
  color: #fff;
}

.lead-bullets {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.lead-bullets li {
  position: relative;
  padding-left: 24px;
}

.lead-bullets li::before {
  content: "—";
  position: absolute;
  left: 0;
}

.lead-form {
  position: relative;
  padding: 28px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
}

.lead-form::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lead-form label {
  display: block;
}

.lead-form label span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.lead-form input:not(.trap),
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(192, 204, 216, 0.96);
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 121, 151, 0.12);
}

.lead-form textarea {
  resize: vertical;
  min-height: 132px;
}

.lead-form > label + label,
.lead-form .form-grid + label,
.checkbox-row,
.btn-submit,
.form-note,
.form-status {
  margin-top: 16px;
}

.checkbox-row {
  display: grid !important;
  grid-template-columns: 20px 1fr;
  align-items: start;
  column-gap: 12px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.checkbox-row span {
  margin: 0 !important;
  color: var(--text-soft) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  text-align: left;
}

.checkbox-row a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.trap {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-note {
  font-size: 0.82rem;
}

.form-status {
  min-height: 24px;
  font-size: 0.92rem;
  font-weight: 700;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--danger);
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  padding: 0 22px;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 800;
  color: var(--primary);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--accent);
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list p {
  padding: 0 0 20px;
}

.contacts {
  padding-top: 0;
  padding-bottom: 104px;
}

.contacts h2 {
  white-space: nowrap;
  font-size: clamp(2.1rem, 3.1vw, 3.2rem);
  letter-spacing: -0.02em;
}

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.contact-list strong {
  color: var(--primary);
}

.contact-list a {
  color: var(--accent);
}

.contacts-card {
  display: block;
  padding: 22px;
}

.contacts-card__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
}

.contacts-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 0;
}

.contacts-card h3 {
  color: var(--primary);
}

.contacts-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.site-footer {
  padding: 36px 0 120px;
  border-top: 1px solid rgba(214, 222, 230, 0.92);
  background: #eaf0f4;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 24px;
}

.footer-grid strong {
  color: var(--primary);
}

.footer-links a,
.footer-grid p {
  display: block;
  margin-top: 8px;
  font-size: 0.96rem;
}

.mobile-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 112px));
  gap: 8px;
  z-index: 95;
  padding: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(14, 53, 84, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(14, 53, 84, 0.14);
}

@media (min-width: 821px) {
  .mobile-bar {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 18px;
    grid-template-columns: minmax(0, 220px) minmax(0, 128px) minmax(0, 160px);
    padding: 10px;
    gap: 10px;
    border-radius: 22px;
  }

  .mb-item {
    min-height: 56px;
  }

  .mb-item--call {
    justify-content: center;
    padding-inline: 14px;
    gap: 6px;
  }

  .mb-item--call .mb-icon,
  .mb-item--call .mb-label--mobile {
    display: none;
  }

  .mb-item--call .mb-phone-desktop {
    display: inline-block;
  }

  .mb-item--call .mb-call-caption {
    display: block;
  }

  .mb-item--call .mb-call-caption {
    display: block;
  }

  .mb-item span {
    font-size: 0.78rem;
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: 96px;
  }
}

.mb-item {
  min-height: 50px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px;
  border: 1px solid rgba(14, 53, 84, 0.1);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(14, 53, 84, 0.1);
  font-weight: 800;
}

.mb-item svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mb-item span {
  font-size: 0.72rem;
  line-height: 1;
  color: var(--text-soft);
  font-weight: 700;
}

.mb-label--desktop {
  display: none;
}

.mb-item:last-child {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: rgba(255, 255, 255, 0.18);
}

.mb-item:last-child svg {
  stroke: #fff;
}

.mb-item:last-child span {
  color: #fff;
}

@keyframes softPulse {
  0%,
  100% {
    box-shadow: 0 12px 28px rgba(14, 53, 84, 0.1);
  }
  50% {
    box-shadow: 0 18px 34px rgba(15, 121, 151, 0.18);
  }
}

.mobile-bar .mb-item:last-child {
  animation: softPulse 2.8s ease-in-out infinite;
}

.legal-page {
  padding: 56px 0 104px;
}

.legal-shell {
  max-width: 900px;
}

.legal-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(214, 222, 230, 0.94);
  box-shadow: var(--shadow-sm);
}

.legal-card h2 {
  font-size: 1.2rem;
  color: var(--primary);
}

.legal-card a {
  color: var(--accent);
}

@media (hover: hover) {
  .header-cta:hover,
  .btn-primary:hover,
  .btn-secondary:hover,
  .logo-card:hover,
  .coverage-card:hover,
  .coverage-meta:hover,
  .service-card:hover,
  .systems-highlight:hover,
  .fault-card:hover,
  .format-card:hover,
  .docs-card:hover,
  .process-step:hover,
  .team-card:hover,
  .faq-list details:hover,
  .contacts-card:hover,
  .impact-note:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(15, 121, 151, 0.22);
  }

  .coverage-card:hover img {
    transform: scale(1.04);
  }

  .logo-card:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-1px);
  }

  .logo-card--text:hover span {
    color: var(--accent);
  }

  .mb-item:hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 1280px) {
  .services-grid,
  .fault-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  :root {
    --header-height: 84px;
  }

  .header-grid {
    grid-template-columns: auto auto 1fr auto;
    gap: 16px;
  }

  .menu-toggle {
    display: inline-flex;
    order: 2;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 14px 16px 18px;
    background: rgba(246, 249, 251, 0.98);
    border-bottom: 1px solid rgba(214, 222, 230, 0.94);
    box-shadow: var(--shadow-md);
    transform-origin: top;
    transform: scaleY(0.94);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .main-nav.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(214, 222, 230, 0.76);
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .hero-grid,
  .impact-grid,
  .lead-grid,
  .faq-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .impact-cta-btn {
    width: 100%;
    justify-content: center;
  }

  .coverage-gallery,
  .services-grid,
  .fault-grid,
  .formats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brand-groups {
    grid-template-columns: 1fr;
  }

  .brand-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }


  .process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .coverage-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-facts,
  .hero-facts {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .fault-grid,
  .formats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .systems-highlight {
    grid-template-columns: 1fr;
  }

  .contacts-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 76px;
  }

  .section,
  .contacts {
    padding: 80px 0;
  }

  .site-footer {
    padding-bottom: 112px;
  }

  .mobile-bar {
    display: grid;
  }

  .header-grid {
    grid-template-columns: auto 1fr auto;
    min-height: var(--header-height);
  }

  .header-actions {
    display: none;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .brand-copy strong {
    font-size: 1rem;
  }

  .brand-copy span {
    font-size: 0.76rem;
  }

  .hero {
    padding-top: 20px;
    padding-bottom: 48px;
  }

  .hero-copy,
  .lead-form {
    padding: 24px 20px;
  }

  .hero-copy::after {
    width: 72px;
    height: 72px;
    right: 18px;
    bottom: 18px;
    border-radius: 20px;
  }

  .hero-facts,
  .coverage-gallery,
  .services-grid,
  .fault-grid,
  .formats-grid,
  .docs-grid,
  .team-grid,
  .footer-grid,
  .form-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .coverage-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coverage-meta,
  .systems-highlight {
    padding: 22px 20px;
  }

  .hero-actions,
  .contacts-actions {
    flex-direction: column;
  }

  .btn,
  .hero-actions .btn,
  .contacts-actions .btn {
    width: 100%;
  }

  .hero-trust span {
    flex: 1 1 calc(50% - 10px);
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .main-nav {
    padding-inline: 12px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  h2 {
    font-size: clamp(1.72rem, 8vw, 2.35rem);
  }

  .section-head {
    margin-bottom: 32px;
  }

  .hero-copy,
  .hero-image-wrap,
  .coverage-card,
  .coverage-meta,
  .brand-panel,
  .lead-form,
  .impact-media,
  .systems-highlight,
  .systems-highlight__media,
  .contacts-card {
    border-radius: 24px;
  }

  .hero-fact,
  .logo-card,
  .service-card,
  .fault-card,
  .format-card,
  .docs-card,
  .process-step,
  .faq-list details {
    border-radius: 20px;
  }

  /* На мобильном убираем декоративный элемент, чтобы не отвлекал от CTA */
  .hero-copy::after {
    display: none;
  }

  .contacts h2 {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .hero-copy,
  .lead-form {
    padding: 22px 18px;
  }

  .hero-points li,
  .hero-text {
    font-size: 0.98rem;
  }

  .hero-trust span {
    flex-basis: 100%;
  }

  .coverage-gallery {
    grid-template-columns: 1fr;
  }

  .coverage-card__content {
    padding: 16px;
  }

  .coverage-card__content p {
    font-size: 0.8rem;
  }

  .logo-card {
    min-height: 64px;
    padding: 10px 12px;
  }

  .logo-card img {
    max-width: 136px;
    max-height: 30px;
  }

  .logo-card--text span {
    font-size: 0.78rem;
  }

  .mobile-bar {
    left: 10px;
    right: 10px;
    width: auto;
    transform: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 6px;
  }

  .mb-item {
    min-height: 52px;
  }
}

@media (max-width: 430px) {
  .brand-copy span {
    display: none;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
  }

  .faq-list summary {
    min-height: 72px;
  }
}

@media (max-width: 390px) {
  .hero-trust span {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 0.82rem;
  }

  .section-kicker,
  .eyebrow {
    letter-spacing: 0.1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 980px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .team-card img,
  .team-card--master-1 img,
  .team-card--master-2 img,
  .team-card--master-3 img {
    object-position: center 7%;
  }
}


/* Final robust phone pill behavior */
.mb-phone-desktop {
  display: none;
  font-size: 1.04rem;
  line-height: 1;
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}

.mb-call-caption {
  display: none;
  font-size: 0.76rem;
  line-height: 1;
  color: var(--text-soft);
  font-weight: 700;
}
