/* Variables */
:root {
  --primary: #70C6D4;
  --primary-dark: #167b88;
  --accent: #70C6D4;
  --dark: #0d1118;
  --text: #111827;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f5f7f8;
  --border: #e2e8f0;
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-hero: clamp(36px, 6vw, 64px);
  --font-heading: clamp(24px, 4vw, 36px);
  --font-body: 16px;
  --radius: 12px;

  /* Unified typography variables */
  --font-size-h1: clamp(32px, 5vw, 48px);
  --font-size-h2: clamp(28px, 4vw, 36px);
  --font-size-h3: clamp(24px, 3vw, 30px);
  --font-size-h4: clamp(20px, 2.5vw, 26px);
  --font-size-h5: clamp(18px, 2.2vw, 24px);
  --font-size-h6: clamp(16px, 2vw, 20px);
  --font-size-body: 16px;
  --font-size-small: 14px;
  --font-size-medium: 18px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


textarea,
input,
select {
  font-weight: unset !important;
}


html {
  scroll-behavior: smooth;
}

main {
  background-color: var(--bg);
}

body {
  font-family: var(--font-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
  font-size: var(--font-size-body);
}

body.nav-open {
  overflow: hidden;
}

body.site-loading {
  overflow: hidden;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(7, 10, 16, 0.98) 0%, rgba(13, 17, 24, 0.96) 50%, rgba(7, 13, 20, 0.98) 100%);
  color: #f8fafc;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.site-loader::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0%, transparent 42%, rgba(112, 198, 212, 0.14) 50%, transparent 58%, transparent 100%);
  transform: translateX(-100%);
  animation: siteLoaderSweep 2.4s ease-in-out infinite;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.site-loader__mark {
  position: relative;
  width: clamp(86px, 16vw, 118px);
  height: clamp(86px, 16vw, 118px);
  display: grid;
  place-items: center;
}

.site-loader__ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--primary);
  border-right-color: rgba(112, 198, 212, 0.75);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 18px 50px rgba(0, 0, 0, 0.36);
  animation: siteLoaderSpin 1.1s linear infinite;
}

.site-loader__logo {
  width: 68%;
  max-width: 78px;
  height: auto;
  object-fit: contain;
  /* filter: brightness(0) invert(1) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45)); */
}

.site-loader__progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.site-loader__line {
  position: relative;
  width: min(220px, 48vw);
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.site-loader__percent {
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  font-weight: var(--font-weight-semibold);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.site-loader__line::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  transform: translateX(-100%);
  animation: siteLoaderLine 1.35s ease-in-out infinite;
}

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

@keyframes siteLoaderLine {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(250%);
  }
}

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

  55%,
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-loader,
  .site-loader::after,
  .site-loader__ring,
  .site-loader__line::after {
    animation: none;
    transition: none;
  }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-base);
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 0.5em;
  font-weight: var(--font-weight-bold);
}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

h4 {
  font-size: var(--font-size-h4);
}

h5 {
  font-size: var(--font-size-h5);
}

h6 {
  font-size: var(--font-size-h6);
}

p,
li,
blockquote {
  font-family: var(--font-base);
  font-weight: var(--font-weight-normal);
  color: var(--text);
  font-size: var(--font-size-body);
}

button,
input,
textarea,
select {
  font-family: var(--font-base);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-body);
}

.bis-condensed {
  font-weight: var(--font-weight-bold);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  --header-fg: #f8fafc;
  --header-fg-muted: rgba(255, 255, 255, 0.72);
  background: linear-gradient(135deg, rgba(12, 17, 26, 0.85) 0%, rgba(12, 17, 26, 0.35) 45%, rgba(12, 17, 26, 0.1) 100%);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.header.scrolled {
  --header-fg: #0f172a;
  --header-fg-muted: #475569;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.14);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 32px;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  height: 64px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  transition: transform 0.2s ease, filter 0.25s ease;
  /* filter: brightness(0) invert(1) drop-shadow(0 6px 18px rgba(0, 0, 0, 0.25)); */
}

.brand-mark:hover {
  transform: scale(1.05);
}

.brand-text {
  display: none;
}

.brand-title {
  font-size: 16px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 13px;
  color: var(--header-fg-muted);
}

.primary-nav {
  display: none;
}

.nav {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav a {
  text-decoration: none;
  color: var(--header-fg);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding: 10px 0;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transition: width 0.3s ease;
}

.nav a:hover {
  color: var(--header-fg);
}

.nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.header-location {
  position: relative;
}

.header-location__trigger {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--header-fg);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.header-location__trigger span {
  width: 100%;
}

.header-location__trigger:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.header-location__eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--header-fg-muted);
}

