/* ── Shared header — split two-pill (PIK-style) ──────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent; border: none;
  padding: 14px 28px 0;
  pointer-events: none;
}
.header-split {
  max-width: 1360px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  pointer-events: none;
}
.header-logo {
  display: inline-flex; align-items: center;
  background: #1465FC; color: #fff;
  border-radius: 100px; padding: 0 22px;
  height: 52px;
  font-family: var(--font-heading); font-size: 15px; font-weight: 800;
  letter-spacing: 0.3px; flex-shrink: 0; white-space: nowrap;
  pointer-events: all;
}
.header-logo__img { height: 26px; width: auto; display: block; }
.header-inner {
  flex: 1;
  display: flex; align-items: center; gap: 0;
  height: 52px;
  background: var(--accent);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 4px 24px rgba(0, 91, 244, 0.18);
  padding: 0 8px 0 20px;
  pointer-events: all;
}
.header-nav { display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.header-nav a {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px;
  font-size: 15px; color: rgba(255, 255, 255, 0.92); font-weight: 400;
  padding: 0 14px; border-radius: 100px;
  transition: background 0.18s, color 0.18s; white-space: nowrap;
}
.header-nav a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.header-nav a.active { color: #fff; font-weight: 600; }
.header-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: auto; }
.header-sep { width: 1px; height: 20px; background: rgba(255, 255, 255, 0.18); margin: 0 4px; }
.header-cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--accent);
  border-radius: 100px; padding: 0 18px; height: 44px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background 0.18s, color 0.18s; flex-shrink: 0;
}
.header-cta-btn:hover { background: #EEF4FF; color: var(--accent-hover); }
.header-phone { font-size: 14px; font-weight: 400; color: #fff; padding: 0 10px; }
.header-logo:focus-visible,
.header-inner a:focus-visible,
.header-inner button:focus-visible {
  outline-color: #fff;
  outline-offset: 2px;
}
.header-icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: none; background: transparent; cursor: pointer;
  transition: background 0.18s; flex-shrink: 0;
}
.header-icon-btn:hover { background: rgba(0,0,0,0.06); }

/* Burger button — hidden on desktop */

.header-burger {
  display: none;
  width: 36px; height: 36px; border-radius: 50%;
  align-items: center; justify-content: center;
  border: none; background: transparent; color: #fff; cursor: pointer;
  transition: background 0.18s; flex-shrink: 0;
}
.header-burger svg path { fill: currentColor; }
.header-burger:hover { background: rgba(255, 255, 255, 0.14); }

