:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #202733;
  --muted: #627086;
  --line: #d8e0ea;
  --brand: #2f5d8a;
  --brand-dark: #24476b;
  --danger: #a93f3f;
  --radius: 14px;
  --shadow-sm: 0 6px 16px rgba(19, 32, 52, .06);
  --shadow-md: 0 14px 30px rgba(19, 32, 52, .1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

.container { width: min(1140px, 92%); margin-inline: auto; }
.lead { color: var(--muted); line-height: 1.7; }
.lead-sm { color: var(--muted); margin: 0; }
.section { padding: 52px 0; }
.section-sm { padding: 18px 0 44px; }
.muted { background: linear-gradient(180deg, #eef2f7 0%, #f1f5fa 100%); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, .98);
  border-bottom-color: #ced9e7;
  box-shadow: 0 8px 24px rgba(19, 33, 53, .08);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.logo-wordmark {
  width: auto;
  height: 37px;
  max-width: 272px;
  display: block;
}
.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-size: 14px;
}

.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 500;
  transition: background-color .18s ease, color .18s ease;
}
.nav a.active,
.nav a:hover { background: #eaf0f6; color: var(--text); }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #425a78;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 15px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: #fff; border-color: #d4ddeb; color: #4b5f79; }
.btn-outline:hover { background: #f6f9fd; border-color: #c4d2e4; color: #2f415a; }
.btn.danger { color: var(--danger); border-color: #e3bebe; }
.full { width: 100%; }

:focus-visible {
  outline: 3px solid rgba(47, 93, 138, .3);
  outline-offset: 2px;
}

.badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  padding: 0 6px;
}

.hero {
  padding: 58px 0 42px;
  background: radial-gradient(1000px 340px at 90% -15%, #e4ecf8 0, transparent 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: center;
}
.kicker {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--brand-dark);
  border: 1px solid #d6e2f2;
  background: #edf3fb;
  border-radius: 999px;
  padding: 4px 10px;
}
.hero h1 { margin: 0 0 12px; font-size: clamp(30px, 5vw, 52px); line-height: 1.1; }
.hero p { margin: 0; color: var(--muted); }
.hero-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-actions .btn-primary {
  box-shadow: 0 10px 22px rgba(39, 77, 116, .26);
}

.hero-actions .btn-outline {
  border-color: #d6e1ee;
  color: #536884;
}
.hero-points { margin-top: 16px; display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.hero-image {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(20, 33, 54, .12);
}
.hero-image img {
  height: 420px;
  object-fit: cover;
  filter: saturate(.9) contrast(1.08) hue-rotate(-4deg);
}

.calc-widget {
  border-color: #cfdbea;
  box-shadow: 0 12px 28px rgba(22, 39, 63, 0.08);
}

.widget-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.collapse-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #d5dfec;
  background: #f3f7fc;
  color: #365f89;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.collapse-icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform .2s ease;
}

.collapsible-body {
  max-height: 3000px;
  opacity: 1;
  overflow: hidden;
  transition: max-height .28s ease, opacity .22s ease;
}

.mobile-collapsible.collapsed .collapsible-body {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.mobile-collapsible.collapsed .collapse-icon {
  transform: rotate(-45deg) translateY(1px);
}

.advisor-widget {
  margin-top: 12px;
  border-color: #d5dfec;
}

.advisor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.advisor-head h3 {
  margin: 0;
}

.advisor-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.advisor-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}

.advisor-hint {
  margin: 10px 0;
  color: var(--muted);
  font-size: 14px;
}

.advisor-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.advisor-item {
  border: 1px solid #dde6f1;
  border-radius: 12px;
  padding: 10px;
  background: #f8fafd;
}

.advisor-item h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.advisor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.advisor-meta .tag {
  font-size: 11px;
}

.advisor-price {
  display: block;
  margin-bottom: 8px;
}

.calc-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.calc-head h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 32px);
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.calc-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}

.calc-result {
  margin-top: 14px;
  border-top: 1px dashed #d6dfeb;
  padding-top: 14px;
}

.calc-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  background: #f6f8fb;
  border: 1px solid #e0e8f2;
  border-radius: 12px;
  padding: 10px 12px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.metric.total {
  background: #edf3fb;
  border-color: #d5e2f1;
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 14px;
}
.section-head-row h2 { margin: 0 0 6px; }
.section-head-row p { margin: 0; color: var(--muted); }

.filters {
  display: grid;
  grid-template-columns: 1fr 190px 190px 190px;
  gap: 10px;
  margin-bottom: 12px;
}
.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.catalog-meta-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.filters-open-btn {
  display: none;
}

.filters-open-btn.has-active {
  position: relative;
  padding-right: 34px;
}

.filters-open-btn.has-active::after {
  content: attr(data-active-count);
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%) scale(.82);
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  padding: 0 5px;
  opacity: 0;
  animation: filterBadgeIn .2s ease forwards;
}

