:root {
  --bg: #ffffff;
  --muted-bg: #f6f8f7;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #1b4d2e;
  --accent: #96e643;
  --shadow: 0 20px 50px rgba(2, 6, 23, 0.12);
  --icon-badge-size: 30px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Manrope, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

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

.address-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.address-link:hover {
  color: inherit;
  text-decoration: none;
}

.address-link .header-contact__text,
.address-link .header-contact__note,
.address-link .footer__contact-main,
.address-link .footer__contact-sub {
  display: block;
}

.ms {
  font-family: "Material Symbols Outlined";
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

.icon {
  font-size: 22px;
}

.icon--primary {
  color: var(--primary);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.container--full {
  max-width: none;
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header__top {
  border-bottom: 1px solid #eef2f6;
}

.header__top-inner {
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.header-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(27, 77, 46, 0.25);
  color: var(--primary);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.08s ease;
}

.header-burger:hover {
  opacity: 0.9;
}

.header-burger:active {
  transform: scale(0.98);
}

.header-burger .ms {
  font-size: 22px;
}

.mobile-menu {
  display: none;
}

.mobile-menu {
  overflow: hidden;
}

@media (max-width: 1023px) {
  .header-contacts {
    display: none;
  }

  .nav {
    display: none;
  }

  .mobile-menu {
    display: block;
  }
}

@media (min-width: 1024px) {
  .header-burger {
    display: none;
  }
}

.mobile-menu__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 120;
}

.mobile-menu__panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(92vw, 420px);
  height: 100vh;
  height: 100dvh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-left: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 24px 55px rgba(2, 6, 23, 0.18);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  z-index: 130;
  padding: 18px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.modal__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 520px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  box-shadow: 0 24px 55px rgba(2, 6, 23, 0.18);
  padding: 18px;
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal__title {
  font-weight: 1000;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.modal__lead {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.modal__close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(27, 77, 46, 0.25);
  color: var(--primary);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.modal__subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.modal__subtitle-title {
  margin: 0;
  color: var(--text);
  font-weight: 900;
  line-height: 1.35;
}

.modal__messengers {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.modal__messengers .header-icon {
  width: 18px;
  height: 18px;
}

.modal__messengers .btn {
  gap: 10px;
}

.modal__divider {
  height: 1px;
  background: rgba(226, 232, 240, 0.9);
  margin: 14px 0;
}

.modal[data-modal="consultation"] .modal__head {
  position: relative;
  justify-content: center;
}

.modal[data-modal="consultation"] .modal__title {
  flex: 1;
  padding: 0 48px;
  text-align: center;
}

.modal[data-modal="consultation"] .modal__close {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.modal[data-modal="consultation"] .modal__subtitle,
.modal[data-modal="consultation"] .modal__subtitle-title {
  text-align: center;
}

.modal-form {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.modal-form__free-note {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.form-note {
  text-align: center;
  margin: 2px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.form-note .link {
  font-weight: 900;
}

.form-error {
  margin: -4px 0 0;
  color: #dc2626;
  font-size: 13px;
  line-height: 1.35;
}

.smart-captcha {
  min-height: 100px;
}

.input--invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 1px #dc2626;
}

.is-modal-open {
  overflow: hidden;
}

.mobile-menu.is-open .mobile-menu__backdrop {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu.is-open .mobile-menu__panel {
  transform: translateX(0);
}

.is-mobile-menu-open {
  overflow: hidden;
}

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-menu__title {
  font-weight: 1000;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.mobile-menu__close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(27, 77, 46, 0.25);
  color: var(--primary);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.mobile-menu__section-title {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 1000;
  color: #94a3b8;
  margin-bottom: 10px;
}

.mobile-menu__contacts {
  display: grid;
  gap: 14px;
}

.mobile-menu__nav {
  display: grid;
  gap: 0;
}

.mobile-menu__nav .nav__link {
  height: auto;
  display: block;
  padding: 10px 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-weight: 900;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.mobile-menu__nav .nav__link:hover {
  color: var(--primary);
}

.mobile-menu-services {
  display: grid;
  gap: 0;
  margin-bottom: 6px;
}

.mobile-menu-services__item {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.mobile-menu-services__summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text);
  font-weight: 900;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-services__label {
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mobile-menu-services__label:hover {
  color: var(--primary);
}

.mobile-menu-services__summary::-webkit-details-marker {
  display: none;
}

.mobile-menu-services__toggle {
  flex-shrink: 0;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-services__chev {
  flex-shrink: 0;
  transition: transform 0.18s ease;
  color: var(--primary);
  opacity: 0.9;
  font-size: 22px;
}

.mobile-menu-services__item[open] > .mobile-menu-services__summary .mobile-menu-services__chev {
  transform: rotate(180deg);
}

.mobile-menu-services__link {
  display: block;
  min-width: 0;
  padding: 10px 0;
  color: var(--text);
  font-weight: 900;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  overflow-wrap: anywhere;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-services__link:hover {
  color: var(--primary);
}

.mobile-menu-services__children {
  padding: 2px 0 10px;
  padding-left: 12px;
  display: grid;
  gap: 8px;
}

.brand__logo {
  height: 35px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 767px) {
  .header__top-inner {
    padding: 10px 0;
    gap: 12px;
  }

  .brand__logo {
    height: 28px;
  }

  .header-burger {
    width: 30px;
    height: 30px;
  }

  .header-burger .ms {
    font-size: 20px;
  }
}

.header-contacts {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 1023px) {
  .header__top-inner .header-contacts {
    display: none;
  }
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}

.header-contact__text {
  font-size: 13px;
  line-height: 1.25;
}

.header-contact__col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header-contact__link {
  font-size: 13px;
}

.header-contact__link:hover {
  color: var(--primary);
}

.header-contact__note {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 800;
}

/* Circle background for header contact icons (map + phone) */
.header-contact:not(.header-contact--icons) .ms.icon.icon--primary {
  width: var(--icon-badge-size);
  height: var(--icon-badge-size);
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(27, 77, 46, 0.25);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-contact--icons {
  gap: 10px;
}

.header-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-badge-size);
  height: var(--icon-badge-size);
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(27, 77, 46, 0.25);
  box-sizing: border-box;
  background: transparent;
  transition: opacity 0.2s ease, transform 0.08s ease;
}

.header-icon-link:hover {
  opacity: 0.85;
}

.header-icon-link:active {
  transform: scale(0.98);
}

.header-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  color: var(--primary);
}

.header-icon--telegram {
  color: var(--primary);
  fill: none;
}

.header-icon--whatsapp {
  color: var(--primary);
}

.header__bottom-inner {
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav {
  display: none;
  gap: 22px;
  align-items: center;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  height: 34px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted);
  padding: 0 10px;

}

.nav__link:hover {
  color: var(--primary);
}

.nav__link--dropdown {
  background: transparent;
  border: 0;
  height: 34px;
  cursor: pointer;
  border-radius: 12px 12px 0 0;
  /* Background should toggle in sync with the dropdown */
  transition: color 0.2s ease;
}

.nav__link--dropdown:focus-visible {
  outline: 2px solid rgba(100, 160, 220, 0.65);
  outline-offset: 3px;
}

.nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav__item--dropdown:hover .nav__link--dropdown,
.nav__item--dropdown:focus-within .nav__link--dropdown {
  background: #f6f8f7;
  color: var(--primary);
}

.nav__link--dropdown::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 8px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.85;
  vertical-align: middle;
}

.nav__item--dropdown:hover .nav__link--dropdown::after,
.nav__item--dropdown:focus-within .nav__link--dropdown::after {
  border-top: 0;
  border-bottom: 5px solid var(--primary);
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: fit-content;
  max-width: min(92vw, calc(100vw - 16px));
  min-width: 0;
  box-sizing: border-box;
  margin-top: 0;
  display: none;
  z-index: 100;
}

.nav__item--dropdown > .nav__dropdown--root {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  z-index: 120;
}

.nav__dropdown--root {
  background: #f6f8f7;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 0;
  border-radius: 0 14px 14px 14px;
  box-shadow: 0 24px 55px rgba(2, 6, 23, 0.12);
  min-width: 420px;
  max-width: min(92vw, 520px);
}

.nav__dropdown--right {
  position: absolute;
  top: 0;
  left: calc(100% - var(--submenu-shift, 0px));
  z-index: 130;
  width: fit-content;
  max-width: min(92vw, calc(100vw - 16px));
  min-width: 320px;
  box-sizing: border-box;
  background: #f6f8f7;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 24px 55px rgba(2, 6, 23, 0.12);
}

.nav__dropdown--right.nav__dropdown--left {
  right: calc(100% - var(--submenu-shift, 0px));
  left: auto;
}

.nav__dropdown-item--has-children {
  --submenu-shift: 13px; /* 12px hover-bridge + 1px overlap */
  padding-right: 12px; /* hover bridge to right dropdown */
  margin-right: -12px;
}

.nav__dropdown-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.nav__dropdown--root .nav__dropdown-link,
.nav__dropdown--right .nav__dropdown-link {
  position: relative;
  isolation: isolate;
  display: block;
  padding: 12px 20px;
  border-radius: 0;
  color: var(--primary);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  transition: color 0.15s ease;
}

.nav__dropdown--root .nav__dropdown-link::before,
.nav__dropdown--right .nav__dropdown-link::before {
  content: "";
  position: absolute;
  inset: 4px 4px;
  border-radius: 10px;
  background: rgba(27, 77, 46, 0.12);
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: -1;
}

.nav__dropdown-divider {
  height: 1px;
  margin: 0 16px;
  background: rgba(27, 77, 46, 0.14);
  list-style: none;
}

.nav__dropdown--root .nav__dropdown-link:hover,
.nav__dropdown--root .nav__dropdown-item--has-children:hover > .nav__dropdown-link,
.nav__dropdown--root .nav__dropdown-item--has-children:focus-within > .nav__dropdown-link {
  color: var(--primary);
}

.nav__dropdown--root .nav__dropdown-link:hover::before,
.nav__dropdown--root .nav__dropdown-item--has-children:hover > .nav__dropdown-link::before,
.nav__dropdown--root .nav__dropdown-item--has-children:focus-within > .nav__dropdown-link::before {
  opacity: 1;
}

.nav__dropdown--root .nav__dropdown-item--has-children:hover > .nav__dropdown-link::after,
.nav__dropdown--root .nav__dropdown-item--has-children:focus-within > .nav__dropdown-link::after {
  color: var(--primary);
  opacity: 1;
}

.nav__dropdown--right .nav__dropdown-link:hover,
.nav__dropdown--right .nav__dropdown-item--has-children:hover > .nav__dropdown-link,
.nav__dropdown--right .nav__dropdown-item--has-children:focus-within > .nav__dropdown-link {
  color: var(--primary);
}

.nav__dropdown--right .nav__dropdown-link:hover::before,
.nav__dropdown--right .nav__dropdown-item--has-children:hover > .nav__dropdown-link::before,
.nav__dropdown--right .nav__dropdown-item--has-children:focus-within > .nav__dropdown-link::before {
  opacity: 1;
}

.nav__dropdown--right .nav__dropdown-item--has-children:hover > .nav__dropdown-link::after,
.nav__dropdown--right .nav__dropdown-item--has-children:focus-within > .nav__dropdown-link::after {
  color: var(--primary);
  opacity: 1;
}

.nav__dropdown-item {
  position: relative;
}

.nav__dropdown-item--has-children > .nav__dropdown-link {
  padding-right: 28px;
}

.nav__dropdown-item--has-children > .nav__dropdown-link::after {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  content: "›";
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  opacity: 0.75;
}

/* (details/summary version removed; menu opens on hover/focus-within) */

.nav__dropdown--root .nav__dropdown-item--has-children > .nav__dropdown-link::after {
  color: var(--primary);
}

.nav__dropdown--right .nav__dropdown-item--has-children > .nav__dropdown-link::after {
  color: var(--primary);
}

.nav__item--dropdown:hover > .nav__dropdown,
.nav__item--dropdown:focus-within > .nav__dropdown,
.nav__dropdown-item--has-children:hover > .nav__dropdown,
.nav__dropdown-item--has-children:focus-within > .nav__dropdown {
  display: block;
}

.nav__dropdown-details {
  position: relative;
}

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

.search {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin-left: auto;
}

@media (max-width: 1023px) {
  .header__bottom {
    display: none;
  }

  .header__bottom-inner {
    flex-wrap: wrap;
  }

  .header__bottom .search--header {
    display: none;
  }

  .mobile-menu .search--mobile {
    display: block;
    max-width: none;
    margin-left: 0;
  }

  .mobile-menu .search__input {
    height: 44px;
    font-size: 14px;
  }
}

.search__icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 18px;
}

.search__input {
  width: 100%;
  height: 34px;
  padding: 0 12px 0 36px;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(248, 250, 252, 0.6);
  outline: none;
  font-size: 12px;
}

.search__input:focus {
  border-color: rgba(27, 77, 46, 0.5);
  box-shadow: 0 0 0 3px rgba(27, 77, 46, 0.12);
  background: #fff;
}

.search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.12);
  overflow: hidden;
  display: none;
  z-index: 200;
}

.search-suggest.is-open {
  display: block;
}

.search-suggest__list {
  display: grid;
}

.search-suggest__item {
  padding: 12px 12px;
  display: grid;
  gap: 4px;
  text-decoration: none;
  color: inherit;
}

.search-suggest__item:hover {
  background: rgba(148, 163, 184, 0.08);
}

.search-suggest__item-top {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
}

.search-suggest__item-title {
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
  font-size: 14px;
}

.search-suggest__item-tag {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 800;
  white-space: nowrap;
}

.search-suggest__item-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.search-suggest__empty {
  padding: 12px 12px;
  color: var(--muted);
  font-size: 13px;
}

.search-suggest__all {
  display: block;
  padding: 12px 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  font-weight: 900;
  color: var(--primary);
  font-size: 13px;
}

.main {
  flex: 1;
}

.section {
  padding: 30px 0;
}

@media (max-width: 767px) {
  .section {
    padding: 20px 0;
  }

  .section--hero {
    padding: 14px 0;
  }
}

.section--muted {
  background: var(--muted-bg);
}

.section--border {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--hero {
  --hero-bg: none;
  padding: 14px 0;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 1023px) {
  .section--hero {
    display: flex;
    flex-direction: column;
    height: 75vh;
    position: relative;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
  }

  @media (max-width: 767px) {
    .section--hero {
      background-image: var(--hero-bg-mobile, var(--hero-bg));
    }
  }

  .section--hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
  }

  .section--hero .hero {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 0;
  }

  .hero__media {
    display: none;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    padding: 6px 0 4px;
    gap: 10px;
  }

  .hero__lead {
    color: #334155;
  }
}

@media (min-width: 1024px) {
  .section--hero {
    display: flex;
    padding: 36px 0;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
  }

  .hero__content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .hero__media,
  .hero-card {
    height: 100%;
  }

  .hero__media {
    min-width: 0;
  }
}

.btn--block {
  width: 100%;
}

.link {
  color: var(--primary);
  font-weight: 800;
}

.link:hover {
  text-decoration: underline;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.breadcrumbs__link {
  color: #64748b;
}

.breadcrumbs__link:hover {
  color: var(--primary);
}

.breadcrumbs__sep {
  opacity: 0.7;
}

.breadcrumbs__current {
  color: var(--text);
}

.company-intro {
  background-color: white;
}

.company-intro__layout {
  display: grid;
  gap: 28px;
  margin: 20px 0;
}

@media (min-width: 1024px) {
  .company-intro__layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
    gap: 48px;
    align-items: stretch;
  }
}

.company-intro__content {
  min-width: 0;
}

.company-intro__title {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .company-intro__title {
    font-size: 32px;
  }
}

.text-lead,
.company-intro__lead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.text-lead.richtext,
.company-intro__lead.richtext {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.text-lead.richtext > :first-child,
.company-intro__lead.richtext > :first-child {
  margin-top: 0;
}

.text-lead.richtext > :last-child,
.company-intro__lead.richtext > :last-child {
  margin-bottom: 0;
}

.text-lead.richtext :where(p),
.company-intro__lead.richtext :where(p) {
  margin: 0 0 0.85em;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.text-lead.richtext :where(p + p),
.company-intro__lead.richtext :where(p + p) {
  margin-top: 0;
}

.text-lead.richtext :where(p:last-child),
.company-intro__lead.richtext :where(p:last-child) {
  margin-bottom: 0;
}

.text-lead.richtext :where(strong),
.company-intro__lead.richtext :where(strong) {
  color: var(--primary);
  font-weight: 700;
}

.category-detail__content :where(strong){
  color: var(--primary);
  font-weight: 700;
}

.section-head .text-lead {
  margin: 0;
}

.hero .text-lead {
  margin: 16px 0 0;
  max-width: 820px;
}

.text-lead--wide {
  max-width: 820px;
}

.process-card__text.text-lead,
.service-stat-card__label.text-lead {
  margin: 8px 0 0;
}

.service-stat-card__label.text-lead {
  font-weight: 700;
}

.faq__body.text-lead,
.cta__subtitle.text-lead {
  margin: 0;
}

.faq__body.text-lead {
  color: var(--muted);
}

.company-intro__directions {
  min-width: 0;
  max-width: 400px;
}

@media (min-width: 1024px) {
  .company-intro__directions {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
}

.company-intro__directions-eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  flex-shrink: 0;
}

.company-intro-directions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

@media (min-width: 1024px) {
  .company-intro-directions {
    flex: 1 1 auto;
    min-height: 0;
    grid-auto-rows: 1fr;
    align-content: stretch;
    gap: 8px;
  }
}

.company-intro-directions__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
  padding: 10px 0;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.18s ease;
}

@media (min-width: 1024px) {
  .company-intro-directions__item {
    height: 100%;
    padding: 12px 0;
  }
}

.company-intro-directions__item:hover {
  color: var(--primary);
}

.company-intro-directions__item:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.company-intro-directions__title {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 800;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.company-intro-directions__arrow {
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
  transition: transform 0.18s ease;
}

.company-intro-directions__item:hover .company-intro-directions__arrow {
  transform: translateX(3px);
}

@media (max-width: 767px) {
  .company-intro__layout {
    margin-top: 16px;
    gap: 24px;
  }

  .company-intro__title {
    font-size: 28px;
  }

  .text-lead,
  .text-lead.richtext,
  .company-intro__lead,
  .company-intro__lead.richtext {
    font-size: 16px;
    margin-top: 12px;
  }

  .hero .text-lead {
    margin-top: 12px;
  }

  .company-intro__directions {
    max-width: none;
  }

  .company-intro-directions {
    gap: 4px;
  }

  .company-intro-directions__item {
    padding: 10px 0;
    min-height: 44px;
  }

  .company-intro-directions__title {
    font-size: 15px;
  }

  .company-intro-directions__arrow {
    font-size: 18px;
  }

  .company-intro__directions-eyebrow {
    font-size: 12px;
  }
}

.service-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

@media (min-width: 1024px) {
  .service-hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 26px;
  }
}

.service-hero__title {
  margin: 14px 0 0;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .service-hero__title {
    font-size: 46px;
  }
}

.service-hero__lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 720px;
}

.page-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

@media (min-width: 1024px) {
  .page-hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 26px;
  }
}

.page-hero__title {
  margin: 14px 0 0;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .page-hero__title {
    font-size: 40px;
  }
}

.page-hero__lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 720px;
}

.page-hero__aside {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.page-hero-section {
  position: relative;
  overflow: hidden;
}

.page-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--page-hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.02);
  opacity: 0.95;
  pointer-events: none;
}

.page-hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(246, 248, 247, 0.96) 0%, rgba(246, 248, 247, 0.86) 45%, rgba(246, 248, 247, 0.72) 100%),
    rgba(15, 23, 42, 0.12);
  pointer-events: none;
}

.page-hero-section > .container {
  position: relative;
  z-index: 1;
}

/* --- Service page (page_detail): landing-style blocks --- */
.page-hero-section .hero {
  align-items: stretch;
}

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

.service-hero-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.service-hero-trust__item .ms {
  font-size: 18px;
  color: var(--primary);
}

.page-hero-card-corner {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  max-width: min(220px, 58%);
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(150, 230, 67, 0.96);
  color: #14532d;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.12);
}

.service-stats-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .service-stats-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .service-stats-strip {
    grid-template-columns: repeat(6, 1fr);
  }
}

.service-stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  text-align: center;
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.04);
}

.service-stat-card__value {
  margin: 0;
  font-size: clamp(22px, 3.6vw, 32px);
  font-weight: 1000;
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1.1;
}

.service-stat-card__label {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 700;
}

.service-benefit-card .process-card__icon {
  margin: 0 0 4px;
}

.service-process-wide {
  /* Mobile: one column */
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .service-process-wide {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .service-process-wide {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

.service-process-wide .process-card {
  text-align: left;
}

.process-card__step-index {
  min-width: 35px;
  min-height: 35px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 1000;
  font-size: 18px;
  margin: 0;
}

.process-card__header {
  display: none;
}

.process-card__step-number {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 42px;
  line-height: 1;
  font-weight: 1000;
  color: #94a3b8;
  opacity: 0.35;
  user-select: none;
  pointer-events: none;
}

.faq--narrow {
  max-width: 760px;
  margin: 0 auto;
}

.richtext {
  max-width: 960px;
}

.richtext :where(h1, h2, h3, h4) {
  margin: 0;
  color: var(--text);
  font-weight: 1000;
  letter-spacing: -0.01em;
}

.richtext h1 {
  font-size: 28px;
  line-height: 1.15;
}

.richtext h2 {
  font-size: 22px;
  line-height: 1.2;
}

.richtext h3 {
  font-size: 18px;
  line-height: 1.25;
}

.richtext :where(h1, h2, h3) + :where(p, ul, ol) {
  margin-top: 10px;
}

.richtext :where(p, ul, ol, blockquote) {
  margin: 0;
  line-height: 1.75;
}

.richtext :where(p + p) {
  margin-top: 12px;
}

.richtext :where(h2, h3) {
  margin: 18px 0;
}

.richtext :where(ul, ol) {
  padding-left: 18px;
}

.richtext :where(li) {
  margin: 0;
}

.richtext :where(a) {
  color: var(--primary);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(27, 77, 46, 0.35);
}

.richtext :where(a:hover) {
  text-decoration-color: rgba(27, 77, 46, 0.65);
}

.richtext :where(hr) {
  border: 0;
  height: 1px;
  background: rgba(226, 232, 240, 0.9);
  margin: 16px 0;
}

.richtext :where(blockquote) {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 4px solid rgba(27, 77, 46, 0.35);
  background: rgba(148, 163, 184, 0.12);
  border-radius: 12px;
}

.richtext :where(table) {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 13px;
}

.richtext :where(th, td) {
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 10px 12px;
  vertical-align: top;
}

.richtext :where(th) {
  background: rgba(148, 163, 184, 0.12);
  font-weight: 900;
  color: var(--text);
  text-align: left;
}

.richtext :where(code) {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
  background: rgba(148, 163, 184, 0.14);
  padding: 2px 6px;
  border-radius: 8px;
}

.richtext :where(pre) {
  margin-top: 14px;
  background: rgba(2, 6, 23, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  padding: 12px 14px;
  overflow: auto;
}

.richtext :where(pre code) {
  background: transparent;
  padding: 0;
}

@media (max-width: 767px) {
  .richtext {
    max-width: none;
  }

  .richtext h1 {
    font-size: 24px;
  }

  .richtext h2 {
    font-size: 20px;
  }

  .richtext h3 {
    font-size: 16px;
  }

  .richtext :where(p, ul, ol, blockquote) {
    font-size: 14px;
    line-height: 1.7;
  }

  .richtext :where(th, td) {
    padding: 8px 10px;
  }
}

.process-card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  padding-right: 56px;
}

.process-card--clickable {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.process-card--clickable {
  background: var(--primary);
  border-color: rgba(255, 255, 255, 0.18);
}

.process-card--clickable:hover {
  filter: brightness(1.03);
}

.process-card--clickable:focus-visible {
  outline: 2px solid rgba(150, 230, 67, 0.9);
  outline-offset: 2px;
}

.process-card--clickable .process-card__title {
  color: #fff;
}

.process-card--clickable .process-card__text {
  color: rgba(255, 255, 255, 0.88);
}

.process-card--clickable .process-card__step-number {
  color: rgba(255, 255, 255, 0.35);
  opacity: 1;
}

.process-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(27, 77, 46, 0.1);
  display: grid;
  place-items: center;
  color: var(--primary);
}

.process-card__icon .ms {
  font-size: 24px;
}

.process-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.process-card__text {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq__item {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 12px;
}

.faq__summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 900;
}

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

.faq__chev {
  color: var(--primary);
  transition: transform 0.18s ease;
}

.faq__item[open] .faq__chev {
  transform: rotate(180deg);
}

.faq__body {
  padding: 0 18px 16px;
  color: #334155;
  line-height: 1.65;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(27, 77, 46, 0.1);
  color: var(--primary);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
}

.badge__icon {
  font-size: 16px;
}

.hero__title {
  margin: 0;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

@media (max-width: 767px) {
  .badge {
    font-size: 12px;
    padding: 6px 10px;
  }

  .hero__title {

    font-size: 42px;
    line-height: 1.1;
  }

  .hero__lead {
    font-size: 15px;
    margin-top: 12px;
  }

  .hero__actions {
    margin-top: 16px;
    gap: 10px;
  }
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 52px;
  }
}

.hero__lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 620px;
}

.hero__actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 4%;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

@media (max-width: 767px) {
  .btn {
    height: 44px;
    padding: 0 3%;
    font-size: 14px;
  }
}

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

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: rgba(27, 77, 46, 0.92);
}

.btn--outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--outline:hover {
  background: rgba(148, 163, 184, 0.12);
}

.hero-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow);
}

