.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.breadcrumbs { font-size: 14px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }

:root {
  --bg: #f4f8fb;
  --surface: #ffffff;
  --text: #14324a;
  --muted: #5b7388;
  --primary: #0b6e99;
  --primary-dark: #085578;
  --accent: #12a4d9;
  --line: #d7e4ee;
  --ok: #12805c;
  --danger: #c0392b;
  --shadow: 0 10px 30px rgba(12, 55, 82, 0.08);
  --radius: 16px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(100% - 32px, var(--max)); margin: 0 auto; }

.topbar {
  background: #0a3d5c;
  color: #d7ebf7;
  font-size: 13px;
}
.topbar a { color: #fff; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar-right { display: flex; gap: 18px; }

.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
}
.logo { display: flex; align-items: center; gap: 14px; color: inherit; }
.logo-mark {
  display: grid; place-items: center;
  width: 64px; height: 64px; flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(11, 110, 153, 0.14);
  overflow: hidden;
}
.logo-mark img {
  width: 56px; height: 56px; object-fit: contain; display: block;
}
.logo-mark-footer {
  width: 56px; height: 56px; border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.logo-mark-footer img { width: 48px; height: 48px; }
.logo-text strong {
  display: block; font-size: 22px; letter-spacing: .01em;
  color: #0a3d5c; font-weight: 800; line-height: 1.15;
}
.logo-text small { color: var(--muted); font-size: 12px; font-weight: 600; }
.search { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.search input { flex: 1; border: 0; padding: 12px 16px; outline: none; font: inherit; min-width: 0; }
.search button { border: 0; background: var(--primary); color: #fff; padding: 0 18px; cursor: pointer; font-weight: 600; }
.nav-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 44px; height: 44px; font-size: 20px; }

.main-nav { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.main-nav .container { display: flex; gap: 6px; overflow-x: auto; padding: 0; }
.main-nav a {
  color: var(--text);
  padding: 14px 12px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--primary); border-bottom-color: var(--accent); }

.catalog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.chip {
  display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 600;
}
.chip:hover, .chip.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }

.grid-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card { color: inherit; display: block; }
.news-card-body { padding: 18px 18px 20px; }
.news-card h3 { margin: 8px 0 10px; font-size: 17px; line-height: 1.35; color: var(--text); min-height: 46px; }
.news-more { font-weight: 700; color: var(--primary); font-size: 14px; }
.news-article .lead { font-size: 18px; color: var(--muted); }
.section-news { background: linear-gradient(180deg, transparent, #eaf4fa 40%, transparent); }

.about-home {
  display: grid; grid-template-columns: 1.4fr .8fr; gap: 20px; align-items: stretch;
}
.about-home-text, .about-home-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px;
}
.about-home-text h2 { margin-top: 0; }
.about-home-card strong { display: block; font-size: 18px; margin-bottom: 10px; }
.about-rich h2 { margin-top: 1.4em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 20px; border: 0; cursor: pointer; font: inherit; font-weight: 700;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--primary)); color: #fff !important; box-shadow: var(--shadow); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-outline { background: #fff; border: 1px solid var(--line); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

.hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(18,164,217,.25), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(11,110,153,.18), transparent 35%),
    linear-gradient(180deg, #e8f5fc, #f4f8fb 70%);
  padding: 48px 0 28px;
}
.hero-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin: 0 0 14px; }
.hero p { color: var(--muted); font-size: 17px; margin: 0 0 22px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
  border: 1px solid var(--line);
}
.hero-card h3 { margin: 0 0 10px; }
.hero-card ul { margin: 0; padding-left: 18px; color: var(--muted); }

.section { padding: 36px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 28px; }
.section-head p { margin: 0; color: var(--muted); }

