/* Katya Natvorila — site styles
   Стиль: постерный, капс, одна гарнитура (Golos Text), off-white фон,
   1px линии, оранжевый акцент только на знаке ✷ и точках. */

@import "../fonts/golos.css";

:root {
  --ground: #F2F1EC;
  --ink: #101010;
  --ink-mute: #6E6E6A;
  --rule: #D3D2CC;
  --accent: #FF4D00;
  --signal: #1B3BD8;
  --font: "Golos Text", "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
  --pad: 48px;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--ground); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
/* полноширинный блок: вылезает за .wrap до краёв экрана */
.bleed { width: 100vw; margin-left: calc(50% - 50vw); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- typography ---------- */
.caps { text-transform: uppercase; letter-spacing: 0.08em; }
.eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.eyebrow .star { color: var(--accent); }
.note {
  font-size: 12px; font-weight: 700; line-height: 1.7;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.display {
  font-weight: 900; line-height: 0.9; letter-spacing: -0.045em;
  text-transform: uppercase; text-wrap: balance;
}
.h-xl { font-size: clamp(2rem, 8.7vw, 13rem); }
.h-lg { font-size: clamp(2.2rem, 6.5vw, 7rem); }
.h-md { font-size: clamp(1.75rem, 1rem + 3vw, 3.5rem); font-weight: 900; line-height: 1; letter-spacing: -0.03em; text-transform: uppercase; }
.sub {
  font-size: clamp(20px, 1rem + 2.6vw, 56px); font-weight: 900;
  line-height: 1.05; letter-spacing: -0.02em; text-transform: uppercase;
}
.lead { color: var(--ink-mute); line-height: 1.5; max-width: 60ch; }
.small { font-size: 13px; line-height: 1.4; color: var(--ink-mute); }
.star { color: var(--accent); }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 30;
  background: var(--ground); border-bottom: 1px solid var(--rule);
}
.hdr .wrap {
  height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 1.5px solid var(--ink); border-radius: 50%;
  font-size: 17px; line-height: 1; color: var(--ink); justify-self: start; padding-top: 1px;
}
.mark:hover { background: var(--ink); color: var(--ground); }
.nav { display: flex; gap: 40px; }
.nav a { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 6px 0; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.hdr-right { grid-column: 3; display: flex; justify-content: flex-end; align-items: center; gap: 16px; }

/* pill button (как SHOP на рефе) */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 36px; padding: 0 20px; border-radius: 999px;
  background: var(--ink); color: var(--ground); border: 1.5px solid var(--ink);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  white-space: nowrap; transition: background .2s, color .2s;
}
.pill:hover { background: transparent; color: var(--ink); }
.pill.ghost { background: transparent; color: var(--ink); }
.pill.ghost:hover { background: var(--ink); color: var(--ground); }
.pill.lg { height: 52px; padding: 0 32px; font-size: 14px; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* мобильное меню: <details>, без JS */
.menu { display: none; position: relative; justify-self: end; }
.menu summary { list-style: none; cursor: pointer; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 8px 0; }
.menu summary::-webkit-details-marker { display: none; }
.menu .drop {
  position: absolute; right: 0; top: calc(100% + 12px); min-width: 220px;
  background: var(--ground); border: 1px solid var(--ink);
  display: flex; flex-direction: column;
}
.menu .drop a { padding: 14px 18px; border-bottom: 1px solid var(--rule); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.menu .drop a:last-child { border-bottom: 0; }
.menu .drop a:hover { background: var(--ink); color: var(--ground); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; text-align: center; }
.hero .sub { margin-top: 20px; }
.hero .note { max-width: 70ch; margin: 24px auto 0; }
.hero.hero-course .sub { font-size: clamp(18px, 0.9rem + 1.9vw, 40px); }
.hero .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- showreel ---------- */
.reel { position: relative; aspect-ratio: 16 / 9; background: var(--ink); color: var(--ground); overflow: hidden; margin-top: 8px; }
.reel img { width: 100%; height: 100%; object-fit: cover; }
.reel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* постер без картинки: бегущая строка контуром + оранжевое солнце */
.poster { position: absolute; inset: 0; overflow: hidden; }
.poster::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 96px 96px; opacity: .12;
}
.poster-track {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  display: flex; white-space: nowrap; will-change: transform;
  animation: marquee 40s linear infinite;
}
.poster-track span {
  font-size: clamp(64px, 14vw, 220px); font-weight: 900; line-height: 1; letter-spacing: -0.04em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1.5px var(--ground); padding-right: .25em;
}
@keyframes marquee { from { transform: translate(0, -50%); } to { transform: translate(-50%, -50%); } }

/* ---------- CSS-баннеры вместо картинок (курс) ---------- */
.banner {
  position: relative; overflow: hidden; background: var(--ink); color: var(--ground);
  display: flex; align-items: flex-end; padding: 8%;
}
.banner::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 32px 32px; opacity: .14;
}
.banner .bn-num {
  position: absolute; right: -2%; top: -12%; font-weight: 900; line-height: 1; letter-spacing: -0.06em;
  font-size: 110cqw; color: transparent; -webkit-text-stroke: 1px var(--ground); opacity: .9;
}
.banner .bn-word { position: relative; font-size: 9cqw; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.banner .bn-word .dot { display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: var(--accent); margin-right: .5em; vertical-align: middle; }
.banner.ratio-32 { aspect-ratio: 3 / 2; container-type: inline-size; }
.banner.ratio-43 { aspect-ratio: 4 / 3; container-type: inline-size; width: 100%; max-width: 360px; }
.banner.ratio-43 .bn-num { font-size: 70cqw; right: -4%; top: -6%; }
.banner.ratio-43 .bn-word { font-size: 5.5cqw; }
.banner.ratio-43 .bn-title { position: relative; font-size: 13cqw; font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; line-height: .95; margin-top: .3em; }
.row .banner .bn-word { display: none; }
.reel .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ground); color: var(--ink); padding: 18px 32px;
  font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  transition: background .2s, color .2s;
}
.reel .play:hover { background: var(--accent); color: var(--ink); }
.reel .play svg { width: 14px; height: 14px; }