.hero-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card__stat {
  width: 60%;
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  padding: 8px;
  display: flex;
  gap: 14px;
  align-items: center;
  backdrop-filter: blur(10px);
}

.hero-card__stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(27, 77, 46, 0.15);
  display: grid;
  place-items: center;
}

.hero-card__stat-title {
  margin: 0;
  font-weight: 900;
  font-size: 14px;
}

.hero-card__stat-text {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748b;
}

.section-head {
  display: grid;
  gap: 10px;
}

.section-head__title {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.01em;
}

.section-head__text {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.6;
}

.section-head__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.section-head__link {
  color: var(--primary);
  font-weight: 900;
  font-size: 14px;
  white-space: nowrap;
}

.section-head__link:hover {
  opacity: 0.85;
}

#articles .section-head__link--articles-mobile {
  display: none;
}

@media (max-width: 767px) {
  .section-head {
    margin: 15px 0;
    gap: 20px;
  }

  .section-head__row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .section-head__title {
    font-size: 24px;
    line-height: 1.15;
  }

  .section-head__text:not(.text-lead) {
    font-size: 18px;
  }
}

.section-head--center {
  text-align: center;
  justify-items: center;
}

.grid {
  display: grid;
  gap: 18px;
}

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

@media (max-width: 359px) {
  .grid--3 {
    display: flex;
  }
}

