/* ============================================================
   SWOIS — общая дизайн-система (поддержка + политика)
   Один источник правды для index.html и privacy.html
   ============================================================ */

:root {
  --blue:        #335CFF;
  --blue-dark:   #2447D6;
  --blue-soft:   #EAF0FF;
  --ink:         #0F1430;
  --body:        #4A4F63;
  --muted:       #8A90A3;
  --bg:          #F6F8FD;
  --card:        #FFFFFF;
  --border:      #E7ECF6;
  --shadow:      0 10px 30px -12px rgba(51, 92, 255, 0.18);
  --shadow-sm:   0 2px 10px -4px rgba(15, 20, 48, 0.10);
  --radius:      22px;
  --radius-sm:   14px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 800px; }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 248, 253, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 34px; height: 34px; border-radius: 9px; display: block; }
.brand .word {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* Navigation between pages */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: 6px;
}
.nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--ink); background: rgba(51, 92, 255, 0.06); }
.nav a.active { color: var(--blue); background: var(--blue-soft); }

/* Language toggle */
.lang {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.lang button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  transition: all .18s ease;
}
.lang button.active { background: var(--blue); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 84px 0 60px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(51,92,255,0.16) 0%, rgba(51,92,255,0) 62%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero--compact { padding: 64px 0 36px; }

.hero-logo {
  width: 88px; height: 88px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin: 0 auto 26px;
  display: block;
}
.hero--compact .hero-logo { width: 72px; height: 72px; border-radius: 18px; margin-bottom: 22px; }

.eyebrow {
  display: inline-block;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 22px;
}
h1 {
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.08;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero--compact h1 { font-size: clamp(30px, 5vw, 42px); }
h1 .accent { color: var(--blue); font-style: italic; }
.lead {
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--body);
  max-width: 580px;
  margin: 0 auto 34px;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 14px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  border: 1px solid transparent;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

.reassure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.reassure svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }

/* Copyable email (hero + footer) */
.hero-email { margin-top: 18px; font-size: 15px; color: var(--body); }
.email-link {
  font: inherit;
  font-weight: 700;
  color: var(--blue);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-bottom: 1px dashed rgba(51, 92, 255, 0.5);
  transition: color .15s ease, border-color .15s ease;
}
.email-link:hover { color: var(--blue-dark); border-bottom-color: var(--blue-dark); }
.email-link.copied { color: #16955A; border-bottom-color: transparent; }

/* ---------- Contact cards ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-bottom: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 27px; height: 27px; }
.card h3 { font-size: 21px; color: var(--ink); font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 15px; margin-bottom: 16px; }
.card .contact-value {
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 20px;
  word-break: break-word;
}
.card .btn { margin-top: auto; align-self: flex-start; }

/* Copyable email field (card) */
.copy-field {
  margin-top: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  background: var(--blue-soft);
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 14px 16px;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, background .15s ease;
}
.copy-field:hover { border-color: var(--blue); }
.copy-field .copy-label { overflow-wrap: anywhere; }
.copy-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.copy-action svg { width: 16px; height: 16px; }
.copy-field.copied { background: #E7F7EE; }
.copy-field.copied .copy-action { color: #16955A; }

/* ---------- About ---------- */
.about {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin: 28px 0 0;
  box-shadow: var(--shadow-sm);
}
.about h2 { font-size: 26px; color: var(--ink); font-weight: 800; margin-bottom: 14px; letter-spacing: -0.01em; }
.about p { font-size: 16px; max-width: 760px; }
.about p + p { margin-top: 14px; }

/* ---------- Legal document (privacy policy) ---------- */
.legal { padding: 8px 0 56px; }
.legal-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 48px;
  box-shadow: var(--shadow-sm);
}
.doc-head { margin-bottom: 8px; }
.doc-head h2 {
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.doc-meta { color: var(--muted); font-size: 14px; font-weight: 600; }

.legal section { margin-top: 34px; }
.legal h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.legal h4 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 22px 0 8px; }
.legal p { font-size: 16px; color: var(--body); margin-bottom: 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { font-size: 16px; color: var(--body); margin: 7px 0; }
.legal a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(51, 92, 255, 0.3);
  transition: border-color .15s ease;
}
.legal a:hover { border-bottom-color: var(--blue); }

.callout {
  background: var(--blue-soft);
  border: 1px solid #D7E0FF;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-top: 18px;
}
.callout p { margin: 4px 0; font-size: 15px; }
.callout-title {
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px !important;
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 48px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
footer .brand { justify-content: center; margin-bottom: 14px; }
footer .brand .word { font-size: 17px; }
footer a { color: var(--blue); text-decoration: none; font-weight: 600; }
footer a:hover { text-decoration: underline; }
.foot-line { margin-top: 6px; }
.foot-nav { margin-top: 12px; display: inline-flex; gap: 18px; }
.foot-nav a { font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 44px; }
  .about { padding: 28px 22px; }
  .legal-card { padding: 28px 22px; }
  .btn { width: 100%; justify-content: center; }
  .card .btn { width: 100%; }
  .nav a { padding: 8px 10px; font-size: 13px; }
  .brand .word { font-size: 18px; }
}

@media (max-width: 480px) {
  .header-inner { gap: 8px; }
  .nav { margin-right: 0; }
}
