/* ============================================================
   Наталья Афанасьева — сайт репетитора по английскому языку
   Дизайн-система: тёмный графит + бирюзовый акцент
   ============================================================ */

/* ---------- Шрифты ---------- */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/roboto-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/roboto-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Переменные ---------- */
:root {
  --bg: #1f2830;
  --bg-deep: #151d24;
  --bg-deeper: #11181e;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #ffffff;
  --text-soft: #c7d6e0;
  --muted: #9aadb9;
  --muted-2: #8ba0ad;
  --accent: #05b0db;
  --accent-bright: #6ee7ff;
  --accent-deep: #057a96;
  --accent-soft: rgba(5, 176, 219, 0.14);
  --gold: #ffcf5c;
  --light-bg: #f4f6f8;
  --light-text: #14212b;
  --light-muted: #5b6c79;
  --font-head: "Montserrat", "Arial", sans-serif;
  --font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
  --nav-h: 80px;
  --section-y: clamp(72px, 9.5vw, 132px);
  --radius-lg: 24px;
  --radius-md: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Сброс ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

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

button { color: inherit; }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

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

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

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 4px;
}

/* ---------- Утилиты ---------- */
.container {
  width: min(var(--container), calc(100% - 56px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: var(--section-y) 0;
  overflow: hidden;
}

.section--dark { background: var(--bg); }

.section--light {
  background-color: var(--light-bg);
  background-image: url("../assets/img/paper.webp");
  background-size: 640px;
  color: var(--light-text);
}

.accent { color: var(--accent-bright); }

.star { color: var(--gold); }

.no-js .reveal { opacity: 1 !important; transform: none !important; }

.skip-link {
  position: fixed;
  top: -120px;
  left: 18px;
  z-index: 4000;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: #06222b;
  font-weight: 700;
  font-size: 13px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 14px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }

.btn--primary {
  background: var(--accent);
  color: #06222b;
  box-shadow: 0 12px 30px rgba(5, 176, 219, 0.22);
}
.btn--primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(5, 176, 219, 0.32);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: rgba(5, 176, 219, 0.08);
  transform: translateY(-2px);
}

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

.btn--small { padding: 11px 18px; font-size: 10px; }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--nav-h);
  background: linear-gradient(180deg, rgba(15, 22, 28, 0.88) 0%, rgba(15, 22, 28, 0.55) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(15, 22, 28, 0.94);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  z-index: 1002;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(5, 176, 219, 0.65);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(5, 176, 219, 0.28), rgba(5, 176, 219, 0.05));
  color: #fff;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 20px rgba(5, 176, 219, 0.14);
}

.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-text strong {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.brand-text small {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav > a:not(.btn) {
  position: relative;
  padding: 8px 0;
  color: #c3d2dc;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav > a:not(.btn):hover,
.nav > a:not(.btn).is-active { color: #fff; }
.nav > a:not(.btn):hover::after,
.nav > a:not(.btn).is-active::after { transform: scaleX(1); }

.nav-cta { margin-left: 4px; }

.nav-note { display: none; }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 1002;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 13px;
  width: 20px;
  height: 1.5px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }

.nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--nav-h) + 42px);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: -12% 0;
  z-index: -3;
  background: url("../assets/img/hero-hex.webp") center / cover no-repeat;
  opacity: 0.82;
  will-change: transform;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(31, 40, 48, 0.18) 0%, rgba(31, 40, 48, 0.42) 34%, rgba(31, 40, 48, 0.88) 58%, rgba(31, 40, 48, 0.98) 78%, var(--bg) 100%),
    linear-gradient(180deg, rgba(20, 28, 36, 0.92) 0%, rgba(20, 28, 36, 0.1) 24%, rgba(20, 28, 36, 0) 62%, rgba(20, 28, 36, 0.55) 88%, var(--bg) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  padding-bottom: 34px;
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 3.2vw, 48px);
  align-items: center;
  flex: 1;
}

.hero-media {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 440px;
  padding: 20px 0 0;
}

