/* САНЭПИДПАРИТЕТ — основные стили */

:root {
  --brand-50: #f0f7ff;
  --brand-100: #dbeeff;
  --brand-200: #b3d6fa;
  --brand-300: #7bbdf5;
  --brand-400: #3d9ced;
  --brand-500: #086ed9;
  --brand-600: #0668c4;
  --brand-700: #0558b0;
  --brand-800: #064a96;
  --brand-950: #031e4a;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --emerald-100: #d1fae5;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --red-400: #f87171;
  --red-500: #ef4444;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Manrope", system-ui, sans-serif;
  --container-max: 80rem;
  --header-height: 4rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --shadow-brand: 0 2px 20px rgba(8, 110, 217, 0.1);
  --shadow-card: 0 20px 40px -10px rgba(8, 110, 217, 0.18);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--slate-800);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body:not(.home-page) main { padding-top: var(--header-height); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

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

.is-hidden { display: none !important; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

.section { padding-block: 5rem; }
@media (min-width: 1024px) { .section { padding-block: 3rem; } }

.section--muted { background: var(--slate-50); }
.section--white { background: #fff; border-top: 1px solid var(--slate-100); }

.section__eyebrow {
  color: var(--brand-500);
  font: 700 0.875rem/1.4 ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.125rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  margin: 0 0 1rem;
  text-wrap: balance;
}

.section__lead {
  font-family: var(--font-sans);
  color: var(--slate-600);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 42rem;
  margin: 0 auto;
  text-wrap: pretty;
}

.section__header { text-align: center; margin-bottom: 3.5rem; }
.section__cta { text-align: center; margin-top: 3rem; }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }
.reveal.delay-100 { transition-delay: 0.1s; }
.reveal.delay-200 { transition-delay: 0.2s; }
.reveal.delay-300 { transition-delay: 0.3s; }
.reveal.delay-400 { transition-delay: 0.4s; }
.reveal.delay-500 { transition-delay: 0.5s; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  font-weight: 700;
  border-radius: var(--radius-xl);
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
}

.btn:active { transform: scale(0.95); }

.btn--primary {
  padding: 0.625rem 1.25rem;
  background: var(--brand-500);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(8, 110, 217, 0.15);
}

.btn--primary:hover { background: var(--brand-600); }
.btn--sm { padding: 0.5rem 0.875rem; font-size: 0.8125rem; }
.btn--lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn--full { width: 100%; }

.btn--white {
  padding: 0.875rem 1.75rem;
  background: #fff;
  color: var(--brand-700);
  font-size: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn--white:hover { background: var(--brand-50); }

.btn--ghost {
  padding: 0.875rem 1.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.btn--ghost:hover { background: rgba(255, 255, 255, 0.2); }

.btn--outline {
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--brand-200);
  color: var(--brand-700);
  font-weight: 600;
  background: transparent;
}

.btn--outline:hover { background: var(--brand-50); }
.btn__icon { width: 1rem; height: 1rem; flex-shrink: 0; }
.btn__icon--spin { animation: spin 1s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--slate-100);
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-brand);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-height);
  position: relative;
}

@media (min-width: 1024px) { .site-header__inner { height: 4.5rem; } }

.site-header__start {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
  min-width: 0;
}

.site-header__logo { flex-shrink: 0; display: flex; align-items: center; }
.site-header__logo img { height: 30px; width: auto; }

.site-header__phone-block {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  flex-shrink: 0;
  padding-left: 1.25rem;
  border-left: 1px solid var(--slate-200);
}

@media (min-width: 1024px) {
  .site-header__phone-block { display: flex; }
}

.site-header__nav {
  display: none;
  align-items: center;
  flex: 1;
  justify-content: center;
  min-width: 0;
}
@media (min-width: 1024px) { .site-header__nav { display: flex; } }

.site-header__right {
  display: none;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
}
@media (min-width: 1024px) { .site-header__right { display: flex; } }

.site-header .btn--primary { padding-left: 1.5rem; padding-right: 1.5rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav__item { position: relative; }

.main-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
  border-radius: var(--radius-lg);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.main-nav__link:hover,
.main-nav__item.is-active > .main-nav__link {
  color: var(--brand-600);
  background: var(--brand-50);
}

/* 1024–1199: без уплотнения меню наезжает на телефон и мессенджеры */
@media (min-width: 1024px) and (max-width: 1199px) {
  .site-header__start { gap: 0.75rem; }
  .site-header__phone-block { padding-left: 0.75rem; }
  .site-header__right { gap: 0.5rem; }
  .site-header .btn--primary { padding-left: 1rem; padding-right: 1rem; }
  .main-nav__link { padding-inline: 0.5rem; }
}

.main-nav__chevron {
  font-size: 1.125rem;
  line-height: 1;
  transition: transform 0.2s;
}

.main-nav__item--dropdown.is-open .main-nav__chevron {
  transform: rotate(180deg);
}

.main-nav__item--dropdown.is-open > .main-nav__link {
  color: var(--brand-600);
  background: var(--brand-50);
}

.main-nav__link:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}

.main-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 15rem;
  padding: 0.5rem 0 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s var(--ease-out), transform 0.18s var(--ease-out), visibility 0.18s;
  z-index: 60;
}

.main-nav__dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 0.75rem;
}

.main-nav__dropdown-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.main-nav__dropdown:not(.main-nav__dropdown--mega) .main-nav__dropdown-inner {
  padding: 0.5rem;
}

.main-nav__item--dropdown.is-open .main-nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.main-nav__item--mega { position: static; }

.main-nav__dropdown--mega {
  left: 50%;
  right: auto;
  width: min(72rem, calc(100vw - 2rem));
  min-width: 0;
  max-height: min(75vh, 32rem);
  padding: 0.75rem 0 0;
  transform: translate(-50%, 6px);
}

.main-nav__dropdown--mega::before {
  height: 2.5rem;
}

.main-nav__dropdown--mega .main-nav__dropdown-inner {
  max-height: min(75vh, 32rem);
  overflow: auto;
  padding: 1.25rem 1.5rem;
}

.main-nav__item--mega.is-open .main-nav__dropdown--mega {
  transform: translate(-50%, 0);
}

.main-nav__dropdown-all {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-600);
  border-radius: var(--radius-lg);
}

.main-nav__dropdown-all:hover { background: var(--brand-50); }

.main-nav__dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav__dropdown-link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--slate-700);
  border-radius: var(--radius-lg);
  line-height: 1.35;
}

.main-nav__dropdown-link:hover,
.main-nav__dropdown-link.is-active,
.main-nav__mega-link.is-active,
.main-nav__mega-title.is-active {
  color: var(--brand-600);
  background: var(--brand-50);
}

.main-nav__mega-grid {
  display: grid;
  gap: 1.25rem 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1100px) {
  .main-nav__mega-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* «Услуги»: две колонки — виды услуг и направления деятельности */
.main-nav__dropdown--mega:has(.main-nav__mega-grid--two) {
  width: min(56rem, calc(100vw - 2rem));
  max-height: none;
}

.main-nav__dropdown--mega:has(.main-nav__mega-grid--two) .main-nav__dropdown-inner {
  max-height: min(80vh, 40rem);
  padding: 0;
  gap: 0;
}

.main-nav__mega-grid.main-nav__mega-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.main-nav__mega-grid--two .main-nav__mega-col {
  padding: 1.25rem 1rem 1rem;
}

.main-nav__mega-grid--two .main-nav__mega-col + .main-nav__mega-col {
  border-left: 1px solid var(--slate-100);
}

.main-nav__mega-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0.5rem 0.5rem;
}

.main-nav__mega-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--slate-500);
}

.main-nav__mega-all {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.25rem 0.375rem;
  margin-right: -0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-600);
  border-radius: var(--radius-lg);
  white-space: nowrap;
  transition: background 0.15s;
}

.main-nav__mega-all:hover { background: var(--brand-50); }
.main-nav__mega-all-icon { font-size: 1rem; }

.main-nav__mega-grid--two .main-nav__mega-list {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.main-nav__mega-link.main-nav__mega-link--icon {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.375rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-700);
  border-radius: var(--radius-lg);
  transition: background 0.15s, color 0.15s;
}

.main-nav__mega-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 1.25rem;
  color: var(--brand-600);
  background: var(--brand-50);
  border-radius: var(--radius-lg);
  transition: background 0.15s, color 0.15s;
}

