/* PROTOOL — классическая витрина в духе кастомной WooCommerce-темы */

:root {
  --blue: #1e5eff;
  --blue-dark: #1449d2;
  --blue-tint: #eef3ff;
  --ink: #1c2330;
  --muted: #67707f;
  --line: #e3e7ee;
  --line-strong: #cfd6e0;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --red: #e23e3e;
  --amber: #f08c00;
  --green: #1f9d55;
  --radius: 6px;
  --shadow: 0 8px 24px rgba(28, 35, 48, .09);
  --font-ui: "PT Sans", "Segoe UI", Tahoma, sans-serif;
  --font-num: "Inter", "PT Sans", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.num, .price, .p-price, .cnt {
  font-family: var(--font-num);
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.wrap { max-width: 1280px; margin: 0 auto; padding-inline: 20px; }

h1, h2, h3 { line-height: 1.2; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- topbar ---------- */
.topbar { background: #10182a; color: #b8c1d4; font-size: .84rem; }
.topbar .wrap { display: flex; align-items: center; gap: 18px; min-height: 34px; }
.topbar a { color: #b8c1d4; }
.topbar a:hover { color: #fff; }
.topbar-phone { color: #fff; font-weight: 700; letter-spacing: .02em; }
.topbar-links { display: flex; gap: 18px; margin-left: auto; }
.topbar-note { display: none; }
@media (min-width: 900px) {
  .topbar-note { display: block; color: #7c8699; }
}

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 50; }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 74px; }

.logo { display: flex; align-items: baseline; gap: 2px; font-weight: 700; font-size: 1.55rem; letter-spacing: .01em; color: var(--ink); flex-shrink: 0; }
.logo b { color: var(--blue); font-weight: 700; }
.logo:hover { color: var(--ink); }
.logo-sub { display: block; font-size: .62rem; font-weight: 400; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-top: -3px; }

.head-search { position: relative; flex: 1; max-width: 560px; }
.head-search form { display: flex; }
.head-search input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px;
  border: 2px solid var(--blue); border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
  outline: none;
}
.head-search input:focus { border-color: var(--blue-dark); }
.head-search button {
  height: 44px; padding: 0 20px; border: 0; border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--blue); color: #fff; font-weight: 700; font-size: .95rem;
}
.head-search button:hover { background: var(--blue-dark); }
.search-drop {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: none;
}
.search-drop.open { display: block; }
.search-drop a {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; color: var(--ink);
  border-bottom: 1px solid var(--line); font-size: .92rem;
}
.search-drop a:last-child { border-bottom: 0; }
.search-drop a:hover { background: var(--bg-alt); }
.search-drop img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.search-drop .price { margin-left: auto; font-weight: 700; white-space: nowrap; }

.head-actions { display: flex; gap: 6px; margin-left: auto; flex-shrink: 0; }
.head-act {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-width: 62px; padding: 8px 6px; border: 0; background: none; border-radius: var(--radius);
  color: var(--ink); font-size: .72rem;
}
.head-act:hover { background: var(--bg-alt); color: var(--ink); }
.head-act svg { width: 24px; height: 24px; stroke: var(--ink); }
.head-act .cnt {
  position: absolute; top: 2px; right: 10px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--blue); color: #fff; font-size: .7rem; font-weight: 700;
  display: none; align-items: center; justify-content: center;
}
.head-act .cnt.show { display: flex; }

.burger { display: none; border: 1px solid var(--line-strong); background: #fff; border-radius: var(--radius); width: 44px; height: 44px; align-items: center; justify-content: center; }
.burger svg { width: 22px; height: 22px; stroke: var(--ink); }

/* ---------- main nav ---------- */
.main-nav { background: var(--blue); }
.main-nav ul { list-style: none; display: flex; }
.main-nav a {
  display: block; padding: 12px 18px; color: #fff; font-weight: 700; font-size: .95rem;
}
.main-nav a:hover, .main-nav a.active { background: var(--blue-dark); color: #fff; }

@media (max-width: 860px) {
  .site-head .wrap { flex-wrap: wrap; padding-block: 10px; gap: 10px 14px; }
  .head-search { order: 3; flex-basis: 100%; max-width: none; }
  .head-actions { margin-left: auto; }
  .head-act { min-width: 48px; }
  .head-act span:not(.cnt) { display: none; }
  .burger { display: flex; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .topbar-links { display: none; }
}

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: .84rem; color: var(--muted); padding: 14px 0 4px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "—"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius); border: 1px solid var(--blue);
  background: var(--blue); color: #fff; font-weight: 700; font-size: .95rem;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--blue); }
.btn-ghost:hover { background: var(--blue-tint); color: var(--blue-dark); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn[disabled] { opacity: .55; cursor: default; }

/* ---------- badges ---------- */
.badge {
  display: inline-block; padding: 3px 9px; border-radius: 3px;
  font-size: .72rem; font-weight: 700; color: #fff; letter-spacing: .03em; text-transform: uppercase;
}
.badge-sale { background: var(--red); }
.badge-hit { background: var(--amber); }
.badge-new { background: var(--green); }

/* ---------- product card ---------- */
.p-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .p-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-badges { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.card-fav {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px;
  border: 0; background: rgba(255,255,255,.9); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.card-fav svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; transition: stroke .15s, fill .15s; }
.card-fav:hover svg { stroke: var(--red); }
.card-fav.on svg { stroke: var(--red); fill: var(--red); }
.card-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--bg-alt); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; flex: 1; }
.card-cat { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.card-name { font-size: .95rem; font-weight: 700; line-height: 1.35; }
.card-name a { color: var(--ink); }
.card-name a:hover { color: var(--blue); }
.card-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.price { font-size: 1.2rem; font-weight: 700; white-space: nowrap; }
.price-old { font-size: .88rem; color: var(--muted); text-decoration: line-through; white-space: nowrap; }
.card-foot { display: flex; align-items: center; gap: 8px; }
.card-foot .btn { flex: 1; padding: 9px 10px; font-size: .88rem; }
.card-foot .btn.added { background: var(--green); border-color: var(--green); }
.cmp-label {
  display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted);
  cursor: pointer; user-select: none; padding-top: 2px;
}
.cmp-label input { accent-color: var(--blue); width: 15px; height: 15px; cursor: pointer; }
.cmp-label:hover { color: var(--ink); }

/* list view */
.p-grid.list-view { grid-template-columns: 1fr; }
.list-view .card { flex-direction: row; align-items: stretch; }
.list-view .card-img { width: 240px; flex-shrink: 0; aspect-ratio: 4 / 3; border-radius: var(--radius) 0 0 var(--radius); }
.list-view .card-body { padding: 16px 20px; }
.list-view .card-name { font-size: 1.1rem; }
.list-view .card-desc { display: block; }
.card-desc { display: none; font-size: .88rem; color: var(--muted); }
.list-view .card-price { margin-top: 6px; }
.list-view .card-foot { max-width: 340px; }
@media (max-width: 640px) {
  .list-view .card { flex-direction: column; }
  .list-view .card-img { width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
}

/* ---------- section headers ---------- */
.sec { padding: 44px 0; }
.sec-alt { background: var(--bg-alt); }
.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.sec-head h2 { font-size: 1.6rem; }
.sec-head .sec-link { margin-left: auto; font-size: .9rem; font-weight: 700; white-space: nowrap; }

/* ---------- hero ---------- */
.hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 36px; align-items: center; padding-block: 46px; }
.hero-kicker { display: inline-block; background: var(--blue-tint); color: var(--blue); font-weight: 700; font-size: .8rem; padding: 5px 12px; border-radius: 20px; margin-bottom: 14px; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 46ch; margin-bottom: 24px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img { border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-points { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 28px; }
.hero-point b { display: block; font-size: 1.25rem; }
.hero-point span { font-size: .84rem; color: var(--muted); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 32px; }
  .hero-img { order: -1; max-height: 260px; }
}

/* ---------- category banners ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cat-tile {
  position: relative; display: flex; align-items: flex-end; min-height: 190px;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
}
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,24,42,0) 30%, rgba(16,24,42,.82) 100%); }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile-body { position: relative; z-index: 1; padding: 16px; color: #fff; }
.cat-tile-body b { display: block; font-size: 1.05rem; }
.cat-tile-body span { font-size: .8rem; opacity: .85; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- brand chips ---------- */
.brand-row { display: flex; flex-wrap: wrap; gap: 12px; }
.brand-chip {
  flex: 1 1 150px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 18px 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #8a93a5; font-size: 1rem; transition: color .2s ease, border-color .2s ease;
}
.brand-chip:hover { color: var(--ink); border-color: var(--line-strong); }

/* ---------- trust strip ---------- */
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
.trust-item { font-size: .92rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.trust-item::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); opacity: .5; flex-shrink: 0; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: center; }
.about-grid h2 { font-size: 1.6rem; margin-bottom: 14px; }
.about-grid p { color: var(--muted); margin-bottom: 12px; }
.about-nums { display: grid; grid-template-columns: repeat(4, auto); gap: 12px 32px; margin-top: 22px; }
.about-num b { display: block; font-size: 1.7rem; color: var(--blue); }
.about-num span { font-size: .84rem; color: var(--muted); }
.about-img { border-radius: 8px; overflow: hidden; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-nums { grid-template-columns: repeat(2, auto); }
}

/* ---------- service cards ---------- */
.serv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.serv-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 22px; }
.serv-card svg { width: 30px; height: 30px; stroke: var(--blue); margin-bottom: 12px; }
.serv-card b { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.serv-card p { font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) { .serv-grid { grid-template-columns: 1fr; } }

/* ---------- catalog layout ---------- */
.cat-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; padding-block: 18px 50px; }
@media (max-width: 960px) { .cat-layout { grid-template-columns: 1fr; } }

.filters { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.f-block { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.f-block:last-child { border-bottom: 0; }
.f-title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }

.f-cats { list-style: none; }
.f-cats > li + li { margin-top: 2px; }
.f-cats button {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  border: 0; background: none; padding: 7px 8px; border-radius: 4px; font-size: .95rem; color: var(--ink);
}
.f-cats button:hover { background: var(--bg-alt); }
.f-cats button.active { background: var(--blue-tint); color: var(--blue); font-weight: 700; }
.f-cats .f-count { margin-left: auto; font-size: .78rem; color: var(--muted); }
.f-cats .sub { padding-left: 14px; }

.f-price-inputs { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.f-price-inputs input {
  width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--line-strong);
  border-radius: 4px; font-size: .9rem;
}
.f-price-inputs input:focus { outline: none; border-color: var(--blue); }
.range-wrap { position: relative; height: 22px; }
.range-wrap input[type="range"] {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  width: 100%; appearance: none; -webkit-appearance: none; background: none; pointer-events: none; height: 22px; margin: 0;
}
.range-track { position: absolute; top: 50%; transform: translateY(-50%); left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--line); }
.range-fill { position: absolute; top: 50%; transform: translateY(-50%); height: 4px; border-radius: 2px; background: var(--blue); }
.range-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  border: 2px solid var(--blue); box-shadow: 0 1px 4px rgba(0,0,0,.2); cursor: grab;
}
.range-wrap input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 2px solid var(--blue); cursor: grab;
}

.f-check { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: .93rem; cursor: pointer; user-select: none; }
.f-check input { width: 16px; height: 16px; accent-color: var(--blue); cursor: pointer; }
.f-check .f-count { margin-left: auto; font-size: .78rem; color: var(--muted); }

.f-reset { width: 100%; border: 1px solid var(--line-strong); background: #fff; color: var(--muted); border-radius: 4px; padding: 9px; font-size: .88rem; }
.f-reset:hover { color: var(--red); border-color: var(--red); }

.f-toggle { display: none; }
@media (max-width: 960px) {
  .f-toggle {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    margin-bottom: 14px; padding: 11px; border: 1px solid var(--blue); color: var(--blue);
    background: #fff; border-radius: var(--radius); font-weight: 700;
  }
  .filters { display: none; margin-bottom: 18px; }
  .filters.open { display: block; }
}

.cat-toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-alt); margin-bottom: 18px; font-size: .9rem;
}
.cat-found { color: var(--muted); }
.cat-sort { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cat-sort select { padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; font-size: .9rem; }
.view-toggle { display: flex; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; }
.view-toggle button { border: 0; background: #fff; width: 38px; height: 34px; display: flex; align-items: center; justify-content: center; }
.view-toggle button svg { width: 17px; height: 17px; stroke: var(--muted); }
.view-toggle button.active { background: var(--blue); }
.view-toggle button.active svg { stroke: #fff; }

.cat-empty { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* compare bar */
.cmp-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 90px);
  display: flex; align-items: center; gap: 16px; z-index: 80;
  background: #10182a; color: #fff; border-radius: 10px; padding: 12px 18px;
  box-shadow: 0 12px 32px rgba(16,24,42,.35); transition: transform .3s ease; white-space: nowrap;
}
.cmp-bar.show { transform: translate(-50%, 0); }
.cmp-bar .btn { padding: 9px 18px; font-size: .9rem; }
.cmp-bar-clear { background: none; border: 0; color: #8a93a5; font-size: .85rem; }
.cmp-bar-clear:hover { color: #fff; }

/* ---------- product page ---------- */
.pp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; padding-block: 18px 40px; }
@media (max-width: 860px) { .pp { grid-template-columns: 1fr; gap: 22px; } }
.pp-gallery-main { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); aspect-ratio: 4 / 3; cursor: zoom-in; }
.pp-gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.pp-gallery-main:hover img { transform: scale(1.7); }
.pp-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.pp-thumbs button { border: 2px solid var(--line); border-radius: 4px; padding: 0; overflow: hidden; background: #fff; width: 84px; height: 64px; flex-shrink: 0; }
.pp-thumbs button.active { border-color: var(--blue); }
.pp-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pp-cat { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.pp h1 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin-bottom: 12px; }
.pp-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; font-size: .86rem; color: var(--muted); }
.pp-stock { color: var(--green); font-weight: 700; }
.pp-price-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.p-price { font-size: 2rem; font-weight: 700; }
.pp-buy { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.qty { display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.qty button { width: 42px; border: 0; background: #fff; font-size: 1.2rem; color: var(--muted); }
.qty button:hover { background: var(--bg-alt); color: var(--ink); }
.qty input { width: 52px; border: 0; text-align: center; font-weight: 700; outline: none; }
.pp-side-actions { display: flex; gap: 18px; margin-bottom: 22px; font-size: .88rem; }
.pp-side-actions label, .pp-side-actions button { display: flex; align-items: center; gap: 7px; color: var(--muted); background: none; border: 0; font-size: .88rem; cursor: pointer; }
.pp-side-actions svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }
.pp-side-actions .on { color: var(--red); }
.pp-side-actions .on svg { fill: var(--red); }
.pp-side-actions label:hover, .pp-side-actions button:hover { color: var(--ink); }
.pp-side-actions input { accent-color: var(--blue); width: 15px; height: 15px; }
.pp-desc { color: var(--ink); margin-bottom: 22px; max-width: 60ch; }
.pp-serv { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--bg-alt); font-size: .88rem; }
.pp-serv div { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.pp-serv svg { width: 17px; height: 17px; stroke: var(--blue); flex-shrink: 0; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 14px; border: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 44%; font-weight: 400; color: var(--muted); background: var(--bg-alt); }
.spec-table td { font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* ---------- cart drawer ---------- */
.drawer-veil { position: fixed; inset: 0; background: rgba(16,24,42,.5); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.drawer-veil.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); z-index: 95;
  background: #fff; box-shadow: -12px 0 40px rgba(16,24,42,.2);
  transform: translateX(105%); transition: transform .28s ease;
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head b { font-size: 1.15rem; }
.drawer-close { border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); }
.drawer-close:hover { color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 10px 20px; }
.drawer-empty { text-align: center; color: var(--muted); padding: 50px 10px; }
.cart-row { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.cart-row-name { font-size: .88rem; font-weight: 700; line-height: 1.3; }
.cart-row-name a { color: var(--ink); }
.cart-row-name a:hover { color: var(--blue); }
.cart-row-info { flex: 1; min-width: 0; }
.cart-row-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cart-row-ctrl .qty button { width: 30px; height: 30px; font-size: 1rem; }
.cart-row-ctrl .qty input { width: 36px; height: 30px; font-size: .9rem; }
.cart-row-sum { font-weight: 700; font-size: .95rem; margin-left: auto; }
.cart-row-del { border: 0; background: none; color: var(--muted); font-size: 1.1rem; align-self: flex-start; }
.cart-row-del:hover { color: var(--red); }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px; }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.drawer-total b { font-size: 1.3rem; }
.drawer-foot .btn { width: 100%; }

/* ---------- checkout ---------- */
.co-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: start; padding-block: 18px 50px; }
@media (max-width: 900px) { .co-layout { grid-template-columns: 1fr; } }
.co-panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 24px; }
.co-panel h2 { font-size: 1.2rem; margin-bottom: 16px; }
.co-field { margin-bottom: 14px; }
.co-field label { display: block; font-size: .86rem; font-weight: 700; margin-bottom: 6px; }
.co-field input, .co-field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: .95rem;
}
.co-field input:focus, .co-field textarea:focus { outline: none; border-color: var(--blue); }
.co-field .hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.co-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .co-2col { grid-template-columns: 1fr; } }
.co-radio { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 13px 14px; margin-bottom: 10px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.co-radio:hover { border-color: var(--blue); }
.co-radio input { accent-color: var(--blue); margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; }
.co-radio b { display: block; font-size: .95rem; }
.co-radio span { font-size: .82rem; color: var(--muted); }
.co-radio .co-radio-price { margin-left: auto; font-weight: 700; white-space: nowrap; font-size: .9rem; }
.co-radio:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); }
.co-summary-rows { border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; margin-bottom: 18px; }
.co-total b { font-size: 1.5rem; }
.co-note { font-size: .8rem; color: var(--muted); margin-top: 12px; }
.co-empty { text-align: center; padding: 60px 20px; color: var(--muted); }

