:root {
  --bg: #E5E2DA;
  --bg-2: #DDD9D0;
  --bg-3: #D2CEC4;
  --ink: #1A1A1A;
  --muted: #666666;
  --line: rgba(26, 26, 26, 0.14);
  --wine: #9B3A3A;
  --wine-soft: #B54B4B;
  --cream: #F4F1EA;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-editorial: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --pad: clamp(18px, 3.5vw, 48px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }

.wrap { width: min(100% - var(--pad) * 2, var(--max)); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wine-soft);
  margin-bottom: 18px;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--ink);
}
.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 38rem;
}
.lead--narrow { max-width: 34rem; margin-bottom: 40px; }
.section { padding: clamp(72px, 12vw, 140px) 0; }

/* Header — magazine bar */
.header {
  position: sticky; top: 0; z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--pad);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  text-decoration: none;
  min-width: 0;
}
.brand__name {
  font-family: var(--font-body);
  font-size: clamp(13px, 2.4vw, 15px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.brand__role {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
@media (max-width: 520px) {
  .brand__role { display: none; }
}
.index-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  cursor: pointer;
}
.index-btn:hover,
.index-btn[aria-expanded="true"] {
  background: transparent;
  color: var(--ink);
}
.index-btn__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .index-btn__label { display: none; }
}
.index-btn__icon {
  position: relative;
  width: 22px; height: 12px;
}
.index-btn__icon::before,
.index-btn__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform .3s ease, top .3s ease;
}
.index-btn__icon::before { top: 1px; }
.index-btn__icon::after { bottom: 1px; top: auto; transform: none; }
.index-btn[aria-expanded="true"] .index-btn__icon::before {
  top: 5px;
  transform: rotate(45deg);
}
.index-btn[aria-expanded="true"] .index-btn__icon::after {
  bottom: auto;
  top: 5px;
  transform: rotate(-45deg);
}

/* Fullscreen index */
.index-nav {
  position: fixed; inset: 0; z-index: 55;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(155, 58, 58, 0.12), transparent 45%),
    rgba(244, 242, 239, 0.97);
  backdrop-filter: blur(20px);
  overflow: auto;
  padding: 110px clamp(20px, 5vw, 72px) 48px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .4s ease, transform .45s cubic-bezier(.16,1,.3,1), visibility .4s;
}
.index-nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.index-nav[hidden] {
  display: block !important; /* анимируем через opacity, не через display */
}
.index-nav__inner {
  width: min(920px, 100%);
  margin: 0 auto;
}
.index-nav__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wine-soft);
  margin-bottom: 28px;
}
.index-nav__list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.index-nav__list a {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  transition: color .25s ease, padding-left .3s ease;
}
.index-nav__list a span {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--wine-soft);
  min-width: 2ch;
}
.index-nav__list a:hover {
  color: var(--wine-soft);
  padding-left: 12px;
}
.index-nav__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 40px;
}
.index-nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.index-nav__cta:hover { background: var(--wine-soft); }
.index-nav__meta {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hero — magazine editorial */
.hero {
  position: relative;
  min-height: calc(100svh - 73px);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg__video,
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 22%;
  filter: grayscale(0.7) sepia(0.35) saturate(0.85) blur(3.5px) brightness(1.02) contrast(1.06);
  opacity: 0.62;
  transform: scale(1.06);
}
.hero-bg__video {
  display: block;
  pointer-events: none;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(214, 198, 178, 0.38) 0%, rgba(205, 186, 164, 0.22) 42%, rgba(214, 198, 178, 0.44) 100%);
}
.hero-frame {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  width: min(100% - var(--pad) * 2, var(--max));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) 0 clamp(24px, 4vw, 40px);
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  padding: 0;
}
.hero-title .reveal--line,
.h2 .reveal--line,
.quote .reveal--line {
  display: block;
}
.hero-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-editorial);
  font-weight: 400;
  font-size: clamp(40px, 7.2vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--ink);
  max-width: 14ch;
  text-transform: uppercase;
}
.hero-lead {
  color: var(--muted);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.55;
  max-width: 28rem;
  margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-label-short { display: none; }
.hero-meta {
  margin-top: 18px;
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.hero-meta__addr {
  margin-top: 6px;
  color: var(--ink);
  letter-spacing: 0.06em;
}
.hero-rail {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - var(--pad) * 2, var(--max));
  margin: 0 auto;
  padding: 16px 0 22px;
  border-top: 1px solid var(--line);
}
.hero-rail a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .25s ease;
}
.hero-rail a:hover { color: var(--ink); }
/* Mobile — magazine cover в один экран */
@media (max-width: 760px) {
  .header {
    padding: 12px 16px;
  }
  .brand {
    gap: 6px 10px;
  }
  .brand__name {
    font-size: 12px;
    letter-spacing: 0.14em;
  }
  .brand__role {
    display: inline;
    font-size: 9px;
    letter-spacing: 0.14em;
  }
  .hero {
    min-height: calc(100svh - 66px);
    min-height: calc(100dvh - 66px);
  }
  .hero-frame {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 24px 20px 12px;
    box-sizing: border-box;
    min-height: 0;
  }
  .hero-bg__video,
  .hero-bg img {
    opacity: 0.66;
    filter: grayscale(0.65) sepia(0.32) saturate(0.9) blur(3px) brightness(1.03) contrast(1.05);
  }
  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(214, 198, 178, 0.34) 0%, rgba(205, 186, 164, 0.18) 45%, rgba(214, 198, 178, 0.4) 100%);
  }
  .hero .btn--hero {
    width: auto;
    min-width: min(100%, 240px);
    min-height: 48px;
    padding: 0 22px;
    font-size: 11px;
    letter-spacing: 0.14em;
    border-radius: 3px;
  }
  .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 0 auto;
    max-width: none;
    min-height: 0;
    padding: 0;
  }
  .hero-kicker {
    font-size: 10px;
    letter-spacing: 0.18em;
    margin-bottom: 14px;
  }
  .hero-title {
    font-size: clamp(36px, 10vw, 48px);
    line-height: 1.04;
    letter-spacing: -0.03em;
    max-width: 11ch;
    margin-bottom: 14px;
  }
  .hero-lead {
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 22px;
    max-width: 30rem;
  }
  .hero-actions { width: auto; }
  .btn-label-full { display: inline; }
  .btn-label-short { display: none; }
  .hero-meta {
    margin-top: 14px;
    font-size: 12px;
  }
  .hero-rail {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px 16px 14px;
    box-sizing: border-box;
    flex-shrink: 0;
  }
  .hero-rail a {
    font-size: 9px;
    letter-spacing: 0.14em;
  }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background .25s, color .25s, border-color .25s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: var(--wine); color: #fff; border: 1px solid var(--wine); border-radius: 999px; }
