/* Osiadacz Auto — redesign 2026 */

:root {
  --bg: #f6f6f4;
  --white: #fff;
  --ink: #121316;
  --red: #e01f26;
  --red-dark: #c2151c;
  --line: #e2e2dd;
  --line-card: #e6e6e1;
  --line-soft: #eeeee9;
  --line-input: #d9d9d3;
  --muted: #8a8a83;
  --text-2: #5a5a54;
  --text-3: #6a6a64;
  --text-4: #4a4a45;
  --dark-muted: #8b8d92;
  --dark-line: #26282d;
  --placeholder: repeating-linear-gradient(135deg, #e4e4df 0 7px, #dcdcd6 7px 14px);
  --display: "Saira", sans-serif;
  --body: "Barlow", sans-serif;
  --gutter: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.page-white { background: var(--white); }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
button { font: inherit; }
input::placeholder, textarea::placeholder { color: #9a9a92; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: .95;
}
.eyebrow {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--muted);
  text-transform: uppercase;
}
.eyebrow-red {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .2em;
  color: var(--red);
}
.eyebrow-red::before { content: ""; width: 34px; height: 3px; background: var(--red); display: block; }
.link-arrow {
  font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .14em;
  color: var(--red); white-space: nowrap;
}
.link-arrow:hover { color: var(--red-dark); }
.slash {
  width: 46px; height: 10px; background: var(--red); transform: skewX(-24deg); display: block; flex: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .14em;
  padding: 17px 30px; border: 1.5px solid transparent; border-radius: 0;
  cursor: pointer; text-transform: uppercase; transition: background .15s, color .15s, border-color .15s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn-ghost-white { border-color: #fff; color: #fff; background: transparent; }
.btn-ghost-white:hover { background: #fff; color: var(--red); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { font-size: 12px; padding: 10px 16px; letter-spacing: .12em; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 48px;
  padding: 20px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header .logo img { height: 26px; width: auto; }
.site-nav {
  display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 14px 28px;
  font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .14em; white-space: nowrap;
}
.site-nav a.active { color: var(--red); }
.site-nav .nav-phone { background: var(--ink); color: #fff; padding: 11px 20px; }
.site-nav .nav-phone:hover { background: #000; color: #fff; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; margin: -8px; cursor: pointer; color: var(--ink);
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 640px; display: flex; align-items: center;
  background:
    linear-gradient(90deg, rgba(10, 11, 13, .9) 0%, rgba(10, 11, 13, .66) 44%, rgba(10, 11, 13, .18) 100%),
    url("img/hero-salon.jpg") center 40% / cover no-repeat;
}
.hero-inner { padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 24px; max-width: 660px; }
.hero-title { font-size: 74px; line-height: .93; color: #fff; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }

/* ---------- Stats bar ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 24px 64px; padding: 34px var(--gutter); background: var(--ink); }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-value { font-family: var(--display); font-weight: 800; font-size: 30px; color: #fff; line-height: 1.3; }
.stat-value.is-red { color: var(--red); }
.stat-label { font-size: 13px; letter-spacing: .08em; color: var(--dark-muted); }

/* ---------- Sections ---------- */
.section { padding: 72px var(--gutter); }
.section-white { background: var(--white); }
.section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 30px;
}
.section-title { font-size: 38px; line-height: 1.05; }

/* ---------- Car cards ---------- */
.car-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.car-grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

.car-card {
  display: flex; flex-direction: column; border: 1px solid var(--line-card); background: #fff; color: var(--ink);
  transition: border-color .15s;
}
.car-card:hover { border-color: var(--ink); color: var(--ink); }
.car-card-img { position: relative; aspect-ratio: 4 / 3; background: var(--placeholder); overflow: hidden; }
.car-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.car-card:hover .car-card-img img { transform: scale(1.03); }
.car-card-img.is-fixed { aspect-ratio: 16 / 10; }
.car-card-price-tag {
  position: absolute; left: 0; bottom: 0;
  font-family: var(--display); font-weight: 800; font-size: 21px; background: var(--ink); color: #fff; padding: 8px 14px;
}
.car-card-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.car-card-title { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.15; }
.car-card-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-3); }
.car-card-specs {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 6px 18px;
  font-size: 14px; color: var(--text-2);
}
.car-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line-soft); padding-top: 14px; margin-top: auto;
}
.car-card-price { font-family: var(--display); font-weight: 800; font-size: 23px; }
.car-card-more { font-size: 12px; letter-spacing: .1em; color: var(--red); font-weight: 600; }
.car-card-more-display {
  font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--red); white-space: nowrap;
}
.car-card-note { font-size: 13px; color: var(--text-3); }

