:root {
  --header-top-h: 0px;
  --header-main-h: 74px;
  --header-h: calc(var(--header-top-h) + var(--header-main-h));

  --color-bg: #060b12;
  --color-surface: #0b1624;
  --color-surface-strong: #0e1d30;
  --color-panel: rgba(12, 24, 38, 0.58);
  --color-panel-strong: rgba(10, 20, 32, 0.82);
  --color-border: rgba(132, 201, 230, 0.22);
  --color-border-soft: rgba(164, 220, 245, 0.14);
  --color-text: #eaf6ff;
  --color-muted: #99aec3;
  --color-accent: #1e4fa8;
  --color-accent-2: #6fa8d1;
  --color-accent-ink: #012225;

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 28px;
  --space-6: 36px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 84px;

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;

  --shadow-soft: 0 14px 34px rgba(1, 7, 12, 0.35);
  --shadow-glow: 0 16px 42px rgba(30, 79, 168, 0.2);
  --shadow-strong: 0 22px 58px rgba(1, 4, 10, 0.58);

  --font-heading: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;

  --bg: var(--color-bg);
  --text: var(--color-text);
  --muted: var(--color-muted);
  --accent: var(--color-accent);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overscroll-behavior-x: none;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 79, 168, 0.82) rgba(8, 24, 52, 0.16);
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background:
    radial-gradient(1200px 620px at 80% -10%, rgba(59, 130, 246, 0.13), transparent 72%),
    radial-gradient(1000px 600px at -10% 25%, rgba(111, 168, 209, 0.1), transparent 66%),
    var(--color-bg);
  line-height: 1.55;
  letter-spacing: 0.01em;
}

body::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

body::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(8, 24, 52, 0.12), rgba(111, 168, 209, 0.08));
}

body::-webkit-scrollbar-thumb {
  border-radius: 0;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: linear-gradient(180deg, #1e4fa8, #6fa8d1);
  box-shadow: inset 0 0 0 1px rgba(12, 34, 72, 0.2);
}

body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #183f87, #5e99c5);
}

a {
  color: inherit;
}

.container {
  width: min(1280px, 92vw);
  margin: 0 auto;
}

.rtc-mascot-runner {
  --mascot-size: clamp(90px, 10vw, 150px);
  position: fixed;
  left: 0;
  top: 0;
  width: var(--mascot-size);
  z-index: 120;
  pointer-events: auto;
  user-select: none;
  touch-action: none;
  cursor: grab;
  will-change: transform;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.22));
}

.rtc-mascot-runner.is-dragging {
  cursor: grabbing;
}

.rtc-mascot-runner img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-user-drag: none;
}

.rtc-mascot-runner__bubble {
  position: absolute;
  left: calc(100% - 66px);
  bottom: 124px;
  width: min(clamp(170px, calc(var(--mascot-size) * 1.85), 280px), 80vw);
  padding: clamp(10px, calc(var(--mascot-size) * 0.08), 14px);
  display: block;
  text-decoration: none;
  border-radius: clamp(12px, calc(var(--mascot-size) * 0.11), 16px);
  border: 2px solid #1f2f63;
  background: linear-gradient(140deg, #f6f9ff 0%, #edf3ff 100%);
  box-shadow: 0 10px 22px rgba(67, 98, 194, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.32s ease;
}

.rtc-mascot-runner__bubble.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.rtc-mascot-runner__bubble.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.rtc-mascot-runner__bubble::before {
  content: "";
  position: absolute;
  left: 16px;
  bottom: -11px;
  width: 18px;
  height: 14px;
  background: linear-gradient(140deg, #f6f9ff 0%, #edf3ff 100%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  border-left: 2px solid #1f2f63;
  border-bottom: 2px solid #1f2f63;
  transform: rotate(-6deg);
  z-index: 0;
}

.rtc-mascot-runner__bubble::after {
  display: none;
}

.rtc-mascot-runner__bubble > * {
  position: relative;
  z-index: 1;
}

.rtc-mascot-runner__bubble p {
  margin: 0 0 8px;
  padding-right: 34px;
  font-size: clamp(12px, calc(var(--mascot-size) * 0.09), 14px);
  line-height: 1.35;
  color: #1f2f63;
  transition: opacity 0.18s ease;
}

.rtc-mascot-runner__text.is-fading {
  opacity: 0;
}

.rtc-mascot-runner__close {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(31, 47, 99, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2f63;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 3;
}

.rtc-mascot-runner__close::before {
  content: "";
  position: absolute;
  inset: -8px;
}

.rtc-mascot-runner__close:hover {
  background: #ffffff;
}

.rtc-mascot-runner__cta {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  margin-left: auto;
  border-radius: 999px;
  font-size: clamp(11px, calc(var(--mascot-size) * 0.08), 12px);
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(90deg, #3B82F6 0%, #8B5CF6 100%);
  text-decoration: none;
}

.rtc-mascot-runner__bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(62, 86, 182, 0.28);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1205;
  height: var(--header-h);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 11, 19, 0.78);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  font-family: var(--font-heading);
}

.site-header__inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 20vw) auto auto;
  align-items: center;
  gap: 10px;
}

.site-header__inner > * {
  min-width: 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.01em;
}

.site-logo__text {
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.site-logo__meta {
  --city-cap-size: clamp(14px, 1.25vw, 20px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.site-logo__city {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(14px, 1.2vw, 20px);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: inherit;
  line-height: 1;
}

.site-logo__addresses {
  display: inline-block;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: none;
  color: var(--color-accent);
  font-size: clamp(14px, 1.2vw, 20px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.site-logo__address-item {
  white-space: nowrap;
}

.site-logo__addresses[data-flip-address] {
  --address-face-h: var(--city-cap-size);
  --address-cube-depth: calc(var(--address-face-h) / 2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  text-align: left;
}

.site-logo__addresses[data-flip-address] .site-logo__address-item {
  display: none;
}

.site-logo__address-prefix {
  flex: 0 0 auto;
  color: var(--color-accent);
}

.site-logo__address-rotator {
  position: relative;
  display: inline-block;
  width: var(--address-flip-width, auto);
  height: var(--address-face-h);
  max-width: 100%;
  vertical-align: middle;
  perspective: 740px;
}

.site-logo__cube {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 620ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.site-logo__cube-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-accent);
  font-size: clamp(14px, 1.2vw, 20px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transform: rotateX(var(--address-face-angle, 0deg)) translateZ(var(--address-cube-depth));
}

.site-logo__cube-face--measure {
  position: absolute;
  inset: auto;
  left: 0;
  top: 0;
  right: auto;
  bottom: auto;
  visibility: hidden;
  pointer-events: none;
  transform: none;
  width: max-content;
}

.site-logo__image {
  height: 28px;
  width: auto;
  display: block;
}

.site-logo__text-wrap {
  display: flex;
  align-items: center;
  line-height: 1.1;
  gap: 12px;
}

.site-logo__mark {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-2));
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 0 18px rgba(59, 130, 246, 0.55);
  animation: logoBlink 2.2s ease-in-out infinite;
}

@keyframes logoBlink {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.9);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.08), 0 0 10px rgba(59, 130, 246, 0.28);
  }
  50% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.2), 0 0 24px rgba(59, 130, 246, 0.65);
  }
}

.site-nav {
  display: none;
}

.site-nav--top {
  display: none;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav__list a {
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  color: #c3d7ed;
  border: 1px solid transparent;
  transition: color 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}

.site-nav__list a:hover {
  color: #ecfbff;
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.08);
}

.site-nav-search {
  position: relative;
  width: clamp(110px, 18vw, 220px);
}

.site-header__search {
  position: relative;
  z-index: 2;
  justify-self: start;
  width: clamp(120px, 20vw, 230px);
  min-width: 0;
  max-width: 100%;
}

.site-header__search .site-nav-search {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.site-nav-search__input {
  width: 100%;
  max-width: 100%;
  min-height: clamp(30px, 2.2vw, 34px);
  padding: clamp(6px, 0.5vw, 7px) 11px clamp(6px, 0.5vw, 7px) 34px;
  border-radius: 10px;
  border: 1px solid rgba(146, 184, 225, 0.36);
  background: rgba(7, 18, 34, 0.38);
  color: #eaf3ff;
  font-size: clamp(12px, 0.95vw, 14px);
  font-family: var(--font-heading);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* Средний десктоп — сжимаем все элементы */
@media (max-width: 1200px) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 18vw) auto auto;
    gap: 8px;
  }
  .site-header__search {
    width: 100%;
  }
  .site-nav-search__input {
    min-height: 30px;
    font-size: 12px;
    padding-left: 30px;
  }
  .site-nav-search__bolt {
    font-size: 12px;
    left: 9px;
  }
  .site-header__urgent {
    font-size: 10px;
    padding: 0 8px;
  }
  .site-header__phone-number {
    font-size: clamp(13px, 1.2vw, 18px);
  }
}

/* Настройки шапки для ≤960px — см. блок HEADER RESPONSIVE в конце файла */

.site-nav-search__input::placeholder {
  color: #9cb5d0;
}

.site-nav-search__bolt {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #79c5ff;
  font-size: 14px;
  pointer-events: none;
}

.site-header__urgent {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: linear-gradient(120deg, #ff7a18, #d83a2d);
  border: 1px solid rgba(255, 203, 156, 0.45);
  box-shadow: 0 6px 16px rgba(186, 73, 35, 0.3);
  animation: urgentPulse 2.3s ease-in-out infinite;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.site-header__urgent:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 30px rgba(186, 73, 35, 0.5);
}

.site-nav-search__input:focus {
  border-color: rgba(111, 168, 209, 0.84);
  box-shadow: 0 0 0 3px rgba(30, 79, 168, 0.16);
  background: rgba(8, 22, 42, 0.52);
}

.site-nav-search__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  border-radius: 12px;
  border: 1px solid rgba(146, 184, 225, 0.3);
  background: rgba(8, 24, 52, 0.96);
  box-shadow: 0 14px 28px rgba(4, 12, 24, 0.28);
  overflow: hidden;
  z-index: 120;
}

.site-nav-search__list {
  list-style: none;
  margin: 0;
  padding: 4px;
}

.site-nav-search__list li a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #d9e8fa;
  border: 1px solid transparent;
  background: transparent;
}

.site-nav-search__list li a:hover {
  color: #ffffff;
  border-color: rgba(111, 168, 209, 0.42);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav-search__empty {
  display: block;
  padding: 8px 10px;
  color: #9db6cf;
  font-size: 13px;
}

.site-header__cta {
  justify-self: end;
  display: flex;
  align-items: center;
}

.site-header__phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 22px;
  text-decoration: none;
  color: #0b1626;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  transition: transform 0.3s ease, color 0.3s ease;
  position: relative;
  animation: none;
}

.site-header__phone:hover {
  transform: translateY(-1px);
  color: #1f4f7c;
}

.site-header__phone-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.site-header__phone-number {
  font-size: clamp(15px, 1.6vw, 22px);
  font-weight: 800;
  color: inherit;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

@keyframes urgentPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 24px rgba(186, 73, 35, 0.36);
  }
  50% {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 14px 30px rgba(186, 73, 35, 0.48);
  }
}




.site-main {
  min-height: calc(100vh - 220px);
}

.site-breadcrumbs {
  position: relative;
  z-index: 5;
  padding: calc(var(--header-main-h) + 8px) 0 2px;
}

.site-breadcrumbs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 13px;
  color: #2f4f63;
}

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

.site-breadcrumbs__item:not(:last-child)::after {
  content: "›";
  opacity: 0.55;
}

.site-breadcrumbs__item a {
  color: #2d556d;
  text-decoration: none;
}

.site-breadcrumbs__item a:hover {
  color: #14425d;
  text-decoration: underline;
}

.site-footer {
  padding: 22px 0;
  border-top: 1px solid rgba(122, 182, 255, 0.34);
  background: linear-gradient(180deg, #0b1f4f 0%, #071432 100%);
  color: #eaf2ff;
  font-size: 14px;
}

.site-footer .footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.site-footer .footer-col h4 {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.site-footer .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.site-footer .footer-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.site-footer .footer-desc {
  margin-top: 10px;
  color: #c8dcff;
}

.site-footer .footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.site-footer .footer-list a {
  color: #7ab6ff;
  text-decoration: none;
}

.site-footer .footer-list a:hover {
  color: #dcecff;
}

.site-footer .footer-city-meta {
  display: block;
  margin-top: 2px;
  color: #9eb8de;
  font-size: 12px;
}

.site-footer .footer-muted {
  color: #9eb8de;
  font-size: 13px;
}

.site-footer .footer-bottom {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(122, 182, 255, 0.25);
}

.site-footer .footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.site-footer .footer-requisites {
  font-size: 12px;
  color: #c8dcff;
}

.site-footer .footer-policy-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 14px;
  font-size: 12px;
}

.site-footer .footer-policy-links a {
  color: #7ab6ff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.site-footer .footer-policy-links a:hover {
  color: #dcecff;
}

.site-footer .footer-legal {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(122, 182, 255, 0.2);
}

.site-footer .footer-legal .container {
  display: grid;
  gap: 8px;
}

.site-footer .footer-legal__text {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #9eb8de;
}

.site-footer .footer-legal__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  font-size: 12px;
  line-height: 1.55;
  color: #9eb8de;
}

.site-footer .footer-legal__list li {
  margin: 0;
}

.site-footer .footer-legal a {
  color: #7ab6ff;
  text-decoration: underline;
}

.site-footer .footer-legal a:hover {
  color: #dcecff;
}

.rtc-offer-popup {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 1195;
  width: min(70vw, 860px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(-50%, 16px, 0);
  transition: opacity .24s ease, transform .24s ease;
}

.rtc-offer-popup.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0);
}

.rtc-offer-popup.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(-50%, 16px, 0);
}

.rtc-offer-popup.is-above-cookie {
  bottom: 104px;
}

.rtc-offer-popup__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  column-gap: 14px;
  row-gap: 8px;
  align-items: center;
  border-radius: 16px;
  border: 1px solid rgba(30, 79, 168, 0.26);
  background: linear-gradient(160deg, rgba(9, 26, 59, 0.96), rgba(6, 17, 41, 0.96));
  box-shadow: 0 16px 36px rgba(2, 8, 20, 0.45);
  padding: 12px 44px 12px 14px;
}

.rtc-offer-popup__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(148, 185, 255, 0.34);
  border-radius: 999px;
  background: rgba(14, 31, 66, 0.86);
  color: #d9e7ff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.rtc-offer-popup__close:hover {
  background: rgba(21, 43, 84, 0.96);
  color: #ffffff;
}

.rtc-offer-popup__timer {
  grid-column: 1;
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8db6d0;
  font-weight: 700;
}

.rtc-offer-popup__timer strong {
  color: #ffffff;
}

.rtc-offer-popup__text {
  grid-column: 1;
  margin: 0;
  color: #d6e4ff;
  font-size: 14px;
  line-height: 1.45;
}

.rtc-offer-popup__form {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.rtc-offer-popup__form label {
  margin: 0;
  width: 100%;
}

.rtc-offer-popup__form label > span {
  display: none;
}

.rtc-offer-popup__form input {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 14px;
}

.rtc-offer-popup__form button {
  min-height: 40px;
  white-space: nowrap;
}

.rtc-offer-popup .form-success {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity .24s ease, transform .24s ease;
}

.cookie-banner.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cookie-banner.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
}

