/* ===== DESIGN SYSTEM — test-nacionalnost.ru ===== */

:root {
  --blue: #1A6FDB;
  --blue-dark: #1458B0;
  --blue-light: #EBF3FF;
  --blue-mid: #2D7EF8;
  --gold: #C8960C;
  --gold-light: #FFF8E7;
  --text: #1C1C1C;
  --text-2: #4A4A4A;
  --text-3: #767676;
  --bg: #FFFFFF;
  --bg-2: #F4F7FC;
  --bg-3: #EBF3FF;
  --line: #E0E8F5;
  --line-strong: #C5D4E8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(26,111,219,0.10);
  --shadow-lg: 0 8px 48px rgba(26,111,219,0.16);
  --transition: 0.2s ease;
  --max-w: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */

.sh {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  height: 68px;
  display: flex;
  align-items: center;
}

.sh-inner {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
}

.sh-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 40px;
}

.sh-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sh-logo-mark svg { width: 22px; height: 22px; }

.sh-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.3px;
}

.sh-logo-text span { color: var(--text); font-weight: 400; }

.sh-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.sh-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: var(--transition);
  white-space: nowrap;
}

.sh-nav a:hover { background: var(--bg-2); color: var(--blue); }
.sh-nav a.active { color: var(--blue); }

/* Dropdown */
.sh-dropdown { position: relative; }

.sh-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: var(--transition);
}

.sh-dropdown-trigger:hover { background: var(--bg-2); color: var(--blue); }

.sh-dropdown-trigger svg { transition: transform 0.2s; }
.sh-dropdown:hover .sh-dropdown-trigger svg { transform: rotate(180deg); }

.sh-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-width: 260px;
  padding: 8px 0;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  margin-top: 12px;
}

.sh-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0; right: 0;
  height: 12px;
}

.sh-dropdown:hover .sh-dropdown-menu { display: block; }

.sh-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-2);
  transition: var(--transition);
}

.sh-dropdown-menu a:hover { background: var(--bg-2); color: var(--blue); }

.sh-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.sh-phone {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

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

.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: var(--shadow); }

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

.btn-outline:hover { background: var(--blue-light); }

.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 12px; }

/* ===== HERO ===== */

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(120deg, #0A2A5E 0%, #1A6FDB 60%, #3B9AF8 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.22;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 72px 0;
  max-width: 600px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.hero h1 span { color: #7EC8F8; }

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.80);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero {
  background: #fff;
  color: var(--blue);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-hero:hover { background: #EBF3FF; transform: translateY(-2px); }

.btn-hero-ghost {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.40);
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 12px;
}

.btn-hero-ghost:hover { background: rgba(255,255,255,0.25); }

.hero-image {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 52%;
  object-fit: cover;
  object-position: center top;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
}

.hero-stat-val {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}

/* ===== NOTICE BAR ===== */

.notice-bar {
  background: var(--gold-light);
  border-bottom: 1px solid #F0D98C;
  padding: 10px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #7A5C00;
}

.notice-bar a { color: var(--gold); text-decoration: underline; }

/* ===== SECTION ===== */

.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--bg-2); }

.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-3);
  margin-bottom: 48px;
}

.section-head { text-align: center; margin-bottom: 48px; }
.section-head .section-sub { margin-bottom: 0; }

/* ===== PRODUCT CARDS ===== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.product-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.product-card.featured {
  border-color: var(--blue);
  background: linear-gradient(160deg, #EBF3FF 0%, #fff 60%);
}

.product-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  letter-spacing: 0.3px;
}

.product-icon {
  width: 56px;
  height: 56px;
  background: var(--blue-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.product-icon svg { width: 28px; height: 28px; color: var(--blue); }

.product-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.product-desc {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.product-feat {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-2);
}

.product-feat::before {
  content: "";
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231A6FDB'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z'/%3E%3C/svg%3E") center/contain no-repeat;
  flex-shrink: 0;
  margin-top: 2px;
}

.product-footer {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-price-label { font-size: 12px; color: var(--text-3); }

.product-price {
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
}

.product-price small { font-size: 14px; font-weight: 500; color: var(--text-3); }

.product-term {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

/* ===== HOW IT WORKS ===== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.steps-grid::before {
  content: "";
  position: absolute;
  top: 32px;
  left: calc(12.5% + 32px);
  right: calc(12.5% + 32px);
  height: 2px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-light) 100%);
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 64px;
  height: 64px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(26,111,219,0.30);
  flex-shrink: 0;
}

.step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.step-desc { font-size: 13.5px; color: var(--text-3); line-height: 1.5; }

/* ===== WHY US ===== */

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.why-image {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-2);
}

.why-image img { width: 100%; height: 100%; object-fit: cover; }

.why-list { display: flex; flex-direction: column; gap: 24px; }

.why-item { display: flex; gap: 16px; align-items: flex-start; }