.header-location__city {
  font-size: 16px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
}

.header-location__popover {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  z-index: 100000;
  width: min(340px, calc(100vw - 32px));
  padding: 26px 24px 22px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 0 0 100vmax rgba(7, 10, 16, 0.6), 0 24px 64px rgba(15, 23, 42, 0.25);
}

.header-location__popover::before {
  display: none;
}

.header-location__popover[hidden] {
  display: none !important;
}

.header-location__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.header-location__caption {
  margin-bottom: 10px;
  color: #70C6D4;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.header-location__title {
  margin-bottom: 12px;
  color: #0f172a;
  font-size: 34px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.05;
}

.header-location__current {
  margin-bottom: 18px;
  color: #334155;
  font-size: 16px;
}

.header-location__field {
  margin-bottom: 18px;
}

.header-location__label {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-location__input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-size: 16px;
  background: #ffffff;
}

.header-location__input:focus {
  outline: none;
  border-color: var(--primary);
}

.header-location__input.is-error {
  border-color: #ef4444;
}

.header-location__error {
  display: block;
  margin-top: 6px;
  color: #ef4444;
  font-size: 13px;
}

.header-location__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.header-location__button {
  min-width: 120px;
}

.btn-ghost {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--header-fg);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
  color: #0f172a;
  background: linear-gradient(135deg, #ffffff, rgba(112, 198, 212, 0.18));
}

@media (prefers-reduced-motion: no-preference) {

  .btn-ghost,
  .btn-primary,
  .brand-mark {
    transition: all 0.3s ease;
  }
}

.btn {
  padding: 12px 24px;
  max-width: fit-content;
  border-radius: 0 !important;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-body);
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  display: flex;
  justify-content: center;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 4px 12px rgba(112, 198, 212, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(112, 198, 212, 0.5);
}



.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: none;
}

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

/* Softer, lighter rounding with snappy transitions */
.btn,
.btn-primary,
.btn-ghost,
.btn-outline,
.callback-btn,
.order-btn,
.hero-badge,
.service-card,
.task-item,
.case-card,
.why-card,
.equipment-card,
.brand-card,
.contact-form-wrapper,
.popup-form,
.modal,
.faq-question,
.faq-answer,
.contact-form input,
.contact-form textarea,
.contact-form select,
.nav-drawer__panel,
.contact-form button,
.stats .stat-item {
  border-radius: var(--radius);
}

.btn,
.btn-primary,
.btn-ghost,
.menu-toggle,
.drawer-nav a,
.hero-nav a {
  transition-duration: 0.2s;
}

/* Mobile Menu */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  cursor: pointer;
  padding: 12px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.menu-toggle .line {
  width: 22px;
  height: 2px;
  background: var(--header-fg);
  transition: all 0.4s ease;
  border-radius: 12px;
}

.menu-toggle .line-middle {
  width: 16px;
}

.menu-toggle:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.menu-toggle:hover .line-top {
  transform: translateY(-2px);
  width: 24px;
}

.menu-toggle:hover .line-bottom {
  transform: translateY(2px);
  width: 24px;
}

.menu-toggle.active {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle.active .line-top {
  transform: translateY(7px) rotate(45deg);
  width: 24px;
}

.menu-toggle.active .line-middle {
  opacity: 0;
}

.menu-toggle.active .line-bottom {
  transform: translateY(-7px) rotate(-45deg);
  width: 24px;
}

.header.scrolled .btn-ghost {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--header-fg);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.header.scrolled .btn-ghost:hover {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
}

.header.scrolled .menu-toggle {
  border-color: rgba(15, 23, 42, 0.14);
}

.header.scrolled .header-location__trigger {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--header-fg);
}

.header.scrolled .header-location__trigger:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.2);
}

.header.scrolled .menu-toggle:hover {
  background: rgba(15, 23, 42, 0.06);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
}

.header.scrolled .menu-toggle .line {
  background: var(--header-fg);
}

.brand-mark--scrolled {
  display: none;
}