.cookie-banner__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  border-radius: 16px;
  border: 1px solid rgba(30, 79, 168, 0.22);
  background: linear-gradient(160deg, rgba(9, 26, 59, 0.96), rgba(6, 17, 41, 0.96));
  box-shadow: 0 16px 36px rgba(2, 8, 20, 0.45);
  padding: 14px 16px;
}

.cookie-banner__content {
  font-size: 13px;
  line-height: 1.45;
  color: #d6e4ff;
}

.cookie-banner__content > :first-child {
  margin-top: 0;
}

.cookie-banner__content > :last-child {
  margin-bottom: 0;
}

.cookie-banner__content p,
.cookie-banner__content ul,
.cookie-banner__content ol {
  margin: 0 0 8px;
}

.cookie-banner__content ul,
.cookie-banner__content ol {
  padding-left: 18px;
}

.cookie-banner__content a {
  color: #7ab6ff;
  text-decoration: underline;
}

.cookie-banner__content a:hover {
  color: #dcecff;
}

.cookie-banner__actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.cookie-banner__link {
  font-size: 12px;
  color: #d0e2ff;
  text-decoration: underline;
  white-space: nowrap;
}

.cookie-banner__link:hover {
  color: #ffffff;
}

.cookie-banner__accept {
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .site-footer .footer-policy-links {
    justify-content: flex-start;
    width: 100%;
  }

  .cookie-banner {
    bottom: 10px;
  }

  .rtc-offer-popup {
    width: min(92vw, 700px);
    bottom: 10px;
  }

  .rtc-offer-popup.is-above-cookie {
    bottom: 124px;
  }

  .rtc-offer-popup__inner {
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .rtc-offer-popup__form {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: 1fr;
  }

  .rtc-offer-popup__form label {
    width: 100%;
  }

  .rtc-offer-popup__form button {
    width: 100%;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .cookie-banner__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .cookie-banner {
    bottom: 8px;
  }

  .rtc-offer-popup {
    bottom: 8px;
  }

  .rtc-offer-popup.is-above-cookie {
    bottom: 138px;
  }

  .rtc-offer-popup__inner {
    grid-template-columns: 1fr;
    row-gap: 8px;
    padding: 12px;
  }

  .rtc-offer-popup__text {
    font-size: 13px;
  }

  .cookie-banner__content {
    font-size: 12px;
  }

  .cookie-banner__accept {
    min-height: 34px;
    padding: 0 12px;
  }
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.eyebrow {
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
  color: #8ac9e8;
}

.lead {
  color: #c8ddf2;
  font-size: 16px;
}

.lead.type-hero-consult {
  color: #0a1628;
}

.glass-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--color-panel), var(--color-panel-strong));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--accent {
  color: var(--color-accent-ink);
  border-color: rgba(59, 130, 246, 0.84);
  background: linear-gradient(110deg, var(--color-accent), #c6ddf3);
  box-shadow: 0 12px 34px rgba(30, 79, 168, 0.3);
}

.btn--accent:hover {
  box-shadow: 0 16px 44px rgba(30, 79, 168, 0.45);
}

.btn--ghost {
  color: #e1f6ff;
  border-color: rgba(170, 205, 232, 0.42);
  background: rgba(110, 156, 196, 0.1);
}

.btn--ghost:hover {
  border-color: rgba(59, 130, 246, 0.75);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.34), 0 14px 32px rgba(8, 43, 62, 0.42);
}

.rt-section {
  padding: var(--space-8) 0;
  scroll-margin-top: calc(var(--header-main-h) + 72px);
}

.rt-section--alt {
  background: linear-gradient(180deg, rgba(8, 17, 29, 0.82), rgba(7, 15, 25, 0.96));
}

.section-head {
  max-width: 820px;
  margin-bottom: var(--space-6);
}

.section-head h2 {
  font-size: clamp(30px, 7vw, 52px);
}

/* ══════════════════════════════════════
   SECTION-NAV
══════════════════════════════════════ */
.section-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 700;
  background: linear-gradient(180deg, rgba(8, 24, 52, 0.92), rgba(6, 18, 42, 0.9));
  border-top: 1px solid rgba(146, 184, 225, 0.18);
  border-bottom: 1px solid rgba(146, 184, 225, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px rgba(5, 15, 34, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-heading);
}

/* Кнопка-триггер дропдауна */
.section-nav__drop-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  padding: 9px 12px;
  height: 36px;
  box-sizing: border-box;
  color: #c8dcf4;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(146, 184, 225, 0.22);
  background: rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.section-nav__drop-btn:hover {
  color: #f4f9ff;
  border-color: rgba(111, 168, 209, 0.72);
  box-shadow: 0 8px 18px rgba(14, 37, 74, 0.24);
}

.section-nav__drop-btn.is-active {
  color: #fff;
  border-color: rgba(111, 168, 209, 0.96);
  background: linear-gradient(120deg, #1e4fa8, #6fa8d1);
  box-shadow: 0 10px 24px rgba(30, 79, 168, 0.34);
}

/* Mobile panels */
.snav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.45);
}

.snav-overlay.is-open {
  display: block;
}

.snav-panel {
  display: none;
}

.snav-panel.is-open {
  display: block;
}

@media (max-width: 899px) {
  .snav-panel {
    position: fixed;
    top: calc(var(--header-h) + 44px);
    left: 0;
    width: 70%;
    max-height: 70vh;
    overflow-y: auto;
    background: rgba(6, 18, 42, 0.99);
    border-right: 1px solid rgba(146, 184, 225, 0.2);
    border-bottom: 1px solid rgba(146, 184, 225, 0.2);
    box-shadow: 4px 8px 24px rgba(4, 12, 24, 0.5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 9999;
  }

  .section-nav__dropdown:hover .section-nav__menu,
  .section-nav__dropdown:focus-within .section-nav__menu {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-6px) !important;
  }

  .section-nav__dropdown.is-open .section-nav__menu {
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media (max-width: 767px) {
  .snav-panel {
    width: 85%;
  }
}

@media (max-width: 479px) {
  .snav-panel {
    width: 92%;
  }
}

.snav-panel__cols {
  padding: 12px 16px 20px;
  column-count: 2;
  column-gap: 8px;
}

.snav-panel__list {
  padding: 12px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.snav-panel__link {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  color: #d9e8fa;
  border: 1px solid transparent;
  transition: color 0.16s, background 0.16s, border-color 0.16s;
}

.snav-panel__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(111, 168, 209, 0.3);
}

@media (max-width: 479px) {
  .snav-panel__cols {
    column-count: 1;
  }
}

.section-nav__scroll {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 0;
}

/* Обычная ссылка */
.section-nav__link {
  white-space: nowrap;
  text-decoration: none;
  font-size: 13px;
  color: #c8dcf4;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(146, 184, 225, 0.22);
  background: rgba(255, 255, 255, 0.06);
  padding: 9px 12px;
  height: 36px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, color 0.24s ease;
}

.section-nav__link:hover {
  color: #f4f9ff;
  border-color: rgba(111, 168, 209, 0.72);
  box-shadow: 0 8px 18px rgba(14, 37, 74, 0.24);
}

.section-nav__link.is-active {
  color: #ffffff;
  border-color: rgba(111, 168, 209, 0.96);
  background: linear-gradient(120deg, #1e4fa8, #6fa8d1);
  box-shadow: 0 10px 24px rgba(30, 79, 168, 0.34);
}

/* Дропдаун-обёртка */
.section-nav__dropdown {
  position: relative;
  display: inline-flex;
  overflow: visible;
}

/* Десктоп: обычное абсолютное меню */
.section-nav__menu {
  display: block;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  max-height: min(96vh, 1400px);
  max-height: min(96svh, 1400px);
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(146, 184, 225, 0.3);
  background: rgba(6, 18, 42, 0.99);
  box-shadow: 0 14px 32px rgba(4, 12, 24, 0.5);
  z-index: 9999;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.section-nav__dropdown:not([data-custom-dd]):hover .section-nav__menu,
.section-nav__dropdown:not([data-custom-dd]):focus-within .section-nav__menu,
.section-nav__dropdown.is-open .section-nav__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Для mega-menu используем только класс is-open (управляется JS по клику) */
.section-nav__dropdown--mega:hover .section-nav__menu,
.section-nav__dropdown--mega:focus-within .section-nav__menu {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.section-nav__dropdown--mega.is-open .section-nav__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.section-nav__menu-link {
  display: block;
  padding: 6px 8px;
  border-radius: 8px;
  color: #d9e8fa;
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 13px;
  line-height: 1.28;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}

.section-nav__menu-link:hover {
  color: #fff;
  border-color: rgba(111, 168, 209, 0.42);
  background: rgba(255, 255, 255, 0.06);
}

.section-nav__menu--cols {
  width: min(680px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - var(--header-h) - 54px);
  left: 0;
  right: auto;
  transform: translateY(-6px);
  overflow-y: auto;
  overflow-x: hidden;
  /* grid: 3 columns, items go down */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px 6px;
  column-count: unset;
}

.section-nav__dropdown--mega .section-nav__menu--cols {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: auto;
  width: min(680px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - var(--header-h) - 54px);
  z-index: 1200;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px 6px;
}

.section-nav__dropdown.is-open .section-nav__menu--cols,
.section-nav__dropdown:hover .section-nav__menu--cols,
.section-nav__dropdown:focus-within .section-nav__menu--cols {
  transform: translateY(0);
}

.section-nav__menu--cols .section-nav__menu-link {
  display: block;
  width: 100%;
  break-inside: avoid;
}

/* Инфо-строка */
.section-nav__info {
  cursor: default;
  font-size: 12px;
  color: #6a8da8;
  border-color: transparent;
  background: none;
  box-shadow: none;
}

.section-nav__info:hover {
  border-color: transparent;
  box-shadow: none;
  color: #6a8da8;
}

@media (max-width: 720px) {
  .section-nav__menu--cols {
    width: min(420px, calc(100vw - 16px));
    grid-template-columns: repeat(2, 1fr);
  }
  .section-nav__dropdown--mega .section-nav__menu--cols {
    width: min(420px, calc(100vw - 16px));
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .section-nav__menu--cols,
  .section-nav__dropdown--mega .section-nav__menu--cols {
    width: calc(100vw - 12px);
    grid-template-columns: 1fr;
  }
}

.rt-hero {
  position: relative;
  min-height: 90vh;
  min-height: 90svh;
  background: #050b13;
  isolation: isolate;
}

.rt-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #050b13;
  z-index: 0;
}

.rt-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
}

.rt-hero__inner {
  position: relative;
  z-index: 2;
  min-height: inherit;
  padding-top: calc(var(--header-h) + var(--space-5));
  padding-bottom: var(--space-5);
  display: grid;
  justify-items: center;
  align-items: center;
  align-content: center;
  gap: var(--space-4);
}

.rt-hero__content {
  width: 100%;
  height: 100%;
  padding: clamp(18px, 4.6vw, 38px);
  display: flex;
  flex-direction: column;
}

.rt-hero .glass-panel {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#categories .service-grid .glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(165deg, rgba(9, 22, 34, 0.36), rgba(7, 16, 26, 0.5));
  backdrop-filter: blur(6px) saturate(118%);
  -webkit-backdrop-filter: blur(6px) saturate(118%);
  box-shadow: 0 10px 24px rgba(3, 8, 14, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#categories .service-card--video::after {
  background: rgba(4, 12, 22, 0.36);
}

#categories .service-grid .service-card h3,
#categories .service-grid .service-card p {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}

#categories .service-grid .service-card h3 a {
  color: inherit;
  text-decoration: none;
}

#categories .service-grid .service-card {
  border: none;
}

#categories .service-grid .service-card__footer {
  border-top: none;
}

.rt-hero__content h1 {
  font-size: clamp(36px, 9.6vw, 76px);
  max-width: 900px;
  margin-bottom: var(--space-3);
}

.rt-hero__content .lead {
  max-width: 690px;
}

.hero-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero-consult {
  margin-top: var(--space-3);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #dbe9f7;
}

.hero-consult img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 18px rgba(3, 8, 14, 0.28);
}

.hero-consult strong {
  display: block;
  font-size: 14px;
  color: #ffffff;
}

.hero-consult span {
  display: block;
  color: #b8d0e8;
}

.rt-hero__quick {
  width: 100%;
  height: 100%;
  padding: clamp(16px, 3.8vw, 26px);
  animation: heroQuickFloat 8s ease-in-out infinite;
  will-change: transform;
}

.rt-hero__quick h2 {
  font-size: clamp(20px, 5.4vw, 30px);
  margin-bottom: var(--space-3);
}

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

.quick-item {
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-soft);
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.quick-item h3 {
  font-size: 14px;
  margin-bottom: 4px;
}

.quick-item p {
  font-size: 12px;
  color: #aac2da;
}

.rt-hero__quick .quick-item--btn {
  position: relative;
  display: block;
  text-decoration: none;
  cursor: pointer;
  /* === цвета как у .price-row--featured === */
  border: 1px solid rgba(111, 168, 209, 0.32);
  background: linear-gradient(105deg, rgba(30, 79, 168, 0.14), rgba(111, 168, 209, 0.07));
  box-shadow: 0 4px 18px rgba(6, 11, 18, 0.2), inset 0 1px 0 rgba(164, 220, 245, 0.08);
  overflow: hidden;
  transition:
    transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.38s ease,
    border-color 0.38s ease,
    background 0.38s ease,
    opacity 0.38s ease,
    filter 0.38s ease;
}

/* Акцентный штрих слева — как в price-row */
.rt-hero__quick .quick-item--btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-2));
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 1;
}

/* Shimmer поверх */
.rt-hero__quick .quick-item--btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg,
    transparent 20%,
    rgba(111, 168, 209, 0.13) 50%,
    transparent 80%);
  transform: translateX(-110%);
  animation: heroCardShimmer 5.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: calc(var(--btn-index, 0) * 0.42s);
  pointer-events: none;
  z-index: 0;
}

.rt-hero__quick .quick-item--btn h3 {
  color: var(--color-text);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  transition: color 0.32s ease;
  position: relative;
  z-index: 2;
}

.rt-hero__quick .quick-item--btn p {
  color: var(--color-muted);
  font-size: 11.5px;
  transition: color 0.32s ease;
  position: relative;
  z-index: 2;
}

/* ── DIM — почти невидимые, как неактивные price-row */
.rt-hero__quick .quick-item--btn.is-dim {
  opacity: 0.35;
  filter: saturate(0.3) brightness(0.7);
  transform: scale(0.97);
  border-color: rgba(111, 168, 209, 0.1);
  background: transparent;
  box-shadow: none;
}

/* ── LIT — как .price-row--featured:hover */
.rt-hero__quick .quick-item--btn.is-lit {
  opacity: 1;
  filter: none;
  transform: scale(1.03) translateY(-3px);
  border-color: rgba(111, 168, 209, 0.55);
  background: linear-gradient(105deg, rgba(30, 79, 168, 0.22), rgba(111, 168, 209, 0.12));
  box-shadow:
    0 0 0 1px rgba(111, 168, 209, 0.28),
    0 4px 20px rgba(6, 11, 18, 0.28),
    inset 0 1px 0 rgba(164, 220, 245, 0.12);
}

