:root {
  /* графитовая палитра: основной фон, чередующиеся разделы, карточки */
  --bg: #141518;
  --bg-alt: #1b1d21;
  --bg-deep: #0f1012;
  --surface: #22252a;
  --text: #f5f5f5;
  --text-muted: #b9bcc2;
  /* светлый раздел (этапы работы) */
  --light-bg: #e9eaec;
  --light-surface: #ffffff;
  --light-text: #17181b;
  --light-muted: #474b52;
  --light-border: #c9ccd1;
  --light-accent: #b02f00;
  --accent: #ff5c1f;
  --accent-dark: #d9490f;
  /* фон кнопок с белым текстом: тот же фирменный оттенок, темнее — контраст белого текста 4,68:1 (наведение — 5,63:1) */
  --accent-btn: #d73a00;
  --accent-btn-hover: #c03400;
  --border: #33363c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 12px;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 32px;
}

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

a {
  color: var(--accent);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background: var(--accent-btn-hover);
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn-primary:disabled:hover {
  background: var(--accent-btn);
}

.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
}

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

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}

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

.hero {
  padding: 80px 0;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(255, 92, 31, 0.12), transparent 60%);
}

.hero h1 {
  font-size: 2.6rem;
  max-width: 760px;
  margin: 0 auto 16px;
}

.hero-sub {
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.section {
  padding: 64px 0;
}

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

.trust-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.trust-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 92, 31, 0.12);
  color: var(--accent);
  margin-bottom: 16px;
}

.trust-icon svg {
  width: 28px;
  height: 28px;
}

.trust-card h3 {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1rem;
}

.faq {
  max-width: 700px;
  margin: 0 auto;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: var(--bg-alt);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  margin: 12px 0 0;
}

.faq-list {
  margin: 12px 0 0;
  padding-left: 20px;
}

.faq-list li {
  color: var(--text-muted);
  margin-bottom: 8px;
}

.faq-list li::marker {
  color: var(--accent);
}

.faq-list-numbered {
  list-style: decimal;
}

.form-sub {
  text-align: center;
  margin-bottom: 24px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lead-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text);
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  background: var(--bg-deep);
  border: 1px solid #5a5e66;
  min-height: 46px;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.lead-form button {
  align-self: flex-start;
}

.consent-label {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
}

.consent-label input {
  margin-top: 3px;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.consent-label span {
  font-size: 0.85rem;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
}

.form-status.success {
  color: #4caf50;
}

.form-status.error {
  color: #f44336;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.social-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

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

.footer-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.footer-tagline {
  margin: 0;
  font-size: 0.95rem;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-contact-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}

a.footer-contact-line:hover {
  color: var(--accent);
}

.footer-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 92, 31, 0.12);
  color: var(--accent);
  flex-shrink: 0;
}

.footer-icon-badge svg {
  width: 14px;
  height: 14px;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
}

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

  .lead-form {
    padding: 22px 18px;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
  cursor: pointer;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 12px;
  padding: 32px;
  max-width: 420px;
  text-align: center;
  cursor: default;
}

.modal-title {
  color: var(--text);
  font-weight: 600;
  margin: 0 0 12px;
}

.modal-sub {
  color: var(--text-muted);
  margin: 0;
  font-weight: 400;
}

/* ---------- шапка ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-deep);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 60px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.header-brand {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

/* оригинальный логотип (вариант без нижней строки), пропорции сохраняются: задаётся только высота */
.header-logo {
  display: block;
  height: 60px;
  width: auto;
}

@media (max-width: 600px) {
  .header-logo {
    height: 46px;
  }

  .header-inner {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .header-nav a {
    line-height: 1.35;
  }
}

/* узкие телефоны: шапка не выше прежней текстовой, чтобы первый экран каталога и карточки не сдвигался */
@media (max-width: 400px) {
  .header-logo {
    height: 40px;
  }
}

.header-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  color: var(--accent);
}

.header-phone {
  margin-left: auto;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  .header-inner {
    gap: 8px 16px;
  }

  .header-nav {
    order: 3;
    width: 100%;
    gap: 6px 14px;
  }
}

/* ---------- первый экран ---------- */
.hero-cta-note {
  margin: 12px 0 0;
  font-size: 0.9rem;
}

/* ---------- страницы направлений ---------- */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

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

.section-lead {
  max-width: 700px;
  margin: -16px auto 32px;
  text-align: center;
}

.text-block {
  max-width: 760px;
  margin: 0 auto;
}

.check-list,
.calc-list,
.steps-list {
  margin: 0;
  padding-left: 22px;
}

