/* ==========================================================================
   НАЦСПРОТИВ — Основные стили
   Эталон: PNG-экспорты Figma (папка /фигма) + живой сайт
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Finlandica:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');
@import url('tokens.css');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-bg-black);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: var(--lh-tight); margin: 0; text-transform: uppercase; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* --- Раскладка --- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--container-pad); }
.section { padding-block: var(--section-gap); }
.section--tight { padding-block: clamp(32px,5vw,64px); }

/* --- Заголовки секций --- */
.section-title { font-size: var(--fs-h2); margin-bottom: .8em; }
.section-title--accent { color: var(--color-accent); }
.page-title { font-size: var(--fs-h1); margin-block: .4em .2em; }

/* --- Хлібні крихти --- */
.breadcrumbs { display: flex; gap: 8px; font-size: 13px; color: var(--color-text-dim);
  text-transform: lowercase; padding-block: 22px; }
.breadcrumbs a:hover { color: var(--color-accent); }
.breadcrumbs .sep { opacity: .5; }

/* --- Кнопки --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 15px 34px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  text-transform: uppercase; letter-spacing: .02em;
  border: none; border-radius: 4px; cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn--primary { background: var(--color-accent); color: var(--color-on-accent); }
.btn--primary:hover { background: var(--color-accent-hover); }
.btn--outline { background: transparent; color: var(--color-text); border: 1.5px solid var(--color-border); }
.btn--outline:hover { border-color: var(--color-accent); color: var(--color-accent); }
.btn--sm { padding: 11px 22px; font-size: 13px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #000; border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.site-logo { display: flex; align-items: center; gap: 12px; flex: none; }
.site-logo__mark { width: 52px; height: 52px; flex: none; }
.site-logo__text { font-family: var(--font-head); font-size: 12px; line-height: 1.2; max-width: 260px; text-transform: uppercase; font-weight: 600; }
.main-nav { display: flex; gap: 34px; }
.main-nav a { font-family: var(--font-head); font-size: 15px; text-transform: uppercase; font-weight: 600; letter-spacing: .01em; }
.main-nav a:hover, .main-nav a.is-active { color: var(--color-accent); }
.burger { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }

/* ==========================================================================
   Hero (стрічка з 4 фото + заголовок)
   ========================================================================== */
.hero-strip { position: relative; }
.hero-strip__row { display: grid; grid-template-columns: repeat(4, 1fr); height: clamp(280px, 34vw, 500px); }
.hero-strip__row img { width: 100%; height: 100%; object-fit: cover; }
.hero-strip__title { position: absolute; left: var(--container-pad); bottom: clamp(24px,4vw,56px);
  font-size: var(--fs-hero); z-index: 2; text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.hero-strip::after { content:''; position:absolute; inset:0; z-index:1;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 45%); }

/* ==========================================================================
   Місія / текст-секции
   ========================================================================== */
.lead { max-width: 72ch; color: var(--color-text-muted); }

/* Баннер курса (широкий, заголовок по центру снизу) */
.course-banner { position: relative; border-radius: 4px; overflow: hidden; min-height: clamp(240px,26vw,340px);
  display: flex; align-items: flex-end; justify-content: center; text-align: center; }
.course-banner__bg { position: absolute; inset: 0; z-index: 0; }
.course-banner__bg img { width: 100%; height: 100%; object-fit: cover; }
.course-banner::after { content:''; position:absolute; inset:0; z-index:1;
  background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.65)); }
.course-banner__title { position: relative; z-index: 2; font-size: var(--fs-h1); padding: 0 24px clamp(28px,4vw,48px); max-width: 20ch; }
.course-banner--danger::after { background: linear-gradient(180deg, rgba(120,0,0,.35), rgba(90,0,0,.7)); }
.course-banner__bar { background: var(--color-accent); color: var(--color-on-accent); margin-top: 2px;
  padding: 14px 24px; text-align: center; font-weight: 500; font-size: 14px; border-radius: 0 0 4px 4px; }

/* Блок курса на странице курси: баннер + описание + кнопка */
.course-block { margin-bottom: clamp(40px,6vw,72px); }
.course-block__desc { text-align: center; color: var(--color-text-muted); max-width: 70ch; margin: 24px auto 20px; }
.course-block__actions { text-align: center; }

