:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #243446;
  --muted: #6d7885;
  --line: rgba(36, 52, 70, 0.1);
  --brand: #ea8a3d;
  --brand-strong: #cf6b22;
  --shadow: 0 18px 44px rgba(111, 140, 171, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* предотвращает горизонтальный скролл в Chromium devtools */
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(229, 238, 251, 0.9), transparent 32%),
    linear-gradient(180deg, #f6f8fc, #fdfefe 42%, #f7faff 100%);
}

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

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

.container {
  width: min(100% - 40px, 1140px);
  margin: 0 auto;
}

.topbar {
  position: relative;
  z-index: 50; /* выше header (z-index:30) — иначе backdrop-filter создаёт stacking context и дропдаун прячется за шапкой */
  border-bottom: 1px solid rgba(36, 52, 70, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* ── Floating callback button ────────────────────────────────────────────── */
.float-callback {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
}

.float-callback__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px 0 18px;
  height: 54px;
  background: #27ae60;
  color: #fff;
  border: none;
  border-radius: 27px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(39, 174, 96, 0.45), 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
}

.float-callback__btn:hover {
  background: #219a52;
  box-shadow: 0 6px 24px rgba(39, 174, 96, 0.55), 0 2px 8px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
}

.float-callback__btn:active {
  transform: translateY(0);
}

.float-callback__icon {
  flex-shrink: 0;
}

/* Mobile ≤ 840px: только иконка, круглая кнопка */
@media (max-width: 840px) {
  .float-callback {
    bottom: max(20px, env(safe-area-inset-bottom, 20px));
    right: max(16px, env(safe-area-inset-right, 16px));
    z-index: 120;
  }

  .float-callback__btn {
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }

  .float-callback__label {
    display: none;
  }
}

/* ── Фикс модального окна на мобилке ────────────────────────────────────── */
@media (max-width: 840px) {
  .modal {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal__dialog {
    margin: 12px auto 24px;
    max-height: none;
  }
}

/* ── City picker ─────────────────────────────────────────────────────────── */
.city-picker {
  position: relative;
}

.city-picker__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  font-family: inherit;
  transition: color 0.18s;
}

.city-picker__btn:hover {
  color: var(--brand-cool);
}

.city-picker__chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
}

.city-picker[data-open] .city-picker__chevron {
  transform: rotate(180deg);
}

.city-picker__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: -12px;
  z-index: 200;
  width: 340px;
  max-width: calc(100vw - 24px); /* не выходим за край экрана */
  background: #fff;
  border: 1px solid rgba(36, 52, 70, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(36, 52, 70, 0.14), 0 2px 8px rgba(36, 52, 70, 0.08);
  overflow: hidden;
}

.city-picker[data-open] .city-picker__dropdown {
  display: block;
}

.city-picker__dropdown-header {
  padding: 12px 16px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid rgba(36, 52, 70, 0.07);
}

.city-picker__list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  max-height: 300px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  scrollbar-width: thin;
  scrollbar-color: rgba(36, 52, 70, 0.15) transparent;
}

.city-picker__list::-webkit-scrollbar {
  width: 4px;
}

.city-picker__list::-webkit-scrollbar-thumb {
  background: rgba(36, 52, 70, 0.15);
  border-radius: 4px;
}

.city-picker__item {
  display: block;
  width: 100%;
  padding: 7px 16px;
  background: none;
  border: none;
  text-align: left;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
  line-height: 1.4;
}

.city-picker__item:hover {
  background: rgba(95, 150, 207, 0.08);
  color: var(--brand-cool);
}

.city-picker__item.is-active {
  color: var(--brand-cool);
  font-weight: 600;
}

