@font-face {
  font-family: "Cakra";
  src: url("assets/fonts/Cakra-Normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Didact Gothic";
  src: url("assets/fonts/DidactGothic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #030303;
  --ink: #0a0a0a;
  --white: #f7f4ef;
  --muted: #77716c;
  --soft: rgba(247, 244, 239, 0.72);
  --line: rgba(247, 244, 239, 0.16);
  --light-line: rgba(10, 10, 10, 0.16);
  --accent: #b51118;
  --accent-bright: #B51118;
  --max: 1240px;
  --side: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--black); }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Didact Gothic", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.48;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: 0.07;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.17) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 78%, transparent);
}

a { color: inherit; text-decoration: none; }
p, h1, h2, h3, blockquote { margin: 0; }
button, input { font: inherit; }

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 50;
  width: 0;
  height: 3px;
  background: var(--accent-bright);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 78px;
  padding: 0 var(--side);
  border-bottom: 1px solid rgba(247, 244, 239, 0.13);
  background: rgba(3, 3, 3, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  font-family: Cakra, sans-serif;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand-mark { position: relative; display: block; width: 38px; height: 20px; }
.brand-mark::before, .brand-mark::after { position: absolute; left: 0; width: 32px; height: 2px; background: var(--white); content: ""; }
.brand-mark::before { top: 4px; }
.brand-mark::after { top: 14px; width: 20px; background: var(--accent-bright); }

.nav { display: flex; gap: clamp(20px, 3vw, 44px); color: var(--soft); font-size: 16px; }
.nav a, .header-cta { transition: color 180ms ease, border-color 180ms ease; }
.nav a:hover, .header-cta:hover { color: var(--white); }

.header-cta {
  justify-self: end;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--accent-bright);
  color: var(--soft);
  font-size: 16px;
}

.section { position: relative; padding: clamp(96px, 10vw, 160px) var(--side); }
.section > * { position: relative; z-index: 1; width: min(100%, var(--max)); margin-right: auto; margin-left: auto; }

.hero {
  display: flex;
  align-items: flex-end;
  min-height: min(900px, 100svh);
  padding-top: 160px;
  overflow: hidden;
}

.hero-media, .hero-overlay { position: absolute; inset: 0; width: auto; margin: 0; }
.hero-media {
  z-index: 0;
  background: url("assets/images/hero-larisa-bw.jpg") 68% center / cover no-repeat;
  filter: saturate(0.72);
}

.hero-overlay {
  z-index: 0;
  background: linear-gradient(90deg, rgba(3, 3, 3, 0.98) 0%, rgba(3, 3, 3, 0.88) 38%, rgba(3, 3, 3, 0.24) 80%, rgba(3, 3, 3, 0.58) 100%), linear-gradient(0deg, rgba(3, 3, 3, 0.78), transparent 48%);
}

