:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #334155;
  --heading: #0f172a;
  --muted: #64748b;
  --line: #cbd5e1;
  --accent: #2563eb;
  --accent2: #0ea5e9;
  --danger: #ef4444;
  --success: #10b981;
  --success-bg: #ecfdf5;
  --success-border: rgba(16, 185, 129, 0.3);
  --shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-hover: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow2: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --ring: rgba(37, 99, 235, 0.4);
  --r: 8px;
  --max: 1140px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}
body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica Neue,
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}
h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

/* Видимый фокус (клавиатура, accessibility) */
:where(a, button, input, select, textarea, .btn):focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.ico {
  width: 18px;
  height: 18px;
  display: inline-flex;
  flex: 0 0 auto;
}
.ico.ico--btn {
  width: 18px;
  height: 18px;
}
.ico use {
  pointer-events: none;
}
.ico .a,
.ico .b {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.ico .a {
  stroke: var(--accent);
}
.ico .b {
  stroke: var(--accent2);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: #fff;
  color: #000;
  padding: 10px 12px;
  border-radius: 10px;
}
.skip:focus {
  left: 12px;
  z-index: 9999;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
}
.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: url("/assets/38fd4d6a-c887-47bb-b97e-716ab514024e.png") center/cover no-repeat;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand__name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--heading);
}
.brand__tag {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.nav a:hover {
  background: var(--bg);
  color: var(--heading);
}
.nav a.btn {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: #fff;
  color: var(--heading);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  font-size: 15px;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
}
.btn:active {
  transform: translateY(0) scale(0.98);
}
.btn--primary {
  background: var(--accent);
  color: #fff !important;
  border-color: transparent;
}
.btn--primary .ico .a,
.btn--primary .ico .b {
  stroke: #fff;
}
.btn--primary:hover {
  background: #1d4ed8;
  color: #fff !important;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--line);
}
.btn--ghost:hover {
  background: var(--bg);
  border-color: var(--muted);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3em;
  margin-right: 8px;
  transform: translateY(0.02em);
}

.main {
  padding-bottom: 56px;
}

/* Мобильное меню */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.98);
}
.nav-toggle__icon {
  width: 18px;
  height: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 999px;
  position: relative;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: inherit;
  border-radius: 999px;
}
.nav-toggle__icon::before {
  top: -6px;
}
.nav-toggle__icon::after {
  top: 6px;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 60;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-overlay[hidden] {
  display: none;
}
.nav-overlay.is-open {
  opacity: 1;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(320px, 92vw);
  background: rgba(255, 255, 255, 0.98);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-hover);
  z-index: 70;
  padding: 16px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-drawer[hidden] {
  display: none;
}
.nav-drawer.is-open {
  transform: translateX(0);
}
.nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.nav-drawer__title {
  font-weight: 900;
}
.nav-close {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  position: relative;
}
.nav-close::before,
.nav-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: rgba(11, 18, 32, 0.65);
  border-radius: 999px;
  transform-origin: center;
}
.nav-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.nav-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.nav-drawer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
}
.nav-drawer__links a,
.nav-drawer__links button {
  transform: translateX(10px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease, background 0.2s, color 0.2s;
}
.nav-drawer.is-open .nav-drawer__links a,
.nav-drawer.is-open .nav-drawer__links button {
  transform: translateX(0);
  opacity: 1;
}

/* Stagger menu items */
.nav-drawer.is-open .nav-drawer__links > *:nth-child(1) { transition-delay: 100ms; }
.nav-drawer.is-open .nav-drawer__links > *:nth-child(2) { transition-delay: 150ms; }
.nav-drawer.is-open .nav-drawer__links > *:nth-child(3) { transition-delay: 200ms; }
.nav-drawer.is-open .nav-drawer__links > *:nth-child(4) { transition-delay: 250ms; }
.nav-drawer.is-open .nav-drawer__links > *:nth-child(5) { transition-delay: 300ms; }

.nav-drawer__links a:not(.btn) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px; /* Touch target size */
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  background: #fff;
}
.nav-drawer__links a:not(.btn):hover {
  background: var(--bg);
  color: var(--heading);
  border-color: var(--line);
}
.nav-drawer__links .btn {
  width: 100%;
  justify-content: center;
  min-height: 48px;
}
.section {
  padding: 80px 0;
}
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.section__title {
  font-size: 32px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.03em;
}
.section__desc {
  margin: 0;
  color: var(--muted);
  max-width: 65ch;
}

