/*
  Дистанційна школа Акцент — base.css
  Self-hosted fonts, design tokens (CSS variables), reset, typography, layout primitives, utilities.
  Loaded first on every page (inner pages + index.html). v3.0 — 2026 CSS split.
*/

/* ===== FONTS (self-hosted Manrope variable — see CLAUDE.md §4) ===== */
/* Variable weight axis 200–800. Subsets split by unicode-range so each page
   downloads only the glyphs it needs (Ukrainian = cyrillic + latin mostly). */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../uploads/fonts/manrope-cyrillic-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../uploads/fonts/manrope-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../uploads/fonts/manrope-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../uploads/fonts/manrope-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== VARIABLES ===== */
:root {
  --bg:          #f0ead6;   /* warm beige page background */
  --white:       #ffffff;
  --ink:         #11164a;   /* darkest navy — headings */
  --navy:        #1a237e;   /* primary navy */
  --orange:      #f7941d;   /* CTAs, accents */
  --orange-dk:   #e07d00;   /* hover */
  --text:        #3a3d47;   /* body text */
  --gray:        #5d6270;   /* muted text */
  --border:      #e7e0c8;   /* warm border */
  --card-border: #ece4cd;   /* card border */
  --cream:       #fff9e3;   /* alt section bg */
  --radius:      14px;
  --radius-card: 18px;
  --radius-btn:  13px;
  --shadow:      0 14px 34px -24px rgba(17,22,74,.5);
  --shadow-soft: 0 12px 30px -22px rgba(17,22,74,.5);
  --shadow-hover:0 22px 40px -22px rgba(17,22,74,.55);
  --max-w:       1180px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', -apple-system, 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dk); }

h1, h2, h3, h4 { color: var(--ink); font-weight: 800; line-height: 1.18; letter-spacing: -.01em; }
h1 { font-size: 2.1rem;  margin-bottom: 1rem; }
h2 { font-size: 1.7rem;  margin-bottom: .8rem; }
h3 { font-size: 1.2rem;  margin-bottom: .5rem; }
p  { margin-bottom: .9rem; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: .35rem; }

/* ===== LAYOUT PRIMITIVES ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}
.section { padding: 58px 0; }
.section-white { background: var(--cream); border-top: 1px solid #f0e6c2; border-bottom: 1px solid #f0e6c2; }
.section-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--ink);
  font-size: 1.9rem;
}

/* ===== UTILITIES ===== */
.text-orange { color: var(--orange); }
.text-navy   { color: var(--navy); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ===== RESPONSIVE (base typography) ===== */
@media (max-width: 700px) {
  .section { padding: 44px 0; }
  .section-title { font-size: 1.55rem; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
}

/* ===== FOCUS-VISIBLE (keyboard accessibility) ===== */
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
