/* ==========================================================================
   Luminova Kids — доповнення до style.css (вересень 2026)
   1. Шрифти з власного сайту (без Google Fonts: IP відвідувачів не йде в Google)
   2. Контраст кольорів за WCAG 2.1 AA
   3. Нові блоки: фото на головній, відгуки, згода перед анкетою,
      правові сторінки, підвал з реквізитами
   ========================================================================== */

/* --- 1. Шрифти (SIL Open Font License, файли в assets/fonts) ------------- */
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/unbounded-cyrillic-400-normal.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/unbounded-latin-400-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/unbounded-cyrillic-600-normal.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/unbounded-latin-600-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/unbounded-cyrillic-700-normal.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/unbounded-latin-700-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(fonts/unbounded-cyrillic-800-normal.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(fonts/unbounded-latin-800-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/manrope-cyrillic-400-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-weight: 400; font-display: swap;
  src: url(fonts/manrope-latin-ext-400-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-weight: 400; font-display: swap;
  src: url(fonts/manrope-latin-400-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/manrope-cyrillic-500-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-weight: 500; font-display: swap;
  src: url(fonts/manrope-latin-ext-500-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-weight: 500; font-display: swap;
  src: url(fonts/manrope-latin-500-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/manrope-cyrillic-600-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-weight: 600; font-display: swap;
  src: url(fonts/manrope-latin-ext-600-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-weight: 600; font-display: swap;
  src: url(fonts/manrope-latin-600-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/manrope-cyrillic-700-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-weight: 700; font-display: swap;
  src: url(fonts/manrope-latin-ext-700-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-weight: 700; font-display: swap;
  src: url(fonts/manrope-latin-700-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(fonts/manrope-cyrillic-800-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-weight: 800; font-display: swap;
  src: url(fonts/manrope-latin-ext-800-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-weight: 800; font-display: swap;
  src: url(fonts/manrope-latin-800-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* --- 2. Контраст (AA: звичайний текст ≥ 4.5:1, великий ≥ 3:1) ----------- */
:root {
  --muted:      #5A5D7A;   /* було #6E718F: 4.4:1 на світлому фоні */
  --mint-deep:  #087A67;   /* було #0FA189: 3.2:1 з білим */
  --coral-deep: #B8391F;   /* було #E2492F: 4.0:1 з білим */
  --mint-ink:   #087A67;   /* фон під білим текстом замість світлого м'ятного */
  --coral-ink:  #B8391F;   /* фон під білим текстом замість світлого коралового */
}
.btn--coral,
.sheet-q__mark.is-wrong { background: var(--coral-ink); }
.btn.is-done,
.ex__done,
.lesson-text .w.is-reading,
.sheet-q__mark.is-right,
.tbtn.is-ok,
.mdot__tick { background: var(--mint-ink); }
/* номери частин і тем: колір теми світліший, текст темний */
.part__n, .tcard__n {
  color: var(--ink);
  background: var(--c);
  background: color-mix(in srgb, var(--c) 62%, #fff);
}
.part.is-done .part__n { background: var(--mint-ink); color: #fff; }

.chip__count { opacity: 1; color: var(--muted); }
.chip[aria-pressed='true'] .chip__count { color: var(--teal-deep); }
/* посилання в тексті відрізняються не лише кольором */
.crumbs a { text-decoration: underline; text-underline-offset: 2px; }

/* --- 3. Типографіка й дрібниці ------------------------------------------- */
.small { font-size: .9rem; }
.lede--center { margin-inline: auto; }
.text-link { font-weight: 700; color: var(--teal-deep); display: inline-flex; align-items: center; gap: 6px; }
.text-link svg { width: 18px; height: 18px; }
.grade-hero__note { margin-top: 1em; font-size: .94rem; color: var(--muted); }
.prog__num { font-family: var(--f-display); font-weight: 800; font-size: 2rem; line-height: 1; }
.figures--inline { margin-top: 18px; }
.figures--inline .figure__value { color: var(--teal-deep); }
.figures__src { margin-top: 14px; font-size: .84rem; color: var(--muted); text-align: center; }
.vac-apply { margin-top: 1.2em; }
.prose a, .foot-legal a, .consent a, .join-card__note a { text-underline-offset: 2px; }

/* --- 4. Фото на головній ------------------------------------------------- */
.hero-photo { margin: 0; position: relative; }
.hero-photo img {
  width: 100%; height: auto; display: block; aspect-ratio: 1000 / 750; object-fit: cover;
  border-radius: var(--r-xl); box-shadow: 0 24px 60px rgba(2, 78, 96, .18);
}
.hero-photo figcaption {
  margin-top: 10px; font-size: .78rem; color: var(--muted); text-align: right;
}
@media (max-width: 900px) { .hero-photo { max-width: 520px; margin-inline: auto; } }

/* --- 5. Відгуки ---------------------------------------------------------- */
.voices {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(16px, 2vw, 24px); align-items: stretch;
}
@media (max-width: 860px) { .voices { grid-template-columns: 1fr; } }
.voices__side { display: grid; gap: clamp(16px, 2vw, 24px); }
.voices__main { display: grid; gap: 18px; }
.quote {
  margin: 0; position: relative; height: 100%;
  background: var(--p-yellow); border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 48px); padding-top: clamp(56px, 6vw, 76px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.quote::before {
  content: '“'; position: absolute; top: 6px; left: clamp(22px, 3.5vw, 40px);
  font-family: var(--f-display); font-size: 5.5rem; line-height: 1; color: var(--brand-deep);
}
.quote__text { margin: 0; }
.quote__text p { font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.6; color: var(--ink); }
.quote__by { display: flex; flex-direction: column; gap: 2px; font-size: .92rem; color: var(--ink-2); }
.quote__by strong { font-family: var(--f-display); font-size: 1rem; color: var(--ink); }
.quote__note { font-size: .82rem; color: var(--muted); font-style: italic; }
.voice-card {
  border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px);
  border: 2px solid var(--line); background: var(--white);
}
.voice-card h3 { margin-bottom: .4em; }
.voice-card p { color: var(--ink-2); margin-bottom: 1em; }
.voice-card--share { background: var(--p-teal); border-color: transparent; }

/* --- 6. Згода перед анкетою ---------------------------------------------- */
.join-card__data { font-size: .9rem; color: var(--ink-2); margin: 0 0 1em; }
.consent {
  display: grid; gap: 12px; margin: 0 0 1em;
  padding: 16px 18px; border-radius: var(--r-md);
  background: var(--bg-soft); border: 2px solid var(--line);
}
.consent__row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.consent input[type='checkbox'] {
  width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--teal); cursor: pointer;
}
.consent label { font-size: .9rem; line-height: 1.5; cursor: pointer; }
.consent__msg { margin: 0; font-size: .88rem; font-weight: 700; color: var(--coral-ink); }
.consent__msg:empty { display: none; }
.consent .btn { justify-self: start; }
.consent .btn[aria-disabled='true'] { cursor: not-allowed; box-shadow: none; transform: none; }

/* --- 7. Правові сторінки ------------------------------------------------- */
.legal-date { font-size: .88rem; color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: var(--r-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--white); }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { background: var(--p-teal); font-family: var(--f-display); font-size: .8rem; font-weight: 700; }
.prose tbody th { font-weight: 700; min-width: 150px; }
.prose tbody tr:last-child > * { border-bottom: 0; }
.prose code { font-size: .88em; background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; }
.facts { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 10px 22px; margin: 1em 0 1.6em; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 10px; } }

/* --- 8. Quizlet і сторонні вправи — лише після натискання ---------------- */
.quizlet__frame--gate {
  display: grid; gap: 12px; justify-items: start; padding: 18px;
  border: 2px dashed var(--line); border-radius: var(--r-md); background: var(--bg-soft);
}
.quizlet__frame--gate iframe { width: 100%; min-height: 420px; border: 0; }
.modal__foot { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; }

/* --- 9. Підвал ----------------------------------------------------------- */
.foot-logo { display: inline-block; margin-bottom: 16px; }
.foot-logo img { width: 180px; height: auto; border-radius: 20px; }
.foot-contact { margin-top: 1em; }
.foot-h {
  font-family: var(--f-display); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.1em; font-weight: 700;
}
.foot-legal {
  display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 18px 0 20px;
  border-top: 1px solid var(--line); font-size: .88rem; font-weight: 600;
}
.foot-legal a { color: var(--ink-2); }

/* --- 10. Шапка: пункти меню не розриваються --------------------------------- */
.nav__link { white-space: nowrap; }
.nav__link--lang { font-weight: 800; }
.nav__stars[hidden] { display: none !important; }   /* лічильник з'являється лише після першої зірочки */
@media (min-width: 981px) and (max-width: 1240px) {
  .site-head__inner { gap: 12px; }
  .nav__list { gap: 0; }
  .nav__link { padding: 8px 9px; font-size: .84rem; }
  .logo__text small { display: none; }
  .nav__cta .btn--sm { padding: 10px 16px; }
}

/* --- 11. Зручні зони натискання на сенсорних екранах -------------------- */
@media (pointer: coarse) {
  .chip, .tile, .btn--sm { min-height: 44px; }
}