/* City picker в шапке — скрыт, используем топбар на всех размерах */
.city-picker--mobile {
  display: none !important;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(36, 52, 70, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(180deg, #e9f2ff, #dce8fb);
  color: #4b6f98;
  font-weight: 700;
}

.logo__text {
  display: grid;
  gap: 2px;
}

.logo__text strong {
  font-size: 16px;
}

.logo__text span {
  color: var(--muted);
  font-size: 13px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.header__nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.header__nav a:hover,
.header__nav a.is-active {
  color: var(--text);
}

.button.button--header {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(180deg, #f59a42, #ea8a3d);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(234, 138, 61, 0.28);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  border-color: rgba(234, 138, 61, 0.24);
  box-shadow: none;
}

.page {
  padding: 48px 0 72px;
}

.breadcrumbs {
  margin-bottom: 20px;
}

.breadcrumbs__list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  color: rgba(109, 120, 133, 0.7);
}

.breadcrumbs__item a {
  transition: color 0.2s ease;
}

.breadcrumbs__item a:hover {
  color: var(--text);
}

.breadcrumbs__item span[aria-current="page"] {
  color: var(--text);
}

/* ─── Blog page ──────────────────────────────────────────── */

.section--blog {
  padding: 0 0 80px;
}

.blog-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-hero {
  padding: 52px 0 44px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}

.blog-hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 16px;
}

.blog-hero h1 {
  font-size: 38px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 16px;
  line-height: 1.15;
}

.blog-hero__lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  max-width: 680px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.blog-card--featured .blog-card__img-wrap {
  border-radius: 0;
  aspect-ratio: 16/9;
}

.blog-card--featured .blog-card__body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-card--featured .blog-card__title a {
  font-size: 22px;
}

.blog-card--featured .blog-card__excerpt {
  display: block;
}

.blog-card {
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(36, 52, 70, 0.06);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.blog-card__img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-card__hero-bg {
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__hero-bg {
  transform: scale(1.04);
}

.blog-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__img-wrap img {
  transform: scale(1.04);
}

.blog-card__hero-bg--gradient-orange {
  background: linear-gradient(135deg, #f5a860 0%, #ea8a3d 45%, #cf6b22 100%);
}

.blog-card__hero-bg--gradient-blue {
  background: linear-gradient(135deg, #5e90bb 0%, #3d72a0 45%, #245882 100%);
}

.blog-card__hero-bg--gradient-teal {
  background: linear-gradient(135deg, #4aab90 0%, #2e8c74 45%, #1c705e 100%);
}

.blog-card__category {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(36, 52, 70, 0.5);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 999px;
  pointer-events: none;
}

.blog-card__body {
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.blog-card__read-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
}

.blog-card__title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.18s;
}

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

.blog-card__excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 16px;
  flex: 1;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  transition: gap 0.18s, color 0.18s;
  margin-top: auto;
}

.blog-card__link:hover { gap: 10px; color: var(--brand-strong); }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-card--featured { grid-template-columns: 1fr; }
  .blog-card--featured .blog-card__img-wrap { aspect-ratio: 16/8; }
  .blog-card--featured .blog-card__body { padding: 24px 20px; }
}

@media (max-width: 640px) {
  .blog-hero h1 { font-size: 26px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-page { padding: 0 16px; }
  .blog-hero { padding: 32px 0 28px; margin-bottom: 28px; }
}

/* ─── Article page ───────────────────────────────────────── */

.article-hero {
  position: relative;
  height: 460px;
  overflow: hidden;
}

.article-hero--gradient-orange {
  background: linear-gradient(135deg, #f5a860 0%, #ea8a3d 45%, #cf6b22 100%);
}

.article-hero--gradient-blue {
  background: linear-gradient(135deg, #5e90bb 0%, #3d72a0 45%, #245882 100%);
}

.article-hero--gradient-teal {
  background: linear-gradient(135deg, #4aab90 0%, #2e8c74 45%, #1c705e 100%);
}

/* Когда нет картинки — фоллбек градиент через класс-модификатор */
/* Когда есть картинка — оверлей немного темнее для читаемости текста */
.article-hero:not([class*="article-hero--"]) .article-hero__overlay {
  background: linear-gradient(to top, rgba(10, 18, 28, 0.78) 0%, rgba(10, 18, 28, 0.25) 55%, rgba(10, 18, 28, 0.06) 100%);
}

.article-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 30, 45, 0.72) 0%, rgba(20, 30, 45, 0.18) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
}

.article-hero__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 40px;
  width: 100%;
}

.article-hero__category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  background: rgba(234, 138, 61, 0.85);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.article-hero h1 {
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.2;
}

.article-hero__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.section--article {
  padding: 40px 0 60px;
}

.article-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  margin-top: 32px;
}

.article-body {
  min-width: 0;
}

.article-body h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 40px 0 16px;
  line-height: 1.3;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
}

.article-body p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  margin: 0 0 16px;
}

.article-body a {
  color: var(--brand-cool);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--brand-cool) 40%, transparent);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.article-body a:hover {
  color: var(--brand-strong);
  text-decoration-color: var(--brand-strong);
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.article-body ul li,
.article-body ol li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 8px;
}

.article-body ul { list-style: none; padding-left: 0; }
.article-body ul li { padding-left: 20px; position: relative; }
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.article-tip {
  display: flex;
  gap: 14px;
  background: linear-gradient(135deg, #fff7ef, #fff3e5);
  border-left: 3px solid var(--brand);
  border-radius: 0 12px 12px 0;
  padding: 18px 20px;
  margin: 24px 0;
}

.article-tip svg {
  flex-shrink: 0;
  color: var(--brand);
  margin-top: 2px;
}

.article-tip p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

.article-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.article-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.article-table-wrap thead {
  background: var(--bg);
}

.article-table-wrap th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.article-table-wrap td {
  padding: 11px 16px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.article-table-wrap tr:last-child td { border-bottom: none; }
.article-table-wrap tr:hover td { background: var(--bg); }

.article-author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 48px;
}

.article-author__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ea8a3d, #cf6b22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.article-author__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-author__info strong {
  font-size: 15px;
  color: var(--text);
}

.article-author__info span {
  font-size: 13px;
  color: var(--muted);
}

.article-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-sidebar__cta {
  background: linear-gradient(135deg, #1e2e3d, #243446);
  border-radius: 20px;
  padding: 28px 24px;
  color: #fff;
}

.article-sidebar__cta-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}

.article-sidebar__cta-text {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 20px;
}

.article-sidebar__cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.18s;
  margin-bottom: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.article-sidebar__cta-btn:hover { background: var(--brand-strong); color: #fff; }

.article-sidebar__cta-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.18s;
}

.article-sidebar__cta-phone:hover { color: #fff; }

.article-sidebar__related {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}

.article-sidebar__related h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}

.article-sidebar__rel-card {
  display: flex;
  gap: 12px;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.18s;
}

.article-sidebar__rel-card:last-child { border-bottom: none; padding-bottom: 0; }
.article-sidebar__rel-card:first-of-type { padding-top: 0; }
.article-sidebar__rel-card:hover { opacity: 0.8; }

.article-sidebar__rel-thumb {
  width: 64px;
  height: 48px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
}

.article-sidebar__rel-thumb--gradient-orange {
  background: linear-gradient(135deg, #f5a860 0%, #ea8a3d 60%, #cf6b22 100%);
}

.article-sidebar__rel-thumb--gradient-blue {
  background: linear-gradient(135deg, #5e90bb 0%, #3d72a0 60%, #245882 100%);
}

.article-sidebar__rel-thumb--gradient-teal {
  background: linear-gradient(135deg, #4aab90 0%, #2e8c74 60%, #1c705e 100%);
}

.article-sidebar__rel-card > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-sidebar__rel-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.article-sidebar__rel-card p {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
  margin: 0;
}

.article-back {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-back__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s, gap 0.18s;
}

.article-back__link:hover { color: var(--brand); gap: 12px; }

.blog-marketing {
  padding-top: 48px;
  padding-bottom: 60px;
}

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .article-sidebar { position: static; }
  .article-hero { height: 320px; }
  .article-hero h1 { font-size: 24px; }
}

@media (max-width: 640px) {
  .article-hero { height: 260px; }
  .article-hero__inner { padding: 0 16px 24px; }
  .article-shell { padding: 0 16px; }
  .article-body h2 { font-size: 18px; }
  .section--article { padding: 24px 0 40px; }
}

.hero-card,
.content-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96));
  border: 1px solid rgba(36, 52, 70, 0.08);
  box-shadow: var(--shadow);
}