.header.scrolled .brand-mark {
  filter: none;
}

.header.scrolled .brand-mark--default {
  display: none;
}

.header.scrolled .brand-mark--scrolled {
  display: block;
}


/* Language Switcher */
.header-lang {
  position: relative;
  display: inline-block;
}

.lang-toggle {
  display: inline-flex;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  cursor: pointer;
  padding: 12px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  color: var(--header-fg, #fff);
  transition: border-color 0.3s ease, box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease, transform 0.2s ease;
}

.lang-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.lang-toggle:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.header.scrolled .lang-toggle {
  border-color: rgba(15, 23, 42, 0.14);
  color: var(--header-fg);
}

.header.scrolled .lang-toggle:hover {
  background: rgba(15, 23, 42, 0.06);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius, 12px);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.16);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 80px;
  z-index: 1010;
}

.lang-dropdown[hidden] {
  display: none !important;
}

.lang-item {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: var(--font-weight-semibold, 600);
  color: #475569;
  border-radius: calc(var(--radius, 12px) - 4px);
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-item:hover {
  background: rgba(112, 198, 212, 0.08);
  color: var(--primary-dark, #167b88);
}

.lang-item.active {
  background: var(--primary, #70C6D4);
  color: #ffffff;
}

/* Off-canvas drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nav-drawer.active {
  pointer-events: auto;
  opacity: 1;
}

.nav-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 16, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nav-drawer.active .nav-drawer__backdrop {
  opacity: 1;
}

.nav-drawer__panel {
  border-radius: 0;
  position: absolute;
  top: 0;
  right: -420px;
  width: min(420px, 90vw);
  height: 100%;
  background: #0b101a;
  color: #f8fafc;
  padding: 32px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.35);
  transition: right 0.3s ease;
  overflow-y: auto;
}

.nav-drawer.active .nav-drawer__panel {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.drawer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.drawer-mark {
  height: 64px;
  width: auto;
  object-fit: contain;
  /* filter: brightness(0) invert(1) drop-shadow(0 8px 30px rgba(0, 0, 0, 0.35)); */
}

.drawer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-title {
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 14px;
}

.drawer-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  position: relative;
  transition: background 0.3s ease, transform 0.3s ease;
}

.drawer-close span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #f8fafc;
  border-radius: 8px;
}

.drawer-close span:first-child {
  transform: rotate(45deg);
}

.drawer-close span:last-child {
  transform: rotate(-45deg);
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: rotate(3deg);
}

.drawer-mobile-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 24px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-mobile-actions:empty {
  display: none;
}

.drawer-mobile-actions .header-location {
  flex-grow: 1;
}

.drawer-mobile-actions .header-location__trigger {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 999px;
  height: 48px;
  box-sizing: border-box;
}

.drawer-mobile-actions .header-location__eyebrow {
  display: none;
}

.drawer-mobile-actions .lang-toggle {
  flex-shrink: 0;
}

.drawer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.drawer-nav a {
  color: #f8fafc;
  font-size: 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
}

.drawer-nav a::before {
  content: '';
  width: 8px;
  height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.3s ease;
}

.drawer-nav a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.drawer-nav a:hover {
  color: #70C6D4;
}

.drawer-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-note {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.5;
}

.drawer-actions .btn-primary {
  width: 100%;
  justify-content: center;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 96px;
  background: linear-gradient(rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.82)), #0b1221;
}

/* Fallback для браузеров без поддержки webp */
.no-webp .hero {
  background: linear-gradient(rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.82)), #0b1221;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-attachment: fixed;
}

.hero-slide.active {
  opacity: 1;
}

.hero-parallax {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-parallax::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(6, 12, 28, 0.78) 0%,
      rgba(6, 12, 28, 0.86) 50%,
      rgba(6, 12, 28, 0.94) 100%);
  z-index: 2;
}

.parallax-layer {
  position: absolute;
  left: -5%;
  right: -5%;
  top: -12%;
  bottom: -12%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.4s ease;
  z-index: 1;
}

.parallax-layer--back {
  opacity: 0.65;
  filter: blur(1px);
}

.parallax-layer--front {
  opacity: 0.9;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(112, 198, 212, 0.2), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(112, 198, 212, 0.2), transparent 50%);
  animation: pulse 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black 40%, transparent 100%);
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.hero-nav-rail {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  width: auto;
}