.thanks { text-align: center; padding: 70px 20px; max-width: 560px; margin: 0 auto; }
.thanks-ico { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--blue-tint); display: flex; align-items: center; justify-content: center; }
.thanks-ico svg { width: 34px; height: 34px; stroke: var(--blue); }
.thanks h1 { font-size: 1.8rem; margin-bottom: 12px; }
.thanks p { color: var(--muted); margin-bottom: 22px; }

/* ---------- compare page ---------- */
.cmp-wrap { padding-block: 10px 50px; }
.cmp-table { border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.cmp-table th, .cmp-table td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; min-width: 180px; }
.cmp-table th:first-child, .cmp-table td:first-child { min-width: 150px; background: var(--bg-alt); color: var(--muted); font-weight: 400; position: sticky; left: 0; }
.cmp-table thead td { vertical-align: bottom; }
.cmp-prod img { width: 100%; max-width: 190px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; margin-bottom: 10px; }
.cmp-prod-name { font-weight: 700; font-size: .92rem; line-height: 1.3; display: block; margin-bottom: 8px; color: var(--ink); }
.cmp-prod-name:hover { color: var(--blue); }
.cmp-prod .price { font-size: 1.05rem; }
.cmp-remove { border: 0; background: none; color: var(--muted); font-size: .8rem; padding: 0; margin-top: 8px; }
.cmp-remove:hover { color: var(--red); }
.cmp-diff { background: #fff7e6; }
.cmp-controls { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.cmp-empty { text-align: center; padding: 70px 20px; color: var(--muted); }

/* ---------- footer ---------- */
.site-foot { background: #10182a; color: #b8c1d4; margin-top: 30px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 30px; padding: 44px 0 30px; }
.foot-grid h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 8px; }
.foot-grid a { color: #b8c1d4; }
.foot-grid a:hover { color: #fff; }
.foot-logo { font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.foot-logo b { color: #6f95ff; }
.foot-about { max-width: 32ch; color: #7c8699; }
.foot-phone { display: block; color: #fff; font-weight: 700; font-size: 1.15rem; margin-bottom: 6px; }
.foot-bottom { border-top: 1px solid #232e45; padding: 18px 0 26px; font-size: .82rem; color: #7c8699; }
.foot-demo { margin-top: 6px; }
.foot-demo a { color: #6f95ff; }
.foot-demo a:hover { color: #fff; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 120;
  background: #10182a; color: #fff; padding: 13px 20px; border-radius: 8px;
  box-shadow: 0 10px 28px rgba(16,24,42,.35); font-size: .9rem;
  opacity: 0; transform: translateY(14px); transition: opacity .25s ease, transform .25s ease;
  pointer-events: none; max-width: 320px;
}
.toast.show { opacity: 1; transform: none; }
