.success.on { display: block; }
.field-error { color: #9a1c1c; font-size: 12px; margin-top: 4px; }
.alert { background: #fff8cc; border-left: 3px solid var(--yellow); padding: 12px 14px; margin: 0 0 14px; }
.alert:empty, .validation-summary-valid { display: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.head-main {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 112px;
}
.site-logo img {
  height: 92px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
}
.head-search {
  display: flex;
  width: 100%;
  max-width: 640px;
  justify-self: center;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.head-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 13px 16px;
  font-size: 14px;
  outline: none;
}
.head-search button {
  border: 0;
  background: #666;
  color: #fff;
  font-weight: 700;
  padding: 0 22px;
  cursor: pointer;
}
.head-search button:hover { background: #444; }
.head-actions { display: flex; align-items: center; gap: 8px; }
.head-actions .btn { white-space: nowrap; }
.subnav { background: #2f2f2f; color: #fff; }
.subnav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
}
.subnav a { color: #fff; font-weight: 600; font-size: 14px; }
.subnav nav { display: flex; align-items: center; gap: 22px; }
.subnav a:hover, .subnav a.active { color: var(--yellow); }
.subnav-all { display: inline-flex; align-items: center; gap: 10px; }
.subnav-all::before {
  content: "";
  width: 16px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}
.hero { background: #f3f3f3; padding: 16px 0 6px; }
.hero-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 12px;
  align-items: stretch;
}
.cat-rail {
  background: #fff;
  border: 1px solid #e8e8e8;
  max-height: 520px;
  overflow: auto;
}
.cat-rail-toggle { display: none; }
.cat-rail a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #f2f2f2;
  font-size: 13px;
  font-weight: 600;
}
.cat-rail a:hover { background: #fafafa; }
.cat-rail img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: #f7f7f7;
  flex: none;
}
.cat-rail a::after {
  content: "›";
  margin-left: auto;
  color: #9a9a9a;
  font-size: 20px;
  line-height: 1;
}
.hero-row .slider,
.hero-row .slider img {
  height: 520px;
  min-height: 0;
}
.footer img {
  height: 58px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
}

.card .ph { background: #fff; }
.card .ph > img {
  z-index: 1;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  max-width: none;
}
.card .hover { z-index: 2; }
.card .meta .price {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
}
.page-head .crumbs { text-align: left; }
.quote-box .price {
  margin: 12px 0 4px;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.quote-box .short {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.legal a { color: #f3f3f3; }
.legal a:hover { text-decoration: underline; }

.catalog-main { min-width: 0; }
.catalog-main .pager,
.layout > .pager {
  width: 100%;
  justify-content: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 56px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.service-card .photo {
  aspect-ratio: 4 / 3;
  background: #fafafa;
  padding: 18px;
  border-bottom: 1px solid #f0f0f0;
}
.service-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.service-card .body { padding: 18px 18px 22px; }
.service-card h3 { margin: 0 0 8px; font-size: 18px; }
.service-card p { margin: 0; color: #333; }

@media (min-width: 981px) {
  .layout > .pager { grid-column: 2; }
}
@media (max-width: 980px) {
  .site-header { z-index: 60; }
  .head-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding: 10px 0;
  }
  .menu-toggle { position: relative; z-index: 2; }
  .site-logo img { height: 58px; max-width: 200px; }
  .head-actions { margin-left: auto; }
  .head-actions .btn { padding: 8px 10px; font-size: 12px; }
  .head-search { flex: 1 1 100%; max-width: none; order: 3; }
  .subnav { display: none; }
  body.nav-open { overflow: auto; }
  body.nav-open .subnav {
    display: block;
    border-top: 1px solid #444;
  }
  body.nav-open .subnav .wrap,
  body.nav-open .subnav nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  body.nav-open .subnav a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .hero { padding-top: 12px; }
  .hero-row { grid-template-columns: 1fr; gap: 10px; }
  .cat-rail { max-height: none; overflow: visible; }
  .cat-rail nav { display: none; }
  .cat-rail.open nav { display: block; max-height: 60vh; overflow: auto; }
  .cat-rail-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    background: #2f2f2f;
    color: #fff;
    border: 0;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 14px;
    cursor: pointer;
  }
  .cat-rail-toggle::after { content: "+"; font-size: 22px; font-weight: 500; }
  .cat-rail.open .cat-rail-toggle::after { content: "–"; }
  .hero-row .slider,
  .hero-row .slider img { height: 220px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-logo img { height: 50px; max-width: 148px; }
  .head-actions .btn { padding: 8px 8px; font-size: 12px; }
  .service-grid { grid-template-columns: 1fr; }
}
