/* Пілотний клас НУШ — світла весела тема з градієнтами */
:root {
  --bg-page: #fff8f3;
  --bg-card: #ffffff;
  --bg-soft: rgba(255, 255, 255, 0.72);
  --stroke: rgba(15, 23, 42, 0.08);
  --stroke-strong: rgba(14, 165, 233, 0.22);
  --text: #0f172a;
  --muted: #64748b;
  --accent: #0ea5e9;
  --accent-2: #d946ef;
  --accent-3: #22c55e;
  --accent-warm: #fb923c;
  --danger: #e11d48;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow: 0 18px 50px rgba(14, 116, 144, 0.12);
  --shadow-hover: 0 22px 55px rgba(14, 116, 144, 0.18);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 76px;
  --grad-hero: linear-gradient(135deg, #e0f2fe 0%, #fce7f3 45%, #fef3c7 100%);
  --grad-brand: linear-gradient(120deg, #0284c7 0%, #c026d3 40%, #ea580c 100%);
  --grad-btn: linear-gradient(135deg, #38bdf8, #a855f7);
  --fab-size: 58px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .page-sky__sun-disk,
  .page-sky__sun-rays,
  .page-sky__svg--cloud,
  .page-sky__cloud-face,
  .hero-svg__star,
  .hero-svg__book {
    animation: none !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

body.is-home .fab-home {
  pointer-events: none;
}

/* Декоративне небо */
.page-sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.page-sky__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #e0f2fe 0%, #fff7ed 35%, #fdf4ff 70%, #fffbeb 100%),
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(56, 189, 248, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(244, 114, 182, 0.25), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(250, 204, 21, 0.2), transparent 45%);
}

.page-sky__mesh {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(217, 70, 239, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(34, 197, 94, 0.08) 0%, transparent 40%);
}

.page-sky__svg {
  position: absolute;
}

.page-sky__svg--sun {
  z-index: 4;
  width: min(200px, 28vw);
  height: min(200px, 28vw);
  top: 4%;
  right: 5%;
  filter: drop-shadow(0 12px 28px rgba(251, 191, 36, 0.35));
}

.page-sky__sun-disk {
  transform-origin: 100px 100px;
  animation: sunPulse 6s ease-in-out infinite;
}

.page-sky__sun-rays {
  animation: sunSpin 48s linear infinite;
  transform-origin: 100px 100px;
}

@keyframes sunPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes sunSpin {
  to {
    transform: rotate(360deg);
  }
}

.page-sky__svg--cloud {
  z-index: 1;
  filter: drop-shadow(0 8px 20px rgba(148, 163, 184, 0.25));
}

.page-sky__cloud--1 {
  width: min(300px, 40vw);
  height: auto;
  top: 16%;
  left: -2%;
  max-width: 92vw;
  animation: cloudSmileDrift 18s ease-in-out infinite;
  transform-origin: 40% 60%;
}

.page-sky__cloud-face {
  transform-origin: 160px 58px;
  animation: cloudFaceWiggle 4s ease-in-out infinite;
}

.page-sky__cloud--2 {
  width: min(260px, 36vw);
  height: auto;
  bottom: 18%;
  right: -2%;
  animation: cloudDrift2 28s ease-in-out infinite;
}

@keyframes cloudSmileDrift {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  20% {
    transform: translate(-10px, -6px) rotate(-1.2deg);
  }
  45% {
    transform: translate(4px, 8px) rotate(0.8deg);
  }
  70% {
    transform: translate(-6px, 4px) rotate(-0.5deg);
  }
}

@keyframes cloudFaceWiggle {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.03);
  }
}

@keyframes cloudDrift2 {
  0%,
  100% {
    transform: translateX(0) translateY(0);
  }
  50% {
    transform: translateX(-14px) translateY(6px);
  }
}

.page-sky__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(14, 165, 233, 0.12) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  opacity: 0.7;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.92), rgba(255, 250, 245, 0.88));
  border-bottom: 1px solid var(--stroke);
  box-shadow: 0 4px 24px rgba(14, 116, 144, 0.06);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  min-height: var(--header-h);
}

.site-header__brand-row {
  display: flex;
  align-items: center;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
}

.header-home {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.9), rgba(252, 231, 243, 0.85));
  border: 1px solid var(--stroke-strong);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}

.header-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(14, 165, 233, 0.18);
}

.header-home:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.header-home__icon {
  display: flex;
  color: #0284c7;
}