/* ---------- section head (как YOUR BOWLS +) ---------- */
.sec-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding: 56px 0 20px; border-bottom: 2px solid var(--ink);
}
.sec-head .h-md .plus { color: var(--accent); }
.sec-head .note { text-align: right; margin: 0 0 4px; }

/* ---------- works grid ---------- */
.works {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  padding-top: 8px;
}
.work { display: block; position: relative; overflow: hidden; background: #E6E5DF; }
.work img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.work:hover img { transform: scale(1.03); }
.work figcaption {
  display: flex; justify-content: space-between; gap: 16px; padding: 12px 0 8px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
}
.work figcaption span:last-child { color: var(--ink-mute); }

/* ---------- course block (как второй реф) ---------- */
.course {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  border-top: 1px solid var(--ink); margin-top: 56px;
}
.course-side {
  padding: 40px 40px 40px 0; border-right: 1px solid var(--ink);
  display: flex; flex-direction: column; align-items: flex-start; gap: 24px;
}
.course-side img { width: 100%; max-width: 360px; aspect-ratio: 4 / 3; object-fit: cover; }
.course-side .ttl { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.course-side .lead { margin-top: 8px; font-size: 15px; max-width: 34ch; }
.ulink {
  font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em;
  padding-bottom: 6px; border-bottom: 1.5px solid var(--ink); transition: color .2s, border-color .2s;
}
.ulink:hover { color: var(--accent); border-color: var(--accent); }

.rows { display: flex; flex-direction: column; }
.row {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 160px; gap: 24px; align-items: center;
  padding: 28px 0 28px 40px; border-bottom: 1px solid var(--rule);
}
.row:last-child { border-bottom: 0; }
.row .num { font-size: 12px; font-weight: 700; color: var(--ink-mute); letter-spacing: 0.08em; }
.row .name { font-size: clamp(26px, 3.4vw, 52px); font-weight: 900; letter-spacing: -0.03em; text-transform: uppercase; line-height: 1; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.row:hover .name { transform: translateX(8px); }
.row img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.row .desc { grid-column: 2 / span 2; color: var(--ink-mute); max-width: 60ch; margin-top: -8px; }

/* ---------- contacts ---------- */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; padding-top: 8px; }
.contact {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 180px; padding: 20px; border: 1px solid var(--ink);
  transition: background .2s, color .2s;
}
.contact:hover { background: var(--ink); color: var(--ground); }
.contact .name { font-size: clamp(22px, 2vw, 32px); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1; }
.contact .handle { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: .7; }
.contact .arrow { font-size: 18px; font-weight: 900; }

/* ---------- editorial rows (страница курса) ---------- */
.ed { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding: 48px 0; border-top: 1px solid var(--rule); }
.ed .ed-h { grid-column: span 4; }
.ed .ed-t { grid-column: 5 / span 7; max-width: 64ch; }
.ed .ed-t p + p { margin-top: 12px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.card { border: 1px solid var(--ink); padding: 24px; display: flex; flex-direction: column; gap: 12px; min-height: 220px; }
.card .q { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.card .a { color: var(--ink-mute); font-size: 15px; }

.spec { border-top: 1px solid var(--ink); }
.spec div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.spec dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-mute); padding-top: 4px; }
.spec dd { margin: 0; font-weight: 600; }

.cta { padding: 96px 0; text-align: center; border-top: 1px solid var(--ink); margin-top: 56px; }
.cta .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- footer ---------- */
.ftr { border-top: 1px solid var(--ink); margin-top: 96px; padding: 32px 0 40px; }
.ftr .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ftr p, .ftr a { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-mute); }
.ftr a:hover { color: var(--ink); }
.ftr .links { display: flex; gap: 24px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .poster-track { animation: none; }
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- breakpoints ---------- */
@media (max-width: 1100px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  :root { --pad: 20px; }
  .nav, .hdr-right .pill { display: none; }
  .menu { display: block; }
  .hero { padding: 48px 0 32px; }
  .course { grid-template-columns: 1fr; }
  .course-side { border-right: 0; border-bottom: 1px solid var(--ink); padding: 32px 0; }
  .row { grid-template-columns: 36px minmax(0, 1fr) 96px; gap: 16px; padding: 20px 0; }
  .row .desc { grid-column: 2 / span 2; }
  .ed .ed-h, .ed .ed-t { grid-column: span 12; }
  .ed { padding: 32px 0; gap: 12px; }
  .cards { grid-template-columns: 1fr; }
  .spec div { grid-template-columns: 1fr; gap: 4px; }
  .sec-head { flex-direction: column; align-items: flex-start; padding-top: 40px; }
  .sec-head .note { text-align: left; }
}
@media (max-width: 480px) {
  .works { grid-template-columns: 1fr; }
  .row { grid-template-columns: 28px minmax(0, 1fr) 80px; }
}