/* ==========================================================================
   Команда / карточки
   ========================================================================== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card { background: #141414; border-radius: 6px; overflow: hidden; display: block; }
.team-card__photo { aspect-ratio: 3/4; background: #1e1e1e; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__body { padding: 18px; }
.team-card__name { font-size: var(--fs-h3); margin-bottom: 6px; }
.team-card__desc { color: var(--color-text-muted); font-size: 13px; line-height: 1.4; }
.team-card__arrow { margin-top: 14px; color: var(--color-accent); font-size: 20px; }

/* CTA-полоса */
.cta-strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-strip__title { font-size: var(--fs-h2); max-width: 16ch; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { border-top: 1px solid var(--color-border); }
.faq__item { border-bottom: 1px solid var(--color-border); }
.faq__q { width: 100%; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 24px 0; background: none; border: 0; color: #fff; text-align: left; cursor: pointer;
  font-family: var(--font-head); font-size: var(--fs-h3); text-transform: uppercase; font-weight: 600; }
.faq__num { color: var(--color-accent); margin-right: 18px; font-variant-numeric: tabular-nums; }
.faq__q-text { flex: 1; }
.faq__q::after { content: '+'; font-size: 26px; color: var(--color-accent); flex: none; transition: transform var(--transition); }
.faq__item.is-open .faq__q::after { content: '−'; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--transition); color: var(--color-text-muted); }
.faq__item.is-open .faq__a { max-height: 800px; }
.faq__a-inner { padding: 0 44px 24px; }

/* ==========================================================================
   Медіа / блог / проєкти — карточки
   ========================================================================== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.post-card { background: #141414; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; }
.post-card__img { aspect-ratio: 16/10; background: #1e1e1e; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__title { font-size: 17px; text-transform: none; }
.post-card__date { font-size: 12px; color: var(--color-text-dim); }
.post-card__excerpt { color: var(--color-text-muted); font-size: 14px; }
.post-card__more { margin-top: auto; color: var(--color-accent); font-weight: 600; text-transform: uppercase; font-size: 13px; }

/* Проєкти — крупные баннеры */
.proj-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.proj-card { position: relative; border-radius: 6px; overflow: hidden; min-height: 220px; display: flex; align-items: flex-end; padding: 28px; }
.proj-card__bg { position: absolute; inset: 0; z-index: 0; }
.proj-card__bg img { width: 100%; height: 100%; object-fit: cover; }
.proj-card::after { content:''; position:absolute; inset:0; z-index:1; background: linear-gradient(180deg,rgba(0,0,0,.1),rgba(0,0,0,.7)); }
.proj-card__body { position: relative; z-index: 2; }