.why-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-icon svg { width: 24px; height: 24px; color: var(--blue); }

.why-item-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.why-item-desc { font-size: 13.5px; color: var(--text-3); line-height: 1.5; }

/* ===== RESULT DEMO ===== */

.result-demo {
  background: linear-gradient(135deg, #0A2A5E, #1A6FDB);
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

.result-demo-text {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-demo-text .section-title { color: #fff; margin-bottom: 16px; }
.result-demo-text p { color: rgba(255,255,255,0.75); font-size: 16px; line-height: 1.7; margin-bottom: 32px; }

.result-demo-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.result-demo-image img { border-radius: 16px; box-shadow: var(--shadow-lg); }

/* Ethnicity bar chart */
.ethnic-chart {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
}

.ethnic-chart-title { font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.ethnic-bar { margin-bottom: 14px; }
.ethnic-bar-label { display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,0.85); margin-bottom: 6px; }
.ethnic-bar-label span:last-child { font-weight: 700; }
.ethnic-bar-track { height: 8px; background: rgba(255,255,255,0.12); border-radius: 100px; overflow: hidden; }
.ethnic-bar-fill { height: 100%; background: linear-gradient(90deg, #7EC8F8, #2D7EF8); border-radius: 100px; }

.ethnic-total {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.ethnic-total strong { color: #7EC8F8; font-size: 15px; }

/* ===== TESTIMONIALS ===== */

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

.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.review-stars { color: #F5A623; font-size: 16px; margin-bottom: 12px; }
.review-text { font-size: 14px; color: var(--text-2); line-height: 1.65; margin-bottom: 16px; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
}
.review-name { font-size: 13px; font-weight: 600; color: var(--text); }
.review-city { font-size: 12px; color: var(--text-3); }

/* ===== CTA ===== */

.cta-section {
  background: var(--blue);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}

.cta-section .section-title { color: #fff; }
.cta-section p { color: rgba(255,255,255,0.80); font-size: 17px; margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ===== FOOTER ===== */

.footer {
  background: #0D1B2A;
  color: rgba(255,255,255,0.65);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo-text {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.footer-phone {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.footer-adr { font-size: 13px; }

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom a { color: rgba(255,255,255,0.45); transition: var(--transition); }
.footer-bottom a:hover { color: rgba(255,255,255,0.75); }

/* ===== PRICE PAGE ===== */

.price-section { padding: 80px 0; }

.price-panel {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  margin-bottom: 20px;
  overflow: hidden;
}

.price-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  cursor: pointer;
  gap: 16px;
}

.price-panel-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.price-panel-subtitle { font-size: 13.5px; color: var(--text-3); margin-top: 2px; }

.price-panel-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.price-panel-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
  white-space: nowrap;
}

.price-panel-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.price-panel.open .price-panel-toggle { background: var(--blue-light); }
.price-panel.open .price-panel-toggle svg { transform: rotate(180deg); color: var(--blue); }

.price-panel-body {
  display: none;
  border-top: 1px solid var(--line);
  padding: 24px 28px;
}

.price-panel.open .price-panel-body { display: block; }

.price-table { width: 100%; border-collapse: collapse; }
.price-table th {
  text-align: left;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid var(--line);
}

.price-table td {
  padding: 14px 0;
  font-size: 14px;
  color: var(--text-2);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.price-table tr:last-child td { border-bottom: none; }
.price-table td:last-child { text-align: right; font-weight: 700; color: var(--blue); white-space: nowrap; }

/* ===== PAGE HERO ===== */

.page-hero {
  background: linear-gradient(120deg, #0A2A5E, #1A6FDB);
  padding: 64px 0;
  color: #fff;
}

.page-hero h1 { font-size: clamp(28px, 3vw, 44px); font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.75); max-width: 560px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: rgba(255,255,255,0.9); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* ===== ACCORDION FAQ ===== */

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

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.faq-q svg { flex-shrink: 0; transition: transform 0.2s; color: var(--blue); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { display: none; padding-bottom: 20px; font-size: 14.5px; color: var(--text-2); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ===== ABOUT ===== */

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.about-image {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 5/4;
  background: var(--bg-2);
}

.about-image img { width: 100%; height: 100%; object-fit: cover; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.stat-val { font-size: 32px; font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 13px; color: var(--text-3); line-height: 1.4; }

/* ===== MOBILE ===== */

.mob-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

@media (max-width: 1024px) {
  .products-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .result-demo { grid-template-columns: 1fr; }
  .result-demo-image { padding: 0 32px 40px; }
}

@media (max-width: 768px) {
  .sh-nav, .sh-actions .sh-phone { display: none; }
  .mob-menu-btn { display: flex; }
  .hero-image { display: none; }
  .hero-content { max-width: 100%; }
  .products-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid::before { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
}

/* ===== ICONS SVG HELPER ===== */
svg.icon { display: inline-block; vertical-align: middle; }
