:root {
  /* Бирюзовая гамма «Кондиционеры от Моржа» — цвета геометрического моржа */
  --bg: #f3fbf9;
  --surface: #ffffff;
  --ink: #0b3d35;
  --muted: #5b726d;
  --line: #dcebe7;
  --accent: #12a594;
  --accent-dark: #0e8c7d;
  --accent-ink: #ffffff;
  --accent-soft: #e3f6f2;
  --ok: #0b8a4a;
  --warn: #b25e00;
  --danger: #c62828;
  --dark: #0b3d35;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 61, 53, .05), 0 6px 20px rgba(11, 61, 53, .06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important;
  background: var(--surface); color: var(--ink); transition: filter .15s, background .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover, .btn--buy:hover { background: var(--accent-dark); }
/* Кнопки покупки: та же бирюза, но крупнее и заметнее остальных */
.btn--buy { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 14px rgba(18, 165, 148, .28); }
.btn--ghost { border-color: var(--line); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 14px 24px; font-size: 16px; }
.btn--block { width: 100%; }

/* шапка */
.topbar { background: var(--dark); color: #b9dcd5; font-size: 13px; }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar__links { display: flex; gap: 18px; }
.topbar a { color: #b9dcd5; }
.header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header__in { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); white-space: nowrap; }
.logo img { width: 40px; height: 44px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.logo__text small { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: 3px; }
.logo--light .logo__text small { color: #b9dcd5; }
.logo--light { display: flex; align-items: center; gap: 10px; }
.logo:hover { text-decoration: none; }
.logo--light { color: #fff; margin-bottom: 8px; }

.catmenu { position: relative; }
.catmenu summary { list-style: none; }
.catmenu summary::-webkit-details-marker { display: none; }
.catmenu__panel {
  position: absolute; left: 0; top: calc(100% + 10px); z-index: 30;
  display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 20px;
  width: min(900px, calc(100vw - 32px)); padding: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.catmenu__col { display: flex; flex-direction: column; gap: 6px; }
.catmenu__col a { color: var(--ink); }
.catmenu__root { font-weight: 800; margin-bottom: 4px; }

.search { flex: 1; display: flex; min-width: 0; }
.search input {
  flex: 1; min-width: 0; padding: 10px 14px; font: inherit;
  border: 1px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; background: var(--bg); padding-left: 18px;
}
.search input:focus { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--surface); }
.search button { width: 50px; border: 0; border-radius: 0 999px 999px 0; background: var(--accent); color: #fff; cursor: pointer; }
.search svg { width: 20px; height: 20px; margin: auto; }
.phone { font-weight: 800; color: var(--ink); white-space: nowrap; }
.cartlink { position: relative; color: var(--ink); padding: 6px; }
.cartlink svg { width: 28px; height: 28px; }
.cartlink__count {
  position: absolute; top: -2px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800;
  display: grid; place-items: center;
}
.cartlink__count[hidden] { display: none; }

.messages { margin-top: 14px; }
.msg { padding: 12px 16px; border-radius: 10px; background: var(--accent-soft); margin-bottom: 8px; }
.msg--error { background: #fdecec; color: var(--danger); }
.msg--success { background: #e7f6ee; color: var(--ok); }

/* главная */
.hero { background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); }
.hero__in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.hero__text p { font-size: 17px; color: var(--muted); max-width: 560px; }
.hero__walrus { width: 84px; height: 92px; margin-bottom: 14px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.picker { background: var(--accent-soft); color: var(--ink); border-radius: 24px; padding: 28px; }
.picker h2 { font-size: 20px; margin-bottom: 4px; }
.picker__field { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; font-weight: 800; font-size: 20px; }
.picker__field input { width: 100%; padding: 12px 14px; font: inherit; border: 1px solid var(--line); border-radius: 10px; }
.picker__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.picker__chips button { border: 1px solid var(--line); background: var(--bg); padding: 6px 12px; border-radius: 20px; font: inherit; cursor: pointer; }
.picker__chips button:hover { border-color: var(--accent); color: var(--accent); }

.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; position: relative; }
.perk { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.perk span { color: var(--muted); font-size: 14px; }

.block { margin-top: 48px; }
.block__title { font-size: 26px; font-weight: 800; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.cat { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); color: var(--ink); display: flex; flex-direction: column; gap: 6px; min-height: 120px; border: 1px solid transparent; }
.cat:hover { border-color: var(--accent); text-decoration: none; }
.cat b { font-size: 18px; }
.cat span { color: var(--muted); font-size: 14px; }
.steps ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; counter-increment: s; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; display: grid; place-items: center; margin-bottom: 10px; }
.steps span { color: var(--muted); font-size: 14px; }

/* карточки */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; border: 1px solid transparent; transition: border-color .15s; }
.card:hover { border-color: #c9dbff; }
.card__img { position: relative; aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; padding: 14px; }
.card__img img { max-height: 100%; object-fit: contain; }
.card__body { padding: 0 16px; flex: 1; }
.card__brand { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.card__title { display: block; color: var(--ink); font-weight: 700; margin: 4px 0 8px; }
.card__specs { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.card__specs li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.card__specs span { color: var(--muted); }
.card__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding: 14px 16px 16px; }
.btn--icon span { display: none; }
.btn--icon { padding: 10px 12px; }
.badge { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 800; }
.badge--hit { background: #ffb800; color: #3a2a00; }
.price { font-size: 20px; font-weight: 800; white-space: nowrap; }
.price--lg { font-size: 32px; }
.price-old { color: var(--muted); font-size: 14px; }
.stock { font-size: 13px; color: var(--warn); }
.stock--yes { color: var(--ok); }
.noimg { width: 70%; aspect-ratio: 1; border-radius: 12px; background:
  var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Crect x='2' y='4' width='60' height='22' rx='5' fill='none' stroke='%23b8c4d3' stroke-width='2'/%3E%3Cpath d='M10 20h44' stroke='%23b8c4d3' stroke-width='2'/%3E%3C/svg%3E") center / 60% no-repeat; }
.noimg--lg { width: 100%; aspect-ratio: 4 / 3; }

/* каталог */
.crumbs { margin: 18px 0 10px; font-size: 13px; color: var(--muted); }
.page-title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin: 0 0 14px; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.subcats a { background: var(--surface); border: 1px solid var(--line); padding: 8px 14px; border-radius: 20px; color: var(--ink); }
.subcats a:hover { border-color: var(--accent); text-decoration: none; }
.listing { display: grid; grid-template-columns: 270px 1fr; gap: 20px; align-items: start; }
.filters__box { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px 18px 18px; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; }
.filters__toggle { font-weight: 800; padding: 12px 0; cursor: pointer; list-style: none; }
.filters__toggle::-webkit-details-marker { display: none; }
.filters fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 12px 0; }
.filters legend { font-weight: 700; padding: 0; margin-bottom: 8px; float: left; width: 100%; }
.check { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; clear: both; }
.check small { color: var(--muted); margin-left: auto; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.range { display: flex; gap: 8px; align-items: center; clear: both; }
.range input { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.filters__actions { display: flex; gap: 8px; padding-top: 12px; }
.filters__actions .btn { flex: 1; padding: 10px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; }
.toolbar select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--surface); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 28px 0; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 10px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.pager .is-current { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 800; }
.empty { background: var(--surface); border-radius: var(--radius); padding: 40px; text-align: center; box-shadow: var(--shadow); }
.seo-text { margin: 40px 0; color: var(--muted); }

/* товар */
.pdp { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; margin-top: 16px; }
.gallery { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.gallery__main { aspect-ratio: 4 / 3; display: grid; place-items: center; }
.gallery__main img { max-height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.gallery__thumbs button { flex: none; width: 72px; height: 72px; padding: 4px; border: 2px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.gallery__thumbs button.is-active { border-color: var(--accent); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.buybox { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; align-self: start; position: sticky; top: 84px; }
.buybox__form { display: flex; gap: 10px; margin: 18px 0; }
.install-opt { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
.install-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.install-opt input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.install-opt__text { flex: 1; display: flex; flex-direction: column; }
.install-opt__text small { color: var(--ok); font-weight: 700; }
.install-opt__price { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.install-opt__price s { color: var(--muted); font-size: 13px; }
.line__install { grid-column: 2 / -1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.line__install form { display: contents; }
.line__install .tag { padding: 2px 8px; border-radius: 6px; background: #e7f6ee; color: var(--ok); font-weight: 700; font-size: 12px; }
.line__install button { border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.buybox__form .btn { flex: 1; }
.buybox__perks { padding-left: 18px; color: var(--muted); font-size: 14px; }
.utp { border-top: 1px solid var(--line); padding-top: 14px; font-size: 14px; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.qty button { width: 38px; border: 0; background: var(--bg); font-size: 18px; cursor: pointer; }
.qty input { width: 48px; border: 0; text-align: center; font: inherit; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.tabs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 24px; }
.pdp > * { min-width: 0; }
/* Описания из Breez бывают с широкими картинками, таблицами и длинными артикулами */
.prose img, .prose iframe, .prose video { max-width: 100%; height: auto; }
.prose table { display: block; overflow-x: auto; }
.prose, .specs dd, .card__title { overflow-wrap: anywhere; }
.tabs section { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.tabs h3 { font-size: 15px; margin-top: 18px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.docs { display: flex; flex-wrap: wrap; gap: 16px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.prose th, .prose td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
.prose h2 { margin-top: 1.4em; font-size: 20px; }
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 16px; }

/* корзина и заказ */
.cart, .checkout { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.cart__lines { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.line { display: grid; grid-template-columns: 80px 1fr auto 120px 32px; gap: 16px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line__img { width: 80px; height: 80px; display: grid; place-items: center; }
.line__img img { max-height: 100%; object-fit: contain; }
.line__img .noimg { width: 100%; }
.line__info a { color: var(--ink); font-weight: 700; }
.line__sum { font-weight: 800; text-align: right; }
.line__del { border: 0; background: none; font-size: 24px; color: var(--muted); cursor: pointer; }
.line__del:hover { color: var(--danger); }
.summary { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; position: sticky; top: 84px; }
.summary h2 { font-size: 18px; }
.summary__item { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 6px 0; }
.summary__row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; margin-top: 8px; border-top: 1px solid var(--line); }
.checkout__form h2 { font-size: 18px; }
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.field span { font-size: 13px; font-weight: 700; color: var(--muted); }
.field input, .field textarea { padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font: inherit; width: 100%; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.field--error input { border-color: var(--danger); }
.err { color: var(--danger); font-size: 13px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.choices > div { display: contents; }
.choice { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { accent-color: var(--accent); }
.done h1 { color: var(--ok); }

/* подвал */
.footer { background: var(--dark); color: #a9cfc7; margin-top: 64px; padding: 40px 0 24px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.footer h4 { color: #fff; margin: 0 0 10px; }
.footer a { color: #d3ece6; display: block; padding: 2px 0; }
.footer p a { display: inline; }
.footer__legal { border-top: 1px solid #1d5a50; margin-top: 28px; padding-top: 16px; font-size: 12px; }

/* адаптив */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .phone { display: none; }
}
@media (max-width: 900px) {
  .hero__in, .pdp, .cart, .checkout { grid-template-columns: 1fr; }
  .perks, .steps ol { grid-template-columns: repeat(2, 1fr); }
  .listing { grid-template-columns: 1fr; }
  .filters__box { position: static; max-height: none; }
  .filters__box:not([open]) { padding-bottom: 6px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .buybox, .summary { position: static; }
  .fields { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .catmenu__panel { grid-template-columns: 1fr 1fr; position: fixed; left: 16px; right: 16px; top: 110px; width: auto; max-height: 75vh; overflow: auto; }
  .topbar__links { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .header__in { flex-wrap: wrap; gap: 10px; }
  .logo { flex: 1; font-size: 16px; min-width: 0; gap: 8px; }
  .logo svg { width: 28px; height: 28px; flex: none; }
  .catmenu .btn { padding: 8px 12px; }
  .search { order: 5; flex-basis: 100%; }
  .catmenu__panel { grid-template-columns: 1fr; position: fixed; left: 16px; right: 16px; top: 120px; width: auto; max-height: 70vh; overflow: auto; }
  .grid, .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card__body { padding: 0 10px; }
  .card__foot { padding: 10px; flex-direction: column; align-items: stretch; }
  .card__specs { display: none; }
  .btn--icon span { display: inline; }
  .price { font-size: 17px; }
  .perks { margin-top: 16px; }
  .perks, .steps ol, .footer__grid { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .line { grid-template-columns: 64px 1fr 32px; }
  .line__img { width: 64px; height: 64px; }
  .line__qty { grid-column: 2; }
  .line__sum { grid-column: 2; text-align: left; }
  .hero__in { padding-top: 32px; padding-bottom: 48px; }
}
