/* ============================================================
   Yandex Sans (YS) — фирменные шрифты с CDN Яндекса
   ============================================================ */
@font-face {
  font-family: "YS Text";
  src: url("https://yastatic.net/s3/home/fonts/ys/4/text-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "YS Text";
  src: url("https://yastatic.net/s3/home/fonts/ys/4/text-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "YS Text";
  src: url("https://yastatic.net/s3/home/fonts/ys/4/text-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "YS Text";
  src: url("https://yastatic.net/s3/home/fonts/ys/4/text-black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "YS Text Wide";
  src: url("https://yastatic.net/s3/home/fonts/ys/4/text-wide-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "YS Text Wide";
  src: url("https://yastatic.net/s3/home/fonts/ys/4/text-wide-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "YS Text Wide";
  src: url("https://yastatic.net/s3/home/fonts/ys/4/text-wide-black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "YS Display Wide";
  src: url("https://yastatic.net/s3/home/fonts/ys/4/display-wide-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "YS Display Wide";
  src: url("https://yastatic.net/s3/home/fonts/ys/4/display-wide-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "YS Display Wide";
  src: url("https://yastatic.net/s3/home/fonts/ys/4/display-wide-black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   Палитра — тёмная тема (по умолчанию, референс deeptechnight.ru)
   ============================================================ */
:root {
  color-scheme: dark;

  /* брендовые цвета */
  --color-white: #fff;
  --color-red: #FC3F1D;
  --color-red-hovered: #7C030E;
  --color-black: #000;
  --color-orange: #FFB152;
  --color-ember: #DC7D3C;
  --color-flame: #E42F17;
  --color-wine: #530007;
  --color-wine-2: #600009;
  --color-yellow: #FFE601;

  /* типографика */
  --font-geo: "YS Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-wide: "YS Text Wide", "YS Display Wide", Helvetica, Arial, sans-serif;
  --font-display: "YS Display Wide", "YS Text Wide", Helvetica, Arial, sans-serif;

  /* семантические */
  --navy: #000;
  --navy-2: #0a0a0a;
  --ink: #F9F9F9;
  --muted: rgba(255, 255, 255, 0.65);
  --muted-2: rgba(255, 255, 255, 0.4);
  --gold: #FC3F1D;
  --gold-dark: #7C030E;
  --bg: #000;
  --bg-alt: #0d0d0e;
  --line: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --card-inset: 1px 1px 1px 0 rgba(255, 255, 255, 0.1) inset, -1px -1px 1px 0 rgba(255, 255, 255, 0.05) inset;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 30px 60px -30px rgba(252, 63, 29, 0.4);
  --container: 1140px;

  /* градиенты и эффекты */
  --title-gradient: linear-gradient(281.03deg, #F9F9F9 51.42%, rgba(255, 255, 255, 0.6) 87.91%, rgba(255, 255, 255, 0.6) 98.44%);
  --red-gradient: linear-gradient(160deg, #FC3F1D 0%, #FFB152 70%, #FC3F1D 100%);
  --accent-veil: linear-gradient(90deg, #FC3F1D 0%, rgba(252, 63, 29, 0.3) 50%, #FFB152 80%, #FC3F1D 100%);
  --stats-glow: radial-gradient(50% 60% at 50% 0%, rgba(83, 0, 7, 0.6), rgba(228, 47, 23, 0.3) 55%, transparent 78%);

  /* шапка */
  --header-bg: linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(255, 255, 255, 0.06));
  --header-bg-solid: #000;
  --header-border: rgba(255, 255, 255, 0.1);
  --header-text: #fff;
  --header-muted: rgba(255, 255, 255, 0.6);
  --logo-mark-bg: rgba(255, 255, 255, 0.14);

  /* ghost-кнопки */
  --ghost-border: rgba(255, 255, 255, 0.4);
  --ghost-hover-bg: #fff;
  --ghost-hover-text: #000;

  /* тёмная секция (контакты) */
  --contacts-bg: radial-gradient(96.14% 108.67% at 50% -6.75%, rgba(0, 0, 0, 0) 6.38%, #010101 30.02%, #530007 53.37%, #E42F17 88.68%, rgba(0, 0, 0, 0) 97.93%), #000;
  --on-dark-text: #fff;
  --on-dark-muted: rgba(255, 255, 255, 0.7);
  --glass-card-bg: rgba(255, 255, 255, 0.05);
  --glass-card-border: rgba(255, 255, 255, 0.12);
  --glass-card-bg-hover: rgba(255, 255, 255, 0.09);

  /* featured-карточка */
  --featured-bg: linear-gradient(160deg, #140305, #0d0d0e);
  --featured-title: #fff;
  --featured-muted: rgba(255, 255, 255, 0.65);

  /* модалка / футер */
  --panel-bg: #0a0a0a;
  --footer-bg: #000;
}

/* ============================================================
   Светлая тема
   ============================================================ */
[data-theme="light"] {
  color-scheme: light;

  --ink: #14100e;
  --muted: rgba(20, 16, 14, 0.65);
  --muted-2: rgba(20, 16, 14, 0.45);
  --gold: #E2290B;
  --gold-dark: #B01F06;
  --bg: #faf9f7;
  --bg-alt: #f1eeea;
  --line: rgba(20, 16, 14, 0.12);
  --glass: rgba(20, 16, 14, 0.04);
  --glass-strong: rgba(20, 16, 14, 0.08);
  --card-inset: 1px 1px 1px 0 rgba(255, 255, 255, 0.5) inset, -1px -1px 1px 0 rgba(255, 255, 255, 0.2) inset;
  --shadow: 0 30px 60px -30px rgba(226, 41, 11, 0.35);
  --title-gradient: linear-gradient(281.03deg, #14100e 51.42%, rgba(20, 16, 14, 0.62) 87.91%, rgba(20, 16, 14, 0.62) 98.44%);
  --red-gradient: linear-gradient(160deg, #E2290B 0%, #FF6A2B 70%, #E2290B 100%);
  --accent-veil: linear-gradient(90deg, #E2290B 0%, rgba(226, 41, 11, 0.5) 50%, #FF6A2B 80%, #E2290B 100%);
  --stats-glow: radial-gradient(50% 60% at 50% 0%, rgba(252, 63, 29, 0.14), rgba(252, 63, 29, 0.05) 55%, transparent 78%);
  --header-bg: rgba(255, 255, 255, 0.85);
  --header-bg-solid: #ffffff;
  --header-border: rgba(20, 16, 14, 0.08);
  --header-text: #14100e;
  --header-muted: rgba(20, 16, 14, 0.6);
  --logo-mark-bg: rgba(226, 41, 11, 0.12);
  --ghost-border: rgba(20, 16, 14, 0.4);
  --ghost-hover-bg: #14100e;
  --ghost-hover-text: #fff;
  --contacts-bg: radial-gradient(700px 320px at 50% 0%, rgba(252, 63, 29, 0.08), transparent 62%), #faf9f7;
  --on-dark-text: #14100e;
  --on-dark-muted: rgba(20, 16, 14, 0.7);
  --glass-card-bg: rgba(255, 255, 255, 0.6);
  --glass-card-border: rgba(20, 16, 14, 0.12);
  --glass-card-bg-hover: rgba(226, 41, 11, 0.06);
  --featured-bg: linear-gradient(160deg, #fff, #fbf6f2);
  --featured-title: #14100e;
  --featured-muted: rgba(20, 16, 14, 0.62);
  --panel-bg: #ffffff;
  --footer-bg: #ffffff;
}

/* ============================================================
   База
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font-geo);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img, svg { display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

::selection { background: var(--gold); color: var(--color-white); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--header-border);
  transition: box-shadow 0.3s;
}
.header.scrolled {
  box-shadow: 0 12px 40px -20px rgba(0, 0, 0, 0.6);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-wide);
  font-weight: 900;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--header-text);
}
.logo__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--logo-mark-bg);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__list {
  display: flex;
  gap: 28px;
}
.nav__link {
  font-family: var(--font-geo);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--header-muted);
  transition: color 0.2s;
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s;
}
.nav__link:hover, .nav__link.active { color: var(--header-text); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--header-text);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.theme-toggle__icon { width: 20px; height: 20px; }
.theme-toggle__icon--sun { display: block; }
.theme-toggle__icon--moon { display: none; }
[data-theme="light"] .theme-toggle__icon--sun { display: none; }
[data-theme="light"] .theme-toggle__icon--moon { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 100px;
  font-family: var(--font-geo);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--accent {
  background: var(--gold);
  color: var(--color-white);
  box-shadow: 0 14px 34px -14px rgba(252, 63, 29, 0.7);
}
.btn--accent:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -16px rgba(124, 3, 14, 0.8);
}
.btn--ghost {
  border-color: var(--ghost-border);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  background: var(--ghost-hover-bg);
  color: var(--ghost-hover-text);
  border-color: transparent;
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 150px 0 0;
  background: var(--bg);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 560px;
  background: radial-gradient(700px 420px at 85% -10%, rgba(252, 63, 29, 0.22), transparent 60%);
  filter: blur(30px);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; gap: 64px; }
.hero__content { max-width: 860px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-geo);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero__title {
  font-family: var(--font-wide);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 22px;
}
.hero__accent {
  font-family: var(--font-wide);
  font-style: normal;
  font-weight: 900;
  background: var(--accent-veil);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__subtitle {
  max-width: 620px;
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 36px 0 0;
}
.hero__stats::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -40px;
  transform: translateX(-50%);
  width: 82%;
  height: 220px;
  background: var(--stats-glow);
  filter: blur(30px);
  pointer-events: none;
}
.hero__stats > * { position: relative; z-index: 1; }
.stat__value {
  font-family: var(--font-wide);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 6px;
}
.stat__label {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ---------- Sections ---------- */
.section {
  padding: 104px 0;
}
.section--alt { background: var(--bg-alt); }
.section--navy {
  background: var(--contacts-bg);
  color: var(--on-dark-text);
}
.section__title {
  font-family: var(--font-wide);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.18;
  margin-bottom: 56px;
  max-width: 760px;
}
.section__title--light { color: transparent; }
.eyebrow--light { color: var(--gold); }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}
.about__media { text-align: center; }
.avatar-img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(252, 63, 29, 0.15), 0 30px 60px -30px rgba(252, 63, 29, 0.5);
  margin: 0 auto 18px;
}
.about__media-caption { color: var(--muted-2); font-size: 0.95rem; }
.about__text {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 18px;
  max-width: 640px;
}
.about__text strong { color: var(--ink); font-weight: 700; }
.about__subtitle {
  font-family: var(--font-wide);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 30px 0 16px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chips li {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}
.chips li:first-child {
  background: var(--color-yellow);
  border-color: transparent;
  color: #14100e;
  font-weight: 700;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--card-inset);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: var(--card-inset), 0 30px 60px -30px rgba(252, 63, 29, 0.45);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--glass-strong);
  color: var(--gold);
  margin-bottom: 22px;
}
.card__icon svg { width: 26px; height: 26px; }
.card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.card__text { color: var(--muted); font-size: 0.96rem; }

/* skills */
.cards--skills .card { background: var(--glass); border: 1px solid var(--line); }
.cards--skills .card--dark { border-top: 3px solid var(--gold); }
.card--dark {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  box-shadow: var(--card-inset);
}
.card--dark .card__title { color: var(--ink); }
.card--dark .card__list li { color: var(--muted); }
.card--dark .card__note { color: var(--gold); }
.card__list { margin: 16px 0 22px; display: grid; gap: 10px; }
.card__list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.card--dark .card__list li::before { background: var(--gold); }
.card__note {
  font-size: 0.85rem;
  color: var(--gold);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.cards--formats .card, .cards--formats .card--dark { display: flex; flex-direction: column; }
.card__cta { margin-top: auto; padding-top: 24px; width: 100%; }

/* ---------- Why ---------- */
.why {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 48px;
}
.why__item {
  display: flex;
  gap: 22px;
}
.why__num {
  font-family: var(--font-wide);
  font-style: normal;
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
  min-width: 44px;
  background: var(--red-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.why__title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.why__text { color: var(--muted); font-size: 0.95rem; }

/* ---------- Formats ---------- */
.cards--formats { align-items: stretch; }
.card--outline { display: flex; flex-direction: column; }
.card--featured {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--featured-bg);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  color: var(--featured-title);
  box-shadow: 0 30px 70px -30px rgba(252, 63, 29, 0.5);
}
.card--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 60% at 50% 0%, rgba(252, 63, 29, 0.22), transparent 60%);
  pointer-events: none;
}
.card--featured .card__title { color: var(--featured-title); }
.card--featured .card__text { color: var(--featured-muted); }
.card--featured .card__list li { color: var(--featured-muted); }
.card--featured .card__note { color: var(--featured-muted); }
.card--featured .card__list li::before { background: var(--gold); }
.format__tag {
  align-self: flex-start;
  position: relative;
  z-index: 1;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--glass-strong);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.card--featured .format__tag {
  color: #14100e;
  background: var(--color-yellow);
  border-color: transparent;
}

/* ---------- Results ---------- */
.results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}
.result {
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  box-shadow: var(--card-inset);
}
.result__value {
  font-family: var(--font-wide);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  background: var(--title-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 8px;
}
.result__text { color: var(--muted); font-size: 0.94rem; }

.cases__heading {
  font-family: var(--font-wide);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 48px 0 26px;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
}
.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.case {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--card-inset);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.case:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--card-inset), 0 30px 60px -30px rgba(252, 63, 29, 0.45);
}
.case__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
}
.case__title {
  font-family: var(--font-wide);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ink);
}
.case__period {
  font-size: 0.78rem;
  color: var(--gold);
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.case__role {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}
.case__text { font-size: 0.93rem; color: var(--muted); }

.cases__cta {
  margin-top: 48px;
  padding: 36px 40px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.cases__cta-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
}
.cases__placeholder {
  grid-column: 1 / -1;
  padding: 44px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

/* ---------- Education ---------- */
.edu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.edu__item {
  display: flex;
  gap: 22px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--card-inset);
}
.edu__year {
  font-family: var(--font-wide);
  font-style: normal;
  font-weight: 900;
  font-size: 1.5rem;
  line-height: 1;
  min-width: 60px;
  color: var(--gold);
}
.edu__name {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.edu__spec { font-size: 0.92rem; color: var(--muted); }

/* ---------- Contacts ---------- */
.contacts__lead {
  max-width: 560px;
  color: var(--on-dark-muted);
  font-size: 1.05rem;
  margin-bottom: 44px;
}
.contacts__geo {
  color: var(--gold);
  font-size: 0.98rem;
  font-weight: 600;
  margin: -28px 0 44px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contacts__geo::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}
.contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--glass-card-bg);
  border: 1px solid var(--glass-card-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: background 0.3s, transform 0.3s, border-color 0.3s;
}
.contact:hover {
  background: var(--glass-card-bg-hover);
  border-color: var(--gold);
  transform: translateY(-4px);
}
.contact__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--glass-strong);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.contact__icon svg { width: 22px; height: 22px; }
.contact__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}
.contact__value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--on-dark-text);
  word-break: break-word;
}
.contacts__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.contacts__hint { color: var(--on-dark-muted); font-size: 0.92rem; }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 30px 30px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-bg);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.modal__title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}
.modal__text {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}
.modal__options { display: grid; gap: 12px; }
.modal__option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--glass);
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.modal__option:hover {
  border-color: var(--gold);
  background: var(--glass-strong);
  transform: translateY(-2px);
}
.modal__option-icon {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--glass-strong);
  color: var(--gold);
}
.modal__option-icon svg { width: 20px; height: 20px; }
.modal__option-body { display: grid; gap: 2px; }
.modal__option-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.modal__option-hint {
  font-size: 0.82rem;
  color: var(--muted);
  word-break: break-word;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-2);
  font-size: 0.88rem;
}

/* ---------- Utilities ---------- */
.about__body { min-width: 0; }
.stat { min-width: 0; }
.count { display: inline-block; }
.logo__text { letter-spacing: 0.02em; }
.js-open-cta { }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Burger ---------- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--header-border);
  border-radius: 12px;
  background: var(--glass);
  cursor: pointer;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--header-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cards, .cards--skills { grid-template-columns: repeat(2, 1fr); }
  .cards--formats { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about__media { display: flex; align-items: center; gap: 24px; text-align: left; }
  .avatar-img { margin: 0; width: 160px; height: 160px; }
  .contacts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--header-bg-solid);
    border-bottom: 1px solid var(--header-border);
    padding: 20px 24px 28px;
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    z-index: 99;
  }
  .nav.open { transform: translateY(0); }
  .nav__list { flex-direction: column; gap: 6px; margin-bottom: 20px; }
  .nav__link { display: block; padding: 12px 0; font-size: 1.05rem; }
  .nav__cta { width: 100%; }
  .burger { display: flex; }
  .theme-toggle { margin-left: auto; }

  .hero { padding-top: 130px; }
  .cards, .cards--skills, .cases, .why, .results, .edu { grid-template-columns: 1fr; }
  .results { margin-bottom: 56px; }
  .section { padding: 72px 0; }
  .hero__stats { gap: 24px; }
  .case__head { flex-direction: column; gap: 4px; }
}