.main-nav__mega-icon .material-symbols-outlined { font-size: inherit; }

.main-nav__mega-link--icon:hover,
.main-nav__mega-link--icon:focus-visible,
.main-nav__mega-link--icon.is-active {
  color: var(--brand-700);
  background: var(--slate-50);
}

.main-nav__mega-link--icon:hover .main-nav__mega-icon,
.main-nav__mega-link--icon:focus-visible .main-nav__mega-icon,
.main-nav__mega-link--icon.is-active .main-nav__mega-icon {
  color: #fff;
  background: var(--brand-600);
}

.main-nav__mega-link--icon:focus-visible,
.main-nav__mega-all:focus-visible,
.main-nav__mega-phone:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: -2px;
}

.main-nav__mega-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
  background: var(--slate-50);
  border-top: 1px solid var(--slate-100);
}

.main-nav__mega-hint {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--slate-600);
}

.main-nav__mega-hint strong { color: var(--slate-900); font-weight: 600; }

.main-nav__mega-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.75rem;
}

.main-nav__mega-phone {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-800);
  white-space: nowrap;
  border-radius: var(--radius-lg);
}

.main-nav__mega-phone:hover { color: var(--brand-600); }

@media (prefers-reduced-motion: reduce) {
  .main-nav__dropdown,
  .main-nav__chevron,
  .main-nav__mega-link--icon,
  .main-nav__mega-icon { transition: none; }
}

.main-nav__mega-title {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--slate-100);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate-500);
}

.main-nav__mega-grid--two .main-nav__mega-title.is-active { background: none; color: var(--brand-600); }

.main-nav__mega-grid--two .main-nav__mega-link {
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: var(--slate-700);
}

.main-nav__mega-title {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.35;
}

.main-nav__mega-title:hover { color: var(--brand-600); }

.main-nav__mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav__mega-link {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.8125rem;
  color: var(--slate-600);
  line-height: 1.35;
}

.main-nav__mega-link:hover { color: var(--brand-600); }

.site-header__nav-link {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
  border-radius: var(--radius-lg);
  transition: color 0.2s, background 0.2s;
}

.site-header__nav-link:hover { color: var(--brand-500); background: var(--brand-50); }

.site-header__messengers {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}

.header-messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--slate-200);
  color: var(--slate-500);
  background: #fff;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}

.header-messenger svg {
  width: 1.125rem;
  height: 1.125rem;
}

.header-messenger:hover {
  transform: translateY(-1px);
}

.header-messenger--telegram:hover {
  color: #229ed9;
  border-color: #b8e4f8;
  background: #f0f9ff;
}

.header-messenger--whatsapp:hover {
  color: #25d366;
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.header-messenger--max:hover {
  color: #471aff;
  border-color: #d4ccff;
  background: #f5f2ff;
}

.site-header__phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-700);
  transition: color 0.2s;
  letter-spacing: -0.01em;
}

.site-header__phone:hover { color: var(--brand-500); }
.site-header__phone svg { width: 1rem; height: 1rem; }

.site-header__hours {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.2;
  color: var(--slate-500);
  white-space: nowrap;
}

.site-phones-stacked {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-phones-stacked a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.site-phones-stacked a:hover { color: var(--brand-600); }

.site-phones-stacked--footer a:hover { color: #fff; }

.site-footer__contact-item .site-phones-stacked--footer {
  flex: 1;
  min-width: 0;
}

.site-footer__contact-item--phones {
  color: var(--slate-400);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.site-header__menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.5rem;
  border: none;
  background: transparent;
  border-radius: var(--radius-lg);
  color: var(--slate-600);
  cursor: pointer;
  transition: background 0.2s;
}

.site-header__mobile-tools {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .site-header__mobile-tools {
    display: none;
  }
}

/* Узкие телефоны: логотип, мессенджеры и кнопка меню должны помещаться в шапку */
@media (max-width: 399px) {
  .site-header__inner { gap: 0.5rem; }
  .site-header__mobile-tools .site-header__messengers { gap: 0.25rem; }
}

@media (max-width: 359px) {
  .site-header__logo img { height: 22px; }
}

.site-header__menu-btn:hover { background: var(--slate-100); }
@media (min-width: 1024px) { .site-header__menu-btn { display: none; } }
.site-header__menu-btn svg { width: 1.5rem; height: 1.5rem; }

#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out);
  border-top: 1px solid var(--slate-100);
  background: #fff;
}

@media (min-width: 1024px) { #mobile-menu { display: none; } }
#mobile-menu.open {
  max-height: calc(100vh - var(--header-height));
  max-height: calc(100dvh - var(--header-height));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1023px) {
  html.menu-open,
  html.menu-open body { overflow: hidden; }
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  padding: 0.5rem 1rem 0;
}

.mobile-menu__inner > .mobile-nav { flex: 1 0 auto; }

/* «Услуги» в мобильном меню: вкладки и строки с иконками */
.mobile-nav__group--mega > .mobile-nav__panel:not([hidden]) {
  gap: 0.5rem;
  padding: 0 0 1rem;
}

.mobile-nav__tabs {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--slate-100);
  border-radius: var(--radius-xl);
}

.mobile-nav__tab {
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: var(--radius-lg);
  background: transparent;
  font: 600 0.875rem/1.2 var(--font-display);
  color: var(--slate-600);
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.mobile-nav__tab[aria-selected="true"] {
  color: var(--brand-700);
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.mobile-nav__tab:focus-visible,
.mobile-nav__item:focus-visible,
.mobile-nav__all:focus-visible,
.mobile-nav__toggle:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: -2px;
}

.mobile-nav__tabpanel:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.mobile-nav__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.375rem 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--slate-800);
  border-radius: var(--radius-lg);
  touch-action: manipulation;
  transition: background 0.15s;
}

.mobile-nav__item:active,
.mobile-nav__item:hover,
.mobile-nav__item.is-active { background: var(--brand-50); }

.mobile-nav__item.is-active { color: var(--brand-700); }

.mobile-nav__item-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.25rem;
  color: var(--brand-600);
  background: var(--brand-50);
  border-radius: var(--radius-lg);
}

.mobile-nav__item.is-active .mobile-nav__item-icon { color: #fff; background: var(--brand-600); }
.mobile-nav__item-icon .material-symbols-outlined { font-size: inherit; }
.mobile-nav__item-label { flex: 1; min-width: 0; }

.mobile-nav__item-arrow {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--slate-400);
}

.mobile-nav__all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 2.75rem;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-600);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-lg);
}

.mobile-nav__all:active { background: var(--brand-50); }
.mobile-nav__all-icon { font-size: 1.125rem; }

.mobile-nav { display: flex; flex-direction: column; gap: 0.25rem; }

.mobile-nav__group { border-bottom: 1px solid var(--slate-100); }

.mobile-nav__toggle,
.mobile-nav__subtoggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem 0.75rem;
  border: none;
  background: transparent;
  font: 600 1rem/1.3 var(--font-display);
  color: var(--slate-800);
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-lg);
}

.mobile-nav__toggle:hover,
.mobile-nav__subtoggle:hover { background: var(--brand-50); color: var(--brand-600); }

.mobile-nav__chevron {
  font-size: 1.25rem;
  color: var(--slate-400);
  transition: transform 0.2s;
}

.mobile-nav__toggle[aria-expanded="true"] .mobile-nav__chevron,
.mobile-nav__subtoggle[aria-expanded="true"] .mobile-nav__chevron {
  transform: rotate(180deg);
}

.mobile-nav__panel[hidden],
.mobile-nav__subpanel[hidden] {
  display: none !important;
}

.mobile-nav__panel:not([hidden]),
.mobile-nav__subpanel:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0 0 0.75rem 0.75rem;
}

.mobile-nav__subgroup { margin-top: 0.25rem; }

.mobile-nav__subtoggle {
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.mobile-nav__link {
  display: block;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-600);
  border-radius: var(--radius-lg);
}

.mobile-nav__link--all { font-weight: 600; color: var(--brand-600); }

.mobile-nav__link--child {
  padding-left: 1.25rem;
  font-size: 0.875rem;
  font-weight: 400;
}

.mobile-nav__link:hover { background: var(--brand-50); color: var(--brand-600); }

.mobile-menu__link {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.625rem 0.75rem;
  font: 600 1rem/1.3 var(--font-display);
  color: var(--slate-800);
  border-radius: var(--radius-lg);
  transition: background 0.2s, color 0.2s;
}