.grid-cats, .grid-products {
  display: grid;
  gap: 16px;
}
.grid-cats { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid-products { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(12,55,82,.12); }
.card-body { padding: 14px 16px 18px; }
.cat-card { padding: 20px; min-height: 120px; display: flex; flex-direction: column; justify-content: space-between; color: inherit; }
.cat-card strong { font-size: 16px; }
.cat-card span { color: var(--muted); font-size: 13px; }

.product-card .thumb {
  aspect-ratio: 1;
  background: linear-gradient(180deg, #f7fbfe, #eef5fa);
  display: grid; place-items: center; padding: 16px;
}
.product-card .thumb img { max-height: 180px; object-fit: contain; }
.product-card h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.3; min-height: 42px; color: var(--text); }
.price { font-weight: 800; color: var(--primary-dark); font-size: 18px; margin-bottom: 10px; }
.muted { color: var(--muted); }

.breadcrumbs { padding: 16px 0 0; font-size: 14px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }

.product-page { display: grid; grid-template-columns: .95fr 1.05fr; gap: 28px; margin: 20px 0 40px; }
.product-gallery {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 20px;
  display: grid; place-items: center; min-height: 360px;
}
.product-gallery img { max-height: 420px; object-fit: contain; }
.product-info h1 { margin-top: 0; font-size: 30px; }
.product-info .price { font-size: 28px; margin: 12px 0 18px; }
.product-desc { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 22px; margin-bottom: 30px; }
.product-desc h2 { margin-top: 0; }
.product-desc img { max-width: 100%; height: auto; }

.page-content, .content-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px; margin: 20px 0 40px;
}
.page-content h1 { margin-top: 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0 40px; }
.form label { display: block; font-weight: 600; margin: 0 0 6px; font-size: 14px; }
.form input, .form textarea, .form select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; margin-bottom: 12px;
  background: #fff;
}
.form textarea { min-height: 120px; resize: vertical; }
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; }
.alert-ok { background: #e8f8f1; color: var(--ok); }
.alert-err { background: #fdecea; color: var(--danger); }
.alert-info { background: #eaf5fc; color: var(--primary-dark); }

.site-footer {
  background: linear-gradient(180deg, #0c4668 0%, #082f46 100%);
  color: #d7ebf7; margin-top: 48px; padding: 36px 0 0;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #9ad8f5; }
.footer-top {
  display: grid; grid-template-columns: 1.1fr 2fr; gap: 28px; padding-bottom: 28px;
}
.footer-logo { display: flex; gap: 12px; align-items: center; }
.footer-logo strong { display: block; color: #fff; font-size: 18px; }
.footer-logo span { display: block; color: #b7d4e6; font-size: 13px; line-height: 1.4; margin-top: 4px; max-width: 280px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.footer-cols h4 { color: #fff; margin: 0 0 12px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; opacity: .9; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 8px; font-size: 14px; color: #cfe3f0; }
.footer-contacts li { line-height: 1.45; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 14px 0 16px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: #9ebfd3;
}
.footer-meta { opacity: .85; }

.fab-call {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #12a4d9, #0b6e99);
  color: #fff !important; font-weight: 800; text-decoration: none;
  padding: 14px 18px; border-radius: 999px;
  box-shadow: 0 12px 28px rgba(11, 110, 153, .35);
}
.fab-call:hover { filter: brightness(1.06); color: #fff !important; }
.fab-call-icon { font-size: 18px; line-height: 1; }
@media (max-width: 700px) {
  .fab-call-text { display: none; }
  .fab-call { width: 56px; height: 56px; padding: 0; justify-content: center; border-radius: 50%; }
}

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 10px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow);
}
.feature strong { display: block; margin-bottom: 6px; }

.empty { padding: 40px; text-align: center; color: var(--muted); background: #fff; border-radius: var(--radius); border: 1px dashed var(--line); }

@media (max-width: 900px) {
  .header-main { grid-template-columns: 1fr auto; }
  .search, .header-cta { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  body.nav-open .main-nav { display: block; }
  body.nav-open .search { display: flex; grid-column: 1 / -1; }
  .hero-grid, .product-page, .contact-grid, .footer-top, .footer-cols, .features, .grid-news, .about-home { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  body.nav-open .main-nav { display: block; }
}
