@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #12324A;
  --navy-2: #0D2638;
  --teal: #2A7F86;
  --teal-light: #9FD3D6;
  --gold: #D9A441;
  --ivory: #F6F3EC;
  --sand: #E9DCC4;
  --ink: #1B2A36;
  --muted: #4A5D6C;
  --line: #DDD5C6;
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
}

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

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: var(--ivory); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ivory); text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand-name { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.45rem; line-height: 1; }
.brand-sub { display: block; font-size: 0.68rem; letter-spacing: 0.36em; text-transform: uppercase; color: var(--teal-light); margin-top: 4px; }
.nav { display: flex; gap: 6px 22px; flex-wrap: wrap; align-items: center; font-size: 0.98rem; }
.nav a { color: var(--ivory); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--gold); }
.nav .lang { border: 1px solid rgba(246,243,236,.35); border-radius: 999px; padding: 4px 12px; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--ivory); padding: 72px 0 96px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--teal-light); margin: 0 0 18px; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.15; margin: 0; color: inherit; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.hero p.lead { font-size: 1.2rem; color: #D9E4EA; max-width: 34em; margin: 22px 0 32px; }
.hero-mark { justify-self: center; width: min(360px, 80%); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font-weight: 500; text-decoration: none; border: 2px solid transparent; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #E7B85E; color: var(--navy); }
.btn-ghost { border-color: rgba(246,243,236,.5); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--ivory); color: var(--ivory); }
.btn-navy { background: var(--navy); color: var(--ivory); }
.btn-navy:hover { background: var(--navy-2); color: var(--ivory); }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 56px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 40em; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); color: var(--navy); }
.section-head p { color: var(--muted); margin: 14px 0 0; font-size: 1.1rem; }

.app { background: var(--ivory); }
.app-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.app-intro .tagline { font-family: "Fraunces", Georgia, serif; font-size: 1.6rem; color: var(--teal); margin: 10px 0 18px; }
.app-intro p { color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 8px; background: #FFF; border: 1px solid var(--line); color: var(--navy); border-radius: 999px; padding: 6px 14px; font-size: 0.9rem; font-weight: 500; margin-top: 10px; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { background: #FFF; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card svg { width: 36px; height: 36px; margin-bottom: 14px; }
.card h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.values { background: #FFF; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.value { border-top: 3px solid var(--gold); padding-top: 18px; }
.value h3 { font-size: 1.35rem; color: var(--navy); margin-bottom: 8px; }
.value p { margin: 0; color: var(--muted); }

.kz { background: var(--sand); }
.kz .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.kz h2 { color: var(--navy); font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.kz p { color: #3A4B57; }
.social { display: flex; flex-direction: column; gap: 12px; }
.social a { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ivory); border: 1px solid #D3C4A6; border-radius: 14px; padding: 16px 20px; color: var(--navy); text-decoration: none; font-weight: 500; min-height: 56px; }
.social a:hover { background: #FFF; color: var(--navy); }
.social span.handle { color: var(--muted); font-weight: 400; }

.contact { background: var(--ivory); text-align: center; }
.contact .section-head { margin-left: auto; margin-right: auto; }
.mail { font-family: "Fraunces", Georgia, serif; font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--navy); text-decoration: none; word-break: break-word; }
.mail:hover { color: var(--teal); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C9D6DE; padding: 40px 0; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--ivory); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 88px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--navy); margin-bottom: 8px; }
.legal .meta { color: var(--muted); margin: 0 0 36px; }
.legal h2 { font-size: 1.45rem; color: var(--navy); margin: 40px 0 10px; }
.legal h3 { font-size: 1.12rem; color: var(--navy); margin: 24px 0 6px; }
.legal p, .legal li { color: #2D3E4B; }
.legal ul { padding-left: 1.2em; }
.legal address { font-style: normal; background: #FFF; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.todo { background: #FFF1C9; border: 1px dashed #C99A2E; border-radius: 6px; padding: 1px 6px; color: #6B4E07; }
.note { background: #FFF; border-left: 4px solid var(--teal); padding: 14px 18px; border-radius: 0 12px 12px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { padding: 48px 0 80px; }
  .hero .wrap, .app-grid, .kz .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-mark { order: -1; width: 180px; justify-self: start; }
  .value-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .nav { gap: 4px 16px; font-size: 0.92rem; }
}