.rt-hero__quick .quick-item--btn.is-lit::before {
  transform: scaleY(1);
}

.rt-hero__quick .quick-item--btn.is-lit h3 {
  color: var(--color-text);
}

.rt-hero__quick .quick-item--btn.is-lit p {
  color: var(--color-accent-2);
}

/* ── Hover */
.rt-hero__quick .quick-item--btn:hover,
.rt-hero__quick .quick-item--btn:focus-visible {
  opacity: 1;
  filter: none;
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(111, 168, 209, 0.55);
  background: linear-gradient(105deg, rgba(30, 79, 168, 0.22), rgba(111, 168, 209, 0.12));
  box-shadow:
    0 0 0 1px rgba(111, 168, 209, 0.28),
    0 6px 22px rgba(6, 11, 18, 0.3),
    inset 0 1px 0 rgba(164, 220, 245, 0.12);
  outline: none;
}

.rt-hero__quick .quick-item--btn:hover::before,
.rt-hero__quick .quick-item--btn:focus-visible::before {
  transform: scaleY(1);
}

@keyframes heroQuickFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes heroCardBreathe {
  0% {
    box-shadow: 0 9px 20px rgba(30, 79, 168, 0.2), inset 0 1px 0 rgba(214, 230, 247, 0.24);
  }
  35% {
    box-shadow: 0 12px 26px rgba(30, 79, 168, 0.28), 0 0 0 1px rgba(111, 168, 209, 0.24), inset 0 1px 0 rgba(232, 241, 250, 0.34);
  }
  70% {
    box-shadow: 0 10px 22px rgba(30, 79, 168, 0.24), inset 0 1px 0 rgba(214, 230, 247, 0.26);
  }
  100% {
    box-shadow: 0 9px 20px rgba(30, 79, 168, 0.2), inset 0 1px 0 rgba(214, 230, 247, 0.24);
  }
}

@keyframes heroCardShimmer {
  0%,
  18% {
    transform: translateX(-115%);
    opacity: 0;
  }
  46% {
    opacity: 0.2;
  }
  72%,
  100% {
    transform: translateX(115%);
    opacity: 0;
  }
}

.service-grid,
.feature-grid,
.steps-grid,
.review-grid,
.page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.service-card.is-hidden {
  display: none;
}

.service-grid__more {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.masters-carousel {
  --masters-visible: 3;
  --masters-gap: 10px;
}

.masters-carousel__viewport {
  overflow: hidden;
}

.masters-carousel__track {
  display: flex;
  gap: var(--masters-gap);
  align-items: stretch;
  transition: transform 620ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}

.masters-carousel__track > .master-card {
  flex: 0 0 calc((100% - (var(--masters-visible) - 1) * var(--masters-gap)) / var(--masters-visible));
  min-width: 0;
}

.team-hero {
  margin-top: var(--space-5);
}

.team-hero__content {
  background: #f4f5f7;
  background-image: radial-gradient(circle at 18% 20%, rgba(59, 130, 246, 0.14), transparent 52%),
    radial-gradient(circle at 82% 0%, rgba(14, 116, 144, 0.16), transparent 48%);
  border: none;
  box-shadow: none;
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: 40px;
  align-items: center;
  padding: 0;
  min-height: 50vh;
}

.team-hero__text {
  color: #0f172a;
  align-self: start;
  padding: 16px 0 0;
}

.team-hero__text h3 {
  margin-bottom: 8px;
  font-size: clamp(24px, 4.4vw, 36px);
  color: #0f172a;
}

.team-hero__text p {
  color: #344256;
  font-size: 16px;
  line-height: 1.6;
}

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

.team-hero .btn--ghost {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.2);
  background: transparent;
}

.team-hero .btn--ghost:hover {
  border-color: rgba(15, 23, 42, 0.4);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.team-hero__media {
  min-height: 240px;
}

.team-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
  background: #e5e7eb;
}

.team-hero--no-media .team-hero__content {
  grid-template-columns: 1fr;
  text-align: center;
}

.team-hero--no-media .team-hero__text {
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .team-hero__content {
    grid-template-columns: 1fr;
  }

  .team-hero__media {
    width: 100%;
  }
}

.service-card,
.feature-card,
.step-card,
.review-card,
.page-card,
.contact-card,
.master-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  padding: clamp(14px, 3vw, 24px);
  border: 1px solid var(--color-border-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.service-card__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(1.08) contrast(1.08);
}

.service-card--video::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(2, 8, 15, 0.26) 0%, rgba(2, 8, 14, 0.72) 100%);
}

.service-card--video > *:not(.service-card__bg-video) {
  position: relative;
  z-index: 2;
}

.service-card--video {
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.service-card--video h3 {
  margin-top: 0;
}

.service-card:hover,
.feature-card:hover,
.step-card:hover,
.review-card:hover,
.page-card:hover,
.contact-card:hover,
.master-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.62);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.service-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(164, 220, 245, 0.14);
}

.service-card__price {
  font-family: var(--font-heading);
  font-size: clamp(15px, 2.5vw, 18px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-accent-2);
  white-space: nowrap;
}

.service-card--video .service-card__price {
  color: #d6f0ff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.service-card__cta {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  min-height: 32px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(110deg, var(--color-accent), var(--color-accent-2));
  box-shadow: 0 6px 16px rgba(30, 79, 168, 0.35);
  border: 1px solid rgba(111, 168, 209, 0.5);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.28s ease;
  pointer-events: none;
}

.service-card:hover .service-card__cta {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.service-card__cta:hover {
  box-shadow: 0 8px 22px rgba(30, 79, 168, 0.5);
}

.service-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  color: #c5ffff;
  border: 1px solid rgba(59, 130, 246, 0.5);
  background: linear-gradient(150deg, rgba(59, 130, 246, 0.22), rgba(111, 168, 209, 0.08));
}

.service-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.service-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.service-table th,
.service-table td {
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(123, 173, 214, 0.18);
}

.service-table thead th {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-muted);
}

.service-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.07);
}

.service-table__row.is-hidden {
  display: none;
}

.service-table__price {
  white-space: nowrap;
  font-weight: 700;
  color: var(--color-accent-2);
}

.service-table__more {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.type-price-section {
  padding-bottom: 0 !important;
}

.type-problems-panel,
.glass-panel.type-problems-panel {
  position: relative;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at top, rgba(8, 24, 52, 0.9), rgba(6, 12, 28, 0.96)),
    linear-gradient(120deg, rgba(15, 32, 62, 0.95), rgba(6, 12, 24, 0.95));
  background-color: #0b1630;
  color: #eaf2ff;
  border: 0;
  box-shadow: 0 18px 40px rgba(8, 20, 36, 0.28);
  overflow: hidden;
  border-radius: 0;
  margin-top: 16px;
}

.type-problems-panel .section-head h2 {
  color: #eaf2ff;
}

.type-problems-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 6px 6px;
  opacity: 0.08;
  pointer-events: none;
}

.type-problems-inner {
  width: min(1280px, 92vw);
  margin: 0 auto;
  padding: 18px;
  position: relative;
  z-index: 1;
}

.type-problems-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.type-problems-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(6, 147, 227, 0.18), rgba(155, 81, 224, 0.2));
  border: 1px solid rgba(111, 168, 209, 0.4);
  color: #eaf2ff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.type-problems-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0693e3, #9b51e0);
  box-shadow: 0 0 10px rgba(122, 0, 223, 0.55);
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .type-problems-chip {
    font-size: 12px;
    padding: 8px 12px;
  }
}

.type-brands-section .service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.type-brands-section .service-card {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.type-brands-section .service-card:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.type-brands-section .brand-card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e8edf2;
  text-decoration: none;
  transition: none;
}

.type-brands-section .brand-card__logo {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.type-brands-section .brand-card__logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
  filter: grayscale(1) brightness(0.15);
  transition: filter .4s ease;
}

.type-brands-section .brand-card__link:hover .brand-card__logo img {
  filter: grayscale(0) brightness(1);
}

.type-brands-section .brand-card__fallback {
  font-size: 13px;
  font-weight: 700;
  color: #1e4fa8;
  letter-spacing: -.01em;
}

.type-brands-section .brand-card__name {
  display: none;
}

@media (max-width: 640px) {
  .type-brands-section .service-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
  }
  .type-brands-section .brand-card__logo img {
    max-height: 36px;
  }
}

.brand-card__link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-card__logo {
  width: 92px;
  height: 64px;
  border-radius: 0;
  background: transparent;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-shadow: none;
}

.brand-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-card__fallback {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-accent);
}

.brand-card__name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-card__fallback {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  color: #1e4fa8;
  letter-spacing: -.01em;
  text-align: center;
  line-height: 1.2;
  padding: 0 6px;
  word-break: break-word;
  hyphens: auto;
}

.brand-card__name {
  display: none;
}

@media (max-width: 640px) {
  .type-brands-section .service-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
  }
  .brand-card__link {
    min-height: 68px;
    height: 68px;
    border-radius: 12px;
  }
  .brand-card__logo img {
    height: 36px;
  }
}

/* ── Blog Single ── */
.post-page {
  background: #f4f7fb;
  color: #0e1a2e;
}

body.single,
body.single .site-main {
  background: #f4f7fb;
}

.post-hero {
  padding-top: calc(var(--header-h) + 24px);
  padding-bottom: 24px;
}

.post-hero__layout {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: center;
}

.post-hero__content {
  min-width: 0;
}

.post-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1e4fa8;
  text-decoration: none;
  margin-bottom: 18px;
  transition: gap 0.2s ease;
}

.post-hero__back:hover {
  gap: 12px;
}

.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.post-hero__cat {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #1e4fa8;
  background: rgba(30, 79, 168, 0.08);
  border: 1px solid rgba(30, 79, 168, 0.15);
}

.post-hero__date {
  font-size: 13px;
  color: #99aec3;
}

.post-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4.5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #0e1a2e;
}

.post-hero__lead {
  margin: 0;
  font-size: 16px;
  color: #2a3f52;
  line-height: 1.7;
}

.post-hero__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(18, 46, 58, 0.12);
  box-shadow: var(--shadow-soft);
  background: #fff;
}

.post-article {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 40px);
  line-height: 1.75;
}

.post-article h2 {
  margin-top: 28px;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0e1a2e;
}

.post-article h3 {
  margin-top: 22px;
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 700;
  color: #0e1a2e;
}

.post-article p {
  font-size: 16px;
  color: #2a3f52;
  line-height: 1.8;
  margin: 0 0 16px;
}

.post-article img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  margin: 16px 0 24px;
  border: 1px solid rgba(18, 46, 58, 0.12);
  box-shadow: 0 4px 20px rgba(30, 79, 168, 0.08);
}

.post-article ul,
.post-article ol {
  padding-left: 22px;
  margin: 0 0 16px;
  font-size: 16px;
  color: #2a3f52;
  line-height: 1.75;
}

.post-cta {
  max-width: 960px;
  margin: 18px auto 0;
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.post-cta__text h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #0e1a2e;
}

.post-cta__text p {
  margin: 0;
  font-size: 14px;
  color: #4a5f75;
}

.post-cta__actions {
  display: flex;
  gap: 10px;
}

.post-related {
  padding-top: 12px;
  padding-bottom: 72px;
}

.post-related__head {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0e1a2e;
  margin: 0 0 24px;
}

.post-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 760px) {
  .post-hero__layout {
    grid-template-columns: 1fr;
  }
  .post-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .post-related__grid {
    grid-template-columns: 1fr;
  }
}

.post-rel-card {
  background: #ffffff;
  border: 1px solid rgba(18, 46, 58, 0.12);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(30, 79, 168, 0.06);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.post-rel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 79, 168, 0.22);
  box-shadow: 0 12px 36px rgba(30, 79, 168, 0.11);
}

.post-rel-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(30, 79, 168, 0.06);
  flex-shrink: 0;
}

.post-rel-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.post-rel-card:hover .post-rel-card__thumb img {
  transform: scale(1.05);
}

.post-rel-card__body {
  padding: 14px 16px;
}

.post-rel-card__title {
  font-size: 14px;
  font-weight: 700;
  color: #0e1a2e;
  margin: 0 0 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-rel-card__date {
  font-size: 11px;
  color: #99aec3;
}

/* ── Model Single ── */
.model-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: 24px;
  align-items: center;
}

.model-hero__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(18, 46, 58, 0.16);
  box-shadow: var(--shadow-soft);
  background: #fff;
  object-fit: contain;
}

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

/* ── Articles Page ── */
.articles-hero .lead {
  max-width: 640px;
}

/* ── Models Archive ── */
.model-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.model-card {
  padding: 0;
  overflow: hidden;
}

.model-card__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.model-card__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 79, 168, 0.06);
}