.btn--solid:hover { background: var(--wine-soft); border-color: var(--wine-soft); }
.btn--hero {
  border-radius: 4px;
  min-height: 52px;
  padding: 0 28px;
  letter-spacing: 0.12em;
  box-shadow: 0 10px 28px rgba(155, 58, 58, 0.28);
}
.btn--ink {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: 4px;
  min-height: 52px;
  padding: 0 28px;
  letter-spacing: 0.12em;
}
.btn--ink:hover { background: #2a2a2a; border-color: #2a2a2a; }
.price-was {
  text-decoration: line-through;
  color: var(--muted);
  font-weight: 500;
  margin-right: 0.2em;
}
.btn--ghost { border: 1px solid rgba(28, 27, 26, 0.22); color: var(--ink); border-radius: 999px; }
.btn--ghost:hover { border-color: var(--ink); background: rgba(28, 27, 26, 0.04); }
.btn--line { border: 1px solid var(--line); color: var(--ink); width: 100%; margin-top: auto; }
.btn--line:hover { border-color: var(--ink); }

/* About */
.about {
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.about-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.about-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 4/5;
  background: var(--bg-3);
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  filter: contrast(1.05) grayscale(1) brightness(1.02) blur(0.8px);
}
.about-body {
  display: grid;
  gap: 16px;
  max-width: 38rem;
  margin-bottom: 28px;
}
.about-body p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}
.about-closer {
  font-family: var(--font-editorial);
  font-size: clamp(22px, 3.2vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 22ch;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.about-studio {
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 34rem;
}

/* Formats — только тип занятия */
.formats { background: var(--bg); border-top: 1px solid var(--line); }
.format-stack {
  display: grid;
  gap: 8px;
  margin-top: 36px;
}
.format-card {
  position: relative;
  padding: 28px 0 20px;
  border-top: 1px solid var(--line);
}
.format-card:last-child { border-bottom: 1px solid var(--line); }

/* Prices — оплата отдельно */
.prices { background: var(--bg-2); border-top: 1px solid var(--line); }
.pay-block {
  margin-top: 36px;
  padding-top: 8px;
}
.pay-block + .pay-block { margin-top: 40px; }
.pay-block__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.inline-link {
  color: var(--wine-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inline-link:hover { color: var(--ink); }
.format-card__num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--wine-soft);
  margin-bottom: 12px;
}
.format-card__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.format-card__desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 40rem;
  margin-bottom: 24px;
}
.plan-title__note {
  font-family: var(--font-body);
  font-size: 0.55em;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
  margin-left: 0.25em;
}
.pay-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-bottom: 24px;
}
.pay-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7.5rem;
  align-items: start;
  gap: 12px 28px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.pay-row--hot .pay-row__name { color: var(--wine-soft); }