.portrait-glow {
  position: absolute;
  left: 50%;
  top: 24%;
  width: min(92%, 540px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 176, 219, 0.42) 0%, rgba(5, 176, 219, 0.12) 42%, transparent 68%);
  filter: blur(26px);
  z-index: 0;
}

.portrait-ring {
  position: absolute;
  left: 50%;
  top: 10%;
  width: min(88%, 520px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  z-index: 0;
  animation: spin 70s linear infinite;
}

.portrait {
  position: relative;
  z-index: 1;
  width: auto;
  height: clamp(440px, 66vh, 700px);
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 34px 55px rgba(0, 0, 0, 0.45));
  animation: portraitIn 1s var(--ease) both;
}

.hero-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(14, 23, 29, 0.72);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #dce8ef;
  font-size: 10.5px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  animation: badgeIn 0.9s 0.5s var(--ease) both;
}
.hero-badge strong { font-weight: 600; color: #fff; }

.hero-badge--top { top: 7%; right: -2%; }

.badge-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  flex: 0 0 auto;
}
.badge-icon svg { width: 18px; height: 18px; }

.hero-badge--rating {
  left: -3%;
  bottom: 4%;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 14px 18px;
}
.hero-badge--rating small {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.rating-value {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}
.rating-stars {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.14em;
  line-height: 1.4;
}
.rating-stars--large { font-size: 18px; }

.hero-copy { position: relative; z-index: 2; padding-left: clamp(0px, 1.5vw, 24px); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: heroUp 0.8s 0.05s var(--ease) both;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(5, 176, 219, 0.45);
  animation: pulse 2.4s ease-out infinite;
}

.hero h1 {
  margin-bottom: 22px;
  font-family: var(--font-head);
  font-size: clamp(44px, 5.4vw, 78px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  animation: heroUp 0.9s 0.12s var(--ease) both;
}
.h1-line { display: block; }
.h1-line--accent {
  color: transparent;
  background: linear-gradient(98deg, #ffffff 0%, #c3f5ff 38%, #45d4f4 72%, #05b0db 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  max-width: 560px;
  color: var(--text-soft);
  font-size: clamp(15.5px, 1.25vw, 18px);
  line-height: 1.65;
  animation: heroUp 0.9s 0.2s var(--ease) both;
}
.hero-lead .accent { font-weight: 500; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 24px;
  animation: heroUp 0.9s 0.28s var(--ease) both;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: #91a6b3;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  animation: heroUp 0.9s 0.36s var(--ease) both;
}
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 26px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: heroUp 1s 0.44s var(--ease) both;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 24px;
  background: rgba(14, 22, 28, 0.62);
}
.hero-stat strong {
  font-family: var(--font-head);
  font-size: clamp(22px, 2vw, 29px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}
.hero-stat span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  right: 24px;
  bottom: 150px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.45);
}
.scroll-cue__line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, transparent, var(--accent));
  animation: scrollLine 2s ease-in-out infinite;
}
.scroll-cue__text {
  font-size: 8.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

/* ---------- Заголовки секций ---------- */
.section-head { margin-bottom: clamp(40px, 5.5vw, 68px); }

.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.section-kicker::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

.section-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
}

