/* ==========================================================================
   ANYDESIGN — RESPONSIVE STYLESHEET
   Breakpoints (desktop-first, max-width):
     1200px  Desktop / small laptop
     992px   Laptop / large tablet
     768px   Tablet
     576px   Mobile
     375px   Small mobile
   Base (>1200px) styles live in style.css. This file only overrides what
   changes at each breakpoint so the desktop UI is preserved exactly and
   scales down without layout shift or horizontal scroll.
   ========================================================================== */

/* ==========================================================================
   1200px — DESKTOP / SMALL LAPTOP
   ========================================================================== */
@media (max-width: 1200px) {
  .contact-top {
    padding-top: 20px;
  }
  .container {
    padding-inline: 48px;
  }

  .hero__inner {
    gap: 48px;
  }

  .hero__heading {
    font-size: 46px;
  }

  .products-grid {
    gap: 20px;
  }

  .services-grid {
    gap: 16px;
  }

  .service-card {
    padding: 20px 16px;
  }

  .promo {
    gap: 40px;
    padding: 40px;
  }

  .cta-banner {
    padding: 48px;
  }

  .stats-bar {
    gap: 16px;
  }

  .testimonials-grid {
    gap: 20px;
  }

  .footer__grid {
    gap: 32px;
  }
}

/* ==========================================================================
   992px — LAPTOP / LARGE TABLET
   ========================================================================== */
