/*
 * BOMTECH responsive styles.
 * Three layout breakpoints: navigation/tablet, stacked layout and phone.
 */

@media (max-width: 1100px) {
  :root {
    --header-height: 65px;
    --header-offset: 18px;
  }

  .site-header__inner {
    position: relative;
    z-index: 2;
    width: calc(100% - 32px);
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    padding: 5px 10px 5px 16px;
  }

  .site-header__brand-slot {
    position: relative;
    z-index: 3;
  }

  .site-header__brand,
  .site-header__brand-slot .custom-logo-link {
    width: 132px;
    height: 55px;
  }

  .site-header__actions {
    position: relative;
    z-index: 3;
    grid-column: 2;
  }

  .site-header__cta {
    display: none;
  }

  .site-header__toggle {
    display: grid;
    width: 44px;
    height: 44px;
    align-content: center;
    gap: 5px;
    padding: 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
  }

  .site-header__toggle span:not(.screen-reader-text) {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 99px;
    background: var(--c-ink);
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .site-header__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .site-header__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-header__nav {
    position: fixed;
    z-index: 1;
    inset: 0;
    display: grid;
    width: 100%;
    visibility: hidden;
    align-content: center;
    justify-items: stretch;
    gap: 28px;
    overflow-y: auto;
    padding: 110px 24px 36px;
    background: #fff;
    opacity: 0;
    overscroll-behavior: contain;
    pointer-events: none;
    transform: translateY(-10px);
    transition: visibility 0s linear 0.24s, opacity 0.24s ease, transform 0.24s ease;
  }

  .site-header__nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .site-header__menu {
    display: grid;
    justify-content: stretch;
    gap: 2px;
    font-size: 19px;
  }

  .site-header__menu a {
    display: flex;
    min-height: 48px;
    justify-content: center;
    padding-inline: 10px;
  }

  .site-header__menu a::after {
    right: 25%;
    bottom: 4px;
    left: 25%;
  }

  .site-header__nav-actions {
    display: grid;
    width: min(100%, 420px);
    justify-self: center;
  }

  .site-header__nav-actions .button {
    width: 100%;
    min-height: 52px;
  }

  .hero__content {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 430px);
  }

  .hero__copy {
    padding-top: 18px;
  }

  .hero__copy > p {
    margin-bottom: 34px;
    font-size: 18px;
  }

  .hero__product-composite {
    width: clamp(500px, 50vw, 560px);
  }

  .hero__note--one,
  .hero__note--two {
    right: 0;
  }

  .hero__note--three {
    top: 390px;
    left: -36px;
    width: 240px;
  }

  .recommendation__grid {
    grid-template-columns: minmax(0, 1fr) 430px;
  }

  .recommendation__visual > img {
    width: 410px;
  }

  .quote-card {
    width: 395px;
  }

  .problem-solution__grid {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .benefit-list__grid,
  .software-features__grid {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .benefit-list__image,
  .software-features__grid > img {
    width: 100%;
  }

  .offer__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    align-items: center;
  }

  .offer__support {
    grid-row: 1 / span 2;
  }

  .offer__product-wrap {
    align-self: end;
  }

  .offer__copy {
    grid-column: 2;
  }

  .offer__product {
    width: 270px;
    height: 350px;
  }

  .contact__grid {
    grid-template-columns: minmax(320px, 39%) minmax(0, 55%);
  }

  .faq__grid {
    width: min(calc(100% - 48px), 1000px);
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 40px;
  }

  .faq__heading {
    width: auto;
  }

  .site-footer__bar {
    gap: 24px;
    padding-inline: 24px;
  }

  .site-footer__menu {
    gap: 18px;
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .site-container {
    width: min(calc(100% - 32px), var(--container));
  }

  .section {
    padding-block: 64px;
  }

  .hero {
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 124px 0 62px;
  }

  .hero__content {
    display: block;
    height: auto;
    min-height: 0;
  }

  .hero__copy {
    padding-top: 0;
  }

  .hero h1 {
    max-width: 650px;
    font-size: clamp(30px, 7vw, 46px);
  }

  .hero__copy > p {
    max-width: 520px;
    margin: 17px 0 24px;
    font-size: 16px;
    line-height: 1.45;
  }

  .hero .button-group {
    gap: 10px;
  }

  .hero .button {
    min-width: 0;
    min-height: 42px;
    padding: 10px 17px;
    font-size: 13px;
  }

  .hero__product {
    display: grid;
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1.2fr) minmax(112px, 0.8fr);
    grid-template-rows: repeat(3, minmax(58px, auto));
    column-gap: 8px;
    row-gap: 10px;
    margin-top: 28px;
    isolation: isolate;
  }

  .hero__product-composite {
    display: none;
  }

  .hero__product-mobile-camera {
    display: block;
    position: relative;
    top: auto;
    left: auto;
    width: min(250px, 100%);
    height: auto;
    grid-column: 2;
    grid-row: 1 / -1;
    place-self: center;
    transform: none;
  }

  .hero__note {
    position: relative;
    z-index: 3;
    inset: auto;
    display: flex;
    width: auto;
    min-height: 56px;
    padding: 9px 13px;
    background: rgba(67, 81, 165, 0.1);
    font-size: 12px;
    line-height: 1.35;
  }

  .hero__note span {
    flex-basis: 28px;
    height: 28px;
    font-size: 18px;
  }

  .hero__note--one {
    width: 100%;
    grid-column: 1;
    grid-row: 1;
  }

  .hero__note--two {
    width: 100%;
    grid-column: 1;
    grid-row: 2;
  }

  .hero__note--three {
    width: 100%;
    grid-column: 1;
    grid-row: 3;
  }

  .recommendation {
    padding: 86px 0 50px;
  }

  .recommendation__grid {
    display: block;
  }

  .recommendation__copy h2 {
    font-size: clamp(34px, 8vw, 52px);
    line-height: 1.08;
  }

  .marker-note {
    width: min(390px, 100%);
    margin: 12px auto 0;
    padding: 12px 20px;
    font-size: 15px;
  }

  .recommendation__visual {
    height: 450px;
    margin-top: 18px;
  }

  .recommendation__visual > img {
    width: min(454px, 100%);
  }

  .quote-card {
    bottom: 0;
    width: min(410px, 94%);
    min-height: 126px;
    padding: clamp(18px, 4vw, 24px);
  }

  .quote-card strong {
    font-size: clamp(16px, 4vw, 19px);
  }

  .quote-card small {
    font-size: clamp(13px, 3.3vw, 15px);
  }

  .problem-solution__grid,
  .benefit-list__grid,
  .software-features__grid,
  .contact__grid,
  .faq__grid {
    grid-template-columns: 1fr;
  }

  .problem-card,
  .solution-card {
    min-height: 320px;
    padding: 28px;
    border-radius: 30px;
  }

  .problem-card h3,
  .solution-card h3 {
    margin-top: 52px;
  }

  .benefit-list {
    padding: 66px 0 82px;
  }

  .benefit-list h2,
  .business-benefits h2,
  .gallery h2 {
    margin-bottom: 34px;
  }

  .benefit-list ol {
    gap: 8px;
  }

  .benefit-list li {
    min-height: 58px;
    padding: 10px 16px;
    font-size: 16px;
  }

  .benefit-list__image {
    width: 100%;
    max-width: none;
    height: 380px;
    margin-top: 28px;
  }

  .intro-statement {
    padding: 72px 0 64px;
  }

  .intro-statement__glow {
    top: 52%;
    width: min(108vw, 520px);
    margin: 0;
  }

  .business-benefits h2 span {
    padding-left: 0;
  }

  .business-benefits__visual {
    min-height: 0;
  }

  .business-benefits__visual img {
    height: 340px;
  }

  .business-benefits__visual p {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 14px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
  }

  .stats-grid__item:last-child {
    grid-column: 1 / -1;
  }

  .trust-strip {
    padding: 40px 0 64px;
  }

  .trust-strip__grid {
    grid-template-columns: 1fr;
  }

  .trust-strip__grid > div {
    min-height: 74px;
    justify-content: flex-start;
    gap: 18px;
    padding: 24px 34px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .trust-strip span {
    max-width: none;
    text-align: left;
  }

  .software-features {
    padding: 56px 0;
    border-radius: 24px;
  }

  .software-features__grid > img {
    width: 100%;
    max-width: none;
    height: 430px;
    margin-top: 28px;
  }

  .feature-list li {
    min-height: 70px;
    padding: 17px 16px 17px 46px;
    font-size: 14px;
  }

  .feature-list li::before {
    left: 18px;
  }

  .feature-list li.is-active {
    min-height: 84px;
    font-size: 16px;
  }

  .offer {
    padding: 84px 0;
  }

  .offer__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    align-items: start;
    gap: 34px 22px;
  }

  .offer__support {
    grid-row: auto;
    min-height: 0;
  }

  .offer__product-wrap {
    align-self: end;
  }

  .offer__product {
    width: min(250px, 100%);
    height: 330px;
  }

  .offer__copy {
    grid-column: 1 / -1;
  }

  .offer__copy h2 {
    max-width: none;
  }

  .gallery {
    padding: 68px 0 74px;
    border-radius: 24px;
  }

  .gallery__grid {
    gap: 12px;
  }

  .contact {
    padding: 78px 0 88px;
  }

  .contact__grid {
    gap: 34px;
  }

  .contact-card {
    min-height: 410px;
  }

  .faq {
    padding: 62px 0 86px;
    border-radius: 24px;
  }

  .faq__grid {
    width: min(calc(100% - 32px), var(--container));
    gap: 40px;
  }

  .faq__heading {
    grid-row: 1;
    width: auto;
    max-width: 600px;
    padding-top: 0;
  }

  .accordion {
    grid-row: 2;
  }

  .site-main,
  .shop-shell {
    padding-top: 120px;
  }

  .error-page__code {
    font-size: 150px;
  }

  .site-footer {
    padding-top: 24px;
    padding-bottom: 0;
  }

  .site-footer__bar {
    display: grid;
    width: 100%;
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    align-content: start;
    gap: 16px 20px;
    padding: 20px;
  }

  .site-footer__brand,
  .site-footer__bar > .custom-logo-link {
    width: min(145px, 100%);
    height: 58px;
  }

  .site-footer__nav {
    grid-column: 1 / -1;
  }

  .site-footer__menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    justify-content: start;
    gap: 7px 16px;
    font-size: 13px;
  }

  .site-footer__menu a {
    display: block;
    padding: 3px 0;
    white-space: normal;
  }

  .site-footer__cta {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
    font-size: 14px;
  }
}

