/* ── Хиро ─────────────────────────────── */
.hero {
  background: var(--blue-dark);
  color: var(--white);
  min-height: var(--screen);
  display: flex;
  flex-direction: column;
  position: relative;
  margin-top: calc(-1 * var(--site-nav-h));
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.10) 1px, transparent 1px);
  background-size: 26px 26px;
}
.hero-center {
  margin: auto;
  text-align: center;
  padding: 64px 24px;
}
.hero-photo {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  display: block;
  margin: 0 auto 28px;
}
.hero h1 {
  margin: 28px 0 0;
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(44px, 5.6vw, 78px);
  line-height: 1.12;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}
.hero .sub {
  margin: 36px auto 0;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  text-wrap: pretty;
}
.hero .sub strong { color: var(--white); }
.hero-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  padding: 0 48px 32px;
}
.hero-bottom .hero-spacer { justify-self: start; }
.hero-bottom .hero-links { justify-self: end; }
.hero-scroll { display: flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(255, 255, 255, 0.65); cursor: pointer; }
.hero-scroll:hover { color: rgba(255, 255, 255, 0.9); }
.hero-scroll .chev { font-size: 18px; line-height: 1; }
.hero-links { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.hero-links a { color: var(--white); text-decoration: none; }
.hero-links a:hover { text-decoration: underline; }
.hero-spacer { width: 180px; }

/* ── Кейсы ────────────────────────────── */
.cases { padding: 0; }

.cases-rule {
  border-top: 2px solid var(--blue);
}

.cases-head {
  position: sticky;
  top: var(--site-nav-h);
  z-index: 5;
  padding: 24px 0 28px;
  margin-bottom: 0;
  background: var(--paper);
}
.cases-head .sec-label { color: var(--blue); display: block; margin-bottom: 12px; }
.cases-head h2 {
  margin: 0;
  font-family: var(--disp);
  font-weight: 600;
  font-size: 44px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.cases-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  align-items: start;
  padding-top: 12px;
}

.case-nav {
  position: sticky;
  top: calc(var(--site-nav-h) + var(--cases-head-h));
  align-self: start;
  display: flex;
  flex-direction: column;
}
.case-nav a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--faint);
  border-left: 2px solid var(--tint-line);
  padding: 12px 0 12px 18px;
  transition: color 0.15s, border-color 0.15s;
}
.case-nav a:hover { color: var(--blue); }
.case-nav a.active { color: var(--blue); border-left-color: var(--blue); font-weight: 700; }

.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  min-height: calc(var(--screen) - var(--site-nav-h) - var(--cases-head-h));
  padding: 0 0 48px;
  scroll-margin-top: 0;
}

.case-text {
  min-width: 0;
}

.case-media {
  width: 100%;
  min-width: 0;
}

.case--articles {
  grid-template-rows: auto 1fr;
}
.case--articles .case-text {
  grid-column: 1;
  grid-row: 1;
}
.case--articles .case-media {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
}
.case--articles-top .case-media {
  align-self: start;
}
.case--articles::after {
  content: "";
  grid-column: 1 / -1;
  grid-row: 2;
}

.case--social {
  position: relative;
  row-gap: 20px;
  column-gap: 56px;
}
.case--gallery .case-media {
  position: relative;
  align-self: start;
}
.case--social .case-media {
  position: relative;
  align-self: start;
}
.case-social-tabs {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
}
.case-social-chip {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--tint-line);
  border-radius: 999px;
  padding: 7px 16px;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.case-social-chip:hover {
  border-color: var(--blue);
  background: var(--tint);
}
.case-social-chip.is-active {
  background: var(--tint);
  border-color: var(--blue);
  font-weight: 700;
}
.case-social-text {
  position: relative;
}
.case-social-slide {
  display: none;
}
.case-social-slide.is-active {
  display: block;
}
.case-social-media {
  position: relative;
  width: 100%;
}
.case-social-media-slide {
  display: none;
  width: 100%;
}
.case-social-media-slide.is-active {
  display: block;
}
.case-summary.is-empty,
.case-facts.is-empty .fact {
  min-height: 96px;
}

.case-num { color: var(--faint); }
.case h3 {
  margin: 14px 0 18px;
  font-family: var(--disp);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--blue);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--blue);
  background: var(--tint);
  border: 1px solid var(--tint-line);
  border-radius: 999px;
  padding: 7px 16px;
  white-space: nowrap;
}
.case-summary {
  background: var(--tint);
  border-radius: 14px;
  padding: 24px 28px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  text-wrap: pretty;
}
.case-summary strong { color: var(--blue); }
.case-summary a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--tint-line);
  text-underline-offset: 3px;
}
.case-summary a:hover { text-decoration-color: var(--blue); }
.case-facts {
  margin-top: 16px;
}
.fact {
  background: var(--tint);
  border-radius: 14px;
  padding: 24px 28px;
}
.fact .mono-label { color: var(--blue); display: block; margin-bottom: 8px; font-size: 12px; }
.fact .val { font-weight: 600; color: var(--ink); font-size: 16.5px; line-height: 1.65; text-wrap: pretty; }
.case-links { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.case-links a {
  color: var(--blue);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--tint-line);
  padding-bottom: 9px;
  transition: border-color 0.15s;
}
.case-links a:hover { border-color: var(--blue); }
.case-links a::before { content: "→ "; color: var(--blue); }