@media (max-width: 992px) {
  :root {
    --section-padding-y: 80px;
  }

  .container {
    padding-inline: var(--pad-tablet);
  }

  /* Header: collapse desktop nav + CTA, show hamburger */
  .nav,
  .header__cta {
    display: none;
  }

  .header__toggle {
    display: flex;
  }

  /* Hero: stack content for smaller screens */
  .hero__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding-top: 40px;
    padding-bottom: 60px;
    gap: 48px;
  }

  .hero__content {
    flex: 1 1 auto;
  }

  .hero__heading {
    font-size: 40px;
  }

  .hero__desc {
    max-width: 100%;
  }

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

  .section-header__title {
    font-size: 34px;
  }

  /* Products: 4 -> 2 columns */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Services: 6 -> 3 columns */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Promo: stack visual above content */
  .promo {
    flex-direction: column;
    padding: 32px;
    gap: 32px;
  }

  .promo__visual {
    width: 100%;
    height: 220px;
  }

  .promo__content {
    width: 100%;
  }

  .promo__title {
    font-size: 28px;
  }

  /* CTA banner: stack content above visual, center text */
  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 48px 32px;
  }

  .cta-banner__desc {
    max-width: none;
    margin-inline: auto;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid__col:nth-child(3) {
    grid-column: span 2;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .testimonials-grid__col:nth-child(3) .testimonial-card {
    flex: 1 1 calc(50% - 12px);
  }

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

@media (max-width: 900px) {
  .category-hero .hero-art__picture--desktop-only {
    display: none;
  }
}

/* ==========================================================================
   768px — TABLET
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --section-padding-y: 64px;
  }

  .hero__heading {
    font-size: 32px;
  }

  .hero__underline {
    width: 140px;
  }

  .hero__desc {
    font-size: 16px;
  }

  .hero__actions {
    margin-bottom: 40px;
  }

  .section {
    padding-top: var(--section-padding-y);
    padding-bottom: var(--section-padding-y);
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 40px;
  }

  .section-header__title,
  .promo__title {
    font-size: 28px;
  }

  /* Services: 3 -> 2 columns */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .checklist {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cta-banner__title {
    font-size: 28px;
  }

  .logo-card {
    width: 160px;
    height: 72px;
    font-size: 14px;
  }

  .stat-card {
    padding: 16px;
  }

  /* Testimonials: back to single-column stacking within 2 cols */
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid__col:nth-child(3) {
    grid-column: auto;
    flex-direction: column;
  }

  .testimonials-grid__col:nth-child(3) .testimonial-card {
    flex: 1 1 auto;
  }

  .footer {
    padding-top: 28px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 16px;
  }

  .footer__brand-desc {
    max-width: 100%;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* ==========================================================================
   576px — MOBILE
   ========================================================================== */
@media (max-width: 576px) {
  .container {
    padding-inline: var(--pad-mobile);
  }

  .mobile-nav {
    padding: 20px var(--pad-mobile) 24px;
  }

  .hero__inner {
    padding-top: 28px;
    padding-bottom: 48px;
    gap: 36px;
  }

  .hero__badge {
    font-size: 10.5px;
    padding: 6px 12px;
    margin-bottom: 18px;
  }

  .hero__heading {
    font-size: 26px;
    margin-bottom: 16px;
  }

  .hero__underline {
    width: 120px;
    margin-bottom: 18px;
  }

  .hero__desc {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 40px;
  }

  .btn {
    width: 100%;
  }

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

  .feature-card__title {
    font-size: 12px;

  }

  .feature-card__desc {
    font-size: 11px;
  }

  .section-header__title,
  .promo__title,
  .cta-banner__title {
    font-size: 24px;
  }

  /* Products: 2 -> 1 column */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card__image {
    height: 96px;
  }

  /* Services: 2 -> 1 column */
  .services-grid {
    grid-template-columns: repeat(2);
    gap: 14px;
  }

  .promo {
    padding: 24px;
    border-radius: 24px;
  }

  .promo__visual {
    height: 180px;
  }

  .cta-banner {
    padding: 60px 24px;
    border-radius: 24px;
  }

  .cta-banner__desc {
    font-size: 14px;
  }

  .stats-bar {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 40px;
  }

  .stat-card {
    padding: 16px;
  }

  .logo-card {
    width: 140px;
    height: 64px;
    font-size: 13px;
  }

  .testimonials-grid {
    gap: 16px;
  }

  .testimonials-grid__col {
    gap: 16px;
  }

  .testimonial-card {
    padding: 20px;
  }

  .testimonial-card__quote {
    font-size: 13.5px;
  }

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

  .footer__grid {
    gap: 14px;
    margin-bottom: 14px;
  }
}

/* ==========================================================================
   375px — SMALL MOBILE
   ========================================================================== */
@media (max-width: 375px) {
  .container {
    padding-inline: 16px;
  }

}

/* ==========================================================================\n+   400px — COMPACT MOBILE LAYOUT\n+   ========================================================================== */
@media (max-width: 400px) {
  .subtitle{
    margin: 0px;
    font-size: 14px;
  }
  .heading{
     font-size: 30px;
  }
      .section-header__title{
        font-size: 17px;
      }
  .category-hero {
    display: block;
    min-height: 0;
    padding: 0;
  }

  .category-hero .hero-copy {
    display: contents;
  }

  .category-hero .hero-copy > :not(.back-to-products),
  .category-hero > .hero-art {
    display: none;
  }

  .category-hero .back-to-products {
    gap: 6px;
    margin: 10px;
    padding: 6px 10px;
    font-size: 0;
  }

  .category-hero .back-to-products::after {
    content: "Return to Product";
    font-size: 11px;
  }

  .category-hero .back-to-products svg {
    width: 14px;
    height: 14px;
  }

  .products-section .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-hero-section {
    display: none;
  }

  .cta-banner {
    align-items: flex-start;
    text-align: left;
  }

  .cta-banner__content {
    position: relative;
    align-self: flex-start;
  }

  .cta-banner__desc {
    margin-inline: 0;
  }

  .cta-banner .btn {
    align-self: flex-start;
    width: auto;
    gap: 5px;
    padding: 6px 9px;
    font-size: 10px;
  }

  .cta-banner .btn svg {
    width: 14px;
    height: 14px;
  }

  .section{
    padding-top: 10px;

  }

  .promo {
    gap: 10px;
  }

  .contact-top{ 
    padding-top: 0px;
 
    margin-top: 5px; 
  }
  .header__inner .logo {
    font-size: 17px;
  }

  .hero__actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }

  .hero__actions .btn {
    width: auto;
    flex: 0 0 auto;
    padding: 11px 14px;
    font-size: 12px;
  }

  #products .section-header > a.btn {
    align-self: flex-end;
    width: auto;
    padding: 9px 14px;
    font-size: 12px;
  }

  .stats-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .stat-card {
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 6px;
  }

      .stat-card__icon {
        width: 35px;
        margin-left: 14px;
        height: 26px;
        display: flex;
        justify-items: center;
        justify-content: center;
      }

  .stat-card__icon svg {
    width: 14px;
    height: 14px;
  }

  .stat-card__value {
            font-size: 10px;
        line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .stat-card__label {
    font-size: 9px;
    line-height: 1.25;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .header__inner {
    gap: 8px;
  }

  .nav {
    display: flex;
    gap: 8px;
  }

  .nav__link {
    font-size: 11px;
    white-space: nowrap;
  }

  .header__toggle {
    display: none;
  }

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

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

  .footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 400px) {
  .contact-form-column {
    display: contents;
  }

  .contact-form-column > .map-card {
    grid-column: 1;
  }
}

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

  .header__inner {
    height: 64px;
  }

  .hero__heading {
    font-size: 23px;
  }

  .hero__badge {
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .hero__desc {
    font-size: 14px;
  }

  .hero__features {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .feature-card__icon {
    width: 38px;
    height: 38px;
  }

  .section-header__title {
    font-size: 21px;
  }

  .product-card__title,
  .service-card__title {
    font-size: 14px;
  }

  .promo {
    padding: 20px;
  }

  .promo__title {
    font-size: 21px;
  }

  .promo__visual {
    height: 160px;
  }

  .cta-banner {
    padding: 28px 18px;
  }

  .cta-banner__title {
    font-size: 21px;
  }

  .stat-card {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .logo-card {
    width: 120px;
    height: 56px;
    font-size: 12px;
  }

  .testimonial-card {
    padding: 16px;
  }

  .testimonial-card__avatar {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .footer__title {
    font-size: 13px;
  }

  .footer__list a,
  .footer__contact,
  .footer__brand-desc {
    font-size: 13px;
  }
}

/* ==========================================================================
   NO HORIZONTAL SCROLL SAFEGUARD
   ========================================================================== */
@media (max-width: 400px) {

  .chip-row {
    margin-top: 12px;}
  .hero__desc{

    font-size: 12px;
    width:140px;
  }
  .cta-banner__desc{
    font-size: 12px;
    width:140px;
  }
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 400px) {
   .promo__title {
    font-size: 17px;
   }
  .header__inner {
    gap: 8px;
  }

  .nav {
    display: flex;
    gap: 8px;
  }

  .nav__link {
    font-size: 11px;
    white-space: nowrap;
  }

  .header__toggle {
    display: none;
  }

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

  .footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0px;
  }
}

@media (max-width: 400px) {

   .cta-banner__title {
    font-size: 17px;
    width: 160px;
  }

  .container{
  
    margin-top: 0;
    margin-bottom: 0;
  }
  .section{ 
    padding-top: 5px;
   
    margin-top: 0;
    margin-bottom: 0;
  }
  element.style {
    padding-top: 40px;
}
  .contact-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 8px;
  }

  .contact-cards {
    gap: 8px;
    min-width: 0;
  }

  .contact-info-column {
    gap: 8px;
  }

  .contact-info-column .map-layout {
    gap: 8px;
  }

  .contact-info-column .map-card {
    height: 200px;
    min-height: 200px;
  }

  .contact-info-column .office-card {
    min-width: 0;
    padding: 8px;
  }

  .office-card__icon {
    width: 24px;
    height: 24px;
    margin-bottom: 6px;
    border-radius: 8px;
  }

  .office-card__icon svg {
    width: 12px;
    height: 12px;
  }

  .office-card__eyebrow {
    font-size: 9px;
  }

  .office-card__company {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .office-card__address {
    font-size: 8px;
    line-height: 1.4;
    margin-bottom: 6px;
  }

  .office-card__row {
    gap: 4px;
    font-size: 8px;
    overflow-wrap: anywhere;
  }

  .office-card__row svg {
    width: 10px;
    height: 10px;
  }

  .office-card__row a,
  .footer__contact span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .contact-card {
    align-items: center;
    gap: 6px;
    padding: 8px 6px;
  }

  .contact-card__icon {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 8px;
  }

  .contact-card__icon svg {
    width: 14px;
    height: 14px;
  }

  .contact-card__title {
    font-size: 10px;
    line-height: 1.2;
  }

  .contact-card > div {
    min-width: 0;
  }

  .contact-card__value,
  .contact-card__note {
    font-size: 8px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .contact-form-card {
    min-width: 0;
    padding: 10px 8px;
  }

  .contact-form-card__title {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.3;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .form-group {
    min-width: 0;
    gap: 4px;
  }

  .form-label {
    font-size: 9px;
  }

  .form-input,
  .form-select {
    min-width: 0;
    padding: 8px 26px 8px 8px;
    border-radius: 8px;
    font-size: 9px;
  }

  .form-control-icon {
    right: 8px;
    width: 13px;
    height: 13px;
  }

  .form-textarea {
    min-height: 56px;
    padding: 8px;
  }

  .btn--block {
    padding: 9px 8px;
    font-size: 10px;
  }
}

@media (max-width: 400px) {
.footer__contact{
        font-size: 9px;
        min-width: 0;
        text-align: center;
    }
  .footer__grid > *,
  
  .footer__title,
  .footer__list a {
    font-size: 10px;
    min-width: 0;
    text-align: center;
  }

  .footer__contact > span {
    display: block;
    width: 100%;
    min-width: 0;
    white-space: normal;
    word-break: break-all;
  }
}

@media (max-width: 400px) {
 
  

  #products .section-header {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
  }

  #products .section-header > div {
    flex: 1 1 auto;
    min-width: 0;
  }

  #products .eyebrow {
    margin-bottom: 4px;
    font-size: clamp(8px, 2.5vw, 10px);
  }

  #products .section-header__title {
    font-size: clamp(16px, 5vw, 20px);
    line-height: 1.2;
    white-space: nowrap;
  }

  #products .section-header > a.btn {
    flex: 0 0 auto;
    align-self: center;
    gap: 4px;
    padding: 7px 8px;
    font-size: clamp(9px, 2.75vw, 11px);
  }

  #products .section-header > a.btn svg {
    width: 14px;
    height: 14px;
  }
}

.products-section .product-media {
  padding: 0;
  background-color: transparent;
  background-image: var(--product-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.products-section .product-media img {
  opacity: 0;
}

@media (min-width: 401px) {
  .catalog-hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }

  .catalog-hero__visual {
    flex: 0 1 46%;
    min-width: 0;
  }

  .catalog-hero__visual img {
    display: block;
    width: 100%;
    max-height: 200px;
    object-fit: contain;
  }
}

@media (max-width: 400px) {

  
.footer__brand-desc {
    font-size: 10px;
  }
  .header__inner .logo {
    font-size: 15px;
  }

  .header__inner .nav {
    display: flex;
    gap: 5px;
  }

  .header__inner .nav__link {
    font-size: 10px;
  }

  .hero__actions {
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
  }

  .hero__actions .btn {
    width: auto;
    padding: 8px 10px;
    font-size: 10px;
  }

  .hero__actions .btn--outline {
    gap: 4px;
  
    font-size: 9px;
  }

  .hero__actions .btn--outline svg {
    width: 13px;
    height: 13px;
  }

  .hero__features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .hero__features .feature-card {
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 4px;
    text-align: center;
  }

  .hero__features .feature-card__icon {
    width: 26px;
    height: 26px;
  }

  .hero__features .feature-card__icon svg {
    width: 15px;
    height: 15px;
  }

  .hero__features .feature-card .flex-col {
    min-width: 0;
    width: 100%;
    margin: 0;
  }

  .hero__features .feature-card__title,
  .hero__features .feature-card__desc {
    font-size: 8px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}