.model-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.model-card__fallback {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(30, 79, 168, 0.12);
  color: var(--color-accent);
  font-weight: 800;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.model-card__title {
  margin: 0;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 1400px) {
  .model-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

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

@media (max-width: 900px) {
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-card__title { font-size: 13px; padding: 8px 10px; }
  .model-card__fallback { width: 48px; height: 48px; font-size: 18px; border-radius: 14px; }
}

@media (max-width: 560px) {
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-grid { gap: 10px; }
  .model-card__title { font-size: 12px; padding: 6px 8px; }
  .model-card__fallback { width: 42px; height: 42px; font-size: 16px; border-radius: 12px; }
}

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

.article-card {
  padding: 0;
  overflow: hidden;
}

.article-card__link {
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.article-card__media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.article-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.article-card__body h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

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

.article-card__cta {
  font-weight: 700;
  color: var(--color-accent);
}

.articles-pagination,
.pf-pagination {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.articles-pagination ul,
.pf-pagination ul {
  list-style: none;
  display: inline-flex;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.articles-pagination a,
.articles-pagination span,
.pf-pagination a,
.pf-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(30, 79, 168, 0.2);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
  padding: 0 10px;
}

.articles-pagination .current,
.pf-pagination .current {
  background: linear-gradient(120deg, #1e4fa8, #6fa8d1);
  color: #fff;
  border-color: transparent;
}

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

@media (max-width: 640px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .article-card__media img {
    height: 200px;
  }
}

/* ── Floating Widgets ── */
.floating-widgets {
  position: fixed;
  right: 24px;
  bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 999;
}

.callback_widget,
.conversion_widget-btn {
  position: relative;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* вращающееся кольцо — conic-gradient + mask */
.widget_btn-circle {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

/* внешнее кольцо: широкая полоса */
.widget_btn-circle.outside {
  inset: -8px;
  animation: widgetSpin 3s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
}

/* внутреннее кольцо: тонкая полоса, обратное направление */
.widget_btn-circle.inside {
  inset: -2px;
  animation: widgetSpin 5s linear infinite reverse;
  opacity: 0.45;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
}

/* цвета полос по типу кнопки */
.callback .widget_btn-circle.outside {
  background: conic-gradient(
    from 0deg,
    transparent 0deg, #2ddc5f 60deg, transparent 120deg,
    transparent 180deg, #7fffa0 240deg, transparent 300deg
  );
}
.callback .widget_btn-circle.inside {
  background: conic-gradient(
    from 90deg,
    #2ddc5f, transparent 90deg, #7fffa0 180deg, transparent 270deg, #2ddc5f 360deg
  );
}

.max .widget_btn-circle.outside {
  background: conic-gradient(
    from 0deg,
    transparent 0deg, #a07fff 60deg, transparent 120deg,
    transparent 180deg, #d4b8ff 240deg, transparent 300deg
  );
}
.max .widget_btn-circle.inside {
  background: conic-gradient(
    from 90deg,
    #a07fff, transparent 90deg, #d4b8ff 180deg, transparent 270deg, #a07fff 360deg
  );
}

.telegram .widget_btn-circle.outside {
  background: conic-gradient(
    from 0deg,
    transparent 0deg, #3bb4f5 60deg, transparent 120deg,
    transparent 180deg, #8dd9ff 240deg, transparent 300deg
  );
}
.telegram .widget_btn-circle.inside {
  background: conic-gradient(
    from 90deg,
    #3bb4f5, transparent 90deg, #8dd9ff 180deg, transparent 270deg, #3bb4f5 360deg
  );
}

@keyframes widgetSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.callback-btn,
.conversion-toggler {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  z-index: 2;
  text-decoration: none;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease;
  /* центрирование свг и других внутренних элементов */
  line-height: 1;
}

/* центрируем svg внутри */
.callback-btn svg,
.conversion-toggler svg {
  display: block;
  margin: auto;
  flex-shrink: 0;
}

.widget-icon,
.play,
.close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.widget-icon span,
.play span,
.close span {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Обратный звонок — зелёный */
.callback-btn {
  background:
    radial-gradient(circle at 28% 28%, rgba(255,255,255,0.28) 0%, transparent 56%),
    linear-gradient(145deg, #34e86a 0%, #12b845 45%, #0a8c34 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.18) inset,
    0 2px 0 rgba(255,255,255,0.22) inset,
    0 10px 28px rgba(18, 184, 69, 0.5),
    0 4px 10px rgba(0,0,0,0.22);
}
.callback-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.22) inset,
    0 2px 0 rgba(255,255,255,0.28) inset,
    0 14px 36px rgba(18, 184, 69, 0.65),
    0 6px 14px rgba(0,0,0,0.28);
}

/* ── MAX — прозрачный фон, логотип несёт свой градиент */
.conversion-btn.max .conversion-toggler {
  background: linear-gradient(135deg, #4ec7e0 0%, #3c47d8 50%, #a64de0 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.18) inset,
    0 2px 0 rgba(255,255,255,0.22) inset,
    0 10px 28px rgba(100, 60, 220, 0.5),
    0 4px 10px rgba(0,0,0,0.22);
  border-radius: 999px;
  overflow: hidden;
  padding: 0;
}
.conversion-btn.max .conversion-toggler:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow:
    0 14px 36px rgba(100, 60, 220, 0.7),
    0 6px 14px rgba(0,0,0,0.28);
}
.conversion-btn.max .conversion-toggler svg {
  width: 60px;
  height: 60px;
  border-radius: 999px;
}

/* ── Telegram — прозрачный фон, логотип несёт свой круг */
.conversion-btn.telegram .conversion-toggler {
  background: transparent;
  box-shadow:
    0 10px 28px rgba(33, 150, 243, 0.5),
    0 4px 10px rgba(0,0,0,0.22);
  border-radius: 999px;
  overflow: hidden;
  padding: 0;
}
.conversion-btn.telegram .conversion-toggler:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow:
    0 14px 36px rgba(33, 150, 243, 0.7),
    0 6px 14px rgba(0,0,0,0.28);
}
.conversion-btn.telegram .conversion-toggler svg {
  width: 60px;
  height: 60px;
  border-radius: 999px;
}

.conversion-toggler .close {
  display: none;
}

.tooltip {
  position: absolute;
  right: 82px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 5;
}

.tooltip-content {
  background: rgba(10, 12, 18, 0.95);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.tooltiper:hover .tooltip,
.tooltiper:focus-within .tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.widget-icon svg,
.conversion-toggler svg {
  display: block;
}

@media (max-width: 640px) {
  .floating-widgets {
    right: 10px;
    bottom: 80px;
    gap: 8px;
  }
  .callback_widget,
  .conversion_widget-btn {
    width: 48px;
    height: 48px;
  }
  .callback-btn,
  .conversion-toggler {
    width: 42px;
    height: 42px;
  }
  .conversion-btn.max .conversion-toggler svg,
  .conversion-btn.telegram .conversion-toggler svg {
    width: 42px;
    height: 42px;
  }
  .widget_btn-circle.outside {
    inset: -6px;
  }
  .widget_btn-circle.inside {
    inset: -2px;
  }
}

.type-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--color-accent);
}

.type-hero-meta__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(111, 168, 209, 0.38);
  background: linear-gradient(130deg, rgba(30, 79, 168, 0.16), rgba(111, 168, 209, 0.08));
  color: #dff2ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.type-hero-meta__label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(214, 239, 255, 0.78);
}

.type-hero-meta__badge strong {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.type-hero-meta__icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(111, 168, 209, 0.42);
  background: rgba(255, 255, 255, 0.08);
  flex: 0 0 24px;
}

.type-hero-meta__icon svg {
  display: block;
}

body .type-hero-meta,
body .type-hero-meta .type-hero-meta__badge,
body .type-hero-meta .type-hero-meta__label,
body .type-hero-meta .type-hero-meta__badge strong {
  color: var(--color-accent) !important;
}

.type-hero-consult {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.84);
  background: linear-gradient(110deg, var(--color-accent), #c6ddf3);
  color: #000;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 34px rgba(30, 79, 168, 0.3);
}

.type-hero-consult::before {
  content: "✓";
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #000;
  background: rgba(255, 255, 255, 0.55);
}

body > main > section:nth-child(1) > div > article > div > div.type-hero-copy > p.lead.type-hero-consult {
  color: #000 !important;
}

.type-hero-layout {
  display: grid;
  grid-template-columns: 1fr minmax(286px, 546px);
  gap: 18px;
  align-items: center;
  width: 100%;
}

.type-hero-card {
  display: flex;
  align-items: center;
  padding: clamp(28px, 4.2vw, 42px);
  min-height: 75vh;
  background:
    radial-gradient(1200px 420px at 20% 0%, rgba(111, 168, 209, 0.18), transparent 62%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(228, 242, 252, 0.96));
  border-color: rgba(93, 160, 207, 0.3);
}

.type-hero-copy {
  min-width: 0;
}

.type-hero-media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(125, 183, 224, 0.32);
  background: linear-gradient(140deg, rgba(12, 32, 56, 0.42), rgba(22, 59, 96, 0.28));
}

.type-hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.type-hero-media--brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: clamp(12px, 2vw, 22px);
}

.type-hero-media--brand-logo img {
  object-fit: contain;
}

@media (max-width: 920px) {
  .type-hero-layout {
    grid-template-columns: 1fr;
  }

  .type-hero-media {
    max-width: 520px;
  }
}

.service-card h3,
.feature-card h3,
.step-card h3,
.page-card h3,
.contact-card h3,
.master-card h3 {
  font-size: clamp(17px, 4.3vw, 24px);
  margin-bottom: 8px;
}

.service-card h3 a {
  color: inherit;
  text-decoration: none;
}

.service-card h3 a:hover {
  color: #1e4fa8;
  text-decoration: underline;
}

.service-card p,
.feature-card p,
.step-card p,
.review-card p,
.page-card p,
.contact-card p,
.master-card p {
  color: #9eb5cc;
  font-size: 14px;
}

.master-card {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.master-card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  aspect-ratio: 3 / 4;
  background: rgba(7, 19, 29, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.master-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(1.12) brightness(0.96);
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.7s ease;
}

.master-card:hover .master-card__media img {
  transform: scale(1.06);
  filter: contrast(1.12) saturate(1.18) brightness(1.0);
}

/* Виньетка + бренд-тонинг поверх фото */
.master-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(4, 10, 20, 0.52) 100%),
    linear-gradient(180deg, rgba(30, 79, 168, 0.06) 0%, rgba(6, 11, 18, 0.28) 100%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.7s ease;
}

.master-card:hover .master-card__media::after {
  opacity: 0.7;
}

/* Иннер-шедоу по краям контейнера */
.master-card__media {
  box-shadow: inset 0 0 0 1px rgba(111, 168, 209, 0.18), inset 0 -40px 60px rgba(6, 11, 18, 0.35);
}

.master-card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #92adc0;
}

.master-card__body {
  padding: 14px 12px 12px;
}

.master-card__position {
  margin: 6px 0 8px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #86cde6;
}

#about-us .section-head h2 {
  background: none;
  color: #000000;
}

#about-us .master-card {
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(180deg, rgba(8, 24, 52, 0.92), rgba(6, 18, 42, 0.9));
  box-shadow: 0 18px 40px rgba(6, 12, 20, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#about-us .master-card__media {
  border: none;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

#about-us .master-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#about-us .master-card__body {
  padding: 16px;
  background: linear-gradient(180deg, rgba(8, 24, 52, 0.92), rgba(6, 18, 42, 0.9));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
}

#about-us .master-card h3 {
  color: #ffffff;
  margin-bottom: 6px;
}

#about-us .master-card__position {
  color: rgba(226, 232, 240, 0.92);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
}

#about-us .master-card p {
  color: rgba(226, 232, 240, 0.9);
  text-shadow: none;
  overflow-wrap: anywhere;
}

#about-us .master-card__placeholder {
  color: rgba(226, 232, 240, 0.9);
}

#about-us .team-wide-card,
#about-us .team-wide-card__media {
  border-color: rgba(255, 255, 255, 0.24);
}

.team-wide-card {
  margin-top: 14px;
  padding: 0;
}

.team-wide-card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 5 / 3;
  background: rgba(7, 19, 29, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.team-wide-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.08) saturate(1.1) brightness(0.95);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.8s ease;
}

.team-wide-card:hover .team-wide-card__media img {
  transform: scale(1.04);
  filter: contrast(1.1) saturate(1.15) brightness(0.98);
}

.team-wide-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 50%, rgba(4, 10, 20, 0.42) 100%),
    linear-gradient(180deg, rgba(30, 79, 168, 0.04) 0%, rgba(6, 11, 18, 0.22) 100%);
  pointer-events: none;
  z-index: 1;
}

.team-wide-card__media {
  box-shadow: inset 0 0 0 1px rgba(111, 168, 209, 0.14), inset 0 -50px 70px rgba(6, 11, 18, 0.3);
}

.about-hero {
  padding-top: calc(var(--header-h) + var(--space-6));
}

.about-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.about-hero__media {
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 5 / 3;
  background: linear-gradient(135deg, rgba(30, 79, 168, 0.08), rgba(111, 168, 209, 0.08));
}

.about-hero__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.about-hero__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 79, 168, 0.12), rgba(111, 168, 209, 0.08));
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.about-hero__content {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-soft);
}

.about-hero__content h1 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 4.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.about-hero__text {
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.65;
}

.about-reasons {
  padding-top: var(--space-7);
}

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

.about-reason {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-soft);
}

.about-reason h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.about-reason p {
  margin: 0;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
}

.about-stats {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

.about-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.about-stat {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 40px 32px 36px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(30,79,168,.18), transparent 60%),
    rgba(11, 22, 36, 0.9);
  border: 1px solid rgba(111,168,209,.18);
  box-shadow: 0 20px 50px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.07);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  text-align: left;
}

.about-stat:hover {
  transform: translateY(-5px);
  border-color: rgba(111,168,209,.38);
  box-shadow: 0 28px 60px rgba(0,0,0,.32), 0 0 0 1px rgba(111,168,209,.15);
}

/* Декоративный градиентный блик */
.about-stat::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(111,168,209,.14), transparent 70%);
  pointer-events: none;
}

/* Тонкая полоса снизу */
.about-stat::after {
  content: "";
  position: absolute;
  bottom: 0; left: 24px; right: 24px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent), rgba(111,168,209,.3), transparent);
  opacity: .7;
}

.about-stat__num {
  font-size: clamp(52px, 7vw, 80px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 0%, #a8d4f0 50%, #6fa8d1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  display: block;
}

.about-stat__num span {
  font-size: .55em;
  letter-spacing: -0.02em;
  background: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-stat__label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #99aec3;
  line-height: 1.4;
}

/* Большой декоративный номер позади */
.about-stat__bg-num {
  position: absolute;
  right: 20px;
  bottom: -10px;
  font-size: 120px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: rgba(111,168,209,.04);
  user-select: none;
  pointer-events: none;
}

@media (max-width: 760px) {
  .about-stats__grid {
    grid-template-columns: 1fr;
  }
}

.about-gallery {
  padding-top: var(--space-6);
  padding-bottom: var(--space-8);
}

.about-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 240px;
  gap: 12px;
}

.about-gallery__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-soft);
}

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

.about-gallery__item--placeholder {
  display: grid;
  place-items: center;
  color: var(--color-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-gallery__note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .about-hero__grid {
    grid-template-columns: 1fr;
  }
  .about-reasons__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-gallery__grid {
    grid-auto-rows: 210px;
  }
}

@media (max-width: 640px) {
  .about-reasons__grid {
    grid-template-columns: 1fr;
  }
  .about-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-gallery__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
}

.delivery-hero {
  padding-top: calc(var(--header-h) + var(--space-6));
  padding-bottom: var(--space-6);
}

.delivery-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.delivery-hero__copy h1 {
  margin: 6px 0 12px;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.delivery-hero__lead {
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.65;
  margin: 0 0 12px;
}

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

.delivery-hero__media {
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 5 / 3;
  background: linear-gradient(135deg, rgba(30, 79, 168, 0.08), rgba(111, 168, 209, 0.08));
}

.delivery-hero__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.delivery-hero__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 46px;
  color: rgba(30, 79, 168, 0.3);
}

.delivery-benefits {
  padding-top: var(--space-6);
}

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

.delivery-benefit {
  padding: 16px;
  border-radius: 16px;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.delivery-safety {
  padding-top: var(--space-6);
  padding-bottom: var(--space-7);
}

.delivery-safety__card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-soft);
}

.delivery-safety__card h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3.6vw, 32px);
  font-weight: 800;
}

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

@media (max-width: 1024px) {
  .delivery-hero__grid {
    grid-template-columns: 1fr;
  }
  .delivery-benefits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .delivery-benefits__grid {
    grid-template-columns: 1fr;
  }
}

.why-rotator {
  width: 100%;
  min-height: clamp(220px, 27vw, 320px);
  padding: clamp(22px, 4.6vw, 44px);
  position: relative;
  overflow: hidden;
  perspective: 1200px;
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: var(--shadow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  --why-progress: 1800ms;
}

.why-rotator::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -12%;
  width: 52%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0));
  z-index: 0;
  pointer-events: none;
}

.why-rotator__content {
  position: relative;
  z-index: 2;
  transform-origin: center center;
  transition: transform 0.72s cubic-bezier(0.2, 0.65, 0.2, 1), opacity 0.34s ease;
}

.why-rotator.is-flipping .why-rotator__content {
  transform: rotateX(-90deg) scale(0.96);
  opacity: 0.08;
}

