:root {
  --blue-950: #052d57;
  --blue-900: #083d72;
  --blue-800: #074380;
  --blue-700: #1467ad;
  --blue-500: #2795f4;
  --blue-300: #55b0ff;
  --ink: #12233a;
  --muted: #607086;
  --line: #dfe8f1;
  --surface: #f3f7fb;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(8, 61, 114, 0.1);
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--white);
  color: var(--blue-900);
  border-radius: 4px;
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 20;
  min-height: 86px;
  background: var(--white);
  border-bottom: 1px solid rgba(8, 61, 114, 0.1);
}

.header-inner {
  min-height: 86px;
  display: grid;
  grid-template-columns: 210px 1fr auto;
  align-items: center;
  gap: 36px;
}

.brand img { width: 174px; height: 50px; object-fit: contain; object-position: left center; }

.header-nav { display: flex; justify-content: center; gap: 34px; }
.header-nav a {
  text-decoration: none;
  color: #36506b;
  font-size: 0.91rem;
  font-weight: 650;
  transition: color 160ms ease;
}
.header-nav a:hover { color: var(--blue-500); }

.header-phone { text-align: right; text-decoration: none; }
.header-phone span { display: block; color: var(--muted); font-size: 0.75rem; }
.header-phone strong { display: block; color: var(--blue-900); font-size: 1rem; }

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 86% 25%, rgba(85, 176, 255, 0.24), transparent 25%),
    linear-gradient(116deg, var(--blue-950), var(--blue-900) 62%, #07569a);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -15vw -48% 44%;
  height: 78%;
  border-top: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.035);
  transform: skewY(-10deg);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .11;
  background-image:
    linear-gradient(rgba(255,255,255,.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.45) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, transparent 2%, #000 70%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr);
  gap: 90px;
  align-items: center;
  padding-block: 80px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 25px;
  color: #b9daf7;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow span { width: 32px; height: 2px; background: var(--blue-300); }
.eyebrow-dark { color: var(--blue-700); }

.hero h1,
.section-heading h2,
.contact-section h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .97;
}

