:root {
  --blue: #005f9e;
  --blue-dark: #053f68;
  --red: #d0202a;
  --text: #12212f;
  --muted: #667789;
  --line: #dbe5ee;
  --bg: #f6f9fc;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(13, 48, 77, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219, 229, 238, 0.9);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.brand-mark { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text span { color: var(--blue-dark); text-transform: uppercase; letter-spacing: 0.02em; }
.brand-text small { color: var(--muted); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: 15px; }
.nav a { color: #183044; }
.nav a:hover { color: var(--blue); }
.nav-cta {
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--white) !important;
  background: var(--red);
}
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; padding: 8px; }
.menu-toggle span { display: block; height: 2px; background: var(--blue-dark); margin: 6px 0; }

.section { padding: 88px 0; }
.section-accent {
  background:
    radial-gradient(circle at 8% 5%, rgba(208, 32, 42, 0.13), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(0, 95, 158, 0.18), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}
.section-accent-soft { background: linear-gradient(135deg, rgba(0, 95, 158, 0.08), rgba(208, 32, 42, 0.07)); }
.section-muted { background: var(--bg); }
.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}
h1, h2, h3 { margin: 0; line-height: 1.12; }
h1 { font-size: clamp(38px, 6vw, 72px); letter-spacing: -0.04em; }
h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.03em; }
h3 { font-size: 22px; letter-spacing: -0.02em; }
p { margin: 16px 0 0; color: var(--muted); }

.hero { padding: 86px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; }
.hero-text { max-width: 650px; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 12px 26px rgba(208, 32, 42, 0.22); }
.btn-secondary { background: var(--white); color: var(--blue-dark); border: 1px solid var(--line); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-badges span {
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  color: #24394a;
}
.hero-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.hero-logo { width: 100%; max-height: 210px; object-fit: contain; padding: 26px; background: #fff; }
.hero-card-body { padding: 28px; }
.hero-card-body ul { margin: 18px 0 0; padding-left: 20px; color: var(--muted); }
.hero-card-body li + li { margin-top: 8px; }

.section-head { max-width: 760px; margin-bottom: 34px; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(13, 48, 77, 0.08);
}
.product-card.featured { border-color: rgba(208, 32, 42, 0.32); }
.product-visual {
  min-height: 150px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.product-visual-blue { background: linear-gradient(135deg, var(--blue), #7bbfe9); }
.product-visual-red { background: linear-gradient(135deg, var(--red), #f1848b); }
.product-visual-mix { background: linear-gradient(135deg, var(--blue), var(--red)); }
.product-visual-dark { background: linear-gradient(135deg, #0c2438, #38657f); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.product-list { padding-left: 20px; margin: 16px 0 0; color: var(--muted); }
.product-footer {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.product-footer strong { font-size: 20px; color: var(--blue-dark); white-space: nowrap; flex-shrink: 0; }
.product-footer a { color: var(--red); font-weight: 800; text-align: right; }

.two-columns { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 34px; align-items: start; }
.info-card, .map-card, .lead-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 8px 28px rgba(13, 48, 77, 0.08);
}
.advantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.advantage-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.advantage-card span { color: var(--red); font-weight: 900; }
.advantage-card h3 { margin-top: 12px; }

.lead-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 34px; align-items: start; }
.lead-note {
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: #344c60;
}
.lead-form { display: grid; gap: 14px; }
.lead-form label { display: grid; gap: 7px; font-weight: 800; color: #24394a; }
.lead-form input, .lead-form textarea, .lead-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
  background: #fbfdff;
  color: var(--text);
}
.lead-form input:focus, .lead-form textarea:focus, .lead-form select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 95, 158, 0.1); }
.form-status { min-height: 22px; font-weight: 800; color: var(--blue-dark); }

.contacts-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 34px; align-items: start; }
.contact-list { display: grid; gap: 12px; margin-top: 22px; }
.contact-list a, .contact-list span { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); color: #24394a; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.socials a { padding: 11px 14px; border-radius: 999px; background: var(--blue-dark); color: var(--white); font-weight: 800; }
.map-card iframe { border-radius: 18px; overflow: hidden; margin-top: 16px; background: var(--bg); }

.site-footer { padding: 26px 0; border-top: 1px solid var(--line); background: #0b263c; color: var(--white); }
.footer-inner { display: flex; align-items: center; justify-content: center; gap: 16px; text-align: center; }
.footer-inner a { font-weight: 800; }


.installation-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: center;
}
.installation-content strong { color: var(--blue-dark); }
.installation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.installation-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.installation-card .product-gallery { border-bottom: 1px solid var(--line); }
.installation-main { height: 360px; }
.installation-card-body { padding: 24px 28px 28px; }
.installation-card-body p { margin-top: 10px; }

@media (max-width: 980px) {
  .hero-grid, .two-columns, .lead-grid, .contacts-grid, .installation-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .header-inner { min-height: 70px; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 14px; }
  .nav-cta { text-align: center; }
  .brand-text span { font-size: 14px; }
  .brand-text small { font-size: 11px; }
  .section { padding: 64px 0; }
  .hero { padding: 62px 0 56px; }
  .products-grid, .advantages-grid { grid-template-columns: 1fr; }
  .product-footer { align-items: flex-start; flex-direction: column; }
  .product-footer a { text-align: left; }
  .footer-inner { flex-direction: column; align-items: center; }
}

/* Product galleries */
.product-gallery {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: #eef4f8;
}
.gallery-main {
  position: relative;
  display: block;
  width: 100%;
  height: 210px;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #dfeaf2;
  cursor: pointer;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.gallery-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 63, 104, 0.02), rgba(5, 63, 104, 0.55));
  pointer-events: none;
}
.gallery-main:hover img { transform: scale(1.035); filter: saturate(1.05); }
.gallery-badge {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(5, 63, 104, 0.88);
  color: var(--white);
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
.gallery-open-text {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
}
.gallery-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(54px, 1fr);
  gap: 6px;
  padding: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.gallery-thumb {
  height: 54px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  cursor: pointer;
  opacity: 0.72;
  transition: border-color 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}
.gallery-thumb:hover { opacity: 1; transform: translateY(-1px); }
.gallery-thumb.is-active { border-color: var(--red); opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.gallery-modal[hidden] { display: none; }
.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 24, 39, 0.72);
  backdrop-filter: blur(8px);
}
.gallery-modal-dialog {
  position: relative;
  width: min(100%, 980px);
  max-height: calc(100vh - 40px);
  padding: 18px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.gallery-modal-dialog h3 {
  padding: 0 48px 14px 2px;
  font-size: 22px;
}
.gallery-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--blue-dark);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.gallery-modal-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  border-radius: 20px;
  overflow: hidden;
  background: #101d28;
}
.gallery-modal-media img {
  width: 100%;
  max-height: min(72vh, 720px);
  object-fit: contain;
}
.gallery-modal-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--blue-dark);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}
.gallery-modal-prev { left: 14px; }
.gallery-modal-next { right: 14px; }
.gallery-modal-counter {
  margin: 12px 0 0;
  text-align: center;
  font-weight: 800;
  color: var(--muted);
}
body.gallery-open { overflow: hidden; }

@media (max-width: 760px) {
  .gallery-main { height: 240px; }
  .installation-main { height: 300px; }
  .gallery-modal-dialog { padding: 14px; border-radius: 22px; }
  .gallery-modal-arrow { width: 40px; height: 40px; font-size: 30px; }
}


@keyframes phoneAutofillStart { from { opacity: 1; } to { opacity: 1; } }
#phoneInput:-webkit-autofill { animation-name: phoneAutofillStart; animation-duration: 0.01s; }
