:root {
  color-scheme: dark;
  --bg: #0a0d14;
  --bg-elev: #111827;
  --bg-card: #151f32;
  --text: #f5f7ff;
  --muted: #a8b0c2;
  --accent: #2f76ff;
  --accent-soft: rgba(47, 118, 255, 0.2);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 13, 20, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.logo img {
  width: 140px;
  height: auto;
}

.nav-menu {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-menu a {
  color: var(--muted);
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--text);
}

.nav-menu a:hover::after,
.nav-menu a:focus::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: flex;
  background: var(--bg-card);
  border-radius: 999px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.lang-toggle button {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 6px 12px;
  cursor: pointer;
  font-size: 0.85rem;
}

.lang-toggle button.active {
  background: var(--accent-soft);
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.hero {
  padding: 96px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  margin-bottom: 16px;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn.tertiary {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--text);
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 10%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.btn:active::after {
  opacity: 0.3;
}

.section {
  padding: 72px 0;
}

.section-title {
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 720px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid.cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.why-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

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

.why-grid .card {
  height: 100%;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(47, 118, 255, 0.5);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.hero-logo {
  width: 120px;
  height: auto;
  margin-bottom: 8px;
  align-self: flex-start;
}

.hero-logo-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  margin-bottom: 12px;
  display: inline-block;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(47, 118, 255, 0.18);
  display: grid;
  place-items: center;
  color: var(--text);
  margin-bottom: 12px;
}

.icon {
  width: 24px;
  height: 24px;
}

.card p {
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}

.steps {
  counter-reset: step;
}

.step-item {
  position: relative;
  padding-left: 44px;
}

.step-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
}

.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.partner-card {
  flex: 1 1 220px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.partner-card img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--bg-card);
  padding: 10px;
}

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

.price {
  font-size: 1.8rem;
  font-weight: 700;
}

.notice {
  background: rgba(47, 118, 255, 0.12);
  border: 1px solid rgba(47, 118, 255, 0.4);
  padding: 16px;
  border-radius: var(--radius);
  color: var(--muted);
}

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

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0f1626;
  color: var(--text);
  font: inherit;
}

input:focus,
textarea:focus,
button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 32px;
  color: var(--muted);
}

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

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

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

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.breadcrumbs {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-card {
  background: linear-gradient(135deg, rgba(47, 118, 255, 0.2), rgba(17, 24, 39, 0.9));
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

.trust-bar {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

.trust-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.logo-row img {
  width: 90px;
  height: auto;
  filter: brightness(1.1);
}

.logo-row img.logo-light {
  background: #ffffff;
  border-radius: 8px;
  padding: 6px 10px;
  filter: none;
}

.text-badge {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

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

.list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.8rem;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.copy-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.bac-section .bac-content {
  display: grid;
  gap: 20px;
}

.bac-steps {
  display: grid;
  gap: 16px;
  padding-left: 20px;
  color: var(--muted);
}

.bac-steps li {
  line-height: 1.7;
}

.bac-steps a {
  color: var(--text);
  text-decoration: underline;
}

.bac-subblock {
  margin-top: 16px;
  display: grid;
  gap: 16px;
}

.logo-panel {
  background: #fff;
  border-radius: 16px;
  padding: 12px 18px;
  width: fit-content;
}

.logo-panel img {
  width: 160px;
  height: auto;
}

.bac-final {
  font-weight: 600;
}

.iframe-wrap {
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: 16px;
}

.responsive-iframe {
  width: 100%;
  min-height: 720px;
  border: 0;
  background: #fff;
}

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

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

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 13, 20, 0.8);
}

.modal-content {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  max-width: min(90vw, 720px);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.modal-content img {
  margin-top: 16px;
  border-radius: 12px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.modal-open {
  overflow: hidden;
}

pre {
  background: #0f1626;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--muted);
  overflow-x: auto;
  white-space: pre-wrap;
}

@media (max-width: 900px) {
  .nav-menu {
    position: absolute;
    right: 16px;
    top: 72px;
    flex-direction: column;
    background: var(--bg-elev);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

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

  .responsive-iframe {
    min-height: 640px;
  }

}

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

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

  .footer-contacts-grid {
    grid-template-columns: 1fr;
  }
}

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

  * {
    transition: none !important;
    animation: none !important;
  }

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