.hero-inner { max-width: 900px; margin: 0 auto 0 0; }
.eyebrow, .section-kicker, .case-number { color: var(--accent-bright); font-size: 14px; text-transform: uppercase; }
.eyebrow { margin-bottom: 24px; }
h1, h2, h3 { font-family: Cakra, sans-serif; font-weight: 400; text-transform: uppercase; }
h1 { max-width: 930px; font-size: clamp(42px, 6.2vw, 92px); line-height: 0.94; letter-spacing: 0; }
.hero-lead { max-width: 720px; margin-top: 32px; color: rgba(247, 244, 239, 0.8); font-size: clamp(17px, 1.55vw, 22px); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 13px 22px; border: 1px solid transparent; font-size: 16px; line-height: 1.15; text-align: center; transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-light { margin-top: 34px; border-color: var(--white); background: var(--white); color: var(--ink); }
.button-light:hover { border-color: var(--accent-bright); background: var(--accent-bright); color: var(--white); }
.section-index { position: absolute !important; right: var(--side); bottom: 34px; width: auto !important; margin: 0 !important; color: rgba(247, 244, 239, 0.44); font-size: 14px; }

.section-light { background: var(--white); color: var(--ink); }
.optics { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr); gap: clamp(40px, 8vw, 120px); align-items: center; min-height: 780px; }
.optics-copy { max-width: 710px; }
.section-light .section-kicker { color: var(--accent); }
.optics h2 { max-width: 700px; margin-top: 26px; font-size: clamp(38px, 5vw, 70px); line-height: 0.96; }
.optics-text { max-width: 680px; margin-top: 34px; color: rgba(10, 10, 10, 0.76); }
.accent-copy { color: var(--accent); }
.optics-text p + p { margin-top: 18px; }
.optics ul { display: grid; gap: 13px; margin: 22px 0 0; padding: 0; list-style: none; }
.optics li { position: relative; padding-left: 22px; }
.optics li::before { position: absolute; top: 0.7em; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); content: ""; }
.optics blockquote { max-width: 660px; margin-top: 36px; padding: 22px 0 22px 22px; border-left: 3px solid var(--accent); font-family: Cakra, sans-serif; font-size: clamp(24px, 2.5vw, 36px); line-height: 1.05; }
.optics-image { min-height: 560px; background: url("assets/images/optics-apple.jpg") center / cover no-repeat; filter: saturate(0.82); }

.author { min-height: 720px; }
.author-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr); gap: clamp(42px, 8vw, 120px); align-items: center; }
.author-copy { max-width: 720px; }
.author-copy h2 { margin-top: 26px; font-size: clamp(42px, 5.6vw, 76px); line-height: 0.94; }
.author-statement { max-width: 700px; margin-top: 36px; font-family: Cakra, sans-serif; font-size: clamp(28px, 3.6vw, 52px); line-height: 0.98; }
.author-details { display: grid; gap: 0; max-width: 620px; margin-top: 38px; color: rgba(10, 10, 10, 0.72); }
.author-details p { padding: 18px 0; border-top: 1px solid var(--light-line); }
.author-details p:last-child { border-bottom: 1px solid var(--light-line); }
.author-photo { min-height: 620px; background: url("assets/images/author-larisa-face.jpg") center 23% / cover no-repeat; }

.cases { background: var(--black); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 58px; }
.section-heading h2 { max-width: 760px; margin-top: 22px; font-size: clamp(40px, 5vw, 72px); line-height: 0.95; }
.section-note { max-width: 330px; color: var(--soft); font-size: 17px; }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.case-card { overflow: hidden; border: 1px solid rgba(247, 244, 239, 0.16); background: #0c0c0c; }
.case-media { position: relative; min-height: 440px; }
.case-image { min-height: 440px; background-position: center; background-size: cover; }
.case-image-dmitry { background-image: linear-gradient(0deg, rgba(3, 3, 3, 0.36), transparent 52%), url("assets/images/case-dmitry.jpg"); background-position: center 38%; }
.case-image-yana { background-image: linear-gradient(0deg, rgba(3, 3, 3, 0.2), transparent 58%), url("assets/images/case-yana.jpg"); background-position: center 6%; }
.case-proof { position: absolute; right: 22px; bottom: 22px; width: min(46%, 260px); border: 5px solid var(--white); box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42); transform: rotate(2.5deg); }
.case-card-yana .case-proof { right: auto; left: 22px; transform: rotate(-2.5deg); }
.case-body { display: grid; gap: 20px; padding: clamp(24px, 3vw, 42px); }
.case-body h3 { font-size: clamp(30px, 3vw, 46px); line-height: 0.95; }
.case-subtitle { color: var(--soft); }
.case-quote-tag { width: fit-content; max-width: 100%; padding: 9px 12px; background: var(--accent); color: var(--white); }
.case-highlight { width: fit-content; max-width: 100%; padding: 9px 12px; background: var(--accent); color: var(--white); }
.case-body blockquote { padding-top: 18px; border-top: 1px solid rgba(247, 244, 239, 0.16); color: rgba(247, 244, 239, 0.78); font-style: italic; }
  .case-message { padding: 16px 18px !important; border: 1px solid rgba(247, 244, 239, 0.16); border-top: 1px solid rgba(247, 244, 239, 0.16) !important; background: var(--white); color: var(--ink) !important; font-style: normal !important; }
  .case-message-image { display: block; width: 100%; max-width: 100%; height: auto; border: 1px solid rgba(247, 244, 239, 0.16); }