@media (max-width: 768px) {
  .grid--3 {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
}

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

.card {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.04);
}

/* Override base .card background for clickable process step */
.card.process-card--clickable {
  background: var(--primary);
  border-color: rgba(255, 255, 255, 0.18);
}

@media (max-width: 767px) {
  .card {
    padding: 16px;
    border-radius: 14px;
  }
}

.card:hover {
  border-color: rgba(27, 77, 46, 0.25);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.08);
}

.service {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
}

.service--with-bg {
  position: relative;
  overflow: hidden;
  color: var(--text);
}

.service--with-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--service-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.03);
  opacity: 0.92;
  pointer-events: none;
}

.service--with-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.72) 60%, rgba(255, 255, 255, 0.6) 100%),
    rgba(15, 23, 42, 0.06);
  pointer-events: none;
}

.service--with-bg > * {
  position: relative;
  z-index: 2;
}

.service--with-bg .service__title,
.service--with-bg .service__text,
.service--with-bg .service__list,
.service--with-bg .service__more,
.service--with-bg .service__help-actions {
  position: relative;
  z-index: 2;
}

.service--with-bg .service__text {
  color: rgba(15, 23, 42, 0.75);
}

.service__icon {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
}

.is-home .service__icon,
.page-company #company-help .service__icon {
  display: grid;
  place-items: center;
}

