/* ============================================================
   Lantoro — Layout & BEM blocks
   Используются дизайн-токены из tokens.css
   ============================================================ */

/* ── Reset / base ───────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--apple-near-white);
  color: var(--apple-near-black);
  font-family: var(--font-text);
  font-size: var(--text-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font-family: var(--font-text);
  font: inherit;
}

::selection { background: rgba(0, 113, 227, 0.18); }

/* ── Layout primitives ──────────────────────────────────── */
.page__main { display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.container--narrow      { max-width: 980px; }
.container--narrow-wide { max-width: 1100px; }
.container--wide        { max-width: 1280px; }

.section {
  padding-block: clamp(80px, 12vw, 160px);
  position: relative;
  overflow: hidden;
}

.section--light {
  background: var(--apple-near-white);
  color: var(--apple-near-black);
}

.section--dark {
  background: var(--apple-near-black);
  color: var(--apple-light-gray);
}

/* ── Eyebrow ────────────────────────────────────────────── */
.eyebrow {
  margin: 0 0 16px;
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--apple-gray-400);
}

.eyebrow--on-dark { color: var(--apple-gray-400); }

/* ── Buttons (Capsule) ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-text);
  font-weight: 400;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    opacity var(--duration-base) var(--ease-standard),
    background var(--duration-base) var(--ease-standard);
  /* default size = md */
  font-size: 17px;
  padding: 12px 24px;
}

.btn:hover { opacity: 0.92; }

.btn--sm { font-size: 14px; padding: 8px 18px; }
.btn--lg { font-size: 17px; padding: 14px 28px; }
.btn--block { width: 100%; padding: 18px 28px; margin-top: 10px; }

.btn--primary { background: var(--apple-blue); color: var(--apple-white); }
.btn--dark    { background: var(--apple-near-black); color: var(--apple-white); }
.btn--light   { background: var(--apple-white); color: var(--apple-near-black); border-color: var(--apple-gray-200); }
.btn--outline { background: transparent; color: var(--apple-blue); border-color: var(--apple-blue); }

/* ── Ghost link ─────────────────────────────────────────── */
.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--apple-blue);
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.ghost-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ghost-link__arrow { display: inline-block; }

/* ── Nav (sticky header) ────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 48px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
          backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base) var(--ease-standard);
}

.nav--scrolled { border-bottom-color: rgba(0, 0, 0, 0.06); }

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__menu {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav__link {
  font-size: 12px;
  color: var(--apple-near-black);
  opacity: 0.85;
  text-decoration: none;
  transition: opacity var(--duration-fast) var(--ease-standard);
}

.nav__link:hover { opacity: 1; }

@media (max-width: 900px) {
  .nav__menu { display: none; }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 48px);
  min-height: calc(100svh - 48px);
  padding-block: 40px;
  display: flex;
  align-items: center;
}

.hero > .container { width: 100%; }

.hero__inner {
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: var(--track-display);
  margin: 0 0 24px;
  text-wrap: balance;
}

.hero__title-muted { color: var(--apple-gray-400); }

.hero__lead {
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.3;
  color: var(--apple-gray-600);
  max-width: 740px;
  margin: 0 auto 32px;
  font-weight: 400;
  letter-spacing: var(--track-normal);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
  margin-bottom: 64px;
}

/* ── Audience ───────────────────────────────────────────── */
.audience__layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 96px;
  align-items: start;
}

@media (max-width: 900px) {
  .audience__layout { grid-template-columns: 1fr; gap: 48px; }
}

.audience__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
}

.audience__desc {
  font-size: 19px;
  line-height: 1.45;
  color: var(--apple-gray-500);
  margin: 24px 0 0;
  max-width: 380px;
}

.audience__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.audience__item {
  display: flex;
  gap: 24px;
  align-items: baseline;
  padding: 32px 0;
  border-top: 1px solid var(--apple-gray-200);
}

.audience__item:last-child { border-bottom: 1px solid var(--apple-gray-200); }

.audience__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--apple-gray-400);
  min-width: 32px;
  flex-shrink: 0;
}

.audience__text {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: var(--track-tight);
  line-height: 1.18;
  color: var(--apple-near-black);
  flex: 1;
}

/* ── What we do (dark) ──────────────────────────────────── */
.what-we-do { padding-block: 160px; }

.what-we-do__header {
  text-align: center;
  margin-bottom: 96px;
}

.what-we-do__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: var(--track-display);
  margin: 0 auto;
  max-width: 980px;
  color: var(--apple-white);
  text-wrap: balance;
}

.what-we-do__title-muted { color: var(--apple-gray-400); }

.what-we-do__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .what-we-do__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .what-we-do__grid { grid-template-columns: 1fr; }
}

