/* Сяржук Доўгушаў — папера, чырвоны арнамент, цёплыя фота.
   Светлая старонка з вышыванай стужкай злева; блок TRIO VALADAR застаецца ў сваім цёмным фірменным стылі. */

:root {
  --paper: #F9F0E6;
  --paper-2: #F3E7DA;
  --card: #FBF5EC;
  --ink: #2B1C14;
  --ink-soft: #5F4B3E;
  --red: #B3161C;
  --red-dark: #8F1015;
  --line: rgba(43, 28, 20, .18);
  --line-strong: rgba(43, 28, 20, .34);
  --display: "Vollkorn", "Lora", Georgia, serif;
  --body: "Lora", Georgia, serif;
  --strip: 68px;
  --gutter: clamp(16px, 4.5vw, 56px);
  --max: 1200px;
  --header-h: 84px;
  --radius: 18px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-left: var(--strip);
  background: var(--paper) url("../img/paper.jpg");
  color: var(--ink);
  font: 500 20px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* вышываная стужка */
body::before {
  content: ""; position: fixed; z-index: 60; inset: 0 auto 0 0; width: var(--strip);
  background: var(--paper) url("../img/ornament.svg") center top / 100% auto repeat-y;
  border-right: 1px solid var(--line);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.caps, .kicker {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.6;
}
.ash { color: var(--ink-soft); }
.small { font-size: 18px; }
.lead { font-style: italic; font-size: clamp(22px, 1.9vw, 25px); line-height: 1.55; }
.narrow { max-width: 680px; }
.rule { display: block; width: 62px; height: 3px; background: var(--red); margin: 24px 0 28px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: calc(var(--strip) + 16px); top: 16px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 12px; }

/* Buttons & links */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font: 500 18px/1 var(--body);
  text-decoration: none;
  color: #fff;
  background: var(--red);
  border: 1.5px solid var(--red);
  border-radius: 12px;
  padding: 16px 26px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(143, 16, 21, .22);
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn--ghost:hover { background: var(--red); color: #fff; }
.btn--play::before { content: ""; border: 8px solid transparent; border-left: 13px solid currentColor; border-right: 0; }
.btn[disabled] { opacity: .5; cursor: wait; }
.link { color: var(--red); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link:hover { color: var(--red-dark); }
.links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 24px; }
.links a { color: var(--red); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; overflow-wrap: anywhere; }
.links a:hover { color: var(--red-dark); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto var(--strip); z-index: 50;
  height: var(--header-h);
  background: var(--paper);
  transition: box-shadow .3s;
}
.site-header.scrolled, .site-header:has(.nav.open) { box-shadow: 0 1px 0 var(--line); }
.header-row { height: 100%; max-width: 1520px; display: flex; align-items: center; gap: 20px; padding-inline: clamp(16px, 2.4vw, 40px); }
.brand { display: block; flex-shrink: 0; line-height: 0; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 16px; margin-left: auto; }
.nav a { font: 500 18px/1 var(--body); text-decoration: none; color: var(--ink); padding: 8px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; white-space: nowrap; }
.nav a:hover { color: var(--red); }
.nav a.active { border-color: var(--red); }
.lang { display: flex; gap: 4px; }
.lang button { font: 500 17px/1 var(--body); background: none; border: 0; border-bottom: 2px solid transparent; color: var(--ink); padding: 8px 5px; cursor: pointer; }
.lang button[aria-pressed="true"] { color: var(--red); border-color: var(--red); }
.burger { display: none; flex-shrink: 0; background: none; border: 0; width: 40px; height: 40px; padding: 10px 8px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .3s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: clamp(640px, 92vh, 860px); display: flex; align-items: center; padding-top: var(--header-h); overflow: hidden; }
.hero-photo { position: absolute; top: var(--header-h); right: 0; bottom: 0; aspect-ratio: 1429 / 2000; max-width: 56%; }
/* вышыня блока = вышыня фота: галава і ліра бачныя цалкам; пры вузкім экране абразаюцца толькі бакі */
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 55% 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(0deg, transparent 0, #000 12%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(0deg, transparent 0, #000 12%);
  mask-composite: intersect;
}
.hero-content { position: relative; padding-block: 48px; }
.kicker { color: var(--ink); margin-bottom: 22px; }
.hero-name { font-family: var(--display); font-weight: 600; font-size: clamp(55px, 6.6vw, 106px); line-height: 1.02; letter-spacing: -.005em; }
.hero-name span { display: block; }
.hero-lead { font-style: italic; font-size: clamp(22px, 2vw, 28px); line-height: 1.45; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 34px; }
.hero-book { display: inline-block; margin-top: 22px; }

/* Pillars & cards */
.pillars-wrap { padding-bottom: 32px; }
.pillars { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.pillars li + li { border-left: 1px solid var(--line-strong); }
.pillars a { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 12px; text-decoration: none; font-size: 23px; transition: color .2s; text-align: center; }
.pillars a:hover { color: var(--red); }
.pillars img { width: 70px; height: 70px; transition: transform .3s; }
.pillars a:hover img { transform: scale(1.08); }

.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: 0 8px 22px rgba(70, 40, 20, .08); transition: transform .3s, box-shadow .3s; }
.fcard:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(70, 40, 20, .14); }
.fcard-img { position: relative; display: block; aspect-ratio: 5/3; overflow: hidden; }
.fcard-img img { width: 100%; height: 100%; object-fit: cover; }
.fcard-img::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(0deg, var(--card), transparent); }
.fcard:nth-child(2) .fcard-img img { object-position: 50% 42%; }
.fcard:nth-child(3) .fcard-img img { object-position: 60% 30%; }
.fcard-body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 6px 26px 22px; }
.fcard-body strong { font-family: var(--display); font-weight: 600; font-size: 29px; line-height: 1.2; }
.fcard-body em { font-size: 19px; line-height: 1.45; flex: 1; }
.arrow { display: block; width: 34px; height: 12px; margin-top: 6px; background: linear-gradient(var(--red), var(--red)) left center / 32px 2px no-repeat; position: relative; transition: transform .25s; }
.arrow::after { content: ""; position: absolute; right: 1px; top: 1.5px; width: 8px; height: 8px; border-top: 2px solid var(--red); border-right: 2px solid var(--red); transform: rotate(45deg); }
.fcard:hover .arrow { transform: translateX(5px); }

