:root {
  --page-bg: #F8F9FA;
  --surface: #FFFFFF;
  --title-primary: #001B3C;
  --title-accent: #003366;
  --body: #43474F;
  --muted: #737780;
  --navy: #001E40;
  --navy-hover: #002a5c;
  --cta-yellow: #FED65B;
  --cta-yellow-text: #745C00;
  --nav-active: #1E3A8A;
  --border: #E2E8F0;
  --search-bg: #E7E8E9;
  --radius-card: 16px;
  --radius-btn: 14px;
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 24px rgba(0, 30, 64, 0.08);
  --premium-gradient: linear-gradient(135deg, #001E40 0%, #003366 100%);
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--body);
  background: var(--page-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--title-primary);
}

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

a { color: var(--nav-active); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
}

.logo:hover { text-decoration: none; color: var(--title-accent); }

.logo img { width: 36px; height: 36px; }

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

.nav__links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--nav-active); text-decoration: none; }

.lang-switch {
  display: flex;
  background: var(--search-bg);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}

.lang-switch button {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
}

.lang-switch button.active {
  background: var(--navy);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn--primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 30, 64, 0.25);
}

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

.btn--accent {
  background: var(--cta-yellow);
  color: var(--cta-yellow-text);
  box-shadow: 0 4px 16px rgba(254, 214, 91, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--title-accent);
  border: 1.5px solid var(--title-accent);
}

.btn--outline:hover { background: rgba(0, 51, 102, 0.06); }

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

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--surface);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  z-index: 99;
  border-bottom: 1px solid var(--border);
}

.mobile-nav.open { display: block; }

.mobile-nav ul { list-style: none; }

.mobile-nav li { margin-bottom: 12px; }

.mobile-nav a {
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: calc(var(--header-h) + 48px) 0 64px;
}

.hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

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

.hero__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero__text {
  font-size: 1.0625rem;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 520px;
}

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

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

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--title-primary);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  background: var(--surface);
  color: var(--body);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--nav-active);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}

.form-group input.error { border-color: #EF4444; }

.hero__visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 260px;
  height: 480px;
  background: var(--premium-gradient);
  border-radius: 32px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.phone-mockup__screen {
  width: 100%;
  height: 100%;
  background: var(--page-bg);
  border-radius: 24px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.phone-mockup__screen--img {
  padding: 0;
  background: #0a0a0a;
}

.phone-mockup__screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 24px;
  display: block;
}

.phone-mockup__bar {
  height: 8px;
  width: 40%;
  background: var(--search-bg);
  border-radius: 4px;
  margin: 0 auto 8px;
}

.phone-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 14px;
  box-shadow: var(--shadow-card);
  border-left: 3px solid var(--cta-yellow);
}

.phone-card h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.phone-card p {
  font-size: 11px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge--high {
  background: #A3F69C;
  color: #005312;
}

.badge--limited {
  background: var(--cta-yellow);
  color: var(--cta-yellow-text);
}

/* Sections */
.section {
  padding: 64px 0;
}

.section--light { background: var(--surface); }

.section__header {
  text-align: center;
  margin-bottom: 40px;
}

.section__label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.section__header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section__sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

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

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

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

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

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

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(254, 214, 91, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
}

.banner {
  background: var(--premium-gradient);
  border-radius: 20px;
  padding: 32px;
  color: #fff;
  margin-top: 32px;
  text-align: center;
}

.banner h3 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.banner p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Steps */
.steps {
  display: grid;
  gap: 32px;
}

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

.step { text-align: center; }

.step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Trust */
.trust-item {
  text-align: center;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.trust-item strong {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.trust-item span {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Review */
.review {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--cta-yellow);
}

.review__text {
  font-size: 1.0625rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 16px;
}

.review__author {
  font-weight: 600;
  color: var(--title-primary);
}

/* FAQ */
.faq {
  max-width: 640px;
  margin: 0 auto;
}

.faq__item {
  background: var(--surface);
  border-radius: var(--radius-card);
  margin-bottom: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq__question {
  width: 100%;
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  background: none;
  border: none;
  color: var(--title-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.faq__question:hover { background: var(--page-bg); }

.faq__question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--nav-active);
  flex-shrink: 0;
  margin-left: 12px;
}

.faq__item.open .faq__question::after { content: '−'; }

.faq__answer {
  display: none;
  padding: 0 20px 16px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.faq__item.open .faq__answer { display: block; }

/* Download */
.download {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 700px) {
  .download { grid-template-columns: 1fr auto; }
}

.download h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.download p {
  color: var(--muted);
  margin-bottom: 20px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.2s;
}

.app-badge:hover {
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 24px;
}

.footer h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  text-decoration: none;
}

.footer a:hover { color: var(--cta-yellow); text-decoration: none; }

.footer__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

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

.footer ul { list-style: none; }

.footer li { margin-bottom: 8px; }

.footer__desc {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 12px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.footer__disclaimer {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 16px;
  line-height: 1.5;
}

/* Legal pages */
.legal-page {
  padding: calc(var(--header-h) + 40px) 0 80px;
}

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

.legal-page h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-page .updated {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--title-accent);
}

.legal-page h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 20px 0 8px;
}

.legal-page p,
.legal-page li {
  font-size: 15px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-page ul,
.legal-page ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--nav-active);
  margin-bottom: 24px;
  text-decoration: none;
}

.legal-page .back-link:hover { color: var(--title-accent); }

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

.legal-page th,
.legal-page td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}

.legal-page th {
  background: var(--page-bg);
  font-weight: 600;
  color: var(--title-primary);
}

.gov-search {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 20px;
  background: var(--surface);
}

.gov-links {
  display: grid;
  gap: 8px;
}

.gov-link {
  display: block;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  color: var(--body);
  text-decoration: none;
  transition: border-color 0.2s;
}

.gov-link:hover {
  border-color: var(--nav-active);
  text-decoration: none;
  color: var(--nav-active);
}

.gov-link small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
  word-break: break-all;
}

.delete-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  margin: 24px 0;
}

.delete-form .form-group { margin-bottom: 16px; }

.delete-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.delete-form input[type="email"],
.delete-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: inherit;
  font-size: 15px;
}

.delete-form textarea { min-height: 80px; resize: vertical; }

.delete-form .checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.delete-form .checkbox-row input {
  margin-top: 3px;
  flex-shrink: 0;
  width: auto;
  padding: 0;
  border: none;
  box-shadow: none;
}

.delete-form .checkbox-row label {
  margin-bottom: 0;
  flex: 1;
  font-weight: 400;
  line-height: 1.5;
}

.ru-summary {
  background: rgba(30, 58, 138, 0.06);
  border-left: 3px solid var(--nav-active);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 24px;
  font-size: 14px;
}

.ru-summary strong { display: block; margin-bottom: 6px; }

.header--legal .nav__links { display: none; }

@media (max-width: 900px) {
  .nav__links,
  .nav .lang-switch,
  .nav .btn--primary { display: none; }
  .burger { display: flex; }
}
