
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --text: #1d2a32;
  --muted: #66747e;
  --line: #dfe6eb;
  --soft: #f4f7f9;
  --brand: #0b6d8f;
  --accent: #d64232;
  --ok: #21845a;
  --white: #fff;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--white);
  font: 15px/1.45 "Montserrat", Arial, Helvetica, sans-serif;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.logo,
.city-switch,
.topbar__inner,
.nav,
.button,
.category-tile,
.section__head a,
.filter-link,
.filter-reset,
.product-card,
.spec-link {
  -webkit-user-select: none;
  user-select: none;
}
.product-card img,
.product-view__image img {
  -webkit-user-drag: none;
}
.wrap { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.topbar { background: #eef3f6; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.topbar__inner { min-height: 34px; display: flex; align-items: center; gap: 22px; }
.topbar a:hover, .section__head a:hover { color: var(--brand); }
.city-switch { position: relative; color: var(--text); }
.city-switch summary {
  list-style: none;
  cursor: pointer;
  color: var(--brand);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.city-switch summary::-webkit-details-marker { display: none; }
.city-switch summary::before {
  content: "";
  width: 13px;
  height: 13px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.city-switch summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.city-switch[open] summary::after { transform: rotate(225deg) translateY(-1px); }
.city-switch__menu {
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  z-index: 20;
  width: 440px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(38, 59, 73, .16);
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}
.city-switch__menu::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 24px;
  width: 12px;
  height: 12px;
  background: var(--white);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.city-switch__menu strong { grid-column: 1 / -1; font-size: 16px; color: var(--text); margin-bottom: 4px; }
.city-switch__link {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px 10px;
  color: var(--text);
  background: var(--white);
  display: flex;
  align-items: center;
}
.city-switch__link:hover,
.city-switch__link.is-active {
  border-color: var(--brand);
  background: #eef8fb;
  color: var(--brand);
}
.header { border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 5; }
.header__inner { min-height: 88px; display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: center; gap: 40px; }
.brand-block { display: grid; gap: 3px; justify-items: start; }
.logo { font-size: 26px; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.logo span { color: var(--brand); }
.logo strong { color: var(--accent); margin-left: 4px; }
.brand-block .city-switch summary { font-size: 13px; }
.brand-block .city-switch__menu { top: calc(100% + 8px); }
.search { display: flex; border: 2px solid var(--brand); border-radius: 6px; overflow: hidden; min-width: 0; }
.search input, .filters input, .filters select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 11px 12px;
  font: inherit;
  background: var(--white);
}
.search input { border: 0; min-width: 0; }
.search button {
  border: 0;
  background: var(--brand);
  color: var(--white);
  font-weight: 700;
  padding: 0 22px;
}
.nav { position: relative; z-index: 30; background: #263b49; color: var(--white); }
.nav__inner { min-height: 44px; display: flex; align-items: center; gap: 26px; overflow: visible; }
.nav a,
.nav-dropdown__label { white-space: nowrap; }
.nav a:hover,
.nav-dropdown:hover .nav-dropdown__label,
.nav-dropdown:focus-within .nav-dropdown__label { color: #bfe8f6; }
.nav-dropdown { position: relative; display: flex; align-self: stretch; align-items: center; }
.nav-dropdown__label {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  cursor: default;
  outline: none;
}
.nav-dropdown__label::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.nav-dropdown:hover .nav-dropdown__label::after,
.nav-dropdown:focus-within .nav-dropdown__label::after { transform: rotate(225deg) translateY(-1px); }
.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: min(520px, calc(100vw - 32px));
  max-height: min(520px, 70vh);
  overflow: auto;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow);
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu { display: grid; }
.nav-dropdown__menu a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
.nav-dropdown__menu a:hover {
  background: var(--soft);
  color: var(--brand);
}
.breadcrumbs { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.breadcrumbs a { color: var(--brand); }
.hero { background: linear-gradient(180deg, #f6fafc 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.hero__grid { min-height: 360px; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; padding: 34px 0; }
h1 { font-size: clamp(30px, 4vw, 50px); line-height: 1.08; margin: 0 0 18px; letter-spacing: 0; }
h2 { font-size: 24px; margin: 0; letter-spacing: 0; }
p { margin: 0; }
.hero__content p, .catalog-head p { max-width: 690px; color: var(--muted); font-size: 18px; }
.hero__actions, .product-view__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 5px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--white);
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}
.button--ghost { background: var(--white); color: var(--accent); }
.button--small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.button:disabled { opacity: .45; cursor: default; }
.specs div { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.specs div + div { padding-top: 10px; }
.specs div:last-child { border-bottom: 0; padding-bottom: 0; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 700; text-align: right; }
.section { padding: 34px 0; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.category-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--soft);
}
.category-tile span { font-size: 22px; font-weight: 700; }
.category-tile strong { color: var(--brand); }
.home-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-feature-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 20px;
}
.home-feature-card h3 { margin: 0 0 10px; font-size: 18px; }
.home-feature-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.catalog-head { padding: 28px 0 24px; border-bottom: 1px solid var(--line); background: #f7fafb; }
.catalog-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; padding: 24px 0 40px; align-items: start; }
.filter-toggle { display: none; }
.filters {
  position: sticky;
  top: 140px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 16px;
  background: var(--white);
}
.filters h2 { font-size: 20px; }
.filters label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filter-group { display: grid; gap: 9px; }
.filter-group h3 { margin: 0; color: var(--text); font-size: 15px; }
.filter-links { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 10px;
  background: var(--white);
  color: var(--text);
  font-size: 13px;
  line-height: 1;
  text-align: center;
}
.filter-link strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.filter-link:hover,
.filter-link.is-active {
  border-color: var(--brand);
  background: #eef8fb;
  color: var(--brand);
}
.filter-reset { color: var(--accent); font-weight: 700; font-size: 13px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.product-grid--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
}
.product-card:hover { box-shadow: 0 12px 28px rgba(38,59,73,.12); transform: translateY(-2px); }
.product-card__image {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / .78;
  background: #f8fafb;
  border-bottom: 1px solid var(--line);
}
.product-card__image img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.product-card__body { padding: 13px; display: grid; gap: 9px; flex: 1; }
.product-card__title { font-weight: 700; min-height: 63px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__title:hover { color: var(--brand); }
.product-card__meta { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card__price { color: var(--ok); font-size: 20px; font-weight: 700; margin-top: auto; }
.pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 24px; }
.empty { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 8px; padding: 26px; color: var(--muted); }
.product-page { padding: 24px 0 42px; }
.product-page > .breadcrumbs { margin-bottom: 16px; }
.product-view { display: grid; grid-template-columns: minmax(360px, 540px) minmax(0, 1fr); gap: 34px; align-items: stretch; }
.product-view__image {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 430px;
  background: var(--white);
  overflow: hidden;
}
.product-view__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transform: scale(1.22) translateY(-2%);
}
.product-view__info { display: flex; flex-direction: column; min-height: 430px; padding-top: 0; }
.eyebrow { color: var(--brand); font-weight: 700; margin-bottom: 10px; }
.product-view__info h1 { font-size: 34px; }
.product-view__price { color: var(--ok); font-size: 32px; font-weight: 700; margin: 16px 0 18px; }
.specs { margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; }
.specs__links { align-items: center; }
.specs__links dd {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 10px;
  max-width: 76%;
}
.spec-link {
  color: var(--brand);
  font-weight: 700;
}
.spec-link:hover { color: var(--accent); }
.description { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 26px; }
.description h2 { margin-bottom: 12px; }
.description p { color: var(--muted); max-width: 900px; }
.related-products { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 26px; }
.content-page { padding: 28px 0 52px; }
.content-hero {
  border-bottom: 1px solid var(--line);
  padding: 10px 0 28px;
  margin-bottom: 26px;
}
.content-hero h1 { max-width: 880px; }
.content-hero p:not(.eyebrow) { max-width: 820px; color: var(--muted); font-size: 18px; line-height: 1.55; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.content-card,
.vacancy-card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 22px;
}
.content-card h2,
.content-section h2,
.vacancy-card h2 { margin: 0 0 14px; }
.content-card p,
.content-section p,
.vacancy-card p,
.faq-item p,
.policy-list,
.vacancy-card li { color: var(--muted); line-height: 1.58; }
.content-card p + p { margin-top: 12px; }
.content-section { margin-top: 30px; }
.certificate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.certificate-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafb;
  padding: 12px;
  display: grid;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}
.certificate-card img { width: 100%; aspect-ratio: .72 / 1; object-fit: contain; background: var(--white); border: 1px solid var(--line); }
.faq-list,
.vacancy-list { display: grid; gap: 14px; }
.faq-item summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
}
.faq-item p { margin-top: 12px; }
.vacancy-card h3 { margin: 16px 0 8px; font-size: 16px; }
.vacancy-card ul,
.policy-list { margin: 0; padding-left: 20px; }
.vacancy-card li + li,
.policy-list li + li { margin-top: 8px; }
.footer { border-top: 1px solid var(--line); background: #263b49; color: var(--white); }
.footer__inner { min-height: 108px; display: flex; justify-content: space-between; align-items: center; gap: 28px; color: rgba(255,255,255,.78); }
.footer__brand { display: grid; gap: 10px; }
.footer strong { color: var(--white); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 22px; }
.footer__nav a:hover { color: var(--white); }
@media (max-width: 980px) {
  .header__inner { grid-template-columns: 1fr; gap: 14px; padding: 16px 0; }
  .hero__grid, .catalog-layout, .product-view, .content-grid { grid-template-columns: 1fr; }
  .product-view__image { height: auto; aspect-ratio: 1.25 / 1; min-height: 0; }
  .filters { position: static; }
  .home-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid, .product-grid--compact, .certificate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .wrap { width: min(100% - 20px, 1240px); }
  .city-switch { position: static; }
  .city-switch__menu {
    position: fixed;
    top: 42px;
    bottom: auto;
    left: 10px;
    right: 10px;
    width: auto;
    grid-template-columns: 1fr;
  }
  .city-switch__menu::before { display: none; }
  .search { display: none; }
  .nav__inner { gap: 18px; overflow-x: auto; }
  .nav-dropdown__menu {
    position: fixed;
    top: 154px;
    left: 10px;
    right: 10px;
    width: auto;
    grid-template-columns: 1fr;
  }
  h1 { font-size: 30px; }
  .hero__grid { min-height: auto; padding: 24px 0; }
  .hero__content p, .catalog-head p { font-size: 16px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__nav { justify-content: flex-start; }
  .catalog-layout { gap: 14px; padding-top: 18px; }
  .filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: var(--accent);
    color: var(--white);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
  }
  .catalog-layout:not(.is-filters-open) .filters { display: none; }
  .specs { padding: 12px 14px; }
  .specs div { gap: 10px; }
  .specs dt { min-width: 0; }
  .specs dd { max-width: 62%; text-align: right; }
  .specs__links dd { justify-content: flex-end; max-width: 62%; }
  .price-range { grid-template-columns: 1fr; }
  .home-feature-grid { grid-template-columns: 1fr; }
  .product-grid, .product-grid--compact, .certificate-grid { grid-template-columns: 1fr; }
  .product-view__image { aspect-ratio: 1 / .78; }
  .product-view__image img { padding: 14px; transform: scale(1.04); }
  .product-view__info h1 { font-size: 26px; }
  .content-hero p:not(.eyebrow) { font-size: 16px; }
}