.hero-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 32px);
  list-style: none;
  flex-wrap: wrap;
}

.hero-nav a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: var(--font-weight-normal);
  font-size: 16px;
  text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  padding-bottom: 6px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hero-nav a:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 900px) {
  .hero-nav-rail {
    left: 24px;
    right: 24px;
  }
}

@media (max-width: 600px) {
  .hero-nav-rail {
    bottom: 18px;
    left: 20px;
    right: 20px;
  }

  .hero-nav {
    gap: 12px 16px;
    justify-content: center;
  }

  .hero-nav a {
    font-size: 14px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}


.hero h1 {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  margin-bottom: 24px;
  color: white;
  letter-spacing: -1px;
  min-height: 90px;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  /* Устанавливаем фиксированную ширину для предотвращения смещения при эффекте печати */
  width: 100%;
  /* Убедимся, что контейнер не меняет размеры при печати */
  overflow: visible;
  /* Позволяем тексту отображаться полностью */
  /* Убедимся, что на десктопе текст не обрезается */
  max-width: 1200px;
}

.typing-title {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
  /* Убедимся, что курсор не влияет на размеры */
  position: relative;
  /* Установим минимальную высоту для предотвращения смещения */
  min-height: 1.3em;
  /* Убедимся, что элементы внутри правильно выравнены */
  align-content: flex-start;
  /* Убедимся, что содержимое не выходит за границы */
  overflow: visible;
}

.typing-text {
  display: inline;
  white-space: pre-wrap;
  word-break: keep-all;
  /* Ширина будет устанавливаться через JavaScript для предотвращения смещения */
  min-width: 100%;
  /* Значение по умолчанию, будет переопределено JS */
  /* Убедимся, что текст не выходит за границы */
  overflow: visible;
  /* Выравнивание по вертикали */
  vertical-align: top;
  /* Убедимся, что текст может расширяться по ширине */
  flex: 1 1 auto;
  /* Убедимся, что элементы внутри него правильно позиционируются */
  position: relative;
}

.typing-text br {
  display: none;
}

.cursor {
  display: none;
  color: var(--accent);
  animation: blink 0.7s infinite;
  margin-left: 2px;
  line-height: 1;
  /* Позиционируем курсор рядом с текстом */
  vertical-align: top;
  /* Убедимся, что курсор находится на одной линии с текстом */
  margin-left: 4px;
  /* Убедимся, что курсор не влияет на размеры контейнера */
  position: static;
  width: auto;
  height: auto;
}

@keyframes blink {

  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

.gradient-text {
  background: #70C6D4;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 3s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradient-shift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: var(--font-size-body);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 700px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* Hero Tasks */
.hero-tasks {
  max-width: 1000px;
  margin-top: 48px;
}

.tasks-title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  color: white;
  margin-bottom: 32px;
}

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

.task-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 24px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.task-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.task-icon {
  font-size: var(--font-size-h3);
  margin-bottom: 16px;
  display: block;
}

.task-item p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--font-size-body);
  line-height: 1.6;
  margin: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  max-width: 800px;
  margin-top: 64px;
}

.stat-item {
  text-align: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.stat-value {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  color: white;
  display: block;
  margin-bottom: 8px;
}

.stat-value::after {
  content: '+';
}

.stat-label {
  font-size: var(--font-size-body);
  color: rgba(255, 255, 255, 0.7);
}

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

  .hero-tasks {
    margin-top: 32px;
  }

  .tasks-title {
    font-size: var(--font-heading);
    margin-bottom: 24px;
  }

  .stats-container {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 48px;
  }

  .stat-card {
    padding: 24px 20px;
  }

  .stat-card .stat-value {
    font-size: var(--font-heading);
  }
}

/* Services Section */
.services {
  padding: 60px 32px;
  background: var(--bg);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(112, 198, 212, 0.1);
  color: var(--primary);
  border-radius: 20px;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 16px;
}