.what-we-do__card {
  background: var(--apple-near-black);
  padding: 48px 40px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.what-we-do__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--apple-gray-400);
  margin: 0 0 32px;
}

.what-we-do__name {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: var(--track-tight);
  color: var(--apple-white);
  margin: 0 0 12px;
  line-height: 1.1;
}

.what-we-do__desc {
  font-size: 17px;
  line-height: 1.45;
  color: var(--apple-gray-300);
  margin: 0;
}

/* ── Model ──────────────────────────────────────────────── */
.model__header {
  text-align: center;
  max-width: 768px;
  margin: 0 auto clamp(48px, 7vw, 80px);
}

.model__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: var(--track-display);
  color: var(--apple-near-black);
  margin: 0;
}

.model__lead {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.4;
  letter-spacing: var(--track-normal);
  max-width: 640px;
  color: var(--apple-gray-500);
  margin: 20px auto 0;
}

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

@media (min-width: 768px) {
  .model__grid { grid-template-columns: 1fr 1fr; }
}

.model__tile {
  border-radius: 24px;
  background: var(--apple-light-gray);
  color: var(--apple-near-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  min-height: 360px;
}

@media (min-width: 640px) {
  .model__tile { padding: 56px 40px; min-height: 440px; }
}

.model__tile--dark {
  background: var(--apple-near-black);
  color: var(--apple-white);
}

.model__eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track-eyebrow);
  color: var(--apple-gray-400);
  margin: 0 0 16px;
}

.model__tile--dark .model__eyebrow { color: rgba(255, 255, 255, 0.5); }

.model__stat {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(120px, 14vw, 200px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: inherit;
  margin: 0 0 12px;
}

.model__stat-unit,
.model__stat-plus {
  font-size: 0.28em;
  color: var(--apple-gray-400);
  letter-spacing: 0;
  line-height: 1;
  padding-bottom: 0.4em;
  margin-left: 8px;
  font-weight: 500;
}

.model__name {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: var(--track-tight);
  max-width: 420px;
  color: inherit;
  margin: 0 0 12px;
}

.model__name--with-stat { font-size: clamp(20px, 2vw, 28px); }

.model__desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--apple-gray-500);
  max-width: 420px;
  margin: 0 auto;
}

.model__tile--dark .model__desc { color: var(--apple-gray-300); }

/* ── Process ────────────────────────────────────────────── */
.process { padding-block: 160px; }

.process__header {
  margin-bottom: 80px;
  max-width: 720px;
}

.process__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: var(--track-display);
  margin: 0;
  text-wrap: balance;
}

.process__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.process__step {
  display: grid;
  grid-template-columns: 120px 1fr 2fr;
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid var(--apple-gray-200);
  align-items: baseline;
}

.process__step:last-child { border-bottom: 1px solid var(--apple-gray-200); }

@media (max-width: 768px) {
  .process__step {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 32px 0;
  }
}

.process__num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--apple-gray-400);
}

.process__name {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 40px);
  font-weight: 600;
  letter-spacing: var(--track-tight);
  line-height: 1.1;
  color: var(--apple-near-black);
  margin: 0;
}

.process__desc {
  font-size: 21px;
  line-height: 1.4;
  color: var(--apple-gray-500);
  font-weight: 400;
  letter-spacing: var(--track-normal);
  margin: 0;
}

/* ── Team ───────────────────────────────────────────────── */
.team { padding-block: 0 160px; }

.team__header {
  text-align: center;
  margin-bottom: 64px;
}

.team__title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: var(--track-display);
  margin: 0;
}

.team__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team__card {
  background: var(--apple-light-gray);
  border-radius: 24px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: 460px;
}

@media (max-width: 768px) {
  .team__card {
    grid-template-columns: 1fr;
    padding: 32px;
    gap: 32px;
    min-height: 0;
  }
}

.team__name {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 600;
  letter-spacing: var(--track-display);
  line-height: 1;
  color: var(--apple-near-black);
  margin: 0 0 32px;
}

.team__skills {
  list-style: none;
  padding: 0;
  margin: 0;
}

.team__skill {
  font-size: 17px;
  line-height: 1.5;
  color: var(--apple-gray-600);
  padding: 8px 0;
  border-top: 1px solid var(--apple-gray-200);
}

.team__skill:first-child { border-top: none; }

.team__portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background: var(--apple-white);
  object-fit: cover;
  object-position: center top;
}

/* ── Testimonials (dark, slider) ────────────────────────── */
.testimonials { padding-block: 160px; }

.testimonials__slider {
  position: relative;
  display: grid;
}

.testimonials__slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-slow) var(--ease-apple);
}

.testimonials__slide--active {
  opacity: 1;
  visibility: visible;
}

.testimonials__quote {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 56px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: var(--track-tight);
  color: var(--apple-white);
  margin: 0;
  text-wrap: balance;
}