.section h2 {
  font-family: var(--font-head);
  font-size: clamp(30px, 4.2vw, 54px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.section-intro {
  max-width: 430px;
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.section--light .section-kicker { color: var(--accent-deep); }
.section--light .section-intro { color: var(--light-muted); }

/* ---------- О себе ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.76fr);
  gap: clamp(36px, 5.5vw, 78px);
  align-items: start;
}

.about-copy p {
  max-width: 690px;
  margin-bottom: 16px;
  color: #b8c8d2;
  font-size: 15.5px;
  line-height: 1.7;
}
.about-copy .lead {
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.48;
  letter-spacing: -0.01em;
}

.timeline {
  margin-top: 36px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 0 0 24px 24px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(5, 176, 219, 0.16);
}
.timeline-year {
  padding-top: 1px;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.timeline-body strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}
.timeline-body span { color: var(--muted-2); font-size: 12px; }

.about-aside { display: flex; flex-direction: column; gap: 14px; }

.about-photo {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}
.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(0.96);
}
.about-photo figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 20px 18px;
}
.about-photo figcaption strong {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
}
.about-photo figcaption span { color: var(--muted); font-size: 11px; }

.principle-card {
  padding: 22px;
  border: 1px solid rgba(5, 176, 219, 0.26);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(5, 176, 219, 0.15), rgba(5, 176, 219, 0.025));
}
.principle-label {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.principle-card p { color: #d3e1e9; font-size: 13.5px; line-height: 1.6; }

.about-mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-mini-stats div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.about-mini-stats strong {
  font-family: var(--font-head);
  color: var(--accent-bright);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.1;
}
.about-mini-stats span { color: var(--muted); font-size: 10px; line-height: 1.4; }

.approach {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(48px, 6vw, 76px);
}
.approach-card {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.approach-card:hover {
  transform: translateY(-4px);
  border-color: rgba(5, 176, 219, 0.35);
  background: linear-gradient(160deg, rgba(5, 176, 219, 0.09), rgba(255, 255, 255, 0.02));
}
.approach-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-bright);
}
.approach-icon svg { width: 21px; height: 21px; }
.approach-card h3 {
  margin-bottom: 7px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.approach-card p { color: var(--muted); font-size: 13px; line-height: 1.6; }

.lesson-block {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: center;
  margin-top: clamp(52px, 6vw, 80px);
  padding-top: clamp(40px, 5vw, 60px);
  border-top: 1px solid var(--line);
}
.lesson-copy h3 {
  margin-bottom: 22px;
  font-family: var(--font-head);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 16px;
}
.steps li:last-child { padding-bottom: 0; }
.steps > li > span {
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding-top: 3px;
}
.steps strong { display: block; margin-bottom: 1px; font-size: 14px; font-weight: 500; }
.steps p { color: var(--muted); font-size: 12.5px; line-height: 1.55; }

.lesson-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.shot { display: flex; flex-direction: column; gap: 8px; }
.shot-btn,
.result-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.shot-btn:hover,
.result-btn:hover { border-color: rgba(5, 176, 219, 0.45); }
.shot-btn img,
.result-btn img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.shot-btn:hover img,
.result-btn:hover img { transform: scale(1.035); }

.shot-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(12, 20, 26, 0.78);
  color: #fff;
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.shot-btn:hover .shot-zoom,
.result-btn:hover .shot-zoom,
.doc-card:hover .doc-open { opacity: 1; transform: none; }

.shot figcaption,
.result-figure figcaption {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
}

/* ---------- Занятия ---------- */
.services { background: linear-gradient(180deg, #1f2830 0%, #1a232b 100%); }

.services-pattern {
  position: absolute;
  inset: 0;
  background: url("../assets/img/hero-hex.webp") center / cover no-repeat;
  opacity: 0.06;
  filter: grayscale(0.3);
  pointer-events: none;
}

.services .container { position: relative; z-index: 1; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(5, 176, 219, 0.36);
  background: linear-gradient(160deg, rgba(5, 176, 219, 0.1), rgba(255, 255, 255, 0.02));
}
.service-num {
  position: absolute;
  top: 8px;
  right: 16px;
  color: rgba(255, 255, 255, 0.055);
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  transition: color 0.35s var(--ease);
}
.service-card:hover .service-num { color: rgba(5, 176, 219, 0.14); }

.service-tag {
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 5px 9px;
  border: 1px solid rgba(5, 176, 219, 0.3);
  border-radius: 999px;
  background: rgba(5, 176, 219, 0.08);
  color: var(--accent);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.service-card h3 {
  margin-bottom: 8px;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.service-card p {
  flex: 1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.service-price {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.service-price small { color: var(--muted-2); font-family: var(--font-body); font-size: 10px; font-weight: 400; }

.price-panel {
  margin-top: 48px;
  padding: clamp(24px, 3.5vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  background: rgba(12, 19, 24, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.price-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.price-head .section-kicker { margin-bottom: 10px; }
.price-head h3 {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.price-head > p {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 44px;
}
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px;
}
.price-row span:first-child { color: #d2e0e8; }
.price-row span:last-child {
  color: var(--accent-bright);
  font-weight: 500;
  white-space: nowrap;
}
.price-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.price-note__badge {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 8px;
  background: var(--accent);
  color: #06222b;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
}
.price-note p { color: var(--muted); font-size: 11.5px; line-height: 1.55; }

/* ---------- Результаты ---------- */
.results { background: var(--bg-deep); }

.results-bg {
  position: absolute;
  inset: -10%;
  background: url("../assets/img/lessons/lesson-1.jpg") center / cover no-repeat;
  opacity: 0.1;
  filter: blur(7px) saturate(0.55);
  transform: scale(1.06);
  pointer-events: none;
}
.results::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(21, 29, 36, 0.72) 22%, rgba(21, 29, 36, 0.82) 100%);
  pointer-events: none;
}
.results .container { position: relative; z-index: 1; }

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.result-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
}
.result-stat strong {
  color: var(--accent-bright);
  font-family: var(--font-head);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.result-stat span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-highlight {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 30px;
  margin-top: 20px;
  padding: 20px 24px;
  border-left: 2px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: rgba(5, 176, 219, 0.055);
}
.result-highlight__label {
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.result-highlight p { color: #c9d8e1; font-size: 13px; }
.result-highlight strong { color: #fff; font-weight: 500; }

.result-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}
.result-figure { display: flex; flex-direction: column; gap: 10px; }
.result-figure figcaption { display: flex; flex-direction: column; gap: 2px; }
.result-figure figcaption strong { color: #fff; font-size: 14px; font-weight: 500; }
.result-figure figcaption span { color: var(--muted); font-size: 12px; }

/* ---------- Отзывы ---------- */
.reviews { background: linear-gradient(180deg, #151d24 0%, #1a232b 100%); }

.reviews-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.rating-card {
  display: flex;
  align-items: center;
  gap: 18px;
}
.rating-big {
  color: var(--accent-bright);
  font-family: var(--font-head);
  font-size: 58px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.rating-card p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.review-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}
.review-stars {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.24em;
}
.review-text {
  flex: 1;
  color: #cfdbe3;
  font-size: 14px;
  line-height: 1.65;
}
.review-reply {
  margin-top: 16px;
  padding: 12px 14px;
  border-left: 2px solid var(--accent);
  background: rgba(5, 176, 219, 0.05);
}
.review-reply span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.review-reply p { color: #a9bcc7; font-size: 11.5px; line-height: 1.55; }

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.review-author { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
}
.review-author strong { display: block; font-size: 12px; font-weight: 500; }
.review-author span { display: block; color: var(--muted-2); font-size: 9.5px; }
.review-footer time { color: var(--muted-2); font-size: 9.5px; white-space: nowrap; }

.review-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 28px;
}

/* ---------- Документы ---------- */
.docs { color: var(--light-text); }

.docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.doc-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid #e1e8ee;
  border-radius: 20px;
  background: #fff;
  text-align: left;
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: 0 18px 44px rgba(22, 42, 56, 0.07);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.doc-card:hover {
  transform: translateY(-4px);
  border-color: #c9dce6;
  box-shadow: 0 28px 60px rgba(22, 42, 56, 0.12);
}

.doc-image {
  position: relative;
  display: block;
  height: 340px;
  background: #eef2f5;
  overflow: hidden;
}
.doc-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #eef2f5;
  transition: transform 0.6s var(--ease);
}
.doc-card:hover .doc-image img { transform: scale(1.02); }

.doc-open {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(20, 32, 42, 0.86);
  color: #fff;
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.doc-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 22px 22px;
  color: var(--light-text);
}
.doc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}
.doc-year {
  color: var(--accent-deep);
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.doc-badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: #e9f7fb;
  color: #056e88;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.doc-info strong {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.doc-info > span:last-child { color: var(--light-muted); font-size: 12px; line-height: 1.45; }

.docs-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 16px 20px;
  border: 1px solid #e1e8ee;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}
.docs-note__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: #e9f7fb;
  color: var(--accent-deep);
}
.docs-note__icon svg { width: 17px; height: 17px; }
.docs-note p { color: #4d606d; font-size: 12px; }
.docs-note a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.docs-note a:hover { color: #034f63; }

/* ---------- Контакты ---------- */
.contact {
  background: var(--bg-deep);
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(5, 176, 219, 0.24), transparent 44%),
    radial-gradient(circle at 12% 90%, rgba(5, 176, 219, 0.12), transparent 38%),
    url("../assets/img/hero-hex.webp") right center / cover no-repeat;
  opacity: 0.5;
  pointer-events: none;
}
.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(21, 29, 36, 0.97) 0%, rgba(21, 29, 36, 0.9) 48%, rgba(21, 29, 36, 0.72) 100%);
  pointer-events: none;
}
.contact .container { position: relative; z-index: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.contact-copy h2 {
  margin-bottom: 20px;
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.contact-copy h2 .accent {
  color: transparent;
  background: linear-gradient(96deg, #c3f5ff, #05b0db);
  -webkit-background-clip: text;
  background-clip: text;
}
.contact-lead {
  max-width: 470px;
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.65;
}
.contact-list {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.contact-list li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.contact-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 4px;
}
.contact-list a { color: #fff; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--accent-bright); }
.contact-note { margin-top: 18px; color: var(--muted-2); font-size: 11.5px; }

.contact-form {
  padding: clamp(24px, 3.4vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.022));
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.contact-form h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.form-intro { margin: 6px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 13px; }
.field > span {
  color: #a4b7c3;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.field > span b { color: var(--accent); font-weight: 500; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(8, 14, 18, 0.56);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: #8398a4; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(8, 14, 18, 0.75);
  box-shadow: 0 0 0 3px rgba(5, 176, 219, 0.13);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aadb9' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.field select option { background: #1f2830; color: #fff; }
.field textarea { min-height: 88px; resize: vertical; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 4px 0 14px;
  color: #8fa3b0;
  font-size: 10.5px;
  line-height: 1.5;
  cursor: pointer;
}
.checkbox input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: var(--accent);
  cursor: pointer;
}
.checkbox a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; }

.form-note { margin-top: 10px; color: #8ba0ad; font-size: 9.5px; line-height: 1.5; }
.form-status { min-height: 0; margin-top: 10px; color: var(--accent-bright); font-size: 11px; line-height: 1.5; }
.form-status:empty { display: none; }

.field.is-invalid input { border-color: #ff7a7a; box-shadow: 0 0 0 3px rgba(255, 122, 122, 0.12); }
.checkbox.is-invalid { color: #ff9b9b; }

/* ---------- Подвал ---------- */
.footer {
  padding: 54px 0 24px;
  border-top: 1px solid var(--line);
  background: var(--bg-deeper);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.8fr;
  gap: 40px;
  align-items: start;
}
.footer-brand p { max-width: 270px; margin-top: 14px; color: var(--muted-2); font-size: 11.5px; line-height: 1.6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: start; padding-top: 6px; }
.footer-nav a {
  color: #9fb2be;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-nav a:hover { color: var(--accent-bright); }
.footer-contact { display: flex; flex-direction: column; gap: 7px; padding-top: 4px; }
.footer-contact a { color: #c4d3dd; font-size: 11.5px; }
.footer-contact a:hover { color: var(--accent-bright); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.footer-bottom p { color: #8ba0ad; font-size: 9.5px; line-height: 1.5; }

/* ---------- Лайтбокс ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.lightbox.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 12, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1200px, 94vw);
  height: min(92vh, 940px);
}
.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  max-height: 100%;
}
.lightbox-figure img {
  width: auto;
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}
.lightbox-figure figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  max-width: 780px;
  text-align: center;
}
.lightbox-figure strong { color: #fff; font-family: var(--font-head); font-size: 15px; font-weight: 700; }
.lightbox-figure span { color: #a9bac5; font-size: 11.5px; line-height: 1.5; }
.lightbox-count { margin-top: 4px; color: var(--accent) !important; font-size: 9px !important; letter-spacing: 0.16em; text-transform: uppercase; }

.lightbox-close,
.lightbox-nav {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(5, 176, 219, 0.18); border-color: var(--accent); transform: scale(1.05); }
.lightbox-close svg,
.lightbox-nav svg { width: 20px; height: 20px; }

.lightbox-close { position: absolute; top: 0; right: 0; z-index: 3; }
.lightbox-nav { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); }
.lightbox-nav:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-nav--prev { left: 0; }
.lightbox-nav--next { right: 0; }

/* ---------- Анимации ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes heroUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes portraitIn {
  from { opacity: 0; transform: translateY(26px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes badgeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(5, 176, 219, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(5, 176, 219, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 176, 219, 0); }
}
@keyframes spin {
  to { transform: translateX(-50%) rotate(360deg); }
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.25; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1160px) {
  .nav { gap: 18px; }
  .nav > a:not(.btn) { font-size: 9.5px; letter-spacing: 0.12em; }
  .hero h1 { font-size: clamp(46px, 6.4vw, 82px); }
  .hero-stat { padding: 16px 18px; }
}

@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-card:last-child { grid-column: 1 / -1; }
  .approach { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1.15fr 0.85fr; }
  .scroll-cue { display: none; }
}

@media (max-width: 980px) {
  :root { --nav-h: 70px; }

  /* backdrop-filter создаёт containing block для position: fixed,
     поэтому на мобильных отключаем его — иначе меню не растягивается на экран */
  .site-header {
    background: rgba(15, 22, 28, 0.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-toggle { display: block; margin-left: auto; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 90px 24px 40px;
    background:
      radial-gradient(circle at 50% 0%, rgba(5, 176, 219, 0.14), transparent 42%),
      #0c1318;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .nav > a:not(.btn) {
    padding: 10px 0;
    color: #fff;
    font-family: var(--font-head);
    font-size: clamp(20px, 5vw, 28px);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
  }
  .nav > a:not(.btn)::after { display: none; }
  .nav > a:not(.btn).is-active { color: var(--accent-bright); }
  .nav-cta {
    margin: 18px 0 0;
    padding: 15px 26px;
    font-size: 11px;
  }
  .nav-note {
    display: block;
    margin-top: 26px;
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.16em;
    text-align: center;
    text-transform: uppercase;
  }

  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 44px); }
  .hero-inner { padding-bottom: 40px; }
  .hero-main { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { order: 1; padding-left: 0; text-align: left; }
  .hero-media { order: 2; min-height: 0; margin-top: 8px; }
  .portrait { height: clamp(380px, 58vh, 560px); }
  .hero-badge--top { top: 6%; right: 0; }
  .hero-badge--rating { left: 0; bottom: 2%; }
  .hero-stats { margin-top: 22px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }

  .section-head-grid { grid-template-columns: 1fr; gap: 18px; }
  .section-intro { max-width: 620px; padding-bottom: 0; }

  .about-grid { grid-template-columns: 1fr; }
  .about-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .about-photo { grid-row: span 2; }
  .lesson-block { grid-template-columns: 1fr; }
  .lesson-gallery { max-width: 760px; }

  .result-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-gallery { grid-template-columns: 1fr; max-width: 760px; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { max-width: 680px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 36px); }
  :root { --section-y: 70px; }

  .hero h1 { font-size: clamp(40px, 12vw, 60px); }
  .hero-lead { font-size: 15px; }
  .hero-actions .btn { padding: 14px 20px; }
  .hero-meta { gap: 8px 16px; font-size: 8.5px; }
  .hero-stat { padding: 14px 16px; }
  .hero-stat strong { font-size: 22px; }
  .hero-badge--top { top: 2%; }
  .hero-badge--rating { bottom: 0; }

  .about-aside { grid-template-columns: 1fr; }
  .about-photo { grid-row: auto; }
  .about-mini-stats { grid-template-columns: 1fr 1fr; }
  .approach { grid-template-columns: 1fr; }
  .lesson-gallery { grid-template-columns: 1fr; }

  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }

  .price-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .price-head > p { white-space: normal; }
  .price-grid { grid-template-columns: 1fr; gap: 0; }

  .result-stats { grid-template-columns: 1fr 1fr; }
  .result-highlight { flex-direction: column; align-items: flex-start; gap: 6px; }
  .result-gallery { grid-template-columns: 1fr; }

  .reviews-top { flex-direction: column; align-items: stretch; }
  .reviews-top .btn { width: 100%; }
  .review-grid { grid-template-columns: 1fr; }
  .review-card:last-child { grid-column: auto; }

  .docs-grid { grid-template-columns: 1fr; }
  .doc-image { height: 320px; }

  .contact-list li { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

  .lightbox-inner { width: 100%; height: 100%; }
  .lightbox-figure { padding: 58px 12px 74px; }
  .lightbox-figure img { max-height: 68vh; }
  .lightbox-close { top: 10px; right: 10px; }
  .lightbox-nav { top: auto; bottom: 12px; transform: none; }
  .lightbox-nav:hover { transform: scale(1.05); }
  .lightbox-nav--prev { left: calc(50% - 58px); }
  .lightbox-nav--next { right: calc(50% - 58px); }
}

@media (max-width: 520px) {
  .brand-text strong { font-size: 12px; }
  .brand-mark { width: 38px; height: 38px; border-radius: 10px; font-size: 12px; }
  .hero { padding-top: calc(var(--nav-h) + 30px); }
  .hero h1 { font-size: clamp(38px, 12.5vw, 54px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-badge { font-size: 9px; padding: 9px 11px; }
  .hero-badge--top { right: -4px; }
  .hero-badge--rating { left: -4px; padding: 10px 13px; }
  .rating-value { font-size: 24px; }
  .hero-stats { border-radius: 14px; }
  .hero-stat { padding: 12px 14px; }
  .hero-stat span { font-size: 8px; }
  .portrait-ring { display: none; }
  .section h2 { font-size: clamp(27px, 8.6vw, 36px); }
  .timeline li { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding-left: 18px; }
  .doc-image { height: 280px; }
  .contact-copy h2 { font-size: clamp(32px, 10vw, 44px); }
}

@media (hover: none) {
  .shot-zoom,
  .doc-open { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-bg { transform: none !important; }
}

/* ---------- Юридическая страница ---------- */
.legal-header {
  border-bottom: 1px solid var(--line);
  background: rgba(15, 22, 28, 0.94);
}
.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--nav-h);
}
.legal-page {
  min-height: 80vh;
  padding: clamp(56px, 8vw, 100px) 0;
  background:
    radial-gradient(circle at 85% 0%, rgba(5, 176, 219, 0.12), transparent 40%),
    var(--bg);
}
.legal-container { max-width: 780px; }
.legal-container h1 {
  margin-bottom: 18px;
  font-family: var(--font-head);
  font-size: clamp(24px, 7vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
  hyphens: auto;
}
.legal-lead {
  max-width: 680px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
}
.legal-date {
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.legal-container h2 {
  margin: 38px 0 10px;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.legal-container p,
.legal-container li {
  color: #b8c8d2;
  font-size: 14px;
  line-height: 1.7;
}
.legal-container p + p { margin-top: 10px; }
.legal-container ul { margin: 8px 0 8px 20px; list-style: disc; }
.legal-container li { margin-bottom: 4px; }
.legal-container a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; }
.legal-container a:hover { color: #fff; }
.legal-back { margin-top: 40px; }
.legal-page + .footer { padding-top: 26px; }

@media (max-width: 360px) {
  .legal-nav { gap: 8px; }
  .legal-nav .brand-text small { display: none; }
  .legal-nav .brand-text strong { font-size: 11px; }
  .legal-nav .btn {
    flex: 0 0 auto;
    padding: 9px 12px;
    font-size: 9px;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }
}

/* ---------- Иконка-аватар в шапке и подвале ---------- */
.brand-mark--face {
  padding: 0;
  border: 1px solid rgba(5, 176, 219, 0.55);
  border-radius: 11px;
  background: #0c1a20;
  box-shadow: none;
  overflow: hidden;
}
.brand-mark--face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