.tariffs { padding-bottom: clamp(110px, 13vw, 190px); }
.tariffs .section-heading { align-items: center; }
.tariff-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tariff-viewport { width: 100%; overflow: hidden; }
.tariffs-pin { width: min(100%, var(--max)); margin-right: auto; margin-left: auto; }
.tariff-card { position: relative; display: flex; min-height: 680px; flex-direction: column; padding: clamp(22px, 2.5vw, 36px); border: 1px solid rgba(10, 10, 10, 0.2); background: rgba(255, 255, 255, 0.42); }
.tariff-card-featured { border: 2px solid var(--accent); background: var(--white); }
.featured-label { position: absolute; top: 12px; left: 24px; padding: 3px 10px; background: var(--accent); color: var(--white); font-size: 13px; text-transform: uppercase; }
.tariff-card-featured { padding-top: 58px; }
.tariff-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--light-line); color: var(--accent); font-size: 14px; }
.tariff-top span:last-child { max-width: 210px; text-align: right; }
.tariff-sum { margin-top: 32px; font-family: Cakra, sans-serif; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.02; text-transform: uppercase; }
.tariff-details { display: grid; gap: 17px; margin-top: 30px; color: rgba(10, 10, 10, 0.76); }
.tariff-details b { color: var(--ink); font-weight: 400; }
.tariff-bottom { display: grid; gap: 18px; margin-top: auto; padding-top: 30px; }
.tariff-bottom strong { font-family: Cakra, sans-serif; font-size: clamp(32px, 3.5vw, 52px); font-weight: 400; line-height: 1; }
.button-dark { width: 100%; border-color: var(--ink); background: var(--ink); color: var(--white); }
.button-dark:hover { border-color: var(--accent); background: var(--accent); }