.mobile-menu__link:hover { background: var(--brand-50); color: var(--brand-600); }

.mobile-menu__actions {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 -1rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--slate-100);
}

.mobile-menu__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.625rem;
  border: 1px solid var(--brand-200);
  color: var(--brand-700);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  transition: background 0.2s;
}

.mobile-menu__phone:hover { background: var(--brand-50); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-950) 0%, var(--brand-800) 50%, var(--brand-500) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero__glow { position: absolute; border-radius: 50%; pointer-events: none; }

.hero__glow--left {
  top: 25%;
  left: -8rem;
  width: 24rem;
  height: 24rem;
  opacity: 0.3;
  background: radial-gradient(circle, var(--brand-400), transparent 70%);
}

.hero__glow--right {
  bottom: 25%;
  right: 0;
  width: 20rem;
  height: 20rem;
  opacity: 0.2;
  background: radial-gradient(circle, #60a5fa, transparent 70%);
}

.hero__container {
  position: relative;
  z-index: 1;
  padding-top: 7rem;
  padding-bottom: 5rem;
}

@media (min-width: 1024px) {
  .hero__container { padding-top: 9rem; padding-bottom: 7rem; }
}

.hero__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__content {
  max-width: 70rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.875rem, 4.5vw, 3.125rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
  animation: fadeUp 0.8s var(--ease-out) 0.2s both;
}

@media (max-width: 639px) {
  .hero__title {
    font-size: clamp(1.5rem, 5.5vw, 1.75rem);
    margin-bottom: 1rem;
  }
}

.hero__title-line { display: block; color: #fff; }

.hero__title-line + .hero__title-line {
  margin-top: 0.35em;
}

.hero__title-line--gradient {
  background: linear-gradient(125deg, #ffffff 0%, #f4f9ff 38%, #d8ebff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 16px rgba(255, 255, 255, 0.14));
}

.hero__title-line:not(.hero__title-line--gradient) {
  font-weight: 700;
  font-size: 0.9em;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.hero__lead {
  font-family: var(--font-sans);
  color: rgba(219, 234, 254, 0.92);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin: 0 auto 2.5rem;
  max-width: 40rem;
  text-wrap: pretty;
  animation: fadeUp 0.8s var(--ease-out) 0.32s both;
}

@media (max-width: 639px) {
  .hero__lead {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 2rem;
  }
}

@media (min-width: 1024px) { .hero__lead { font-size: 1.125rem; } }

.hero__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  max-width: 28rem;
  margin-inline: auto;
  margin-bottom: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.44s both;
}

.hero__actions .btn {
  width: 100%;
  min-height: 3.25rem;
  padding-inline: 1.25rem;
}

.hero__actions .btn--white {
  border: 1px solid transparent;
}

@media (max-width: 539px) {
  .hero__actions {
    grid-template-columns: 1fr;
    max-width: 20rem;
  }
}

.hero__trust {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 0;
  width: 100%;
  text-align: left;
  animation: fadeUp 0.8s var(--ease-out) 0.56s both;
}

@media (min-width: 768px) {
  .hero__trust {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 2rem;
  }
}

@media (min-width: 1024px) {
  .hero__trust {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    width: 100%;
  }

  .hero__trust-item {
    flex: 1 1 0;
    justify-content: flex-start;
    min-width: 0;
  }
}

.hero__trust-item { display: flex; align-items: center; justify-content: flex-start; gap: 0.625rem; text-align: left; }

.hero__trust-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__trust-icon svg { width: 1.25rem; height: 1.25rem; color: #bfdbfe; }
.hero__trust-title { color: #fff; font-weight: 700; font-size: 0.875rem; line-height: 1.3; text-align: left; }
.hero__trust-sub { color: #93c5fd; font-size: 0.75rem; text-align: left; }

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.hero__scroll:hover { color: rgba(255, 255, 255, 0.8); }

.hero__scroll-label {
  font: 400 0.65rem ui-monospace, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__scroll svg { width: 1.25rem; height: 1.25rem; animation: bounce 1s infinite; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(25%); }
}

/* Service cards */
.cards-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-2xl);
  padding: 1.75rem;
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: #93c5fd;
}

.service-card:hover .card-icon { background: var(--brand-500); color: #fff; }
.service-card:hover .service-card__title { color: var(--brand-600); }
.service-card:hover .service-card__more { gap: 0.625rem; }

@media (prefers-reduced-motion: reduce) { .service-card { transition: none; } }

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-xl);
  background: var(--brand-50);
  color: var(--brand-500);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}

.card-icon .material-symbols-outlined { font-size: 1.5rem; }

.service-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--slate-900);
  margin: 0 0 0.5rem;
  transition: color 0.2s;
}

.service-card__text {
  font-family: var(--font-sans);
  color: var(--slate-600);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

.service-card__more {
  margin-top: auto;
  color: var(--brand-500);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: gap 0.2s;
}

.service-card__more svg { width: 1rem; height: 1rem; }

.services-directions {
  display: block;
}

.services-directions__stack {
  display: grid;
  gap: 2.5rem;
}

.services-directions__matrix {
  display: none;
}

@media (min-width: 1024px) {
  .services-directions:not(.services-directions--single) .services-directions__stack {
    display: none;
  }

  .services-directions:not(.services-directions--single) .services-directions__matrix {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .services-directions__headers {
    display: grid;
    grid-template-columns: repeat(var(--direction-cols, 2), minmax(0, 1fr));
    column-gap: 3rem;
    margin-bottom: 0.25rem;
  }

  .services-directions__headers .services-direction__header {
    margin-bottom: 0;
  }

  .services-directions__row {
    display: grid;
    grid-template-columns: repeat(var(--direction-cols, 2), minmax(0, 1fr));
    column-gap: 3rem;
    align-items: stretch;
  }

  .services-directions__cell--empty {
    min-height: 0;
  }
}

.services-directions--single .services-direction__footer {
  margin-top: 1.25rem;
}

.cards-grid--services {
  margin-top: 0.25rem;
}

@media (min-width: 1024px) {
  .cards-grid--services {
    grid-template-columns: repeat(3, 1fr);
  }
}

.services-direction__header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--slate-200);
}

.services-direction__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.services-direction__title-link {
  color: var(--slate-900);
  text-decoration: none;
  transition: color 0.2s;
}

.services-direction__title-link:hover { color: var(--brand-600); }

.services-direction__lead {
  font-family: var(--font-sans);
  color: var(--slate-600);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0;
  max-width: none;
  text-wrap: pretty;
}

.services-direction__grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-card--direction {
  padding: 1.25rem 1.5rem;
  height: 100%;
  flex-direction: column;
}

.service-card--direction > div:nth-child(2) {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card--direction .service-card__more {
  margin-top: auto;
}

.services-direction__footer {
  margin-top: 1rem;
}

.services-directions__row--footer {
  margin-top: 0.25rem;
}

.services-directions__footer-cell {
  display: flex;
  align-items: flex-start;
}

.services-direction__all-link {
  width: 100%;
  justify-content: center;
}

@media (min-width: 1024px) {
  .services-direction__all-link {
    width: auto;
    justify-content: flex-start;
  }
}

/* Benefits */
.benefits-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.benefit { display: flex; gap: 1.25rem; }

.benefit-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--brand-100), var(--brand-50));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-600);
}

.benefit-icon svg { width: 1.5rem; height: 1.5rem; }

.benefit__title {
  font: 700 1.125rem/1.3 var(--font-display);
  color: var(--slate-900);
  margin: 0 0 0.375rem;
}

.benefit__text {
  color: var(--slate-500);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

/* Steps (used on service pages via process-grid) */
.step-card {
  background: #fff;
  border-radius: var(--radius-2xl);
  padding: 1.75rem;
  border: 1px solid var(--slate-200);
  text-align: center;
}

.step-card__num {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-2xl);
  background: var(--brand-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font: 800 1.25rem/1 var(--font-display);
  box-shadow: 0 4px 6px -1px rgba(8, 110, 217, 0.2);
}

.step-card__num--success {
  background: var(--emerald-500);
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
}

.step-card__title {
  font: 700 1.125rem/1.3 var(--font-display);
  color: var(--slate-900);
  margin: 0 0 0.5rem;
}

.step-card__text {
  color: var(--slate-500);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

/* About */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) { .about-grid { grid-template-columns: repeat(2, 1fr); gap: 4rem; } }

.about__title {
  font: 800 clamp(1.875rem, 4vw, 2.25rem)/1.2 var(--font-display);
  color: var(--slate-900);
  margin: 0 0 1.5rem;
}

.about__text {
  color: var(--slate-600);
  font-size: 1.125rem;
  line-height: 1.7;
  margin: 0 0 1.25rem;
}

.about__text--muted { color: var(--slate-500); font-size: 1rem; }
.about__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.accreditation-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  padding: 1.75rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-800), var(--brand-500));
}

