:root {
  --lime: #d4ff00;
  --lime-dim: #a8cc00;
  --lime-glow: rgba(212, 255, 0, 0.12);
  --gray-light: #ebebeb;
  --gray-mid: #9a9a9a;
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1c1c1c;
  --border: #222222;
  --border-light: #2e2e2e;
  --text: #e0e0e0;
  --text-muted: #999;
  --black: #000;
  --font-display: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --header-h: 72px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a {
  color: var(--lime);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #fff;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

.container {
  width: min(1160px, 100% - 2rem);
  margin-inline: auto;
}

.container--legal {
  max-width: 800px;
}

/* ─── Scroll-reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.grid .reveal:nth-child(6) { transition-delay: 0.4s; }

/* ─── Header ─── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s;
  padding-top: env(safe-area-inset-top, 0);
}

.header.is-scrolled {
  background: rgba(10, 10, 10, 0.95);
}

.header__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 101;
  text-decoration: none;
  line-height: 0;
}

.header__brand img {
  display: block;
  width: auto;
  max-height: 34px;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1160px, 100% - 1.5rem);
  margin-inline: auto;
  min-height: var(--header-h);
}

@media (min-width: 960px) {
  .header__brand {
    margin-right: auto;
  }
}

/* Nav toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  z-index: 101;
  transition: background 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--lime);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

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

@media (min-width: 960px) {
  .nav-toggle { display: none; }
}

/* Nav */
.nav {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: var(--bg);
  padding: 2rem 1.5rem;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s var(--ease-out), visibility 0.35s;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav.is-open {
  transform: translateX(0);
  visibility: visible;
}

/* Мобильное меню: плотный фон, иначе сквозь панель виден hero/видео и текст «сливается» */
@media (max-width: 959px) {
  .header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #0a0a0a;
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .header.is-scrolled {
    background: #0a0a0a;
  }

  .nav {
    z-index: 199;
    isolation: isolate;
    background-color: #0f0f0f;
    background-image: linear-gradient(180deg, #121212 0%, #0a0a0a 100%);
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 48px rgba(0, 0, 0, 0.65);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    min-height: calc(100dvh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
  }
}

@media (min-width: 960px) {
  .nav {
    position: static;
    inset: auto;
    padding: 0;
    transform: none;
    visibility: visible;
    background: transparent;
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

@media (min-width: 960px) {
  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }
}

.nav__list a {
  display: block;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gray-light);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav__list a:hover {
  color: var(--lime);
  background: var(--lime-glow);
}

@media (max-width: 959px) {
  .nav__list a {
    color: #f0f0f0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 1rem;
    font-size: 1rem;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .nav__list a:hover,
  .nav__list a:focus-visible {
    color: var(--lime);
    background: rgba(212, 255, 0, 0.14);
    border-color: rgba(212, 255, 0, 0.25);
  }

  .nav__cta {
    border: 1px solid rgba(0, 0, 0, 0.25) !important;
  }
}

.nav__cta {
  margin-top: auto;
  background: var(--lime) !important;
  color: var(--black) !important;
  border-radius: var(--radius-pill) !important;
  animation: btnPulse 2.4s ease-in-out infinite;
}

.nav__cta:hover {
  animation: none;
  background: #e8ff4d !important;
}

@media (min-width: 960px) {
  .nav__cta { margin-top: 0; margin-left: 0.75rem; }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
}

.btn--lg {
  padding: 0.9rem 1.75rem;
  font-size: 0.95rem;
}

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

.btn--primary {
  background: var(--lime);
  color: var(--black);
  border-color: var(--lime);
}

.btn--primary:hover {
  background: #e8ff4d;
  border-color: #e8ff4d;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 255, 0, 0.25);
}

.btn--pulse {
  animation: btnPulse 2.4s ease-in-out infinite;
}

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 255, 0, 0.55); }
  50%      { box-shadow: 0 0 0 14px rgba(212, 255, 0, 0); }
}

.btn--pulse:hover {
  animation: none;
}

.btn--glass {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 clamp(4rem, 10vw, 6rem);
  overflow: hidden;
}

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

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__content--hidden,
.hero__scroll--hidden {
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
}

.hero__content--visible,
.hero__scroll--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 1.2s cubic-bezier(.16,1,.3,1), transform 1.2s cubic-bezier(.16,1,.3,1);
}

.hero__scroll--visible {
  transition-delay: 0.4s;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.55) 50%, rgba(10,10,10,0.92) 100%),
    linear-gradient(90deg, rgba(10,10,10,0.6) 0%, transparent 60%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero__eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}

.hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero__accent {
  color: var(--lime);
}

.hero__text {
  margin: 0 0 2rem;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 14px;
  position: relative;
}

.hero__scroll span::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: var(--lime);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.3; transform: translateY(14px); }
}

