:root {
  --paper: #f6f5f0;
  --ink: #11110f;
  --muted: #7a766e;
  --line: rgba(17, 17, 15, 0.16);
  --soft: rgba(17, 17, 15, 0.055);
  --white: #fffefa;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}

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

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

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.045;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px;
  mix-blend-mode: multiply;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 56px);
  color: var(--ink);
  mix-blend-mode: multiply;
}

.brand img {
  width: 92px;
  height: auto;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 38px);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

nav a {
  position: relative;
  padding: 8px 0;
}

nav a::after {
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 420ms cubic-bezier(.2, .8, .2, 1);
}

nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.language-switcher {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  background: rgba(246, 245, 240, 0.64);
  backdrop-filter: blur(12px);
}

.language-switcher button {
  width: 38px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  letter-spacing: 0.2em;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 1.04fr);
  align-items: center;
  gap: clamp(28px, 5vw, 78px);
  padding: 104px clamp(20px, 5vw, 76px) 56px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-top: 28px;
}

.eyebrow {
  margin: 0 0 28px;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

h1,
h2 {
  margin: 0;
  font-weight: 520;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

html[lang="ru"] h1,
html[lang="ru"] h2 {
  line-height: 1.06;
}

h1 {
  max-width: 780px;
  font-size: clamp(64px, 9.4vw, 142px);
}

h2 {
  font-size: clamp(42px, 6.6vw, 96px);
}

.intro,
.lead,
.manifesto p,
.section-copy li,
.fineprint {
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  line-height: 1.35;
}

.intro {
  max-width: 570px;
  margin: 34px 0 0;
  font-size: clamp(20px, 2vw, 29px);
}

.hero-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 42px;
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 0 34px;
  border: 1px solid var(--ink);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  transition:
    transform 260ms ease,
    background 260ms ease,
    color 260ms ease;
  cursor: pointer;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button:hover {
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 680px;
}

.phone-frame {
  position: absolute;
  right: 0;
  bottom: 4%;
  width: min(310px, 42vw);
  margin: 0;
}

.phone-frame img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 42px rgba(17, 17, 15, 0.18));
}

.hero-visual .phone-frame {
  position: relative;
  right: auto;
  bottom: auto;
  width: min(380px, 44vw);
}

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.ticker span {
  padding: 20px 32px;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
}

.section {
  padding: clamp(86px, 13vw, 180px) clamp(20px, 5vw, 76px);
}

.section-heading {
  max-width: 920px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 0.72fr);
  gap: clamp(32px, 7vw, 120px);
  align-items: end;
  margin-top: clamp(38px, 7vw, 86px);
}

.lead {
  max-width: 780px;
  margin: 0;
  font-size: clamp(24px, 3vw, 42px);
}

.stats {
  display: grid;
  border-top: 1px solid var(--line);
}

.stats div {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.stats strong {
  font-size: clamp(44px, 5vw, 78px);
  line-height: 0.9;
  font-weight: 560;
  letter-spacing: -0.04em;
}

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

.split-section {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 0.95fr);
  gap: clamp(42px, 8vw, 128px);
  align-items: center;
}

.phone-pair {
  position: relative;
  min-height: 680px;
}

.phone-frame.small {
  left: 0;
  right: auto;
  bottom: 12%;
  width: min(290px, 40vw);
}

.phone-frame.small.offset {
  left: 34%;
  bottom: 0;
}

.section-copy h2 {
  max-width: 700px;
}

.steps {
  list-style: none;
  margin: 54px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.steps li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(19px, 2vw, 27px);
}

.steps span {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.22em;
}

.manifesto {
  min-height: 74vh;
  display: grid;
  align-content: center;
  background: var(--ink);
  color: var(--paper);
}

.manifesto .eyebrow,
.manifesto p {
  color: rgba(246, 245, 240, 0.64);
}

.manifesto h2 {
  max-width: 1040px;
}

.manifesto p {
  max-width: 780px;
  margin: 38px 0 0;
  font-size: clamp(22px, 2.6vw, 36px);
}

.apply {
  min-height: 92vh;
  display: grid;
  align-content: center;
  padding: clamp(86px, 12vw, 170px) clamp(20px, 5vw, 76px);
}

.apply h2 {
  max-width: 760px;
}

html[lang="ru"] .apply h2 {
  line-height: 1.12;
}

.apply-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: end;
  margin-top: clamp(42px, 7vw, 86px);
}

label {
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 38px);
  font-style: italic;
  outline: 0;
  padding: 13px 0 17px;
}

input::placeholder {
  color: rgba(17, 17, 15, 0.26);
}

.fineprint {
  margin: 28px 0 0;
  font-size: 18px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(20px, 5vw, 76px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.site-footer img {
  width: 86px;
}

[data-reveal],
.split .word {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 900ms cubic-bezier(.2, .8, .2, 1),
    transform 900ms cubic-bezier(.2, .8, .2, 1);
}

[data-reveal].visible,
.visible .word {
  opacity: 1;
  transform: translateY(0);
}

.split .word {
  display: inline-block;
  transition-delay: calc(var(--i) * 54ms);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

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

@media (max-width: 980px) {
  nav {
    display: none;
  }

  .site-header {
    mix-blend-mode: normal;
  }

  .hero,
  .editorial-grid,
  .split-section,
  .apply-form {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 92px;
  }

  .hero-visual {
    min-height: 600px;
  }

  .phone-frame {
    width: min(270px, 54vw);
  }

  .phone-pair {
    min-height: 620px;
  }

  .phone-frame.small {
    width: min(245px, 45vw);
  }

  .apply-form .button {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 18px 18px;
  }

  .brand img {
    width: 78px;
  }

  .hero {
    min-height: auto;
    padding: 88px 18px 46px;
  }

  h1 {
    font-size: clamp(54px, 17vw, 76px);
  }

  h2 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .intro {
    font-size: 20px;
  }

  .button {
    width: 100%;
    min-height: 54px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .hero-visual .phone-frame {
    right: auto;
    width: min(220px, 62vw);
  }

  .section,
  .apply {
    padding-left: 18px;
    padding-right: 18px;
  }

  .stats div {
    grid-template-columns: 1fr;
  }

  .phone-pair {
    min-height: 520px;
  }

  .phone-frame.small {
    width: 210px;
  }

  .phone-frame.small.offset {
    left: auto;
    right: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 26px 18px;
  }
}