/* Медіа (ЗМІ) — рядок: відео + текст */
.media-row { display: grid; grid-template-columns: 420px 1fr; gap: 32px; align-items: start; margin-bottom: 40px; }
.media-row__video { position: relative; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; background: #1e1e1e; }
.media-row__video img { width: 100%; height: 100%; object-fit: cover; }
.media-row__video::after { content: '▶'; position: absolute; inset: 0; margin: auto; width: 64px; height: 64px;
  background: #f00; color: #fff; border-radius: 12px; display: grid; place-items: center; font-size: 24px; }
.media-row__title { font-size: var(--fs-h3); text-transform: none; margin-bottom: 14px; }
.media-row__excerpt { color: var(--color-text-muted); margin-top: 14px; }

/* Відгуки — колаж */
.reviews-lead { background: var(--color-accent); color: #000; border-radius: 6px; padding: clamp(28px,4vw,48px);
  font-family: var(--font-head); font-size: var(--fs-h3); text-transform: none; margin-bottom: 32px; }
.reviews-masonry { columns: 3; column-gap: 20px; }
.review { break-inside: avoid; margin-bottom: 20px; border-radius: 6px; overflow: hidden; }
.review--text { background: #141414; padding: 24px; }
.review--accent { background: var(--color-accent); color: #000; padding: 24px; }
.review--accent .review__author { color: #000; }
.review__text { font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
.review__author { font-family: var(--font-head); font-weight: 700; color: var(--color-accent); font-size: 14px; }
.review--photo img { width: 100%; display: block; }
@media (max-width: 900px) { .reviews-masonry { columns: 2; } .media-row { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .reviews-masonry { columns: 1; } }

/* ==========================================================================
   Інструктор (single)
   ========================================================================== */
.instructor { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,72px); align-items: start; }
.instructor__photo { border-radius: 8px; overflow: hidden; aspect-ratio: 1/1; background: #1e1e1e; }
.instructor__photo img { width: 100%; height: 100%; object-fit: cover; }
.instructor__name { font-size: var(--fs-h1); margin-bottom: .5em; }
.instructor__bio { color: var(--color-text-muted); }
.instructor__bio p { margin-bottom: 1.1em; }
.gallery-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin-top: clamp(32px,5vw,64px); }
.gallery-3 img { width: 100%; aspect-ratio: 1/1.05; object-fit: cover; }

/* ==========================================================================
   Стаття (single post)
   ========================================================================== */
.article-hero { width: 100%; height: clamp(300px,40vw,560px); object-fit: cover; }
.article__title { font-size: var(--fs-h1); max-width: 22ch; margin-block: clamp(28px,4vw,48px) 20px; }
.badge { display: inline-block; background: var(--color-accent); color: #000; font-weight: 600; font-size: 13px; padding: 6px 14px; border-radius: 3px; }
.article__author { display: flex; align-items: center; gap: 16px; margin: 28px 0 40px; }
.article__author-ava { width: 56px; height: 56px; border-radius: 50%; background: #333; flex: none; }
.article__author-name { font-family: var(--font-head); font-weight: 700; }
.article__author-bio { font-size: 12px; color: var(--color-text-dim); max-width: 42ch; }
.article__body { max-width: 62ch; }
.article__body p { color: var(--color-text-muted); margin-bottom: 1.4em; }

/* Курс — деталі */
.course-detail-title { text-align: center; font-size: var(--fs-h1); padding-block: clamp(32px,5vw,64px); }
.subjects { border-radius: 4px; overflow: hidden; }
.subjects__item { display: flex; align-items: center; gap: 22px; padding: 20px 24px; font-family: var(--font-head);
  font-weight: 600; text-transform: uppercase; font-size: 15px; letter-spacing: .01em; }
.subjects__item:nth-child(odd) { background: #161616; }
.subjects__num { color: var(--color-text-dim); min-width: 28px; }
.signup-cta { background: var(--color-accent); color: #000; border-radius: 8px; padding: clamp(32px,5vw,56px); max-width: 640px; margin: clamp(40px,6vw,72px) auto 0; }
.signup-cta__title { font-size: var(--fs-h2); margin-bottom: .6em; }
.signup-cta p { margin-bottom: 1em; }
.signup-cta a { text-decoration: underline; }
.signup-cta__social { display: flex; gap: 14px; margin-top: 24px; }
.signup-cta__social a { width: 60px; height: 60px; border-radius: 8px; background: #000; color: #fff; display: grid; place-items: center; font-size: 22px; text-decoration: none; }

/* 30 секунд — кінематографічний хіро */
.cinema-hero { position: relative; min-height: 82vh; background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cinema-hero__num { font-family: var(--font-head); font-weight: 700; font-size: clamp(140px, 34vw, 460px); color: #1a1a1a;
  background: radial-gradient(circle, rgba(220,251,47,.25), transparent 60%); -webkit-background-clip: text; }
.cinema-hero__label { position: absolute; right: var(--container-pad); bottom: 8vh; color: var(--color-text-dim); font-size: 22px; }
.cinema-hero__caption { position: absolute; left: var(--container-pad); bottom: 8vh; max-width: 24ch; }
.cinema-hero__caption h1 { font-size: var(--fs-h1); }

/* ==========================================================================
   Контакти
   ========================================================================== */
.contacts { display: grid; grid-template-columns: auto 1fr 1fr auto; gap: clamp(24px,4vw,56px); align-items: center; padding-block: clamp(40px,6vw,90px); }
.contacts__logo { width: 220px; max-width: 40vw; }
.contacts__label { color: var(--color-text-muted); font-size: 14px; margin-bottom: 8px; }
.contacts__link { color: #6b9eff; display: block; margin-bottom: 6px; }
.contacts__phone { margin-bottom: 6px; }
.social-icons { display: flex; gap: 14px; }
.social-icons a { width: 56px; height: 56px; border-radius: 8px; background: #1a1a1a; display: grid; place-items: center; font-size: 22px; }
.social-icons a:hover { background: var(--color-accent); color: #000; }

/* ==========================================================================
   Footer (банер + низ)
   ========================================================================== */
.footer-band { position: relative; min-height: clamp(280px,32vw,420px); display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.footer-band__bg { position: absolute; inset: 0; z-index: 0; }
.footer-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.footer-band::after { content:''; position:absolute; inset:0; z-index:1; background: rgba(0,0,0,.5); }
.footer-band__inner { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 28px; align-items: center; padding: 40px 20px; }
.footer-band__title { font-size: var(--fs-hero); }
.footer-bottom { background: #000; }
.footer-bottom__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 22px; color: var(--color-text-dim); font-size: 13px; }
.footer-bottom__links { display: flex; gap: 20px; }
.footer-bottom__links a:hover { color: var(--color-accent); }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1000px) {
  .main-nav { display: none; position: absolute; top: 84px; left: 0; right: 0; background: #000;
    flex-direction: column; gap: 0; padding: 8px 0; border-bottom: 1px solid var(--color-border); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px var(--container-pad); }
  .burger { display: block; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .card-grid, .card-grid--2, .proj-grid { grid-template-columns: 1fr; }
  .instructor { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; text-align: left; }
}
@media (max-width: 560px) {
  .hero-strip__row { grid-template-columns: repeat(2,1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .gallery-3 { grid-template-columns: 1fr; }
}