.facts { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; color: var(--ink-soft); font-style: italic; font-size: 18px; }
.facts li { padding-inline: 18px; }
.facts li + li { border-left: 1px solid var(--line-strong); }
.divider { display: flex; align-items: center; gap: 24px; margin-top: 40px; }
.divider span { flex: 1; height: 1px; background: var(--line-strong); }
.divider-icon { width: 54px; height: 54px; }

/* Sections */
.section { padding-block: clamp(64px, 8vw, 110px); }
.section--alt { background: rgba(232, 214, 195, .3); }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .caps { margin-bottom: 12px; color: var(--red); }
.sec-icon { width: 66px; height: 66px; margin-bottom: 16px; }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(35px, 4vw, 55px); line-height: 1.12; text-wrap: balance; }
.h3 { font-family: var(--display); font-weight: 600; font-size: clamp(25px, 2.2vw, 31px); line-height: 1.25; margin-bottom: 12px; }

/* About */
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.about-photo { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.about-photo img { aspect-ratio: 4/5; object-fit: cover; object-position: 55% 40%; width: 100%; border-radius: var(--radius); box-shadow: 0 12px 30px rgba(70, 40, 20, .16); }
.about-text > .caps { margin-bottom: 12px; color: var(--red); }
.milestones { margin: 40px 0 0; border-top: 1px solid var(--line); }
.milestones div { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.milestones dt { color: var(--red); font-size: 17px; letter-spacing: .08em; padding-top: 2px; }
.milestones dd { margin: 0; font-size: 19px; line-height: 1.5; }

/* Instruments */
.inst-photos { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); }
.inst-photos img { width: 100%; height: clamp(220px, 30vw, 420px); object-fit: cover; border-radius: var(--radius); }
.inst-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.inst { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; }
.inst h3 { font-family: var(--display); font-weight: 600; font-size: 23px; margin-bottom: 6px; }
.inst p { font-size: 18px; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.inst .inst-n { display: block; color: var(--red); font-family: var(--display); font-size: 34px; letter-spacing: 0; line-height: 1; margin-bottom: 8px; }
.inst--more { display: flex; flex-direction: column; justify-content: center; }
.inst-play { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--red); background: none; color: var(--red); cursor: pointer; display: grid; place-items: center; font-size: 13px; }
.inst-play:hover, .inst-play.playing { background: var(--red); color: #fff; }

/* TRIO VALADAR — свой цёмны брэнд */
.valadar { --soot: #15120E; --linen: #EDE6D8; --ash: #A79D8C; --red: #A3271F;
  background: var(--soot); color: var(--linen); margin-block: 0 clamp(64px, 8vw, 110px); }
.valadar-inner { text-align: center; padding-block: clamp(72px, 9vw, 120px); display: flex; flex-direction: column; align-items: center; }
.valadar .caps { font-family: "Jost", sans-serif; font-weight: 400; font-size: 12px; letter-spacing: .32em; }
.valadar .ash { color: var(--ash); }
.valadar-geo { margin-bottom: 56px; }
.valadar-mark { width: 84px; height: 76px; color: var(--linen); margin-bottom: 32px; }
.valadar .valadar-trio { letter-spacing: .6em; font-size: 15px; margin: 0 0 18px .6em; }
.valadar-word { width: min(640px, 82vw); line-height: 0; }
.valadar-word svg { width: 100%; height: auto; }
.valadar .rule { height: 1px; margin: 36px auto; }
.valadar-claim, .valadar-quote { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; }
.valadar-claim { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.35; margin-bottom: 26px; }
.valadar-sub { margin-bottom: 56px; }
.valadar-quote { margin: 0 0 26px; font-size: clamp(30px, 4vw, 48px); line-height: 1.2; max-width: 760px; }
.valadar-desc { max-width: 620px; font-size: 18px; color: rgba(237, 230, 216, .86); margin-bottom: 36px; }
.valadar .btn { background: var(--linen); border-color: var(--linen); color: var(--soot); box-shadow: none; }
.valadar .btn:hover { background: transparent; color: var(--linen); }

/* Projects */
.card-icon { width: 54px; height: 54px; margin-bottom: 12px; }
.project--duo { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 5vw, 72px); margin-bottom: clamp(48px, 6vw, 72px); }
.project-text > .caps, .project-card > .caps, .project-media > .caps { margin-bottom: 8px; color: var(--red); }
.project-text, .project-media { min-width: 0; }
.yt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.yt-grid .vcard:first-child { grid-column: 1 / -1; }
.yt { position: relative; display: block; padding: 0; border: 0; background: #1a1410; cursor: pointer; aspect-ratio: 16/9; width: 100%; overflow: hidden; border-radius: 10px; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .3s; }
.yt:hover img { opacity: 1; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; background: var(--red); border-radius: 50%; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.yt-play::after { content: ""; position: absolute; left: 22px; top: 17px; border: 11px solid transparent; border-left: 16px solid #fff; border-right: 0; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px 28px; scroll-margin-top: calc(var(--header-h) + 16px); }
.project-card p:last-child { margin-bottom: 0; }
.project-card--wide { grid-column: 1 / -1; }
.titles { list-style: none; margin: 0; padding: 0; font-style: italic; }
.titles li { padding: 2px 0; }
.collab-head { margin: 48px 0 18px; color: var(--red) !important; }
.earlier { margin-top: 40px; display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: baseline; }
.earlier-list { font-style: italic; margin: 0; }

/* Rites */
.rites-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 0 0 28px; }
.rites-stats div { background: var(--red); color: #fff; border-radius: var(--radius); padding: 20px 24px; }
.rites-stats dt { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3vw, 40px); line-height: 1.15; }
.rites-stats dd { margin: 4px 0 0; font-size: 18px; line-height: 1.35; }
.rites-feature { border-color: var(--red); }
.rites-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; margin-top: 28px; }
.rites-cta p { flex: 1 1 420px; margin: 0; font-style: italic; font-size: clamp(21px, 2vw, 25px); line-height: 1.4; }
.rites-links { margin-top: 28px; align-items: baseline; }

/* Lessons */
.lesson-history { max-width: 760px; margin: 0 0 28px; }
.lesson-history .link { display: inline-block; margin-top: 4px; }
.lesson-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: clamp(40px, 5vw, 64px); }
.lesson { display: flex; flex-direction: column; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; }
.lesson .h3 { margin-bottom: 4px; }
.lesson-mode { color: var(--red); font-size: 13px; letter-spacing: .06em; margin-bottom: 10px; }
.lesson p:not(.lesson-mode) { font-size: 17px; line-height: 1.5; color: var(--ink-soft); flex: 1; }
.lesson-signup { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Video */
.video-group { margin-bottom: clamp(40px, 5vw, 64px); }
.video-group > h3 { margin-bottom: 18px; color: var(--red); }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 18px; }
.video-grid--4 { grid-template-columns: repeat(4, 1fr); }
.vcard { margin: 0; min-width: 0; }
.vcard figcaption { font-style: italic; font-size: 18px; line-height: 1.4; margin-top: 10px; }

/* Gallery */
.press-zip { margin-top: 8px; }
.gallery { columns: 3; column-gap: 18px; }
.ph { margin: 0 0 22px; break-inside: avoid; }
.ph-open { display: block; overflow: hidden; border-radius: var(--radius); }
.ph-open img { width: 100%; height: auto; transition: transform .6s ease; }
.ph-open:hover img { transform: scale(1.03); }
.ph figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; margin-top: 8px; }
.ph-dl { color: var(--red); font-size: 18px; text-decoration: none; border-bottom: 1px solid currentColor; }
.ph-dl:hover { color: var(--red-dark); }
.ph-meta { color: var(--ink-soft); font-size: 15px; font-variant-numeric: tabular-nums; }

