:root {
  --brand: #0b5ed7;
  --brand-dark: #083f91;
  --accent: #ff8a00;
  --text: #1f2933;
  --muted: #5f6b7a;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --border: #e3e8ef;
  --radius: 12px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

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

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-weight: 800; font-size: 20px; color: var(--brand-dark); letter-spacing: -.3px; }
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: 18px; cursor: pointer; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; border: 2px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #e67a00; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* Hero */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(120deg, rgba(8, 63, 145, .92), rgba(11, 94, 215, .78)), url("../img/slider/slide_1.jpg") center / cover no-repeat;
  padding: 96px 0 120px;
}
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.2; margin: 0 0 16px; max-width: 720px; }
.hero p { font-size: 18px; max-width: 620px; margin: 0 0 32px; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Stats */
.stats { margin-top: -56px; position: relative; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(15, 35, 70, .12);
}
.stat { padding: 28px 16px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat strong { display: block; font-size: clamp(26px, 4vw, 38px); color: var(--brand-dark); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 15px; }

/* Sections */
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-title { text-align: center; margin: 0 0 12px; font-size: clamp(26px, 3.5vw, 34px); }
.section-lead { text-align: center; color: var(--muted); max-width: 720px; margin: 0 auto 40px; }

.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--border); background: #fff; color: var(--text);
  padding: 10px 20px; border-radius: 999px; font-weight: 600; cursor: pointer; font-size: 15px;
  font-family: inherit;
}
.tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.tab-panel[hidden] { display: none; }
.tab-panel > p { text-align: center; color: var(--muted); max-width: 760px; margin: 0 auto 32px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px;
}
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(11, 94, 215, .1); color: var(--brand); font-size: 22px; margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.audience .card { padding: 32px; }
.audience .card h3 { font-size: 22px; }
.audience .card p { margin-bottom: 20px; }
.audience .btn-primary { margin-top: 4px; }

.partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.partner {
  min-width: 160px; padding: 18px 24px; border: 1px dashed var(--border); border-radius: var(--radius);
  color: var(--muted); text-align: center; background: #fff; font-weight: 600;
}

.cta { background: var(--brand-dark); color: #fff; text-align: center; }
.cta h2 { margin: 0 0 12px; font-size: clamp(24px, 3.5vw, 32px); }
.cta p { opacity: .9; margin: 0 0 28px; }
.store-badges { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff;
  padding: 10px 18px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .3);
}
.store-badge:hover { text-decoration: none; background: #111; }
.store-badge small { display: block; font-size: 11px; opacity: .8; line-height: 1; }
.store-badge b { display: block; font-size: 17px; line-height: 1.2; }

/* Footer */
.site-footer { background: #0d1726; color: #c3cad5; padding: 56px 0 24px; font-size: 15px; }
.site-footer a { color: #c3cad5; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .logo { color: #fff; display: inline-block; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Legal pages */
.legal-hero { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 48px 0 32px; }
.legal-hero h1 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 36px); }
.legal-hero p { margin: 0; color: var(--muted); }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 48px 16px 80px; }
.legal-nav { position: sticky; top: 88px; align-self: start; }
.legal-nav h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 12px; }
.legal-nav ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.legal-nav a { display: block; padding: 6px 0 6px 14px; color: var(--text); font-size: 15px; margin-left: -2px; border-left: 2px solid transparent; }
.legal-nav a[aria-current="page"] { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
.legal-nav a:hover { text-decoration: none; color: var(--brand); }
.legal-content { max-width: 760px; min-width: 0; }
.legal-content h2 { font-size: 21px; margin: 36px 0 10px; scroll-margin-top: 88px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 17px; margin: 20px 0 6px; }
.legal-content ul, .legal-content ol { padding-left: 22px; }
.legal-content li { margin-bottom: 6px; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 15px; }
.legal-content th, .legal-content td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal-content th { background: var(--bg-soft); }
.table-wrap { overflow-x: auto; }
.note { background: #fff8ec; border: 1px solid #ffd9a3; border-radius: var(--radius); padding: 16px 18px; margin: 20px 0; }
.contact-box { background: var(--bg-soft); border-radius: var(--radius); padding: 20px 22px; margin-top: 12px; }
.contact-box p { margin: 4px 0; }
.lang-switch { margin-top: 12px; font-size: 14px; }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .legal-nav { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 8px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 10px 0; }
  .nav-links .btn { text-align: center; margin-top: 8px; }
  .cards, .audience { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--border); }
  .hero { padding: 64px 0 104px; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Forms */
.form { display: grid; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 12px 0 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--text); background: #fff;
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid rgba(11, 94, 215, .35); border-color: var(--brand); }
.form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.form .check input { width: auto; margin-top: 5px; }
.form .invalid { border-color: #d64545; }
.form button { justify-self: start; cursor: pointer; font-family: inherit; }
.req { color: #d64545; }
.form-status { margin: 0; font-size: 15px; }
.form-status.error { color: #d64545; }
.form-status.ok { color: #1e8e3e; }
@media (max-width: 720px) { .form-row { grid-template-columns: 1fr; } .form { padding: 18px; } }
