/* =========================================================
   Визитка — универсальная личная страница
   Светлая и тёмная темы, адаптив, без сборки
   ========================================================= */

:root {
  --bg: #f6f4ef;
  --surface: #fffdf9;
  --surface-2: #efece4;
  --ink: #14161b;
  --muted: #5f6470;
  --line: rgba(20, 22, 27, 0.11);
  --line-strong: rgba(20, 22, 27, 0.2);
  --accent: #4f46e5;
  --accent-2: #8b5cf6;
  --accent-soft: #ece9ff;
  --warm: #ff7a59;
  --btn-fg: #ffffff;
  --shadow-sm: 0 1px 2px rgba(20, 22, 27, 0.06), 0 8px 24px rgba(20, 22, 27, 0.05);
  --shadow-lg: 0 28px 70px rgba(28, 25, 70, 0.16);
  --header-bg: rgba(246, 244, 239, 0.82);
  --radius: 20px;
  --radius-lg: 32px;
  --container: 1120px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #0b0c10;
  --surface: #14161d;
  --surface-2: #1b1e27;
  --ink: #f1f2f7;
  --muted: #9aa1b2;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #8c8cff;
  --accent-2: #c084fc;
  --accent-soft: rgba(140, 140, 255, 0.14);
  --warm: #ff8f72;
  --btn-fg: #0b0c10;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
  --header-bg: rgba(11, 12, 16, 0.8);
}

/* ---------- Сброс и база ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  transform: translate(-50%, -160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.btn:hover .icon {
  transform: translateX(4px);
}

.btn--primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.32);
}

[data-theme="dark"] .btn--primary {
  color: #0b0c10;
  box-shadow: 0 12px 30px rgba(140, 140, 255, 0.2);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.4);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 11px 20px;
  font-size: 14px;
}

.btn--block {
  width: 100%;
}

/* ---------- Шапка ---------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.is-scrolled {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(20, 22, 27, 0.05);
}

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.28);
}

.logo__text {
  font-size: 15px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.nav a.is-active {
  color: var(--ink);
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover {
  background: var(--surface);
  border-color: var(--line-strong);
  transform: rotate(-8deg);
}

.icon-btn .icon {
  width: 19px;
  height: 19px;
}

.icon--sun {
  display: none;
}

[data-theme="dark"] .icon--sun {
  display: block;
}

[data-theme="dark"] .icon--moon {
  display: none;
}

.burger {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.burger span {
  position: absolute;
  left: 50%;
  width: 17px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.burger span:first-child {
  top: 17px;
}

.burger span:last-child {
  top: 23px;
}

.burger[aria-expanded="true"] span:first-child {
  top: 20px;
  transform: translateX(-50%) rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
  top: 20px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ---------- Индикатор прокрутки ---------- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--warm));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- Главный экран ---------- */

.hero {
  position: relative;
  padding: clamp(130px, 17vh, 190px) 0 clamp(60px, 8vw, 110px);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  animation: drift 16s ease-in-out infinite alternate;
}

.blob--1 {
  width: 520px;
  height: 520px;
  top: -180px;
  right: -60px;
  background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.45), transparent 68%);
}

.blob--2 {
  width: 420px;
  height: 420px;
  bottom: -200px;
  left: -120px;
  background: radial-gradient(circle at 60% 40%, rgba(255, 122, 89, 0.32), transparent 66%);
  animation-delay: -6s;
}

.blob--3 {
  width: 320px;
  height: 320px;
  top: 40%;
  left: 38%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.18), transparent 70%);
  animation-delay: -11s;
}

[data-theme="dark"] .blob {
  opacity: 0.38;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-30px, 30px, 0) scale(1.08);
  }
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