.hero-card {
  display: grid;
  gap: 20px;
  padding: 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff4e8;
  color: var(--brand-strong);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-card h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-card p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-card--contacts {
  gap: 24px;
}

.hero-card--contacts-page {
  gap: 18px;
}

.hero-card--contacts-page h1 {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-card--contacts-page p {
  max-width: 940px;
}

.section-intro {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.section-intro h2,
.section-intro p {
  margin: 0;
}

.section-intro p {
  max-width: 860px;
  color: var(--muted);
  line-height: 1.7;
}

.contact-stack {
  display: grid;
  gap: 26px;
}

.contact-page-intro {
  display: grid;
  gap: 14px;
  padding: 6px 6px 0;
}

.contact-page-intro .eyebrow,
.contact-page-intro h1 {
  margin: 0;
}

.contact-page-intro h1 {
  max-width: 780px;
  font-size: clamp(34px, 4.8vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 22px;
  margin-top: 28px;
}

.content-grid--single {
  grid-template-columns: 1fr;
}

.content-card {
  padding: 28px;
}

.content-card h2,
.content-card h3 {
  margin: 0 0 16px;
}

.content-card p,
.content-card li {
  color: var(--muted);
  line-height: 1.7;
}

.content-card ul {
  margin: 0;
  padding-left: 18px;
}

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

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

.meta-item {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(36, 52, 70, 0.08);
}

.meta-item strong {
  display: block;
  margin-bottom: 6px;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list a,
.contact-list p {
  margin: 0;
}

.contact-list--wide {
  gap: 10px;
  font-size: 20px;
}

.contact-list--wide a {
  color: var(--text);
  font-weight: 600;
}

.contact-map-frame {
  margin-top: 18px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(36, 52, 70, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.contact-map-frame iframe {
  display: block;
}

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

.legal-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.legal-links a {
  color: var(--brand-strong);
}

.legal-links--stack {
  display: grid;
  gap: 10px;
}

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

.trust-card {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(36, 52, 70, 0.08);
}

.trust-card strong {
  display: block;
  margin-bottom: 8px;
}

.trust-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.contact-methods-grid,
.coverage-grid,
.assistance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contact-method-card,
.coverage-card,
.assistance-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(36, 52, 70, 0.08);
}

.contact-method-card strong,
.coverage-card strong,
.assistance-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.contact-method-card a {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 700;
}

.contact-method-card p,
.contact-method-card span,
.coverage-card p,
.coverage-card span,
.assistance-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-method-card span,
.coverage-card span {
  display: block;
  margin-top: 10px;
}

.content-card--fulltext .coverage-grid {
  margin-bottom: 18px;
}

.contact-longtext {
  display: grid;
  gap: 14px;
}

.contact-longtext p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.director-band {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(248, 251, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 52%, rgba(240, 246, 255, 0.96) 100%),
    radial-gradient(circle at 82% 28%, rgba(229, 238, 251, 0.68), transparent 24%);
  border: 1px solid rgba(36, 52, 70, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.director-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 46%);
  align-items: center;
  gap: 28px;
  min-height: 520px;
  padding: 0 28px 0 32px;
}

.director-card__content {
  display: grid;
  gap: 20px;
  padding: 36px 0;
}

.director-card__content h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.director-card__content h1 {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.director-card__lead {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.director-card__meta {
  display: grid;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(36, 52, 70, 0.08);
}

.director-card__meta strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.director-card__meta span,
.director-card__meta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.director-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.director-band--contact-page .director-band__inner {
  grid-template-columns: minmax(0, 0.98fr) minmax(460px, 0.72fr);
  gap: 0;
  min-height: 0;
  padding: 18px 20px 0 30px;
}

.director-band--contact-page {
  width: auto;
  margin-left: 0;
  margin-right: 0;
  border-radius: var(--radius-lg);
}

.director-band--contact-page .director-card__content {
  gap: 14px;
  padding: 18px 0 20px;
}

.director-band--contact-page .director-card__content h2 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.director-band--contact-page .director-card__lead {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.7;
}

.director-band--contact-page .director-welcome {
  gap: 8px;
}

.director-band--contact-page .director-welcome p {
  font-size: 14px;
  line-height: 1.65;
}

.director-band--contact-page .director-card__meta {
  gap: 8px;
  padding-top: 14px;
}

.director-band--contact-page .director-card__meta p {
  font-size: 14px;
}

.director-band--contact-page .director-band__photo {
  position: relative;
  align-self: end;
  justify-content: flex-end;
  min-height: 390px;
  overflow: visible;
}

.director-band--contact-page .director-band__photo-image {
  position: absolute;
  right: -8px;
  bottom: -2px;
  width: 700px;
  max-width: none;
  max-height: none;
  transform: none;
}

.director-welcome {
  display: grid;
  gap: 12px;
}

.director-welcome p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

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

.director-service-points > div {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(36, 52, 70, 0.08);
}

.director-service-points strong {
  display: block;
  margin-bottom: 12px;
}

.director-service-points ul {
  margin: 0;
  padding-left: 18px;
}

.director-service-points li {
  color: var(--muted);
  line-height: 1.7;
}

.director-band__photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 100%;
}

.director-band__photo::before {
  content: "";
  position: absolute;
  inset: auto -14% -22% auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 150, 207, 0.16), transparent 68%);
}

.director-band__photo-image {
  position: relative;
  z-index: 1;
  display: block;
  max-width: min(100%, 560px);
  max-height: 620px;
  object-fit: contain;
  object-position: bottom center;
  transform: translate(20px, 36px);
  filter: drop-shadow(0 18px 34px rgba(126, 149, 178, 0.12));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.92) 78%, rgba(0, 0, 0, 0.28) 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.92) 78%, rgba(0, 0, 0, 0.28) 94%, transparent 100%);
}

.footer {
  margin-top: 34px;
  padding: 34px 0 28px;
  border-top: 1px solid rgba(36, 52, 70, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 250, 255, 0.92));
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(170px, 0.8fr) minmax(180px, 0.9fr) minmax(160px, 0.75fr);
  grid-template-areas:
    "brand contacts services nav"
    "legal map map map";
  gap: 34px 28px;
  align-items: start;
}

.footer__brand,
.footer__col {
  display: grid;
  gap: 10px;
}

.footer__brand {
  grid-area: brand;
}

.footer__col--contacts {
  grid-area: contacts;
}

.footer__col--services {
  grid-area: services;
}

.footer__col--nav {
  grid-area: nav;
}

.footer__col--legal {
  grid-area: legal;
}

.footer__map {
  grid-area: map;
}

.footer__title {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 700;
}

.footer p,
.footer a {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.footer__brand p:first-of-type {
  color: var(--text);
  font-weight: 600;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(36, 52, 70, 0.08);
}

.footer__bottom p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.6;
}

.footer__map-frame {
  overflow: hidden;
  min-height: 360px;
  border-radius: 28px;
  border: 1px solid rgba(36, 52, 70, 0.08);
  box-shadow: var(--shadow);
}

.footer__map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.legal-text {
  display: grid;
  gap: 18px;
}

.legal-text h2 {
  margin: 18px 0 6px;
  font-size: 24px;
}

.legal-text h3 {
  margin: 14px 0 6px;
  font-size: 18px;
}

.legal-text p {
  margin: 0;
}

.legal-text ul {
  margin: -6px 0 0;
  padding-left: 20px;
}

.note-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fff7ef, #fffdfb);
  border: 1px solid rgba(234, 138, 61, 0.14);
}

