:root {
  --navy: #0f2c5d;
  --navy-deep: #001d4e;
  --navy-ink: #00123a;
  --blue: #2d97f8;
  --blue-bright: #0f57fb;
  --blue-soft: #2c96fb;
  --text: #313c4d;
  --muted: #7f8b96;
  --line: #d9e2ee;
  --bg: #fbfcff;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(15, 44, 93, .12);
  --max: 1180px;
  --header: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-bright); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: Poppins, sans-serif; line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: -999px; top: 0;
}
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 99; }

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

.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 13px 24px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: .2s ease;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-bright); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-transparent {
  position: absolute; left: 0; right: 0;
  background: transparent; box-shadow: none;
}
.site-header.is-transparent .brand span,
.site-header.is-transparent .nav a,
.site-header.is-transparent .social,
.site-header.is-transparent .cart-btn { color: #fff; }
.site-header.is-scrolled,
body.has-solid-header .site-header {
  position: sticky;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled .brand span,
.site-header.is-scrolled .nav a,
.site-header.is-scrolled .social,
.site-header.is-scrolled .cart-btn,
body.has-solid-header .brand span,
body.has-solid-header .nav a,
body.has-solid-header .social,
body.has-solid-header .cart-btn { color: var(--navy); }

.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-family: Poppins, sans-serif; font-weight: 700; font-size: 22px; }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--navy); font-weight: 500; }
.nav a:hover, .nav a.is-active { color: var(--blue-bright); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.social, .cart-btn { color: var(--navy); position: relative; display: grid; place-items: center; }
.cart-count {
  position: absolute; top: -8px; right: -10px;
  min-width: 18px; height: 18px; border-radius: 99px;
  background: #fff; color: var(--blue); font-size: 11px; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 0 0 1px var(--blue);
}
.header-cta { white-space: nowrap; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; padding: 10px; color: inherit; }
.menu-toggle span { display: block; height: 2px; background: currentColor; margin: 6px 0; }
.site-header:has(.nav.is-open) {
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}
.site-header:has(.nav.is-open) .brand span,
.site-header:has(.nav.is-open) .social,
.site-header:has(.nav.is-open) .cart-btn,
.site-header:has(.nav.is-open) .menu-toggle { color: var(--navy); }

.page-hero, .hero {
  position: relative; color: #fff;
  background: #0f2c5d center / cover no-repeat;
  min-height: 72vh; display: grid; align-items: center;
}
.hero { min-height: 100vh; padding: 140px 0 80px; }
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,29,78,.86), rgba(15,44,93,.7));
}
.hero .wrap, .page-hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero h1, .page-hero h1 { color: #fff; font-size: clamp(36px, 6vw, 64px); }
.hero h2 { color: #d7e6ff; font-size: 20px; font-weight: 400; font-family: "Work Sans", sans-serif; max-width: 620px; }
.hero-logo { width: min(320px, 100%); margin: 0 auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,.25)); }
.page-hero { min-height: 260px; padding: 120px 0 48px; }

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.kicker { color: var(--blue); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.muted { color: var(--muted); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.stat-year { font-size: 72px; color: var(--navy); line-height: 1; }
.stat-card { background: var(--blue); color: #fff; border-radius: var(--radius); padding: 36px; }
.stat-card strong { display: block; font-size: 48px; font-family: Poppins, sans-serif; }

.quiz {
  background: #ecf0f1; border-radius: var(--radius); padding: 36px;
}
.quiz h2 { color: #009cff; }
.quiz-options { display: grid; gap: 12px; margin-top: 18px; }
.quiz-options button {
  text-align: left; padding: 14px 18px; border-radius: 12px; border: 1px solid #cfd8dc;
  background: #fff; font: inherit; cursor: pointer;
}
.quiz-options button:hover, .quiz-options button.is-on { border-color: #00c479; background: #e8fff4; }
.quiz-result { margin-top: 18px; font-size: 22px; font-weight: 700; color: var(--navy); display: none; }
.quiz-result.is-on { display: block; }

.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.about img { border-radius: var(--radius); background: #fff; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin-top: 20px; }
.check-list li::before { content: "✓"; color: var(--blue); font-weight: 700; margin-right: 8px; }

.credit { text-align: center; color: var(--blue); font-size: clamp(22px, 3vw, 32px); }

.feature-copy p { color: var(--muted); }
.promo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.promo-grid img { width: 100%; height: 280px; object-fit: cover; border-radius: 12px; }
.promo-grid img:nth-child(5),
.promo-grid img:nth-child(6) { height: 220px; }

.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.price-card li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #eef2f7; }

.projects-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.projects-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; }

.band { display: grid; grid-template-columns: 1fr 1fr; min-height: 420px; }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band-copy { background: var(--navy); color: #fff; padding: 64px; display: grid; align-content: center; }
.band-copy h2 { color: #fff; }
.band.reverse { direction: rtl; }
.band.reverse > * { direction: ltr; }

.icon-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.icon-row article { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.icon { width: 56px; height: 56px; margin: 0 auto 12px; color: var(--blue); }

.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.partners a { background: #fff; border-radius: var(--radius); padding: 24px; display: grid; place-items: center; min-height: 140px; box-shadow: var(--shadow); }
.partners img { max-height: 72px; width: auto; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.form { display: grid; gap: 12px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: #fff;
}
.form textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.captcha { display: grid; gap: 8px; }
.captcha-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.captcha-row img { width: 200px; height: 64px; border: 1px solid var(--line); border-radius: 10px; background: #f4f7fb; }
.captcha-refresh { padding: 10px 16px; font-size: 14px; }
.form-ok { background: #e8fff4; color: #0b7a45; padding: 12px 16px; border-radius: 10px; }
.form-err { background: #ffecec; color: #b42318; padding: 12px 16px; border-radius: 10px; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; border-radius: var(--radius); }

.cards, .products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card, .product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card img, .product-card img { width: 100%; height: 240px; object-fit: contain; background: #f4f7fb; padding: 16px; }
.card-body, .product-card .meta { padding: 18px 18px 22px; display: grid; gap: 8px; }
.card h2, .product-card h2 { font-size: 18px; }
.count { color: var(--muted); font-size: 13px; }
.price { color: var(--navy); font-weight: 700; }
.price del { color: var(--muted); font-weight: 500; margin-right: 6px; }
.price ins { text-decoration: none; color: var(--blue-bright); }
.sale { position: absolute; top: 12px; left: 12px; background: var(--blue); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.thumb { position: relative; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.crumbs { color: var(--muted); font-size: 14px; }
.crumbs a { color: inherit; }

.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.gallery { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.gallery-main { height: 420px; }
.gallery-main img { width: 100%; height: 420px; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 12px; }
.thumbs img { width: 72px; height: 72px; object-fit: contain; background: #f4f7fb; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.thumbs img.is-on { border-color: var(--blue); }
.product-subtitle { color: var(--muted); margin-top: -8px; }
.spec-list { display: grid; gap: 8px; margin: 16px 0; }
.spec-list li { padding-left: 18px; position: relative; }
.spec-list li::before { content: "•"; position: absolute; left: 0; color: var(--blue); }
.qty-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 18px 0; }
.qty-row input, .qty-row select { padding: 12px; border-radius: 10px; border: 1px solid var(--line); font: inherit; }
.sale-note { background: #eef6ff; color: var(--navy); padding: 12px 14px; border-radius: 10px; margin: 16px 0; }
.docs a { display: block; padding: 8px 0; }
.long-copy { margin-top: 48px; }
.long-copy p { color: var(--muted); }

.cart-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cart-table th, .cart-table td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cart-table img { width: 72px; height: 72px; object-fit: contain; }
.cart-empty { background: #fff; padding: 48px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow); }
.cart-empty[hidden], [hidden] { display: none !important; }
.cart-totals { margin-top: 24px; margin-left: auto; width: min(360px, 100%); background: #fff; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); }
.cart-totals p { display: flex; justify-content: space-between; }

.doc-list { display: grid; gap: 12px; }
.doc-list a {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; padding: 16px 20px; border-radius: 12px; box-shadow: var(--shadow); color: var(--navy);
}
.doc-list a:hover { color: var(--blue); }

.site-footer { background: var(--navy-ink); color: #c9d6ea; padding: 64px 0 0; margin-top: 64px; }
.site-footer h3, .site-footer .brand { color: #fff; }
.site-footer a { color: #c9d6ea; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-contacts, .hours, .site-footer ul { display: grid; gap: 8px; }
.email-obf { unicode-bidi: bidi-override; direction: rtl; }
.footer-copy { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 14px; }

@media (max-width: 1024px) {
  .hero-grid, .stats, .about, .prices, .band, .contact, .product, .cards, .products { grid-template-columns: 1fr 1fr; }
  .projects-grid, .partners, .icon-row { grid-template-columns: 1fr 1fr; }
  .promo-grid { grid-template-columns: 1fr 1fr; }
  .header-cta { display: none; }
}

@media (max-width: 760px) {
  .menu-toggle { display: block; color: inherit; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; flex-direction: column; padding: 16px 20px 24px; box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { color: var(--navy) !important; }
  .hero-grid, .stats, .about, .prices, .band, .contact, .product,
  .cards, .products, .projects-grid, .partners, .icon-row, .promo-grid, .check-list, .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; padding: 120px 0 56px; }
  .band { min-height: auto; }
  .band-copy { padding: 36px 24px; }
  .gallery-main, .gallery-main img { height: 280px; }
  .cart-table { display: block; overflow-x: auto; }
}