.accreditation-card__glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  transform: translate(50%, -50%);
  opacity: 0.1;
  background: radial-gradient(circle, #fff, transparent);
}

.accreditation-card__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.accreditation-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.accreditation-card__icon svg { width: 1.75rem; height: 1.75rem; }

.accreditation-card__label {
  color: #bfdbfe;
  font: 400 0.75rem ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.125rem;
}

.accreditation-card__code {
  font: 800 1.5rem/1.2 var(--font-display);
  letter-spacing: 0.02em;
}

.accreditation-card__text {
  color: rgba(191, 219, 254, 0.85);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
  position: relative;
  z-index: 1;
}

.accreditation-card__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-width: 10rem;
  position: relative;
  z-index: 1;
}

.accreditation-card__stat {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 0.875rem;
  text-align: center;
}

.accreditation-card__stat-value { font: 800 1.25rem/1.2 var(--font-display); }

.accreditation-card__stat-label {
  color: #bfdbfe;
  font-size: 0.75rem;
  margin-top: 0.125rem;
}

.address-card {
  background: var(--slate-50);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid var(--slate-100);
  margin-top: 1.25rem;
}

.address-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-xl);
  background: var(--brand-100);
  color: var(--brand-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.address-card__icon svg { width: 1.25rem; height: 1.25rem; }
.address-card__title { font-weight: 600; font-size: 0.875rem; color: var(--slate-900); margin-bottom: 0.25rem; }
.address-card__text { color: var(--slate-600); font-size: 0.875rem; line-height: 1.6; }
.address-card__meta { color: var(--slate-400); font-size: 0.75rem; margin-top: 0.25rem; }

/* Contact */
.contact-section {
  background: linear-gradient(180deg, #f8faff 0%, #fff 100%);
  border-top: 1px solid var(--slate-100);
}

.contact-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
  }

  .contact-cards { height: 100%; }

  .contact-cards .contact-card { flex: 1; }

  .contact-grid .panel-contact--solo {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .contact-grid .panel-contact--solo .panel-contact__form {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .contact-grid .panel-contact--solo .panel-contact__form form.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .contact-grid .panel-contact--solo .form-footer { margin-top: auto; }
}

@media (min-width: 1024px) { .contact-grid { grid-template-columns: 2fr 3fr; gap: 3rem; } }

.contact-cards { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--slate-200);
  transition: border-color 0.2s, box-shadow 0.2s;
}

a.contact-card:hover {
  border-color: var(--brand-300);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.contact-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.contact-card__icon--primary { background: var(--brand-500); color: #fff; }
a.contact-card:hover .contact-card__icon--primary { background: var(--brand-600); }
.contact-card__icon--muted { background: var(--brand-50); color: var(--brand-600); }
a.contact-card:hover .contact-card__icon--muted { background: var(--brand-100); }
.contact-card__icon svg { width: 1.5rem; height: 1.5rem; }

.contact-card__label {
  color: var(--slate-500);
  font: 400 0.75rem ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.125rem;
}

.contact-card__value {
  color: var(--slate-900);
  font-weight: 700;
  font-size: 1.125rem;
  transition: color 0.2s;
}

a.contact-card:hover .contact-card__value { color: var(--brand-600); }
.contact-card__value--sm { font-size: 0.875rem; font-weight: 600; }
.contact-card__meta { color: var(--slate-400); font-size: 0.75rem; }

.contact-card__value a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-card__value a:hover { color: var(--brand-600); }

.contact-social { display: flex; gap: 0.75rem; padding-top: 0.25rem; }

.contact-social__link {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-500);
  transition: color 0.2s, border-color 0.2s;
}

.contact-social__link:hover { color: var(--brand-600); border-color: var(--brand-300); }
.contact-social__link svg { width: 1.25rem; height: 1.25rem; }

.contact-form {
  background: #fff;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--slate-200);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}

@media (min-width: 1024px) { .contact-form { padding: 2.5rem; } }

.form-row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }

.form-field { margin-bottom: 1.25rem; }

.form-field--captcha {
  margin-bottom: 1.25rem;
  min-height: 100px;
}

.modal__body .form-field { margin-bottom: 0.75rem; }
.modal__body .form-field--captcha { margin-bottom: 0.625rem; }
.modal__body .btn--full { padding-top: 0.75rem; padding-bottom: 0.75rem; margin-bottom: 0.5rem; }

.form-field--captcha .js-smart-captcha {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 0.375rem;
}

.form-label .required { color: var(--red-400); }

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  color: var(--slate-800);
  background: #f8faff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(8, 110, 217, 0.15);
  background: #fff;
}

.form-input::placeholder { color: var(--slate-400); }
.form-input--textarea { resize: none; }

.form-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding-top: 0.5rem;
}

@media (min-width: 640px) {
  .form-footer { flex-direction: row; align-items: center; justify-content: space-between; }
}

.form-privacy {
  color: var(--slate-400);
  font-size: 0.75rem;
  line-height: 1.5;
  max-width: 20rem;
  margin: 0;
}

.form-privacy a { text-decoration: underline; }
.form-privacy a:hover { color: var(--slate-600); }
.form-error { color: var(--red-500); font-size: 0.875rem; font-weight: 500; margin: 0; }


.form-messengers__label,
.contact-form__messengers-label,
.panel-contact__form-messengers-label,
.modal__messengers-title {
  margin: 0;
  color: var(--slate-600);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form-messengers--on-dark .form-messengers__label {
  color: rgba(255, 255, 255, 0.85);
}

.form-messengers--on-dark .form-messenger {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.form-messengers--on-dark .form-messenger--telegram:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.16);
}

.form-messengers--on-dark .form-messenger--whatsapp:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(37, 211, 102, 0.22);
}

.form-messengers--on-dark .form-messenger--max:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(71, 26, 255, 0.28);
}

.form-messengers__list {
  display: grid;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.form-messengers--inline .form-messengers__list {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .form-messengers--inline .form-messengers__list {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  }
}

.form-messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  font-weight: 600;
}