[data-theme="dark"] .eyebrow {
  background: rgba(255, 255, 255, 0.03);
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(34, 197, 94, 0.5);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.hero__title {
  font-size: clamp(40px, 6.2vw, 74px);
  letter-spacing: -0.025em;
}

.hero__name {
  display: block;
}

.hero__role {
  display: block;
  margin-top: 10px;
  font-size: 0.56em;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.hero__roles {
  margin-top: 14px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.grad {
  background: linear-gradient(105deg, var(--accent) 10%, var(--accent-2) 55%, var(--warm) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 33ch;
  margin-top: 26px;
  font-size: clamp(16px, 1.35vw, 18px);
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 46px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.stats__item {
  padding-right: clamp(20px, 3.4vw, 42px);
  margin-right: clamp(20px, 3.4vw, 42px);
  border-right: 1px solid var(--line);
}

.stats__item:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
}

.stats dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.stats dd {
  margin: 2px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.stats dd strong {
  margin-right: 4px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
}

/* Портрет */

.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 430px);
}

.portrait {
  position: relative;
  aspect-ratio: 1 / 1.06;
  border-radius: 40px 40px 40px 120px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: inherit;
  pointer-events: none;
}

.portrait__ring {
  position: absolute;
  inset: -22px;
  z-index: -1;
  border: 1px dashed rgba(79, 70, 229, 0.35);
  border-radius: 56px 56px 56px 140px;
  animation: spin 70s linear infinite;
}

[data-theme="dark"] .portrait__ring {
  border-color: rgba(140, 140, 255, 0.28);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  line-height: 1.35;
  animation: bob 6s ease-in-out infinite;
}

.float-card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.float-card small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.float-card--top {
  top: 8%;
  right: -4%;
}

.float-card--bottom {
  bottom: 9%;
  left: -6%;
  animation-delay: -3s;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

.float-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.float-card__icon svg {
  width: 20px;
  height: 20px;
}

.float-card__avatars {
  display: flex;
  flex-shrink: 0;
}

.float-card__avatars i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: -9px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: linear-gradient(140deg, #ffe0d4, #ffc3b0);
  color: #8a3c24;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.float-card__avatars i:first-child {
  margin-left: 0;
  background: linear-gradient(140deg, #ded9ff, #c3b8ff);
  color: #3f2f95;
}

.float-card__avatars i:last-child {
  background: linear-gradient(140deg, #d9f2e4, #b6e3cc);
  color: #1d6b48;
}

/* ---------- Секции ---------- */

.section {
  padding: clamp(64px, 9vw, 118px) 0;
  scroll-margin-top: 88px;
}

.section--tint {
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}

.section__head {
  margin-bottom: clamp(36px, 5vw, 58px);
}

.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.section__label {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.section__title {
  font-size: clamp(30px, 4.2vw, 48px);
}

.section__lead {
  max-width: 38ch;
  font-size: 15.5px;
  color: var(--muted);
}

/* ---------- Обо мне ---------- */

.about {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.about__text p + p {
  margin-top: 16px;
  color: var(--muted);
}

.about__lead {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.45;
  color: var(--ink) !important;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
}

.tags li {
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tags li:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.about__card {
  position: sticky;
  top: 100px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.about__card h3 {
  margin-bottom: 20px;
  font-size: 22px;
}

.facts li {
  display: flex;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.facts li:first-child {
  border-top: 0;
  padding-top: 0;
}

.facts li:last-child {
  padding-bottom: 0;
}

.facts__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.facts__icon svg {
  width: 19px;
  height: 19px;
}

.facts strong {
  display: block;
  margin-bottom: 1px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Услуги ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s ease;
}

.service::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--warm));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s var(--ease);
}

.service:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.service:hover::before {
  transform: scaleX(1);
}

.service__num {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  color: var(--line-strong);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.service__icon svg {
  width: 23px;
  height: 23px;
}

.service h3 {
  font-size: 21px;
  letter-spacing: -0.01em;
}

.service p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.service__price {
  margin-top: auto !important;
  padding-top: 20px;
  font-weight: 600;
  color: var(--ink) !important;
}

/* ---------- Результаты в цифрах ---------- */

.impact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.metric {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.metric::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent-soft);
  opacity: 0.55;
}

.metric:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.metric strong {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(105deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric span {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Опыт ---------- */

.timeline {
  max-width: 980px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.job {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 34px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.job:first-child {
  padding-top: 0;
  border-top: 0;
}

.job__period {
  padding-top: 4px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.job__period strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.job__body {
  position: relative;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.job__body::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.job__company {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.job h3 {
  font-size: 23px;
  line-height: 1.25;
}

.job__body > p:not(.job__company) {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--muted);
}

.job__points {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.job__points li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  color: var(--muted);
}

.job__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

.job--compact h3 {
  font-size: 19px;
}

.job--compact .job__body > p {
  max-width: 72ch;
}

/* ---------- Публикации ---------- */

.speaking__lead {
  max-width: 62ch;
  margin-bottom: 30px;
  font-size: 15.5px;
  color: var(--muted);
}

.speaking {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.talks {
  border-bottom: 1px solid var(--line);
}

.talk {
  display: grid;
  grid-template-columns: 112px 1fr 18px;
  gap: 16px;
  align-items: center;
  padding: 18px 4px;
  border-top: 1px solid var(--line);
  transition: background-color 0.25s ease;
}

.talk:first-child {
  border-top: 0;
}

.talk:hover {
  background: var(--surface);
  border-radius: 12px;
}

.talk__src {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

.talk__title {
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}

.talk svg {
  width: 16px;
  height: 16px;
  justify-self: end;
  color: var(--muted);
  transition: transform 0.25s var(--ease), color 0.25s ease;
}

.talk:hover svg {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.teaching {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.teaching > div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.teaching span {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.teaching h3 {
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}

.teaching p {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
}

.edu {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.edu__block + .edu__block {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.edu h3 {
  margin-bottom: 14px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.edu li {
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.edu li:first-child {
  padding-top: 0;
  border-top: 0;
}

.edu li strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
}

.edu li span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
}

.edu__langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.edu__langs span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Контакты ---------- */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(40px, 6vw, 76px);
  align-items: start;
}

.contact__list {
  margin-top: 34px;
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.contact__list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.contact__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--accent);
}

.contact__icon svg {
  width: 19px;
  height: 19px;
}

.contact__value {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact__value small {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact__value a {
  font-size: 15.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact__value a:hover {
  color: var(--accent);
}

.contact__text {
  font-size: 15.5px;
  font-weight: 500;
}

.contact__note {
  max-width: 40ch;
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--muted);
}

.copy-btn {
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.2s ease;
}

.copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.copy-btn.is-done {
  border-color: #22c55e;
  color: #16a34a;
}

.contact__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.contact__socials a {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.contact__socials a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.3s var(--ease);
}

.contact__socials a:hover {
  color: var(--ink);
}

.contact__socials a:hover::after {
  transform: scaleX(1);
}

.contact__card {
  padding: clamp(24px, 3.4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.contact__form-title {
  font-size: 24px;
}

.contact__form-sub {
  margin: 8px 0 26px;
  font-size: 14px;
  color: var(--muted);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.field label {
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 65%, transparent);
}

.field input:hover,
.field textarea:hover {
  border-color: var(--line-strong);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface);
}

.field__error {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: #e04545;
}

.field.has-error input,
.field.has-error textarea {
  border-color: #e04545;
  box-shadow: 0 0 0 3px rgba(224, 69, 69, 0.1);
}

.field.has-error .field__error {
  display: block;
}

.form .btn {
  margin-top: 8px;
}

.form__note {
  margin-top: 14px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.form__success {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.08);
  color: #15803d;
  font-size: 13.5px;
}

[data-theme="dark"] .form__success {
  color: #6ee7a8;
}

.form__success[hidden] {
  display: none;
}

.form__success svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

/* ---------- Подвал ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}

.footer__up {
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer__up:hover {
  color: var(--ink);
}

/* ---------- Появление при прокрутке ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Адаптив ---------- */

@media (max-width: 1100px) {
  .portrait__ring {
    display: none;
  }
}

@media (max-width: 1024px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__title {
    font-size: clamp(38px, 5.6vw, 60px);
  }

  .float-card--top {
    right: -2%;
  }

  .float-card--bottom {
    left: -4%;
  }
}

@media (max-width: 900px) {
  .header__inner {
    grid-template-columns: auto 1fr auto;
    min-height: 68px;
  }

  .nav {
    position: fixed;
    inset: 68px 0 auto;
    z-index: 90;
    flex-direction: column;
    gap: 2px;
    padding: 18px 24px 30px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0s;
  }

  .nav a {
    padding: 14px 8px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 16px;
    color: var(--ink);
  }

  .nav a.is-active::after {
    display: none;
  }

  .burger {
    display: block;
  }

  .header__cta {
    display: none;
  }

  .hero {
    padding-top: 116px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .hero__content {
    max-width: 620px;
  }

  .hero__lead {
    max-width: 46ch;
  }

  .hero__visual {
    width: min(100%, 380px);
    margin-inline: auto;
    justify-self: center;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about__card {
    position: static;
  }

  .section__head--row {
    display: block;
  }

  .section__lead {
    margin-top: 18px;
    max-width: 56ch;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), 100% - 32px);
  }

  .logo__text {
    display: none;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: 18px 0;
  }

  .stats__item {
    flex: 1 1 30%;
    padding-right: 16px;
    margin-right: 16px;
  }

  .stats__item:nth-child(3) {
    flex-basis: 100%;
    padding-right: 0;
    margin-right: 0;
    border-right: 0;
  }

  .stats dd {
    font-size: 12.5px;
  }

  .stats dd strong {
    font-size: 22px;
  }

  .float-card--top {
    top: 4%;
    right: -2%;
    padding: 11px 14px;
  }

  .float-card--bottom {
    bottom: 5%;
    left: -2%;
    padding: 11px 14px;
  }

  .float-card small {
    max-width: 120px;
  }

  .portrait {
    border-radius: 28px 28px 28px 84px;
  }

  .portrait::after {
    border-radius: 20px 20px 20px 72px;
  }

  .portrait__ring {
    display: none;
  }

  .contact__list li {
    gap: 12px;
  }

  .copy-btn {
    padding: 5px 10px;
    font-size: 11px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

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

@media (max-width: 900px) {
  .hero__role {
    font-size: 0.62em;
  }

  .impact__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .speaking {
    grid-template-columns: 1fr;
  }

  .edu {
    max-width: 640px;
  }
}

@media (max-width: 720px) {
  .job {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 30px 0;
  }

  .job__period {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    padding-top: 0;
  }

  .job__period strong {
    margin-bottom: 0;
  }

  .job__body {
    padding-left: 0;
    border-left: 0;
  }

  .job__body::before {
    display: none;
  }

  .teaching {
    grid-template-columns: 1fr;
  }

  .talk {
    grid-template-columns: 100px 1fr 18px;
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .impact__grid {
    grid-template-columns: 1fr;
  }

  .talk {
    grid-template-columns: 1fr 18px;
    gap: 6px 12px;
  }

  .talk__src {
    grid-column: 1 / -1;
  }
}

/* ---------- Уважение к настройкам пользователя ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
