/* EduMaps.kg — Coming Soon. Palette from the main app: navy #185078, sky #00a0f0, leaf green. */
:root {
  --sky: #00a0f0;
  --sky-soft: #7fd6ff;
  --mint: #3ddc97;
  --brand-50: #eef6fc;
  --brand-100: #d8ebf8;
  --brand-600: #1d6296;
  --brand-700: #185078;
  --brand-900: #11344d;
  --brand-950: #0b2133;
  --leaf-600: #1f7450;
  --ink-200: #e1e5ec;
  --ink-500: #6b7589;
  --ink-700: #3a4457;
  --ink-900: #151b28;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink-900);
  background: var(--brand-950);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
p, h1, h2 { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header floats over the hero */
.header { position: absolute; inset: 0 0 auto 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; }
.brand img { display: block; height: 44px; width: auto; }
.lang {
  display: flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .16);
}
.lang button {
  border: 0; background: transparent; cursor: pointer; color: #e6f3fc;
  font: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .05em;
  padding: 6px 12px; border-radius: 999px;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--brand-700); }
.lang button:not([aria-pressed="true"]):hover { background: rgba(255, 255, 255, .16); }

/* Hero */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  overflow: hidden; color: #fff; isolation: isolate; text-align: center;
  padding: 120px 0 96px;
}
.stage { position: absolute; inset: 0; z-index: -1; }
.map, .dust { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .layer { transition: transform .35s ease-out; }
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 48%, rgba(7, 22, 36, .62), rgba(7, 22, 36, 0) 70%),
    linear-gradient(to bottom, rgba(7, 22, 36, .45), rgba(7, 22, 36, 0) 22%, rgba(7, 22, 36, 0) 78%, rgba(11, 33, 51, 1));
}

.hero-copy { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sky-soft);
  padding: 8px 16px; border-radius: 999px;
  background: rgba(0, 160, 240, .12); border: 1px solid rgba(127, 214, 255, .3);
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(61, 220, 151, .7); animation: blip 2s infinite; }
.eyebrow.dark { color: var(--brand-700); background: var(--brand-50); border-color: var(--brand-100); }

.title {
  font-size: clamp(3.2rem, 11vw, 8.5rem);
  line-height: .98; font-weight: 800; letter-spacing: -.03em; text-transform: uppercase;
  background: linear-gradient(100deg, #fff 10%, var(--sky-soft) 45%, var(--mint) 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 40px rgba(0, 160, 240, .35));
  animation: shine 7s ease-in-out infinite alternate;
  text-wrap: balance;
}
.lead { max-width: 640px; font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #d3e8f6; text-wrap: balance; }

.verbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.verbs li {
  padding: 8px 20px; border-radius: 999px; font-weight: 700; letter-spacing: .04em;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(6px);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 14px 30px; border-radius: 999px; color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .55);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn::after { content: "→"; transition: transform .2s; }
.btn:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 160, 240, .3); }
.btn:hover::after { transform: translateX(4px); }
.btn-solid { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.btn-solid:hover { background: var(--brand-600); }

.scroll {
  position: absolute; bottom: 28px; left: 50%; translate: -50% 0;
  width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .5);
}
.scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }

/* Map animation */
.trail { stroke-dasharray: 14 86; stroke-dashoffset: 0; opacity: .9; }
.t1 { animation: travel 7s linear infinite; }
.t2 { animation: travel 9s linear infinite -3s; }
.t3 { animation: travel 8s linear infinite -5s; }
.t4 { animation: travel 11s linear infinite -2s; }
.pin .drop { animation: bob 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.pin .q { fill: #fff; font: 800 30px/1 -apple-system, "Segoe UI", Arial, sans-serif; }
.pin .q.s { font-size: 22px; }
.pin .ring { transform-box: fill-box; transform-origin: center; animation: ping 3.2s ease-out infinite; }
.pin .halo { animation: breathe 3.6s ease-in-out infinite; }
.p2 .drop, .p2 .ring, .p2 .halo { animation-delay: -.8s; }
.p3 .drop, .p3 .ring, .p3 .halo { animation-delay: -1.6s; }
.p4 .drop, .p4 .ring, .p4 .halo { animation-delay: -2.2s; }
.p5 .drop, .p5 .ring, .p5 .halo { animation-delay: -1.1s; }
.p6 .drop, .p6 .ring, .p6 .halo { animation-delay: -2.7s; }

@keyframes travel { to { stroke-dashoffset: -100; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(4.2); opacity: 0; } }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes shine { to { background-position: 100% 0; } }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes blip { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }

/* Contact */
.contact { background: #fff; padding: clamp(56px, 9vw, 110px) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--brand-900); letter-spacing: -.02em; line-height: 1.15; margin: 18px 0 14px; }
.section-lead { color: var(--ink-700); font-size: 1.1rem; }
.direct { margin-top: 28px; display: grid; gap: 14px; }
.direct li { display: grid; gap: 2px; padding-left: 16px; border-left: 3px solid var(--sky); }
.direct span { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-500); }
.direct a { color: var(--brand-700); font-weight: 700; font-size: 1.1rem; text-decoration: none; overflow-wrap: anywhere; }
.direct a:hover { text-decoration: underline; }

.form {
  display: grid; gap: 18px; padding: clamp(20px, 4vw, 36px);
  background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 24px;
  box-shadow: 0 20px 50px rgba(17, 52, 77, .1);
}
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field > legend { font-weight: 700; font-size: .92rem; color: var(--brand-900); padding: 0; }
.field input[type="text"], .field textarea {
  width: 100%; font: inherit; color: var(--ink-900);
  padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--ink-200); background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(0, 160, 240, .18); }
.field .invalid { border-color: #d64545 !important; }
.roles { display: flex; flex-wrap: wrap; gap: 8px; }
.roles legend { width: 100%; margin-bottom: 6px; float: left; }
.roles label { cursor: pointer; }
.roles input { position: absolute; opacity: 0; pointer-events: none; }
.roles span {
  display: inline-block; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem;
  background: #fff; border: 1.5px solid var(--ink-200); color: var(--ink-700); transition: all .15s;
}
.roles input:checked + span { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.roles input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.form .btn-solid { justify-self: start; }
.form-note { font-size: .95rem; min-height: 1.4em; color: var(--leaf-600); font-weight: 600; }
.form-note.err { color: #c53030; }

/* Footer */
.footer { background: var(--brand-950); color: #b9d3e6; padding: 32px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; font-size: .9rem; }
.noscript { padding: 16px; text-align: center; background: #fff; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .brand img { height: 36px; }
}
@media (max-width: 520px) {
  .header-inner { min-height: 72px; }
  .lang button { padding: 6px 9px; }
  .form .btn-solid { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .dust { display: none; }
}

.school-cta { margin-top: 22px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