.form-messenger__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.form-messenger--telegram:hover { color: #229ed9; border-color: #b8e4f8; background: #f0f9ff; }
.form-messenger--whatsapp:hover { color: #25d366; border-color: #bbf7d0; background: #f0fdf4; }
.form-messenger--max:hover { color: #471aff; border-color: #d4ccff; background: #f5f2ff; }

.form-messengers__divider {
  height: 1px;
  margin: 1.25rem 0;
  background: var(--slate-200);
}

.contact-form__messengers {
  margin-bottom: 1.5rem;
}


.panel-contact__form-messengers-label {
  font-weight: 600;
  color: var(--slate-700);
}

.panel-contact__info .form-messengers {
  margin-top: 1.5rem;
}

.modal__messengers-block {
  padding: 0.375rem 1.25rem 0;
}

.modal__messengers-block .form-messengers--modal {
  margin-top: 0;
}

.modal__messengers-block .modal__messengers-title {
  font-size: 0.8125rem;
  line-height: 1.3;
}

/* Мессенджеры в модалке заявки в один компактный ряд, а не столбиком —
   это главный резерв высоты, чтобы окно помещалось без вертикального
   скролла даже на невысоких экранах (вместе с фиксированной высотой
   виджета капчи ~100px). */
.modal__messengers-block .form-messengers__list {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.modal__messengers-block .form-messenger {
  flex-direction: column;
  gap: 0.25rem;
  min-height: 2.25rem;
  padding: 0.5rem 0.25rem;
  font-size: 0.75rem;
}

.modal__messengers-block .form-messenger__icon {
  width: 1.125rem;
  height: 1.125rem;
}

.modal__messengers-block .form-messengers__divider {
  margin: 0.5rem 0;
}

/* Footer */
.site-footer { background: var(--brand-950); }
.site-footer__inner { padding-block: 1.75rem 1.25rem; }

.site-footer img {
  display: none !important;
}

.site-footer__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; gap: 1.75rem; } }

.site-footer__about {
  max-width: 22rem;
}

.site-footer__title {
  color: #fff;
  font: 700 0.9375rem/1.35 var(--font-display);
  margin: 0 0 0.375rem;
}

.site-footer__desc {
  color: var(--slate-400);
  font-size: 0.8125rem;
  line-height: 1.45;
  margin: 0;
}

.site-footer__requisites {
  color: var(--slate-400);
  font-size: 0.8125rem;
  line-height: 1.45;
  margin: 0.5rem 0 0;
}

.site-footer__about .site-footer__legal {
  margin-top: 1rem;
}

.site-footer__heading {
  color: #fff;
  font: 700 0.75rem ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.site-footer__links { list-style: none; margin: 0; padding: 0; }
.site-footer__links li { margin-bottom: 0.375rem; }

.site-footer__links a {
  color: var(--slate-400);
  font-size: 0.8125rem;
  transition: color 0.2s;
}

.site-footer__links a:hover { color: #fff; }

.site-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  color: var(--slate-400);
  font-size: 0.8125rem;
  transition: color 0.2s;
}

.site-footer__contact-item:hover { color: #fff; }

.site-footer__contact-item svg {
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
  color: var(--brand-400);
}

.site-footer__bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .site-footer__bottom { flex-direction: row; justify-content: space-between; }
}

.site-footer__copy { color: var(--slate-500); font-size: 0.8125rem; margin: 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; }

.site-footer__legal a {
  color: var(--slate-500);
  font-size: 0.8125rem;
  transition: color 0.2s;
}

.site-footer__legal a:hover { color: #cbd5e1; }

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  background: rgba(3, 30, 74, 0.7);
  backdrop-filter: blur(4px);
}

.modal-overlay.open { display: flex; }
.modal-overlay--success { z-index: 110; background: rgba(3, 30, 74, 0.75); }

.modal {
  background: #fff;
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 28rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: fadeUp 0.4s ease both;
}

@supports (max-height: 100dvh) {
  .modal { max-height: calc(100dvh - 2rem); }
}

.modal--sm { max-width: 24rem; padding: 2rem; text-align: center; }

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.25rem 0;
}

.modal__title {
  font: 700 1.25rem/1.3 var(--font-display);
  color: var(--slate-900);
  margin: 0;
}

.modal__close {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--slate-400);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.modal__close:hover { color: var(--slate-700); background: var(--slate-100); }
.modal__close svg { width: 1.25rem; height: 1.25rem; }
.modal__body { padding: 1.125rem 1.25rem 1.25rem; }

.modal__note {
  color: var(--slate-400);
  font-size: 0.75rem;
  line-height: 1.35;
  text-align: center;
  margin: 0;
}

.modal__note a { text-decoration: underline; }
.modal__note a:hover { color: var(--slate-600); }

.modal-success__icon {
  width: 4rem;
  height: 4rem;
  background: var(--emerald-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.modal-success__icon svg { width: 2rem; height: 2rem; color: var(--emerald-500); }

.modal-success__title {
  font: 800 1.5rem/1.3 var(--font-display);
  color: var(--slate-900);
  margin: 0 0 0.75rem;
}

.modal-success__text {
  color: var(--slate-500);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.75rem;
}

.modal-success__text strong { color: var(--slate-700); }

/* ═══ Inner pages ═══ */
.section--compact { padding-block: 3rem; }
@media (min-width: 1024px) { .section--compact { padding-block: 4.5rem; } }

/* Category pages: tighter rhythm between sections */
.category-page .section + .section--white,
.category-page .section + .section--muted { margin-top: 0; }

.section + .section--white,
.section + .section--muted { border-top: 1px solid var(--slate-100); }

.text-muted { color: var(--slate-500); }
.text-center { text-align: center; }

/* Page hero */
.page-hero {
  position: relative;
  padding: 3rem 0 3rem;
  background: linear-gradient(135deg, var(--brand-950) 0%, var(--brand-800) 50%, var(--brand-500) 100%);
  color: #fff;
  overflow: hidden;
}

.page-hero--image {
  min-height: 16rem;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3rem;
}

.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }

.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(3, 30, 74, 0.88) 0%, rgba(8, 110, 217, 0.82) 100%);
}

.page-hero .container { position: relative; z-index: 2; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumbs a { transition: color 0.2s; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs__item { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 0; }
.breadcrumbs__sep { font-size: 1rem; opacity: 0.5; flex-shrink: 0; }
.breadcrumbs__back { display: none; }
.breadcrumbs__current { color: #fff; font-weight: 500; }

/* Мобильные: вместо длинной цепочки — одна строка «‹ Родитель»; текущая страница — в H1 ниже.
   Без поддержки :has() правило отбрасывается целиком, и крошки остаются полными. */
@media (max-width: 767px) {
  .breadcrumbs__item:not(:has(+ .breadcrumbs__item--current)) { display: none; }
  .breadcrumbs__item:has(+ .breadcrumbs__item--current) { max-width: 100%; gap: 0.25rem; }
  .breadcrumbs__item:has(+ .breadcrumbs__item--current) .breadcrumbs__sep { display: none; }
  .breadcrumbs__item:has(+ .breadcrumbs__item--current) .breadcrumbs__back {
    display: block;
    flex-shrink: 0;
    font-size: 1.25rem;
    transform: rotate(180deg);
  }
  .breadcrumbs__item:has(+ .breadcrumbs__item--current) a {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-block: 0.5rem;
  }
  .breadcrumbs { margin-bottom: 0.5rem; }
}

.page-hero__title {
  font: 800 clamp(1.75rem, 4vw, 2.5rem)/1.15 var(--font-display);
  margin: 0 0 1rem;
  max-width: 48rem;
}

@media (max-width: 639px) {
  .page-hero__title {
    font-size: clamp(1.375rem, 5vw, 1.625rem);
    margin-bottom: 0.75rem;
  }
}

.page-hero__lead {
  margin: 0;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(191, 219, 254, 0.9);
}

@media (max-width: 639px) {
  .page-hero__lead {
    font-size: 0.9375rem;
    line-height: 1.55;
  }
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.page-hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  font-size: 0.875rem;
}

.page-hero__meta-item .material-symbols-outlined { font-size: 1.125rem; color: #93c5fd; }

/* Content blocks */
.content-block { margin-bottom: 4rem; }
.content-block:last-child { margin-bottom: 0; }

.content-block__head { margin-bottom: 2rem; }

.content-block__title {
  font: 800 clamp(1.5rem, 3vw, 2rem)/1.2 var(--font-display);
  color: var(--slate-900);
  margin: 0 0 0.75rem;
}

.content-block__lead { color: var(--slate-500); font-size: 1rem; margin: 0; }

/* Текст раздела + навигация по подразделам («Направления»).
   Мобильные/планшет: свёрнутая кнопка, по нажатию — список строками. Десктоп: закреплённая колонка справа. */
#subcategories { scroll-margin-top: calc(var(--header-height) + 1rem); }
.subnav {
  margin-bottom: 1.75rem;
  background: var(--slate-50);
  border: 1px solid var(--brand-100);
  box-shadow: 0 8px 24px -12px rgb(15 23 42 / 0.18);
  border-radius: var(--radius-2xl);
  overflow: hidden;
}
.subnav__count {
  min-width: 1.5rem;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: var(--brand-100);
  color: var(--brand-700);
  font: 700 0.75rem/1.25 var(--font-sans);
  text-align: center;
}
.subnav__title { display: none; }
.subnav__toggle {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  min-height: 4.5rem;
  padding: 0.75rem 0.875rem;
  border: 0;
  background: #fff;
  color: var(--slate-900);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s;
}
.subnav__toggle:active { background: var(--brand-50); }
.subnav__toggle-badge {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px -4px rgb(37 99 235 / 0.5);
}
.subnav__toggle-text { display: flex; flex-direction: column; gap: 0.125rem; flex: 1; min-width: 0; }
.subnav__toggle-label { display: inline-flex; align-items: center; gap: 0.5rem; font: 700 1.0625rem/1.25 var(--font-display); }
.subnav__toggle-hint { color: var(--slate-500); font-size: 0.8125rem; line-height: 1.3; }
.subnav__toggle-arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-600);
  transition: background 0.2s, color 0.2s;
}
.subnav__toggle-icon { font-size: 1.5rem; transition: transform 0.25s var(--ease-out); }
.subnav__toggle[aria-expanded="true"] .subnav__toggle-arrow { background: var(--brand-600); color: #fff; }
.subnav__toggle[aria-expanded="true"] .subnav__toggle-icon { transform: rotate(180deg); }
.subnav__toggle:focus-visible { outline: 2px solid var(--brand-500); outline-offset: -2px; border-radius: var(--radius-2xl); }
.subnav--collapsible:not(.is-open) .subnav__panel { display: none; }
.subnav__panel { padding: 0 0.5rem 0.5rem; border-top: 1px solid var(--slate-200); }
.subnav__list { margin: 0; padding: 0.25rem 0 0; list-style: none; }
.subnav__item + .subnav__item { border-top: 1px solid var(--slate-100); }
.subnav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  color: var(--slate-700);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.3;
  touch-action: manipulation;
  transition: background 0.2s, color 0.2s;
}
.subnav__link:hover, .subnav__link:active { background: #fff; color: var(--brand-600); }
.subnav__link:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }
.subnav__chev { display: block; flex-shrink: 0; font-size: 1.25rem; color: var(--slate-400); }
.subnav__link:hover .subnav__chev { color: var(--brand-500); }
@media (prefers-reduced-motion: reduce) {
  .subnav__toggle-icon { transition: none; }
}

@media (min-width: 1024px) {
  .section-layout {
    display: grid;
    grid-template-columns: minmax(0, 46rem) 19rem;
    justify-content: space-between;
    align-items: start;
    gap: 3rem;
  }
  .section-layout__main { grid-column: 1; grid-row: 1; }
  .section-layout .subnav {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
    max-height: calc(100vh - var(--header-height) - 3rem);
    max-height: calc(100dvh - var(--header-height) - 3rem);
    overflow-y: auto;
    margin-bottom: 0;
    padding: 1.25rem;
  }
  .section-layout .subnav { border-color: var(--slate-200); box-shadow: none; }
  .subnav__toggle { display: none; }
  .subnav__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.875rem;
    font: 700 0.9375rem/1.3 var(--font-display);
    color: var(--slate-900);
  }
  .subnav--collapsible:not(.is-open) .subnav__panel { display: block; }
  .subnav__panel { padding: 0; border-top: 0; }
  .subnav__list { padding: 0; }
  .subnav__item + .subnav__item { border-top: 0; margin-top: 0.125rem; }
  .subnav__link { min-height: 2.5rem; padding: 0.5rem 0.75rem; }
  .subnav__chev { font-size: 1rem; }
}

.richtext { color: var(--slate-600); font-size: 1.0625rem; line-height: 1.75; }
.richtext h2, .richtext h3 { font-family: var(--font-display); color: var(--slate-900); margin: 2rem 0 1rem; }
.richtext p { margin: 0 0 1rem; }
.richtext ul, .richtext ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.richtext a { color: var(--brand-600); text-decoration: underline; }
.richtext a:hover { color: var(--brand-500); }
.richtext .table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  border: 1px solid var(--slate-200);
  border-radius: 0.75rem;
}
.richtext table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.richtext th,
.richtext td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--slate-200);
}
.richtext th {
  background: var(--slate-50);
  color: var(--slate-800);
  font-weight: 700;
}
.richtext tr:last-child td { border-bottom: none; }
.richtext td:last-child,
.richtext th:last-child {
  white-space: nowrap;
  font-weight: 700;
  color: var(--slate-900);
  text-align: right;
}