.testimonials__author-name,
.testimonials__author-role { margin: 0; }

.testimonials__footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.testimonials__author-name {
  font-size: 17px;
  font-weight: 500;
  color: var(--apple-white);
  margin-top: 24px;
}

.testimonials__author-role {
  font-size: 14px;
  color: var(--apple-gray-400);
  margin-top: 4px;
}

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

.testimonials__counter {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--apple-gray-400);
}

.testimonials__btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--apple-white);
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-family: var(--font-text);
  transition: background var(--duration-fast) var(--ease-standard);
}

.testimonials__btn:hover { background: rgba(255, 255, 255, 0.16); }

/* ── FAQ ────────────────────────────────────────────────── */
.faq { padding-block: 160px; }

.faq__header {
  text-align: center;
  margin-bottom: 64px;
}

.faq__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
}

.faq__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq__item {
  border-top: 1px solid var(--apple-gray-200);
}

.faq__item:last-child { border-bottom: 1px solid var(--apple-gray-200); }

.faq__trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--apple-near-black);
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: var(--track-tight);
}

.faq__question { flex: 1; }

.faq__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--apple-gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease-apple);
}

.faq__item--open .faq__icon { transform: rotate(45deg); }

.faq__panel {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height var(--duration-slow) var(--ease-apple),
    padding var(--duration-base) var(--ease-apple);
}

.faq__item--open .faq__panel {
  max-height: 200px;
  padding-bottom: 32px;
}

.faq__answer {
  font-size: 19px;
  line-height: 1.45;
  color: var(--apple-gray-500);
  margin: 0;
  max-width: 680px;
}

/* ── CTA (dark, form) ───────────────────────────────────── */
.cta { padding-block: 160px; }

.cta__header {
  text-align: center;
  margin-bottom: 64px;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 600;
  line-height: 1.02;
  margin: 0 0 24px;
  color: var(--apple-light-gray);
}

.cta__lead {
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--apple-gray-300);
  margin: 0 auto;
  max-width: 540px;
  font-family: var(--font-text);
  line-height: 1.4;
}

.cta__card {
  background: var(--apple-white);
  border-radius: 28px;
  padding: clamp(32px, 4vw, 56px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  max-width: 560px;
  margin: 0 auto;
}

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

.cta__row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cta__field {
  width: 100%;
  font-family: var(--font-text);
  font-size: 17px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--apple-gray-200);
  background: var(--apple-white);
  color: var(--apple-near-black);
  outline: none;
  transition:
    border-color var(--duration-base) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard);
}

.cta__field:focus { border-color: var(--apple-blue); }

.cta__field--invalid {
  border-color: var(--apple-red);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.12);
}

.cta__error {
  min-height: 0;
  font-size: 13px;
  font-family: var(--font-text);
  color: var(--apple-red);
  line-height: 1.3;
  padding-inline: 4px;
}

.cta__error:empty { display: none; }

.cta__error--consent { padding-inline: 0; }

/* Consent checkbox */
.cta__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin-top: 4px;
  user-select: none;
}

.cta__consent-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cta__consent-box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--apple-gray-300);
  background: var(--apple-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--apple-white);
  transition:
    background var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard);
}

.cta__consent-tick {
  width: 12px;
  height: 10px;
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity var(--duration-fast) var(--ease-standard),
    transform var(--duration-fast) var(--ease-apple);
}

.cta__consent-input:checked + .cta__consent-box {
  background: var(--apple-blue);
  border-color: var(--apple-blue);
}

.cta__consent-input:checked + .cta__consent-box .cta__consent-tick {
  opacity: 1;
  transform: scale(1);
}

.cta__consent-input:focus-visible + .cta__consent-box {
  box-shadow: 0 0 0 3px var(--apple-blue-soft);
}

.cta__consent--invalid .cta__consent-box {
  border-color: var(--apple-red);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.12);
}

.cta__consent-text {
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.4;
  color: var(--apple-gray-600);
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--apple-near-black);
  color: var(--apple-gray-300);
  padding: 64px 0 32px;
  font-size: 13px;
  font-family: var(--font-text);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

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

.footer__brand-text {
  margin: 0;
  color: var(--apple-gray-400);
  max-width: 320px;
  line-height: 1.5;
}

.footer__col-title {
  color: var(--apple-white);
  font-weight: 500;
  margin: 0 0 16px;
  font-size: 13px;
}

.footer__col-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__col-list li { margin-bottom: 8px; }

.footer__col-link {
  color: var(--apple-gray-400);
  text-decoration: none;
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-standard);
}

.footer__col-link:hover { color: var(--apple-white); }

.footer__bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--apple-gray-500);
}

.footer__bottom p { margin: 0; }
