:root {
  --bg: #0c0d10;
  --surface: #14161b;
  --surface-2: #1b1e25;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f2ef;
  --muted: #9ca0a9;
  --accent: #ff5a1f;
  --accent-2: #ffb020;
  --accent-soft: rgba(255, 90, 31, 0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

[hidden] {
  display: none !important;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  /* длинные немецкие и польские слова переносятся, а не вылезают за экран */
  hyphens: auto;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
}

h3 {
  font-size: 1.05rem;
  font-weight: 500;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  /* safe-area — отступ от «чёлки» и закруглений экрана на телефонах в альбомной ориентации */
  padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
}

.ico {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.accent {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 0.95rem/1 var(--font-body);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn .ico {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn:hover .ico {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(255, 90, 31, 0.7);
}

.btn--primary:hover {
  background: #ff6d38;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -12px rgba(255, 90, 31, 0.8);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn--sm {
  padding: 12px 20px;
  font-size: 0.875rem;
}

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

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background: rgba(12, 13, 16, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
}

.logo b {
  font-weight: 800;
  color: var(--accent);
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent);
}

.logo__mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
}

.logo__mark circle {
  fill: #fff;
  stroke: none;
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav a {
  position: relative;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover,
.nav a.is-current {
  color: var(--text);
}

.nav a:hover::after,
.nav a.is-current::after {
  transform: scaleX(1);
}

/* «Назад» — возврат на портфолио WEBWORKS */
.nav .nav__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -7px 0;
  padding: 6px 13px 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav .nav__back::after {
  display: none;
}

.nav .nav__back:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.nav__back .ico,
.footer__tools a .ico {
  width: 16px;
  height: 16px;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.nav__back:hover .ico,
.footer__tools a:hover .ico {
  transform: translateX(-3px);
}

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

.header__phone {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.lang {
  position: relative;
}

.lang__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: 700 0.85rem/1 var(--font-body);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.lang__toggle:hover,
.lang__toggle[aria-expanded="true"] {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.lang__toggle .ico {
  width: 18px;
  height: 18px;
}

.lang__toggle .lang__caret {
  width: 14px;
  height: 14px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.lang__toggle[aria-expanded="true"] .lang__caret {
  transform: rotate(180deg);
}

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 180px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.lang.is-open .lang__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.lang__menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: 600 0.92rem var(--font-body);
  text-align: left;
  cursor: pointer;
}

.lang__menu button b {
  width: 26px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.lang__menu button:hover,
.lang__menu button:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.lang__menu button[aria-checked="true"] {
  background: var(--accent-soft);
}

.lang__menu button[aria-checked="true"] b {
  color: var(--accent);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.burger span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 56px 56px;
}

.hero__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 780px;
  height: 780px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.28), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 28px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.hero__title {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.hero__lead {
  max-width: 540px;
  margin-top: 24px;
  font-size: 1.24rem;
  color: var(--muted);
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin: 48px 0 0;
  padding: 28px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.hero__facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.hero__facts span {
  font-size: 0.95rem;
  color: var(--muted);
}

.hero__visual {
  position: relative;
}

.gauge-card {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}

.gauge-wrap {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
}

.gauge {
  width: 100%;
}

.gauge__track,
.gauge__value {
  fill: none;
  stroke-width: 14;
  stroke-linecap: round;
  transform: rotate(135deg);
  transform-origin: 150px 150px;
}

.gauge__track {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-dasharray: 556 742;
}

.gauge__value {
  stroke-dasharray: 556 742;
  stroke-dashoffset: 556;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gauge__ticks line {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 2;
  stroke-linecap: round;
}

.gauge__ticks line.major {
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 3;
}

.gauge__ticks text {
  fill: var(--muted);
  font: 600 13px var(--font-body);
  text-anchor: middle;
  dominant-baseline: middle;
}

.gauge__needle {
  fill: #fff;
  transform-origin: 150px 150px;
  transform: rotate(-135deg);
  transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gauge__hub {
  fill: var(--surface-2);
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 2;
}

.gauge-card__readout {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  line-height: 1.1;
}

.gauge-card__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
}

.gauge-card__unit {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gauge-card__status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 36px;
}

.gauge-card__status > div {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
}

.gauge-card__status .label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.gauge-card__status strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
}

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.8);
  animation: float 6s ease-in-out infinite;
}

.chip .ico {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.chip--a {
  top: 18px;
  left: -36px;
}

.chip--b {
  bottom: 110px;
  right: -28px;
  animation-delay: -3s;
}

@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}

/* Бегущая строка марок */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 56px;
  animation: marquee 40s linear infinite;
}

.marquee__track span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.marquee__track span:hover {
  color: var(--text);
}

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

@keyframes marquee {
  to {
    transform: translateX(calc(-50% - 28px));
  }
}

/* ---------- Секции ---------- */
.section {
  padding: 120px 0;
}

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

.section__head {
  max-width: 680px;
  margin-bottom: 56px;
}

.section__sub {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.16rem;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
}

/* Услуги */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 90, 31, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 31, 0.4);
}

.service:hover::before {
  opacity: 1;
}

.service__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 26px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.service__icon .ico {
  width: 26px;
  height: 26px;
}

.service p {
  margin-top: 10px;
  font-size: 1.02rem;
  color: var(--muted);
  flex-grow: 1;
}

.service__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
  font-size: 0.95rem;
}

.service__meta span:first-child {
  font-weight: 700;
}

.service__meta span:last-child {
  color: var(--muted);
}

/* Почему мы */
.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 44px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
}

.stat {
  padding: 26px;
  background: var(--surface);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
}

.stat span {
  font-size: 0.95rem;
  color: var(--muted);
  display: block;
  overflow-wrap: break-word;
  hyphens: auto;
}

.features {
  display: grid;
  gap: 16px;
}

.feature {
  display: flex;
  gap: 20px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
  transition: border-color 0.3s ease;
}

.feature:hover {
  border-color: var(--line-strong);
}

.feature > .ico {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-top: 2px;
}

.feature p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Шаги */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.step {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), transparent);
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 54px;
  right: -18px;
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.step__num {
  display: block;
  margin-bottom: 40px;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}

.step p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Цены */
.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.tab {
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 700 0.9rem var(--font-body);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

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

.tab.is-active {
  background: var(--accent);
  color: #fff;
}

.price-panels {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}

.price-list {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-list.is-active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  animation: fadeIn 0.35s ease;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 1.05rem;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}

.price-list li:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.price-list li:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.price-list b {
  font-family: var(--font-display);
  font-weight: 500;
  white-space: nowrap;
  color: var(--accent-2);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* Отзывы */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.review {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.review__stars {
  display: flex;
  gap: 4px;
  color: var(--accent-2);
}

.review__stars .ico {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}

.review blockquote {
  flex-grow: 1;
  margin: 22px 0 28px;
  font-size: 1.08rem;
  line-height: 1.7;
}

.review figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review figcaption div {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.review figcaption span:not(.avatar) {
  font-size: 0.92rem;
  color: var(--muted);
}

.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
}

/* FAQ */
.faq-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

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

.faq details {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  transition: border-color 0.2s ease;
}

.faq details[open] {
  border-color: rgba(255, 90, 31, 0.35);
}

.faq summary {
  position: relative;
  padding: 22px 64px 22px 26px;
  font-size: 1.06rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 1.2rem;
  font-weight: 500;
  transition: transform 0.25s ease, background 0.25s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--accent);
}

.faq details p {
  padding: 0 26px 24px;
  font-size: 1.05rem;
  color: var(--muted);
}

/* Запись и контакты */
.booking {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: stretch;
}

.booking__form-wrap {
  padding: 48px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(600px circle at 0% 0%, rgba(255, 90, 31, 0.12), transparent 50%),
    var(--surface);
}

.form {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  grid-column: span 3;
}

.field--full {
  grid-column: 1 / -1;
}

.field select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* .form повышает специфичность, чтобы стрелку не сбросило общее правило background у полей */
.form .field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca0a9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  text-overflow: ellipsis;
  cursor: pointer;
}

.field select option {
  background: var(--surface-2);
  color: var(--text);
}

.field label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  /* не меньше 16px — иначе iPhone увеличивает страницу при фокусе на поле */
  font: 500 1rem var(--font-body);
  color-scheme: dark;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.field.has-error input {
  border-color: #f87171;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.12);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--muted);
  cursor: pointer;
}

.consent input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent.has-error {
  color: #f87171;
}

.consent.has-error input {
  outline: 2px solid #f87171;
  outline-offset: 2px;
}

.form .btn--block {
  margin-top: 4px;
}

.form-success {
  margin-top: 36px;
  padding: 48px 24px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.form-success__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
}

.form-success__icon .ico {
  width: 30px;
  height: 30px;
  stroke-width: 2.4;
}

.form-success p {
  margin: 10px 0 24px;
  color: var(--muted);
}

.contacts {
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.map {
  position: relative;
  display: block;
  height: 240px;
  flex-shrink: 0;
}

.map__cta {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(12, 13, 16, 0.85);
  border: 1px solid var(--line-strong);
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.map:hover .map__cta {
  background: var(--accent);
  border-color: var(--accent);
}

.map svg {
  width: 100%;
  height: 100%;
}

.map__bg {
  fill: #191c22;
}

.map__road {
  fill: none;
  stroke: #2a2e37;
  stroke-width: 10;
}

.map__road--big {
  stroke: #3a3325;
  stroke-width: 16;
}

.map__road--thin {
  stroke-width: 4;
}

.map__block {
  fill: #20242b;
}

.map__pin {
  position: absolute;
  left: 50%;
  top: 44%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 10px rgba(255, 90, 31, 0.2), 0 0 0 22px rgba(255, 90, 31, 0.08);
}

.contacts__list {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 32px;
  list-style: none;
}

.contacts__list li {
  display: flex;
  gap: 16px;
}

.contacts__list .ico {
  color: var(--accent);
  margin-top: 3px;
}

.contacts__list div {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.contacts__list span {
  font-size: 0.88rem;
  color: var(--muted);
}

.contacts__list a:hover {
  color: var(--accent);
}

.contacts__list .muted {
  font-weight: 500;
  color: var(--muted);
}

/* Подвал */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.97rem;
  color: var(--muted);
}

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

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

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: 700 0.85rem var(--font-body);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.pill-btn .ico {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.pill-btn:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

#soundToggle .sound-off,
#soundToggle[aria-pressed="false"] .sound-on {
  display: none;
}

#soundToggle[aria-pressed="false"] .sound-off {
  display: block;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  pointer-events: none;
}

.toast .ico {
  color: #16a34a;
  stroke-width: 2.6;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer__legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* Плавающая кнопка звонка (мобильные) */
.fab {
  position: fixed;
  right: calc(18px + env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 40;
  display: none;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(255, 90, 31, 0.8);
}

/* Появление при скролле */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .step::after {
    display: none;
  }
}

@media (max-width: 1240px) {
  .header__phone {
    display: none;
  }
}

/* Меню-бургер: телефоны и планшеты (полное меню — от 1100px) */
@media (max-width: 1099px) {
  :root {
    --header-h: 68px;
  }

  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 28px;
    /* телефон в альбомной ориентации: меню прокручивается, а не обрезается */
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(12, 13, 16, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .nav.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .nav a {
    padding: 16px 0;
    font-size: 1.1rem;
    color: var(--text);
    border-bottom: 1px solid var(--line);
  }

  .nav a::after {
    display: none;
  }

  .nav .nav__back {
    margin: 0;
    padding: 16px 0;
    gap: 10px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--accent);
  }

  .nav .nav__back:hover {
    background: transparent;
  }

  .header__actions {
    margin-left: auto;
  }
}

@media (max-width: 920px) {
  .hero__inner,
  .why,
  .faq-wrap,
  .booking {
    /* minmax(0, 1fr): колонка не расширяется под длинные слова (польский, немецкий) */
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__inner {
    gap: 48px;
  }

  .hero__visual {
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
  }

  .chip--a {
    left: -8px;
  }

  .chip--b {
    right: -8px;
  }

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

  .faq-wrap {
    gap: 0;
  }

  .fab {
    display: grid;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  }

  .section {
    padding: 80px 0;
  }

  .header .btn--sm {
    display: none;
  }

  .header__inner {
    gap: 12px;
  }

  .header__actions {
    gap: 8px;
  }

  .lang__toggle {
    padding: 0 10px;
  }

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

  .hero__facts {
    gap: 22px;
  }

  .hero__buttons .btn {
    flex: 1 1 100%;
  }

  .gauge-card {
    padding: 22px;
  }

  .stat {
    padding: 20px 16px;
  }

  .chip {
    display: none;
  }

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

  .price-list.is-active {
    grid-template-columns: 1fr;
  }

  .price-list li {
    padding: 18px 20px;
  }

  .price-list li:nth-child(odd) {
    border-right: 0;
  }

  .price-list li:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .tabs {
    display: flex;
    border-radius: 18px;
  }

  .tab {
    flex: 1 1 auto;
    padding: 10px 14px;
  }

  .booking__form-wrap {
    padding: 28px 20px;
  }

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

  .form > * {
    grid-column: 1 / -1;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 400px) {
  .lang__toggle .lang__caret {
    display: none;
  }

  .logo {
    font-size: 1rem;
  }

  .hero__title {
    font-size: 1.9rem;
  }

  .logo__mark {
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
