/* Me&Uni website: the same look as the app (app/src/ui/theme.ts). Cream paper, deep navy, a little rust,
   Gelasio for headings and the phone's own font for everything else. No scripts, no cookies, no tracking,
   and every file comes from this site (no Google Fonts), so visitors' details go nowhere else. */

@font-face { font-family: 'Gelasio'; src: url('fonts/Gelasio-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gelasio'; src: url('fonts/Gelasio-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Gelasio'; src: url('fonts/Gelasio-Italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  color-scheme: light dark;
  --navy: #0D293A;
  --cream: #F4F1E8;
  --rust: #9B4819;
  --rust-light: #E39A6A;

  --bg: var(--cream);
  --surface: #FFFDF8;
  --text: #14232E;
  --muted: #56606A;
  --line: #E9E3D5;
  --tint: rgba(13, 41, 58, 0.07);
  --primary: var(--navy);
  --on-primary: #FBF8F1;
  --accent: var(--rust);
  --hero: var(--navy);
  --on-hero: #F4F1E8;
  --on-hero-muted: rgba(244, 241, 232, 0.8);
  --hero-accent: var(--rust-light);
  --link: #1D5274;
  --shadow: 0 6px 18px rgba(58, 46, 28, 0.08);

  --serif: 'Gelasio', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1820;
    --surface: #11232E;
    --text: #F2EDE3;
    --muted: #B3B8B6;
    --line: #1C3240;
    --tint: rgba(239, 231, 214, 0.08);
    --primary: #EFE7D6;
    --on-primary: var(--navy);
    --accent: var(--rust-light);
    --hero: #173547;
    --on-hero: #F2EDE3;
    --on-hero-muted: rgba(242, 237, 227, 0.78);
    --link: #A9CBE0;
    --shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 10; padding: 10px 16px; background: var(--primary); color: var(--on-primary); border-radius: 999px; text-decoration: none; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tile { width: 46px; height: 46px; border-radius: 14px; background: var(--tint); color: var(--primary); display: grid; place-items: center; flex: none; }

/* Top bar */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 28px; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.top nav { display: flex; gap: 22px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 10px 0; }
.top nav a:hover { color: var(--text); }
@media (max-width: 720px) { .top nav .more { display: none; } }

/* Hero */
.hero { padding: 72px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-size: clamp(42px, 7vw, 68px); margin-top: 14px; }
.slogan { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2.6vw, 25px); color: var(--accent); margin-top: 12px; }
.lead { font-size: 19px; color: var(--muted); margin-top: 20px; max-width: 34em; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; font-weight: 600; }
.pill .icon { width: 18px; height: 18px; color: var(--muted); }

.beta { position: relative; overflow: hidden; background: var(--hero); color: var(--on-hero); border-radius: 26px; padding: 34px 30px 30px; box-shadow: var(--shadow); }
.beta .amp { position: absolute; right: -10px; top: -46px; font-family: var(--serif); font-style: italic; font-size: 220px; line-height: 1; color: var(--on-hero); opacity: 0.08; pointer-events: none; }
.beta .badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); background: var(--hero-accent); border-radius: 999px; padding: 4px 12px; }
.beta h2 { font-size: 30px; margin-top: 16px; }
.beta p { color: var(--on-hero-muted); margin-top: 12px; }
.beta a.button { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; min-height: 48px; padding: 10px 22px; border-radius: 999px; background: var(--on-hero); color: var(--navy); font-weight: 600; text-decoration: none; }
.beta a.button:hover { opacity: 0.92; }
.beta a.button .icon { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .hero { padding: 48px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
}

/* Sections */
section { padding: 64px 0; }
@media (max-width: 860px) { section { padding: 36px 0; } }
.label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
section h2 { font-size: clamp(30px, 4.4vw, 40px); margin-top: 10px; }
.intro { color: var(--muted); margin-top: 12px; max-width: 38em; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 21px; margin-top: 18px; }
.card p { color: var(--muted); margin-top: 8px; font-size: 16px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 20px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-family: var(--serif); font-weight: 600; font-size: 18px; }
.steps h3 { font-size: 21px; margin-top: 16px; }
.steps p { color: var(--muted); margin-top: 6px; font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 8px; } }

.band { background: var(--hero); color: var(--on-hero); border-radius: 28px; padding: 48px 40px; }
.band .label { color: var(--hero-accent); }
.band .intro { color: var(--on-hero-muted); }
.band ul { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 36px; }
.band li { display: flex; gap: 14px; align-items: flex-start; }
.band li .tile { background: rgba(244, 241, 232, 0.1); color: var(--on-hero); }
.band li strong { display: block; font-weight: 600; }
.band li span { color: var(--on-hero-muted); font-size: 16px; }
.band .help { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(244, 241, 232, 0.16); color: var(--on-hero-muted); font-size: 16px; }
.band a { color: var(--on-hero); }
@media (max-width: 860px) { .band { padding: 36px 22px; border-radius: 24px; } .band ul { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.split .card { display: flex; flex-direction: column; }
.split .card h2 { font-size: 28px; margin-top: 18px; }
.split .card p { margin-top: 10px; }
.split .card .more { margin-top: auto; padding-top: 18px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.contacts { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.contacts li { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 16px; }
.contacts li b { font-weight: 600; min-width: 5.5em; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 24px; font-size: 14px; color: var(--muted); }
footer .wrap { display: grid; gap: 14px; }
footer .wordmark { font-size: 24px; }
footer .slogan { font-size: 18px; margin-top: -8px; }
footer p { max-width: 52em; }

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