.header-school {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.2;
  color: var(--text);
  background: linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(224, 242, 254, 0.88));
  border: 1px solid rgba(234, 88, 12, 0.22);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.header-school:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(234, 88, 12, 0.14);
}

.header-school:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.header-school__logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  text-decoration: none;
  color: inherit;
}

.brand__nush {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: 0.06em;
  line-height: 1;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.brand__nush::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #0ea5e9, #c026d3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: blur(14px);
  opacity: 0.35;
  z-index: -1;
}

.brand__sub {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--stroke);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.lang__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.lang__btn:hover {
  color: var(--text);
}

.lang__btn--active {
  background: linear-gradient(135deg, #e0f2fe, #fce7f3);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15);
}

.header-contact {
  display: inline-flex;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--stroke);
  color: var(--text);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.btn--ghost:hover {
  background: #fff;
  border-color: var(--stroke-strong);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.12);
}

.btn--primary {
  background: var(--grad-btn);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 14px 36px rgba(168, 85, 247, 0.35);
  filter: brightness(1.03);
}

.btn--home {
  font-size: 1rem;
  padding: 1rem 1.6rem;
  min-height: 52px;
  align-self: flex-start;
}

.btn--submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 1.05rem 1.5rem;
  font-size: 1.05rem;
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 28px rgba(34, 197, 94, 0.3);
}

.btn--submit:hover:not(:disabled) {
  filter: brightness(1.05);
}

.btn--submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.main {
  flex: 1;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 2rem 1.25rem 4rem;
  outline: none;
}