/* Таблицы «параметр — значение» (реквизиты и т.п.): на мобильном значения
   часто длиннее ширины экрана (адрес, полное наименование) — nowrap +
   горизонтальный скролл в узкой колонке читать неудобно, поэтому строка
   вместо этого складывается в пару строк «подпись / значение». */
@media (max-width: 640px) {
  .richtext .table-wrap--kv { overflow-x: visible; border: none; border-radius: 0; }
  .richtext .table-wrap--kv table,
  .richtext .table-wrap--kv tbody,
  .richtext .table-wrap--kv tr,
  .richtext .table-wrap--kv td { display: block; width: 100%; }
  .richtext .table-wrap--kv tr {
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--slate-200);
  }
  .richtext .table-wrap--kv tr:last-child { border-bottom: none; }
  .richtext .table-wrap--kv td {
    padding: 0.125rem 0;
    border: none;
    white-space: normal;
  }
  .richtext .table-wrap--kv td:first-child { font-size: 0.8125rem; color: var(--slate-500); }
  .richtext .table-wrap--kv td:last-child { text-align: left; }
}

.empty-state {
  padding: 2.5rem;
  text-align: center;
  color: var(--slate-500);
  background: var(--slate-50);
  border: 1px dashed var(--slate-200);
  border-radius: var(--radius-2xl);
}

/* Layout with aside */
.layout-aside {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .layout-aside { grid-template-columns: minmax(0, 1fr) 20rem; }
}

.aside-card {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-2xl);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
  .aside-card { position: sticky; top: 5.5rem; }
}

.aside-card__title {
  font: 700 1.125rem/1.3 var(--font-display);
  color: var(--slate-900);
  margin: 0 0 0.75rem;
}

.aside-card__text { color: var(--slate-500); font-size: 0.9375rem; margin: 0 0 1.25rem; line-height: 1.6; }

.aside-card__contacts { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.25rem; }

.aside-card__contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--brand-700);
  font-weight: 500;
}

.aside-card__contact .material-symbols-outlined { color: var(--brand-500); font-size: 1.25rem; }

/* Process steps (reuse step-card) */
.process-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 0.75rem; }

.faq__item {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq__item[open] { border-color: var(--brand-200); box-shadow: 0 4px 6px -1px rgba(8, 110, 217, 0.08); }

.faq__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--slate-800);
  cursor: pointer;
  list-style: none;
}

.faq__summary::-webkit-details-marker { display: none; }

.faq__chev { color: var(--brand-500); transition: transform 0.2s; flex-shrink: 0; }
.faq__item[open] .faq__chev { transform: rotate(180deg); }

.faq__body {
  padding: 0 1.5rem 1.25rem;
  color: var(--slate-600);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* Downloads */
.downloads-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) { .downloads-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .downloads-grid { grid-template-columns: repeat(4, 1fr); } }

.download-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.download-card:hover { border-color: var(--brand-200); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06); }

.download-card__icon { color: var(--brand-500); font-size: 1.5rem; }

.download-card__title {
  font: 700 0.875rem/1.3 var(--font-display);
  color: var(--slate-900);
  margin: 0;
}

.download-card__desc { color: var(--slate-500); font-size: 0.8125rem; margin: 0; flex-grow: 1; }

.download-card--preview {
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  gap: 0;
}

.download-card__thumb {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--slate-100);
}

.download-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.download-card--preview .download-card__title { margin: 0.625rem 0.75rem 0; }
.download-card--preview .download-card__desc { margin: 0.2rem 0.75rem 0.75rem; }

/* Blog / news cards */
.cards-grid--3 { grid-template-columns: 1fr; }
@media (min-width: 768px) { .cards-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  display: block;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: #93c5fd;
}

.blog-card__image { height: 12rem; overflow: hidden; }
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-card__image img { transform: scale(1.05); }

.blog-card__body { padding: 1.5rem; }

.blog-card__tag {
  display: inline-block;
  background: var(--brand-50);
  color: var(--brand-700);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.blog-card__title {
  font: 700 1.125rem/1.35 var(--font-display);
  color: var(--slate-900);
  margin: 0;
  transition: color 0.2s;
}

.blog-card:hover .blog-card__title { color: var(--brand-600); }

/* Directions list */
.directions-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.directions-list a {
  display: block;
  padding: 0.875rem 1.25rem;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  color: var(--slate-700);
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.directions-list a:hover {
  border-color: var(--brand-300);
  color: var(--brand-600);
  background: var(--brand-50);
}

/* CTA banner */
.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  padding: 3rem 2rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-800), var(--brand-500));
}

@media (min-width: 1024px) { .cta-banner { padding: 4rem 3rem; } }

.cta-banner__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.15;
  background: radial-gradient(circle, #fff, transparent 70%);
}

.cta-banner__glow--tr { top: -4rem; right: -4rem; width: 16rem; height: 16rem; }
.cta-banner__glow--bl { bottom: -4rem; left: -4rem; width: 14rem; height: 14rem; }