.why-rotator__index {
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
  color: #8ad3e6;
}

.why-rotator__title {
  font-size: clamp(30px, 5.6vw, 56px);
  margin-bottom: 12px;
}

.why-rotator__desc {
  color: #c2daee;
  font-size: clamp(15px, 2.2vw, 20px);
  max-width: 760px;
}

.why-rotator__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 3;
}

.why-rotator__progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  animation: whyRotatorProgress var(--why-progress) linear infinite;
  background: linear-gradient(90deg, var(--color-accent), #b9d4ef);
}

.why-rotator.is-paused .why-rotator__progress span {
  animation-play-state: paused;
}

@keyframes whyRotatorProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.step-card {
  position: relative;
  padding-top: 46px;
}

.step-card__count {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #05272a;
  font-size: 12px;
  font-weight: 800;
  background: linear-gradient(120deg, var(--color-accent), #adcbe9);
  box-shadow: 0 8px 18px rgba(30, 79, 168, 0.4);
}

.prices-layout {
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.prices-types {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: clamp(320px, 62vh, 640px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 79, 168, 0.45) transparent;
}

.prices-types::-webkit-scrollbar {
  width: 8px;
}

.prices-types::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(30, 79, 168, 0.45);
}

.prices-types::-webkit-scrollbar-track {
  background: transparent;
}

.prices-type-btn {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: 12px;
  display: block;
  width: 100%;
  height: auto;
  min-height: 44px;
  padding: 12px 14px;
  text-align: left;
  font: inherit;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  overflow: visible;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.prices-type-btn:hover {
  border-color: rgba(30, 79, 168, 0.42);
  background: rgba(30, 79, 168, 0.06);
}

.prices-type-btn.is-active {
  border-color: rgba(30, 79, 168, 0.7);
  background: linear-gradient(110deg, var(--color-accent), var(--color-accent-2));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(30, 79, 168, 0.24);
}

.prices-services {
  min-width: 0;
  max-height: clamp(320px, 62vh, 640px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 79, 168, 0.45) transparent;
}

.prices-services::-webkit-scrollbar {
  width: 8px;
}

.prices-services::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(30, 79, 168, 0.45);
}

.prices-services::-webkit-scrollbar-track {
  background: transparent;
}

.prices-services-panel {
  display: none;
}

.prices-services-panel.is-active {
  display: block;
}

.prices-empty {
  margin: 0;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(111, 168, 209, 0.24);
  background: rgba(10, 20, 32, 0.45);
  color: var(--color-muted);
}

@media (max-width: 980px) {
  .prices-layout {
    grid-template-columns: 1fr;
  }

  .prices-types {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    padding-right: 0;
  }

  .prices-type-btn {
    flex: 0 0 220px;
    white-space: normal;
  }

  .prices-services {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 560px) {
  #prices .prices-layout.glass-panel {
    padding: 8px;
    gap: 8px;
    border-radius: 16px;
  }

  #prices .prices-layout.glass-panel .prices-types {
    gap: 5px;
    padding-bottom: 0;
    padding-right: 0;
  }

  #prices .prices-layout.glass-panel .prices-type-btn {
    flex: 0 0 128px;
    min-height: 34px;
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.15;
  }

  #prices .prices-layout.glass-panel .prices-services {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 0;
  }

  #prices .prices-layout.glass-panel .price-list {
    padding: 4px;
  }

  #prices .prices-layout.glass-panel .price-row {
    padding: 10px 8px;
    gap: 8px;
  }

  #prices .prices-layout.glass-panel .price-row h3 {
    font-size: 12px;
    line-height: 1.15;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  #prices .prices-layout.glass-panel .price-row__term {
    font-size: 10px;
  }

  #prices .prices-layout.glass-panel .price-row__price {
    min-width: 72px;
    font-size: 18px;
  }

  #prices .prices-layout.glass-panel .price-row__right {
    gap: 8px;
  }

  #prices .prices-layout.glass-panel .price-row__btn {
    min-height: 28px;
    min-width: 44px;
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 999px;
  }
}

@media (max-width: 420px) {
  #prices .prices-layout.glass-panel {
    padding: 7px;
    gap: 7px;
  }

  #prices .prices-layout.glass-panel .prices-type-btn {
    flex: 0 0 116px;
    min-height: 32px;
    padding: 5px 7px;
    font-size: 10px;
  }

  #prices .prices-layout.glass-panel .prices-services {
    max-height: 240px;
  }

  #prices .prices-layout.glass-panel .price-row {
    padding: 9px 7px;
    gap: 7px;
  }

  #prices .prices-layout.glass-panel .price-row__right {
    gap: 6px;
  }

  #prices .prices-layout.glass-panel .price-row__price {
    min-width: 64px;
    font-size: 16px;
  }

  #prices .prices-layout.glass-panel .price-row__btn {
    min-height: 26px;
    min-width: 40px;
    padding: 4px 7px;
    font-size: 9px;
  }
}

.price-list {
  padding: 10px;
  overflow: hidden;
}

.price-list__note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--color-text);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.price-note__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(30, 79, 168, 0.28);
  background: var(--color-surface);
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.price-note__updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(30, 79, 168, 0.24);
  background: var(--color-surface);
  color: var(--color-text);
}

.price-note__icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: var(--color-accent-2);
}

.price-note__date {
  color: var(--color-accent);
  border-bottom: 1px dotted rgba(30, 79, 168, 0.4);
}

.price-note__payments {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  font-weight: 600;
}

.price-note__pay-icon {
  height: 24px;
  width: auto;
  display: block;
  opacity: 0.85;
}

.price-note__pay-icon--wide {
  height: 24px;
}

.price-note__installment {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(30, 79, 168, 0.28);
  color: var(--color-accent);
  background: var(--color-surface);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 11px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  position: relative;
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.28s ease;
  animation: priceRowIn 0.5s ease both;
  animation-delay: calc(var(--row-index, 0) * 0.07s);
}

@keyframes priceRowIn {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: translateX(0); }
}

.price-row + .price-row {
  margin-top: 4px;
}

.price-row::before {
  content: "";
  position: absolute;
  left: 0; top: 50%; bottom: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-2));
  transform: translateY(-50%) scaleY(0);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  top: 12px; bottom: 12px;
  transform: scaleY(0);
  transform-origin: center;
}

.price-row:hover {
  border-color: rgba(111, 168, 209, 0.28);
  background: rgba(30, 79, 168, 0.08);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(6, 11, 18, 0.22), inset 0 1px 0 rgba(164, 220, 245, 0.08);
}

.price-row:hover::before {
  transform: scaleY(1);
}

/* Featured row */
.price-row--featured {
  border-color: rgba(111, 168, 209, 0.32);
  background: linear-gradient(105deg, rgba(30, 79, 168, 0.14), rgba(111, 168, 209, 0.07));
  box-shadow: 0 4px 18px rgba(6, 11, 18, 0.2), inset 0 1px 0 rgba(164, 220, 245, 0.1);
}

.price-row--featured:hover {
  border-color: rgba(111, 168, 209, 0.55);
  background: linear-gradient(105deg, rgba(30, 79, 168, 0.22), rgba(111, 168, 209, 0.12));
}

/* Info column */
.price-row__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.price-row__tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-2);
  border: 1px solid rgba(111, 168, 209, 0.4);
  background: rgba(111, 168, 209, 0.1);
  width: fit-content;
}

.price-row h3 {
  font-size: clamp(14px, 2vw, 17px);
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-row__term {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--color-muted);
}

.price-row__term span {
  font-size: 13px;
  opacity: 0.7;
}

/* Right column: price + button */
.price-row__right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.price-row__price {
  font-family: var(--font-heading);
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 700;
  color: var(--color-accent-2);
  white-space: nowrap;
  min-width: 110px;
  text-align: right;
  letter-spacing: -0.02em;
}

.price-row--featured .price-row__price {
  color: var(--color-accent);
}

.price-row__btn {
  min-height: 40px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 1;
  transform: translateX(0);
  transition:
    box-shadow 0.28s ease,
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-list {
  padding: 10px;
  overflow: hidden;
}

.faq-row {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  position: relative;
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.28s ease;
  animation: priceRowIn 0.5s ease both;
  animation-delay: calc(var(--row-index, 0) * 0.07s);
}

.faq-row + .faq-row {
  margin-top: 4px;
}

.faq-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-2));
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-row:hover,
.faq-row[open] {
  border-color: rgba(111, 168, 209, 0.28);
  background: rgba(30, 79, 168, 0.08);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(6, 11, 18, 0.22), inset 0 1px 0 rgba(164, 220, 245, 0.08);
}

.faq-row:hover::before,
.faq-row[open]::before {
  transform: scaleY(1);
}

.faq-row__head {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
}

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

.faq-row__info h3 {
  margin: 0;
  font-size: clamp(14px, 2vw, 17px);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
}

.faq-row__toggle {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(111, 168, 209, 0.36);
  background: rgba(111, 168, 209, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.faq-row__toggle::before {
  content: "+";
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent-2);
}

.faq-row[open] .faq-row__toggle::before {
  content: "−";
}

.faq-row__body {
  padding: 0 20px 18px;
}

.faq-row__body p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
}

.review-card__text {
  font-size: 15px;
  color: #d3e8fa;
}

.review-card__name {
  margin-top: 12px;
  color: #8fc6e8;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.reviews-sources--grid {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "two yandex"
    "two google"
    "two flamp";
}

.reviews-widget {
  padding: 10px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.reviews-widget--compact {
  min-height: 0;
}

.reviews-widget__title {
  margin: 4px 4px 10px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.reviews-widget__score {
  margin: 0 4px 8px;
  color: var(--color-text);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.reviews-widget__score strong {
  font-size: 30px;
  line-height: 1;
  color: var(--color-accent);
}

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

.reviews-widget__text {
  margin: 0 4px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.5;
  min-height: 72px;
}

.reviews-widget--compact .reviews-widget__text {
  min-height: 0;
  font-size: 13px;
}

.reviews-widget__frame {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 16px;
  background: #fff;
  display: block;
  flex: 1 1 auto;
}

.reviews-widget__frame--2gis {
  flex: 1 1 auto;
  min-height: 420px;
}

.reviews-widget--2gis {
  grid-area: two;
}

.reviews-widget--yandex-rating {
  grid-area: yandex;
}

.reviews-widget--2gis {
  align-self: stretch;
}

.reviews-widget--google {
  grid-area: google;
}

.reviews-widget--flamp {
  grid-area: flamp;
}

.reviews-widget__stars {
  font-size: 28px;
  letter-spacing: 3px;
  color: #f7b500;
  text-align: center;
  margin: 10px 0 4px;
}

.reviews-widget__link-wrap {
  margin: 10px 4px 4px;
  font-size: 13px;
}

.reviews-widget__link-wrap a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(111, 168, 209, 0.45);
}

.reviews-widget__link-wrap a:hover {
  color: #bfe7ff;
  border-bottom-color: rgba(191, 231, 255, 0.75);
}

.video-reviews {
  --video-reviews-visible: 2;
  --video-reviews-gap: 16px;
}

.video-reviews__viewport {
  overflow: hidden;
}

.video-reviews__track {
  display: flex;
  gap: var(--video-reviews-gap);
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}

.video-reviews__card {
  flex: 0 0 calc((100% - (var(--video-reviews-visible) - 1) * var(--video-reviews-gap)) / var(--video-reviews-visible));
  min-width: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-reviews__media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(146, 184, 225, 0.24);
  background: linear-gradient(165deg, #0d2242, #1b4f8f);
}

.video-reviews__media img,
.video-reviews__media iframe {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-reviews__media iframe {
  border: 0;
}

.video-reviews__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #dbeaff;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}

.video-reviews__play {
  position: absolute;
  inset: 0;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(7, 19, 38, 0.18), rgba(7, 19, 38, 0.56));
  transition: background-color 0.2s ease;
}

.video-reviews__play span {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 26px;
  transform: translateX(1px);
  border: 2px solid rgba(255, 255, 255, 0.88);
  background: rgba(6, 18, 42, 0.58);
  box-shadow: 0 14px 32px rgba(4, 12, 24, 0.45);
}

.video-reviews__play:hover {
  background: linear-gradient(180deg, rgba(7, 19, 38, 0.08), rgba(7, 19, 38, 0.44));
}

.video-reviews__media.is-playing .video-reviews__play {
  display: none;
}

.video-reviews__card h3 {
  margin: 0;
  font-size: clamp(16px, 2.1vw, 20px);
  line-height: 1.3;
  color: var(--color-text);
}

.video-reviews__nav {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.video-reviews.is-static .video-reviews__nav {
  display: none;
}

.video-reviews.is-static .video-reviews__card.glass-panel {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.video-reviews__arrow {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(30, 79, 168, 0.26);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(220, 236, 250, 0.84));
  color: #0f2f45;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.video-reviews__arrow:hover {
  transform: translateY(-2px);
  border-color: rgba(30, 79, 168, 0.46);
  box-shadow: 0 10px 20px rgba(16, 34, 45, 0.14);
}

.video-reviews__arrow:disabled {
  opacity: 0.42;
  cursor: default;
  transform: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  .video-reviews {
    --video-reviews-visible: 1;
    --video-reviews-gap: 10px;
  }

  .video-reviews__card {
    padding: 10px;
  }

  .video-reviews__play span {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
}

.request-card {
  padding: clamp(18px, 4.8vw, 38px);
  display: grid;
  gap: var(--space-5);
}

.request-card h2 {
  font-size: clamp(30px, 8vw, 58px);
  margin-bottom: 10px;
}

.request-card p {
  color: #aac2d7;
}

.request-form {
  display: grid;
  gap: 12px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  grid-auto-flow: dense;
}

.portfolio-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(30, 79, 168, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  box-shadow: 0 18px 40px rgba(16, 34, 45, 0.12);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.portfolio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(30, 79, 168, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(30, 79, 168, 0.24);
  box-shadow: 0 24px 56px rgba(16, 34, 45, 0.16);
}

.portfolio-card:hover::before {
  opacity: 1;
}

.portfolio-card__media {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.portfolio-card__media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.35s ease;
}

.portfolio-card:hover .portfolio-card__media img {
  transform: scale(1.03);
}

.portfolio-card__placeholder {
  display: grid;
  place-items: center;
  height: 220px;
  border-radius: 16px;
  background: rgba(30, 79, 168, 0.08);
  color: var(--color-muted);
  font-size: 13px;
}

.portfolio-card__thumbs {
  display: flex;
  gap: 8px;
  margin: 8px 0 4px;
  flex-wrap: wrap;
}

.portfolio-card__thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(146, 184, 225, 0.26);
  background: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.portfolio-card__type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1e4fa8;
  background: rgba(30, 79, 168, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
  margin: 6px 0 4px;
}

.portfolio-card__body h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.2;
}

.portfolio-card__body p {
  color: var(--color-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.6em;
}

.portfolio-card:nth-child(7n + 1) {
  grid-column: span 6;
  grid-row: span 2;
}

.portfolio-card:nth-child(7n + 1) .portfolio-card__media img,
.portfolio-card:nth-child(7n + 1) .portfolio-card__placeholder {
  height: 340px;
}

.portfolio-card:nth-child(7n + 6) {
  grid-column: span 6;
}

.portfolio-card:nth-child(7n + 6) .portfolio-card__media img,
.portfolio-card:nth-child(7n + 6) .portfolio-card__placeholder {
  height: 280px;
}

.portfolio-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-areas:
    "media content"
    "thumbs content";
  gap: 20px 24px;
  align-items: start;
}

.portfolio-detail__media {
  grid-area: media;
}

.portfolio-detail__media img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  box-shadow: 0 20px 44px rgba(16, 34, 45, 0.16);
}

.portfolio-detail__thumbs {
  grid-area: thumbs;
  display: flex;
  gap: 8px;
  margin: 0;
  flex-wrap: wrap;
}

.portfolio-detail__thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(146, 184, 225, 0.26);
  background: #fff;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.portfolio-detail__thumb:hover,
.portfolio-detail__thumb:focus-visible,
.portfolio-detail__thumb.is-active {
  transform: translateY(-2px);
  border-color: rgba(30, 79, 168, 0.6);
  box-shadow: 0 8px 16px rgba(30, 79, 168, 0.18);
  outline: none;
}

.portfolio-detail__content {
  grid-area: content;
  margin: 0;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(30, 79, 168, 0.12);
  padding: 18px;
  box-shadow: 0 14px 34px rgba(18, 42, 53, 0.12);
}

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
  .portfolio-card {
    grid-column: span 4;
  }
  .portfolio-card:nth-child(7n + 1),
  .portfolio-card:nth-child(7n + 6) {
    grid-column: span 8;
    grid-row: span 1;
  }
  .portfolio-card:nth-child(7n + 1) .portfolio-card__media img,
  .portfolio-card:nth-child(7n + 1) .portfolio-card__placeholder,
  .portfolio-card:nth-child(7n + 6) .portfolio-card__media img,
  .portfolio-card:nth-child(7n + 6) .portfolio-card__placeholder {
    height: 260px;
  }
  .portfolio-detail {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "thumbs"
      "content";
  }
}

@media (max-width: 640px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .portfolio-card {
    grid-column: span 1;
  }
  .portfolio-card__media img,
  .portfolio-card__placeholder {
    height: 200px;
  }
}

.type-benefits-section {
  padding-top: var(--space-6);
}

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

.benefit-card {
  grid-column: span 4;
  min-height: 150px;
  padding: 18px 18px 22px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(246, 247, 255, 0.9), rgba(255, 240, 244, 0.85));
  border: 1px solid rgba(30, 79, 168, 0.12);
  box-shadow: 0 16px 34px rgba(18, 42, 53, 0.1);
}

.benefit-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at bottom right, rgba(30, 79, 168, 0.15), transparent 55%);
  pointer-events: none;
}

