.products-header { background: rgba(5, 43, 104, .2); }
.products-header .main-nav .is-active { color: #fff; opacity: 1; }
.products-header.is-scrolled .main-nav .is-active { color: var(--blue-deep); }

.products-hero { position: relative; isolation: isolate; min-height: 540px; display: grid; align-items: end; overflow: hidden; padding: 150px 0 86px; color: #fff; background: radial-gradient(circle at 82% 18%, #238cf2 0, #0f5abe 34%, #052b68 76%); }
.products-hero::after { content: ''; position: absolute; z-index: -1; width: 440px; height: 440px; right: -90px; bottom: -190px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 64px rgba(80,192,255,.05), 0 0 0 128px rgba(80,192,255,.025); }
.products-hero-grid { position: absolute; z-index: -1; inset: 0; opacity: .28; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(90deg, #000, transparent 85%); }
.products-hero-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 70px; }
.products-hero h1 { max-width: 820px; margin: 0 0 24px; font-family: var(--font-display); font-size: clamp(48px, 6vw, 78px); font-weight: 600; letter-spacing: -.06em; line-height: .98; }
.products-hero h1 em { color: var(--blue-light); font-style: normal; }
.products-hero-content > div:first-child > p:last-child { max-width: 680px; margin: 0; color: rgba(255,255,255,.75); font-size: 17px; line-height: 1.7; }
.products-hero-stat { display: grid; min-width: 156px; padding: 22px 24px; border: 1px solid rgba(255,255,255,.25); border-radius: 18px; background: rgba(5,43,104,.24); backdrop-filter: blur(10px); }
.products-hero-stat strong { font-family: var(--font-display); font-size: 48px; font-weight: 600; line-height: 1; }
.products-hero-stat span { margin-top: 7px; color: #a9dfff; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.catalog-section { padding: 110px 0 125px; background: var(--canvas); }
.catalog-intro { display: flex; justify-content: space-between; gap: 60px; align-items: end; }
.catalog-intro h2 { margin: 0; font-family: var(--font-display); font-size: clamp(37px, 4.6vw, 59px); font-weight: 600; letter-spacing: -.055em; line-height: 1.02; }
.catalog-intro > p { max-width: 410px; margin: 0 0 3px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.catalog-tools { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: 20px; align-items: start; margin-top: 54px; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 16px 40px rgba(10,65,137,.07); }
.catalog-search input { width: 100%; min-height: 49px; padding: 0 18px; color: var(--ink); border: 1px solid rgba(15,90,190,.18); border-radius: 13px; outline: none; background: #f7fbff; font: inherit; font-size: 13px; transition: border-color .2s ease, box-shadow .2s ease; }
.catalog-search input:focus { border-color: var(--blue-vivid); box-shadow: 0 0 0 3px rgba(30,144,255,.12); }
.category-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.filter-button { min-height: 49px; padding: 0 15px; border: 1px solid rgba(15,90,190,.14); border-radius: 12px; background: #fff; cursor: pointer; font-size: 11px; font-weight: 800; letter-spacing: .025em; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.filter-button:hover, .filter-button:focus-visible { color: var(--blue-deep); border-color: rgba(15,90,190,.38); outline: none; }
.filter-button.is-active { color: #fff; border-color: var(--blue-deep); background: var(--blue-deep); }
.results-count { min-height: 18px; margin: 26px 0 17px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.product-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid rgba(15,90,190,.12); border-radius: 22px; background: #fff; box-shadow: 0 12px 32px rgba(10,65,137,.055); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.product-card:hover { border-color: rgba(30,144,255,.34); box-shadow: 0 24px 52px rgba(10,65,137,.13); transform: translateY(-5px); }
.product-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(145deg, #fff, #f3f8fd); }
.product-card-media::after { content: ''; position: absolute; inset: 13px; border: 1px solid rgba(15,90,190,.06); border-radius: 14px; pointer-events: none; }
.product-card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s cubic-bezier(.2,.65,.3,1); }
.product-card:hover .product-card-media img { transform: scale(1.035); }
.product-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px; border-top: 1px solid rgba(15,90,190,.08); }
.product-category { margin: 0 0 11px; color: var(--blue-vivid); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.product-card h3 { margin: 0 0 11px; font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.035em; line-height: 1.13; }
.product-card-description { margin: 0 0 23px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.product-card-button { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: auto; padding: 14px 0 0; color: var(--blue-deep); border: 0; border-top: 1px solid rgba(15,90,190,.11); background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.product-card-button span:last-child { font-size: 18px; transition: transform .2s ease; }
.product-card-button:hover span:last-child, .product-card-button:focus-visible span:last-child { transform: translateX(4px); }
.catalog-empty { padding: 70px 24px; border: 1px dashed rgba(15,90,190,.25); border-radius: 22px; text-align: center; background: #fff; }
.catalog-empty h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 25px; }
.catalog-empty p { margin: 0; color: var(--muted); }

.products-cta { padding: 100px 0; color: #fff; background: #052b68; }
.products-cta-content { display: grid; grid-template-columns: 1fr .78fr; gap: clamp(50px, 10vw, 140px); align-items: end; }
.products-cta h2 { max-width: 620px; margin: 0; font-family: var(--font-display); font-size: clamp(37px, 4.6vw, 58px); font-weight: 600; letter-spacing: -.055em; line-height: 1.03; }
.products-cta-content > div:last-child > p { margin: 0 0 28px; color: rgba(255,255,255,.68); font-size: 14px; line-height: 1.7; }
.products-cta-channels { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; color: rgba(255,255,255,.62); font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.products-cta-channels a, .products-cta-channels span { display: inline-flex; gap: 6px; }
.products-cta-channels strong { color: #fff; font-weight: 700; }
.products-cta-channels a:hover, .products-cta-channels a:focus-visible { color: var(--blue-light); }

.product-modal[hidden] { display: none; }
.product-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; }
.product-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(0,17,44,.72); backdrop-filter: blur(7px); cursor: pointer; }
.product-modal-panel { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(300px, .86fr) minmax(380px, 1.14fr); width: min(1040px, 100%); max-height: min(820px, calc(100vh - 48px)); overflow: auto; border-radius: 26px; background: #fff; box-shadow: 0 35px 90px rgba(0,17,44,.34); }
.product-modal-close { position: absolute; z-index: 3; top: 18px; right: 18px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0 0 3px; color: #fff; border: 0; border-radius: 50%; background: var(--blue-deep); cursor: pointer; font-size: 25px; line-height: 1; }
.product-modal-media { position: sticky; top: 0; display: grid; place-items: center; min-height: 530px; padding: 28px; overflow: hidden; background: linear-gradient(145deg, #fff, #eef6fd); }
.product-modal-media img { width: 100%; max-height: 560px; object-fit: contain; }
.product-modal-content { padding: 60px 58px 52px; }
.product-modal-content h2 { margin: 0 0 19px; font-family: var(--font-display); font-size: clamp(30px, 3.5vw, 45px); font-weight: 600; letter-spacing: -.05em; line-height: 1.04; }
.product-modal-description { margin: 0 0 31px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.product-modal-content h3 { margin: 0 0 14px; font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.product-specs { margin: 0 0 32px; border-top: 1px solid rgba(15,90,190,.13); }
.product-specs > div { display: grid; grid-template-columns: minmax(115px, .42fr) minmax(0, 1fr); gap: 18px; padding: 13px 0; border-bottom: 1px solid rgba(15,90,190,.1); }
.product-specs dt { color: var(--muted); font-size: 11px; font-weight: 700; }
.product-specs dd { margin: 0; font-size: 12px; font-weight: 700; line-height: 1.5; }
.modal-contact { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding: 16px 19px; color: #fff; border-radius: 13px; background: var(--blue-deep); font-size: 12px; font-weight: 800; transition: background .2s ease; }
.modal-contact:hover, .modal-contact:focus-visible { background: var(--blue-vivid); }
body.modal-open { overflow: hidden; }

@media (max-width: 980px) {
  .catalog-tools { grid-template-columns: 1fr; }
  .category-filters { justify-content: flex-start; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-modal-panel { grid-template-columns: .84fr 1.16fr; }
  .product-modal-content { padding: 55px 38px 42px; }
}

@media (max-width: 840px) {
  .products-header .main-nav .is-active { color: var(--blue-deep); }
  .products-hero { min-height: 500px; padding: 140px 0 70px; }
  .products-hero-content { grid-template-columns: 1fr; gap: 34px; }
  .products-hero-stat { display: flex; align-items: baseline; gap: 12px; width: fit-content; }
  .products-hero-stat span { margin: 0; }
  .catalog-intro { display: block; }
  .catalog-intro > p { margin-top: 22px; }
  .products-cta-content { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 680px) {
  .products-hero { min-height: auto; padding: 124px 0 62px; }
  .products-hero h1 { font-size: clamp(42px, 12vw, 58px); }
  .products-hero-content > div:first-child > p:last-child { font-size: 15px; }
  .catalog-section { padding: 76px 0 85px; }
  .catalog-tools { margin-top: 36px; padding: 13px; }
  .category-filters { flex-wrap: nowrap; margin: 0 -13px -5px; padding: 0 13px 6px; overflow-x: auto; scrollbar-width: none; }
  .category-filters::-webkit-scrollbar { display: none; }
  .filter-button { flex: 0 0 auto; min-height: 43px; }
  .product-grid { grid-template-columns: 1fr; gap: 15px; }
  .product-card { border-radius: 18px; }
  .product-card-body { padding: 21px; }
  .products-cta { padding: 78px 0; }
  .product-modal { align-items: end; padding: 0; }
  .product-modal-panel { display: block; width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; }
  .product-modal-media { position: relative; min-height: 280px; height: 38vh; padding: 22px; }
  .product-modal-content { padding: 34px 23px 36px; }
  .product-modal-content h2 { padding-right: 32px; font-size: 32px; }
  .product-modal-close { position: fixed; top: auto; right: 16px; bottom: calc(92vh - 52px); }
}

@media (max-width: 390px) {
  .products-hero h1 { font-size: 39px; }
  .products-hero-stat strong { font-size: 40px; }
  .product-specs > div { grid-template-columns: 1fr; gap: 5px; }
}