.case-visual {
  position: relative;
  border-radius: 16px;
  padding: 44px;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-visual image-slot {
  width: 100%;
  height: 420px;
  box-shadow: 0 18px 50px rgba(12, 44, 110, 0.16);
  border-radius: 12px;
  background: var(--white);
}
.case-visual--screenshot {
  padding: 8px 12px;
}
.case-screenshot-zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 340px;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: 12px;
}
.case-screenshot-zoom img {
  max-width: 100%;
  max-height: 340px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(12, 44, 110, 0.16);
  background: var(--white);
  pointer-events: none;
}

.case-articles {
  align-items: stretch;
  justify-content: flex-start;
  flex-direction: column;
  min-height: 0;
  padding: 32px 36px;
}
.case-articles > .mono-label { color: var(--faint); margin-bottom: 20px; }
.case-articles-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.case-articles-list li {
  margin: 0;
}
.case-articles-list a {
  display: block;
  background: var(--white);
  border-radius: 12px;
  padding: 20px 22px;
  color: var(--ink);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.45;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(12, 44, 110, 0.08);
  transition: color 0.15s, box-shadow 0.15s;
}
.case-articles-list a:hover {
  color: var(--blue);
  box-shadow: 0 12px 32px rgba(12, 44, 110, 0.12);
}
.case-articles-list a::before {
  content: "→ ";
  color: var(--blue);
}

.case-gallery-wrap {
  width: 100%;
  outline: none;
}
.case-gallery-wrap:focus-visible .case-gallery-nav {
  box-shadow: 0 0 0 2px var(--blue);
  border-radius: 12px;
}
.case-gallery {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 460px;
  height: 460px;
  box-sizing: border-box;
  padding: 28px 32px 32px;
  border-radius: 16px 16px 0 0;
}
.case-gallery-nav {
  padding: 18px 8px 8px;
}
.case-gallery-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}
.case-gallery-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.case-gallery-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.case-gallery-zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: 12px;
}
.case-gallery--telegram .case-gallery-zoom {
  max-width: 64%;
  max-height: 72%;
}
.case-gallery--mail {
  padding: 6px 16px 10px;
}
.case-gallery--mail .case-gallery-viewport {
  overflow: visible;
}
.case-gallery--mail .case-gallery-zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 100%;
  max-width: 100%;
  height: 100%;
  width: 100%;
}
.case-gallery--mail .case-gallery-slide img {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 32px rgba(12, 44, 110, 0.14));
}
.case-gallery-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(12, 44, 110, 0.1);
  background: var(--white);
  pointer-events: none;
}
.case-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(12, 24, 48, 0.82);
  border: none;
  cursor: zoom-out;
}
.case-gallery-lightbox img {
  max-width: min(920px, 100%);
  max-height: calc(100vh - 64px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.case-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.case-gallery-btn {
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1;
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--tint-line);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.case-gallery-btn:hover {
  border-color: var(--blue);
  background: var(--tint);
}
.case-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.case-gallery-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--tint-line);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.case-gallery-dot.is-active {
  background: var(--blue);
  transform: scale(1.15);
}

/* ── Три языка ────────────────────────── */
.trio {
  background: var(--blue-dark);
  color: var(--white);
  min-height: calc(var(--screen) - var(--site-nav-h));
  display: flex;
  align-items: center;
  padding: 32px 0;
  box-sizing: border-box;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
}
.trio > .wrap { width: 100%; }
.trio .mono-label { color: rgba(255, 255, 255, 0.6); }
.trio h2 {
  margin: 22px 0 0;
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: 900px;
}
.trio h2 em { font-style: normal; color: #9DBCFF; }
.trio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  margin-top: 64px;
}
.trio-col { border-top: 1px solid rgba(255, 255, 255, 0.25); padding-top: 26px; }
.trio-col .mono-label { color: #9DBCFF; }
.trio-col h3 {
  margin: 14px 0 12px;
  font-family: var(--disp);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.trio-col p { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.75); text-wrap: pretty; }

/* ── Обо мне ──────────────────────────── */
.about {
  min-height: var(--screen);
  display: flex;
  align-items: center;
  padding: 48px 0;
}
.about > .wrap { width: 100%; }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 88px;
  align-items: start;
}
.about .mono-label { color: var(--blue); display: block; margin-bottom: 22px; }
.about p { margin: 0 0 18px; font-size: 18px; line-height: 1.65; text-wrap: pretty; }
.about p strong { color: var(--blue); }
.edu { margin-top: 40px; }
.edu-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; }
.edu-list li {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--tint-line);
  font-size: 16px;
  color: var(--ink);
}
.edu-list li .mono-label { color: var(--faint); flex-shrink: 0; font-size: 12px; }
.edu-side { margin-top: 0; }

/* ── Футер ────────────────────────────── */
.footer {
  background: var(--blue-dark);
  color: var(--white);
  min-height: calc(var(--screen) - var(--site-nav-h));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 0 32px;
  box-sizing: border-box;
  scroll-margin-top: var(--site-nav-h);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.10) 1px, transparent 1px);
  background-size: 26px 26px;
}
.footer-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 24px 32px;
}
.footer .mono-label { color: rgba(255, 255, 255, 0.65); }
.footer h2 {
  margin: 24px 0 0;
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(48px, 6vw, 84px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}
.footer .note { margin: 26px auto 0; max-width: 480px; color: rgba(255, 255, 255, 0.8); }
.footer-cta { display: flex; gap: 16px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.btn {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 17px 34px;
  white-space: nowrap;
}
.btn-solid { background: var(--white); color: var(--blue-dark); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.7); color: var(--white); }
.btn-solid:hover { background: var(--tint); }
.btn-ghost:hover { border-color: var(--white); }
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
  padding: 28px 48px 0;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.65);
}
.footer-base span { white-space: nowrap; }