.pay-row__info { min-width: 0; }
.pay-row__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.pay-row__note {
  color: var(--muted);
  font-size: 13px;
}
.pay-row__cost {
  text-align: right;
  justify-self: end;
  width: 7.5rem;
}
.pay-row__price {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
  line-height: 1.1;
}
.pay-row__unit {
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}
@media (max-width: 520px) {
  .pay-row {
    grid-template-columns: minmax(0, 1fr) 6.5rem;
    gap: 10px 16px;
  }
  .pay-row__cost { width: 6.5rem; }
}
.price-note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}
.start-block {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.start-block__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.start-steps {
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.start-steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.start-steps__num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--wine-soft);
  padding-top: 3px;
}
.start-steps h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.start-steps p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 42rem;
}

/* For whom */
.forwhom { background: var(--bg); border-top: 1px solid var(--line); }
.who-grid {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}
.who-card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 18px;
  min-height: 100%;
  transition: border-color .25s ease, background .25s ease;
}
.who-card:hover {
  border-color: rgba(155, 58, 58, 0.4);
  background: #E4E0DA;
}
.who-num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--wine-soft);
  margin-bottom: 14px;
}
.who-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.who-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* FAQ */
.faq { background: var(--bg); border-top: 1px solid var(--line); }
.faq-list {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-family: var(--font-editorial);
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.25;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--wine-soft);
  transition: transform .25s ease;
}
.faq-item[open] summary::after {
  content: "–";
}
.faq-item p {
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 42rem;
}

/* Process */
.process { background: var(--bg-2); border-block: 1px solid var(--line); }
.steps {
  list-style: none;
  margin: 36px 0 36px;
  border-top: 1px solid var(--line);
}
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.step-num {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--wine-soft);
  padding-top: 6px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  margin-bottom: 8px;
}
.step p { color: var(--muted); font-size: 16px; max-width: 36rem; }

/* Gallery */
.work { padding-bottom: clamp(48px, 8vw, 80px); }
.gallery {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 max(8px, calc((100% - 1400px) / 2));
  grid-auto-flow: dense;
}
.gallery__item {
  margin: 0;
  overflow: hidden;
  background: transparent;
  aspect-ratio: 3/4;
  border-radius: 22px;
}
.gallery__item--wide { grid-column: 1 / -1; aspect-ratio: 16/10; }
.gallery__item--tall { /* на мобилке как обычная */ }
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(1.02) blur(0.85px);
  transition: transform .7s ease, filter .4s ease;
}
.gallery__item:hover img {
  transform: scale(1.03);
  filter: grayscale(0.2) contrast(1.06) brightness(1.02) blur(0.35px);
}

/* Education */
.education { background: var(--bg-2); border-top: 1px solid var(--line); }
.edu-cols {
  display: grid;
  gap: 36px;
  margin: 36px 0 48px;
}
.edu-list { display: grid; gap: 10px; }
.edu-list li {
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.diplom-carousel {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  max-width: 420px;
}
.diplom-carousel__viewport {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-3);
}
.diplom-carousel__track {
  display: flex;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}
.diplom {
  position: relative;
  display: block;
  flex: 0 0 100%;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bg-3);
}
.diplom img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: .92;
}
.diplom span {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.diplom-carousel__nav {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s, color .2s;
}
.diplom-carousel__nav:hover {
  background: var(--wine);
  border-color: var(--wine);
  color: #fff;
}
.diplom-carousel__dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}
.diplom-carousel__dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
}
.diplom-carousel__dots span.is-on {
  background: var(--wine-soft);
}