.service__icon .ms {
  font-size: 22px;
}

/* Чуть компактнее иконки в сетке услуг на главной и «Чем поможем» на странице компании */
.is-home #services .service__icon,
.page-company #company-help .service__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.is-home #services .service__icon .ms,
.page-company #company-help .service__icon .ms {
  font-size: 20px;
}

.service__head {
  display: contents;
  height: 30%;
}

.is-home #services .service__head,
.page-services #services .service__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.is-home #services .service__head .service__title,
.page-services #services .service__head .service__title {
  order: 1;
  flex: 1;
  min-width: 0;
}

.is-home #services .service__head .service__icon,
.page-services #services .service__head .service__icon {
  order: 2;
  flex-shrink: 0;
}

.service__title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.service__text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.service__list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.service__list-item + .service__list-item {
  margin-top: 4px;
}

.is-home #services .card.service,
.page-services #services .card.service,
.page-company #company-help .card.service {
  position: relative;
}

.is-home #services .service__cover-link,
.page-services #services .service__cover-link,
.page-company #company-help .service__cover-link {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 5;
  display: block;
  touch-action: pan-y;
}

.is-home #services .card.service > :not(.service__cover-link),
.page-services #services .card.service > :not(.service__cover-link),
.page-company #company-help .card.service > :not(.service__cover-link) {
  position: relative;
  z-index: 1;
}