.page-footer__links {
  display: grid;
  gap: 10px;
}

.page-footer__links a {
  color: var(--text);
}

.contact-layout--dual {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.meta-grid--single {
  grid-template-columns: 1fr;
}

.service-template-page {
  display: grid;
  gap: 28px;
}

.service-hero-main {
  padding: 40px 36px 28px;
  border-radius: 32px;
}

.service-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.service-hero__content,
.service-hero__side {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(36, 52, 70, 0.08);
  box-shadow: var(--shadow);
}

.service-hero__content {
  display: grid;
  gap: 20px;
  padding: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
}

.service-hero__content h1:not(.eyebrow),
.service-hero__content h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.service-hero__content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 18px;
}

.service-hero__side {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
}

.service-hero__side h2,
.service-hero__side h3,
.service-section h2,
.service-section h3 {
  margin: 0;
}

.service-bullets {
  display: grid;
  gap: 12px;
}

.service-bullets div {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(36, 52, 70, 0.08);
}

.service-bullets strong {
  display: block;
  margin-bottom: 6px;
}

.service-bullets p,
.service-bullets span {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.service-section {
  display: grid;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
  border: 1px solid rgba(36, 52, 70, 0.08);
  box-shadow: var(--shadow);
}

.service-grid-2,
.service-grid-3,
.service-grid-4 {
  display: grid;
  gap: 16px;
}

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

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

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

.service-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(36, 52, 70, 0.08);
}