.filters-open-btn.badge-pulse::after {
  animation: filterBadgePulse .24s ease;
}

@keyframes filterBadgeIn {
  from {
    opacity: 0;
    transform: translateY(-50%) scale(.82);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

@keyframes filterBadgePulse {
  0% {
    transform: translateY(-50%) scale(1);
  }
  50% {
    transform: translateY(-50%) scale(1.12);
  }
  100% {
    transform: translateY(-50%) scale(1);
  }
}

.filters-sheet-head,
.filters-sheet-actions {
  display: none;
}

.filters-backdrop {
  position: fixed;
  inset: 0;
  z-index: 73;
  background: rgba(10, 18, 30, .32);
}

.catalog-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #aac0da;
  box-shadow: 0 0 0 4px rgba(47, 93, 138, .12);
  outline: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 0 rgba(22, 36, 57, .02);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cdd8e6;
}
.product-card img {
  height: 210px;
  object-fit: cover;
  filter: saturate(.9) contrast(1.08) hue-rotate(-4deg);
  transition: filter .24s ease, transform .35s ease;
}

.product-card:hover img {
  filter: saturate(1) contrast(1.04) hue-rotate(0deg);
  transform: scale(1.02);
}
.product-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chip {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: #edf2f8;
  color: var(--brand-dark);
  font-size: 12px;
}
.product-body h3 {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.35;
  line-clamp: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  line-clamp: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.product-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.product-meta {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-actions .btn {
  min-height: 38px;
  padding: 8px 12px;
}

.product-actions .btn-primary {
  min-width: 106px;
}

.product-actions .btn-outline {
  border-color: #cfdae9;
}

.tag {
  border: 1px solid #dce4ef;
  background: #f7f9fc;
  color: #4a5b75;
  border-radius: 999px;
  font-size: 12px;
  padding: 3px 8px;
}

.tag.success {
  background: #edf8f1;
  border-color: #ccead8;
  color: #206c3c;
}

.tag.warn {
  background: #fff5ea;
  border-color: #f2d8b9;
  color: #8b5a1a;
}

.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.info-card, .panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 1px 0 rgba(17, 28, 44, .03);
}

.info-card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: #cdd9e8;
}
.info-card h3, .panel h3, .panel h1 { margin-top: 0; }

.service-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf3fb;
  color: var(--brand);
  border: 1px solid #d7e3f1;
  flex: 0 0 34px;
}

.service-icon svg {
  width: 20px;
  height: 20px;
}

.page-grid, .checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.product-detail .gallery {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  align-self: start;
}
.product-detail .gallery img { height: 380px; object-fit: cover; }
.product-main-image {
  width: 100%;
  display: block;
}
.product-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: #f8fbff;
}
.product-thumb {
  border: 1px solid #d4e2f2;
  border-radius: 10px;
  padding: 0;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}
.product-thumb img {
  width: 100%;
  height: 72px !important;
  object-fit: cover;
  display: block;
}
.product-thumb.is-active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(47, 93, 138, .14);
}
.product-detail .content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}
.specs div { background: #f6f8fb; border-radius: 10px; padding: 8px 10px; font-size: 14px; }
.detail-block {
  margin-top: 12px;
  border-top: 1px dashed #d9e2ee;
  padding-top: 12px;
}
.detail-block h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.detail-block ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.link-back { color: var(--brand-dark); font-weight: 600; }

.projects-grid { display: grid; gap: 14px; }
.project-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: #cfdbea;
}
.project-card img { height: 180px; object-fit: cover; }
.project-card img {
  filter: saturate(.9) contrast(1.08) hue-rotate(-4deg);
}
.project-card div { padding: 12px 14px; }
.project-card h3 { margin: 0 0 6px; }
.project-card p { margin: 0; color: var(--muted); }