.hero {
  padding: 40px 0 20px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.hero__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.hero__content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__kicker {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.1;
  margin: 0 0 20px;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.03em;
}
.hero p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0 0;
}
.badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.badge {
  background: var(--bg);
  padding: 6px 12px;
  border-radius: 4px;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero__media {
  height: 100%;
  min-height: 380px;
  background: url("/assets/837b9dfd-1711-4f02-9c2f-ce0e8b2ab03e.png") center/contain no-repeat;
  background-color: var(--bg);
  position: relative;
  border-left: 1px solid var(--line);
}

.grid {
  display: grid;
  gap: 24px;
}
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.card h3 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
}
.card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: var(--muted);
}
.card li {
  margin: 10px 0;
  padding-left: 20px;
  position: relative;
}
.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.kv {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kv__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.kv__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.kv__text {
  color: var(--muted);
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field--full {
  grid-column: 1 / -1;
}
label {
  font-weight: 600;
  font-size: 14px;
  color: var(--heading);
  margin-bottom: 2px;
}
input,
select,
textarea {
  font: inherit;
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--heading);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
  background: #fff;
}
.help {
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 0;
}
.error {
  color: var(--danger);
  font-weight: 500;
  font-size: 13px;
  margin-top: 4px;
}
.notice {
  border: 1px solid var(--success-border);
  border-radius: 8px;
  padding: 16px 18px;
  background: var(--success-bg);
  color: #065f46;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

/* Consent checkbox: стабильная раскладка на узких экранах */
.field[data-field="consent"] > label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.35;
}
.field[data-field="consent"] input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

/* Кнопка отправки всегда в ширину контейнера */
.form .btn {
  width: 100%;
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(247, 249, 252, 0.88);
}
.footer__row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 22px 0;
}
.footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer a:hover {
  color: var(--accent);
}

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

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

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-title {
  font-weight: 900;
}
.mt0 {
  margin-top: 0;
}
.mt18 {
  margin-top: 18px;
}
.fw900 {
  font-weight: 900;
}

@media (max-width: 767px) {
  .nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .header__row {
    justify-content: space-between;
    padding: 12px 0;
  }
  .brand__tag {
    display: none;
  }
  .section__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .section__desc {
    max-width: 100%;
    font-size: 14px;
  }
  .section__title {
    font-size: 22px;
  }
  .hero {
    padding: 16px 0 10px;
  }
  .hero h1 {
    font-size: 26px;
    line-height: 1.2;
  }
  .hero p {
    font-size: 14px;
  }
  .hero__kicker {
    font-size: 11px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero__media {
    order: -1;
  }
  .hero__content {
    padding: 20px 18px;
  }
  .hero__actions {
    flex-direction: column;
    gap: 8px;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .badges {
    flex-direction: column;
    gap: 8px;
  }
  .badge {
    width: 100%;
    font-size: 12px;
  }
  .grid--3 {
    grid-template-columns: 1fr;
  }
  .pair {
    grid-template-columns: 1fr;
  }
  .form {
    grid-template-columns: 1fr;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 40px 0;
  }
  .card {
    padding: 20px;
  }
  .card:hover {
    transform: none;
    box-shadow: var(--shadow);
  }
  .card h3 {
    font-size: 19px;
  }
  .btn {
    font-size: 14px;
    padding: 12px 14px;
    width: 100%;
    justify-content: center;
  }
  .footer__row {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .card-row {
    flex-direction: column;
    align-items: stretch;
  }
  .card-row .btn {
    width: 100%;
  }
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Очень маленькие экраны (320px и меньше) */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 24px;
  }
  .section__title {
    font-size: 20px;
  }
  .container {
    padding: 0 12px;
  }
  .hero__content {
    padding: 16px 14px;
  }
  .badge {
    font-size: 11px;
    padding: 7px 9px;
    padding-left: 26px;
  }
  .btn {
    font-size: 13px;
    padding: 10px 12px;
  }
}

@media (min-width: 768px) and (max-width: 920px) {
  .header__row {
    flex-direction: column;
    align-items: stretch;
  }
  .nav {
    flex-direction: column;
    gap: 8px;
  }
  .nav a {
    width: 100%;
    justify-content: center;
  }
  .section__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .section__desc {
    max-width: 100%;
  }
  .section__title {
    font-size: 24px;
  }
  .hero {
    padding: 20px 0 10px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__media {
    min-height: 320px;
  }
  .hero__content {
    padding: 20px;
  }
  .grid--3 {
    grid-template-columns: 1fr;
  }
  .pair {
    grid-template-columns: 1fr;
  }
  .form {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
  will-change: opacity, transform;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 150ms; }
.stagger-3 { transition-delay: 200ms; }