/* Плаваюча кнопка «На головну» */
.fab-home {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem 0.65rem 0.85rem;
  min-height: var(--fab-size);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: var(--grad-btn);
  border: none;
  box-shadow: 0 12px 36px rgba(14, 165, 233, 0.4), 0 4px 12px rgba(168, 85, 247, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.fab-home:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 44px rgba(14, 165, 233, 0.45);
}

.fab-home:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.fab-home[hidden] {
  display: none !important;
}

.fab-home__glow {
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: linear-gradient(135deg, #38bdf8, #e879f9);
  opacity: 0.5;
  filter: blur(12px);
  z-index: -1;
}

.fab-home__icon {
  display: flex;
  flex-shrink: 0;
}

.fab-home__text {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .fab-home__text {
    display: none;
  }
  .fab-home {
    width: var(--fab-size);
    height: var(--fab-size);
    min-height: var(--fab-size);
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}

.hero {
  padding: 1rem 0 2rem;
}

.hero__layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__layout {
    grid-template-columns: 1fr min(380px, 38%);
  }
}

.hero__content {
  max-width: 46rem;
}

.hero__art {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-svg {
  width: 100%;
  max-width: 360px;
  height: auto;
  filter: drop-shadow(0 16px 32px rgba(14, 165, 233, 0.2));
}

.hero-svg__book {
  animation: bookBob 5s ease-in-out infinite;
  transform-origin: 120px 140px;
}

@keyframes bookBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero-svg__star {
  animation: starTwinkle 3s ease-in-out infinite;
}

.hero-svg__star--2 {
  animation-delay: 0.6s;
}

.hero-svg__star--3 {
  animation-delay: 1.2s;
}

@keyframes starTwinkle {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.hero__eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.35em;
  font-size: 0.85rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero__lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero__hint {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.65), rgba(254, 243, 199, 0.5));
  border: 1px dashed var(--stroke-strong);
  font-size: 0.95rem;
  color: #475569;
}

.hero__actions {
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.animate-in {
  animation: fadeUp 0.55s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-block {
  margin-top: 0.5rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  background: linear-gradient(90deg, #0284c7, #c026d3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.topic-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .topic-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.topic-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  min-height: 148px;
  padding: 1.35rem 1.35rem 1.15rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.topic-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.topic-card__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(224, 242, 254, 0.95), rgba(252, 231, 243, 0.8));
  border: 1px solid rgba(14, 165, 233, 0.18);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.1);
}

.topic-card__icon .topic-card__svg {
  width: 36px;
  height: 36px;
  display: block;
}

.topic-card--security .topic-card__icon {
  background: linear-gradient(145deg, #dbeafe, #e0f2fe);
  border-color: rgba(2, 132, 199, 0.25);
}

.topic-card--databases .topic-card__icon {
  background: linear-gradient(145deg, #ede9fe, #ffedd5);
  border-color: rgba(234, 88, 12, 0.22);
}

.topic-card--algorithms .topic-card__icon {
  background: linear-gradient(145deg, #e0f2fe, #f0f9ff);
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.12);
}

.topic-card--text .topic-card__icon {
  background: linear-gradient(145deg, #dbeafe, #eff6ff);
  border-color: rgba(37, 99, 235, 0.28);
}

.topic-card--graphics3d .topic-card__icon {
  background: linear-gradient(145deg, #e0f2fe, #fef3c7);
  border-color: rgba(245, 158, 11, 0.3);
}

.topic-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, #c084fc, #fbbf24);
  opacity: 0.85;
}

.topic-card:hover {
  transform: translateY(-5px);
  border-color: var(--stroke-strong);
  box-shadow: var(--shadow-hover);
}

.topic-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.topic-card__title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--text);
}

.topic-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #0284c7;
}

.page-head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (min-width: 720px) {
  .page-head {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

.page-head__text {
  flex: 1;
}

.page-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-lead {
  margin: 0;
  font-size: 1.05rem;
}

.muted {
  color: var(--muted);
}

.section-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.subgroup__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #38bdf8, #e879f9) 1;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.link-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.link-row:hover {
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.45), rgba(255, 255, 255, 0.95));
  border-color: var(--stroke-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(14, 165, 233, 0.1);
}

.link-row:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.link-row__text {
  flex: 1;
  font-size: 0.98rem;
  line-height: 1.5;
}

.link-row__meta {
  flex-shrink: 0;
  font-size: 1.2rem;
  color: #0284c7;
}

.contact-form {
  max-width: 36rem;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.field label {
  font-weight: 600;
  font-size: 0.92rem;
  color: #334155;
}

.field input,
.field textarea {
  font: inherit;
  color: var(--text);
  background: #f8fafc;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
  background: #fff;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.form-status--ok {
  color: #15803d;
}

.form-status--error {
  color: var(--danger);
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), #fff7ed);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
  text-align: center;
}

.site-footer__author {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer__hint {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.site-footer__mail {
  margin: 0;
}

.site-footer__mail a {
  color: #0284c7;
  text-decoration: none;
  font-weight: 600;
}

.site-footer__mail a:hover {
  text-decoration: underline;
}

/* Перегляд матеріалу (Google Drive) */
.lesson-head {
  margin-bottom: 1.5rem;
}

.lesson-head__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.lesson-breadcrumb {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.lesson-title {
  font-size: clamp(1.25rem, 3.5vw, 1.85rem);
}

.lesson-actions {
  margin: 1rem 0 0;
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
  min-height: auto;
}

.embed-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.embed-tabs {
  display: flex;
  gap: 0;
  padding: 0.5rem 0.5rem 0;
  border-bottom: 1px solid var(--stroke);
  background: linear-gradient(180deg, #f0f9ff, #fdf4ff);
}

.embed-tabs__btn {
  flex: 1;
  max-width: 200px;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 12px 12px 0 0;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.embed-tabs__btn:hover {
  color: var(--text);
}

.embed-tabs__btn--active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -2px 12px rgba(14, 165, 233, 0.08);
}

.embed-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 420px;
  background: #e2e8f0;
}

.embed-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.embed-frame--hidden {
  display: none;
}

.embed-note {
  margin: 0;
  padding: 1rem 1.25rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.45;
  background: #fffbeb;
  color: #92400e;
  border-top: 1px solid #fde68a;
}

.embed-fallback.card-soft {
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, #fff, #f0f9ff);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .embed-frame-wrap {
    min-height: 55vh;
    aspect-ratio: unset;
  }
}

/* Сторінки-практики (hub): блоки Drive + YouTube */
.hub-page {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hub-callout {
  margin: 0;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.5;
  color: #0f172a;
  background: linear-gradient(135deg, #e0f2fe, #fce7f3);
  border: 1px solid var(--stroke-strong);
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.08);
}

.hub-block--note p {
  margin: 0;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.55), rgba(254, 243, 199, 0.45));
  border: 1px dashed var(--stroke-strong);
  color: #475569;
  font-size: 0.98rem;
  line-height: 1.5;
}

.hub-block__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: #0f172a;
}

.hub-block--file .hub-block__actions {
  margin: 0.75rem 0 0;
}

.hub-block__hint {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
}

.hub-youtube-wrap {
  min-height: 280px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

.hub-block--youtube .embed-frame-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hub-folder-link {
  font-weight: 600;
}

.hub-block--form {
  padding: 0.25rem 0;
}