/* ---------- Why us ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); }
.split-img { min-height: 520px; background: url("img/plac.jpg") center 30% / cover no-repeat; }
.split-body { padding: 76px var(--gutter); display: flex; flex-direction: column; gap: 26px; }
.split-title { font-size: 40px; line-height: 1; letter-spacing: 0; }
.feature-list { display: flex; flex-direction: column; gap: 20px; }
.feature { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); padding-top: 18px; }
.feature-title { font-family: var(--display); font-weight: 700; font-size: 17px; }
.feature-text { font-size: 16px; line-height: 1.5; color: var(--text-2); }

/* ---------- Services bar ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink); }
.service { padding: 34px; border-right: 1px solid var(--dark-line); display: flex; flex-direction: column; gap: 4px; }
.service:last-child { border-right: 0; }
.service-title { font-family: var(--display); font-weight: 700; font-size: 16px; color: #fff; }
.service-text { font-size: 14px; color: #9a9c9f; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 64px var(--gutter) 40px; background: var(--bg); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; align-items: start;
}
.site-footer.no-border { border-top: 0; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { height: 26px; width: auto; align-self: flex-start; }
.footer-text { font-size: 16px; line-height: 1.55; color: var(--text-2); max-width: 360px; }
.footer-phone { font-family: var(--display); font-weight: 700; font-size: 20px; }
.footer-muted { font-size: 16px; color: var(--text-2); }
.footer-bottom {
  padding: 22px var(--gutter) 34px; background: var(--bg); border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--red); }

/* ---------- Page header (dark band) ---------- */
.page-band { background: var(--ink); padding: 52px var(--gutter); }
.page-band.has-tabs { padding-bottom: 0; display: flex; flex-direction: column; gap: 34px; }
.page-band-title { font-size: 56px; color: #fff; }
.page-band-sub { margin-top: 14px; color: #c9cacc; font-size: 17px; }

.tabs { display: flex; flex-wrap: wrap; }
.tab {
  font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .14em;
  padding: 16px 26px; border-bottom: 3px solid transparent; color: var(--dark-muted); white-space: nowrap;
}
.tab:hover { color: #fff; }
.tab.active { color: #fff; border-bottom-color: var(--red); }
.tab-count { font-weight: 600; opacity: .55; margin-left: 4px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 10px; }
.input, .select, .textarea {
  width: 100%; min-width: 0;
  font-family: var(--body); font-size: 15px; padding: 12px 14px;
  border: 1px solid var(--line-input); background: #fff; color: var(--ink); border-radius: 0;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); }
.input.is-invalid, .textarea.is-invalid { border-color: var(--red); }
.textarea { resize: vertical; }
.input-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: block; font-size: 14px; font-weight: 500; padding: 9px 14px;
  border: 1px solid var(--line-input); background: #fff; color: var(--ink); cursor: pointer; user-select: none;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- Offer page ---------- */
.offer-layout {
  display: grid; grid-template-columns: minmax(240px, 280px) minmax(0, 1fr); gap: 44px;
  padding: 44px var(--gutter) 80px; align-items: start;
}
.filters { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 20px; }
.filters-toggle { display: none; }
.results { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.results-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); padding-bottom: 16px;
}
.results-count { font-family: var(--display); font-weight: 700; font-size: 18px; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-3); }
.sort .select { width: auto; font-size: 14px; padding: 8px 10px; }
.empty-state {
  padding: 56px 24px; border: 1px dashed #d0d0ca; display: flex; flex-direction: column; align-items: center;
  gap: 14px; text-align: center;
}
.empty-state-title { font-family: var(--display); font-weight: 700; font-size: 20px; }
.empty-state-text { font-size: 15px; color: var(--text-3); max-width: 380px; }

/* ---------- Car detail ---------- */
.crumbs {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--dark-muted);
}
.crumbs a { color: var(--dark-muted); }
.crumbs a:hover { color: #fff; }
.detail-band-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-top: 22px;
}
.detail-title { font-size: 56px; color: #fff; text-wrap: balance; }
.detail-subtitle { margin-top: 12px; font-size: 17px; color: #c9cacc; }
.detail-band-price { font-family: var(--display); font-weight: 800; font-size: 40px; color: #fff; line-height: 1; white-space: nowrap; }

.detail-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 44px;
  padding: 44px var(--gutter) 80px; align-items: start; background: var(--white);
}
.detail-layout > * { min-width: 0; }
.gallery { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.gallery-main { position: relative; aspect-ratio: 16 / 10; background: var(--placeholder); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border: 0; background: rgba(18, 19, 22, .82); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1;
}
.gallery-nav:hover { background: var(--red); }
.gallery-nav.prev { left: 0; }
.gallery-nav.next { right: 0; }
.gallery-counter {
  position: absolute; right: 0; bottom: 0; background: var(--ink); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .1em; padding: 8px 14px;
}
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.gallery-thumb {
  flex: none; width: 110px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; background: var(--placeholder);
  cursor: pointer; opacity: .6; transition: opacity .15s, border-color .15s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { border-color: var(--red); opacity: 1; }

.detail-aside { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 22px; }
.detail-card { background: var(--bg); padding: 30px; display: flex; flex-direction: column; gap: 22px; }
.spec-list { display: flex; flex-direction: column; }
.spec-row {
  display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 11px 0; font-size: 15px;
}
.spec-row:last-child { border-bottom: 1px solid var(--line); }
.spec-row dt { color: var(--text-3); }
.spec-row dd { margin: 0; font-family: var(--display); font-weight: 700; text-align: right; }
.detail-actions { display: flex; flex-direction: column; gap: 10px; }
.trust-list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--text-4); }
.trust-list li { display: flex; gap: 12px; align-items: center; }
.trust-list li::before { content: ""; width: 18px; height: 6px; background: var(--red); transform: skewX(-24deg); flex: none; }
.plain-list { list-style: none; margin: 0; padding: 0; }

.detail-description { display: flex; flex-direction: column; gap: 18px; padding-top: 30px; }
.detail-description-title { font-size: 32px; }
.description-text { font-size: 16px; line-height: 1.65; color: var(--text-4); white-space: pre-line; overflow-wrap: anywhere; }
.description-text.is-clamped { max-height: 260px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.text-toggle {
  align-self: flex-start; background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--red);
}

/* ---------- About page ---------- */
.about-wip {
  min-height: 60vh; padding: 112px var(--gutter) 96px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 32px;
}
.about-wip-title { font-size: clamp(56px, 9vw, 140px); text-wrap: balance; }
.about-intro {
  padding: 112px var(--gutter) 80px;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px 96px; align-items: end;
}
.about-intro-head { display: flex; flex-direction: column; gap: 28px; }
.about-title { font-size: clamp(44px, 5.6vw, 80px); line-height: .95; letter-spacing: -.025em; text-wrap: balance; }
.about-title em { font-style: inherit; color: var(--red); }
.about-intro-text { display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.65; color: var(--text-4); }

.about-photo { margin: 0 var(--gutter); height: clamp(280px, 42vw, 600px); background: url("img/plac.jpg") center 40% / cover no-repeat; }

.about-points { padding: 96px var(--gutter); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.about-point { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--ink); padding-top: 24px; }
.about-point-num { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .16em; color: var(--red); }
.about-point-title { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; }
.about-point-text { font-size: 16px; line-height: 1.55; color: var(--text-2); }

.about-visit {
  background: var(--bg); padding: 72px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.about-visit-title { font-size: 44px; letter-spacing: -.01em; }
.about-visit-text { margin-top: 10px; font-size: 17px; color: var(--text-3); }
.about-visit-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 56px 72px;
  padding: 64px var(--gutter) 80px; background: var(--white); align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 36px; }
.contact-block { display: flex; flex-direction: column; gap: 10px; }
.contact-big { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.25; }
.contact-mail { font-size: 17px; color: var(--text-4); }
.hours { display: flex; flex-direction: column; max-width: 420px; }
.hours-row { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line-card); padding: 12px 0; font-size: 17px; }
.hours-row:last-child { border-bottom: 1px solid var(--line-card); }
.hours-row strong { font-family: var(--display); font-weight: 700; }
.hours-row .closed { color: var(--muted); }
.hours-note { font-size: 15px; line-height: 1.55; color: var(--text-2); max-width: 420px; }

.form-card { background: var(--bg); padding: 40px; display: flex; flex-direction: column; gap: 22px; }
.form-card-title { font-size: 32px; line-height: 1; letter-spacing: 0; }
.form-grid { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.form-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-4); }
.form-label .input, .form-label .textarea { font-size: 16px; padding: 13px 14px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 6px; }
.form-hint { font-size: 13px; color: var(--muted); }
.form-hint.is-error { color: var(--red); }
.form-success { display: flex; flex-direction: column; gap: 14px; padding: 28px 0; }
.form-success-title { font-family: var(--display); font-weight: 700; font-size: 22px; }
.form-success-text { font-size: 16px; color: var(--text-2); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.map { height: 460px; background: #e4e4df; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Flash ---------- */
.flashes { display: flex; flex-direction: column; gap: 8px; padding: 16px var(--gutter) 0; }
.flash { padding: 14px 18px; border-left: 4px solid var(--ink); background: #fff; font-size: 15px; }
.flash-success { border-left-color: #1f9d55; }
.flash-error { border-left-color: var(--red); }

/* ---------- Error page ---------- */
.error-page { padding: 120px var(--gutter); display: flex; flex-direction: column; gap: 24px; align-items: flex-start; background: #fff; }
.error-code { font-size: 140px; line-height: .8; color: transparent; -webkit-text-stroke: 2px var(--ink); letter-spacing: 0; }

/* ---------- Admin ---------- */
.admin-body { background: var(--bg); }
.admin-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 16px 32px; background: var(--ink); color: #fff;
}
.admin-header .logo img { height: 22px; filter: brightness(0) invert(1); }
.admin-header nav { display: flex; gap: 22px; align-items: center; font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.admin-header nav a { color: #c9cacc; }
.admin-header nav a:hover { color: #fff; }
.admin-header .link-btn { background: none; border: 0; padding: 0; cursor: pointer; color: #c9cacc; font: inherit; letter-spacing: inherit; }
.admin-header .link-btn:hover { color: #fff; }
.admin-main { padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.admin-main .flashes { padding: 0; }
.admin-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-title { font-size: 40px; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.admin-toolbar form { display: flex; gap: 8px; }
.admin-toolbar .input { width: 240px; }
.admin-panel { background: #fff; border: 1px solid var(--line-card); padding: 24px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line-card); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--muted);
  padding: 14px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; text-transform: uppercase;
}
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .thumb { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; background: var(--placeholder); }
.table .name { font-family: var(--display); font-weight: 700; font-size: 15px; }
.table .num { white-space: nowrap; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.badge { display: inline-block; font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: .1em; padding: 4px 8px; background: var(--ink); color: #fff; }
.badge-muted { background: var(--line); color: var(--text-3); }
.admin-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.admin-form .span-all { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.pic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pic { position: relative; aspect-ratio: 4 / 3; background: var(--placeholder); }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic button {
  position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 0; background: var(--red); color: #fff;
  cursor: pointer; font-weight: 700;
}
.pic button:hover { background: var(--red-dark); }
.inline-form { display: inline; margin: 0; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--ink); }
.login-card { width: 100%; max-width: 400px; background: #fff; padding: 40px; display: flex; flex-direction: column; gap: 22px; }
.login-card .logo img { height: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 36px; }
  .car-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service:nth-child(2) { border-right: 0; }
  .service:nth-child(-n+2) { border-bottom: 1px solid var(--dark-line); }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-img { min-height: 340px; }
  .offer-layout { grid-template-columns: 1fr; gap: 24px; }
  .filters { position: static; display: none; }
  .filters.is-open { display: flex; }
  .filters-toggle { display: inline-flex; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-aside { position: static; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .about-intro { grid-template-columns: 1fr; }
  .about-points { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .site-header { gap: 16px; padding-top: 16px; padding-bottom: 16px; }
  .site-header .logo img { height: 22px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); font-size: 15px;
  }
  .nav-open .site-nav { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .nav-phone { margin-top: 14px; text-align: center; padding: 15px 20px; border: 0; }

  .hero { min-height: 460px; background-image:
    linear-gradient(90deg, rgba(10, 11, 13, .88) 0%, rgba(10, 11, 13, .6) 100%),
    url("img/hero-salon-960.jpg"); background-position: center, 60% 40%; }
  .hero-title { font-size: 46px; }
  .hero-actions .btn { flex: 1 1 auto; padding: 16px 20px; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; padding-top: 28px; padding-bottom: 28px; }
  .stat-value { font-size: 26px; }
  .stat-label { font-size: 12px; }

  .section { padding-top: 48px; padding-bottom: 48px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 22px; }
  .section-title { font-size: 30px; }
  .car-grid { grid-template-columns: 1fr; gap: 18px; }
  .car-grid-auto { grid-template-columns: 1fr; gap: 18px; }
  .car-card-specs { grid-template-columns: repeat(2, auto); }

  .split-img { min-height: 260px; }
  .split-body { padding-top: 48px; padding-bottom: 48px; }
  .split-title { font-size: 32px; }
  .services { grid-template-columns: 1fr; }
  .service { border-right: 0; border-bottom: 1px solid var(--dark-line); padding: 24px var(--gutter); }
  .service:last-child { border-bottom: 0; }

  .site-footer { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; }
  .footer-bottom { flex-direction: column; gap: 6px; }

  .page-band { padding-top: 36px; padding-bottom: 36px; }
  .page-band.has-tabs { padding-bottom: 0; gap: 22px; }
  .page-band-title { font-size: 40px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 14px 16px; }
  .offer-layout { padding-top: 24px; padding-bottom: 56px; }

  .detail-title { font-size: 36px; }
  .detail-band-price { font-size: 30px; }
  .detail-layout { padding-top: 16px; gap: 28px; }
  .gallery-thumb { width: 84px; }
  .gallery-nav { width: 40px; height: 40px; }
  .detail-card { padding: 22px; }

  .about-intro { padding-top: 56px; padding-bottom: 40px; }
  .about-points { padding-top: 56px; padding-bottom: 56px; gap: 32px; }
  .about-visit { padding-top: 48px; padding-bottom: 48px; }
  .about-visit-title { font-size: 32px; }
  .about-visit-actions, .about-visit-actions .btn { flex: 1 1 auto; }


  .contact-layout { padding-top: 40px; padding-bottom: 56px; gap: 40px; }
  .form-card { padding: 24px var(--gutter); margin: 0 calc(var(--gutter) * -1); }
  .form-foot .btn { width: 100%; }
  .map { height: 340px; }

  .error-code { font-size: 96px; }
  .admin-main { padding: 20px 16px; }
  .admin-header { padding: 14px 16px; }
  .admin-toolbar .input { width: 100%; }
  .admin-toolbar form { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