/* ─── Stats ─── */
.stats {
  position: relative;
  z-index: 3;
  margin-top: -2rem;
  padding-bottom: 1rem;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

@media (min-width: 640px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.75rem 1rem;
  background: var(--bg-card);
  text-align: center;
}

.stat__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--lime);
  letter-spacing: -0.02em;
}

.stat__label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ─── Sections ─── */
.section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

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

.section--legal {
  padding-bottom: 4rem;
}

.section__header {
  margin-bottom: 2.5rem;
}

.section__eyebrow {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
}

.section__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  letter-spacing: -0.025em;
  color: #fff;
}

.section__lead {
  margin: 0;
  color: var(--text-muted);
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.7;
}

/* ─── Service cards ─── */
.grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

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

@media (min-width: 1320px) {
  .grid--3 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 255, 0, 0.3);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(212, 255, 0, 0.08);
}

.card__img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.card:hover .card__img {
  transform: scale(1.06);
}

.card__body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.card__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
}

.card__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── PPF комплексы ─── */
.subsection {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.subsection__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  color: #fff;
  letter-spacing: -0.02em;
}

.subsection__lead {
  margin: 0 0 1.75rem;
  max-width: 640px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.ppf-packages-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .ppf-packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .ppf-packages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ppf-package-card {
  display: flex;
  flex-direction: column;
}

.ppf-package-card .card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ppf-package-card__tag {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  opacity: 0.9;
}

.ppf-package-card__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
}

.ppf-package-card .card__text {
  flex: 1;
  margin-bottom: 1rem;
}

.ppf-package-card__price {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--lime);
}

/* ─── Price table ─── */
.price-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.price-table th,
.price-table td {
  padding: 1rem 1.35rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.price-table th {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg-card);
  color: var(--lime);
}

.price-table tr {
  transition: background 0.2s;
}

.price-table tbody tr:hover {
  background: rgba(212, 255, 0, 0.04);
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table td:last-child {
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
}

.price-note {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ─── Contact / Address ─── */
.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; align-items: start; }
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  line-height: 1.6;
}

.contact-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lime-glow);
  border: 1px solid rgba(212,255,0,0.15);
  border-radius: var(--radius-sm);
  color: var(--lime);
}

.contact-card__icon svg {
  width: 20px;
  height: 20px;
}

.map-placeholder {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ─── Form layout ─── */
.form-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .form-layout { grid-template-columns: 1fr 1fr; align-items: start; }
}

.form-layout__info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-layout__photo {
  margin-top: 0.5rem;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ─── Forms ─── */
.form {
  display: flex;
  flex-direction: column;
}

.form__row {
  margin-bottom: 1rem;
}

.form__label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--gray-light);
}

.req {
  color: var(--lime);
}

.form__input {
  width: 100%;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form__input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form__input:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(212, 255, 0, 0.12);
}

.form__textarea {
  min-height: 120px;
  resize: vertical;
}

