/* ============================================================
   VENCHAK.COM.UA — дизайн-система нового сайту (site_v1)
   Палітра успадкована з теперішнього сайту (тема ADCP):
   хедер #222338, акцент #4377FD, футер #3B3C4E, CTA-градієнт
   помаранчевий, зелений «в наявності».
   Мобільний-перший. Без емодзі. Українською.
   ============================================================ */

:root {
  --navy: #222338;          /* хедер, основний темний */
  --navy-2: #1a1b2c;        /* верхня смуга хедера */
  --navy-3: #333b4e;        /* ховери в хедері */
  --footer: #3b3c4e;
  --blue: #4377fd;          /* акцент, посилання, кнопки */
  --blue-dark: #2f5fe0;
  --logo-blue: #17579e;     /* синій з логотипа */
  --orange: #ff7a00;
  --orange-grad: linear-gradient(180deg, #ffb100, #ff5e00);
  --green: #189a4a;         /* в наявності */
  --green-bg: #e7f6ec;
  --amber: #b26a00;         /* під замовлення */
  --amber-bg: #fdf3e0;
  --red: #d7263d;

  --bg: #f4f5f7;
  --card: #ffffff;
  --line: #e3e5ea;
  --text: #1c1d2b;
  --muted: #6f727d;
  --muted-2: #9a9dab;

  --radius: 10px;
  --radius-s: 6px;
  --shadow: 0 1px 3px rgba(28, 29, 43, .08), 0 4px 16px rgba(28, 29, 43, .06);
  --shadow-pop: 0 8px 32px rgba(28, 29, 43, .18);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 14px; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-s { width: 16px; height: 16px; }
.icon-l { width: 26px; height: 26px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--radius-s);
  padding: 11px 20px; font-size: 15px; font-weight: 600; line-height: 1.2;
  text-decoration: none; transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-cta { background: var(--orange-grad); color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.25); }
.btn-cta:hover { filter: brightness(1.06); }
.btn-ghost { background: transparent; color: var(--blue); border: 1px solid var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-light { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn-light:hover { border-color: var(--blue); color: var(--blue); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ---------- Хедер: верхня смуга ---------- */
.topbar { background: var(--navy-2); color: #bcbdc5; font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 34px; }
.topbar nav { display: none; gap: 18px; }
.topbar nav a { color: #bcbdc5; }
.topbar nav a:hover { color: #fff; text-decoration: none; }
.topbar-phone { display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.topbar-phone:hover { text-decoration: none; color: #ffd166; }
.topbar-worktime { display: none; color: #81828d; }

/* ---------- Хедер: основний ---------- */
.header { background: var(--navy); color: #fff; }
.header .container {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 10px 16px; padding-top: 10px; padding-bottom: 10px;
}
.logo { display: inline-block; line-height: 1.05; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo b { display: block; font-size: 21px; font-weight: 800; letter-spacing: .3px; color: #fff; }
.logo b span { color: #8fb0ff; }
.logo i { display: block; font-style: normal; font-size: 11.5px; letter-spacing: 2.6px; color: #bcbdc5; text-transform: uppercase; }

.header-search { grid-column: 1 / -1; grid-row: 2; display: flex; }
.header-search input {
  flex: 1; min-width: 0; border: 0; border-radius: var(--radius-s) 0 0 var(--radius-s);
  padding: 11px 14px; font-size: 15px; outline: none;
}
.header-search button {
  border: 0; border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: var(--orange-grad); color: #fff; padding: 0 18px; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; gap: 8px;
}
.header-search button:hover { filter: brightness(1.06); }
.header-search button span { display: none; }

.header-actions { display: flex; align-items: center; gap: 4px; justify-self: end; }
.header-action {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: #d6d8dd; text-decoration: none; font-size: 11px; padding: 4px 8px; border-radius: var(--radius-s);
  position: relative;
}
.header-action:hover { color: #fff; background: var(--navy-3); text-decoration: none; }
.header-action .badge-count {
  position: absolute; top: -2px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--orange); color: #fff; border-radius: 9px;
  font-size: 11px; font-weight: 700; line-height: 17px; text-align: center;
}
.header-action span { display: none; }

/* ---------- Хедер: навігація категорій ---------- */
.navbar { background: var(--navy); border-top: 1px solid var(--navy-3); }
.navbar .container { display: flex; align-items: stretch; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.navbar .container::-webkit-scrollbar { display: none; }
.navbar a {
  color: #d6d8dd; text-decoration: none; font-size: 13.5px; font-weight: 500;
  padding: 11px 12px; white-space: nowrap; border-bottom: 3px solid transparent;
}
.navbar a:hover { color: #fff; background: var(--navy-3); }
.navbar a.active { color: #fff; border-bottom-color: var(--blue); }
.navbar .nav-catalog {
  display: flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff; font-weight: 700; border-bottom: 0;
}
.navbar .nav-catalog:hover { background: var(--blue-dark); }

/* ---------- Хлібні крихти ---------- */
.breadcrumbs { font-size: 13px; color: var(--muted); padding: 12px 0; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs span { color: var(--text); }

/* ---------- Головна: hero-пошук ---------- */
.hero {
  background: var(--navy) url() no-repeat center / cover;
  background-image: radial-gradient(1100px 420px at 70% -60%, rgba(67,119,253,.35), transparent),
                    radial-gradient(700px 300px at 10% 130%, rgba(255,122,0,.18), transparent);
  color: #fff; padding: 34px 0 40px; text-align: center;
}
.hero h1 { font-size: 24px; font-weight: 800; line-height: 1.25; }
.hero p { color: #bcbdc5; margin: 8px auto 22px; max-width: 560px; font-size: 14.5px; }
.hero-search { display: flex; max-width: 680px; margin: 0 auto; box-shadow: var(--shadow-pop); border-radius: var(--radius-s); }
.hero-search input {
  flex: 1; min-width: 0; border: 0; border-radius: var(--radius-s) 0 0 var(--radius-s);
  padding: 15px 18px; font-size: 16px; outline: none;
}
.hero-search button {
  border: 0; border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: var(--orange-grad); color: #fff; font-size: 16px; font-weight: 700; padding: 0 22px;
  display: flex; align-items: center; gap: 8px;
}
.hero-search button:hover { filter: brightness(1.06); }
.hero-hint { margin-top: 12px; font-size: 13px; color: #81828d; }
.hero-hint b { color: #bcbdc5; font-weight: 600; }

/* ---------- Підбір по авто ---------- */
.car-picker { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-top: -26px; position: relative; }
.car-picker h2 { font-size: 16px; margin-bottom: 4px; }
.car-picker .muted { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.car-picker-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
.car-picker select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: #fff; color: var(--text); appearance: auto;
}
.car-picker .btn { white-space: nowrap; }

/* ---------- Секції ---------- */
.section { padding: 28px 0 6px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-size: 20px; font-weight: 800; }
.section-head a { font-size: 13.5px; white-space: nowrap; }

/* ---------- Плитки категорій ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat-tile {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 14px; text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 10px; min-height: 108px;
  border: 1px solid transparent; transition: border-color .15s, transform .15s;
}
.cat-tile:hover { border-color: var(--blue); text-decoration: none; transform: translateY(-2px); }
.cat-tile .icon { width: 30px; height: 30px; color: var(--blue); stroke-width: 1.5; }
.cat-tile b { font-size: 14.5px; line-height: 1.3; }
.cat-tile i { font-style: normal; font-size: 12px; color: var(--muted); }

/* ---------- Чипи популярних груп ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 8px 14px; font-size: 13.5px; text-decoration: none;
}
.chips a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Переваги ---------- */
.benefits { display: grid; grid-template-columns: 1fr; gap: 10px; }
.benefit { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: flex; gap: 12px; }
.benefit .icon { width: 26px; height: 26px; color: var(--blue); stroke-width: 1.5; margin-top: 2px; }
.benefit b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.benefit p { font-size: 13px; color: var(--muted); }

/* ---------- Бейджі наявності ---------- */
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 4px 10px; }
.stock .dot { width: 8px; height: 8px; border-radius: 50%; }
.stock-in { color: var(--green); background: var(--green-bg); }
.stock-in .dot { background: var(--green); }
.stock-order { color: var(--amber); background: var(--amber-bg); }
.stock-order .dot { background: var(--amber); }

/* ---------- Картки товарів ---------- */
.products { display: grid; grid-template-columns: 1fr; gap: 10px; }
.product-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; display: grid; grid-template-columns: 84px 1fr; gap: 12px;
}
.product-card .ph {
  width: 84px; height: 84px; border: 1px solid var(--line); border-radius: var(--radius-s);
  display: flex; align-items: center; justify-content: center; color: var(--muted-2);
}
.product-card .ph .icon { width: 34px; height: 34px; stroke-width: 1.2; }
.product-card .p-brand { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.product-card .p-brand b { color: var(--text); }
.product-card .p-name { font-size: 14.5px; font-weight: 600; line-height: 1.35; margin: 2px 0 6px; }
.product-card .p-name a { color: var(--text); }
.product-card .p-name a:hover { color: var(--blue); }
.product-card .p-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.product-card .p-buy {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px;
}
.product-card .p-price { font-size: 19px; font-weight: 800; }
.product-card .p-price small { font-size: 13px; font-weight: 500; color: var(--muted); }

/* ---------- Видача: розмітка з фільтрами ---------- */
.results-layout { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.filters { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; font-size: 14px; }
.filters h3 { font-size: 14px; margin-bottom: 10px; }
.filters .f-group { border-top: 1px solid var(--line); padding: 10px 0; }
.filters .f-group:first-of-type { border-top: 0; }
.filters label { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--text); cursor: pointer; }
.filters label small { color: var(--muted-2); margin-left: auto; }
.results-info { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.results-group-title { font-size: 16px; font-weight: 800; margin: 22px 0 10px; display: flex; align-items: center; gap: 10px; }
.results-group-title small { font-weight: 500; font-size: 13px; color: var(--muted); }

/* ---------- Сторінка товару ---------- */
.product-page { display: grid; grid-template-columns: 1fr; gap: 16px; }
.pp-gallery { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; align-items: center; justify-content: center; min-height: 260px; color: var(--muted-2); }
.pp-gallery .icon { width: 64px; height: 64px; stroke-width: 1; }
.pp-main { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.pp-brand { font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.pp-main h1 { font-size: 20px; line-height: 1.3; margin: 4px 0 10px; }
.pp-article { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.pp-article b { color: var(--text); font-size: 15px; }
.pp-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.pp-price { font-size: 28px; font-weight: 800; }
.pp-qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-s); }
.pp-qty button { width: 36px; height: 42px; border: 0; background: none; font-size: 18px; color: var(--muted); }
.pp-qty input { width: 44px; height: 42px; border: 0; text-align: center; font-size: 15px; outline: none; }
.pp-note { font-size: 13px; color: var(--muted); margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; }
.pp-note .icon { color: var(--blue); margin-top: 1px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table td:first-child { color: var(--muted); width: 46%; }
.spec-table tr:last-child td { border-bottom: 0; }

.cross-list { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; }
.cross-list span { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 5px 10px; }
.cross-list span b { font-weight: 700; }

/* ---------- Панелі/картки загальні ---------- */
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.panel h2, .panel h3 { margin-bottom: 12px; }
.panel h2 { font-size: 18px; }
.panel h3 { font-size: 15px; }
.panel + .panel { margin-top: 16px; }

/* ---------- Акордеон ---------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.accordion details { border-top: 1px solid var(--line); background: #fff; }
.accordion details:first-child { border-top: 0; }
.accordion summary {
  list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 600; font-size: 14.5px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--muted); }
.accordion details[open] summary::after { content: "–"; }
.accordion .acc-body { padding: 0 16px 14px; font-size: 14px; color: #3d3f4e; }
.accordion .acc-body p + p { margin-top: 8px; }

/* ---------- Кошик ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.cart-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item .ph {
  width: 64px; height: 64px; border: 1px solid var(--line); border-radius: var(--radius-s);
  display: flex; align-items: center; justify-content: center; color: var(--muted-2);
}
.cart-item .ci-name { font-size: 14px; font-weight: 600; line-height: 1.35; }
.cart-item .ci-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cart-item .ci-right { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.cart-item .ci-price { font-weight: 800; font-size: 16px; white-space: nowrap; }
.cart-item .ci-remove { font-size: 12.5px; color: var(--muted); background: none; border: 0; text-decoration: underline; }
.cart-item .ci-remove:hover { color: var(--red); }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; color: var(--muted); }
.cart-summary-row.total { font-size: 17px; font-weight: 800; color: var(--text); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }

/* ---------- Радіо-картки (доставка/оплата) ---------- */
.radio-cards { display: grid; gap: 8px; }
.radio-card {
  display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 12px 14px; cursor: pointer; background: #fff;
}
.radio-card:hover { border-color: var(--blue); }
.radio-card input { margin-top: 3px; accent-color: var(--blue); }
.radio-card b { display: block; font-size: 14px; }
.radio-card small { color: var(--muted); font-size: 12.5px; line-height: 1.4; display: block; margin-top: 2px; }
.radio-card .rc-tag { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--green); white-space: nowrap; }

/* ---------- Форми ---------- */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); outline: none;
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- Кабінет ---------- */
.account-layout { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.account-menu { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; font-size: 14px; }
.account-menu a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: var(--text); border-left: 3px solid transparent; }
.account-menu a:hover { background: var(--bg); text-decoration: none; }
.account-menu a.active { border-left-color: var(--blue); color: var(--blue); font-weight: 600; background: #f0f4ff; }
.stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.stat-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; }
.stat-card small { font-size: 12px; color: var(--muted); display: block; }
.stat-card b { font-size: 20px; font-weight: 800; }
.orders-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.orders-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.orders-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.orders-table tr:hover td { background: #fafbfd; }
.status { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.status-new { color: var(--blue); background: #eaf0ff; }
.status-ready { color: var(--green); background: var(--green-bg); }
.status-done { color: var(--muted); background: var(--bg); }
.garage-car { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; }
.garage-car .icon { width: 28px; height: 28px; color: var(--blue); stroke-width: 1.5; }
.garage-car b { display: block; font-size: 14.5px; }
.garage-car small { color: var(--muted); font-size: 12.5px; }
.garage-car .btn { margin-left: auto; }

/* ---------- Вкладки входу ---------- */
.login-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.login-tabs button {
  flex: 1; background: none; border: 0; border-bottom: 3px solid transparent;
  padding: 10px; font-size: 14px; font-weight: 600; color: var(--muted);
}
.login-tabs button.active { color: var(--blue); border-bottom-color: var(--blue); }
.tg-btn { background: #2aabee; color: #fff; }
.tg-btn:hover { background: #1e96d6; }

/* ---------- Контакти ---------- */
.contact-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.contact-row .icon { color: var(--blue); margin-top: 2px; }
.contact-row b { display: block; font-size: 14.5px; }
.contact-row p, .contact-row a { font-size: 14px; }
.contact-row small { color: var(--muted); font-size: 12.5px; display: block; margin-top: 2px; }
.map-placeholder {
  background: #e8ebf0; border: 1px dashed var(--muted-2); border-radius: var(--radius);
  min-height: 220px; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13.5px; text-align: center; padding: 20px;
}

/* ---------- Інфо-плашки ---------- */
.note { border-radius: var(--radius-s); padding: 12px 14px; font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; }
.note .icon { margin-top: 1px; flex: none; }
.note-info { background: #eaf0ff; color: #27407f; }
.note-warn { background: var(--amber-bg); color: #7a5200; }

/* ---------- Футер ---------- */
.footer { background: var(--footer); color: #bcbdc5; margin-top: 40px; font-size: 13.5px; }
.footer a { color: #bcbdc5; }
.footer a:hover { color: #fff; }
.footer-main { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 30px 0 20px; }
.footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer .f-contact { color: #fff; font-weight: 700; font-size: 16px; }
.footer .f-messengers { display: flex; gap: 8px; margin-top: 10px; }
.footer .f-messengers a {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid #55566a; border-radius: 999px;
  padding: 6px 12px; font-size: 12.5px;
}
.footer .f-messengers a:hover { border-color: #fff; text-decoration: none; }
.footer-pay { border-top: 1px solid #4a4b5e; padding: 14px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.footer-pay span { border: 1px solid #55566a; border-radius: 4px; padding: 4px 10px; font-size: 12px; color: #d6d8dd; }
.footer-bottom { border-top: 1px solid #4a4b5e; padding: 14px 0 18px; font-size: 12.5px; color: #81828d; }

/* ---------- Кабінет v2 (редизайн /account 14.08) ---------- */
.login-wrap { max-width: 440px; margin: 20px auto 4px; }
.login-wrap .panel { padding: 28px 24px; }
.login-icon {
  width: 56px; height: 56px; border-radius: 50%; background: #eaf0ff; color: var(--blue);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.login-title { text-align: center; font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.login-sub { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.login-perks { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; color: var(--muted); font-size: 12.5px; }
.login-perks span { display: inline-flex; align-items: center; gap: 6px; }
.login-perks .icon { width: 14px; height: 14px; color: var(--green); }
.account-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin: 6px 0 16px; }
.account-head h1 { font-size: 22px; font-weight: 800; }
.stat-card .pos { color: var(--green); }
.status-cancel { color: var(--red); background: #fdecee; }
.table-scroll { overflow-x: auto; }

/* ---------- Checkout v2 (динамічне оформлення 14.08) ---------- */
.who-chip {
  display: flex; align-items: center; gap: 10px; background: #f0f4ff;
  border: 1px solid #d7e2ff; border-radius: var(--radius-s); padding: 10px 12px;
  font-size: 13.5px; margin-bottom: 12px;
}
.who-chip .icon { color: var(--blue); flex: none; }
.who-chip b { font-weight: 700; }
.who-chip button {
  margin-left: auto; background: none; border: 0; color: var(--blue);
  font-size: 12.5px; text-decoration: underline; white-space: nowrap;
}
.seg { display: flex; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.seg button {
  flex: 1; background: #fff; border: 0; border-left: 1px solid var(--line);
  padding: 9px 6px; font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.seg button:first-child { border-left: 0; }
.seg button.active { background: var(--blue); color: #fff; }
.ac-wrap { position: relative; }
.ac-list {
  position: absolute; z-index: 30; top: 100%; left: 0; right: 0; margin-top: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s);
  box-shadow: var(--shadow-pop); max-height: 240px; overflow-y: auto;
}
.ac-list div { padding: 9px 12px; font-size: 13.5px; cursor: pointer; }
.ac-list div:hover { background: #f0f4ff; }
.ac-list small { color: var(--muted-2); }
.radio-card[hidden] { display: none; }
.checkout-note { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 6px; }

/* ---------- Checkout v3: кроки + картки-опції (14.08, вечір) ---------- */
.co-total { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 4px; }
.co-total b { font-size: 24px; font-weight: 800; }
.co-total small { color: var(--muted); font-size: 12.5px; }
.co-step { display: flex; align-items: center; gap: 10px; margin: 20px 0 10px; }
.co-step i {
  width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff;
  font-style: normal; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.co-step b { font-size: 15px; }
.opt-cards { display: grid; gap: 8px; }
.opt-card {
  position: relative; display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px;
  cursor: pointer; background: #fff;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.opt-card input { position: absolute; opacity: 0; pointer-events: none; }
.opt-card .oc-ico {
  width: 38px; height: 38px; border-radius: 9px; background: #f0f2f7; color: var(--muted);
  display: flex; align-items: center; justify-content: center; flex: none;
  transition: background .15s, color .15s;
}
.opt-card .oc-ico .icon { width: 20px; height: 20px; }
.opt-card .oc-body { flex: 1; min-width: 0; }
.opt-card .oc-body b { display: block; font-size: 14px; }
.opt-card .oc-body small { color: var(--muted); font-size: 12px; line-height: 1.35; display: block; margin-top: 1px; }
.opt-card .oc-tag { font-size: 11.5px; font-weight: 700; color: var(--green); white-space: nowrap; }
.opt-card .oc-tag.mut { color: var(--muted-2); }
.opt-card .oc-check {
  position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue); color: #fff; display: none; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(28, 29, 43, .3);
}
.opt-card .oc-check .icon { width: 12px; height: 12px; stroke-width: 3; }
.opt-card:hover { border-color: #b9c6e8; }
.opt-card.sel, .opt-card:has(input:checked) { border-color: var(--blue); background: #f5f8ff; box-shadow: 0 0 0 1px var(--blue) inset; }
.opt-card.sel .oc-ico, .opt-card:has(input:checked) .oc-ico { background: var(--blue); color: #fff; }
.opt-card.sel .oc-check, .opt-card:has(input:checked) .oc-check { display: flex; }

/* ---------- Марки авто: однакові клітинки з логотипами (14.08) ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.brand-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 12px 8px 10px; display: flex; flex-direction: column; align-items: center;
  gap: 8px; text-decoration: none; color: var(--text); min-height: 108px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.brand-tile:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.brand-tile .bl-img { height: 56px; width: 100%; display: flex; align-items: center; justify-content: center; }
.brand-tile .bl-img img { max-height: 56px; max-width: 92px; object-fit: contain; }
.brand-tile .bl-img i {
  display: none; width: 44px; height: 44px; border-radius: 50%; background: #f0f2f7;
  color: var(--muted); font-style: normal; font-weight: 800; font-size: 20px;
  align-items: center; justify-content: center;
}
.brand-tile .bl-img.noimg img { display: none; }
.brand-tile .bl-img.noimg i { display: flex; }
.brand-tile b { font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.25; word-break: break-word; }
@media (min-width: 640px) { .brand-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .brand-grid { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Рівень категорій авто (14.08) ---------- */
.veh-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.veh-head .vh-logo {
  width: 64px; height: 48px; flex: none; display: flex; align-items: center; justify-content: center;
}
.veh-head .vh-logo img { max-width: 64px; max-height: 48px; object-fit: contain; }
.veh-head .vh-logo .icon { display: none; width: 34px; height: 34px; color: var(--muted-2); stroke-width: 1.4; }
.veh-head .vh-logo.noimg img { display: none; }
.veh-head .vh-logo.noimg .icon { display: block; }
.veh-head b { display: block; font-size: 15.5px; line-height: 1.3; }
.veh-head small { color: var(--muted); font-size: 12.5px; }
.brand-tile.cat { min-height: 96px; }
.brand-tile.cat .bl-img { height: 40px; }
.brand-tile.cat .ci { width: 30px; height: 30px; color: var(--blue); stroke-width: 1.6; }
.brand-tile.cat b { font-size: 12.5px; }
.model-grid { grid-template-columns: repeat(2, 1fr); }
.brand-tile.model { min-height: 128px; }
.brand-tile.model .bl-img { height: 66px; }
.brand-tile.model .bl-img img { max-height: 66px; max-width: 118px; object-fit: contain; }
.brand-tile.model .bl-img .mi { display: none; width: 40px; height: 40px; color: var(--muted-2); stroke-width: 1.3; }
.brand-tile.model .bl-img.noimg .mi { display: block; }
.brand-tile.model small { font-size: 11px; margin-top: -4px; }
@media (min-width: 640px) { .model-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .model-grid { grid-template-columns: repeat(5, 1fr); } }
.results-group-title .ci-h { width: 20px; height: 20px; color: var(--blue); stroke-width: 1.7; flex: none; }
.sub-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.sub-tile {
  display: flex; align-items: center; gap: 12px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px;
  color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.sub-tile:hover { border-color: var(--blue); box-shadow: var(--shadow); text-decoration: none; }
.sub-tile .st-ico {
  width: 34px; height: 34px; border-radius: 8px; background: #f0f4ff; color: var(--blue);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.sub-tile .st-ico .icon { width: 18px; height: 18px; stroke-width: 1.7; }
.sub-tile b { flex: 1; font-size: 14px; font-weight: 600; line-height: 1.3; }
.sub-tile .st-arr { width: 18px; height: 18px; color: var(--muted-2); flex: none; transition: transform .15s, color .15s; }
.sub-tile:hover .st-arr { transform: translateX(3px); color: var(--blue); }
@media (min-width: 900px) { .sub-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Картка в переліку: клік по рядку + зум фото (14.08) ---------- */
.clickable { cursor: pointer; }
.product-card .ph, .cart-item .ph { position: relative; }
.product-card .ph .ph-img, .cart-item .ph .ph-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: #fff; border-radius: var(--radius-s);
}
.product-card .ph.nophoto .ph-img, .cart-item .ph.nophoto .ph-img { display: none; }
.ph-zoom {
  display: none; position: absolute; z-index: 60;
  left: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  width: 340px; height: 340px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
}
.ph-zoom img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 900px) {
  .product-card .ph:not(.nophoto):hover .ph-zoom,
  .cart-item .ph:not(.nophoto):hover .ph-zoom { display: block; }
}
tr.clickable:hover td { background: #f0f4ff !important; }

/* ---------- Головна v4: рекламні слайди + вказівник на бота (15.08) ---------- */
.hero { position: relative; }
.hero.has-slides { overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hs { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity 1.1s ease; }
.hs.active { opacity: 1; }
.hs img { width: 100%; height: 100%; object-fit: cover; }
.hs-shade {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(22,23,38,.85), rgba(22,23,38,.62) 45%, rgba(22,23,38,.85));
}
.hs-left {
  position: absolute; left: 22px; bottom: 14px; text-align: left; max-width: 300px;
  opacity: 0; transform: translateX(-18px);
}
.hs.active .hs-left { animation: hsL .8s .4s ease forwards; }
.hs-left em {
  display: block; font-style: normal; font-size: 11.5px; letter-spacing: 2px;
  text-transform: uppercase; color: #ffd166; font-weight: 800;
}
.hs-left b {
  display: block; color: #fff; font-size: 15px; line-height: 1.35; font-weight: 600;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.hs-price {
  position: absolute; right: 22px; bottom: 14px; color: #fff; font-size: 24px;
  font-weight: 800; text-shadow: 0 1px 8px rgba(0,0,0,.6);
  opacity: 0; transform: translateX(18px);
}
.hs.active .hs-price { animation: hsR .8s .4s ease forwards; }
@keyframes hsL { to { opacity: 1; transform: none; } }
@keyframes hsR { to { opacity: 1; transform: none; } }
.hero-content { position: relative; z-index: 2; }
.hero-panel-wrap { position: relative; max-width: 680px; margin: 0 auto; }
.hero-pointer {
  position: absolute; left: calc(100% + 14px); top: -20px; z-index: 3; color: #ffd166;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  pointer-events: none;
}
.hero-pointer span {
  font-size: 13.5px; font-weight: 700; font-style: italic; transform: rotate(-5deg);
  white-space: nowrap;
}
.hero-pointer svg {
  width: 52px; height: 40px; transform: scaleX(-1);
  animation: ptrBob 1.6s ease-in-out infinite; margin-left: 4px;
}
@keyframes ptrBob {
  0%, 100% { transform: scaleX(-1) translateY(0); }
  50% { transform: scaleX(-1) translateY(6px); }
}
@media (max-width: 1120px) { .hero-pointer { display: none; } }
.tab-badge {
  background: #2AABEE; color: #fff; font-style: normal; font-size: 10px;
  font-weight: 800; padding: 2px 7px; border-radius: 999px; margin-left: 2px;
  text-transform: uppercase; letter-spacing: .5px;
}
@media (max-width: 899px) {
  .hero-pointer { display: none; }
  .hs-left { max-width: 46%; bottom: 8px; left: 12px; }
  .hs-left b { font-size: 12.5px; }
  .hs-price { font-size: 17px; right: 12px; bottom: 10px; }
}

/* ---------- Головна v3: hero-панель з вкладками (15.08) ---------- */
.hero-panel {
  max-width: 680px; margin: 0 auto; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-pop); overflow: hidden; text-align: left;
}
.hero-tabs { display: flex; border-bottom: 1px solid var(--line); }
.hero-tabs button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 6px; background: #f4f5f8; border: 0; border-bottom: 3px solid transparent;
  font-size: 13.5px; font-weight: 700; color: var(--muted);
}
.hero-tabs button.active { background: #fff; color: var(--blue); border-bottom-color: var(--blue); }
.ht-body { padding: 14px; }
.hero-panel .hero-search.flat { box-shadow: none; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.ht-hint { font-size: 12.5px; color: var(--muted); margin-top: 9px; text-align: center; }
.ht-car { display: flex; gap: 10px; }
.ht-car select { flex: 1; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: #fff; font-size: 15px; }
.ht-vin { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; font-size: 14px; color: var(--text); padding: 4px 6px 6px; }

/* ---------- Головна v2: кроки і вітрина (15.08) ---------- */
.steps3 { grid-template-columns: 1fr; }
@media (min-width: 900px) { .steps3 { grid-template-columns: repeat(3, 1fr); } }
.step-n {
  width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff;
  font-weight: 800; font-size: 15px; display: flex; align-items: center;
  justify-content: center; flex: none;
}
@media (min-width: 900px) {
  .home-hot { grid-template-columns: 1fr 1fr; }
  .home-hot .product-card { grid-template-columns: 84px 1fr; grid-template-rows: auto auto; }
  .home-hot .product-card .p-buy {
    grid-column: 2; grid-row: 2; flex-direction: row; align-items: center;
    justify-content: space-between; min-width: 0; border-top: 1px solid var(--line);
    padding-top: 10px; margin-top: 4px;
  }
}

/* ---------- Утиліти ---------- */
.muted { color: var(--muted); }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.page-title { font-size: 22px; font-weight: 800; margin: 6px 0 16px; }

/* ============================================================
   Адаптив: планшет і десктоп
   ============================================================ */
@media (min-width: 640px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .car-picker-row { grid-template-columns: 1fr 1fr; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .product-card .p-buy { grid-column: 2 / -1; border-top: 0; padding-top: 0; }
  .product-card { grid-template-columns: 84px 1fr; grid-template-rows: auto auto; }
  .stat-cards { grid-template-columns: repeat(3, 1fr); }
  .header-search button span { display: inline; }
}

@media (min-width: 900px) {
  body { font-size: 15px; }
  .topbar nav { display: flex; }
  .topbar-worktime { display: block; }
  .header .container { grid-template-columns: auto 1fr auto; }
  .header-search { grid-column: 2; grid-row: 1; max-width: 560px; margin: 0 auto; width: 100%; }
  .header-action span { display: block; }
  .hero h1 { font-size: 32px; }
  .hero { padding: 48px 0 56px; }
  .car-picker-row { grid-template-columns: 1fr 1fr 1fr 1fr auto; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .benefits { grid-template-columns: repeat(4, 1fr); }
  .products { grid-template-columns: 1fr; }
  .product-card { grid-template-columns: 84px 1fr auto; }
  .product-card .ph { grid-column: 1; grid-row: 1; }
  .product-card .ph + div { grid-column: 2; grid-row: 1; }
  .product-card .p-buy {
    grid-column: 3; grid-row: 1; border-top: 0; padding-top: 0; margin-top: 0;
    flex-direction: column; align-items: flex-end; justify-content: center; min-width: 170px;
  }
  .results-layout { grid-template-columns: 250px 1fr; }
  .product-page { grid-template-columns: 380px 1fr; }
  .cart-layout { grid-template-columns: 1fr 360px; }
  .account-layout { grid-template-columns: 240px 1fr; }
  .footer-main { grid-template-columns: 2fr 1.4fr 1.4fr 1.6fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}

/* ---------- Кабінет v3 (18-20.08): вкладки Замовлення/Фінанси/Гараж ---------- */
.hint { font-size: 12.5px; color: var(--muted); }
.status-delay { color: var(--amber); background: var(--amber-bg); }

.ac-hero {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px; margin-bottom: 10px;
}
.ac-ava {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff; font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.ac-who b { display: block; font-size: 17px; font-weight: 800; line-height: 1.25; }
.ac-who small { color: var(--muted); font-size: 13px; }
.ac-exit { margin-left: auto; }

.ac-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ac-stat {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px 14px; text-decoration: none; color: var(--text);
  border: 1px solid transparent; transition: border-color .15s;
  display: block; min-width: 0;
}
.ac-stat:hover { text-decoration: none; border-color: var(--blue); }
.ac-stat small { display: block; font-size: 12px; color: var(--muted); }
.ac-stat b { display: block; font-size: 21px; font-weight: 800; line-height: 1.3; }
.ac-stat span { display: block; font-size: 11.5px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-stat:first-child { grid-column: 1 / -1; }
.ac-stat .pos, .fin-sum.pos, .fin-amt.pos, .fin-check .pos { color: var(--green); }
.ac-stat .neg, .fin-sum.neg { color: var(--red); }

.ac-tabs {
  display: flex; gap: 2px; margin-top: 14px;
  border-bottom: 2px solid var(--line); overflow-x: auto;
}
.ac-tabs a {
  padding: 10px 14px; font-size: 14.5px; font-weight: 600; color: var(--muted);
  text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -2px;
  white-space: nowrap;
}
.ac-tabs a:hover { color: var(--text); text-decoration: none; }
.ac-tabs a.sel { color: var(--blue); border-bottom-color: var(--blue); }

.ac-pane { margin-top: 14px; }
.pane-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

/* картка замовлення */
.ord-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border-left: 3px solid var(--blue); padding: 12px 14px; margin-bottom: 10px;
}
.ord-card.is-done { border-left-color: var(--line); }
.ord-top { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.ord-no { font-size: 15px; }
.ord-date { color: var(--muted); font-size: 13px; }
.ord-total { margin-left: auto; font-size: 16px; font-weight: 800; white-space: nowrap; }
.ord-sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.ord-pay { margin-top: 10px; }
.ord-items { margin-top: 10px; border-top: 1px solid var(--line); }
.ord-items summary {
  list-style: none; cursor: pointer; padding: 9px 0 3px;
  color: var(--blue); font-size: 13.5px; font-weight: 600;
  display: flex; align-items: center; gap: 5px;
}
.ord-items summary::-webkit-details-marker { display: none; }
.ord-items summary .icon { transition: transform .15s; }
.ord-items[open] summary .icon { transform: rotate(180deg); }
.oi { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.oi:last-child { border-bottom: 0; }
.oi-name { min-width: 0; }
.oi-name b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.oi-name small { color: var(--muted); font-size: 12px; }
.oi-right { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.oi-sum { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.oi-off { opacity: .55; }
.oi-off .oi-name b { text-decoration: line-through; }

/* фінанси */
.fin-grid { display: grid; gap: 12px; align-items: start; }
.fin-sum { font-size: 32px; font-weight: 800; margin: 2px 0 4px; }
.fin-topup { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.fin-quick { display: flex; gap: 6px; }
.fin-payrow { display: flex; gap: 8px; }
.fin-payrow input {
  flex: 1; min-width: 0; padding: 10px 12px; font-size: 15px;
  border: 1px solid var(--line); border-radius: var(--radius-s); outline: none;
}
.fin-payrow input:focus { border-color: var(--blue); }
.fin-checks { margin-bottom: 12px; }
.fin-check {
  display: flex; gap: 8px; align-items: flex-start; font-size: 13px;
  background: var(--green-bg); border-radius: var(--radius-s);
  padding: 8px 10px; margin-bottom: 6px;
}
.fin-check .icon { color: var(--green); margin-top: 2px; }
.fin-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.fin-row:last-child { border-bottom: 0; }
.fin-date { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.fin-desc { font-size: 13.5px; min-width: 0; }
.fin-amt { font-size: 13.5px; white-space: nowrap; }

/* гараж */
.garage-grid { display: grid; gap: 10px; }
.gcar {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.gcar-logo {
  width: 54px; height: 54px; flex: none; display: flex; align-items: center;
  justify-content: center; color: var(--blue);
}
.gcar-logo img { max-width: 54px; max-height: 48px; object-fit: contain; }
.gcar-info { min-width: 0; flex: 1; }
.gcar-info b { display: block; font-size: 15px; line-height: 1.3; }
.gcar-vin {
  display: inline-block; font-family: ui-monospace, Consolas, monospace;
  font-size: 12.5px; letter-spacing: .5px; background: var(--bg);
  border-radius: 5px; padding: 2px 7px; margin: 4px 6px 2px 0; color: var(--text);
}
.gcar-info small { display: block; }
.gcar > .btn { flex: none; }

/* порожні стани */
.ac-empty { text-align: center; padding: 34px 20px; }
.ac-empty .icon-l { width: 40px; height: 40px; color: var(--muted-2); margin: 0 auto 10px; }
.ac-empty b { display: block; font-size: 16px; margin-bottom: 4px; }
.ac-empty p { max-width: 420px; margin: 0 auto 14px; font-size: 13.5px; }

@media (min-width: 720px) {
  .ac-stats { grid-template-columns: repeat(3, 1fr); }
  .ac-stat:first-child { grid-column: auto; }
  .garage-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .fin-grid { grid-template-columns: 360px 1fr; }
  .ord-no { font-size: 16px; }
}

/* ---------- Гараж v2: майстер авто (/account/car) ---------- */
.cw-wrap { max-width: 560px; margin: 6px auto 24px; }
.cw-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.cw-sub { font-size: 14.5px; font-weight: 600; margin-bottom: 4px; }
.cw-quick {
  background: var(--bg); border: 1px dashed var(--line);
  border-radius: var(--radius-s); padding: 12px; margin: 14px 0 16px;
}
.cw-qrow { display: flex; gap: 8px; margin-bottom: 8px; }
.cw-qrow:last-of-type { margin-bottom: 0; }
.cw-qrow input {
  flex: 1; min-width: 0; padding: 10px 12px; font-size: 15px;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  outline: none; text-transform: uppercase;
}
.cw-qrow input:focus { border-color: var(--blue); }
.cw-status { margin-top: 10px; font-size: 13px; border-radius: var(--radius-s); padding: 8px 10px; }
.cw-status.ok { background: var(--green-bg); color: var(--green); }
.cw-status.warn { background: var(--amber-bg); color: var(--amber); }
.cw-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.cw-actions .btn[disabled] { opacity: .5; pointer-events: none; }
.field select {
  width: 100%; padding: 10px 12px; font-size: 15px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-s); outline: none;
}
.field select:focus { border-color: var(--blue); }
.field select:disabled { background: var(--bg); color: var(--muted-2); }
.gcar-btns { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.gcar-edit { font-size: 12px; color: var(--muted); }
@media (min-width: 720px) {
  .cw-actions { flex-direction: row; }
}

/* ---------- Профіль клієнта (/account/profile) ---------- */
.pf-grid { display: grid; gap: 12px; align-items: start; }
.pf-col { min-width: 0; }
.np-sug {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 40;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s);
  box-shadow: var(--shadow-pop); max-height: 240px; overflow-y: auto;
}
.np-sug div { padding: 9px 12px; font-size: 14px; cursor: pointer; }
.np-sug div:hover { background: #eaf0ff; }
@media (min-width: 900px) {
  .pf-grid { grid-template-columns: 1fr 1fr; }
}
/* грабля checkout-v2: display:flex перебиває атрибут hidden */
.cw-qrow[hidden], .pf-grid [hidden], .ac-pane[hidden] { display: none !important; }