/* Press */
.press { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.press li > a, .press-plain { display: grid; grid-template-columns: 220px 1fr auto; gap: 20px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.press li > a::after { content: "↗"; color: var(--red); transition: transform .2s; }
.press li > a:hover::after { transform: translate(2px, -2px); }
.press li > a:hover .press-t { color: var(--red); }
.press .caps { font-size: 14px; letter-spacing: .14em; }
.press-t { font-size: 21px; line-height: 1.4; transition: color .2s; }
.press-t em { color: var(--ink-soft); }

/* Events */
.events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.event { display: grid; grid-template-columns: 200px 200px 1fr auto; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.event-date { font-family: var(--display); font-size: 24px; }
.event-venue { font-style: italic; }
.events-empty { font-style: italic; font-size: 24px; }

/* Booking */
.formats { list-style: none; margin: 0 0 clamp(56px, 7vw, 88px); padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.formats li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px 24px; }
.fmt-icon { width: 52px; height: 52px; margin-bottom: 12px; }
.formats h3 { font-size: 17px; letter-spacing: .08em; margin-bottom: 8px; line-height: 1.35; }
.formats p { font-size: 18px; line-height: 1.5; color: var(--ink-soft); margin: 0; }

.booking-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 72px); }
.booking-aside, .form { min-width: 0; }
.phones { margin: 24px 0; }
.phones div { padding: 12px 0; border-top: 1px solid var(--line); }
.phones dt { font-size: 14px; }
.phones dd { margin: 2px 0 0; font-size: 20px; overflow-wrap: anywhere; }
.phones a { text-decoration: none; }
.aside-photo { width: 100%; aspect-ratio: 5/4; object-fit: cover; object-position: 55% 30%; border-radius: var(--radius); margin-top: 20px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; align-content: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > .caps { font-size: 14px; letter-spacing: .12em; color: var(--ink-soft); }
.field--full { grid-column: 1 / -1; }
.form input:not([type=checkbox]), .form select, .form textarea {
  font: 500 19px/1.4 var(--body); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 11px 12px; width: 100%; transition: border-color .2s;
}
.form select { appearance: none; -webkit-appearance: none; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23B3161C' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 32px; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); }
.form input::placeholder { color: rgba(95, 75, 62, .6); }
.form .invalid { border-color: var(--red) !important; box-shadow: 0 0 0 1px var(--red); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 18px; color: var(--ink-soft); cursor: pointer; }
.consent input { accent-color: var(--red); margin-top: 6px; }
.consent.invalid { box-shadow: none; }
.consent.invalid span { color: var(--red); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.form-status { margin: 0; font-style: italic; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Instagram */
.ig-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.ig-head h2 { font-family: var(--display); font-weight: 600; font-size: clamp(33px, 3.6vw, 48px); }
.ig-head h2 a { text-decoration: none; }
.ig-head .rule { margin-bottom: 0; }
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ig-item { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--paper-2); border-radius: 10px; color: #fff; }
.ig-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease, filter .3s; }
.ig-item:hover img { transform: scale(1.04); filter: brightness(.45); }
.ig-cap { position: absolute; inset: auto 0 0 0; padding: 10px; font-style: italic; font-size: 16px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.ig-item:hover .ig-cap, .ig-item:focus-visible .ig-cap { opacity: 1; transform: none; }
.ig-badge { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--red); display: grid; place-items: center; }
.ig-badge::after { content: ""; border: 5px solid transparent; border-left: 8px solid #fff; border-right: 0; margin-left: 2px; }
.ig-item--empty { display: grid; place-items: center; border: 1px solid var(--line); color: var(--red); text-decoration: none; }
.ig-item--empty svg { width: 28px; height: 28px; opacity: .7; }
.ig-skel { animation: igp 1.6s ease-in-out infinite; }
@keyframes igp { 50% { opacity: .5; } }

/* Contact */
.contact-section { padding-bottom: 0; }
.contact { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact-logo { width: clamp(240px, 30vw, 380px); height: auto; margin-bottom: 32px; }
.contact > .caps { margin-bottom: 10px; color: var(--red); }
.contact-cols { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 80px; margin: 40px 0 28px; }
.contact-cols .caps { margin-bottom: 4px; font-size: 14px; }
.big { font-family: var(--display); font-weight: 600; font-size: clamp(23px, 2.4vw, 33px); text-decoration: none; overflow-wrap: anywhere; }
.big:hover { color: var(--red); }
.contact-mail { margin: 0 0 32px; }
.social { display: flex; gap: 10px 28px; flex-wrap: wrap; justify-content: center; font-size: 15px; letter-spacing: .12em; }
.social a { color: var(--red); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.contact-band { margin-top: 56px; height: clamp(220px, 34vw, 460px); overflow: hidden; }
.contact-band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 40%); mask-image: linear-gradient(180deg, transparent 0, #000 40%); }

.footer { background: var(--ink); color: var(--paper); padding-block: 24px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between; font-size: 14px; letter-spacing: .12em; }
.footer .ash { color: inherit; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

.lightbox { padding: 0; border: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; }
.lightbox:not([open]) { display: none; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(30, 20, 14, .94); }
.lightbox img { max-width: 92vw; max-height: 90vh; object-fit: contain; }
.lightbox button { position: fixed; background: none; border: 0; color: #fff; font: 400 42px/1 var(--body); cursor: pointer; padding: 14px; }
.lb-close { top: 6px; right: 10px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
.reveal { transition: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Responsive */
@media (max-width: 1439px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 0 var(--strip); background: var(--paper);
    flex-direction: column; gap: 0; padding: 16px var(--gutter);
    transform: translateX(110%); visibility: hidden; transition: transform .35s ease, visibility .35s; overflow-y: auto;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav a { font-size: 22px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .lang { margin-left: auto; }
  .burger { display: block; }
  .inst-list { grid-template-columns: repeat(2, 1fr); }
  .lesson-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --strip: 22px; --header-h: 68px; }
  body { font-size: 19px; }
  .brand img { height: 32px; }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding-top: var(--header-h); }
  .hero-photo { position: relative; top: auto; width: 100%; max-width: 560px; margin: 8px auto 0; order: 2; }
  .hero-photo img { height: auto; aspect-ratio: 1429 / 2000; object-position: 50% 0;
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 88%, transparent 100%); -webkit-mask-composite: source-over;
    mask-image: linear-gradient(180deg, #000 0, #000 88%, transparent 100%); mask-composite: add; border-radius: var(--radius) var(--radius) 0 0; }
  .hero-content { order: 1; padding-block: 24px 0; }
  .rites-stats { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; }
  .pillars li:nth-child(4) { border-left: 0; }
  .pillars a { font-size: 19px; padding-inline: 4px; }
  .pillars img { width: 50px; height: 50px; }
  .feature-cards { grid-template-columns: 1fr; }
  .about-grid, .project--duo, .booking-grid { grid-template-columns: 1fr; }
  .about-photo { position: static; }
  .about-photo img { aspect-ratio: 4/3; }
  .project-grid { grid-template-columns: minmax(0, 1fr); }
  .earlier { grid-template-columns: 1fr; gap: 4px; }
  .video-grid { grid-template-columns: 1fr 1fr; }
  .gallery { columns: 2; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .press li > a, .press-plain { grid-template-columns: 1fr auto; gap: 2px 14px; }
  .press li > a > .caps, .press-plain > .caps { grid-column: 1 / -1; }
  .press-plain { grid-template-columns: 1fr; }
  .event { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 600px) {
  .brand img { height: 21px; }
  .pillars a { font-size: 16px; }
  .header-row { gap: 6px; }
  .lang button { padding: 8px 3px; font-size: 16px; }
  .burger { width: 36px; padding: 10px 6px; }
  .inst-list, .formats, .video-grid, .form, .lesson-grid { grid-template-columns: minmax(0, 1fr); }
  .inst-photos { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .facts { flex-direction: column; align-items: center; }
  .facts li + li { border-left: 0; }
}