.header-phone-btn {
  display: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; color: var(--accent);
  align-items: center; justify-content: center;
  flex-shrink: 0; text-decoration: none;
  transition: background 0.18s;
}
.header-phone-btn:hover { background: #EEF4FF; }

/* ── Mobile menu — floating bento sheet ─────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  overflow: hidden;
  background: rgba(7, 18, 41, 0.42);
  -webkit-backdrop-filter: blur(4px) saturate(0.94);
  backdrop-filter: blur(4px) saturate(0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 520ms var(--motion-ease-standard);
}
.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__sheet {
  position: absolute;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: none;
  max-height: 94dvh;
  padding: 10px 16px max(16px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #f4f7fc;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  box-shadow: 0 -18px 70px rgba(3, 15, 38, 0.24);
  opacity: 1;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 101%, 0);
  transform-origin: center bottom;
  transition:
    visibility 0s linear var(--motion-sheet-duration),
    transform var(--motion-sheet-duration) var(--motion-ease-out);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.mobile-menu.is-open .mobile-menu__sheet {
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition-delay: 0s;
}

@media (max-width: 768px) {
  .mobile-menu {
    background: rgba(7, 18, 41, 0.56);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.mobile-menu__sheet:focus { outline: none; }

.mobile-menu__sheet::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  margin: 1px auto 5px;
  border-radius: 100px;
  background: #cfd8e6;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 4px 0 6px;
}
.mobile-menu__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  color: #fff;
  background: var(--accent);
  border-radius: 100px;
}
.mobile-menu__logo .header-logo__img {
  width: auto;
  height: 22px;
}
.mobile-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #14213a;
  background: #e8edf5;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.mobile-menu__close:hover {
  color: var(--accent);
  background: #dce6f7;
}

.mobile-menu__nav {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  grid-auto-rows: 84px;
  gap: 8px;
  padding: 4px 0 0;
}
.mobile-menu__nav a {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  padding: 15px;
  overflow: hidden;
  color: #14213a;
  background: #fff;
  border: 1px solid #e2e8f1;
  border-radius: 20px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  box-shadow: 0 7px 22px rgba(19, 44, 83, 0.045);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.mobile-menu__nav a:nth-child(1) {
  grid-row: span 2;
  padding: 18px;
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  font-size: 24px;
  box-shadow: 0 16px 34px rgba(20, 101, 252, 0.2);
}
.mobile-menu__nav a:nth-child(2) {
  color: #0f4ebd;
  background: #e6efff;
  border-color: #d9e6ff;
}
.mobile-menu__nav a::before {
  position: absolute;
  top: 14px;
  left: 15px;
  color: #7d8aa0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.12em;
}
.mobile-menu__nav a:nth-child(1)::before { content: "01"; color: rgba(255,255,255,0.68); left: 18px; }
.mobile-menu__nav a:nth-child(2)::before { content: "02"; color: rgba(15,78,189,0.58); }
.mobile-menu__nav a:nth-child(3)::before { content: "03"; }
.mobile-menu__nav a:nth-child(4)::before { content: "04"; }
.mobile-menu__nav a:nth-child(5)::before { content: "05"; }
.mobile-menu__nav a::after {
  content: "";
  position: absolute;
  top: 11px;
  right: 11px;
  width: 17px;
  height: 17px;
  background: currentColor;
  opacity: 0.62;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mobile-menu__nav a:hover {
  color: var(--accent);
  background: #f7faff;
  border-color: #bfd2fa;
}
.mobile-menu__nav a:nth-child(1):hover {
  color: #fff;
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.mobile-menu__contact {
  margin-top: 8px;
  padding: 16px;
  color: #fff;
  background: #0d203d;
  border-radius: 21px;
  box-shadow: 0 14px 32px rgba(9, 29, 59, 0.16);
}
.mobile-menu__manager {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 13px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.mobile-menu__manager-photo {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: url('assets/generated/manager-anna-sokolova.webp') center top / cover no-repeat;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}
.mobile-menu__manager-photo::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: 0;
  width: 10px;
  height: 10px;
  border: 2px solid #0d203d;
  border-radius: 50%;
  background: #38c976;
}
.mobile-menu__manager-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}
.mobile-menu__manager-name {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}
.mobile-menu__manager-role {
  color: #9eacc1;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
}
.mobile-menu__contact-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  color: #fff;
  transition: color 0.18s ease;
}
.mobile-menu__contact-link:hover { color: #b8d0ff; }
.mobile-menu__contact-label {
  color: #9eacc1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.015em;
}
.mobile-menu__phone {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.mobile-menu__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  margin-top: 12px;
  padding: 0 15px 0 17px;
  color: #fff;
  background: var(--accent);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease;
}
.mobile-menu__cta::after {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mobile-menu__cta:hover { background: var(--accent-hover); }

@media (max-width: 360px) {
  .mobile-menu__sheet {
    padding: 8px 12px max(12px, env(safe-area-inset-bottom));
    border-radius: 26px 26px 0 0;
  }
  .mobile-menu__nav { grid-auto-rows: 78px; gap: 6px; }
  .mobile-menu__nav a { padding: 13px; border-radius: 17px; font-size: 15px; }
  .mobile-menu__nav a:nth-child(1) { padding: 15px; font-size: 21px; }
  .mobile-menu__nav a::before { top: 12px; left: 13px; }
  .mobile-menu__nav a:nth-child(1)::before { left: 15px; }
  .mobile-menu__contact { padding: 14px; border-radius: 18px; }
  .mobile-menu__manager { padding-bottom: 11px; margin-bottom: 10px; }
  .mobile-menu__manager-photo { width: 40px; height: 40px; flex-basis: 40px; }
  .mobile-menu__phone { font-size: 18px; }
}

@media (max-height: 620px) {
  .mobile-menu__sheet {
    max-height: 100dvh;
    padding: 7px 12px max(10px, env(safe-area-inset-bottom));
  }
  .mobile-menu__sheet::before { margin-bottom: 2px; }
  .mobile-menu__top { height: 52px; }
  .mobile-menu__logo { height: 36px; }
  .mobile-menu__close { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
  .mobile-menu__nav { grid-auto-rows: 68px; gap: 6px; }
  .mobile-menu__nav a { padding: 12px; border-radius: 16px; font-size: 15px; }
  .mobile-menu__nav a:nth-child(1) { padding: 14px; font-size: 20px; }
  .mobile-menu__nav a::before { top: 10px; left: 12px; }
  .mobile-menu__nav a:nth-child(1)::before { left: 14px; }
  .mobile-menu__nav a::after { top: 9px; right: 9px; width: 15px; height: 15px; }
  .mobile-menu__contact { padding: 12px; border-radius: 17px; }
  .mobile-menu__manager {
    gap: 9px;
    padding-bottom: 9px;
    margin-bottom: 8px;
  }
  .mobile-menu__manager-photo { width: 36px; height: 36px; flex-basis: 36px; }
  .mobile-menu__manager-name { font-size: 13px; }
  .mobile-menu__manager-role { font-size: 10px; }
  .mobile-menu__contact-link { min-height: 38px; }
  .mobile-menu__phone { font-size: 17px; }
  .mobile-menu__cta { height: 42px; margin-top: 8px; }
}

/* ── Badge variants ──────────────────────────────────────────────── */
.badge--orange-inv { background: #1465fc; color: #fff; }

/* ── About Hero ──────────────────────────────────────────────────── */
.about-hero { background: #111; padding-top: 66px; }
.about-hero__inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; height: 534px; width: 100%;
}
.about-hero__left {
  flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 32px; padding: 80px 60px 80px 80px; color: #fff;
}
.about-hero__eyebrow { display: none; }
.about-hero__title { font-size: 44px; font-weight: 700; line-height: 1.15; max-width: 540px; }
.about-hero__desc { font-size: 16px; color: #999; line-height: 1.6; max-width: 480px; }
.about-hero__stats { display: flex; gap: 40px; }
.hero-stat { display: flex; flex-direction: column; gap: 4px; }
.hero-stat__num { font-size: 36px; font-weight: 700; color: #fff; }
.hero-stat__num--orange { color: #1465fc; }
.hero-stat__label { font-size: 13px; color: #777; }
.about-hero__image {
  position: relative;
  width: 560px;
  flex-shrink: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.about-hero__brand {
  position: absolute;
  top: 43%;
  left: 50%;
  width: min(64%, 360px);
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .18));
  pointer-events: none;
  user-select: none;
}

/* ── History Section ─────────────────────────────────────────────── */
.history-section { background: #fff; padding: 80px 0; }
.history-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.history-header__left { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.history-founded { font-size: 14px; color: #888; }

.counter-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.counter-card {
  border-radius: 20px; padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 200px;
}
.counter-card--dark { background: #111; }
.counter-card--orange { background: #1465fc; }
.counter-card--white { background: #fff; border: 1px solid #F0F0F0; }
.counter-card--light { background: #F8F8F8; }
.counter-val { font-size: 72px; font-weight: 700; color: #fff; line-height: 1; }
.counter-val--dark { color: #111; }
.counter-val--orange { color: #1465fc; }
.counter-label { font-size: 15px; font-weight: 700; color: #fff; }
.counter-label--dark { color: #111; }
.counter-sub { font-size: 13px; color: #888; }

.story-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.story-card { border-radius: 20px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 200px; }
.story-card--light { background: #F4F4F4; }
.story-card--dark { background: #111; }
.story-card__title { font-size: 20px; font-weight: 700; color: #111; }
.story-card__text { font-size: 15px; color: #555; line-height: 1.6; }
.award-stars { font-size: 20px; color: #1465fc; }
.award-text { font-size: 16px; font-weight: 700; color: #fff; line-height: 1.4; }

/* ── Polygon Section (Bento UI) ──────────────────────────────────── */
.polygon-section {
  background: var(--bg-cream);
  padding: 80px 0;
}
.polygon-bento {
  max-width: 1440px;
  min-height: 360px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 16px;
  align-items: stretch;
}

/* Text card */
.polygon-text-card {
  background: #fff;
  border: 1px solid #EBEBEB;
  border-radius: 24px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.badge--blue-dim {
  background: #EEF3FF;
  color: #1465fc;
}
.polygon-title {
  /* The display face has no coherent Cyrillic glyph set and mixed fallbacks. */
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.polygon-bullets {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
  flex: 1;
}
.polygon-bullets li {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
}
.polygon-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 6px; height: 6px;
  background: #1465fc;
  border-radius: 50%;
}
.polygon-stats-row {
  display: flex;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid #F0F0F0;
}
.polygon-stat {
  display: flex; flex-direction: column; gap: 2px;
}
.polygon-stat__num {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 800; color: #1465fc;
}
.polygon-stat__label {
  font-size: 11px; color: #999; line-height: 1.4;
}

/* Carousel card */
.polygon-carousel-card {
  background: #111;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.polygon-carousel {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.polygon-track {
  display: flex;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.polygon-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.polygon-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s ease;
}
.polygon-slide:hover .polygon-slide__bg { transform: scale(1.03); }
.polygon-slide__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 60px 28px 38px;
  background: linear-gradient(to top, rgba(0,0,0,0.74) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.2px;
  z-index: 3;
}

/* Same photo-navigation pattern as the project sliders on cases.html. */
.polygon-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.55));
  transition: opacity 0.2s;
}
.polygon-control--prev { left: 10px; }
.polygon-control--next { right: 10px; }
.polygon-control:hover { opacity: 0.7; }
.polygon-control:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
  background: rgba(20,101,252,0.88);
}
.polygon-progress {
  position: absolute;
  right: 28px;
  bottom: 18px;
  left: 28px;
  z-index: 5;
  display: flex;
  gap: 5px;
  pointer-events: none;
}
.polygon-progress__bar {
  flex: 1;
  height: 2.5px;
  border-radius: 2px;
  background: rgba(255,255,255,0.28);
  transition: background-color 0.3s;
}
.polygon-progress__bar--active { background: #fff; }

/* ── Production Section ──────────────────────────────────────────── */
.production-section { background: #fff; padding: 80px 0; }
.production-header { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; align-items: flex-start; }
.production-hint { display: none; }
.production-gallery { display: contents; }
.production-row1 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; height: 380px; margin-bottom: 16px; }
.production-row2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; height: 220px; }
.prod-card {
  border-radius: 20px; background-size: cover; background-position: center;
  display: flex; align-items: flex-end; overflow: hidden; position: relative;
}
.prod-card--large { border-radius: 20px; }
.prod-card__caption {
  width: 100%; padding: 18px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: #fff; font-size: 16px; font-weight: 700;
}
.production-row2 .prod-card { border-radius: 16px; }
.production-row2 .prod-card__caption { font-size: 13px; font-weight: 700; padding: 12px 16px; }

/* ── Docs Section ────────────────────────────────────────────────── */
.docs-section { background: #F4F4F4; padding: 80px 0; }
.docs-header { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; align-items: flex-start; }
.docs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.doc-card {
  background: #fff; border-radius: 20px; border: 1px solid #F0F0F0;
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
}
.doc-icon-wrap {
  width: 56px; height: 56px; border-radius: 28px; background: #EEF3FF;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.doc-card__title { font-size: 18px; font-weight: 700; color: #111; }
.doc-card__desc { font-size: 13px; color: #666; line-height: 1.5; }

/* ── Full Footer ─────────────────────────────────────────────────── */
.footer--full { padding: 48px 0; }
.footer-main { display: flex; gap: 40px; justify-content: space-between; padding-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; width: 320px; flex-shrink: 0; }
.footer-logo { font-family: var(--font-heading); font-size: 24px; font-weight: 800; color: #fff; }
.footer-tagline { font-size: 14px; color: #9CA3AF; line-height: 1.6; max-width: 280px; }
.footer-brand .footer-social { display: flex; gap: 12px; }
.social-icon--sq {
  width: 40px; height: 40px; border-radius: 20px; background: #2A2A2A;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background 0.2s;
}
.social-icon--sq:hover { background: #3A3A3A; }
.footer-col { display: flex; flex-direction: column; gap: 10px; min-width: 140px; }
.footer-col__title { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: 1px; margin-bottom: 6px; }
.footer-col a { font-size: 14px; color: #9CA3AF; transition: color 0.2s; display: flex; align-items: center; gap: 10px; }
.footer-col a:hover { color: #fff; }
.footer-divider { height: 1px; background: #2A2A2A; margin: 0; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 13px; color: #6B7280; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: #6B7280; }
.footer-bottom-links a:hover { color: #ccc; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .counter-row { grid-template-columns: repeat(2, 1fr); height: auto; }
  .counter-card { height: 180px; }
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { flex-wrap: wrap; gap: 32px; }
  .polygon-bento { grid-template-columns: 1fr; height: auto; padding-inline: 24px; }
  .polygon-carousel-card { height: 340px; }
  /* Header: hide nav, show burger + phone button, shrink pill */
  .header-nav { display: none; }
  .header-phone { display: none; }
  .header-cta-btn { display: none; }
  .header-sep { display: none; }
  .header-burger { display: flex; }
  .header-phone-btn { display: flex; }
  .header-phone-btn {
    position: relative;
    isolation: isolate;
    background: transparent;
  }
  .header-phone-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
    transition: background 0.18s;
  }
  .header-phone-btn svg { position: relative; z-index: 1; }
  .header-phone-btn:hover { background: transparent; }
  .header-phone-btn:hover::before { background: #EEF4FF; }
  .header-inner { flex: none; padding: 0 4px; margin-left: auto; }
  .header-right { margin-left: 0; gap: 4px; }
}
@media (max-width: 768px) {
  .header-split { gap: 6px; }
  .header-logo { height: 44px; font-size: 13px; padding: 0 16px; }
  .header-inner { padding: 0 6px; height: 44px; }
  .about-hero__inner { flex-direction: column; height: auto; }
  .about-hero__left { padding: 48px 20px; gap: 24px; }
  .about-hero__title { font-size: 32px; }
  .about-hero__image { width: 100%; height: 280px; }
  .about-hero__stats { gap: 24px; flex-wrap: wrap; }
  .counter-row { grid-template-columns: 1fr 1fr; }
  .counter-val { font-size: 48px; }
  .story-row { grid-template-columns: 1fr; height: auto; }
  .story-card { height: auto; }
  .production-row1 { grid-template-columns: 1fr; height: auto; }
  .prod-card--large { height: 240px; }
  .production-row2 { grid-template-columns: 1fr; height: auto; }
  .production-row2 .prod-card { height: 180px; }
  .docs-grid { grid-template-columns: 1fr; }
  .footer-main { flex-direction: column; gap: 32px; }
  .footer-brand { width: 100%; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .polygon-bento { padding: 0 20px; }
  .polygon-title { font-size: 24px; }
  .polygon-text-card { padding: 28px 24px; }
  .polygon-carousel-card { height: 280px; }
  .polygon-slide__label { padding: 48px 18px 34px; }
  .polygon-progress { right: 18px; bottom: 15px; left: 18px; }
  .polygon-control--prev { left: 4px; }
  .polygon-control--next { right: 4px; }
}

@media (max-width: 390px) {
  .polygon-bento { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .polygon-track,
  .polygon-slide__bg,
  .polygon-control,
  .polygon-progress__bar {
    transition: none;
  }
  .polygon-slide:hover .polygon-slide__bg { transform: none; }
}

/* ── CTA Banner ──────────────────────────────────────────────── */
.cases-cta {
  background: var(--accent);
  padding: 80px 0;
  text-align: center;
}
.cases-cta__title {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 800; color: #fff;
  margin-bottom: 14px;
}
.cases-cta__sub {
  font-size: 17px; color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
}
.cases-cta__btns { display: flex; gap: 14px; justify-content: center; }
.cases-cta__btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 40px; border-radius: 12px;
  border: 2px solid transparent;
  background: #fff; color: var(--accent);
  font-size: 15px; font-weight: 700; font-family: var(--font-body);
  transition: opacity 0.2s;
}
.cases-cta__btn-primary:hover { opacity: 0.9; }
.cases-cta__btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 40px; border-radius: 12px;
  background: rgba(255,255,255,0.18); color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  font-size: 15px; font-weight: 600; font-family: var(--font-body);
  transition: background 0.2s;
}
.cases-cta__btn-secondary:hover { background: rgba(255,255,255,0.26); }
@media (max-width: 900px) {
  .cases-cta__btns { flex-direction: column; align-items: center; }
  .cases-cta__title { font-size: 28px; }
}

/* ── Compact mobile composition ──────────────────────────────────── */
@media (max-width: 768px) {
  .site-header { padding: 12px 16px 0; }
  .header-logo { padding-inline: 14px; }
  .header-logo__img { height: 22px; }

  .about-hero { padding-top: 68px; }
  .about-hero__left {
    gap: 18px;
    padding: 26px 20px 24px;
  }
  .about-hero__title {
    max-width: 350px;
    font-size: clamp(30px, 8.6vw, 36px);
    line-height: 1.06;
    letter-spacing: -0.7px;
  }
  .about-hero__desc {
    font-size: 16px;
    line-height: 1.5;
  }
  .about-hero__stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .hero-stat { gap: 2px; min-width: 0; }
  .hero-stat__num { font-size: clamp(27px, 8.5vw, 34px); }
  .hero-stat__label { font-size: 11px; white-space: nowrap; }
  .about-hero__image {
    height: clamp(180px, 52vw, 210px);
    background-position: center 42%;
  }

  .history-section,
  .polygon-section,
  .production-section,
  .docs-section { padding: 48px 0; }

  .history-header,
  .production-header,
  .docs-header { margin-bottom: 22px; }
  .history-header { align-items: center; gap: 16px; }
  .history-founded {
    flex: 0 0 auto;
    font-size: 12px;
    line-height: 1.35;
    text-align: right;
    white-space: nowrap;
  }

  .history-section .counter-row,
  .docs-section .docs-grid {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
    margin-inline: -16px;
    padding-inline: 16px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .history-section .counter-row::-webkit-scrollbar,
  .docs-section .docs-grid::-webkit-scrollbar,
  .production-gallery::-webkit-scrollbar { display: none; }

  .history-section .counter-row { margin-bottom: 12px; }
  .history-section .counter-card {
    flex: 0 0 min(72vw, 250px);
    height: 154px;
    min-height: 154px;
    padding: 20px;
    border-radius: 18px;
    scroll-snap-align: start;
  }
  .history-section .counter-val { font-size: 46px; }
  .history-section .counter-label { font-size: 14px; }
  .history-section .counter-sub { font-size: 12px; }

  .story-row { gap: 12px; }
  .story-card {
    min-height: 0;
    padding: 22px;
    border-radius: 18px;
  }
  .story-card--light { gap: 8px; }
  .story-card--dark {
    min-height: 112px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
  }
  .story-card__title { font-size: 18px; }
  .story-card__text { font-size: 15px; line-height: 1.5; }
  .award-stars { white-space: nowrap; }
  .award-text { font-size: 15px; }

  .polygon-bento { gap: 12px; }
  .polygon-text-card {
    gap: 14px;
    padding: 24px 22px;
    border-radius: 20px;
  }
  .polygon-title { font-size: 25px; }
  .polygon-bullets { gap: 9px; }
  .polygon-bullets li { font-size: 13px; line-height: 1.48; }
  .polygon-stats-row { gap: 14px; padding-top: 14px; }
  .polygon-stat { flex: 1; min-width: 0; }
  .polygon-stat__num { font-size: 24px; }
  .polygon-carousel-card { height: 220px; border-radius: 20px; }
  .polygon-slide__label { padding: 32px 18px 16px; font-size: 14px; }
  .polygon-controls { top: 10px; right: 10px; }
  .polygon-counter { min-width: 48px; padding-inline: 4px; }
  .polygon-counter__divider { display: none; }

  .production-gallery {
    display: flex;
    gap: 12px;
    margin-inline: -16px;
    padding-inline: 16px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
  }
  .production-gallery .production-row1,
  .production-gallery .production-row2 { display: contents; }
  .production-gallery .prod-card,
  .production-gallery .prod-card--large,
  .production-gallery .production-row2 .prod-card {
    flex: 0 0 min(78vw, 300px);
    height: 214px;
    border-radius: 18px;
    scroll-snap-align: start;
  }
  .production-gallery .prod-card__caption,
  .production-gallery .production-row2 .prod-card__caption {
    padding: 42px 18px 16px;
    font-size: 14px;
  }

  .docs-section .doc-card {
    flex: 0 0 min(76vw, 280px);
    min-height: 170px;
    padding: 20px;
    gap: 12px;
    border-radius: 18px;
    scroll-snap-align: start;
  }
  .doc-icon-wrap { width: 44px; height: 44px; }
  .doc-icon-wrap svg { width: 20px; height: 20px; }
  .doc-card__title { font-size: 17px; }
  .doc-card__desc { font-size: 13px; }

  .cases-cta { padding: 48px 0; }
  .cases-cta__title {
    max-width: 330px;
    margin: 0 auto 10px;
    font-size: 28px;
    line-height: 1.08;
  }
  .cases-cta__sub {
    max-width: 330px;
    margin: 0 auto 22px;
    font-size: 15px;
    line-height: 1.5;
  }
  .cases-cta__btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 10px;
  }
  .cases-cta__btn-primary,
  .cases-cta__btn-secondary {
    height: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border-radius: 12px;
  }
}

@media (max-width: 350px) {
  .site-header { padding-inline: 12px; }
  .about-hero__left { padding-inline: 16px; }
  .hero-stat__label { font-size: 10px; }
  .cases-cta__btns { grid-template-columns: 1fr; }
}

@media (min-width: 560px) and (max-width: 768px) {
  .about-hero__title { max-width: 620px; }
  .about-hero__desc { max-width: 620px; }
}

/* ── Refined mobile layout: all core content stays visible ───────── */
@media (max-width: 768px) {
  .about-hero__left {
    gap: 0;
    padding: 24px 20px 22px;
  }
  .about-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: #70a4ff;
    font: 700 11px/1 'Inter', sans-serif;
    letter-spacing: .13em;
    text-transform: uppercase;
  }
  .about-hero__eyebrow::before {
    content: '';
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #1465fc;
  }
  .about-hero__title {
    max-width: 360px;
    font-size: clamp(30px, 8.7vw, 35px);
    line-height: 1.05;
  }
  .about-hero__desc {
    margin-top: 16px;
    color: #b7b7b7;
  }
  .about-hero__stats {
    position: relative;
    margin-top: 22px;
    gap: 0;
  }
  .hero-stat {
    position: relative;
    padding-right: 12px;
  }
  .hero-stat + .hero-stat { padding-left: 14px; }
  .hero-stat + .hero-stat::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 1px;
    background: rgba(255,255,255,.14);
  }
  .about-hero__image { height: clamp(176px, 48vw, 196px); }

  .history-section,
  .polygon-section,
  .production-section,
  .docs-section { padding: 44px 0; }

  .history-header,
  .production-header,
  .docs-header { margin-bottom: 18px; }

  .history-section .counter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 10px;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .history-section .counter-card {
    width: auto;
    height: auto;
    min-height: 126px;
    padding: 16px;
    border-radius: 16px;
    flex: none;
    gap: 6px;
    justify-content: flex-start;
  }
  .history-section .counter-val { font-size: 38px; }
  .history-section .counter-label {
    max-width: 145px;
    font-size: 13px;
    line-height: 1.2;
  }
  .history-section .counter-sub {
    margin-top: auto;
    font-size: 11px;
    line-height: 1.25;
  }

  .story-row {
    grid-template-columns: minmax(0, 1.55fr) minmax(116px, .85fr);
    gap: 8px;
  }
  .story-card {
    min-height: 200px;
    padding: 18px;
    border-radius: 16px;
  }
  .story-card--light { gap: 8px; justify-content: flex-start; }
  .story-card--dark {
    display: flex;
    grid-template-columns: none;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
  }
  .story-card__title { font-size: 17px; line-height: 1.2; }
  .story-card__text { font-size: 14px; line-height: 1.44; }
  .award-stars { font-size: 18px; letter-spacing: -1px; }
  .award-text { font-size: 13px; line-height: 1.35; }

  .polygon-bento { gap: 0; }
  .polygon-carousel-card {
    order: -1;
    height: 196px;
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
  }
  .polygon-text-card {
    gap: 14px;
    padding: 22px 20px;
    border-top: 0;
    border-radius: 0 0 20px 20px;
  }
  .polygon-title { font-size: 24px; line-height: 1.12; }
  .polygon-title br { display: none; }
  .polygon-bullets { gap: 8px; }
  .polygon-bullets li {
    padding-left: 16px;
    font-size: 13px;
    line-height: 1.45;
  }
  .polygon-stats-row { padding-top: 13px; }
  .polygon-slide__label { padding: 32px 16px 14px; }

  .production-header {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .production-header .section-title {
    min-width: 0;
    max-width: 240px;
  }
  .production-hint {
    display: block;
    flex: 0 0 auto;
    margin-left: auto;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.25;
    text-align: right;
    white-space: nowrap;
  }
  .production-gallery { gap: 10px; }
  .production-gallery .prod-card,
  .production-gallery .prod-card--large,
  .production-gallery .production-row2 .prod-card {
    flex-basis: min(82vw, 310px);
    height: 210px;
  }

  .docs-section .docs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .docs-section .doc-card {
    width: auto;
    min-height: 104px;
    padding: 14px;
    border-radius: 16px;
    flex: none;
    gap: 9px;
  }
  .docs-section .doc-icon-wrap { width: 34px; height: 34px; }
  .docs-section .doc-icon-wrap svg { width: 18px; height: 18px; }
  .docs-section .doc-card__title {
    font-size: 15px;
    line-height: 1.2;
  }
  .docs-section .doc-card__desc {
    display: none;
  }
}

@media (max-width: 350px) {
  .story-row { grid-template-columns: 1fr; }
  .story-card { min-height: 0; }
  .story-card--dark {
    min-height: 98px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
  }
  .docs-section .doc-card { min-height: 112px; padding: 13px; }
  .docs-section .doc-card__title { font-size: 14px; }
}

@media (min-width: 560px) and (max-width: 768px) {
  .about-hero__title,
  .about-hero__desc { max-width: 620px; }
}