.hero h1 { max-width: 720px; font-size: clamp(3rem, 6.3vw, 5.7rem); text-transform: uppercase; }
.hero h1 em { color: var(--blue-300); font-style: normal; }
.hero-lead { max-width: 635px; margin: 30px 0 0; color: #d8e8f7; font-size: clamp(1.05rem, 1.6vw, 1.28rem); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 3px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .02em;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue-500); color: var(--white); box-shadow: 0 12px 28px rgba(39,149,244,.23); }
.button-primary:hover { background: #1685e7; }
.button-ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.button-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.button-light { background: var(--white); color: var(--blue-900); }

.hero-card {
  position: relative;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(4, 44, 83, .55);
  backdrop-filter: blur(12px);
  padding: 38px;
  box-shadow: 0 30px 70px rgba(0,0,0,.14);
}
.hero-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 78px;
  height: 4px;
  background: var(--blue-300);
}
.hero-card-kicker { margin: 0 0 11px; color: var(--blue-300); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero-card h2 { margin: 0; font-size: 1.55rem; line-height: 1.2; }
.hero-card ul { list-style: none; margin: 28px 0 0; padding: 0; }
.hero-card li { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 14px; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.13); color: #d9e9f8; }
.hero-card li span { color: var(--blue-300); font-size: .75rem; font-weight: 800; }

.benefits { background: var(--white); border-bottom: 1px solid var(--line); }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.benefit { min-height: 118px; display: flex; align-items: center; gap: 18px; padding: 24px 32px; border-right: 1px solid var(--line); }
.benefit:first-child { border-left: 1px solid var(--line); }
.benefit-icon { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; color: var(--blue-500); background: #ebf6ff; border-radius: 50%; font-size: 1.1rem; font-weight: 800; }
.benefit strong, .benefit small { display: block; }
.benefit strong { font-size: .95rem; }
.benefit small { margin-top: 3px; color: var(--muted); font-size: .78rem; }

.catalog-section { padding: 100px 0 115px; background: var(--surface); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 46px; }
.section-heading h2 { font-size: clamp(2.25rem, 5vw, 4rem); color: var(--blue-950); }
.catalog-count { margin: 0 0 8px; color: var(--muted); font-size: .92rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.product-card { overflow: hidden; display: flex; flex-direction: column; background: var(--white); border: 1px solid #e2eaf2; box-shadow: 0 12px 30px rgba(8,61,114,.055); }
.product-media { position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; border: 0; padding: 0; background: #dce6ee; cursor: zoom-in; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.product-card:hover .product-media img { transform: scale(1.025); }
.product-badge { position: absolute; top: 16px; left: 16px; z-index: 2; padding: 7px 10px; color: var(--white); background: var(--blue-900); font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 27px; }
.product-code { margin: 0 0 10px; color: var(--blue-700); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-card h3 { margin: 0; font-size: 1.28rem; line-height: 1.25; }
.product-description { margin: 12px 0 0; color: var(--muted); font-size: .9rem; }
.product-features { display: grid; gap: 9px; margin: 22px 0 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-feature { display: flex; justify-content: space-between; gap: 18px; font-size: .82rem; }
.product-feature span { color: var(--muted); }
.product-feature strong { text-align: right; font-weight: 700; }
.product-bottom { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-top: auto; padding-top: 23px; }
.product-price small { display: block; margin-bottom: 3px; color: var(--muted); font-size: .72rem; }
.product-price strong { display: block; color: var(--blue-900); font-size: 1.45rem; line-height: 1; }
.product-link { flex: 0 0 auto; color: var(--blue-700); font-size: .82rem; font-weight: 800; text-decoration: none; }
.product-link:hover { color: var(--blue-500); }

.catalog-empty { padding: 66px clamp(24px, 7vw, 80px); background: var(--white); border-left: 4px solid var(--blue-500); box-shadow: var(--shadow); }
.catalog-empty span { color: var(--blue-700); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.catalog-empty h3 { max-width: 720px; margin: 12px 0; color: var(--blue-950); font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.08; }
.catalog-empty p { margin: 0 0 28px; color: var(--muted); }

.contact-section { position: relative; overflow: hidden; padding: 100px 0; color: var(--white); background: var(--blue-900); }
.contact-section::after { content: "ЖБ"; position: absolute; right: -2vw; bottom: -10vw; color: rgba(255,255,255,.035); font-size: 30vw; font-weight: 900; line-height: 1; }
.contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.contact-section h2 { font-size: clamp(2.5rem, 5.5vw, 4.7rem); text-transform: uppercase; }
.contact-copy > p { max-width: 560px; margin: 2px 0 28px; color: #d4e5f6; font-size: 1.08rem; }
.contact-links { display: grid; gap: 6px; margin-bottom: 34px; }
.contact-links a { width: fit-content; color: var(--white); font-size: clamp(1.05rem, 2vw, 1.4rem); font-weight: 750; text-decoration: none; }
.contact-links a:hover { color: var(--blue-300); }

.site-footer { padding: 32px 0; background: #042b52; color: #b7cde0; }
.footer-inner { display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 30px; }
.footer-inner img { width: 150px; filter: brightness(0) invert(1); opacity: .95; }
.footer-inner p { margin: 0; text-align: center; font-size: .8rem; }
.footer-inner a { font-size: .8rem; text-decoration: none; }
.footer-inner a:hover { color: var(--white); }

.lightbox { width: min(96vw, 1100px); max-height: 94vh; padding: 0; overflow: visible; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(2, 20, 38, .88); backdrop-filter: blur(5px); }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; background: #061d32; }
.lightbox p { margin: 12px 50px 0 0; color: var(--white); font-size: .9rem; }
.lightbox-close { position: absolute; top: -44px; right: 0; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; color: var(--white); background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; }

:focus-visible { outline: 3px solid var(--blue-300); outline-offset: 3px; }

@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .header-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 45px; }
  .hero-card { max-width: 650px; }
  .benefit { padding-inline: 18px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { gap: 55px; }
  .footer-inner { grid-template-columns: 160px 1fr; }
  .footer-inner a { grid-column: 1 / -1; text-align: center; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .site-header, .header-inner { min-height: 74px; }
  .header-inner { gap: 15px; }
  .brand img { width: 132px; height: 42px; }
  .header-phone span { display: none; }
  .header-phone strong { font-size: .84rem; }
  .hero-inner { min-height: auto; padding-block: 62px 68px; }
  .hero h1 { font-size: clamp(2.65rem, 13vw, 4.3rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-card { padding: 28px 23px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit, .benefit:first-child { min-height: 96px; border-left: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .catalog-section, .contact-section { padding-block: 72px; }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 32px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-empty { padding: 42px 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-inner p { text-align: center; }
  .footer-inner a { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