.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.stat { background: #f6f8fb; border-radius: 10px; padding: 10px; border: 1px solid #e2e9f2; }
.stat strong { display: block; font-size: 22px; }
.stat span { color: var(--muted); font-size: 14px; }

.form-grid { display: grid; gap: 10px; }
.checkout-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d6e2f2;
  background: #edf3fb;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.message { min-height: 24px; color: var(--muted); margin: 10px 0 0; }
.message.success { color: #1f6d3f; }
.message.error { color: #903535; }

.consent-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #dde6f2;
  border-radius: 10px;
  background: #f8fbff;
  color: #4e6078;
  font-size: 14px;
}

.consent-check input {
  margin-top: 2px;
}

.consent-check a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.details-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.details-list p {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f6f8fb;
  border: 1px solid #e1e8f2;
}

.checkout-items,
.cart-items { list-style: none; margin: 0; padding: 0; }
.checkout-items li,
.cart-item { border-bottom: 1px solid var(--line); padding: 10px 0; }
.total-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 18px; }

.cart-drawer {
  position: fixed;
  right: -420px;
  top: 0;
  width: min(390px, 100%);
  height: 100%;
  z-index: 80;
  background: #fff;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: right .25s ease;
}
.cart-drawer.open { right: 0; }
.cart-head, .cart-foot { padding: 14px; border-bottom: 1px solid var(--line); }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cart-head h3 { margin: 0; }
.cart-foot { border-top: 1px solid var(--line); border-bottom: 0; margin-top: auto; }
.cart-items { padding: 8px 14px; overflow: auto; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.cart-item-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cart-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #dbe5f2;
  background: #f7f9fc;
  flex: 0 0 56px;
}
.cart-item h4 { margin: 0 0 3px; font-size: 15px; }
.cart-controls { display: inline-flex; gap: 6px; align-items: center; }
.qty { width: 58px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; }
.icon-btn { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 8px; cursor: pointer; }

body.cart-open .quick-tools,
body.cart-open .mobile-dock,
body.cart-open .mobile-product-bar { display: none !important; }

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(10, 18, 30, .34);
}

.site-footer {
  margin-top: 22px;
  background: radial-gradient(1200px 260px at 10% -30%, #253246 0, transparent 70%), #141a24;
  color: #cad2df;
  padding: 26px 0 22px;
  border-top: 1px solid #1f2938;
}

.footer-premium,
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr 1.1fr;
  gap: 18px;
}

.footer-col,
.footer-main {
  display: grid;
  gap: 8px;
}

.footer-brand strong {
  color: #f2f6fc;
  font-size: 16px;
}

.footer-main small,
.footer-col small {
  display: block;
  color: #cad2df;
}

.footer-note {
  color: #9fb0c8;
  font-size: 13px;
}

.footer-nav {
  align-content: start;
}

.footer-nav a {
  color: #dde6f3;
  width: fit-content;
  border-bottom: 1px dashed transparent;
  transition: color .18s ease, border-color .18s ease;
}

.footer-nav a:hover {
  color: #ffffff;
  border-color: #92a8c4;
}

.footer-contacts {
  align-content: start;
}

.footer-contacts a {
  color: #e3ebf6;
  font-weight: 500;
}

