/* =========================================
   Media Queries
========================================= */

@media (max-width: 1200px) {
  /* Typography */
  .title {
    font-size: 44px;
  }

  /* Hero */
  .hero-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Risks */
  .risks {
    padding-bottom: 120px;
  }

  .risks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .risk-card {
    height: auto;
    padding: 40px 28px;
  }

  /* Features */
  .features-layout {
    grid-template-columns: 420px 1fr;
    gap: 48px;
  }

  /* Stats */
  .stats-content {
    padding: 220px 0;
    padding-bottom: 150px;
  }

  .stats-number {
    font-size: 88px;
  }

  .stats-subtitle {
    font-size: 34px;
  }

  .stats-metric {
    margin-top: 52px;
    gap: 18px;
  }

  /* Demo */
  .demo-visual {
    max-width: 920px;
  }

  /* Pricing */
  .pricing {
    margin: 120px 24px;
    padding-top: 72px;
    padding-bottom: 88px;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: stretch;
  }

  .pricing-card {
    min-height: auto;
  }

  .pricing-card__text {
    height: auto;
  }

  .pricing-price {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .pricing-price__period {
    margin-left: 0;
    width: 100%;
  }

  .pricing-price__current {
    font-size: 44px;
  }

  .pricing-price__old {
    font-size: 30px;
  }

  /* Clients */
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1130px) {
  .demo-iframe,
  .demo-frame-overlay {
    display: none;
  }

  .demo-slider {
    display: block;
  }

  .demo-placeholder,
  .demo-loader {
    display: none !important;
  }

  .download-modal__content {
    padding: 38px 32px 32px;
    text-align: center;
  }

  .download-modal__title {
    font-size: 26px;
  }

  .download-modal__subtitle {
    font-size: 14px;
  }

  .download-modal__panel {
    width: 100vw;
    height: 100vh;
    max-height: none;
    border-radius: 0;
  }

  .download-modal__hint {
    font-size: 16px;
  }
}

@media (min-width: 1131px) {
  .demo-slider {
    display: none;
  }
}

@media (max-width: 992px) {
  /* Header */
  .header-nav {
    display: none;
  }

  .site-header .outline-button {
    display: none;
  }

  .burger-menu {
    display: flex;
  }

  /* Typography */
  .title {
    font-size: 40px;
  }

  .description {
    font-size: 18px;
  }

  /* Hero */
  .hero {
    min-height: 560px;
    padding-top: 88px;
    padding-bottom: 0;
  }

  .hero-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-media {
    position: relative;
    inset: auto;
    z-index: 0;
    pointer-events: none;

    width: 100%;
    display: block;
    margin-top: 28px;

    overflow: hidden;
  }

  .hero-video {
    position: relative;
    left: 50%;
    transform: translateX(-50%);

    width: 120%;
    height: auto;
    max-width: none;
    display: block;

    object-fit: cover;
    object-position: 50% 55%;

    filter: none;

    /* fade зверху + знизу + трохи по боках */
    -webkit-mask-image:
      linear-gradient(
        to bottom,
        transparent 0%,
        black 18%,
        black 82%,
        transparent 100%
      ),
      linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
      );
    mask-image:
      linear-gradient(
        to bottom,
        transparent 0%,
        black 18%,
        black 82%,
        transparent 100%
      ),
      linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
      );

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;

    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }

  .hero::before {
    background: linear-gradient(
      to bottom,
      rgba(18, 12, 29, 0.55) 0%,
      rgba(18, 12, 29, 0.25) 55%,
      rgba(18, 12, 29, 0) 100%
    );
  }

  .hero::after {
    content: none;
  }

  /* контент */
  .hero-text {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
  }

  .hero-title {
    font-size: 46px;
  }

  .hero-description {
    font-size: 18px;
  }

  .hero-actions {
    margin-top: 32px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-button {
    width: 100%;
    max-width: 360px;
    justify-content: center;
  }

  .hero-badge {
    padding: 9px 18px;
    font-size: 16px;
    line-height: 1.22;

    border-radius: 44px;
    border-width: 1.25px;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .hero-badge--left,
  .hero-badge--right {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.06) inset,
      0 10px 24px rgba(0, 0, 0, 0.26);
  }

  /* Risks */
  .risks {
    padding-bottom: 96px;
  }

  .risks-header {
    margin-bottom: 36px;
  }

  .risks-grid {
    grid-template-columns: 1fr;
  }

  .risk-card__title {
    font-size: 26px;
  }

  /* Features */
  .features-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .features-preview {
    order: -1;
  }

  .features-preview__frame {
    max-width: 820px;
    margin: 0 auto;
  }

  .feature-item__text {
    max-width: none;
  }

  /* Stats */
  .stats-content {
    padding: 180px 0;
    padding-bottom: 120px;
  }

  .stats-number {
    font-size: 72px;
  }

  .stats-subtitle {
    font-size: 30px;
  }

  .stats-metric {
    margin-top: 40px;
  }

  /* Demo */
  .demo {
    padding-top: 80px;
  }

  .demo-visual {
    margin: 44px auto;
  }

  /* Protection */
  .protection {
    padding-top: 110px;
  }

  .protection-grid {
    grid-template-columns: 1fr;
  }

  .protection-card {
    min-height: auto;
  }

  .protection-card__content {
    padding: 44px 28px 28px;
  }

  /* Pricing */
  .pricing {
    margin: 120px 16px;
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    min-height: auto;
  }

  .pricing-card__text {
    height: auto;
  }

  .pricing-price {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .pricing-price__period {
    margin-left: 0;
    width: 100%;
  }

  /* Clients */
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* CTA */
  .cta-actions {
    flex-wrap: wrap;
  }

  .cta-button {
    width: 100%;
    max-width: 360px;
    justify-content: center;
  }

  .cta-footer .outline-button {
    width: auto;
    justify-content: center;
  }
}

@media (max-width: 855px) {
  .cta-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .cta-footer .outline-button {
    width: 100%;
  }

  .cta-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 20px 0;
  }

  /* Typography */
  .title {
    font-size: 34px;
  }

  /* Hero */
  .hero {
    min-height: 520px;
    padding-top: 76px;
    padding-bottom: 10px;
    background-position-y: 65%;
  }

  .hero-media {
    margin-top: 22px;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-description {
    margin-top: 14px;
    font-size: 16px;
  }

  .hero-layout {
    align-items: center;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-button {
    width: 100%;
  }

  .hero-badge {
    padding: 8px 16px;
    font-size: 12px;
    line-height: 1.2;

    border-radius: 40px;
    border-width: 1.2px;

    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    filter: brightness(1.22) contrast(1.12);
  }

  .hero-badge--left,
  .hero-badge--right {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.06) inset,
      0 8px 20px rgba(0, 0, 0, 0.24);
  }

  .primary-button,
  .outline-button {
    padding: 18px 22px;
    font-size: 16px;
  }

  .primary-button__icon {
    width: 20px;
    height: 20px;
  }

  /* Risks */
  .risks {
    padding-top: 16px;
    padding-bottom: 88px;
  }

  .risks-header {
    margin-bottom: 32px;
  }

  .risk-card {
    padding: 32px 20px;
  }

  /* Stats */
  .stats-content {
    padding: 110px 0 84px;
  }

  .stats-title {
    line-height: 1.18;
    letter-spacing: -0.01em;
  }

  .stats-metric {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
  }

  .stats-icon {
    width: 70px;
    height: 70px;
  }

  .stats-number {
    font-size: 56px;
    line-height: 1.05;
    white-space: nowrap;
  }

  .stats-plus {
    transform: translateY(-6px);
  }

  .stats-subtitle {
    margin-top: 10px;
    font-size: 22px;
    line-height: 1.2;
  }

  /* Demo / Protection spacing */
  .demo {
    padding-top: 72px;
  }

  .protection {
    padding-top: 90px;
  }

  /* Pricing */
  .pricing {
    margin: 96px 12px;
    padding-top: 52px;
    padding-bottom: 60px;
    border-radius: 22px;
  }

  .pricing-card {
    padding: 28px;
    gap: 32px;
  }

  .pricing-card__inner {
    padding: 28px;
  }

  .pricing-price__current {
    font-size: 40px;
  }

  .pricing-price__old {
    font-size: 28px;
  }

  /* Clients */
  .clients {
    padding-bottom: 96px;
  }

  .client-card {
    height: 132px;
    border-radius: 20px;
  }

  /* CTA */
  .cta {
    padding: 72px 0 80px;
  }

  .cta-content {
    margin-bottom: 80px;
  }

  .cta-actions {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 28px;
  }

  .description {
    font-size: 16px;
  }

  /* Hero */
  .hero {
    min-height: 480px;
    padding-top: 64px;
    padding-bottom: 0;
  }

  .hero-media {
    margin-top: 18px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-badge {
    padding: 7px 14px;
    font-size: 10px;
    line-height: 1.18;

    border-radius: 36px;
    border-width: 1.1px;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    filter: brightness(1.2) contrast(1.1);
  }

  .hero-badge--left,
  .hero-badge--right {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.06) inset,
      0 7px 18px rgba(0, 0, 0, 0.22);
  }

  /* Risks */
  .risk-card__title {
    font-size: 22px;
  }

  /* Stats */
  .stats-content {
    padding: 72px 0 25px;
  }

  .stats-title {
    font-size: 26px;
    line-height: 1.16;
  }

  .stats-icon {
    width: 58px;
    height: 58px;
  }

  .stats-number {
    font-size: 44px;
    line-height: 1.05;
    white-space: nowrap;
  }

  .stats-plus {
    transform: translateY(-5px);
  }

  .stats-subtitle {
    font-size: 18px;
  }

  /* Pricing */
  .pricing-card__button {
    font-size: 18px;
    padding: 18px 0;
  }

  /* Clients */
  .clients-grid {
    grid-template-columns: 1fr;
  }

  .client-card {
    height: 112px;
  }

  /* Mobile menu */
  .menu-overlay__nav {
    margin-top: 40px;
  }

  .menu-overlay__link {
    font-size: 20px;
  }
}

@media (max-width: 768px) and (min-height: 800px) {
  .hero {
    padding-top: 76px;
  }
}

@media (max-width: 1200px) and (min-width: 993px) {
  .hero {
    background-position-x: -35%;
  }
}