.is-home #services .service__list-item.is-more-item,
.page-services #services .service__list-item.is-more-item {
  display: none;
}

.is-home #services .card.service.is-more-open .service__list-item.is-more-item,
.page-services #services .card.service.is-more-open .service__list-item.is-more-item {
  display: list-item;
}

.service__more {
  margin-top: 10px;
  width: fit-content;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  background: transparent;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.service__more:hover {
  text-decoration-thickness: 2px;
}

.service--help {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service--help .service__title {
  margin-top: 0;
}

.service__help-actions {
  margin-top: auto;
}

@media (max-width: 767px) {
  .grid--3 .card {
    padding: 14px;
    border-radius: 14px;
  }

  .grid--3 .card.service {
    padding: 16px;
    border-radius: 14px;
  }

  .grid--3 .service {
    min-height: auto;
    gap: 10px;
    align-content: start;
  }

  .grid--3 .service__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .grid--3 .service__icon .ms {
    font-size: 18px;
  }

  .is-home #services .service__icon,
  .page-company #company-help .service__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .is-home #services .service__icon .ms,
  .page-company #company-help .service__icon .ms {
    font-size: 16px;
  }

  .grid--3 .service__title {
    font-size: 20px;
    line-height: 1.2;
  }

  .grid--3 .service__text,
  .grid--3 .service__list {
    font-size: 16px;
    line-height: 1.45;
  }

  .grid--3 .service__list {
    padding-left: 16px;
  }

  .grid--3 .service--cta {
    grid-column: 1 / -1;
    gap: 8px;
  }


  .grid--3 .service__cta-icon {
    width: 48px;
    height: 48px;
  }

  .grid--3 .service__cta-icon .ms {
    font-size: 24px;
  }

  .grid--3 .service__cta-title {
    font-size: 18px;
  }

  #reviews .grid--3 {
    grid-template-columns: 1fr;
  }

  .page-services #services .grid--3 {
    grid-template-columns: 1fr;
  }

  .review-card {
    min-height: auto;
    gap: 10px;
    padding: 14px;
  }

  .review-card__author .review-stars {
    margin-top: 4px;
  }

  .review-stars__icon {
    font-size: 16px;
  }

  .review-card__name {
    font-size: 14px;
  }

  .review-card__meta {
    font-size: 12px;
  }

  .review-card__text {
    display: block;
    font-size: 15px;
    line-height: 1.55;
  }

  .review-card__text[data-review-text] {
    -webkit-line-clamp: 5;
    line-clamp: 5;
  }

  .review-card__toggle {
    font-size: 13px;
  }

  .review-card--all__icon {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .review-card--all__title {
    font-size: 16px;
  }

  .review-card--all__text {
    font-size: 14px;
  }

  #articles .section-head {
    margin-bottom: 20px;
  }

  #articles .section-head__row .section-head__link {
    display: none;
  }

  #articles .section-head__link--articles-mobile {
    display: block;
    width: fit-content;
    margin: 16px auto 0;
    white-space: normal;
    font-size: 13px;
    text-align: center;
  }

  #articles .blog-list {
    gap: 12px;
  }

  #articles .blog-card {
    padding: 14px;
    gap: 8px;
    min-width: 0;
  }

  #articles .blog-card__meta {
    font-size: 12px;
  }

  #articles .blog-card__title {
    font-size: 16px;
    line-height: 1.3;
  }

  #articles .blog-card__excerpt {
    font-size: 13px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
  }
}

.consultation-section {
  background: #fff;
}

.consultation-section__layout {
  display: grid;
  gap: 28px;
  align-items: start;
}

@media (min-width: 1024px) {
  .consultation-section__layout {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    align-items: stretch;
  }

  .consultation-section__intro {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    max-width: 40%;
  }

  .consultation-section__messengers {
    align-items: stretch;
    min-height: 0;
  }

  .consultation-section__messenger {
    flex: 1;
    min-height: 48px;
    max-width: 45%;
  }

}

.consultation-section__title {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 1000;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.consultation-section__lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
  max-width: 46ch;
}

.consultation-section__messengers {
  display: grid;
  gap: 10px;
}

@media (min-width: 520px) {
  .consultation-section__messengers {
    display: flex;
    align-items: center;
    width: 100%;
  }
}

.consultation-section__messenger {
  gap: 10px;
}

.consultation-section__messenger .header-icon {
  width: 18px;
  height: 18px;
}

.consultation-section__phone {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.consultation-section__form-panel {
  max-width: 50%;
  background: var(--muted-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.06);
}

.consultation-section__form-title {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .consultation-section__intro,
  .consultation-section__form-title {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .consultation-section__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .consultation-section__form-panel {
    max-width: 100%;
    padding: 18px;
    border-radius: 14px;
  }

  .consultation-section__messengers {
    display: flex;
  }
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(248, 250, 252, 0.8);
  outline: none;
  font-size: 14px;
}

.input:focus {
  border-color: rgba(27, 77, 46, 0.5);
  box-shadow: 0 0 0 3px rgba(27, 77, 46, 0.12);
  background: #fff;
}

.about__placeholder {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

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

.gov-partners {
  background: #fff;
}

.gov-partners__placeholder {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.gov-partners__heading {
  margin: 0 auto 10px;
  max-width: 48rem;
  text-align: center;
  font-size: clamp(18px, 2.1vw, 26px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
}

.gov-partners__subheading {
  margin: 0 auto 28px;
  max-width: 48rem;
  text-align: center;
  font-size: clamp(13px, 1.35vw, 15px);
  font-weight: 600;
  line-height: 1.45;
  color: var(--muted);
}

.gov-partners__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: stretch;
}

.gov-partners__grid-item {
  margin: 0;
  padding: 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.gov-partners__card {
  margin: 0;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.04);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100%;
}

a.gov-partners__card--link {
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

a.gov-partners__card--link:hover {
  border-color: rgba(27, 77, 46, 0.22);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.08);
  transform: translateY(-1px);
}

a.gov-partners__card--link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

a.gov-partners__card--link:active {
  transform: translateY(0);
}

.gov-partners__card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 18px 16px;
  flex: 1;
  min-height: 0;
}

.gov-partners__logo-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gov-partners__logo {
  width: 100%;
  height: 100%;
  max-width: 56px;
  max-height: 56px;
  object-fit: contain;
  object-position: center;
}

.gov-partners__name {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.gov-partners__name--mixed {
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 700;
  font-size: 13px;
  color: var(--primary);
}

@media (max-width: 1023px) {
  .gov-partners__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .gov-partners__heading {
    margin-bottom: 8px;
  }

  .gov-partners__subheading {
    margin-bottom: 22px;
  }
}

@media (max-width: 639px) {
  .gov-partners__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .gov-partners__name {
    font-size: 12px;
    line-height: 1.35;
  }

  .gov-partners__name--mixed {
    font-size: 13px;
    line-height: 1.35;
  }

  .gov-partners__heading {
    margin-bottom: 8px;
    font-size: 18px;
  }

  .gov-partners__subheading {
    margin-bottom: 18px;
    font-size: 14px;
  }

  .gov-partners__card-inner {
    padding: 16px 14px;
  }
}

.team {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.08);
}

.team-section {
  display: grid;
  gap: 18px;
  align-items: start;
}

@media (min-width: 1024px) {
  .team-section {
    grid-template-columns: 7fr 3fr;
    gap: 22px;
    align-items: stretch;
  }
}

.team-section__aside {
  align-self: stretch;
}

.team-section__aside .card {
  height: 100%;
}

@media (min-width: 768px) {
  .team {
    grid-template-columns: 320px 1fr;
    gap: 34px;
    padding: 24px;
    align-items: stretch;
  }

  .team__photo {
    height: 100%;
  }

  .team__content {
    height: 100%;
  }
}

.team__photo {
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  box-shadow: 0 14px 36px rgba(2, 6, 23, 0.12);
}

.team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (min-width: 768px) {
  .team__photo {
    width: 320px;
    justify-self: start;
    align-self: start;
    aspect-ratio: 1 / 1;
  }
}

.team__content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-content: start;
}

.team__name {
  margin: 0;
  font-size: 32px;
  font-weight: 1000;
  line-height: 1.15;
}

.team__name-line {
  display: block;
}

.team__role {
  margin: 0;
  color: var(--primary);
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
}

.team__experience {
  margin: 0;
  margin-top: auto;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
  max-width: 52ch;
}

.team__subtitle {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 900;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: block;
  column-count: 1;
  column-gap: 18px;
}

@media (min-width: 768px) {
  .checklist {
    column-count: 2;
  }
}

/* Director section: competencies list should stay 1-column */
@media (min-width: 768px) {
  .team .checklist {
    column-count: 1;
  }
}

.checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #334155;
  line-height: 1.55;
  font-size: 14px;
  padding: 0;
  break-inside: avoid;
  margin: 0 0 6px;
}

/* Smaller icon badges for director competencies */
.team .team-competency-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  padding: 0;
  flex: 0 0 24px;
}

