:root {
  --apple-bg: #fbfbfd;
  --apple-bg-alt: #f5f5f7;
  --apple-bg-dark: #000;
  --apple-text: #1d1d1f;
  --apple-text-muted: #6e6e73;
  --apple-link: #0066cc;
  --apple-link-hover: #0077ed;
  --apple-nav-bg: rgba(251, 251, 253, 0.72);
  --apple-nav-border: rgba(0, 0, 0, 0.08);
  --apple-font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
  --apple-nav-h: 44px;
  --apple-nav-brand-h: 56px;
  --apple-safe-top: env(safe-area-inset-top, 0px);
  --apple-safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--apple-font);
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--apple-text);
  background: var(--apple-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--apple-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ——— Nav (как apple.com) ——— */
.bite-nav {
  position: sticky;
  top: 0;
  z-index: 9999;
  height: auto;
  min-height: calc(var(--apple-nav-brand-h) + var(--apple-safe-top));
  padding-top: var(--apple-safe-top);
  padding-bottom: 0;
  background: var(--apple-nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--apple-nav-border);
}

.bite-nav-inner {
  max-width: 980px;
  margin: 0 auto;
  min-height: var(--apple-nav-brand-h);
  padding: 6px 22px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bite-nav-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  padding-bottom: 2px;
}

.bite-nav-tagline {
  margin: 0;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--apple-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(42vw, 280px);
}

.bite-nav-logo {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--apple-text);
  text-decoration: none;
}

.bite-nav-logo:hover {
  text-decoration: none;
  opacity: 0.8;
}

.bite-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.bite-nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--apple-text);
  opacity: 0.88;
  text-decoration: none;
}

.bite-nav-links a:hover {
  opacity: 1;
  text-decoration: none;
}

.bite-public-counters {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--apple-text-muted);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.bite-public-counters.hidden {
  display: none;
}

.bite-public-counters strong {
  color: var(--apple-text);
  font-weight: 600;
}

.bite-counter-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bite-counter-icon {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.82;
}

.bite-lang-switch {
  display: inline-flex;
  align-items: center;
}

.bite-lang-switch select {
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--apple-text);
  font: 500 12px/1 var(--apple-font);
  padding: 5px 9px;
  outline: none;
}

/* ——— Hero biteAI ——— */
.bite-hero {
  text-align: center;
  padding: 56px 22px 52px;
  background: var(--apple-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.bite-hero-inner {
  max-width: 980px;
  margin: 0 auto;
}

.bite-hero-title {
  margin: 0;
  font-size: clamp(48px, 10vw, 80px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--apple-text);
}

.bite-hero-sub {
  margin: 12px auto 0;
  max-width: 28em;
  font-size: clamp(17px, 2.8vw, 21px);
  line-height: 1.33341;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--apple-text-muted);
}

/* ——— Product promos ——— */
.bite-promo {
  text-align: center;
  padding: 48px 22px 0;
  overflow: hidden;
}

.bite-promo-inner {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
}

.bite-promo-copy {
  padding-bottom: 8px;
}

.bite-promo--osminog {
  background: var(--apple-bg-alt);
}

.bite-promo--hero-video {
  padding: 0;
  background: #000;
  color: #f5f5f7;
}

.bite-promo--akula {
  background: #000;
  color: #f5f5f7;
}

.bite-promo-inner--hero-video {
  position: relative;
  max-width: none;
  min-height: min(78vh, 920px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bite-promo-copy--hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 22px 64px;
  pointer-events: none;
}

.bite-promo-copy--hero-overlay .bite-promo-actions {
  pointer-events: auto;
}

.bite-promo--hero-video .bite-promo-copy--hero-overlay .bite-promo-title {
  color: #f5f5f7;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.bite-promo--hero-video .bite-promo-copy--hero-overlay .bite-promo-sub {
  color: rgba(245, 245, 247, 0.92);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.65);
}

.bite-promo-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  max-width: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: #000;
}

.bite-promo-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  background: #121212;
}

/* OSMINOG: сдвиг кадра влево, чтобы панель «Наборы точек» была в кадре */
.bite-promo--osminog .bite-promo-video {
  object-position: right center;
}

.bite-promo-video-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.28) 42%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

.bite-promo-eyebrow {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.23536;
  font-weight: 600;
  letter-spacing: 0.012em;
  color: var(--apple-text-muted);
}

.bite-promo--akula .bite-promo-eyebrow {
  color: #a1a1a6;
}

.bite-promo-title {
  margin: 0;
  font-size: clamp(40px, 8vw, 56px);
  line-height: 1.07143;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.bite-promo--akula .bite-promo-title {
  color: #f5f5f7;
}

.bite-promo-sub {
  margin: 8px auto 0;
  max-width: 32em;
  font-size: clamp(17px, 2.5vw, 21px);
  line-height: 1.381;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--apple-text-muted);
}

.bite-promo--akula .bite-promo-sub {
  color: #a1a1a6;
}