.benefit-card__num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 16px rgba(16, 34, 45, 0.08);
}

.benefit-card__text {
  margin-top: 16px;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--color-text);
  max-width: 80%;
}

.benefit-card__icon {
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: var(--color-accent);
  opacity: 0.9;
}

.benefit-card__icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
}

.benefit-card--wide {
  grid-column: span 12;
  min-height: 120px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.benefit-card--wide .benefit-card__text {
  margin-top: 0;
  max-width: 70%;
  font-size: 20px;
}

.type-benefits-section .benefit-card__num {
  display: none;
}

.type-benefits-section .benefit-card__text {
  margin-top: 4px;
}

.type-brands-section .service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.type-brands-section .service-card {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.type-brands-section .service-card:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

.type-brands-section .brand-card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 10px;
  background: #ffffff;
  border: none;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
  min-height: 72px;
  height: 72px;
  transition: none;
}

.type-brands-section .brand-card__link::after {
  display: none;
}

.type-brands-section .brand-card__logo {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.type-brands-section .brand-card__logo img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(0.9);
  transition: filter 0.6s ease;
}

.type-brands-section .brand-card__link:hover .brand-card__logo img {
  filter: grayscale(0) contrast(1);
}

.type-brands-section .brand-card__fallback {
  font-size: 20px;
  font-weight: 700;
}

.type-brands-section .brand-card__name {
  display: none;
}

@media (max-width: 640px) {
  .type-brands-section .service-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
  }

  .type-brands-section .brand-card__logo {
    height: 100%;
  }

  .type-brands-section .brand-card__logo img {
    max-width: 100%;
  }
}

.type-portfolio-section {
  padding-top: var(--space-7);
}

.type-portfolio-section .pf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 320px;
  gap: 14px;
}

.type-portfolio-section .pf-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-surface);
  border: 1px solid rgba(111,168,209,0.12);
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition:
    opacity 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  grid-column: span 1 !important;
  grid-row: span 1 !important;
}

.type-portfolio-section .pf-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.type-portfolio-section .pf-card:hover {
  border-color: rgba(111,168,209,0.45);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(111,168,209,0.2);
}

.type-portfolio-section .pf-card:hover .pf-card__img { transform: scale(1.06); }
.type-portfolio-section .pf-card:hover .pf-card__overlay { opacity: 1; }
.type-portfolio-section .pf-card:hover .pf-card__body { transform: translateY(0); opacity: 1; }
.type-portfolio-section .pf-card:hover .pf-card__cta { opacity: 1; transform: translateY(0); }

.type-portfolio-section .pf-card__img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.type-portfolio-section .pf-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.type-portfolio-section .pf-card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(30,79,168,0.2), rgba(111,168,209,0.08));
}

.type-portfolio-section .pf-card__placeholder-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(111,168,209,0.3);
  display: grid;
  place-items: center;
  font-size: 24px;
  color: rgba(111,168,209,0.5);
}

.type-portfolio-section .pf-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(4,10,22,0.96) 0%,
    rgba(4,10,22,0.7) 40%,
    rgba(4,10,22,0.1) 75%,
    transparent 100%
  );
  opacity: 0.55;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.type-portfolio-section .pf-card__type-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(4,10,22,0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(111,168,209,0.28);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-2);
}

.type-portfolio-section .pf-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 20px 22px;
  transform: translateY(8px);
  opacity: 0.85;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
}

.type-portfolio-section .pf-card__body h3 {
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.type-portfolio-section .pf-card__body p {
  font-size: 13px;
  color: rgba(200,221,242,0.8);
  line-height: 1.5;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.type-portfolio-section .pf-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(111,168,209,0.18);
  border: 1px solid rgba(111,168,209,0.45);
  color: #e0f2ff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s, background 0.2s ease;
  backdrop-filter: blur(8px);
}

.type-portfolio-section .pf-card__cta:hover { background: rgba(111,168,209,0.3); }
.type-portfolio-section .pf-card__cta svg { transition: transform 0.2s ease; }
.type-portfolio-section .pf-card__cta:hover svg { transform: translateX(3px); }

.type-portfolio-section .pf-card__thumbs {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  gap: 5px;
}

.type-portfolio-section .pf-card__thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.25);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.type-portfolio-section .pf-card__thumb:hover {
  transform: scale(1.15) translateY(-2px);
  z-index: 1;
}

.type-portfolio-section .pf-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px) {
  .type-portfolio-section .pf-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
  }
}

.callback-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1200;
}

.callback-modal.is-open {
  display: flex;
}

.callback-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 52, 0.58);
  backdrop-filter: blur(8px);
}

.callback-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(8, 24, 52, 0.28);
  align-self: flex-start;
  margin-top: calc(var(--header-h) + 16px);
}

.callback-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--color-text);
}

.callback-modal .request-form {
  margin-top: 12px;
}

.callback-modal .request-form label span {
  font-size: 13px;
  color: var(--color-muted);
}

.callback-modal .form-success {
  margin-top: 12px;
  font-weight: 600;
}

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

.benefit-card--wide .benefit-card__icon {
  right: 24px;
  bottom: 12px;
}

@media (max-width: 1024px) {
  .type-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .benefit-card,
  .benefit-card--wide {
    grid-column: span 1;
    min-height: 150px;
  }
  .benefit-card__text,
  .benefit-card--wide .benefit-card__text {
    max-width: 100%;
  }
  .benefit-card__icon {
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 640px) {
  .type-benefits-grid {
    grid-template-columns: 1fr;
  }
  .benefit-card,
  .benefit-card--wide {
    grid-column: span 1;
  }
}

.request-form .sct-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.request-form label {
  display: grid;
  gap: 7px;
}

.request-form span {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8db6d0;
  font-weight: 700;
}

.request-form input,
.request-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(126, 184, 213, 0.28);
  background: rgba(7, 17, 27, 0.65);
  color: #e8f7ff;
  font-family: var(--font-body);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.request-form input:focus,
.request-form textarea:focus {
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.form-success {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(111, 168, 209, 0.44);
  background: rgba(7, 17, 27, 0.55);
  color: #dff4ff;
  font-weight: 600;
}

.page-card {
  text-decoration: none;
  display: block;
}

.page-card:hover h3 {
  color: #bffff8;
}

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

.contact-map {
  max-width: 920px;
  margin: 18px auto 0;
  padding: 12px;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 12px;
}

.contact-map__placeholder {
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #9cb5d0;
}

.contact-card h2 {
  font-size: clamp(30px, 8vw, 52px);
  margin-bottom: 12px;
}

.contact-card a {
  color: #d8fbff;
  text-decoration: none;
}

.contact-card a:hover {
  color: #90fff4;
}

.messenger-list {
  margin: 14px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.muted {
  color: #8fa6bc;
  font-size: 13px;
}

.contact-map {
  margin-top: 16px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 320px;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: none;
  border-radius: var(--radius-lg);
  filter: saturate(0.85) brightness(0.9) contrast(1.05);
}

.contact-map__canvas {
  width: 100%;
  height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.contact-map__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  color: var(--color-muted);
  font-size: 14px;
  text-align: center;
  padding: 24px;
}


/* ── Вакансии ─────────────────────────────── */
.vacancy__title {
  font-size: clamp(32px, 7vw, 64px);
  margin-bottom: 10px;
}

.vacancy__text {
  color: var(--color-muted);
  font-size: 15px;
  margin-bottom: 18px;
}

.vacancy__text a {
  color: var(--color-accent-2);
  text-decoration: none;
}

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

.vacancy__item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-soft);
  background: rgba(255, 255, 255, 0.04);
}

.vacancy__item.is-open {
  border-color: rgba(30, 79, 168, 0.4);
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.96), rgba(228, 242, 255, 0.9));
  box-shadow: 0 12px 28px rgba(30, 79, 168, 0.16);
}

.vacancy__item .item-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(111, 168, 209, 0.4);
  color: #ffffff;
  background: linear-gradient(120deg, #1e4fa8, #6fa8d1);
  cursor: pointer;
  transition: transform 0.25s ease;
}

.vacancy__item.is-open .item-btn {
  transform: rotate(45deg);
}

.vacancy__item .item-title h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.vacancy__item .item-title span {
  display: inline-block;
  font-size: 13px;
  color: var(--color-muted);
  margin-right: 10px;
}

.vacancy__item .item-content {
  grid-column: 1 / -1;
  padding-left: 48px;
  color: var(--color-text);
}

.vacancy__item.is-open {
  grid-template-columns: 44px 1fr 1.15fr;
  align-items: start;
}

.vacancy__item.is-open .item-content {
  grid-column: 3;
  grid-row: 1 / span 2;
  padding-left: 0;
  border-left: 1px solid rgba(111, 168, 209, 0.22);
  padding-left: 16px;
}

@media (max-width: 980px) {
  .vacancy__item.is-open {
    grid-template-columns: 44px 1fr;
  }
  .vacancy__item.is-open .item-content {
    grid-column: 1 / -1;
    grid-row: auto;
    border-left: none;
    padding-left: 48px;
  }
}

.vacancy__item .item-content h3 {
  margin: 12px 0 6px;
  font-size: 15px;
}

.vacancy__item .item-content ul {
  margin: 0 0 10px 18px;
  padding: 0;
}

.vacancy__item .item-content li {
  margin: 0 0 6px;
  color: var(--color-muted);
}

.vacancy__link {
  margin-top: 18px;
}

.md-main-color-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(120deg, #1e4fa8, #6fa8d1);
  text-decoration: none;
  font-weight: 700;
}

/* ── Vacancies (cards) ── */
.vacancies-section .container {
  width: min(1240px, calc(100% - 36px));
}

.vacancies-head h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 3.1vw, 54px);
  letter-spacing: -0.02em;
}

.vacancies-head p {
  max-width: 960px;
  color: #4f5d73;
}

.vacancies-page-content:empty {
  display: none;
}

.vacancies-page-content {
  margin: 0 0 20px;
  color: #3d4a5f;
}

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

.vacancy-card {
  border-radius: 20px;
  border: 1px solid #d9e2f1;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vacancy-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.vacancy-card h3 {
  margin: 0;
  font-size: clamp(20px, 1.5vw, 28px);
  line-height: 1.2;
}

.vacancy-status {
  border-radius: 999px;
  background: #e9f7ee;
  color: #117a37;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 11px;
  white-space: nowrap;
}

.vacancy-status.is-closed {
  background: #f3f4f6;
  color: #6b7280;
}

.vacancy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vacancy-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef3ff;
  color: #0C1F8F;
  font-size: 13px;
  font-weight: 700;
}

.vacancy-card p {
  margin: 0;
  color: #53627b;
  font-size: 15px;
  line-height: 1.5;
}

.vacancy-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vacancy-details {
  margin-top: 4px;
}

.vacancy-details h3 {
  margin: 12px 0 8px;
  font-size: 15px;
}

.vacancy-details ul {
  margin: 0 0 10px;
  padding-left: 18px;
}

.vacancy-details li {
  font-size: 14px;
  color: #53627b;
  line-height: 1.5;
}

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

@media (max-width: 760px) {
  .vacancies-section .container {
    width: min(1240px, calc(100% - 24px));
  }

  .vacancy-card {
    border-radius: 16px;
    padding: 16px;
    gap: 10px;
  }

  .vacancy-card h3 {
    font-size: 20px;
  }

  .vacancy-card p {
    font-size: 14px;
  }
}

.city-section {
  padding: 76px 0;
  background: #0d1727;
}

.city-section--alt {
  background: #0b1422;
}

.city-section h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 36px);
}

.city-section p {
  margin: 0;
  color: #a8b8d0;
}

@media (min-width: 961px) {
  :root {
    --header-top-h: 0px;
    --header-main-h: 78px;
    --header-h: calc(var(--header-top-h) + var(--header-main-h));
  }

  .site-header__inner {
    gap: 10px;
  }

  .site-nav {
    display: block;
    overflow: visible;
  }

  .site-nav__list {
    justify-content: center;
  }

  .rt-hero__inner {
    gap: var(--space-5);
  }

  .feature-grid,
  .steps-grid,
  .review-grid,
  .page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .masters-carousel {
    --masters-visible: 3;
    --masters-gap: 14px;
  }

  .request-card {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
  }

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

@media (min-width: 980px) {
  .rt-section {
    padding: var(--space-9) 0;
  }

  .rt-hero__inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: var(--space-5);
  }

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

  .masters-carousel {
    --masters-visible: 3;
    --masters-gap: 16px;
  }

  .price-list {
    padding: 16px;
  }

  .price-row {
    padding: 16px;
  }
}