.team .team-competency-icon .ms.icon {
  font-size: 16px;
}

.checklist__item:last-child {
  margin-bottom: 0;
}

.checklist__icon {
  margin-top: 1px;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  aspect-ratio: 1 / 1;
  flex: 0 0 22px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}

.clients {
  display: grid;
  gap: 30px;
  justify-items: center;
}

.clients__eyebrow {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 900;
}

.clients__more {
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s ease;
}

.clients__more:hover {
  color: #64748b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.clients__more:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.clients--cards {
  justify-items: stretch;
  width: 100%;
}

.page-company #clients .clients__eyebrow {
  text-align: center;
}

.clients-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.clients-cards__item {
  display: flex;
  min-width: 0;
}

.clients-cards__card {
  display: grid;
  grid-template-columns: 70% 30%;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(2, 6, 23, 0.04);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.clients-cards__card:hover {
  border-color: rgba(27, 77, 46, 0.25);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.07);
}

.clients-cards__card--logo-only {
  grid-template-columns: 1fr;
  justify-items: center;
}

.clients-cards__card--logo-only .clients-cards__logo-wrap {
  padding-left: 0;
  width: 100%;
}

.clients-cards__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 0;
  box-sizing: border-box;
  padding-left: 12px;
  border-left: 1px solid rgba(226, 232, 240, 0.95);
}

.clients-cards__logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  border-radius: 8px;
  transition: opacity 0.18s ease;
}

.clients-cards__logo-link:hover {
  opacity: 0.72;
}

.clients-cards__logo-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.clients-cards__logo,
.clients--cards .client-logo-link__img {
  display: block;
  height: auto;
  max-height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.clients-cards__text {
  margin: 0;
  min-width: 0;
  box-sizing: border-box;
  padding-right: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.client-logo-link__img {
  display: block;
  width: auto;
  object-fit: contain;
}

.clients__grid .client-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.clients__grid .client-logo-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 8px;
}

@media (min-width: 640px) {
  .clients-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .clients-cards__logo,
  .clients--cards .client-logo-link__img {
    max-height: 44px;
  }
}

@media (min-width: 1024px) {
  .clients-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .clients-cards__card {
    padding: 16px 18px;
  }

  .clients-cards__logo-wrap {
    padding-left: 14px;
  }

  .clients-cards__text {
    padding-right: 14px;
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .clients-cards__card {
    padding: 14px 14px;
    border-radius: 10px;
  }

  .clients-cards__logo-wrap {
    padding-left: 10px;
  }

  .clients-cards__text {
    padding-right: 10px;
    font-size: 14px;
    line-height: 1.5;
  }

  .clients-cards__logo,
  .clients--cards .client-logo-link__img {
    max-height: 32px;
  }
}

.clients__grid {
  width: 100%;
  display: block;
}

.clients-slider {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.clients-slider__track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: clients-marquee 110s linear infinite;
}

.clients-slider--js .clients-slider__track {
  animation: none;
  will-change: transform;
  touch-action: pan-x;
  cursor: grab;
}

.clients-slider--js.is-dragging {
  user-select: none;
}

.clients-slider--js.is-dragging .clients-slider__track {
  touch-action: none;
}

.clients-slider--js.is-dragging .clients-slider__track {
  cursor: grabbing;
}

.clients-slider__item {
  flex: 0 0 auto;
}

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

@media (prefers-reduced-motion: reduce) {
  .clients-slider__track {
    animation: none;
  }
}

.clients__grid img,
.clients__grid .client-logo-link__img {
  height: 44px;
  width: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.clients__grid img:hover,
.clients__grid .client-logo-link:hover img {
  opacity: 1;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

a.review-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

a.review-card--link:hover {
  border-color: rgba(27, 77, 46, 0.22);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.08);
  transform: translateY(-1px);
}

a.review-card--link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

a.review-card--link:active {
  transform: translateY(0);
}

a.review-card--link .review-card__toggle {
  position: relative;
  z-index: 1;
}

.review-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: rgba(148, 163, 184, 0.9);
}

.review-stars__icon {
  font-size: 16px;
  line-height: 1;
}

.review-stars__icon.is-active {
  color: var(--accent);
}

.review-card__author {
  display: grid;
  gap: 2px;
}

.review-card__author .review-stars {
  margin-top: 6px;
}

.review-card--all {
  text-decoration: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}

.review-card--all:hover {
  transform: translateY(-1px);
}

.review-card--all__icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(27, 77, 46, 0.1);
  color: var(--primary);
  font-size: 22px;
}

.review-card--all__title {
  font-weight: 1000;
  font-size: 16px;
}

.review-card--all__text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.review-card__name {
  font-weight: 900;
  font-size: 14px;
  color: var(--text);
}

.review-card__meta {
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 800;
}

.review-card__text {
  margin: 0;
  color: #475569;
  line-height: 1.6;
  font-style: italic;
  font-size: 14px;
  display: block;
}

.review-card__text-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.review-card__text[data-review-text] {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  line-clamp: 7;
}

.review-card__text-wrap.is-expanded .review-card__text[data-review-text] {
  -webkit-line-clamp: initial;
  line-clamp: initial;
  overflow: visible;
  display: block;
}

.review-card__toggle {
  align-self: flex-end;
  margin-top: 2px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #94a3b8;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}

.review-card__toggle:hover {
  color: #64748b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.review-card__toggle:focus-visible {
  outline: 2px solid rgba(27, 77, 46, 0.35);
  outline-offset: 3px;
  border-radius: 8px;
}

.review-card__toggle.is-hidden {
  display: none;
}

.reviews__footer .btn {
  gap: 10px;
}

.map {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  margin-top: 30px;
}

.map__media {
  position: absolute;
  inset: 0;
}

@media (max-width: 767px) {
  .is-home .map {
    display: flex;
    flex-direction: column;
    gap: 14px;
    aspect-ratio: unset;
    overflow: visible;
    box-shadow: none;
    background: transparent;
  }

  .is-home .map__media {
    position: relative;
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow);
  }
}

@media (min-width: 768px) {
  .map {
    aspect-ratio: 21 / 9;
    margin-top: 30px;
  }
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-mask {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.28));
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 0;
  color: #fff;
  backdrop-filter: blur(2px);
  transition: background 0.2s ease, opacity 0.18s ease, transform 0.18s ease;
}

