:root {
  /* IST logo colours: navy #2a3553 → blue #3b6aae, wordmark #1f2028 */
  --brand: #3b6aae;
  --brand-hover: #2f5794;
  --brand-2: #6d9be0;
  --brand-navy: #2a3553;
  --brand-dark: #1c2130;
  --brand-tint: #edf2fa;
  --ink: #1f2028;
  --ink-2: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --ok: #16a34a;
  --bad: #dc2626;
  --sale: #e11d48;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,23,42,.06), 0 6px 20px rgba(15,23,42,.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.brand small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.brand-logo { height: 44px; width: auto; }
.slogan { font-style: italic; font-weight: 600; color: var(--brand-2); margin: 14px 0 4px; }
.hero .slogan { font-size: 20px; margin: 0 0 10px; color: var(--brand-2); max-width: none; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 8px; font-weight: 500; color: var(--ink-2); }
.nav a:hover { background: var(--brand-tint); color: var(--brand); }
.nav a.active { color: var(--brand); background: var(--brand-tint); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.lang {
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 6px 10px; font: 600 13px Inter, sans-serif; cursor: pointer; color: var(--ink-2);
}
.menu-btn { display: none; border: 0; background: none; padding: 6px; cursor: pointer; color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: var(--brand-tint); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-wa { background: #16a34a; color: #fff; }
.btn-wa:hover { background: #15803d; }

/* ---------- hero ---------- */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, rgba(109,155,224,.35), transparent 60%),
              linear-gradient(135deg, #1c2130 0%, #2a3553 55%, #3b6aae 100%);
  color: #fff; padding: 84px 0 96px; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .eyebrow {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.12); font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(32px, 5vw, 54px); font-weight: 800; letter-spacing: -.02em; }
.hero p { font-size: 18px; color: #cbd5e1; max-width: 560px; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-tile {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px;
}
.hero-tile:nth-child(2) { transform: translateY(24px); }
.hero-tile:nth-child(4) { transform: translateY(24px); }
.hero-tile svg { width: 34px; height: 34px; color: var(--brand-2); }
.hero-tile b { font-size: 15px; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.link-more { color: var(--brand); font-weight: 600; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -48px; position: relative; }
.feature { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: flex; gap: 14px; align-items: center; }
.feature .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.feature .ico svg { width: 22px; height: 22px; }
.feature b { display: block; font-size: 15px; }
.feature small { color: var(--muted); }

/* ---------- categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 16px; text-align: center; transition: .15s;
}
.cat:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat .ico { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand); }
.cat .ico svg { width: 28px; height: 28px; }
.cat b { display: block; font-size: 14px; }
.cat small { color: var(--muted); font-size: 12px; }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: .15s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cbd5e1; }
.thumb { position: relative; aspect-ratio: 4/3; background: #f1f5f9; display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 12px; background: #fff; }
.thumb .ph { color: #94a3b8; }
.thumb .ph svg { width: 64px; height: 64px; }
.badge { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-sale { background: var(--sale); color: #fff; }
.badge-out { background: #0f172a; color: #fff; left: auto; right: 10px; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: 12px; color: var(--brand); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.card-title { font-size: 15px; font-weight: 600; margin: 0; }
.card-short { font-size: 13px; color: var(--muted); margin: 0; flex: 1; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.price b { font-size: 19px; font-weight: 800; }
.price s { color: var(--muted); font-size: 14px; }
.stock { font-size: 12px; font-weight: 600; }
.stock.in { color: var(--ok); }
.stock.out { color: var(--bad); }

/* ---------- catalog page ---------- */
.page-head { background: linear-gradient(135deg, #1c2130, #2a3553 50%, #3b6aae); color: #fff; padding: 44px 0; }
.page-head h1 { font-size: 34px; font-weight: 800; margin: 0; }
.page-head p { color: #cbd5e1; margin: 6px 0 0; }
.crumbs { font-size: 13px; color: #c9d7ee; margin-bottom: 8px; }
.crumbs a:hover { text-decoration: underline; }
.catalog { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding: 32px 0 64px; }
.sidebar { position: sticky; top: 88px; align-self: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.sidebar h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 4px 6px 10px; }
.sidebar a { display: flex; justify-content: space-between; padding: 9px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-2); }
.sidebar a:hover { background: #f1f5f9; }
.sidebar a.active { background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.sidebar a span { color: var(--muted); font-size: 12px; }
.toolbar { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.search { flex: 1; min-width: 200px; position: relative; }
.search input, .toolbar select {
  width: 100%; padding: 11px 14px 11px 40px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 14px; background: #fff;
}
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.toolbar select { width: auto; padding-left: 14px; }
.toolbar label { display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--ink-2); }
.results { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.catalog .grid { grid-template-columns: repeat(3, 1fr); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- product page ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 36px 0 64px; }
.product-media { background: #fff; border: 1px solid var(--line); border-radius: 18px; aspect-ratio: 1/1; display: grid; place-items: center; overflow: hidden; position: relative; }
.product-media img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.product-media .ph svg { width: 140px; height: 140px; color: #cbd5e1; }
.product-info h1 { font-size: 30px; font-weight: 800; letter-spacing: -.01em; }
.product-info .brand-line { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.product-info .price b { font-size: 32px; }
.product-info .price s { font-size: 18px; }
.vat { font-size: 13px; color: var(--muted); }
.product-info .desc { color: var(--ink-2); margin: 18px 0; }
.product-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.specs { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.specs th, .specs td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.specs th { width: 40%; background: #f8fafc; color: var(--ink-2); font-weight: 600; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.svc .ico { width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(135deg, var(--brand-navy), var(--brand)); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.svc .ico svg { width: 24px; height: 24px; }
.svc h3 { font-size: 18px; }
.svc p { color: var(--muted); margin: 0; font-size: 14px; }

.cta-band { background: linear-gradient(135deg, #1c2130, #2a3553 50%, #3b6aae); color: #fff; border-radius: 20px; padding: 40px; display: flex; gap: 24px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.cta-band h2 { font-size: 26px; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #cbd5e1; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; padding: 36px 0 64px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.contact-row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row .ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.contact-row .ico svg { width: 20px; height: 20px; }
.contact-row small { display: block; color: var(--muted); font-size: 12px; }
.contact-row b { font-weight: 600; }
.form { display: grid; gap: 14px; }
.form label { font-size: 13px; font-weight: 600; color: var(--ink-2); display: grid; gap: 6px; }
.form input, .form textarea { padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; }
.form textarea { min-height: 130px; resize: vertical; }
.form input:focus, .form textarea:focus, .search input:focus { outline: 2px solid #c9d7ee; border-color: var(--brand); }

.map-section { padding-bottom: 64px; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #e5e7eb; height: clamp(320px, 45vw, 480px); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- footer ---------- */
.footer { background: var(--brand-dark); color: #cbd5e1; padding: 52px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.footer a { display: block; padding: 4px 0; color: #cbd5e1; }
.footer a:hover { color: #fff; }
.footer p { font-size: 14px; }
.footer .muted { color: #a3adbf; }
.brand-light strong { color: #fff; }
.brand-light small { color: #94a3b8; }
.copyright { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding: 18px 20px; font-size: 13px; color: #94a3b8; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .catalog .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px; gap: 2px;
  }
  .nav.open { display: flex; }
  .topbar-actions { margin-left: auto; }
  .hero { padding: 56px 0 80px; }
  .hero-grid, .product, .contact-grid, .catalog { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .sidebar { position: static; display: flex; gap: 6px; overflow-x: auto; padding: 8px; }
  .sidebar h4 { display: none; }
  .sidebar a { white-space: nowrap; gap: 6px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .grid, .catalog .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .features, .svc-grid { grid-template-columns: 1fr; }
  .card-body { padding: 12px; }
  .price b { font-size: 16px; }
  .section { padding: 44px 0; }
  .section-head h2 { font-size: 24px; }
  .cta-band { padding: 26px; }
  .brand strong { font-size: 14px; }
  .brand-logo { height: 36px; }
}