.form__consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 1rem 0 1.25rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.form__consent input {
  margin-top: 0.2rem;
  accent-color: var(--lime);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form__hint {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form__hint--ok { color: var(--lime); }
.form__hint--err { color: #ff6b6b; }

.form__trust {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

/* ─── Address ─── */
.address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.address-grid__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.address-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.address-card__heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lime);
  margin-bottom: 0.5rem;
}

.address-card p { color: rgba(255,255,255,0.78); line-height: 1.65; margin: 0.15rem 0; overflow-wrap: anywhere; }
.address-card a { color: #fff; text-decoration: none; }
.address-card a:hover { color: var(--lime); }

@media (max-width: 959px) {
  .address-grid { grid-template-columns: 1fr; }
  .address-grid__info { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .address-grid__info { grid-template-columns: 1fr; }
}

.address-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  min-height: 280px;
}

.address-map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

/* ─── About ─── */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

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

.about-grid__photo {
  border-radius: var(--radius);
  overflow: hidden;
}

.about-grid__photo img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.about-grid__photo:hover img {
  transform: scale(1.04);
}

.about-grid__text p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.checklist {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.checklist li {
  margin-bottom: 0.4rem;
}

.checklist li::marker {
  color: var(--lime);
}

/* ─── Careers perks ─── */
.careers-perks {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.careers-perks__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.careers-perks__icon {
  color: var(--lime);
  font-size: 0.85rem;
}

.careers-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.careers-header .careers-perks {
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 1.2rem;
}

/* ─── Vacancy cards ─── */
.vacancies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.vacancy-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.vacancy-card:hover {
  border-color: var(--lime);
  transform: translateY(-3px);
}
.vacancy-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bg);
  background: var(--lime);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}
.vacancy-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #fff;
}
.vacancy-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 0.75rem;
  flex: 1;
}
.vacancy-card__tags {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.vacancy-card__tags li {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(212, 255, 0, 0.1);
  color: var(--lime);
  border: 1px solid rgba(212, 255, 0, 0.2);
}
.vacancy-card__btn {
  align-self: flex-start;
}

/* ─── Vacancy modal ─── */
.vacancy-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.vacancy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}
.vacancy-modal__dialog {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.3s var(--ease-out);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.vacancy-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.2s;
}
.vacancy-modal__close:hover {
  color: #fff;
}
.vacancy-modal__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: #fff;
}
.vacancy-modal__title span {
  color: var(--lime);
}

/* ─── Legal ─── */
.legal {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.legal p {
  margin: 0 0 0.75rem;
}

.legal__update {
  margin-top: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.legal__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.legal__status {
  font-size: 0.85rem;
  color: var(--lime);
  margin: 0;
  transition: opacity 0.4s ease;
}

/* ─── Footer ─── */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--black);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 639px) {
  .footer__contacts { text-align: left; }
}

.footer__logo {
  max-height: 36px;
  width: auto;
  margin-bottom: 0.4rem;
  opacity: 0.7;
}