.map-mask::before {
  content: none;
}

.map-mask > * {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 360px;
  text-shadow: 0 2px 10px rgba(2, 6, 23, 0.35);
}

.map-mask__title {
  font-weight: 1000;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.map-mask__title::before {
  content: "touch_app";
  font-family: "Material Symbols Outlined";
  font-weight: 400;
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  color: #fff;
}

.map-mask:hover {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.34));
}

.map-mask:focus-visible {
  outline: 3px solid rgba(27, 77, 46, 0.45);
  outline-offset: -3px;
}

.map-mask.is-hiding {
  opacity: 0;
  transform: scale(0.985);
}

.map-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.12);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 14px;
}

@media (max-width: 767px) {
  .is-home .map-card {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    padding: 18px;
    border-radius: 18px;
    gap: 14px;
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.12);
    backdrop-filter: none;
  }
}

@media (min-width: 768px) {
  .map-card {
    right: auto;
    width: 30%;
  }
}

.map-card__row {
  display: grid;
  grid-template-columns: var(--icon-badge-size) 1fr;
  gap: 12px;
  align-items: start;
}

.map-card__row .ms.icon.icon--primary {
  width: var(--icon-badge-size);
  height: var(--icon-badge-size);
  border-radius: 999px;
  background: rgba(27, 77, 46, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.map-card__row--border {
  padding-top: 12px;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.map-card__label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 900;
  margin-bottom: 4px;
}

.map-card__value {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
}

.footer {
  padding: 56px 0 46px;
  background: #fff;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

@media (max-width: 767px) {
  .footer {
    padding: 44px 0 36px;
  }

  .footer__grid {
    display: flex;
    flex-direction: column;
    gap: 26px;
  }

  .footer__nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    order: 1;
  }

  .footer__nav .footer__col {
    width: 100%;
  }

  .footer__col--brand {
    order: 2;
    padding-top: 20px;
    margin-top: 0;
  }

  .footer__col--contacts {
    order: 3;
    padding-top: 0;
  }

  .footer__title--contacts {
    display: none;
  }

  .footer__col--contacts .footer__contact:first-child {
    margin-top: 0;
  }

  .footer__links--legal {
    margin-top: 14px;
  }

  .footer__text {
    font-size: 13px;
  }
}

.footer__grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer__nav {
    display: contents;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__col--brand {
    order: 1;
  }

  .footer__col--services {
    order: 2;
  }

  .footer__col--articles {
    order: 3;
  }

  .footer__col--menu {
    order: 4;
  }

  .footer__col--contacts {
    order: 5;
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr 1.1fr;
  }

  .footer__col--brand {
    order: 1;
  }

  .footer__col--services {
    order: 2;
  }

  .footer__col--articles {
    order: 3;
  }

  .footer__col--menu {
    order: 4;
  }

  .footer__col--contacts {
    order: 5;
  }
}

.footer__text {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.footer__title {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 900;
}

.footer__title--inline {
  margin-top: 18px;
}

/* Секции футера: на мобильных — спойлеры, на десктопе — как раньше */
.footer__section {
  margin: 0;
}

.footer__section > summary.footer__title {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.footer__section > summary.footer__title::-webkit-details-marker {
  display: none;
}

.footer__section-chev {
  flex-shrink: 0;
  font-size: 22px;
  color: var(--primary);
  transition: transform 0.18s ease;
}

.footer__section[open] > summary .footer__section-chev {
  transform: rotate(180deg);
}

.footer__section-body {
  padding-top: 2px;
}

.footer__section-body > .footer__links {
  margin: 10px 0;
}

.footer__section-body > .footer__contact:first-child {
  margin-top: 10px;
}

@media (max-width: 767px) {
  .footer__section {
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  }

  .footer__col:has(.footer__section) {
    padding: 0;
  }

  .footer__section > summary.footer__title {
    padding: 10px 0;
  }
}

@media (min-width: 768px) {
  .footer__section > summary.footer__title {
    pointer-events: none;
    cursor: default;
    padding: 0;
  }

  .footer__section-chev {
    display: none;
  }

  /* <details> по умолчанию закрыты — на десктопе всегда показываем ссылки */
  .footer__section:not([open]) > :not(summary),
  .footer__section .footer__section-body {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
  }

  .footer__section .footer__links {
    display: grid !important;
  }

  .footer__section {
    border: 0;
    padding: 0;
  }
}

@supports selector(::details-content) {
  @media (min-width: 768px) {
    .footer__section::details-content {
      display: block;
      height: auto;
      overflow: visible;
    }
  }
}

.footer__links {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.footer__links a {
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
}

.footer__links a:hover {
  color: var(--primary);
}

.footer__legal {
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.45;
}

.footer__legal-link {
  color: #94a3b8;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.35;
}

.footer__legal-link:hover {
  color: var(--primary);
}

.footer__contact {
  margin-top: 12px;
  display: grid;
  grid-template-columns: var(--icon-badge-size) 1fr;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.5;
}

/* Circle background for footer contact icons (map + phone) */
.footer__contact .ms.icon.icon--primary {
  width: var(--icon-badge-size);
  height: var(--icon-badge-size);
  border-radius: 999px;
  background: rgba(27, 77, 46, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer__contact-col {
  display: grid;
  gap: 2px;
}

.footer__contact-main {
  font-size: 13px;
  line-height: 1.25;
}

.footer__contact-sub {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 800;
  line-height: 1.25;
}

.footer__contact-link {
  font-size: 13px;
}

.footer__contact-link:hover {
  color: var(--primary);
}

.footer__icons {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Blog */
.blog-list {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}


@media (min-width: 1024px) {
  .blog-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.blog-card {
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  padding: 18px;
}

.blog-card__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #94a3b8;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.blog-card__title {
  color: #0f172a;
  font-weight: 900;
  line-height: 1.25;
  font-size: 18px;
}

.blog-card__excerpt {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.blog-card--cta {
  background: rgba(27, 77, 46, 0.06);
}

.blog-card--cta:hover {
  background: rgba(27, 77, 46, 0.1);
}

.blog-card--cta .blog-card__meta,
.blog-card--cta .blog-card__title {
  color: #0f172a;
}

.blog-card--cta .ms {
  font-size: 18px;
  line-height: 1;
  color: var(--primary);
}

.blog-article.richtext {
  max-width: none;
  width: 100%;
}

.blog-article__breadcrumbs {
  margin-bottom: 4px;
}

.section-head__kicker {
  margin: 0;
  font-size: 14px;
}

.blog-article__meta {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.blog-article__figure {
  margin: 0 0 20px;
}

.blog-article__figure img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 12px;
}

.blog-article__trust {
  margin-bottom: 20px;
}

.blog-article__section {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.blog-article__heading {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.blog-article__lead {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
}

.blog-article .faq--narrow {
  max-width: none;
}

.blog-article .service-stats-strip {
  margin-top: 0;
}

.blog-article .service-stat-card {
  background: var(--muted-bg);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.blog-article .card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: none;
}

.blog-article__cta {
  padding: 22px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  border-top-color: transparent;
}

.blog-article__cta-text {
  margin: 0 0 14px;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 1000;
  line-height: 1.3;
}

.blog-article__cta .hero__actions {
  margin-top: 0;
  flex-wrap: wrap;
}

.blog-article__cta .btn--primary {
  background: #fff;
  color: var(--primary);
}

.blog-article__cta .btn--primary:hover {
  background: var(--accent);
  color: #14532d;
}

.blog-article__cta .btn--outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}

.blog-article__cta .btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.blog-article .service__icon {
  display: grid;
  place-items: center;
}

.blog-detail {
  display: grid;
  gap: 22px;
}

.blog-detail__article {
  width: 100%;
  min-width: 0;
}

.blog-detail__grid {
  display: grid;
  gap: 22px;
  align-items: start;
}

@media (min-width: 1024px) {
  .blog-detail__grid {
    grid-template-columns: 7fr 3fr;
    gap: 28px;
  }
}

.blog-detail__feedback {
  margin-top: 0;
  min-width: 0;
}

@media (min-width: 1024px) {
  .blog-detail__feedback {
    position: sticky;
    top: 140px;
  }
}

.blog-aside {
  background-color: var(--muted-bg);
  display: grid;
  gap: 12px;
}

.is-home .blog-aside {
  background-color: #fff;
}

.page-company .team-section__aside .blog-aside {
  background-color: #fff;
}

.blog-aside__title {
  font-weight: 1000;
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-size: 18px;
}

.blog-aside__text {
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.blog-aside__contacts {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.blog-aside__messengers {
  display: grid;
  gap: 10px;
}

.blog-aside__contact,
.blog-aside__messenger {
  text-decoration: none;
}

.blog-aside__contact {
  display: grid;
  grid-template-columns: var(--icon-badge-size) 1fr;
  gap: 10px;
  align-items: center;
  color: #334155;
  font-weight: 600;
  font-size: 14px;
}

.blog-aside__contact:hover {
  color: var(--primary);
  text-decoration: none;
}

.blog-aside__messenger {
  display: grid;
  grid-template-columns: var(--icon-badge-size) 1fr;
  gap: 10px;
  align-items: center;
  color: #334155;
  font-weight: 600;
  font-size: 14px;
}

.blog-aside__messenger:hover {
  color: var(--primary);
  text-decoration: none;
}

/* Внутри article.richtext (категории, блог) — без подчёркивания из .richtext :where(a) */
.richtext .blog-aside :where(a.blog-aside__contact, a.blog-aside__messenger) {
  text-decoration: none;
  font-weight: 600;
}

.richtext .blog-aside :where(a.blog-aside__contact:hover, a.blog-aside__messenger:hover) {
  text-decoration: none;
}

.blog-aside__messenger-label {
  line-height: 1.2;
}

.blog-detail__main {
  min-width: 0;
}

.category-detail {
  display: grid;
  gap: 22px;
}

.category-detail__article {
  width: 100%;
  min-width: 0;
}

.category-detail__grid {
  display: grid;
  gap: 22px;
  align-items: start;
}

@media (min-width: 1024px) {
  .category-detail__grid {
    grid-template-columns: 7fr 3fr;
    gap: 28px;
  }
}

.category-detail__main {
  min-width: 0;
  display: grid;
  gap: 15px;
}

.category-detail__main--sections {
  gap: 0;
}

.category-detail__main--sections > .blog-article__section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.page-detail__hero {
  min-width: 0;
}

.page-detail__hero .section-head__title {
  margin: 22px 0;
}

.page-detail__hero .section-head__kicker {
  margin-bottom: 8px;
}

.page-detail__hero .blog-article__lead {
  margin-top: 12px;
}

.page-detail__hero .blog-article__meta {
  margin: 14px 0;
}

.page-detail__hero .blog-article__figure {
  margin-top: 16px;
  margin-bottom: 0;
}

.page-detail__hero .blog-article__trust {
  margin-top: 16px;
  margin-bottom: 0;
}

.category-detail__content {
  width: 100%;
}

.category-detail__content--after-directions {
  margin-top: 28px;
}

.category-detail__feedback {
  margin-top: 0;
  min-width: 0;
}

@media (min-width: 1024px) {
  .category-detail__feedback {
    position: sticky;
    top: 140px;
  }
}

.category-detail__directions {
  min-width: 0;
}

.category-detail__directions-title {
  margin: 12px 0;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.category-detail__directions-lead {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.category-detail__directions-list {
  display: flex;
  gap: 12px;
}


.category-detail__directions-list .service--direction {
  text-decoration: none;
  background-color: var(--muted-bg);
  min-height: auto;
  min-width: 0;
  gap: 0;
  padding: 16px 18px;
}

.category-detail__directions-list .service__title {
  text-align: center;
  color: var(--primary);
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}

.category-detail__directions-list--list {
  display: block;
}

.category-detail__directions-links {
  margin: 0;
  padding-left: 1.35em;
  list-style: disc;
  display: grid;
  max-width: 52rem;
}

.category-detail__directions-links-item {
  padding-left: 0.15em;
}

.category-detail__directions-link {
  color: var(--primary);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent);
}

.category-detail__directions-link:hover {
  text-decoration-color: var(--primary);
}

.category-detail__directions-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Search */
.search-results {
  display: grid;
  gap: 18px;
}

@media (min-width: 1024px) {
  .search-results {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
}

.search-results__title {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 12px;
}

.search-results__list {
  display: grid;
  gap: 10px;
}

.search-results__item {
  display: grid;
  gap: 4px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.search-results__item:hover {
  border-color: rgba(27, 77, 46, 0.35);
}

.search-results__item-title {
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
}

.search-results__item-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.search-empty {
  margin: 0;
  color: var(--muted);
}

.blog-article hr {
  border: 0;
  height: 1px;
  background: rgba(226, 232, 240, 0.9);
  margin: 18px 0;
}

.blog-article__source {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

/* Страница «Контакты» */
.contact-page__layout {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}

@media (min-width: 1024px) {
  .contact-page__layout {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
  }
}

.contact-page__info {
  display: grid;
  gap: 0;
  align-self: start;
}

.contact-page__section {
  padding: 18px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.contact-page__section:first-child {
  padding-top: 0;
}

.contact-page__section--last {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-page__map {
  min-width: 0;
  min-height: 320px;
}

.contact-page__map .map {
  min-height: 320px;
  height: 100%;
  aspect-ratio: auto;
}

@media (min-width: 1024px) {
  .contact-page__map {
    min-height: 100%;
  }

  .contact-page__map .map {
    min-height: 100%;
    margin-top: 0px;
  }
}

.contact-page__card-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.contact-page__card > p,
.contact-page__section > p {
  margin: 0;
  color: #334155;
  font-size: 14px;
  line-height: 1.55;
}

.contact-page__card > p + p,
.contact-page__section > p + p {
  margin-top: 10px;
}

.contact-page__muted {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.contact-page__cta-wrap {
  margin-top: 14px !important;
}

.contact-page__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-page__messengers .btn {
  flex: 1 1 0;
  min-width: 0;
  gap: 10px;
}

.contact-page__messengers .header-icon {
  width: 18px;
  height: 18px;
}

.contact-page__legal {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  display: grid;
  gap: 4px;
}

/* Cookie consent */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 12px 0;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cookie-consent__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-consent__text {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  line-height: 1.4;
}

.cookie-consent__text a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__btn {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .cookie-consent__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent__btn {
    width: 100%;
  }
}