.check-list li,
.calc-list li,
.steps-list li {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.check-list li::marker,
.calc-list li::marker,
.steps-list li::marker {
  color: var(--accent);
  font-weight: 700;
}

.steps-list strong,
.check-list strong,
.calc-list strong {
  color: var(--text);
}

.note {
  font-size: 0.9rem;
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  margin: 20px 0 0;
}

.country-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ключевые условия на первом экране страницы направления */
.hero-facts {
  list-style: none;
  max-width: 620px;
  margin: -12px auto 28px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.hero-facts li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-facts strong {
  color: var(--text);
}

.terms p {
  color: var(--text-muted);
  margin: 0 0 14px;
}

.terms p:first-child {
  color: var(--text);
  font-size: 1.05rem;
}

/* ссылки на документы о персональных данных */
.form-legal {
  margin: 0;
  font-size: 0.85rem;
}

.form-legal a,
.consent-label a {
  color: var(--accent);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  font-size: 0.85rem;
}

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

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

/* страницы документов */
.legal-doc {
  max-width: 760px;
}

.legal-doc h1 {
  font-size: 1.9rem;
  margin-bottom: 8px;
}

.legal-doc h2 {
  font-size: 1.25rem;
  text-align: left;
  margin: 32px 0 12px;
}

.legal-doc p,
.legal-doc li {
  color: var(--text-muted);
  line-height: 1.65;
}

.legal-doc ul {
  padding-left: 22px;
}

.legal-meta {
  font-size: 0.9rem;
}

/* только предпросмотр: на опубликованные страницы не попадает (сборка --release не допускает нерешённых мест) */
.decision-needed {
  background: #5c1a1a;
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
}

.decision-banner {
  margin: 16px auto 0;
  padding: 12px 16px;
  border: 1px solid #f44336;
  border-radius: 8px;
  color: #fff;
}

/* ---------- общее ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1.05rem;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.section-form {
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 92, 31, 0.08), transparent 60%), var(--bg-alt);
}

.trust-card,
.faq details {
  background: var(--surface);
}

/* ---------- первый экран главной: две колонки ---------- */
.hero-home {
  text-align: left;
  padding: 64px 0 72px;
  background:
    radial-gradient(ellipse at 85% 10%, rgba(255, 92, 31, 0.16), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(255, 92, 31, 0.06), transparent 50%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 48px;
  align-items: center;
}

.hero-home h1 {
  margin: 0 0 18px;
  max-width: none;
  font-size: 2.8rem;
}

.hero-home .hero-sub {
  margin: 0 0 28px;
  max-width: 520px;
  color: #d6d8dc;
}

.hero-home .hero-actions {
  justify-content: flex-start;
}

.hero-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 24px 0 0;
  padding: 0;
}

.hero-points li {
  color: var(--text);
  font-size: 0.9rem;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.hero-photo {
  margin: 0;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero-photo figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 899px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-home {
    padding: 40px 0 48px;
  }
}

@media (max-width: 600px) {
  .hero-home h1 {
    font-size: 2rem;
  }

  .hero-home .hero-sub {
    font-size: 1.02rem;
    margin-bottom: 22px;
  }

  .hero-home .btn-lg {
    flex: 1 1 100%;
    text-align: center;
  }

  .hero-points {
    margin-top: 18px;
  }
}

/* ---------- направления ---------- */
.section-directions {
  padding: 0 0 64px;
  background: var(--bg);
}

.directions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.direction-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px 22px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}

.direction-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 3px;
  background: var(--accent);
}

.direction-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.direction-country {
  color: var(--text);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.direction-facts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.direction-facts span:last-child {
  color: var(--text);
  font-weight: 600;
}

.direction-more {
  margin-top: auto;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

@media (max-width: 760px) {
  .directions {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .direction-card {
    padding: 20px 20px 18px;
  }
}

/* ---------- этапы работы: светлый раздел ---------- */
.section-light {
  background: var(--light-bg);
  color: var(--light-text);
}

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

.section-light a {
  color: var(--light-accent);
}

.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: none;
}

/* вертикальная линия шагов: номер слева, содержание — карточкой справа */
.step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 18px;
  background: var(--light-surface);
  border: 1px solid var(--light-border);
  border-radius: 14px;
  padding: 18px 20px;
}

.step > :not(.step-num) {
  grid-column: 2;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 41px;
  bottom: -15px;
  width: 2px;
  height: 14px;
  background: var(--accent-btn);
}

.step-num {
  grid-column: 1;
  grid-row: 1 / span 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-btn);
  color: #fff;
  font-weight: 700;
  width: 40px;
  height: 40px;
}

.step-title {
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: var(--light-text);
}

.step-text {
  margin: 0 0 10px;
  font-size: 0.97rem;
}

.step-details summary {
  cursor: pointer;
  color: var(--light-accent);
  font-weight: 600;
  font-size: 0.92rem;
}

.step-stages {
  margin: 10px 0 0;
  padding-left: 18px;
}

.step-stages li {
  color: var(--light-muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.step-stages strong {
  color: var(--light-text);
}

.steps-note {
  text-align: center;
  margin: 28px 0 0;
}


@media (max-width: 600px) {
  .step {
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 14px;
    padding: 16px 16px;
  }

  .step-num {
    width: 34px;
    height: 34px;
  }

  .step:not(:last-child)::after {
    left: 32px;
  }
}