/* Contact */
.contact { background: var(--bg); }
.contact-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.contact-list {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: 28px 0 16px;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.contact-link:hover { background: var(--ink); color: var(--bg); }
.contact-hint {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
  max-width: 28rem;
}
.contact-photo {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4/3;
  border-radius: 28px 28px 10px 10px;
}

/* Scroll reveals — keyframes (не гасятся Windows «уменьшить движение») */
.reveal {
  opacity: 0;
  will-change: opacity, transform;
}
.reveal.is-in {
  animation-duration: 1.05s;
  animation-timing-function: cubic-bezier(.16, 1, .3, 1);
  animation-fill-mode: both;
  animation-name: reveal-up;
}
.reveal[data-reveal="left"].is-in { animation-name: reveal-left; }
.reveal[data-reveal="right"].is-in { animation-name: reveal-right; }
.reveal[data-reveal="up"].is-in { animation-name: reveal-up; }
.reveal[data-reveal="fade"].is-in { animation-name: reveal-fade; }
.reveal--hero.is-in { animation-duration: 1.15s; }
.plan-num.reveal.is-in { animation-duration: 1.3s; }
@keyframes reveal-up {
  from { opacity: 0; transform: translate3d(0, 56px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes reveal-left {
  from { opacity: 0; transform: translate3d(-56px, 14px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes reveal-right {
  from { opacity: 0; transform: translate3d(56px, 14px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes reveal-fade {
  from { opacity: 0; transform: translate3d(0, 16px, 0) scale(.96); }
  to { opacity: 1; transform: none; }
}
.contact-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04) brightness(1.02) blur(0.85px);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 100px;
}
.footer-grid {
  display: grid;
  gap: 24px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.footer-nav a {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.footer-nav a:hover { color: var(--ink); }
.footer-copy { font-size: 13px; }

.sticky-cta {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 45;
}
.sticky-cta[hidden] { display: none; }
.sticky-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 18px;
  border-radius: 999px;
  background: rgba(244, 242, 239, 0.94);
  border: 1px solid rgba(28, 27, 26, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(28, 27, 26, 0.14);
}
.sticky-cta p {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.sticky-cta__until {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--wine-soft);
  text-transform: uppercase;
}
.sticky-cta .btn { min-height: 42px; padding: 0 18px; }

/* Contact modal */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.contact-modal[hidden] { display: none !important; }
.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.55);
  backdrop-filter: blur(6px);
}
.contact-modal__card {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  padding: 36px 28px 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(26, 26, 26, 0.22);
}
.contact-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
}
.contact-modal__close:hover { color: var(--ink); }
.contact-modal__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wine-soft);
  margin-bottom: 10px;
}
.contact-modal__title {
  font-family: var(--font-editorial);
  font-size: clamp(28px, 5vw, 36px);
  line-height: 1.1;
  margin-bottom: 24px;
}
.contact-modal__links {
  display: grid;
  gap: 10px;
}
.contact-modal__link {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  transition: background .2s, border-color .2s, color .2s;
}
.contact-modal__link-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.contact-modal__link-value {
  grid-column: 1;
  font-size: 13px;
  color: var(--muted);
}
.contact-modal__arrow {
  grid-row: 1 / span 2;
  grid-column: 2;
  color: var(--muted);
}
.contact-modal__link:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.contact-modal__link:hover .contact-modal__link-value,
.contact-modal__link:hover .contact-modal__arrow { color: rgba(255,255,255,0.72); }

::selection { background: rgba(163, 61, 61, 0.45); color: #fff; }
:focus-visible {
  outline: 2px solid var(--wine-soft);
  outline-offset: 3px;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,.92);
  display: grid; place-items: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(920px, 100%); max-height: 90vh; object-fit: contain; }
.lightbox__close {
  position: absolute; top: 16px; right: 20px;
  font-size: 36px; line-height: 1; color: #fff;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 800px) {
  .who-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .footer-grid {
    grid-template-columns: 1.2fr 1.5fr auto;
    align-items: end;
  }
  .sticky-cta { display: none !important; }
  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
  }
  .plan {
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.7fr);
    align-items: center;
    gap: 32px;
    padding: 44px 8px 40px;
  }
  .plan-num {
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
  }
  .plan-num.reveal:not(.is-in) {
    opacity: 0;
    transform: translateY(calc(-50% + 18px)) scale(.96);
  }
  .plan-num.reveal.is-in {
    opacity: 1;
    transform: translateY(-50%);
  }
  .plan-side {
    justify-content: flex-end;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
  }
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .gallery__item { aspect-ratio: 3/4; }
  .gallery__item--tall { aspect-ratio: 3/4; }
  .gallery__item--wide { grid-column: 1 / -1; aspect-ratio: 21/9; }
  .edu-cols { grid-template-columns: 1fr 1fr; gap: 64px; }
  .diplom-carousel { max-width: 460px; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

@media (min-width: 1100px) {
  .who-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Не глушим анимации сайта: на Windows часто включено «уменьшить движение»
   и тогда весь лендинг становится статичным. */