.cta-banner__inner { position: relative; z-index: 1; max-width: 40rem; margin: 0 auto; }

.cta-banner__title {
  font: 800 clamp(1.5rem, 3vw, 2rem)/1.2 var(--font-display);
  margin: 0 0 1rem;
}

.cta-banner__text {
  color: rgba(191, 219, 254, 0.9);
  font-size: 1.125rem;
  margin: 0 0 2rem;
  line-height: 1.6;
}

/* Contact panel (inner pages) */
.panel-contact {
  display: grid;
  gap: 0;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
  .panel-contact { grid-template-columns: 2fr 3fr; }
}

.panel-contact__info {
  padding: 2rem;
  background: linear-gradient(160deg, var(--brand-800), var(--brand-500));
  color: #fff;
}

@media (min-width: 1024px) { .panel-contact__info { padding: 2.5rem; } }

.panel-contact__title {
  font: 700 1.5rem/1.3 var(--font-display);
  margin: 0 0 1rem;
}

.panel-contact__text {
  color: rgba(191, 219, 254, 0.9);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.panel-contact__items { display: flex; flex-direction: column; gap: 1rem; }

.panel-contact__item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.panel-contact__item .material-symbols-outlined {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.panel-contact__item-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.125rem;
}

.panel-contact__item-value { font-weight: 700; font-size: 1rem; }
.panel-contact__item-value a { color: inherit; text-decoration: none; transition: color 0.2s; }
.panel-contact__item-value a:hover { color: var(--brand-600); }
.panel-contact__item--no-icon { align-items: flex-start; }

.panel-contact__form { padding: 2rem; }
@media (min-width: 1024px) { .panel-contact__form { padding: 2.5rem; } }

/* Clients marquee */
.marquee { position: relative; overflow: hidden; }

.marquee__track {
  display: flex;
  animation: marquee 30s linear infinite;
}

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

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee__slide {
  flex: none;
  display: flex;
  align-items: flex-start;
  gap: 3.5rem;
  width: max-content;
  padding-inline: 2rem;
}

.marquee__item {
  flex: none;
  width: 11rem;
}

.marquee__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.marquee__link--static {
  cursor: default;
}

.marquee__slide img {
  display: block;
  height: 3rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: opacity 0.3s, transform 0.3s;
}

.marquee__name {
  display: block;
  width: 100%;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: var(--slate-500);
  overflow-wrap: anywhere;
  hyphens: auto;
}

.marquee__link:hover img,
.marquee__item:hover img {
  opacity: 1;
  transform: scale(1.03);
}

.marquee__link:hover .marquee__name {
  color: var(--slate-700);
}

.marquee__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4rem;
  pointer-events: none;
  z-index: 1;
}

.marquee__fade--left { left: 0; background: linear-gradient(to right, #fff, transparent); }
.marquee__fade--right { right: 0; background: linear-gradient(to left, #fff, transparent); }
.section--muted .marquee__fade--left { background: linear-gradient(to right, var(--slate-50), transparent); }
.section--muted .marquee__fade--right { background: linear-gradient(to left, var(--slate-50), transparent); }

/* Contacts page */
.page-contacts .section--white.section--compact {
  padding-block: 2.5rem;
}

@media (min-width: 1024px) {
  .page-contacts .section--white.section--compact { padding-block: 3rem; }
}

.page-contacts .contact-cards { gap: 0.75rem; }

.page-contacts .contact-card { padding: 1rem; }

.page-contacts .contact-card__icon {
  width: 2.5rem;
  height: 2.5rem;
}

.page-contacts .contact-card__icon svg { width: 1.25rem; height: 1.25rem; }

.page-contacts .contact-card__value { font-size: 1rem; }

.contacts-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 768px) {
  .contacts-layout {
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
  }
}

.contacts-layout__map .contact-map {
  height: 13rem;
}

.contacts-layout__map .contact-map iframe {
  height: 13rem;
}

@media (min-width: 768px) {
  .contacts-layout__map {
    display: flex;
    min-height: 100%;
  }

  .contacts-layout__map .contact-map {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
  }

  .contacts-layout__map .contact-map iframe {
    flex: 1;
    height: 100%;
    min-height: 100%;
  }
}

.contact-card--static {
  align-items: flex-start;
}

.contact-card--static .contact-card__body {
  flex: 1;
  min-width: 0;
}

.contact-card--static .form-messengers {
  margin-top: 0.5rem;
}

.panel-contact--solo {
  max-width: 52rem;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

.contact-grid .panel-contact--solo {
  max-width: none;
  margin: 0;
}

.panel-contact--solo.panel-contact--embedded .panel-contact__form {
  padding: 2rem;
}

@media (min-width: 1024px) {
  .panel-contact--solo.panel-contact--embedded .panel-contact__form { padding: 1.5rem; }
}

.panel-contact__title--solo {
  color: var(--slate-900);
  font-size: 1.375rem;
  margin: 0 0 0.75rem;
}

.panel-contact__text--solo {
  color: var(--slate-600);
  margin: 0 0 1.5rem;
}

.contact-map {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.contact-map iframe { display: block; width: 100%; border: 0; }

.back-link { margin: 0 0 2rem; }
.back-link a {
  color: var(--brand-600);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.back-link a:hover { color: var(--brand-500); }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  details[open] > .faq__body { animation: none; }
}

/* ═══ Anchor navigation ═══ */
.anchor-nav {
  background: #fff;
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: var(--header-height);
  z-index: 40;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

@media (min-width: 1024px) { .anchor-nav { top: 4.5rem; } }

.anchor-nav__list {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.anchor-nav__list::-webkit-scrollbar { display: none; }

.anchor-nav__link {
  display: flex;
  align-items: center;
  padding: 0 1.125rem;
  height: 2.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate-500);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.anchor-nav__link:hover {
  color: var(--brand-600);
  border-bottom-color: var(--brand-300);
}

.anchor-nav__link--cta {
  margin-left: auto;
  color: var(--brand-600);
  font-weight: 600;
  border-left: 1px solid var(--slate-100);
  padding: 0 1.25rem;
}

.anchor-nav__link--cta:hover {
  background: var(--brand-50);
  border-bottom-color: transparent;
}

/* ═══ Trust strip ═══ */
.trust-strip {
  background: var(--brand-950);
  padding: 1.875rem 0;
}

.trust-strip__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem 0;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

@media (min-width: 900px) { .trust-strip__list { justify-content: space-between; } }

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0 1.5rem;
  flex-shrink: 0;
}

.trust-strip__item .material-symbols-outlined {
  font-size: 1.875rem;
  color: var(--brand-300);
  font-variation-settings: "FILL" 0, "wght" 200, "GRAD" 0, "opsz" 24;
  flex-shrink: 0;
}

.trust-strip__value {
  display: block;
  font: 600 0.9375rem/1.3 var(--font-display);
  color: #fff;
}

.trust-strip__label {
  display: block;
  font-size: 0.8125rem;
  color: rgba(191, 219, 254, 0.7);
  margin-top: 0.125rem;
}

.trust-strip__sep {
  width: 1px;
  height: 2.25rem;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

@media (max-width: 899px) { .trust-strip__sep { display: none; } }

/* ═══ Process timeline (panel grid) ═══ */
.process-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--slate-200);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

@media (min-width: 640px) { .process-timeline { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process-timeline { grid-template-columns: repeat(4, 1fr); } }

.process-timeline__item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem 1.5rem;
  background: #fff;
  transition: background 0.2s;
}

.process-timeline__item:hover { background: var(--brand-50); }

.process-timeline__num {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-500);
  color: #fff;
  border-radius: 50%;
  font: 700 0.875rem/1 var(--font-display);
  flex-shrink: 0;
}

.process-timeline__title {
  font: 600 1rem/1.4 var(--font-display);
  color: var(--slate-900);
  margin: 0;
}

.process-timeline__text {
  color: var(--slate-500);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

/* ═══ Service page: section blocks ═══ */
.service-section-title {
  font: 800 clamp(1.375rem, 2.5vw, 1.875rem)/1.2 var(--font-display);
  color: var(--slate-900);
  margin: 0 0 0.75rem;
}

.service-section-lead {
  color: var(--slate-500);
  font-size: 1rem;
  margin: 0 0 2rem;
}

.faq-max { max-width: 52rem; }
.faq-max .content-block__head { max-width: 52rem; }

/* ═══ UI/UX improvements: eyebrow labels ═══ */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 700 0.6875rem/1 var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-500);
  margin: 0 0 0.75rem;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--brand-400);
  flex-shrink: 0;
}

/* ═══ Trust strip: accreditation accent ═══ */
.trust-strip__item--accent .trust-strip__value {
  color: #fde68a; /* amber-200 */
}

.trust-strip__item--accent .trust-strip__label {
  color: rgba(253, 230, 138, 0.7);
}

.trust-strip__item--accent .material-symbols-outlined {
  color: #fbbf24; /* amber-400 */
}

/* ═══ Process timeline: enhanced ═══ */
.process-timeline__item {
  position: relative;
}

.process-timeline__counter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.process-timeline__step-label {
  font: 600 0.6875rem/1 var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-400);
}

/* ═══ Aside card: authority variant ═══ */
.aside-card__accreditation {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-100);
  font-size: 0.75rem;
  color: var(--slate-400);
  line-height: 1.4;
}

.aside-card__accreditation .material-symbols-outlined {
  font-size: 1rem;
  color: var(--brand-400);
  flex-shrink: 0;
}

/* ═══ Section heading with accent bar ═══ */
.content-block__title--lined {
  padding-left: 1rem;
  border-left: 3px solid var(--brand-400);
}

/* ═══ Anchor nav: active state (set via JS) ═══ */
.anchor-nav__link.is-active {
  color: var(--brand-600);
  border-bottom-color: var(--brand-500);
  font-weight: 600;
}

/* ═══ Contact panel: visual upgrade ═══ */
.panel-contact {
  position: relative;
}

.panel-contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-300));
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  display: none;
}