.service-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.service-card p,
.service-card li {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.service-card ul {
  margin: 0;
  padding-left: 18px;
}

.service-steps {
  counter-reset: step;
}

.service-step {
  position: relative;
  padding: 22px 20px 20px 74px;
}

.service-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff1e3;
  color: var(--brand-strong);
  font-weight: 700;
}

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

.faq-list details {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(36, 52, 70, 0.08);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list details p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.seo-copy {
  display: grid;
  gap: 16px;
}

.seo-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.error-hero {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
}

.error-hero .hero-card {
  max-width: 760px;
  text-align: center;
  justify-items: center;
}

.error-code {
  font-size: clamp(64px, 14vw, 120px);
  line-height: 1;
  letter-spacing: -0.06em;
  color: #d9752d;
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid,
  .contact-methods-grid,
  .coverage-grid,
  .assistance-grid,
  .contact-layout--dual,
  .service-hero,
  .service-grid-2,
  .service-grid-3,
  .service-grid-4,
  .director-service-points {
    grid-template-columns: 1fr;
  }

  .director-band__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 28px;
  }

  .director-band__photo-image {
    transform: translate(0, 20px);
    max-width: min(100%, 420px);
  }

  .director-band--contact-page .director-band__inner {
    padding: 24px 24px 0;
  }

  .contact-page-intro {
    padding-left: 2px;
    padding-right: 2px;
  }

  .director-band--contact-page .director-band__photo {
    min-height: 360px;
    justify-content: center;
  }

  .director-band--contact-page .director-band__photo-image {
    right: 50%;
    bottom: 0;
    width: min(100vw - 80px, 520px);
    transform: translateX(50%);
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand contacts"
      "services nav"
      "legal legal"
      "map map";
  }

  .footer__bottom {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1140px);
  }

  .topbar {
    display: block;
  }

  .topbar__inner {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 34px;
  }

  .topbar__links {
    display: none;
  }

  /* На мобилке дропдаун: убираем отрицательный left, полная ширина экрана */
  .city-picker__dropdown {
    left: 0;
    width: min(340px, calc(100vw - 24px));
  }

  .header__inner {
    min-height: 72px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0;
  }

  .header__nav {
    gap: 12px;
  }

  .hero-card,
  .content-card {
    padding: 22px;
  }

  .service-section,
  .service-hero__content,
  .service-hero__side {
    padding: 22px;
  }

  .service-hero-main {
    padding: 28px 24px 22px;
    border-radius: 26px;
  }

  .button.button--header {
    width: 100%;
  }

  .hero-card p {
    font-size: 15px;
  }

  .contact-list--wide {
    font-size: 17px;
  }

  .director-card__content h2 {
    font-size: 22px;
    line-height: 1.12;
  }

  .director-card__content h1 {
    font-size: 28px;
    line-height: 1.08;
  }

  .director-band--contact-page .director-card__content h2 {
    font-size: 22px;
    line-height: 1.12;
  }

  .contact-page-intro h1 {
    font-size: 30px;
    line-height: 1.06;
  }

  .director-card__lead {
    font-size: 14px;
  }

  .director-card__actions {
    flex-direction: column;
  }

  .footer__top {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "contacts"
      "services"
      "nav"
      "legal"
      "map";
  }

  .footer__map-frame,
  .footer__map-frame iframe {
    min-height: 300px;
  }

  .page {
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .breadcrumbs {
    margin-bottom: 16px;
  }

  .breadcrumbs__list,
  .breadcrumbs__item {
    gap: 8px;
  }
}