@media (max-width: 620px) {
  .site-container {
    width: calc(100% - 32px);
  }

  .section {
    padding-block: 54px;
  }

  .decorated-heading {
    gap: 8px;
  }

  .decorated-heading__sparkle {
    --sparkle-width: clamp(72px, 23vw, 88px);
    max-width: 30%;
  }

  .decorated-heading__row {
    gap: 8px;
  }

  .decorated-heading__subline {
    padding-left: 12%;
  }

  .offer__price-sparkle {
    --offer-sparkle-width: 108px;
  }

  .hero {
    padding-top: 112px;
  }

  .hero .button-group {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .hero .button {
    width: 100%;
    gap: 8px;
    padding-inline: 10px;
    white-space: nowrap;
  }

  .hero .button .icon {
    flex: 0 0 auto;
  }

  .recommendation__visual {
    height: clamp(390px, 108vw, 420px);
  }

  .quote-card {
    width: min(96%, 410px);
  }

  .problem-solution__grid {
    gap: 24px;
  }

  .stats-grid strong {
    font-size: 29px;
  }

  .stats-grid__item--compatibility strong {
    font-size: 23px;
  }

  .stats-grid span {
    font-size: 10px;
  }

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

  .offer__support,
  .offer__product-wrap,
  .offer__copy {
    grid-column: 1;
  }

  .offer__support > img {
    width: min(240px, 72%);
  }

  .offer__product {
    width: min(300px, 82vw);
    height: 390px;
  }

  .offer__copy ul {
    grid-template-columns: 1fr;
  }

  .offer__price {
    flex-wrap: wrap;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .gallery__grid a {
    aspect-ratio: 4 / 3;
  }

  .contact-card {
    min-height: 380px;
    padding: 30px 24px;
  }

  .contact-card > p {
    width: auto;
  }

  .contact-card address {
    margin-top: 46px;
  }

  .faq {
    padding: 50px 0 70px;
    border-radius: 20px;
  }

  .faq__grid {
    gap: 30px;
  }

  .faq__heading h2 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .accordion {
    gap: 17px;
  }

  .accordion__item {
    border-radius: 12px;
  }

  .accordion__item button {
    min-height: 68px;
    padding: 15px 16px 15px 18px;
    font-size: clamp(16px, 4.5vw, 18px);
  }

  .accordion__icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    border-width: 4px;
    border-radius: 10px;
  }

  .accordion__panel {
    padding: 0 18px 22px;
  }

  .accordion__panel p {
    font-size: clamp(14.5px, 3.9vw, 16px);
    line-height: 1.52;
  }

  .accordion__item.is-open {
    --faq-notch-scale: 0.74;
    margin-bottom: 0;
  }

  .accordion__item.is-open button {
    min-height: 70px;
    padding: 19px 64px 7px 18px;
  }

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

  .error-page {
    min-height: 720px;
  }

  .error-page__code {
    font-size: 120px;
  }

  .error-page .button-group {
    display: grid;
  }

  .error-page .button {
    width: 100%;
  }

  .site-header__inner,
  .site-footer__bar {
    width: calc(100% - 24px);
  }

  .site-footer__menu {
    gap: 7px 10px;
    font-size: 12px;
  }
}

@media (max-width: 360px) {
  .hero__product {
    grid-template-columns: minmax(0, 1.25fr) minmax(94px, 0.75fr);
    grid-template-rows: repeat(3, minmax(62px, auto));
    gap: 8px 6px;
  }

  .hero__product-mobile-camera {
    width: min(180px, 100%);
    grid-column: 2;
    grid-row: 1 / -1;
  }

  .hero__note--one,
  .hero__note--two,
  .hero__note--three {
    width: 100%;
    grid-column: 1;
  }

  .hero__note--one {
    grid-row: 1;
  }

  .hero__note--two {
    grid-row: 2;
  }

  .hero__note--three {
    grid-row: 3;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