.bite-promo-eyebrow {
  margin: 10px auto 0;
  max-width: 30em;
  font-size: 14px;
  line-height: 1.42859;
  letter-spacing: -0.016em;
  color: var(--apple-text-muted);
}

.bite-promo-note--dark {
  color: #86868b;
}

.bite-promo-actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
}

.bite-link {
  font-size: 17px;
  line-height: 1.23536;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--apple-link);
  text-decoration: none;
}

.bite-link:hover {
  color: var(--apple-link-hover);
  text-decoration: underline;
}

.bite-promo--hero-video .bite-link {
  color: #2997ff;
}

.bite-promo--hero-video .bite-link:hover {
  color: #66b3ff;
}

.bite-link--pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 8px 16px;
  border-radius: 980px;
  background: var(--apple-link);
  color: #fff !important;
  font-size: 14px;
  line-height: 1.42859;
  font-weight: 400;
  letter-spacing: -0.016em;
  text-decoration: none !important;
  transition: background 0.2s;
}

.bite-link--pill:hover {
  background: var(--apple-link-hover);
  text-decoration: none !important;
}

.bite-promo--hero-video .bite-link--pill {
  background: #2997ff;
}

.bite-promo--hero-video .bite-link--pill:hover {
  background: #66b3ff;
}

/* ——— Реальные превью интерфейса ——— */
.bite-app-shot {
  margin: 32px auto 0;
  max-width: min(920px, 96vw);
  padding: 0;
  border: none;
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.16));
}

.bite-promo--akula .bite-app-shot {
  filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.45));
}

.bite-app-chrome {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #0a0f18;
  text-align: left;
}

.bite-app-chrome--akula {
  border-color: rgba(255, 255, 255, 0.08);
}

.bite-app-header-bar {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  background: #1e1e1e;
  border-bottom: 1px solid #3c3c3c;
}

.bite-app-header-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #cccccc;
}

.bite-app-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: #252526;
  border-bottom: 1px solid #3c3c3c;
}

.bite-app-tab,
.bite-app-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.2;
  color: #cccccc;
  background: #2d2d30;
  border: 1px solid #3c3c3c;
}

.bite-app-tab--active {
  background: #0e639c;
  border-color: #1177bb;
  color: #fff;
}

.bite-app-tool--icon {
  min-width: 32px;
  font-size: 13px;
}

.bite-app-screen {
  position: relative;
  background: #0a0f18;
  line-height: 0;
}

.bite-app-screen--ceph {
  aspect-ratio: 3 / 2;
  max-height: min(52vh, 520px);
}

.bite-app-screen--akula {
  aspect-ratio: 16 / 10;
  min-height: 280px;
  background: #121212;
}

.bite-app-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #0a0f18;
}

.bite-akula-hud {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.bite-akula-hud-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 36px;
  border-radius: 8px;
  background: rgba(58, 58, 60, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.55;
}

.bite-akula-hud-btn--active {
  opacity: 1;
  border-color: rgba(14, 99, 156, 0.65);
  box-shadow: 0 0 0 1px rgba(14, 99, 156, 0.35);
}

.bite-akula-hud-btn img {
  width: 32px;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

.bite-akula-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 16px 24px;
}

.bite-akula-model {
  width: min(78%, 480px);
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.bite-akula-model--upper {
  margin-bottom: -6%;
  z-index: 2;
}

.bite-akula-model--lower {
  z-index: 1;
  opacity: 0.96;
}

.bite-promo--osminog:not(.bite-promo--hero-video) {
  padding-bottom: 52px;
}

.bite-promo--hero-video {
  padding-bottom: 0;
}

/* ——— Feature strip ——— */
.bite-strip {
  background: var(--apple-bg);
  padding: 44px 22px 52px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.bite-strip-inner {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.bite-strip-title {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.21053;
  font-weight: 600;
  letter-spacing: 0.012em;
}

.bite-strip-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.42859;
  font-weight: 400;
  letter-spacing: -0.016em;
  color: var(--apple-text-muted);
}

/* ——— Dev hint ——— */
.bite-dev-hint {
  margin: 0;
  padding: 14px 22px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--apple-text-muted);
  background: var(--apple-bg-alt);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.bite-dev-hint[hidden] {
  display: none;
}

.bite-dev-hint code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ——— Cookie ——— */
.bite-cookie {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 10000;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(251, 251, 253, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.bite-cookie.hidden {
  display: none;
}

.bite-cookie p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--apple-text-muted);
}

.bite-cookie a {
  color: var(--apple-link);
  text-decoration: none;
}

.bite-cookie a:hover {
  text-decoration: underline;
}

.bite-cookie-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 980px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.016em;
  color: #fff;
  background: var(--apple-link);
  cursor: pointer;
}

.bite-cookie-btn:hover {
  background: var(--apple-link-hover);
}

/* ——— Footer ——— */
.bite-footer {
  background: var(--apple-bg-alt);
  padding: 16px 22px calc(16px + var(--apple-safe-bottom));
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 11px;
  line-height: 1.4;
  color: var(--apple-text-muted);
}

.bite-footer-inner {
  max-width: 980px;
  margin: 0 auto;
}

.bite-footer-top {
  display: grid;
  grid-template-columns: auto auto auto;
  grid-template-rows: auto auto;
  justify-content: space-between;
  column-gap: 32px;
  row-gap: 4px;
  align-items: baseline;
}

.bite-footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 28px;
  align-items: start;
}

.bite-footer-col p {
  margin: 0;
}

.bite-footer-col p + p {
  margin-top: 4px;
}

.bite-footer-brand-name {
  grid-column: 1;
  grid-row: 1;
}

.bite-footer-col-title {
  grid-column: 2;
  grid-row: 1;
}

.bite-footer-legal-title {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
  text-align: left;
  width: max-content;
}

.bite-footer-tagline {
  grid-column: 1;
  grid-row: 2;
  max-width: 18rem;
}

.bite-footer-email {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}

.bite-footer-brand-name,
.bite-footer-col-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--apple-text);
}

