/* Global Education Network: site styles */
@font-face { font-family: "Manrope"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-style: normal; font-display: swap; src: url("/assets/fonts/manrope-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  /* Change these to restyle the whole site */
  --paper: #F4F6FA;
  --surface: #FFFFFF;
  --ink: #0A1F44;
  --muted: #4B5669;
  --accent: #1D5BD6;
  --accent-hover: #164AB3;
  --accent-soft: #E8EFFD;
  --line: rgba(10, 31, 68, 0.12);
  --card-line: rgba(10, 31, 68, 0.10);
  --head: "Manrope", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --pad-x: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--muted); font-family: var(--body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; color: var(--ink); margin: 0; }
h1 { font-size: 54px; line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: 36px; line-height: 1.15; letter-spacing: -0.025em; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: 19px; line-height: 1.6; letter-spacing: -0.005em; }
.eyebrow { font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.small { font-size: 14px; line-height: 1.55; }
.stack > * + * { margin-top: 16px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Layout */
.section { padding: 96px var(--pad-x); }
.section.paper { background: var(--paper); }
.container { max-width: 1120px; margin: 0 auto; }
.heading { display: flex; flex-direction: column; gap: 14px; max-width: 680px; margin-bottom: 48px; }
.heading-row { display: flex; align-items: flex-end; gap: 64px; margin-bottom: 48px; }
.heading-row > .heading { flex: 1; margin-bottom: 0; max-width: none; }
.heading-row > p { flex: 1; }
.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
/* Five cards: three on the first row, two on the second */
.cols-5 { grid-template-columns: repeat(6, 1fr); }
.cols-5 > :nth-child(-n+3) { grid-column: span 2; }
.cols-5 > :nth-child(n+4) { grid-column: span 3; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 8px; font-family: var(--body); font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; border: 0; cursor: pointer; transition: background-color .2s, border-color .2s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid rgba(10, 31, 68, 0.22); padding: 12px 21px; }
.btn-secondary:hover { background: var(--paper); border-color: rgba(10, 31, 68, 0.34); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #DCE7FB; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.nav { max-width: 1200px; margin: 0 auto; height: 72px; padding: 0 var(--pad-x); display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 700; font-size: 17px; letter-spacing: -0.015em; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"]:not(.btn) { color: var(--accent); }
.menu-toggle { display: none; width: 44px; height: 44px; margin-right: -8px; background: none; border: 0; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, top .25s; }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.nav-open .menu-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .menu-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* Page header with photo */
.intro { padding: 64px var(--pad-x) 80px; }
.intro-row { display: flex; align-items: center; gap: 64px; }
.intro-text { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.intro-text .eyebrow { margin-bottom: -10px; }
.photo { border-radius: 20px; overflow: hidden; background: var(--paper); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.intro-row > .photo { flex: 1; height: 440px; }
.home .intro-row > .photo { flex: 0 0 440px; height: 480px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.facts h3 { margin-bottom: 6px; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--card-line); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.card .text { display: flex; flex-direction: column; gap: 8px; }
.card .more { margin-top: auto; padding-top: 4px; }
.icon { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.icon svg { width: 22px; height: 22px; }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 15px; text-decoration: none; }
.arrow-link svg { width: 18px; height: 18px; transition: transform .2s; }
.arrow-link:hover svg { transform: translateX(3px); }
.panel-card { background: var(--surface); border: 1px solid var(--card-line); border-radius: 14px; padding: 40px; display: flex; flex-direction: column; gap: 14px; }
.panel-card h2 { margin-bottom: 6px; }
.feature { display: flex; flex-direction: column; gap: 16px; }
.feature > svg { width: 26px; height: 26px; color: var(--accent); }
.feature .text { display: flex; flex-direction: column; gap: 8px; }

/* Call to action */
.cta-wrap { padding: 0 var(--pad-x) 96px; }
.cta { display: flex; align-items: center; gap: 40px; padding: 56px 64px; border-radius: 24px; background: linear-gradient(115deg, #0A1F44 0%, #14397A 100%); }
.cta .text { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.cta h2 { color: #fff; font-size: 32px; }
.cta p { color: rgba(255, 255, 255, 0.8); font-size: 17px; }

/* Contact */
.contact { background: var(--paper); padding: 72px var(--pad-x) 104px; }
.contact-row { display: flex; gap: 64px; align-items: flex-start; }
.contact-text { flex: 1; display: flex; flex-direction: column; gap: 20px; padding-top: 16px; }
.form-card { flex: 0 0 562px; background: var(--surface); border-radius: 16px; padding: 38px; box-shadow: 0 1px 2px rgba(10, 31, 68, 0.04), 0 12px 32px rgba(10, 31, 68, 0.08); }
.form { display: flex; flex-direction: column; gap: 22px; }
.field-row { display: flex; gap: 16px; }
.field-row > .field { flex: 1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { color: var(--ink); font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--surface); border: 1px solid rgba(10, 31, 68, 0.18); border-radius: 8px; padding: 12px 13px; transition: border-color .2s, box-shadow .2s; }
.field input, .field select { height: 48px; }
.field textarea { min-height: 150px; resize: vertical; }
.field ::placeholder { color: #8A93A3; }
.field select { appearance: none; padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234B5669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field select:invalid { color: #8A93A3; }
.field select option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29, 91, 214, 0.15); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.consent a { color: var(--accent); text-underline-offset: 3px; }
.form .btn { width: 100%; padding: 15px 22px; }
.form .btn[disabled] { opacity: .7; cursor: default; }
.hp { position: absolute; left: -9999px; }
.form-status { display: none; border-radius: 10px; padding: 16px 18px; font-size: 15px; }
.form-status.ok { display: block; background: #E8F5EE; color: #135C36; }
.form-status.err { display: block; background: #FDECEC; color: #8A1C1C; }

/* Thank-you page */
.thanks-wrap { background: var(--paper); padding: 112px var(--pad-x) 128px; }
.thanks { max-width: 760px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.thanks .buttons { justify-content: center; }
.icon-lg { width: 64px; height: 64px; border-radius: 16px; }
.icon-lg svg { width: 32px; height: 32px; }
@media (max-width: 809px) { .thanks-wrap { padding: 72px var(--pad-x) 88px; } }

/* Legal pages */
.legal-head { padding: 72px var(--pad-x) 0; }
.legal-head .container, .legal-body .container { max-width: 760px; }
.legal-head .container { display: flex; flex-direction: column; gap: 14px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.legal-body { padding: 40px var(--pad-x) 104px; }
.legal-body h2 { font-size: 22px; line-height: 1.3; letter-spacing: -0.015em; margin: 40px 0 14px; }
.legal-body p + p, .legal-body ul + p, .legal-body p + ul { margin-top: 14px; }
.legal-body ul { margin: 0; padding-left: 20px; }
.legal-body li + li { margin-top: 8px; }
.legal-body a { color: var(--accent); text-underline-offset: 3px; }
.legal-body a:hover { color: var(--ink); }

/* Footer */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 64px var(--pad-x) 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.footer-brand { display: flex; flex-direction: column; gap: 18px; max-width: 320px; }
.footer-cols { display: flex; gap: 72px; }
.footer-cols h2 { font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 18px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; min-width: 160px; }
.footer-cols a, .footer-cols button { color: var(--muted); text-decoration: none; font: inherit; font-size: 15px; background: none; border: 0; padding: 0; cursor: pointer; transition: color .2s; }
.footer-cols a:hover, .footer-cols button:hover, .footer-cols a[aria-current="page"] { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: 14px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }

/* Cookie banner */
.cookie { position: fixed; left: 24px; bottom: 24px; z-index: 60; width: 418px; max-width: calc(100vw - 32px); background: var(--surface); border-radius: 12px; padding: 22px 20px 20px; box-shadow: 0 10px 40px rgba(10, 31, 68, 0.16); font-size: 14px; line-height: 1.55; }
.cookie[hidden] { display: none; }
.cookie a { color: var(--accent); text-underline-offset: 3px; }
.cookie .row { display: flex; gap: 8px; margin-top: 18px; }
.cookie .btn { flex: 1; background: var(--ink); color: #fff; padding: 12px 16px; font-size: 14px; }
.cookie .btn:hover { background: #14397A; }

/* Tablet */
@media (max-width: 1199px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  .lead { font-size: 18px; }
  .intro-row { flex-direction: column; align-items: stretch; gap: 40px; }
  .intro-row > .photo, .home .intro-row > .photo { flex: none; height: 400px; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3, .cols-5 { grid-template-columns: repeat(2, 1fr); }
  .cols-5 > :nth-child(n) { grid-column: auto; }
  .cols-5 > :last-child { grid-column: 1 / -1; }
  .heading-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 48px; }
  .contact-row { flex-direction: column; gap: 40px; }
  .form-card { flex: none; width: 100%; }
}

/* Phone */
@media (max-width: 809px) {
  :root { --pad-x: 20px; }
  body { font-size: 16px; }
  h1 { font-size: 34px; line-height: 1.12; letter-spacing: -0.025em; }
  h2 { font-size: 27px; line-height: 1.18; letter-spacing: -0.02em; }
  .lead { font-size: 17px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .intro { padding-top: 40px; padding-bottom: 64px; }
  .intro-row > .photo, .home .intro-row > .photo { height: 300px; }
  .facts { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
  .cols-2, .cols-3, .cols-4, .cols-5 { grid-template-columns: 1fr; }
  .cols-5 > :last-child { grid-column: auto; }
  .heading { margin-bottom: 36px; }
  .panel-card { padding: 28px; }
  .cta-wrap { padding-bottom: 72px; }
  .cta { padding: 36px 28px; border-radius: 20px; }
  .cta h2 { font-size: 26px; }
  .nav { height: 68px; }
  .brand { font-size: 16px; }
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--surface); flex-direction: column; align-items: flex-start; gap: 22px; padding: 12px 20px 32px; border-bottom: 1px solid var(--line); }
  .nav-open .nav-links { display: flex; }
  .nav-links a:not(.btn) { font-size: 17px; }
  .contact { padding-top: 48px; padding-bottom: 72px; }
  .form-card { padding: 24px 20px; }
  .field-row { flex-direction: column; gap: 22px; }
  .legal-head { padding-top: 48px; }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-cols { gap: 40px; }
  .footer-cols ul { min-width: 0; }
  .footer-bottom { flex-direction: column; }
  .cookie { left: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