.section-title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  margin-bottom: 32px;
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: var(--font-size-body);
  color: var(--text-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* всегда 3 в ряд */
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
  /* Убираем тряску при прокрутке */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.service-related .services-grid{
  max-width: unset;
}

.service-card {
  padding: 0 !important;
  background: white;
  border: 1px solid var(--border);
  border-radius: 0;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;

  /* добавляем для выравнивания кнопки */
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-image {
  height: 200px;
  background-size: cover !important;
  background-position: center;
}

.service-card h3 {
  font-size: var(--font-size-h3);
  margin-bottom: 12px;
  font-weight: var(--font-weight-bold);
}

.service-card p,
.service-card ul {
  font-size: var(--font-size-body);
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.7;
}

.service-card ul {
  padding-left: 20px;
}

.service-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
  /* кнопка всегда прижата к низу */
}


.services-archive-list {
    padding: 64px 8vw 96px;
}

.services-archive-list__container,
.service-article__container,
.service-related__container {
  max-width: 1400px;
  margin: 0 auto;
}

.services-archive-list .services-grid,
.service-related .services-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.service-card:focus-visible {
  text-decoration: none;
}

.service-card:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

.service-article {
  padding: 72px 8vw;
}

/* .service-article__header {
  margin-bottom: 32px;
} */

.service-article__lead {
  text-align: justify;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-light);
}

.service-article__container .service-article__lead {
  display: none;
}

.service-article__content {
  max-width: 960px;
}

.service-related {
    padding: 0 8vw 96px;
}

/* Cases Section */
.cases {
  padding: 120px 32px;
  background: var(--bg-alt);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

.case-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.4s ease;
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.case-image {
  height: 200px;
  background: #70C6D4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-heading);
}

.case-card:nth-child(2) .case-image {
  background: #70C6D4;
}

.case-card:nth-child(3) .case-image {
  background: linear-gradient(135deg, var(--primary) 0%, rgba(112, 198, 212, 0.65) 100%);
}

.case-content {
  padding: 32px;
}

.case-card h3 {
  font-size: var(--font-heading);
  margin-bottom: 12px;
  font-weight: var(--font-weight-bold);
}

.case-card p {
  color: var(--text-light);
  line-height: 1.7;
}

.case-meta {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.case-tag {
  padding: 6px 12px;
  background: rgba(112, 198, 212, 0.1);
  color: var(--primary);
  border-radius: 8px;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
}

/* Why Us Section */
.why-us {
  padding: 120px 32px;
  background: var(--dark);
  color: white;
  position: relative;
  overflow: hidden;
}

.why-us::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(112, 198, 212, 0.1), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(112, 198, 212, 0.1), transparent 50%);
}

.why-us .section-header {
  position: relative;
  z-index: 1;
}

.why-us .section-badge {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.why-us .section-title {
  color: white;
}

.why-us .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

/* Stats в секции Why Us */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto 64px;
  position: relative;
  z-index: 1;
}

.stat-card {
  text-align: center;
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.stat-card .stat-value {
  font-size: var(--font-heading);
  font-weight: var(--font-weight-bold);
  background: #70C6D4;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 8px;
}

.stat-card .stat-value::after {
  content: '+';
}

.stat-card .stat-label {
  font-size: var(--font-size-body);
  color: rgba(255, 255, 255, 0.8);
  font-weight: var(--font-weight-medium);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.why-card {
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  backdrop-filter: blur(8px);
  transition: all 0.4s ease;
}

.why-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.why-number {
  font-size: var(--font-heading);
  font-weight: var(--font-weight-bold);
  background: #70C6D4;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
  font-weight: var(--font-weight-bold);
  color: #e9f7f8;
}

.why-card p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

/* Contact Section */
.contact {
  padding: 120px 32px;
  background: var(--bg-alt);
}

.contact-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-size: var(--font-heading);
  font-weight: var(--font-weight-bold);
  margin-bottom: 24px;
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: center;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-heading);
  flex-shrink: 0;
}

.contact-item-content h4 {
  font-size: var(--font-size-body);
  margin-bottom: 4px;
  font-weight: var(--font-weight-semibold);
}

.contact-item-content a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
  margin-bottom: 4px;
}

.contact-item-content a:hover {
  color: var(--primary);
}

.contact-item-content p {
  color: var(--text-light);
  margin: 0;
}

.contact-form-wrapper {
  background: white;
  padding: 48px;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-body);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 0 !important;
  font-family: inherit;
  font-size: var(--font-size-body);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(112, 198, 212, 0.1);
}

.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 40px !important;
}

.select-wrapper select::-ms-expand {
  display: none;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  pointer-events: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  justify-content: center;
  min-width: 100%;
}

