/* Стили сайта. Цвета и размеры собраны в переменных ниже, их удобно менять в одном месте.
   Палитра из визитки: глубокий фиолетовый, оранжевый акцент, тёплая «бумага» для блока кейсов. */
:root {
  --bg: #120a33;
  --surface: #1c1149;
  --text: #f3f0ff;
  --muted: #b5acd9;
  --line: rgba(237, 232, 255, 0.14);
  --accent: #ff7a2f;
  --lilac: #b9a7ff;

  --paper: #f6f2ea;
  --paper-text: #170c3f;
  --paper-muted: #5a5277;
  --paper-line: #e0d8c8;
  --accent-ink: #c4470a;      /* оранжевый для текста на светлом фоне */

  --radius: 24px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --header: 64px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 'Onest', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* Наклонённая бегущая строка и наклейки выходят за край экрана: обрезаем, чтобы страница не ездила вбок */
main { overflow: hidden; }
@supports (overflow: clip) { main { overflow: clip; } }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* Звёздочка из визитки: используется как маркер, разделитель и «живой» акцент */
.star {
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  flex: none;
  background: var(--accent);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.star--spin { animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- шапка ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  transition: background-color 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.top.is-scrolled {
  background: rgba(18, 10, 51, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.top__inner {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 24px;
}
.top__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.top__nav { display: flex; gap: 4px; margin-left: auto; }
.top__nav a {
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s, background-color 0.2s;
}
.top__nav a:hover { color: var(--text); background: var(--surface); }

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(28, 17, 73, 0.6);
}
.lang button {
  border: 0;
  background: none;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--bg); }
.lang button:not([aria-pressed="true"]):hover { color: var(--text); }

@media (max-width: 760px) {
  .top__nav { display: none; }
  .lang { margin-left: auto; }
}

/* ---------- первый экран ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding: clamp(32px, 6vw, 72px) 0 clamp(64px, 9vw, 120px);
  position: relative;
}
.hero::before {          /* мягкое свечение за текстом */
  content: "";
  position: absolute;
  inset: -10% auto auto -20%;
  width: 70vw;
  max-width: 900px;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(124, 92, 255, 0.28), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero__role {
  display: inline-block;
  font-size: 15px;
  color: var(--lilac);
  border: 1px solid rgba(185, 167, 255, 0.35);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 22px;
}
.hero__name {
  font-weight: 700;
  font-size: clamp(3.1rem, 8.6vw, 7.6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
}
.hero__name > span { display: block; }
.hero__last { color: var(--accent); }
.hero__last .star { width: 0.32em; height: 0.32em; margin-left: 0.1em; vertical-align: 0.42em; }
.hero__lead {
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.rotator {
  display: inline-block;
  color: var(--accent);
  position: relative;
  transition: opacity 0.28s, transform 0.28s;
}
.rotator::after {        /* «маркерное» подчёркивание */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.08em;
  height: 0.14em;
  border-radius: 1em;
  background: var(--accent);
  opacity: 0.45;
}
.rotator.is-out { opacity: 0; transform: translateY(0.35em); }
.hero__intro { color: var(--muted); max-width: 36em; font-size: clamp(1rem, 1.3vw, 1.12rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: var(--bg); }
.btn--accent:hover { background: #ff9152; }
.btn--ghost { border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--text); }

.hero__photo { position: relative; justify-self: center; width: min(100%, 460px); }
.hero__frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: #d8d8d8;
  aspect-ratio: 4 / 5;
  transform: rotate(2deg);
  box-shadow: 16px 16px 0 var(--accent);
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; }

.stickers { position: absolute; inset: 0; pointer-events: none; }
.sticker {
  position: absolute;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  animation: float 6s ease-in-out infinite;
}
.sticker--1 { top: 9%; left: -12%; background: var(--text); color: var(--bg); --r: -6deg; }
.sticker--2 { top: 46%; right: -10%; background: var(--lilac); color: var(--bg); --r: 5deg; animation-delay: -2s; }
.sticker--3 { bottom: 7%; left: -6%; background: var(--surface); color: var(--text); border: 1px solid var(--line); --r: -3deg; animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: rotate(var(--r)) translateY(0); }
  50% { transform: rotate(var(--r)) translateY(-8px); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero__photo { width: min(82%, 400px); margin-top: 8px; }
  .sticker { font-size: 13px; padding: 7px 12px; }
  .sticker--1 { left: -8%; }
  .sticker--2 { right: -8%; }
  .sticker--3 { left: -4%; }
}

/* ---------- бегущая строка ---------- */
.marquee {
  transform: rotate(-2deg);
  margin: 0 -4vw;
  padding: 6px 0;
}
.marquee__row {
  overflow: hidden;
  background: var(--accent);
  color: var(--bg);
  padding: 14px 0;
}
.marquee__row--back { background: var(--text); transform: rotate(3deg) translateY(-6px); position: relative; z-index: -1; }
.marquee__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
}
.marquee__track .star { background: currentColor; width: 0.7em; height: 0.7em; }
.marquee__row--back .marquee__track { animation-direction: reverse; animation-duration: 60s; }
.marquee__row--back .star { background: var(--accent); }
@keyframes marquee { to { transform: translateX(calc(-50% - 14px)); } }

/* ---------- общие заголовки ---------- */
.section-title {
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-note { color: var(--muted); font-size: 15px; }

/* ---------- цифры ---------- */
.stats { padding: clamp(80px, 11vw, 150px) 0 clamp(64px, 9vw, 120px); }
.stats .section-title { margin-bottom: clamp(28px, 4vw, 48px); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat {
  padding: 28px 24px 32px 0;
  border-bottom: 1px solid var(--line);
}
.stat:not(:nth-child(4n)) { border-right: 1px solid var(--line); }
.stat:not(:nth-child(4n + 1)) { padding-left: 24px; }
.stat__value {
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat__label { color: var(--muted); font-size: 15px; line-height: 1.45; max-width: 16em; }

@media (max-width: 900px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:not(:nth-child(4n)) { border-right: 0; }
  .stat:not(:nth-child(4n + 1)) { padding-left: 0; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 16px; }
  .stat:nth-child(even) { padding-left: 16px; }
}

/* ---------- кейсы (светлый блок) ---------- */
.paper {
  background: var(--paper);
  color: var(--paper-text);
  border-radius: clamp(28px, 4vw, 48px);
  padding: clamp(64px, 9vw, 120px) 0;
  --line: var(--paper-line);
  --muted: var(--paper-muted);
}
.cases { border-top: 1px solid var(--paper-line); }
.case { border-bottom: 1px solid var(--paper-line); }
.case__head {
  display: grid;
  grid-template-columns: 56px 1fr auto 40px;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
}
.case__head::-webkit-details-marker { display: none; }
.case__num { font-size: 15px; font-weight: 600; color: var(--paper-muted); font-variant-numeric: tabular-nums; }
.case__title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.case__name {
  font-size: clamp(1.4rem, 2.8vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  transition: transform 0.3s, color 0.2s;
}
.case__role { color: var(--paper-muted); font-size: 15px; }
.case__metric { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.case__metric strong {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent-ink);
  white-space: nowrap;
}
.case__metric span { font-size: 13px; color: var(--paper-muted); max-width: 14em; margin-top: 4px; }
.case__toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--paper-line);
  position: relative;
  transition: background-color 0.2s, border-color 0.2s, transform 0.3s;
}
.case__toggle::before, .case__toggle::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 2px;
  margin: -1px 0 0 -7px;
  background: currentColor;
  border-radius: 2px;
}
.case__toggle::after { transform: rotate(90deg); transition: transform 0.3s; }
.case[open] .case__toggle { background: var(--paper-text); color: var(--paper); border-color: var(--paper-text); }
.case[open] .case__toggle::after { transform: rotate(0deg); }
.case__head:hover .case__name { transform: translateX(6px); color: var(--accent-ink); }

.case__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 48px;
  padding: 0 56px 36px 76px;
  animation: open 0.4s ease;
}
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }
.case__text { font-size: 17px; }
.case__results li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}
.case__results li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 13px; height: 13px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.case__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(23, 12, 63, 0.07);
}
.case__link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.case__link:hover { color: var(--accent-ink); }
.arrow { display: inline-block; transition: transform 0.2s; }
a:hover .arrow { transform: translate(2px, -2px); }

@media (max-width: 760px) {
  .case__head { grid-template-columns: 1fr 36px; gap: 6px 14px; padding: 22px 0; }
  .case__num { grid-column: 1 / -1; }
  .case__title { grid-column: 1; grid-row: 2; }
  .case__toggle { grid-column: 2; grid-row: 2 / span 2; align-self: start; width: 36px; height: 36px; }
  .case__metric { grid-column: 1; grid-row: 3; flex-direction: row; align-items: baseline; gap: 8px; text-align: left; margin-top: 8px; }
  .case__metric span { margin-top: 0; }
  .case__body { grid-template-columns: 1fr; padding: 0 0 28px; }
  .case__text { font-size: 16px; }
}

/* ---------- видео ---------- */
.video { padding: clamp(80px, 11vw, 150px) 0 clamp(48px, 7vw, 96px); }
.vgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 24px);
}
.vtile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  border: 0;
  padding: 0;
  text-align: left;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  background:
    radial-gradient(120% 80% at 20% 10%, hsl(var(--hue, 260) 85% 62% / 0.9), transparent 60%),
    radial-gradient(90% 70% at 90% 90%, rgba(255, 122, 47, 0.75), transparent 60%),
    var(--surface);
  isolation: isolate;
}
.vtile__poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.vtile:hover .vtile__poster { transform: scale(1.06); }
.vtile__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 5, 30, 0.92) 0%, rgba(10, 5, 30, 0.35) 45%, rgba(10, 5, 30, 0.1) 70%, rgba(10, 5, 30, 0.45) 100%);
  z-index: -1;
}
.vtile__platform, .vtile__stat {
  position: absolute;
  top: 14px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 5, 30, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.vtile__platform { left: 14px; }
.vtile__stat { right: 14px; }
.vtile__play {
  position: absolute;
  left: 50%; top: 46%;
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 22px;
  transition: transform 0.3s;
  box-shadow: 0 10px 30px rgba(255, 122, 47, 0.45);
}
.vtile:hover .vtile__play { transform: scale(1.12); }
.vtile__body {
  position: absolute;
  left: 18px; right: 18px; bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vtile__body strong { font-size: clamp(1.05rem, 1.8vw, 1.4rem); line-height: 1.15; letter-spacing: -0.02em; }
.vtile__body span { font-size: 14px; color: rgba(255, 255, 255, 0.78); }
.vtile__body .vtile__soon { color: var(--accent); font-weight: 600; margin-top: 4px; }
.vtile--nolink { cursor: default; }
.vtile--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 20px;
  color: var(--muted);
  background: transparent;
  border: 2px dashed var(--line);
  cursor: default;
}
.vtile__plus {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px dashed var(--line);
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 760px) {
  .vgrid { grid-template-columns: repeat(2, 1fr); }
  .vtile { border-radius: 16px; }
  .vtile__platform, .vtile__stat { top: 10px; font-size: 11px; padding: 3px 8px; }
  .vtile__platform { left: 10px; }
  .vtile__stat { right: 10px; max-width: calc(100% - 20px); }
  .vtile__platform + .vtile__stat { top: 38px; }
  .vtile__play { width: 48px; height: 48px; margin: -24px 0 0 -24px; font-size: 17px; }
  .vtile__body { left: 12px; right: 12px; bottom: 12px; }
  .vtile__body span { font-size: 12.5px; }
}

/* Плеер поверх страницы */
.player {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: none;
  max-height: none;
  overflow: visible;
}
.player::backdrop { background: rgba(8, 4, 24, 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.player__frame { width: min(92vw, 1100px); aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.player__frame--vertical { width: min(92vw, 420px, calc(84vh * 9 / 16)); aspect-ratio: 9 / 16; }
.player__frame--file { width: auto; aspect-ratio: auto; background: none; }
.player__frame--file video { display: block; max-width: 92vw; max-height: 84vh; border-radius: 16px; background: #000; }
.player__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player__close {
  position: absolute;
  top: -52px; right: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.player__close:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------- навыки ---------- */
.skills { padding: clamp(48px, 7vw, 96px) 0; }
.skills .section-title { margin-bottom: clamp(28px, 4vw, 48px); }
.skills__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 80px); }
.skills__groups { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 28px; align-content: start; }
.skills__subtitle {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 14px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 15px;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.chips li:hover { border-color: var(--accent); color: var(--accent); }

.langs { margin-bottom: 40px; }
.lang-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.lang-row__name { font-weight: 600; }
.lang-row__grade { color: var(--muted); font-size: 15px; }
.lang-row__bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.lang-row__bar span {
  display: block;
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--lilac), var(--accent));
  border-radius: 4px;
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s;
}
.lang-row.reveal:not(.is-visible) .lang-row__bar span { transform: scaleX(0); }

.edu li { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.edu__years { font-size: 13px; color: var(--accent); font-weight: 600; }
.edu strong { font-weight: 600; line-height: 1.35; }
.edu li > span:last-child { color: var(--muted); font-size: 15px; line-height: 1.45; }

@media (max-width: 900px) {
  .skills__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .skills__groups { grid-template-columns: 1fr; }
}

/* ---------- вне работы ---------- */
.life {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(48px, 7vw, 96px) 0;
}
.life__photo {
  background: var(--text);
  color: var(--bg);
  padding: 12px 12px 16px;
  border-radius: 18px;
  transform: rotate(-1.5deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
.life__photo img { border-radius: 10px; width: 100%; }
.life__photo figcaption { font-size: 14px; padding: 12px 6px 0; color: #4b4470; }
.life__text .section-title { margin-bottom: 20px; }
.life__text p { color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); }

@media (max-width: 900px) {
  .life { grid-template-columns: 1fr; }
  .life__photo { transform: rotate(-1deg); }
}

/* ---------- контакты ---------- */
.contacts { padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); }
.contacts__box {
  background: var(--accent);
  color: var(--bg);
  border-radius: clamp(28px, 4vw, 48px);
  padding: clamp(32px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.contacts__box::after {   /* большая звезда-водяной знак */
  content: "";
  position: absolute;
  right: -6%;
  top: -18%;
  width: clamp(220px, 34vw, 460px);
  aspect-ratio: 1;
  background: rgba(18, 10, 51, 0.08);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: spin 40s linear infinite;
  pointer-events: none;
}
.contacts__title {
  font-size: clamp(2.2rem, 5.8vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 700;
  max-width: 12em;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.contacts__text { font-size: clamp(1.05rem, 1.5vw, 1.25rem); margin-bottom: clamp(28px, 4vw, 44px); position: relative; z-index: 1; }
.contacts__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 12px;
  position: relative;
  z-index: 1;
}
.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(18, 10, 51, 0.08);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
  height: 100%;
}
.contact:hover { background: var(--bg); color: var(--text); transform: translateY(-2px); }
.contact--main { background: var(--bg); color: var(--text); }
.contact--main:hover { background: #241763; }
.contact__label { font-size: 13px; font-weight: 600; opacity: 0.7; }
.contact__text { grid-row: 2; font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
.contact .arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 22px; }

/* ---------- подвал ---------- */
.bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
.bottom a {
  text-decoration: none;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.bottom a:hover { border-color: var(--text); color: var(--text); }

/* ---------- появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