.site-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: end; padding: clamp(70px, 10vw, 130px) var(--side) 30px; background: var(--black); }
.footer-copy h2 { margin-top: 22px; font-size: clamp(42px, 6vw, 84px); line-height: 0.92; }
.footer-copy > p:last-child { margin-top: 22px; color: var(--soft); }
.footer-links { display: grid; gap: 15px; min-width: 230px; }
.footer-links a { display: flex; justify-content: space-between; padding: 10px 12px 10px 10px; border-bottom: 1px solid rgba(247, 244, 239, 0.22); border-left: 3px solid transparent; color: var(--soft); transition: color 180ms ease, border-color 180ms ease, background 180ms ease; }
.footer-links a:hover { border-color: var(--accent-bright); color: var(--white); }
.footer-links a.social-instagram { border-left-color: #e1306c; color: #e1306c; background: rgba(225, 48, 108, 0.08); }
.footer-links a.social-telegram { border-left-color: #229ed9; color: #229ed9; background: rgba(34, 158, 217, 0.08); }
.footer-links a.social-youtube { border-left-color: #ff0033; color: #ff0033; background: rgba(255, 0, 51, 0.08); }
.footer-links a.social-instagram > span:last-child { color: #e1306c !important; }
.footer-links a.social-telegram > span:last-child { color: #229ed9 !important; }
.footer-links a.social-youtube > span:last-child { color: #ff0033 !important; }
.footer-links a.social-instagram:hover, .footer-links a.social-telegram:hover, .footer-links a.social-youtube:hover { color: var(--white); background: rgba(247, 244, 239, 0.1); }
.footer-social-label { display: inline-flex; align-items: center; gap: 10px; }
.footer-social-label svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.footer-social-label svg path { fill: currentColor; stroke: none; }
.footer-social-label svg path + * { fill: none; }
.footer-links a.social-instagram .footer-social-label svg { fill: none; stroke: none; }
.footer-links a.social-instagram .footer-social-label .instagram-frame { fill: url(#instagram-icon-gradient); stroke: none; }
.footer-links a.social-instagram .footer-social-label .instagram-camera { fill: none; stroke: #fff; stroke-width: 1.6; }
.footer-links a.social-instagram .footer-social-label .instagram-dot { fill: #fff; stroke: none; }
.footer-links a.social-telegram .footer-social-label svg { fill: none; stroke: none; }
.footer-links a.social-telegram .footer-social-label .telegram-frame { fill: #229ed9; stroke: none; }
.footer-links a.social-telegram .footer-social-label .telegram-mark { fill: #fff; stroke: none; }
.footer-links a.social-youtube .footer-social-label svg { fill: none; stroke: none; }
.footer-links a.social-youtube .footer-social-label .youtube-frame { fill: #ff0033; stroke: none; }
.footer-links a.social-youtube .footer-social-label .youtube-mark { fill: #fff; stroke: none; }
.footer-links > a > span:last-child { color: var(--accent-bright); }
.footer-social-label { color: inherit; }
.footer-mark { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(247, 244, 239, 0.16); color: rgba(247, 244, 239, 0.4); font-size: 13px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .optics { grid-template-columns: 1fr; min-height: auto; }
  .optics-image { min-height: 420px; }
  .author { min-height: auto; }
  .author-grid { grid-template-columns: 1fr; }
  .author-photo { min-height: 520px; }
  .tariffs { padding-top: 0; padding-bottom: 0; }
  .tariffs-pin { display: block; min-height: 0; overflow: visible; }
  .tariffs .section-heading { margin-bottom: 32px; }
  .tariff-viewport { height: auto; overflow: visible; }
  .tariff-grid { display: grid; width: 100%; height: auto; grid-template-columns: 1fr; gap: 16px; overflow: visible; transform: none; }
  .tariff-card { min-height: 680px; height: auto; overflow: visible; }
  .tariff-bottom { margin-top: 24px; }
}

@media (max-width: 700px) {
  body { font-size: 17px; }
  .site-header { min-height: 64px; }
  .brand { font-size: 19px; }
  .header-cta { font-size: 14px; }
  .section { padding-top: 100px; padding-bottom: 100px; }
  .hero { min-height: 760px; padding-top: 120px; }
  .hero-media { background-position: 65% center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(3, 3, 3, 0.97) 0%, rgba(3, 3, 3, 0.75) 62%, rgba(3, 3, 3, 0.3) 100%), linear-gradient(0deg, rgba(3, 3, 3, 0.9), transparent 55%); }
  h1 { font-size: clamp(40px, 12vw, 62px); }
  .hero-lead { margin-top: 25px; font-size: 17px; }
  .button-light { width: 100%; margin-top: 28px; }
  .section-heading { display: block; margin-bottom: 36px; }
  .section-note { margin-top: 24px; }
  .optics h2, .section-heading h2 { font-size: clamp(36px, 11vw, 56px); }
  .optics-image { min-height: 340px; }
  .author-copy h2 { font-size: clamp(38px, 12vw, 58px); }
  .author-statement { font-size: clamp(28px, 9vw, 42px); }
  .author-photo { min-height: 420px; }
  .case-grid { grid-template-columns: 1fr; }
  .case-media, .case-image { min-height: 390px; }
  .case-proof { right: 14px; bottom: 14px; width: 42%; border-width: 4px; }
  .case-card-yana .case-proof { left: 14px; }
  .tariffs .section-heading { margin-bottom: 26px; }
  .tariff-grid { gap: 14px; }
  .tariff-card { min-height: 0; padding: 22px; }
  .tariff-card-featured { padding-top: 58px; }
  .site-footer { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { min-width: 0; }
  .footer-mark { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button, .nav a, .header-cta, .footer-links a { transition: none; }
}
