/* src/styles/google-sans-heading-axes.css */
@font-face {
  font-family: "Google Sans Variable";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/uploads/fonts/google-sans-variable/google-sans-variable-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Google Sans Variable";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/uploads/fonts/google-sans-variable/google-sans-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* обычные заголовки — без добавочной насыщенности */
h3,
h4,
h5,
h6,
.faq summary,
.work__name {
  font-family: "Google Sans Variable", var(--font-body) !important;
  font-optical-sizing: none;
  font-variation-settings: "GRAD" 0, "opsz" 18;
}

/* крупные заголовки и числа — с добавочной насыщенностью */
h1,
h2,
.logo__text,
.marquee__row span,
.gauge__num,
.timeline__time,
.stat b,
.growth__num,
.plan__price {
  font-family: "Google Sans Variable", var(--font-body) !important;
  font-optical-sizing: none;
  /* ось wght намеренно не задана: ею управляет font-weight из панели */
  font-variation-settings: "GRAD" 200, "opsz" 18;
}


/* src/styles/video-modal.css */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(8, 8, 8, 0.84);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.video-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  max-height: calc(100vh - 32px);
  border-radius: 20px;
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.video-modal.is-open .video-modal__dialog {
  transform: none;
}

.video-modal__video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 32px);
  border-radius: 20px;
  background: #000;
}

.video-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 28px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.video-modal__close:hover {
  background: var(--accent);
}

.video-modal__close:focus-visible,
.video-modal__backdrop:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

body.video-modal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .video-modal {
    padding: 12px;
  }

  .video-modal__dialog,
  .video-modal__video {
    border-radius: 14px;
  }

  .video-modal__close {
    top: 8px;
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-modal,
  .video-modal__dialog {
    transition: none;
  }
}

/* src/styles/mobile-nav-fix.css */
/* Фикс мобильного меню.
   В основном style.css для <=1180px задано только .nav{display:none},
   а правил для открытого состояния нет — поэтому клик по бургеру
   вешал .is-open, но меню оставалось скрытым. */

@media (max-width: 1180px) {
  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    position: absolute;
    top: calc(100% + 8px);
    left: var(--pad);
    right: var(--pad);
    padding: 10px 18px;
    border: 1px solid var(--ink-12);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 12px 32px var(--ink-12);
    z-index: 60;
  }

  .nav.is-open a {
    padding: 12px 0;
  }

  .nav.is-open a + a {
    border-top: 1px solid var(--ink-12);
  }
}