.footer__copy {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer__contacts {
  text-align: right;
}

.footer__contacts p {
  margin: 0.2rem 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.footer__contacts a {
  color: var(--text-muted);
}

.footer__contacts a:hover { color: var(--lime); }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer__nav a {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

/* ── Quiz ── */
.quiz-container { padding: 0; }
.quiz-header { margin-bottom: 1.5rem; }
.quiz-title { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 0.4rem; color: var(--lime); }
.quiz-subtitle { color: var(--gray-light); font-size: 0.95rem; margin: 0 0 1.25rem; }
.quiz-progress { display: flex; align-items: center; gap: 0.75rem; }
.quiz-progress__bar { flex: 1; height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.quiz-progress__fill { height: 100%; background: var(--lime); border-radius: 3px; transition: width 0.4s ease; }
.quiz-progress__text { font-size: 0.85rem; color: var(--gray-light); white-space: nowrap; }
.quiz-question__text { font-size: 1.15rem; font-weight: 600; color: #fff; margin-bottom: 1.25rem; }
.quiz-options { display: flex; flex-direction: column; gap: 0.65rem; }
.quiz-option {
  display: block; width: 100%; text-align: left; padding: 0.9rem 1.1rem;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; color: #fff; font-size: 0.95rem; cursor: pointer;
  transition: all 0.2s ease;
}
.quiz-option:hover:not(:disabled) { background: rgba(212,255,0,0.06); border-color: rgba(212,255,0,0.3); }
.quiz-option.is-selected { border-color: var(--lime); background: rgba(212,255,0,0.08); }
.quiz-option.is-correct { border-color: #4caf50; background: rgba(76,175,80,0.12); color: #4caf50; }
.quiz-option.is-wrong { border-color: #ff5252; background: rgba(255,82,82,0.08); color: #ff5252; }
.quiz-option:disabled { cursor: default; }
.quiz-result { text-align: center; padding: 2rem 0; }
.quiz-result__icon { font-size: 3rem; color: var(--lime); margin-bottom: 0.5rem; }
.quiz-result__score { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--lime); margin-bottom: 0.5rem; }
.quiz-result__text { color: var(--gray-light); font-size: 1rem; max-width: 360px; margin: 0 auto; }
.quiz-actions { margin-top: 1.5rem; }

/* ─── Anketa section labels ─── */
.quiz-section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lime);
  background: rgba(212, 255, 0, 0.1);
  border: 1px solid rgba(212, 255, 0, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

/* ─── Photo upload ─── */
.anketa-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}
.anketa-photo-preview {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.anketa-photo-preview:has(img) {
  border-style: solid;
  border-color: var(--lime);
}
.anketa-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.anketa-photo-placeholder {
  font-size: 2.5rem;
  opacity: 0.4;
}
.anketa-photo-btn {
  cursor: pointer;
}
.btn--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gray-light);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s var(--ease);
}
.btn--outline:hover {
  border-color: var(--lime);
  color: var(--lime);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ─── Utility ─── */
::selection {
  background: rgba(212, 255, 0, 0.3);
  color: #fff;
}

/* ─── Mobile & touch ─── */
@media (max-width: 959px) {
  :root {
    --header-h: 64px;
  }

  .container {
    width: min(1160px, 100% - 1.25rem);
  }

  .section {
    padding: clamp(3rem, 8vw, 4.5rem) 0;
  }

  .section__header {
    margin-bottom: 2rem;
  }

  .hero {
    min-height: 100svh;
    min-height: 100dvh;
    padding-bottom: clamp(3rem, 12vw, 5rem);
    align-items: flex-end;
  }

  .hero__video {
    object-position: center 35%;
  }

  .hero__title {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .hero__text {
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__scroll {
    display: none;
  }

  .card:hover {
    transform: none;
  }

  .card:active {
    transform: scale(0.99);
  }

  .form__input,
  .form__textarea {
    font-size: 16px;
  }

  .footer {
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0));
  }

  .footer__inner {
    gap: 1.75rem;
  }

  .footer__contacts {
    text-align: left;
  }

  .footer__nav {
    gap: 0.85rem 1.25rem;
  }

  .careers-header .careers-perks {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

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

  .vacancy-card__btn {
    align-self: stretch;
    width: 100%;
  }

  .vacancy-modal {
    padding: 0;
    align-items: stretch;
  }

  .vacancy-modal__dialog {
    max-width: none;
    width: 100%;
    max-height: none;
    min-height: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding:
      calc(1.35rem + env(safe-area-inset-top, 0))
      1.15rem
      calc(1.35rem + env(safe-area-inset-bottom, 0));
  }

  .address-map iframe {
    height: min(56vw, 280px);
    min-height: 220px;
  }
}

@media (max-width: 639px) {
  .header__brand img {
    max-height: 30px;
  }

  .price-table-wrap {
    overflow-x: visible;
    border: none;
    background: transparent;
  }

  .price-table thead {
    display: none;
  }

  .price-table,
  .price-table tbody {
    display: block;
  }

  .price-table tr {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.65rem;
    padding: 1rem 1.1rem;
  }

  .price-table tr:last-child {
    margin-bottom: 0;
  }

  .price-table td {
    display: block;
    padding: 0;
    border: none;
  }

  .price-table td:first-child {
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--text);
  }

  .price-table td:last-child {
    white-space: normal;
    font-size: 1.05rem;
    color: var(--lime);
  }

  .price-table tbody tr:hover {
    background: var(--bg-card);
  }

  .subsection {
    margin-top: 2.5rem;
    padding-top: 2rem;
  }

  .ppf-package-card__title {
    font-size: 1.05rem;
  }

  .quiz-option {
    min-height: 48px;
  }

  .footer__nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }
}

@media (max-width: 380px) {
  .header__inner {
    width: min(1160px, 100% - 1rem);
  }

  .container {
    width: min(1160px, 100% - 1rem);
  }

  .hero__title {
    font-size: 1.65rem;
  }

  .stat {
    padding: 1.25rem 0.75rem;
  }
}