.bite-footer-tagline-muted {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  opacity: 0.9;
}

.bite-footer-email a {
  color: var(--apple-link);
  text-decoration: none;
  font-size: 11px;
  line-height: 1.35;
}

.bite-footer-email a:hover {
  text-decoration: underline;
}

.bite-footer-divider {
  height: 1px;
  margin: 12px 0;
  background: rgba(0, 0, 0, 0.08);
}

.bite-footer-bottom-end {
  text-align: right;
  width: max-content;
  max-width: 100%;
  justify-self: end;
}

.bite-footer-links {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  justify-self: start;
  flex-wrap: nowrap;
  gap: 18px;
  margin: 0;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.bite-footer-links a {
  color: var(--apple-link);
  text-decoration: none;
  font-size: 11px;
  line-height: 1.35;
}

.bite-footer-links a:hover {
  text-decoration: underline;
}

.bite-br-desktop {
  display: none;
}

/* ——— Планшет ——— */
@media (min-width: 735px) {
  .bite-br-desktop {
    display: inline;
  }
}

@media (max-width: 1024px) {
  .bite-nav-inner,
  .bite-promo-inner,
  .bite-strip-inner,
  .bite-footer-inner {
    padding-left: max(22px, env(safe-area-inset-left));
    padding-right: max(22px, env(safe-area-inset-right));
  }

  .bite-promo {
    padding: 48px 22px 54px;
  }

  .bite-promo--hero-video {
    padding: 0;
  }
}

/* ——— Телефон ——— */
@media (max-width: 734px) {
  .bite-nav-links {
    gap: 12px;
  }

  .bite-nav-links a {
    font-size: 11px;
  }

  .bite-public-counters {
    gap: 8px;
    font-size: 10px;
  }

  .bite-lang-switch select {
    padding: 4px 7px;
    font-size: 11px;
  }

  .bite-hero {
    padding: 44px 16px 40px;
  }

  .bite-promo {
    padding: 40px 16px 48px;
  }

  .bite-promo--hero-video {
    padding: 0;
  }

  .bite-promo-inner--hero-video {
    min-height: min(68vh, 720px);
  }

  .bite-promo-copy--hero-overlay {
    padding: 44px 16px 52px;
  }

  .bite-promo-actions {
    gap: 18px;
  }

  .bite-strip-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .bite-strip {
    padding: 36px 16px 44px;
  }

  .bite-science-notice {
    padding: 0 16px;
  }

  .bite-footer-top {
    grid-template-columns: 1fr 1fr;
    row-gap: 6px;
  }

  .bite-footer-brand-name,
  .bite-footer-col-title,
  .bite-footer-legal-title,
  .bite-footer-tagline,
  .bite-footer-email,
  .bite-footer-links {
    grid-column: auto;
    grid-row: auto;
  }

  .bite-footer-brand-name {
    grid-column: 1;
    grid-row: 1;
  }

  .bite-footer-col-title:not(.bite-footer-legal-title) {
    grid-column: 2;
    grid-row: 1;
  }

  .bite-footer-tagline {
    grid-column: 1;
    grid-row: 2;
  }

  .bite-footer-email {
    grid-column: 2;
    grid-row: 2;
  }

  .bite-footer-legal-title {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    text-align: left;
  }

  .bite-footer-links {
    grid-column: 1 / -1;
    grid-row: 4;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 14px;
    white-space: normal;
    overflow-x: visible;
  }

  .bite-footer-bottom {
    grid-template-columns: 1fr;
  }

  .bite-footer-bottom-end {
    text-align: left;
    justify-self: start;
  }

  .bite-cookie {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 380px) {
  .bite-nav-logo {
    font-size: 18px;
  }

  .bite-link,
  .bite-link--pill {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