@media (min-width: 768px) { .panel-contact::before { display: block; } }

/* ═══ Responsive: tighter section padding on mobile ═══ */
@media (max-width: 639px) {
  .section { padding-block: 3.5rem; }
}

/* ═══ Page hero: CTA action group ═══ */
.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.page-hero__actions .btn .material-symbols-outlined {
  font-size: 1.125rem;
}

/* ═══ Centered content-block head (contact sections) ═══ */
.content-block__head--center {
  text-align: center;
  margin-bottom: 2.5rem;
}

.content-block__head--center .section-eyebrow {
  justify-content: center;
}

.content-block__lead--center {
  margin: 0 auto;
}

/* ═══ Anchor nav: CTA icon ═══ */
.anchor-nav__cta-icon {
  font-size: 0.9375rem;
  margin-left: 0.25rem;
  transition: transform 0.2s;
}

.anchor-nav__link--cta:hover .anchor-nav__cta-icon {
  transform: translateX(3px);
}

/* ═══ 404 error page ═══ */
.error-page__hero {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.error-page__code {
  margin: 0 0 0.75rem;
  font: 800 clamp(4rem, 14vw, 6.5rem)/1 var(--font-display);
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff 20%, #93c5fd 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-page__path {
  color: #fff;
  font-weight: 600;
  word-break: break-word;
}

/* Ссылка на бланк заявления под формами */
.form-blank-link { margin: 0.75rem 0 0; font-size: 0.8125rem; line-height: 1.4; }
.form-blank-link a { display: inline-flex; align-items: center; gap: 0.375rem; color: var(--brand-600); text-decoration: underline; text-underline-offset: 2px; }
.form-blank-link a:hover { color: var(--brand-700); }
.form-blank-link__icon { flex-shrink: 0; font-size: 1.125rem; }

/* В модалке ссылка на бланк — компактно, по центру, под строкой согласия */
.modal__body .form-blank-link { margin-top: 0.5rem; text-align: center; font-size: 0.75rem; }
.modal__body .form-blank-link a { justify-content: center; }
.modal__body .form-blank-link__icon { font-size: 1rem; }

/* Окно заявки без вертикального скролла на невысоких экранах (телефоны,
   ноутбуки с 720px). Сжимаем отступы, мессенджеры — иконка рядом с текстом,
   капча остаётся 100px (фиксированная высота виджета Яндекса). */
@media (max-height: 760px) {
  .modal-overlay { padding: 0.5rem; }
  .modal { max-height: calc(100vh - 1rem); }
  @supports (max-height: 100dvh) { .modal { max-height: calc(100dvh - 1rem); } }
  .modal__header { padding: 0.75rem 1rem 0; }
  .modal__title { font-size: 1.0625rem; }
  .modal__close { width: 1.75rem; height: 1.75rem; }
  .modal__messengers-block { padding: 0.25rem 1rem 0; }
  .modal__messengers-block .modal__messengers-title { font-size: 0.75rem; line-height: 1.25; }
  .modal__messengers-block .form-messengers__list { margin: 0.375rem 0; gap: 0.375rem; }
  .modal__messengers-block .form-messenger { flex-direction: row; gap: 0.3rem; min-height: 2.125rem; padding: 0.375rem 0.25rem; }
  .modal__messengers-block .form-messenger__icon { width: 1rem; height: 1rem; }
  .modal__messengers-block .form-messengers__divider { margin: 0.375rem 0; }
  .modal__body { padding: 0.625rem 1rem 0.75rem; }
  .modal__body .form-field { margin-bottom: 0.5rem; }
  .modal__body .form-label { font-size: 0.8125rem; margin-bottom: 0.25rem; }
  .modal__body .form-input { padding: 0.5625rem 0.875rem; }
  .modal__body .form-field--captcha { margin-bottom: 0.5rem; }
  .modal__body .btn--full { padding-top: 0.625rem; padding-bottom: 0.625rem; margin-bottom: 0.375rem; }
  .modal__body .modal__note { font-size: 0.6875rem; line-height: 1.3; }
  .modal__body .form-blank-link { margin-top: 0.375rem; }
}

/* «Материалы» на «О компании» (бланк заявления): на мобильных карточки на всю ширину */
@media (max-width: 639px) {
  .page-company .downloads-grid { grid-template-columns: 1fr; }
  .page-company .download-card .btn { width: 100%; }
}

/* Вакансии */
.vacancy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.vacancy-card {
  padding: 1.75rem;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-2xl);
  background: #fff;
}
.vacancy-card__title { font: 700 1.375rem/1.3 var(--font-display); margin: 0 0 0.75rem; }
.vacancy-card__title a { color: var(--slate-900); }
.vacancy-card__title a:hover { color: var(--brand-700); }
.vacancy-card__intro { color: var(--slate-600); line-height: 1.6; margin: 0 0 1.25rem; max-width: 52rem; }
.vacancy-meta { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.vacancy-meta__item {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--brand-50); color: var(--brand-700);
  border-radius: 9999px; font-size: 0.875rem;
}
.vacancy-body { max-width: 52rem; }
.vacancy-apply {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--brand-50);
  border-radius: var(--radius-2xl);
}
.vacancy-apply h2 { margin-top: 0; }
.vacancy-apply__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0; }
.richtext .vacancy-apply__actions .btn { text-decoration: none; }
.richtext .vacancy-apply__actions .btn--primary, .richtext .vacancy-apply__actions .btn--primary:hover { color: #fff; }
.vacancy-facts .page-hero__meta-item .material-symbols-outlined,
.vacancy-meta__item .material-symbols-outlined { flex-shrink: 0; }
@media (max-width: 639px) {
  .vacancy-card { padding: 1.25rem; }
  .vacancy-apply { padding: 1.25rem; }

  /* Плашки в шапке вакансии: одна панель со строками вместо «таблеток» разной ширины */
  .vacancy-facts {
    flex-direction: column;
    gap: 0;
    margin-top: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    overflow: hidden;
  }
  .vacancy-facts .page-hero__meta-item {
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.75rem 1rem;
    background: none;
    border: 0;
    border-radius: 0;
    font-size: 0.9375rem;
    line-height: 1.4;
  }
  .vacancy-facts .page-hero__meta-item + .page-hero__meta-item { border-top: 1px solid rgba(255, 255, 255, 0.12); }
  .vacancy-facts .page-hero__meta-item .material-symbols-outlined { font-size: 1.125rem; margin-top: 0.05rem; }

  /* В карточках списка — простые строки */
  .vacancy-meta { flex-direction: column; gap: 0.375rem; }
  .vacancy-meta__item { padding: 0; background: none; border-radius: 0; color: var(--slate-600); }
  .vacancy-meta__item .material-symbols-outlined { color: var(--brand-700); }
}