/* Contact form strict style */
.contact .contact-form-wrapper {
  background: #ffffff;
  border-radius: 0;
  border: 1px solid var(--border);
  box-shadow: none;
}

.contact .form-group label {
  color: var(--text-light);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact .form-group input,
.contact .form-group textarea {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0;
  color: #0f172a;
  padding: 12px 14px;
}

.contact .form-group input::placeholder,
.contact .form-group textarea::placeholder {
  color: rgba(15, 23, 42, 0.45);
}

.contact .form-group input:focus,
.contact .form-group textarea:focus {
  border-color: #ef4444;
  box-shadow: none;
}


/* Popup Form */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-overlay.active {
  display: flex;
  opacity: 1;
}

.popup-form {
  background: white;
  padding: 48px;
  border-radius: 0;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(50px);
  transition: transform 0.3s ease;
}

.popup-overlay.active .popup-form {
  transform: translateY(0);
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: var(--font-heading);
  cursor: pointer;
  color: var(--text);
  transition: color 0.3s ease;
}

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

.popup-form h2 {
  font-size: var(--font-heading);
  font-weight: var(--font-weight-bold);
  margin-bottom: 24px;
}

.popup-form .form-group input[readonly] {
  background: var(--bg-alt);
  cursor: not-allowed;
}

.popup-overlay--exit-intent {
  z-index: 10010;
}

.exit-intent-modal {
  position: relative;
  width: min(460px, calc(100vw - 32px));
  padding: 40px 36px 36px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
}

.exit-intent-modal__close {
  top: 12px;
  right: 12px;
}

.exit-intent-modal__tag {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 12px;
  background: rgba(112, 198, 212, 0.12);
  color: #70C6D4;
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.exit-intent-modal__title {
  margin-bottom: 10px;
  color: #0f172a;
  font-size: clamp(28px, 3vw, 18px);
  line-height: 1.05;
}

.exit-intent-modal__text {
  margin-bottom: 20px;
  color: #475569;
}

.exit-intent-modal__form .btn {
  width: 100%;
  max-width: none;
}

.cookie-consent {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 10020;
  width: min(380px, calc(100vw - 32px));
  padding: 18px;
  background: #050505;
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent__text {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.35;
}

.cookie-consent__button {
  width: 100%;
  padding: 16px 20px;
  border: none;
  background: #ffffff;
  color: #111827;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
}

/* Яндекс.Карта */
.map-container {
  margin: 0;
  padding: 0;
  max-width: 100%;
  min-width: 100%;
}

#yandex-map {
  width: 100%;
  overflow: hidden;
  min-height: 400px;
}

#yandex-map>div {
  border-radius: 24px;
}

.yandex-map {
  position: relative;
  min-height: 400px;
  border-radius: 24px;
  overflow: hidden;
  background: #111;
}

.yandex-map__static,
.yandex-map__interactive,
.yandex-map__interactive > div,
.yandex-map__interactive ymaps {
  width: 100%;
  height: 100%;
}

.yandex-map__static {
  position: relative;
  min-height: 400px;
}

.yandex-map__static img {
  display: block;
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.yandex-map__hint {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(12, 12, 12, 0.68);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.yandex-map__interactive {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.yandex-map.is-loaded .yandex-map__interactive {
  opacity: 1;
  visibility: visible;
}

.yandex-map.is-loaded .yandex-map__hint {
  opacity: 0;
}

@media (max-width: 768px) {
  .popup-form {
    padding: 32px;
  }

  #yandex-map {
    height: 300px;
    min-height: 300px;
  }

  .yandex-map,
  .yandex-map__static {
    min-height: 300px;
  }

  .yandex-map__static img {
    height: 300px;
  }

  .yandex-map__hint {
    left: 16px;
    right: 16px;
    bottom: 16px;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* Footer */
.footer {
  background: var(--dark);
  color: white;
  padding: 64px 32px 32px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  margin-bottom: 48px;
}

.footer-section h3 {
  color: var(--accent);
  font-size: var(--font-size-body);
  margin-bottom: 20px;
  font-weight: var(--font-weight-bold);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  line-height: 2;
  transition: color 0.3s ease;
  display: block;
}

.footer-section a:hover {
  color: white;
}

.footer-phone {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-kerning: none;
}

.footer-requisites {
  display: grid;
  gap: 10px;
  margin: 0;
}

.footer-requisites__row {
  display: grid;
  gap: 2px;
}

.footer-requisites dt,
.footer-requisites dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.45;
}

.footer-requisites dt {
  color: rgba(255, 255, 255, 0.58);
}

.footer-requisites dd {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-kerning: none;
  overflow-wrap: anywhere;
}

.footer-trusted-company {
  display: inline-flex;
  width: min(100%, 220px);
  margin-top: 24px;
  border-radius: 6px;
  overflow: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-trusted-company img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-trusted-company:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

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

.document-links li a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.3s ease;
  min-width: 0;
}

.document-links li a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.document-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.document-text {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  display: block;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: anywhere;
  flex: 1;
  min-width: 0;
}

/* Privacy link styles */
.privacy-link {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: var(--font-size-body);
}

.privacy-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-bottom p {
  font-size: var(--font-size-body);
  color: var(--text-light);
}

.footer-bottom p a {
  margin-left: 8px;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: white;
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-body);
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--font-size-body);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 1024px) {
  .header-content {
    padding: 12px 20px;
    height: 76px;
  }

  .brand-subtitle {
    display: none;
  }

  .primary-nav,
  .nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  .header-location__trigger {
    min-width: 150px;
    padding: 9px 14px;
  }

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

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

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

/* Ограничение ширины заголовка только для мобильных устройств */
@media (max-width: 768px) {
  .hero h1 {
    max-width: 100% !important;
    /* Убедимся, что ширина ограничена на мобильных устройствах */
  }
}

/* На десктопе устанавливаем большую ширину для полного отображения текста */
@media (min-width: 769px) {
  .hero h1 {
    max-width: 1200px !important;
    /* Увеличиваем ширину для отображения полного текста */
  }
}

@media (max-width: 640px) {
  .header-content {
    padding: 10px 24px;
    height: 68px;
  }

  .header-actions {
    gap: 8px;
    margin-left: auto;
    display: flex;
    align-items: center;
  }

  .header-location__trigger {
    min-width: auto;
    padding: 6px 10px;
  }

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

  .header-location__eyebrow {
    font-size: 10px;
  }

  .header-location__popover {
    position: fixed;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: min(320px, calc(100vw - 32px));
    padding: 24px 18px 18px;
    z-index: 9999;
    box-shadow: 0 0 0 100vmax rgba(7, 10, 16, 0.55), 0 24px 64px rgba(15, 23, 42, 0.22);
  }

  .header-location__popover::before {
    display: none;
  }

  .header-location__buttons {
    flex-direction: column;
  }

  .header-location__button {
    width: 100%;
    max-width: none;
  }

  .brand-mark {
    height: 42px;
    max-width: 145px;
  }

  .hero {
    background-attachment: scroll;
    background-position: center center;
  }

  .hero h1 {
    font-size: var(--font-heading);
    min-height: 70px;
    max-width: 100% !important;
    overflow: hidden;
    /* Предотвращаем смещение при печати и выход за границы */
  }

  .hero-content {
    padding: 0 20px;
    max-width: 100%;
  }

  .hero-content .typing-text,
  .hero-content .hero-subtitle {
    text-align: center;
    min-width: 100% !important;
  }

  .services,
  .cases,
  .why-us,
  .contact {
    padding: 80px 20px;
  }

  .services-grid,
  .cases-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
  }

  .team-controls-wrap .team-controls {
    display: none;
  }

  .btn {
    width: 100%;
    justify-content: center !important;
  }

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

  .contact-form-wrapper {
    padding: 32px 24px;
  }

  .exit-intent-modal {
    padding: 32px 24px 24px;
  }

  .cookie-consent {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

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

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


/* Utility Classes */
.hidden {
  display: none;
}

.visible {
  display: block;
}

.pnr-block {
  margin-top: 60px;
  padding: 40px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 24px;
}

.pnr-block h2 {
  font-size: var(--font-heading);
  margin-bottom: 20px;
  color: var(--primary);
}

.pnr-block h3 {
  font-size: var(--font-heading);
  margin-top: 32px;
  margin-bottom: 12px;
}

.pnr-block p {
  line-height: 1.7;
  margin-bottom: 20px;
}

.pnr-block ul,
.pnr-block ol {
  padding-left: 20px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.pnr-block li {
  margin-bottom: 8px;
}