.footer-contacts address {
  margin: 0;
  font-style: normal;
  color: #afbed3;
  line-height: 1.5;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  background: #1a2535;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 10px 24px rgba(6, 12, 22, .3);
}
.toast.error { background: #8f3434; }

.empty { color: var(--muted); padding: 10px 0; }

.mobile-dock,
.mobile-product-bar {
  display: none;
}

.quick-tools {
  position: fixed;
  right: 14px;
  bottom: 92px;
  z-index: 92;
  display: grid;
  gap: 8px;
}

.quick-tool {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #d7e1ef;
  border-radius: 12px;
  color: #415a78;
  padding: 8px 10px;
  box-shadow: 0 6px 16px rgba(13, 22, 36, .12);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.quick-tool:hover {
  transform: translateY(-1px);
  border-color: #c4d5ea;
  box-shadow: 0 10px 20px rgba(12, 22, 36, .16);
}

.quick-tool-icon {
  width: 18px;
  height: 18px;
  color: var(--brand);
  display: inline-flex;
}

.quick-tool-icon svg {
  width: 18px;
  height: 18px;
}

.quick-tool-label {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.skeleton-card {
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.skeleton-media {
  height: 210px;
  background: linear-gradient(90deg, #edf2f8 0%, #f7f9fc 50%, #edf2f8 100%);
  background-size: 240% 100%;
  animation: shimmer 1.4s infinite;
}

.skeleton-body {
  padding: 14px;
}

.skeleton-line {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #edf2f8 0%, #f7f9fc 50%, #edf2f8 100%);
  background-size: 240% 100%;
  animation: shimmer 1.4s infinite;
  margin-bottom: 10px;
}

.skeleton-line.lg {
  height: 18px;
  width: 76%;
}

.skeleton-line.md {
  width: 92%;
}

.skeleton-line.sm {
  width: 58%;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-item p {
  margin: 10px 0 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-grid,
  .page-grid,
  .checkout-grid,
  .product-detail { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-3,
  .cards-4 { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .advisor-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters input { grid-column: 1 / -1; }
  .project-card { grid-template-columns: 1fr; }
  .skeleton-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-premium,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-contacts {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  body {
    padding-bottom: 74px;
  }

  body.has-mobile-product-bar {
    padding-bottom: 136px;
  }

  .section { padding: 28px 0; }
  .section-sm { padding: 10px 0 24px; }

  .header-inner {
    min-height: 64px;
    flex-wrap: nowrap;
    padding: 8px 0;
    position: relative;
  }

  .logo {
    position: static;
    transform: none;
    order: 2;
  }

  .menu-toggle {
    display: inline-flex;
    order: 1;
    margin-right: 8px;
    z-index: 1;
  }

  .cart-toggle,
  #cartOpen {
    order: 3;
    margin-left: auto;
    z-index: 1;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 60;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(16, 28, 45, 0.12);
    padding: 8px;
    flex-direction: column;
    gap: 4px;
  }

  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 10px 12px; }

  .logo-wordmark { height: 29px; }

  .hero { padding: 22px 0 14px; }
  .hero h1 {
    margin-bottom: 10px;
    font-size: clamp(30px, 9.2vw, 38px);
    line-height: 1.08;
  }
  .hero p { font-size: 16px; line-height: 1.58; }

  .hero-actions {
    gap: 7px;
    margin-top: 14px;
  }

  .hero-actions .btn {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 15px;
  }

  .hero-actions .btn-outline {
    display: none;
  }

  .hero-points {
    margin-top: 12px;
    gap: 8px 14px;
    font-size: 13px;
  }

  .hero-image { border-radius: 14px; }
  .hero-image img { height: 240px; }

  .panel,
  .info-card {
    padding: 14px;
    border-radius: 12px;
  }

  .filters {
    gap: 8px;
    margin-bottom: 10px;
  }

  .filters-open-btn {
    display: inline-flex;
  }

  .catalog-meta-left {
    width: 100%;
    justify-content: space-between;
  }

  .catalog-meta > #resetFilters {
    display: none;
  }

  .filters-sheet {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(max(8px, env(safe-area-inset-bottom)) + 64px);
    z-index: 74;
    background: #fff;
    border: 1px solid #d7e1ef;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(14, 24, 39, .2);
    padding: 12px;
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .24s ease, opacity .2s ease;
    max-height: min(70vh, 560px);
    overflow: auto;
  }

  .filters-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }

  .filters-sheet-head h2 {
    margin: 0;
    font-size: 18px;
  }

  .filters-sheet .filters {
    margin-bottom: 10px;
  }

  .filters-sheet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  body.filters-open .filters-sheet {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .catalog-meta {
    margin-bottom: 12px;
    gap: 8px;
  }

  .catalog-actions { margin-top: 12px; }

  input,
  select,
  textarea {
    padding: 10px 11px;
    font-size: 15px;
  }

  .btn {
    min-height: 40px;
    padding: 9px 12px;
  }

  .product-grid { gap: 12px; }
  .product-card { border-radius: 12px; }
  .product-card img { height: 170px; }
  .product-body {
    padding: 12px;
    gap: 8px;
  }
  .product-body h3 {
    margin-top: 6px;
    font-size: 19px;
    line-height: 1.28;
  }
  .product-body p {
    font-size: 13px;
    line-height: 1.52;
  }

  .product-meta { gap: 5px; }
  .tag { font-size: 11px; padding: 3px 7px; }

  .product-meta .tag:nth-child(n+3) {
    display: none;
  }

  .product-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding-top: 8px;
  }

  .product-foot strong {
    font-size: 32px;
    line-height: 1;
  }

  .product-actions {
    width: 100%;
    gap: 6px;
  }

  .product-actions .btn {
    flex: 1 1 0;
    font-size: 15px;
  }

  .calc-widget,
  .advisor-widget { margin-top: 10px; }

  .calc-head,
  .advisor-head {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
  }

  .collapse-toggle { display: inline-flex; }
  .calc-head .chip { display: none; }
  .advisor-head .lead-sm { margin-top: 4px; }
  .mobile-collapsible { border-radius: 16px; }

  .calc-grid,
  .advisor-controls { gap: 8px; }
  .calc-result {
    margin-top: 10px;
    padding-top: 10px;
  }
  .metric { padding: 9px 10px; }
  .metric strong { font-size: 18px; }

  .advisor-list { gap: 8px; }
  .advisor-item { padding: 9px; }
  .advisor-item h4 { font-size: 15px; }

  .checkout-grid,
  .page-grid { gap: 12px; }

  .actions-row {
    gap: 8px;
    margin-top: 10px;
  }

  #exportOrders {
    display: none;
  }

  .consent-check {
    padding: 8px 10px;
    gap: 8px;
    font-size: 13px;
  }

  .faq-item { padding: 10px 12px; }

  .cart-drawer {
    width: 100%;
    right: -100%;
  }

  .cart-items {
    padding: 8px 14px 14px;
  }

  .cart-foot {
    padding: 12px 14px calc(max(12px, env(safe-area-inset-bottom)) + 12px);
  }

  .cart-foot .btn {
    min-height: 46px;
  }

  .product-grid,
  .stats-grid,
  .calc-grid,
  .calc-metrics,
  .advisor-controls,
  .advisor-list,
  .skeleton-grid,
  .filters { grid-template-columns: 1fr; }

  .catalog-meta,
  .section-head-row { flex-direction: column; align-items: flex-start; }

  .site-footer {
    margin-top: 16px;
    padding: 16px 0 14px;
  }

  .footer-premium,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    gap: 5px;
  }

  .footer-brand strong { font-size: 14px; }
  .footer-note { display: none; }

  .footer-main small,
  .footer-col small {
    font-size: 12px;
    line-height: 1.4;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 10px;
  }

  .footer-nav a { font-size: 13px; }

  .footer-contacts {
    grid-column: auto;
    gap: 4px;
  }

  .footer-contacts a,
  .footer-contacts address {
    font-size: 13px;
    line-height: 1.4;
  }

  .mobile-dock {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    border: 1px solid #d6e0ec;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(17, 29, 45, .16);
    padding: 6px;
    z-index: 95;
  }

  .mobile-dock-link,
  .mobile-dock-btn {
    min-height: 38px;
    border: 1px solid transparent;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #4f6280;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 8px;
  }

  .mobile-dock-btn {
    cursor: pointer;
    font: inherit;
  }

  .mobile-dock-link.active,
  .mobile-dock-btn.active {
    background: #edf3fb;
    color: #2f5d8a;
    border-color: #d4e1f1;
  }

  .mobile-product-bar {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(max(8px, env(safe-area-inset-bottom)) + 64px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid #d6e0ec;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(17, 29, 45, .14);
    z-index: 94;
  }

  .mobile-product-bar[hidden] {
    display: none !important;
  }

  .mobile-product-meta {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  .mobile-product-meta strong {
    font-size: 16px;
    line-height: 1;
  }

  .mobile-product-meta span {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
  }

  .mobile-product-bar .btn {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 14px;
  }

  .quick-tools {
    display: none;
  }
}

@media (max-width: 420px) {
  .container { width: min(1140px, 94%); }
  .hero h1 { font-size: clamp(28px, 10vw, 34px); }
  .product-foot strong { font-size: 29px; }

  .footer-premium,
  .footer-grid { grid-template-columns: 1fr; }

  .footer-nav { grid-template-columns: 1fr 1fr; }
}