@media (max-width: 979px) and (min-width: 769px) {
  .masters-carousel {
    --masters-visible: 3;
    --masters-gap: 10px;
  }

  #about-us .master-card__body {
    padding: 12px 10px;
  }

  #about-us .master-card h3 {
    font-size: 17px;
  }

  #about-us .master-card__position {
    font-size: 10px;
    margin-bottom: 4px;
  }

  #about-us .master-card p {
    font-size: 12px;
    line-height: 1.35;
  }
}

@media (max-width: 739px) {
  /* Старые мобильные переопределения шапки — перенесены в блок HEADER RESPONSIVE в конце файла */

  .price-row {
    flex-direction: column;
    gap: 10px;
  }

  .faq-row__head {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 16px;
  }

  .faq-row__toggle {
    justify-self: start;
  }

  .faq-row__body {
    padding: 0 16px 14px;
  }

  .reviews-widget {
    padding: 8px;
  }

  .reviews-sources {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .reviews-sources--grid {
    grid-template-areas:
      "two"
      "yandex"
      "google"
      "flamp";
  }

  .reviews-widget__frame {
    height: 390px;
    border-radius: 14px;
  }

  .reviews-widget__frame--2gis {
    height: 520px;
    min-height: 0;
  }

  .rtc-mascot-runner__bubble {
    left: 18px;
    bottom: calc(100% + 8px);
    width: min(clamp(170px, calc(var(--mascot-size) * 1.75), 240px), 80vw);
  }

  .rtc-mascot-runner__bubble::before {
    left: 18px;
    bottom: -12px;
    transform: rotate(-8deg);
  }
}

/* Light Tone Variant */
:root {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-strong: #ffffff;
  --color-panel: rgba(255, 255, 255, 0.8);
  --color-panel-strong: rgba(255, 255, 255, 0.96);
  --color-border: rgba(18, 46, 58, 0.16);
  --color-border-soft: rgba(18, 46, 58, 0.1);
  --color-text: #0e1a21;
  --color-muted: #50616d;
  --color-accent: #1e4fa8;
  --color-accent-2: #6fa8d1;
  --color-accent-ink: #ffffff;
  --shadow-soft: 0 14px 34px rgba(18, 42, 53, 0.12);
  --shadow-glow: 0 16px 34px rgba(30, 79, 168, 0.16);
  --shadow-strong: 0 20px 44px rgba(16, 34, 45, 0.15);
}

body {
  background:
    radial-gradient(900px 480px at 48% -16%, rgba(30, 79, 168, 0.06), transparent 72%),
    radial-gradient(1000px 560px at 80% -12%, rgba(95, 154, 203, 0.12), transparent 72%),
    radial-gradient(920px 520px at -10% 25%, rgba(111, 168, 209, 0.1), transparent 66%),
    var(--color-bg);
}

.site-header {
  border-bottom: 1px solid rgba(16, 36, 46, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.site-logo {
  color: #0f222d;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.site-nav__list a {
  color: #2b4350;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.site-nav__list a:hover {
  color: #0f222d;
  border-color: rgba(30, 79, 168, 0.36);
  background: rgba(30, 79, 168, 0.1);
}

.site-nav-search__input {
  border-color: rgba(30, 79, 168, 0.36);
  background: rgba(255, 255, 255, 0.95);
  color: #102a37;
}

.site-nav-search__input::placeholder {
  color: #668294;
}

.site-nav-search__input:focus {
  border-color: rgba(30, 79, 168, 0.84);
  box-shadow: 0 0 0 3px rgba(30, 79, 168, 0.14);
  background: #ffffff;
}

.site-nav-search__dropdown {
  border-color: rgba(20, 63, 80, 0.18);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 28px rgba(11, 35, 52, 0.16);
}

.site-nav-search__list li a {
  color: #1d3b4a;
}

.site-nav-search__list li a:hover {
  color: #0f2430;
  border-color: rgba(30, 79, 168, 0.34);
  background: rgba(30, 79, 168, 0.08);
}

.site-nav-search__empty {
  color: #6d8595;
}

.site-header__phone {
  color: #0f2230;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.site-footer {
  border-top: 1px solid rgba(122, 182, 255, 0.34);
  background: linear-gradient(180deg, #0b1f4f 0%, #071432 100%);
  color: #eaf2ff;
}

.glass-panel {
  border-color: rgba(18, 46, 58, 0.16);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.86), rgba(241, 249, 252, 0.86));
}

.eyebrow {
  color: #1f4b5a;
}

.lead {
  color: #3c5561;
}

.btn--accent {
  color: #ffffff;
  border-color: rgba(30, 79, 168, 0.88);
  background: linear-gradient(110deg, #1e4fa8, #7ab3d9);
  box-shadow: 0 12px 26px rgba(30, 79, 168, 0.25);
}

.btn--ghost {
  color: #1e3946;
  border-color: rgba(24, 76, 96, 0.25);
  background: rgba(255, 255, 255, 0.72);
}

.btn--ghost:hover {
  border-color: rgba(30, 79, 168, 0.64);
  box-shadow: 0 10px 20px rgba(7, 60, 82, 0.14);
}

.rt-section--alt {
  background: linear-gradient(180deg, #f2f7fa, #eaf2f6);
}

.section-nav {
  background: linear-gradient(180deg, rgba(8, 24, 52, 0.92), rgba(6, 18, 42, 0.9));
  border-top: 1px solid rgba(146, 184, 225, 0.18);
  border-bottom: 1px solid rgba(146, 184, 225, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px rgba(5, 15, 34, 0.28);
}

.section-nav__link {
  color: #c8dcf4;
  border-color: rgba(146, 184, 225, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.section-nav__link:hover {
  color: #f4f9ff;
  border-color: rgba(111, 168, 209, 0.72);
  box-shadow: 0 8px 18px rgba(14, 37, 74, 0.24);
}

.section-nav__link.is-active {
  color: #ffffff;
  border-color: rgba(111, 168, 209, 0.96);
  background: linear-gradient(120deg, #1e4fa8, #6fa8d1);
  box-shadow: 0 10px 24px rgba(30, 79, 168, 0.34);
}

.rt-hero {
  background: #ffffff;
}

#hero .rt-hero__content,
#hero .rt-hero__quick {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.9), rgba(239, 247, 251, 0.9));
  border-color: rgba(19, 75, 98, 0.16);
}

#hero .quick-item {
  border: 1px solid rgba(16, 53, 67, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

.rt-hero__overlay {
  background: transparent;
}

.quick-item {
  border: 1px solid rgba(126, 94, 58, 0.18);
  background: rgba(250, 241, 227, 0.86);
}

.quick-item p {
  color: #4b6672;
}

.service-card p,
.feature-card p,
.step-card p,
.review-card p,
.page-card p,
.contact-card p,
.master-card p {
  color: #3f5965;
}

.service-card h3,
.feature-card h3,
.step-card h3,
.page-card h3,
.contact-card h3,
.master-card h3 {
  color: #10232d;
}

/* Keep brighter hero card background on equipment type page */
body .type-hero-card.glass-panel {
  background:
    radial-gradient(1200px 420px at 20% 0%, rgba(111, 168, 209, 0.18), transparent 62%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(228, 242, 252, 0.96)) !important;
  border-color: rgba(93, 160, 207, 0.3);
}

.master-card__media {
  background: rgba(238, 247, 250, 0.82);
  border-color: rgba(20, 63, 80, 0.14);
}

.team-wide-card__media {
  background: rgba(238, 247, 250, 0.82);
  border-color: rgba(20, 63, 80, 0.14);
}

.master-card__placeholder {
  color: #53707d;
}

.master-card__position {
  color: #3f7281;
}

.service-card__icon {
  color: #0f3e4a;
  border: 1px solid rgba(30, 79, 168, 0.34);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.88), rgba(227, 246, 249, 0.78));
}

.why-rotator__index {
  color: #4d7482;
}

.why-rotator__desc {
  color: #3c5864;
}

.why-rotator__progress {
  background: rgba(16, 53, 67, 0.1);
}

.why-rotator__progress span {
  background: linear-gradient(90deg, #1e4fa8, #6fa8d1);
}

.price-row p {
  color: #486270;
}

.price-row strong {
  color: #0f3c49;
}

.review-card__text {
  color: #243f4a;
}

.review-card__name {
  color: #4e7381;
}

.request-card p {
  color: #39535e;
}

.request-form span {
  color: #496874;
}

.request-form input,
.request-form textarea {
  border: 1px solid rgba(20, 63, 80, 0.2);
  background: rgba(255, 255, 255, 0.95);
  color: #112731;
}

.request-form input:focus,
.request-form textarea:focus {
  border-color: rgba(30, 79, 168, 0.85);
  box-shadow: 0 0 0 3px rgba(30, 79, 168, 0.16);
}

.form-success {
  border: 1px solid rgba(30, 79, 168, 0.3);
  background: rgba(255, 255, 255, 0.92);
  color: #173845;
}

.muted {
  color: #5a7683;
}

.contact-card a {
  color: #123b48;
}

.contact-card a:hover {
  color: #1e4fa8;
}

.city-section {
  background: #f1f7fa;
}

.city-section--alt {
  background: #e6edf0;
}

.city-section p {
  color: #4f6672;
}

/* ═══════════════════════════════════
   PROCESS RAYS
═══════════════════════════════════ */
.process-rays {
  position: relative;
  background:
    radial-gradient(circle at top, rgba(8, 24, 52, 0.9), rgba(6, 12, 28, 0.96)),
    linear-gradient(120deg, rgba(15, 32, 62, 0.95), rgba(6, 12, 24, 0.95));
  color: #eaf2ff;
  overflow: hidden;
}

.process-rays::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 6px 6px;
  opacity: 0.08;
  pointer-events: none;
}

.process-rays .section-head {
  text-align: center;
  margin: 0 auto 36px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
}

.process-rays .section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 18px rgba(46, 140, 255, 0.45);
}

.process-rays .section-head .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.process-rays__grid {
  position: relative;
  display: grid;
  gap: 22px;
  z-index: 2;
}

.process-rays__rail {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(78, 243, 216, 0.2);
}

.process-rays__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(126, 200, 255, 0.3), rgba(78, 243, 216, 0.5));
  box-shadow: 0 0 24px rgba(78, 243, 216, 0.35);
}

.process-rays__step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.process-rays__step.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.process-rays__step--left .process-rays__bubble {
  grid-column: 1;
  justify-self: end;
}

.process-rays__step--right .process-rays__bubble {
  grid-column: 2;
  justify-self: start;
}

.process-rays__bubble {
  position: relative;
  width: min(520px, 100%);
  padding: 22px 28px;
  border-radius: 22px;
  background: rgba(18, 30, 54, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(8, 18, 36, 0.45);
  min-height: 140px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}


.process-rays__bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(126, 200, 255, 0.6), rgba(78, 243, 216, 0.8));
  opacity: 0.7;
  transform: translateY(-50%);
}

.process-rays__step--left .process-rays__bubble::after {
  right: -100%;
}

.process-rays__step--right .process-rays__bubble::after {
  left: -100%;
}

.process-rays__content {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
}

.process-rays__num {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(126, 200, 255, 0.18);
  border: 1px solid rgba(126, 200, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #eaf2ff;
  text-shadow: 0 4px 12px rgba(78, 243, 216, 0.35);
  box-shadow: inset 0 0 0 1px rgba(126, 200, 255, 0.2);
}

.process-rays__text h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #eaf2ff;
}

.process-rays__text p {
  margin: 0;
  font-size: 16px;
  color: rgba(231, 238, 255, 0.7);
  line-height: 1.6;
}

.process-rays__cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-size: clamp(18px, 2.3vw, 24px);
  font-weight: 800;
  color: #f8fbff;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(30, 79, 168, 0.96), rgba(111, 168, 209, 0.96));
  box-shadow: 0 16px 34px rgba(17, 46, 92, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.process-rays__cta-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 20px 40px rgba(17, 46, 92, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.process-rays__cta-link:active {
  transform: translateY(0);
  filter: brightness(1);
  box-shadow: 0 12px 26px rgba(17, 46, 92, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.process-rays__cta-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}


@media (max-width: 920px) {
  .process-rays__step {
    grid-template-columns: 1fr;
  }

  .process-rays__rail {
    left: 18px;
    transform: none;
  }

  .process-rays__bubble {
    width: 100%;
    margin-left: 32px;
  }

  .process-rays__bubble::after {
    display: none;
  }

  .process-rays__step--left .process-rays__bubble,
  .process-rays__step--right .process-rays__bubble {
    grid-column: 1;
    justify-self: stretch;
  }

  .process-rays__num {
    left: 18px;
  }
}

@media (max-width: 640px) {
  .process-rays__content {
    grid-template-columns: 1fr;
  }

  .process-rays__icon {
    width: 64px;
    height: 64px;
  }

  .process-rays__num {
    font-size: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rt-hero__video {
    display: none;
  }

  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ════════════════════════════════════════════════════════
   MOBILE & TABLET — COMPREHENSIVE RESPONSIVE
   Tablet: max-width 1024px
   Mobile: max-width 768px / 480px
════════════════════════════════════════════════════════ */

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {

  /* Hero */
  .rt-hero {
    min-height: 70vh;
  }
  .rt-hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .rt-hero__content h1 {
    font-size: clamp(28px, 6vw, 52px);
  }
  .rt-hero__quick {
    animation: none;
  }
  .rt-hero__quick-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

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

  /* Request card */
  .request-card {
    grid-template-columns: 1fr;
  }

  /* Contact grid */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Team hero */
  .team-hero__content {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  /* Type hero */
  .type-hero-layout {
    grid-template-columns: 1fr;
  }
  .type-hero-card {
    min-height: auto;
    padding: clamp(20px, 4vw, 36px);
  }

  /* About page */
  .ab-hero__inner {
    grid-template-columns: 1fr;
  }
  .ab-stats__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ab-reasons__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ab-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 200px 200px;
  }
  .ab-gallery__item:first-child {
    grid-row: span 1;
  }
  .ab-cta__card {
    grid-template-columns: 1fr;
  }

  /* Franchise */
  .fr-why__grid {
    grid-template-columns: 1fr;
  }
  .fr-benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fr-numbers__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .fr-launch__steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .fr-launch__steps::before {
    display: none;
  }
  .fr-cta__card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .fr-cta__actions {
    justify-content: center;
  }

  /* Portfolio single */
  .sp-hero { grid-template-columns: 1fr; }
  .sp-related__grid { grid-template-columns: repeat(2, 1fr); }

  /* Blog */
  .blog-grid__posts { grid-template-columns: repeat(2, 1fr); }
  .post-related__grid { grid-template-columns: repeat(2, 1fr); }
  .post-cta { flex-direction: column; gap: 16px; }
  .post-cta__actions { flex-direction: row; }

  /* Delivery */
  .dlv-safety__card { grid-template-columns: 1fr; }

  /* Business service */
  .biz-benefits__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {

  /* Sections */
  .rt-section {
    padding: var(--space-7) 0;
  }

  /* Hero */
  .rt-hero {
    min-height: auto;
    padding-bottom: var(--space-5);
  }
  .rt-hero__content h1 {
    font-size: clamp(26px, 7vw, 40px);
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Service grid */
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  /* Section nav */
  .section-nav__scroll {
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    touch-action: pan-x;
  }
  .section-nav__link {
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Price rows */
  .price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .price-row__right {
    width: 100%;
    justify-content: space-between;
  }
  .price-row__price {
    min-width: auto;
    text-align: left;
  }
  .price-row__btn {
    min-width: 120px;
  }

  /* Masters carousel */
  .masters-carousel {
    --masters-visible: 3;
    --masters-gap: 8px;
  }

  #about-us .master-card__media {
    aspect-ratio: 4 / 5;
  }

  #about-us .master-card__body {
    padding: 10px 8px;
    gap: 5px;
  }

  #about-us .master-card h3 {
    font-size: 14px;
    margin-bottom: 4px;
  }

  #about-us .master-card__position {
    font-size: 9px;
    margin: 0;
  }

  #about-us .master-card p {
    font-size: 11px;
    line-height: 1.3;
  }

  /* Reviews */
  .reviews-sources--grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "two"
      "yandex"
      "google"
      "flamp";
  }

  /* About */
  .ab-stats__grid { grid-template-columns: 1fr; }
  .ab-reasons__grid { grid-template-columns: 1fr; }
  .ab-gallery__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .ab-gallery__item { aspect-ratio: 4/3; }

  /* Franchise */
  .fr-hero__badges {
    flex-direction: column;
    align-items: center;
  }
  .fr-badge { min-width: 200px; }
  .fr-benefits__grid { grid-template-columns: 1fr; }
  .fr-numbers__grid { grid-template-columns: 1fr; }
  .fr-package__grid { grid-template-columns: 1fr; }
  .fr-launch__steps { grid-template-columns: 1fr; gap: 16px; }
  .fr-quiz__options { grid-template-columns: 1fr; }
  .fr-quiz__form-row { grid-template-columns: 1fr; }

  /* Delivery */
  .dlv-benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .dlv-steps__grid { grid-template-columns: 1fr; gap: 24px; }
  .dlv-steps__grid::before { display: none; }
  .dlv-payment__grid { grid-template-columns: 1fr; }
  .dlv-gallery__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .dlv-gallery__item { aspect-ratio: 4/3; }

  /* Business page */
  .biz-gallery__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .biz-gallery__item { aspect-ratio: 4/3; }
  .biz-cta__card { grid-template-columns: 1fr; }

  /* Portfolio archive */
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-stats { gap: 0; }
  .pf-stat { padding: 12px 16px; }

  /* Single portfolio */
  .sp-safety__card { grid-template-columns: 1fr; }
  .sp-block { grid-template-columns: 36px 1fr; }
  .sp-block__photo { width: 100%; height: auto; aspect-ratio: 4/3; }
  .sp-related__grid { grid-template-columns: 1fr; }

  /* Blog */
  .blog-grid__posts { grid-template-columns: 1fr; }
  .post-related__grid { grid-template-columns: 1fr; }
  .post-article { padding: clamp(18px, 4vw, 28px); }
  .post-cta { flex-direction: column; }
  .post-cta__actions { flex-wrap: wrap; }

  /* Why rotator */
  .why-rotator {
    min-height: 200px;
    padding: clamp(18px, 4vw, 28px);
  }
  .why-rotator__title {
    font-size: clamp(24px, 6vw, 36px);
  }

  /* Contacts */
  .contact-grid { grid-template-columns: 1fr; }
  .contact-map iframe { height: 280px; }

  /* Floating widgets */
  .floating-widgets {
    right: 12px;
    bottom: 70px;
    gap: 10px;
  }
}

/* ── Small Mobile (≤480px) ── */
@media (max-width: 480px) {

  /* Container */
  .container {
    width: 94vw;
  }

  /* Header — подхватывается из @media (max-width: 739px) выше */

  /* Hero */
  .rt-hero__quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .rt-hero__quick h2 { font-size: 18px; }
  .rt-hero__quick .quick-item--btn {
    padding: 8px 9px;
    min-height: 66px;
  }
  .rt-hero__quick .quick-item--btn h3 {
    font-size: 12px;
    margin-bottom: 2px;
    line-height: 1.2;
  }
  .rt-hero__quick .quick-item--btn p {
    font-size: 10px;
    line-height: 1.2;
  }

  /* Buttons */
  .btn {
    padding: 11px 16px;
    font-size: 13px;
    min-height: 42px;
  }

  /* Service grid */
  .service-grid { grid-template-columns: 1fr; }

  /* Section head */
  .section-head h2 { font-size: clamp(22px, 7vw, 32px); }

  /* Price rows */
  .price-row { padding: 14px 12px; }
  .price-row h3 { font-size: 14px; white-space: normal; }

  /* FAQ */
  .faq-row__head { padding: 12px 14px; }

  /* Stats about */
  .about-stats__grid { grid-template-columns: 1fr; }
  .ab-stat__num { font-size: clamp(44px, 12vw, 64px); }

  /* CTA post */
  .post-cta {
    padding: 20px;
  }
  .post-cta__text h3 { font-size: 17px; }
  .post-cta__actions { flex-direction: column; }
  .post-cta__actions .btn { width: 100%; justify-content: center; }

  /* Delivery benefits */
  .dlv-benefits__grid { grid-template-columns: 1fr; }

  /* Portfolio filters */
  .pf-filter { gap: 6px; }
  .pf-filter__btn { padding: 7px 14px; font-size: 12px; }

  /* Franchise quiz progress */
  .fr-quiz__bar { width: 140px; }
  .fr-quiz__footer { flex-wrap: wrap; gap: 10px; }

  /* Portfolio grid */
  .pf-grid { grid-template-columns: 1fr !important; }
  .pf-card { grid-column: span 1 !important; grid-row: span 1 !important; }

  /* Blog cards */
  .blog-card__body { padding: 16px 16px 14px; }

  /* Vacancy */
  .vacancy__item.is-open {
    grid-template-columns: 44px 1fr;
  }
  .vacancy__item.is-open .item-content {
    grid-column: 1 / -1;
    padding-left: 0;
    border-left: none;
  }

  /* Single post */
  .post-hero__lead { font-size: 15px; }

  /* Reviews */
  .reviews-widget__frame--2gis { min-height: 380px; }

  /* Google и Flamp компакт — ограничиваем высоту */
  .reviews-widget--google,
  .reviews-widget--yandex-rating,
  .reviews-widget--flamp {
    min-height: 0 !important;
    height: auto !important;
  }
  .reviews-widget--google .reviews-widget__text,
  .reviews-widget--yandex-rating .reviews-widget__text,
  .reviews-widget--flamp .reviews-widget__text {
    min-height: 0;
  }
}

/* ══════════════════════════════════════════════════
   SECTION-NAV MOBILE + SEARCH TOGGLE
══════════════════════════════════════════════════ */

@media (max-width: 900px) {
  /* ── Section-nav: sticky + фейд по краям ── */
  .section-nav {
    position: sticky;
    top: var(--header-h);
    z-index: 700;
  }

  .section-nav::before,
  .section-nav::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; width: 32px;
    pointer-events: none;
    z-index: 2;
  }
  .section-nav::before {
    left: 0;
    background: linear-gradient(to right, rgba(8,24,52,.85), transparent);
  }
  .section-nav::after {
    right: 0;
    background: linear-gradient(to left, rgba(8,24,52,.85), transparent);
  }

  /* ── Section-nav: горизонтальный скролл ── */
  .section-nav__scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 4px 0 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: none;
  }
  .section-nav__scroll::-webkit-scrollbar {
    display: none;
  }
  .section-nav__link {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 7px 10px;
    font-size: 12px;
  }

  /* На тач-экранах не открываем меню через hover */
  .section-nav__dropdown:hover .section-nav__menu {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
  }

  .section-nav__dropdown--mega.is-open .section-nav__menu {
    left: 0;
    right: auto;
    width: min(720px, calc(100vw - 16px));
    min-width: 280px;
    max-width: calc(100vw - 16px);
    max-height: min(70vh, 520px);
    max-height: min(70svh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    column-count: 2;
    z-index: 1400;
  }
}

@media (max-width: 560px) {
  .section-nav__dropdown--mega.is-open .section-nav__menu {
    width: min(420px, calc(100vw - 12px));
    min-width: 240px;
    max-width: calc(100vw - 12px);
    column-count: 1;
  }
}

/* Строка адреса — скрыта на десктопе */
.site-header__addr-row {
  display: none;
}

/* Мобильный ротатор адреса — меньший размер шрифта */
.site-header__addr-row .site-logo__addresses {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #4a5f75 !important;
}
.site-header__addr-row .site-logo__addresses[data-flip-address] {
  --city-cap-size: 13px;
  gap: 0;
}
.site-header__addr-row .site-logo__cube-face {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #4a5f75 !important;
}
.site-header__addr-city {
  font-size: 11px;
  font-weight: 600;
  color: #4a5f75;
  white-space: nowrap;
}

/* ── Search toggle button (скрыт на десктопе, виден на мобиле) ── */
.site-header__search-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(30,79,168,.3);
  background: rgba(30,79,168,.08);
  color: #1e4fa8;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
  flex-shrink: 0;
}
.site-header__search-toggle:hover {
  background: rgba(30,79,168,.15);
  border-color: rgba(30,79,168,.5);
}

/* Поиск-оверлей на мобиле */
.site-header__search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4,11,22,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: flex-start;
  justify-content: center;
  padding-top: calc(var(--header-h) + 12px);
}
.site-header__search-overlay.is-open {
  display: flex;
}
.site-header__search-overlay .site-nav-search {
  width: min(560px, 92vw);
  position: relative;
}
.site-header__search-overlay .site-nav-search__input {
  width: 100%;
  min-height: 48px;
  font-size: 16px;
  padding: 12px 16px 12px 44px;
  border-radius: 14px;
  border: 1.5px solid rgba(30,79,168,.5);
  background: #ffffff;
  color: #0e1a2e;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.site-header__search-overlay .site-nav-search__input::placeholder {
  color: #99aec3;
}
.site-header__search-overlay .site-nav-search__bolt {
  left: 14px;
  font-size: 18px;
  color: #1e4fa8;
}
.site-header__search-overlay .site-nav-search__dropdown {
  border-radius: 14px;
  border: 1px solid rgba(30,79,168,.15);
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(0,0,0,.2);
  top: calc(100% + 8px);
}
.site-header__search-overlay .site-nav-search__list li a {
  color: #0e1a2e;
}
.site-header__search-overlay .site-nav-search__list li a:hover {
  background: rgba(30,79,168,.07);
  color: #1e4fa8;
  border-color: rgba(30,79,168,.2);
}

/* ══════════════════════════════════════
   HEADER RESPONSIVE
   >960px  : десктоп — 4 колонки, 1 строка
   ≤960px  : планшет/мобилка — 2 строки
   ≤420px  : маленький телефон
══════════════════════════════════════ */

@media (max-width: 960px) {
  :root { --header-main-h: 82px; }

  /* Шапке разрешаем расти на 2 строки */
  .site-header {
    height: auto;
    min-height: var(--header-h);
  }

  /* Скрываем форму поиска — оставляем только иконку */
  .site-header__search .site-nav-search { display: none; }

  /* Показываем иконку лупы */
  .site-header__search-toggle    { display: inline-flex; }

  /*
    HTML-порядок внутри .site-header__inner:
    1. .site-logo
    2. .site-header__search  (содержит только кнопку-лупу)
    3. .site-header__urgent  (скрыт)
    4. .site-header__cta     (телефон)
    5. .site-header__addr-row

    Грид 2×2: строка 1 = лого | телефон | лупа
               строка 2 = адрес (colspan 3)
  */
  .site-header__inner {
    display:               grid;
    grid-template-columns: 1fr auto auto auto;
    grid-template-rows:    auto auto;
    grid-template-areas:
      "logo  urg   cta   srch"
      "addr  addr  addr  addr";
    column-gap:   8px;
    row-gap:      2px;
    align-items:  center;
    padding:      6px 0 5px;
    height:       auto;
  }

  .site-logo              { grid-area: logo; min-width: 0; align-self: center; }
  .site-header__urgent    { grid-area: urg;  align-self: center; display: inline-flex !important; font-size: 11px; padding: 0 10px; min-height: 34px; }
  .site-header__cta       { grid-area: cta;  align-self: center; flex-shrink: 0; }
  .site-header__search    { grid-area: srch; align-self: center; display: flex; align-items: center; flex-shrink: 0; width: auto; }
  .site-header__addr-row  { grid-area: addr; }

  /* Строка адреса */
  .site-header__addr-row {
    display:       flex;
    align-items:   center;
    gap:           6px;
    font-size:     12px;
    font-weight:   600;
    color:         #4a5f75;
    line-height:   1;
    overflow:      hidden;
    white-space:   nowrap;
    padding-bottom: 2px;
  }
  .site-header__addr-row svg { flex-shrink: 0; opacity: .5; }

  /* Телефон компактный */
  .site-header__phone {
    min-height:    34px;
    padding:       0 10px;
    border-radius: 10px;
    border:        1px solid rgba(30,79,168,.2);
    background:    rgba(30,79,168,.06);
  }
  .site-header__phone-number {
    font-size:    clamp(13px, 1.8vw, 18px);
    font-weight:  700;
    letter-spacing: -.01em;
  }

  /* Лого */
  .site-logo       { gap: 7px; margin-left: -6px; }
  .site-logo__text {
    font-size:     clamp(13px, 1.9vw, 17px);
    max-width:     44vw;
    overflow-wrap: anywhere;
    white-space:   normal;
    text-overflow: clip;
  }
  .site-logo__mark       { width: 9px; height: 9px; }
  .site-logo__image      { height: 22px; }
  .site-logo__meta       { display: none; }  /* адрес — в строке addr */
  .site-logo__text-wrap  { gap: 6px; }
}

/* Маленький телефон ≤560px — шрифты чуть меньше */
@media (max-width: 560px) {
  #hero .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }

  #hero .hero-actions .btn {
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    font-size: 12px;
    justify-content: center;
  }

  .site-header__cta > a {
    min-height: 29px;
    padding: 0 7px;
    border-radius: 8px;
  }

  .site-header__phone-number {
    font-size: clamp(11px, 3.1vw, 14px);
  }
  .site-header__search {
    width: 31px;
    min-width: 31px;
    justify-content: center;
  }
  .site-header__search-toggle {
    width: 31px;
    height: 31px;
    border-radius: 8px;
  }
  .site-logo__text {
    font-size: clamp(12px, 3.6vw, 15px);
    max-width: 42vw;
  }
  .site-header__urgent {
    font-size: 9px;
    padding: 0 7px;
    min-height: 27px;
  }
}

/* Очень маленький ≤420px */
@media (max-width: 420px) {
  :root { --header-main-h: 78px; }
  .site-header__inner { column-gap: 6px; padding: 5px 0 4px; }
  .site-logo { margin-left: -8px; }
  .site-header__phone { padding: 0 6px; min-height: 30px; }
  .site-header__phone-number { font-size: 12px; }
  .site-logo__text { font-size: 12px; max-width: 38vw; }
  .site-header__search { width: 30px; min-width: 30px; }
  .site-header__search-toggle { width: 30px; height: 30px; }
}
