:root {
  --red: #a51f22; --red-dark: #861518; --dark: #231f20; --darker: #1a1718;
  --bg: #ffffff; --surface: #f6f6f6; --text: #222; --muted: #6b6b6b; --border: #e3e3e3;
  --wa: #25d366; --radius: 4px;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font: "Barlow", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.55; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 400; margin: 0 0 .5em; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.ic { width: 1em; height: 1em; fill: currentColor; vertical-align: -0.12em; flex: none; }
.center { text-align: center; }
.red { color: var(--red); }
.muted { color: #aaa; }
.pad { padding-top: 50px; padding-bottom: 60px; }
.empty { color: var(--muted); padding: 30px 0; grid-column: 1/-1; text-align: center; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.07); }
.topbar { display: flex; align-items: stretch; border-bottom: 1px solid var(--border); font-family: var(--font-head); font-size: 17px; }
.topbar-phone { background: var(--red); color: #fff; padding: 12px 28px; display: flex; align-items: center; gap: 10px; }
.topbar-addr { display: flex; align-items: center; gap: 8px; padding: 0 22px; color: #555; }
.topbar-social { margin-left: auto; display: flex; align-items: center; gap: 16px; padding: 0 22px; font-size: 20px; color: #666; }
.topbar-social a:hover { color: var(--red); }
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; max-width: 1400px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 70px; color: var(--dark); }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 36px; letter-spacing: 1px; text-transform: uppercase; color: var(--dark); }
.logo-text::first-letter { color: var(--red); }
.logo-white .logo-text { color: #fff; }
.mainnav { display: flex; gap: 34px; font-family: var(--font-head); font-size: 20px; }
.mainnav a { padding: 6px 0; border-bottom: 2px solid transparent; }
.mainnav a:hover, .mainnav a.active { color: var(--red); border-color: var(--red); }
.nav-burger { display: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 26px; height: 3px; background: var(--dark); }

/* flashes */
.flashes { margin-top: 16px; }
.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 8px; font-weight: 500; }
.flash-ok { background: #e7f6ec; color: #17602f; border: 1px solid #bfe6cb; }
.flash-error { background: #fdecec; color: #8a1c1c; border: 1px solid #f3c2c2; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-head); font-size: 19px; text-transform: uppercase; letter-spacing: .5px; padding: 10px 30px; border: 2px solid transparent; border-radius: 2px; cursor: pointer; transition: .2s; background: #eee; color: var(--text); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--dark); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-dark { background: var(--dark); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-lg { padding: 13px 44px; }
.btn-sm { font-size: 15px; padding: 5px 12px; }
.btn-block { width: 100%; margin-top: 10px; }
.link-red { color: var(--red); text-decoration: underline; font-family: var(--font-head); font-size: 22px; }

/* hero */
.hero { position: relative; height: 72vh; min-height: 420px; max-height: 720px; overflow: hidden; background: var(--dark); }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s; display: flex; align-items: center; }
.hero-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.05) 60%); }
.hero-slide.active { opacity: 1; }
.hero-text { position: relative; color: #fff; width: 100%; }
.hero-text h1 { font-size: clamp(42px, 6vw, 76px); font-weight: 300; margin: 0; }
.hero-text p { font-family: var(--font-head); font-size: clamp(22px, 3vw, 36px); font-weight: 300; margin: 0; }
.hero-dots { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.hero-dots button.active { background: var(--red); }

/* search */
.search-section { background: var(--dark); color: #fff; padding: 40px 0 46px; }
.search-section .search-box { background: transparent; padding: 0; }
.search-box { background: var(--dark); color: #fff; padding: 24px; border-radius: var(--radius); }
.search-box h3 { font-size: 34px; font-weight: 300; }
.search-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 22px; }
.search-box label { font-family: var(--font-head); font-size: 17px; display: flex; flex-direction: column; gap: 6px; }
.search-box select { padding: 10px; border: 0; border-radius: 2px; font-family: var(--font); font-size: 15px; }
.search-count { display: inline-block; margin-top: 16px; font-family: var(--font-head); font-size: 20px; text-decoration: underline; color: #ddd; }

/* sections */
.section-title { text-align: center; font-size: clamp(30px, 4vw, 42px); margin: 60px 0 34px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; margin-bottom: 60px; }
.why-item .ic { font-size: 54px; color: var(--red); margin-bottom: 14px; }
.why-item h4 { font-size: 26px; }
.why-item p { color: var(--muted); margin: 0; }
.stats-band { background: var(--red); color: #fff; padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats-grid a { color: #fff; text-decoration: none; }
.stats-grid a:hover strong { text-decoration: underline; }
.stats-grid strong { display: block; font-family: var(--font-head); font-size: 34px; font-weight: 600; line-height: 1.1; margin-bottom: 6px; }
.stats-grid span { font-family: var(--font-head); font-size: 20px; }

/* cards */
.cars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cars-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.car-card { background: #fff; display: flex; flex-direction: column; transition: .25s; }
.car-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.car-card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--surface); }
.car-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.car-card:hover .car-card-img img { transform: scale(1.04); }
.car-card.is-sold .car-card-img img { filter: grayscale(.7) brightness(.85); }
.price-tag { position: absolute; right: 0; bottom: 0; background: var(--red); color: #fff; font-family: var(--font-head); font-size: 24px; font-weight: 600; padding: 4px 16px; }
.is-sold .price-tag { background: #555; text-decoration: line-through; }
.ribbon { position: absolute; top: 22px; left: -42px; transform: rotate(-35deg); background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 700; letter-spacing: 2px; padding: 6px 54px; font-size: 18px; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.ribbon-lg { font-size: 26px; top: 34px; left: -56px; padding: 8px 74px; }
.noimg { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 200px; color: #aaa; }
.car-card-body { padding: 18px 20px 24px; text-align: center; flex: 1; display: flex; flex-direction: column; }
.car-card-body h4 { font-size: 23px; margin-bottom: 2px; }
.car-version { font-family: var(--font-head); font-size: 19px; color: #444; margin: 0 0 14px; min-height: 1.4em; }
.car-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid var(--border); padding-top: 16px; margin-bottom: 20px; text-align: left; font-family: var(--font-head); font-size: 17px; }
.car-specs div { display: flex; flex-direction: column; gap: 4px; padding-left: 14px; }
.car-specs u { margin-bottom: 6px; }
.car-specs span { display: flex; align-items: center; gap: 8px; }
.car-card-body .btn { margin: auto auto 0; }

/* brands */
.brands-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 20px; margin-bottom: 60px; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--font-head); font-size: 20px; padding: 18px 8px; transition: .2s; }
.brand:hover { color: var(--red); }
.brand-initial { width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--dark); display: flex; align-items: center; justify-content: center; font-size: 38px; font-weight: 700; }
.brand:hover .brand-initial { border-color: var(--red); }
.brand small { color: var(--muted); font-size: 15px; }

.about-band { background: var(--surface); padding: 70px 0; margin-top: 50px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-grid h2 { font-size: 46px; margin: 0; }
.about-grid h3 { font-size: 26px; }
.about-grid img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.cta-band { background: var(--dark) url("img/hero2.jpg") center/cover; position: relative; color: #fff; padding: 70px 0; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(20,18,18,.75); }
.cta-band .container { position: relative; }
.cta-band h3 { font-size: 34px; font-weight: 300; margin-bottom: 20px; }

/* page head & list */
.page-head { background: var(--dark); color: #fff; padding: 36px 0; }
.page-head h1 { font-size: 46px; font-weight: 300; margin: 0; }
.page-head p { font-family: var(--font-head); font-size: 22px; margin: 0; color: #ccc; }
.page-head .back { color: #bbb; font-family: var(--font-head); font-size: 18px; }
.list-layout { display: grid; grid-template-columns: 300px 1fr; gap: 30px; padding-top: 30px; padding-bottom: 60px; align-items: start; }
.list-layout aside { position: sticky; top: 150px; }
.list-layout .search-grid { grid-template-columns: 1fr; gap: 12px; }
.list-layout .search-box h3 { font-size: 28px; }
.list-layout .search-box .btn { width: 100%; }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.list-toolbar select, .request-box input, .request-box textarea { padding: 10px 12px; border: 1px solid #ccc; border-radius: 2px; font: inherit; font-size: 15px; }

/* detail */
.detail-layout { display: grid; grid-template-columns: 1fr 380px; gap: 36px; padding-top: 30px; padding-bottom: 40px; align-items: start; }
.gallery-main { position: relative; overflow: hidden; aspect-ratio: 16/10; background: var(--surface); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.5); color: #fff; border: 0; font-size: 34px; width: 48px; height: 64px; cursor: pointer; }
.gal-nav.prev { left: 0; } .gal-nav.next { right: 0; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin-top: 8px; }
.gallery-thumbs img { aspect-ratio: 4/3; object-fit: cover; cursor: pointer; opacity: .6; border: 2px solid transparent; }
.gallery-thumbs img.active, .gallery-thumbs img:hover { opacity: 1; border-color: var(--red); }
.sub-title { font-size: 30px; margin: 34px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--red); display: inline-block; }
.description { white-space: pre-line; color: #333; }
.spec-table { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--border); }
.spec-table div { display: flex; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.spec-table div:nth-child(4n+1), .spec-table div:nth-child(4n+2) { background: var(--surface); }
.spec-table dt { color: var(--muted); } .spec-table dd { margin: 0; font-weight: 600; }
.detail-side { position: sticky; top: 150px; display: flex; flex-direction: column; gap: 20px; }
.price-box { background: var(--dark); color: #fff; padding: 24px; }
.price-box > span { font-family: var(--font-head); font-size: 20px; color: #bbb; }
.price-box strong { display: block; font-family: var(--font-head); font-size: 52px; font-weight: 600; line-height: 1.1; }
.sold-label { font-family: var(--font-head); font-size: 44px; font-weight: 700; color: #ff5a5d; letter-spacing: 2px; }
.quick-specs { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-family: var(--font-head); font-size: 18px; }
.quick-specs li { display: flex; align-items: center; gap: 8px; }
.request-box { background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.request-box h3 { font-size: 28px; margin: 0 0 4px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-grid h2 { font-size: 34px; }
.contact-list { list-style: none; padding: 0; font-size: 18px; }
.contact-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.contact-list .ic { color: var(--red); font-size: 22px; }
.map { width: 100%; height: 280px; border: 0; margin-top: 10px; }

/* footer */
.site-footer { background: var(--darker); color: #ddd; padding-top: 50px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.3fr 1fr 1fr; gap: 30px; padding-bottom: 40px; }
.site-footer h5 { font-size: 22px; color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; display: flex; gap: 8px; align-items: baseline; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { margin: 0 0 10px; }
.footer-bottom { border-top: 1px solid #333; text-align: center; padding: 18px; font-size: 14px; color: #888; }
.float-contacts { position: fixed; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 4px; z-index: 40; }
.float-contacts a { background: var(--red); color: #fff; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.float-contacts a:hover { background: var(--red-dark); width: 54px; }

/* responsive */
@media (max-width: 1100px) {
  .search-grid { grid-template-columns: repeat(3, 1fr); }
  .cars-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .topbar-addr { display: none; }
  .nav-burger { display: flex; }
  .mainnav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 10px 20px; box-shadow: 0 8px 16px rgba(0,0,0,.1); }
  .mainnav a { padding: 10px 0; border-bottom: 1px solid var(--border); }
  #nav-toggle:checked ~ .mainnav { display: flex; }
  .navbar { position: relative; }
  .list-layout { grid-template-columns: 1fr; }
  .list-layout aside { position: static; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .logo-text { font-size: 28px; } .logo-mark { width: 50px; }
}
@media (max-width: 620px) {
  .search-grid { grid-template-columns: 1fr 1fr; }
  .cars-grid, .cars-grid.cols-2, .why-grid { grid-template-columns: 1fr; }
  .spec-table { grid-template-columns: 1fr; }
  .spec-table div:nth-child(n) { background: none; }
  .spec-table div:nth-child(odd) { background: var(--surface); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid strong { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-phone { padding: 10px 16px; }
}

/* ---------------- admin ---------------- */
body.admin { background: #f2f2f2; }
.admin-header { background: var(--dark); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; position: sticky; top: 0; z-index: 50; }
.admin-header .logo-text { font-size: 28px; }
.admin-badge { font-family: var(--font-head); background: var(--red); padding: 2px 10px; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; }
.admin-nav { display: flex; gap: 22px; font-family: var(--font-head); font-size: 18px; }
.admin-nav a { color: #ccc; padding: 4px 0; border-bottom: 2px solid transparent; }
.admin-nav a:hover, .admin-nav a.active { color: #fff; border-color: var(--red); }
.count { background: var(--red); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 14px; }
.nav-burger.light span { background: #fff; }
.admin-main { padding-top: 26px; padding-bottom: 60px; }
.admin-title { font-size: 34px; margin: 6px 0 12px; }
.admin-title small { color: var(--muted); font-size: 24px; }
.hint { color: var(--muted); margin: 0 0 14px; }
.admin-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 22px; }
.admin-stats div { background: #fff; padding: 16px 20px; border-left: 4px solid var(--red); }
.admin-stats span { display: block; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }
.admin-stats strong { font-family: var(--font-head); font-size: 34px; font-weight: 600; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.tabs { display: flex; background: #fff; }
.tabs a { padding: 9px 18px; font-family: var(--font-head); font-size: 18px; }
.tabs a.active { background: var(--dark); color: #fff; }
.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-row { display: grid; grid-template-columns: 150px 1fr auto auto; gap: 20px; align-items: center; background: #fff; padding: 12px; }
.admin-row.is-sold { opacity: .85; }
.admin-row.is-sold .admin-thumb img { filter: grayscale(.8); }
.admin-thumb img, .admin-thumb .noimg { width: 150px; height: 100px; object-fit: cover; min-height: 0; background: var(--surface); }
.admin-info h3 { font-size: 24px; margin: 0; }
.admin-info h3 small { color: var(--muted); font-size: 18px; }
.admin-info p { margin: 2px 0; color: #555; font-size: 15px; }
.admin-price { font-family: var(--font-head); font-size: 28px; font-weight: 600; white-space: nowrap; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 300px; }
.admin-actions form { margin: 0; }
.danger { color: #b3261e !important; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .5px; padding: 2px 9px; border-radius: 20px; background: #eee; color: #444; }
.pill-ok { background: #e2f4e8; color: #17602f; }
.pill-sold { background: var(--red); color: #fff; }
.admin-form fieldset { background: #fff; border: 0; padding: 20px 22px 22px; margin: 0 0 16px; }
.admin-form legend { font-family: var(--font-head); font-size: 24px; float: left; width: 100%; margin-bottom: 12px; }
.admin-form legend small { font-size: 16px; color: var(--muted); }
.admin-form label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 600; color: #444; margin-bottom: 12px; clear: both; }
.admin-form input:not([type=checkbox]):not([type=radio]):not([type=file]), .admin-form select, .admin-form textarea { padding: 10px 12px; border: 1px solid #ccc; border-radius: 3px; font: inherit; font-weight: 400; font-size: 15px; color: var(--text); background: #fff; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { outline: 2px solid var(--red); outline-offset: -1px; border-color: transparent; }
.admin-form label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 16px; clear: both; }
.form-grid label { clear: none; }
.span-2 { grid-column: span 2; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.form-actions.left { justify-content: flex-start; margin-top: 14px; }
.upload-drop { display: flex !important; flex-direction: column; align-items: center; gap: 12px; border: 2px dashed var(--red); padding: 30px !important; text-align: center; cursor: pointer; font-weight: 400 !important; background: var(--surface); }
.upload-drop:hover { border-color: var(--red); }
.upload-drop input { display: none; }
.upload-preview, .photo-manage { display: flex; flex-wrap: wrap; gap: 10px; clear: both; }
.upload-preview img { width: 120px; height: 90px; object-fit: cover; }
.photo-manage { margin-bottom: 14px; }
.photo-item { width: 150px; background: var(--surface); padding: 6px; }
.photo-item img { width: 100%; height: 100px; object-fit: cover; margin-bottom: 4px; }
.photo-item label { flex-direction: row !important; align-items: center; margin: 2px 0 !important; font-weight: 500 !important; }
.contract-head { display: flex; gap: 24px; background: #fff; padding: 20px; margin-bottom: 16px; align-items: center; }
.contract-head img { width: 220px; height: 150px; object-fit: cover; }
.contract-head p { margin: 4px 0; }
.pdf-frame { width: 100%; height: 80vh; border: 0; background: #fff; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; }
.admin-table th, .admin-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { font-family: var(--font-head); font-size: 17px; font-weight: 600; background: var(--dark); color: #fff; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.request-row { background: #fff; padding: 16px 20px; display: flex; justify-content: space-between; gap: 20px; border-left: 4px solid transparent; }
.request-row.unread { border-color: var(--red); }
.request-row h3 { font-size: 22px; margin: 0; }
.request-row p { margin: 3px 0; }
.link { color: var(--red); text-decoration: underline; }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--dark) url("img/hero1.jpg") center/cover; }
.login-box { background: #fff; padding: 36px; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.login-box .logo { justify-content: center; }
.login-box p { margin: 0; color: var(--muted); }
.login-box input { padding: 12px; border: 1px solid #ccc; font: inherit; }
.back-link { color: var(--muted); font-size: 14px; }
@media (max-width: 1000px) {
  .admin-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark); flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .admin-nav a { padding: 10px 0; border-bottom: 1px solid #333; }
  #nav-toggle:checked ~ .admin-nav { display: flex; }
  .admin-header .nav-burger { display: flex; }
  .admin-row { grid-template-columns: 110px 1fr; }
  .admin-thumb img, .admin-thumb .noimg { width: 110px; height: 80px; }
  .admin-price { grid-column: 2; }
  .admin-actions { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .contract-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } .request-row { flex-direction: column; } }

/* logo immagine, servizi, recensioni */
.logo-img { height: 62px; width: auto; display: block; }
.site-footer .logo-img { height: 70px; margin-bottom: 12px; }
.footer-social a { margin-right: 14px; color: #fff; text-decoration: underline; }
.services-home { padding: 60px 20px 20px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card { background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.08); display: block; color: inherit; transition: transform .2s; }
.service-card:hover { transform: translateY(-4px); }
.service-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.service-card div { padding: 18px 20px 22px; }
.service-card h4 { font-family: var(--font-head); font-size: 24px; margin: 0 0 6px; color: var(--red); text-transform: uppercase; }
.service-card p { margin: 0; color: #555; }
.reviews-band { background: var(--dark); color: #fff; padding: 60px 0; margin-top: 50px; }
.section-title.light { color: #fff; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.reviews-grid blockquote { margin: 0; background: rgba(255,255,255,.06); border-left: 4px solid var(--red); padding: 22px 24px; }
.reviews-grid p { font-style: italic; margin: 0 0 12px; line-height: 1.6; }
.reviews-grid cite { font-family: var(--font-head); font-size: 20px; color: #fff; font-style: normal; }
.check-list { list-style: none; padding: 0; margin: 0 0 20px; }
.check-list li { padding: 6px 0 6px 28px; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.btn-outline-dark { border: 2px solid var(--dark); color: var(--dark); margin-left: 8px; }
.mainnav a { font-size: 19px; }
@media (max-width: 1100px) { .mainnav { gap: 18px; } .mainnav a { font-size: 17px; } }
@media (max-width: 900px) { .services-grid, .reviews-grid { grid-template-columns: 1fr; } .logo-img { height: 48px; } }
.admin-header .admin-logo { height: 44px; }
.login-box .logo-img { height: 70px; margin: 0 auto; }
.parts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px 18px; margin-top: 8px; }
.part-row { display: flex !important; flex-direction: row !important; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; border-bottom: 1px dashed #ddd; padding: 3px 0; }
.part-row select { width: 130px; padding: 4px 6px; }

.pill-warn { background: #fff1d6; color: #8a5300; text-decoration: none; }
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; clear: both; }
.doc-box { border: 1px solid #e3e3e3; border-left: 4px solid #ccc; border-radius: 4px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.doc-box.has { border-left-color: #2e9d56; }
.doc-box.missing { border-left-color: #e0a100; }
.doc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.doc-file { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14px; border-bottom: 1px dashed #eee; padding-bottom: 4px; }
.doc-file a { word-break: break-all; }
.doc-file small { color: var(--muted); }
.admin-form .doc-del { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 4px; font-size: 12px; color: #b00; margin-left: auto; }
.doc-box input[type=file] { font-size: 13px; }

.cost-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; clear: both; }
.cost-summary div { background: var(--surface); padding: 12px 16px; border-left: 4px solid #333; }
.cost-summary span { display: block; font-size: 13px; color: var(--muted); text-transform: uppercase; }
.cost-summary strong { font-family: var(--font-head); font-size: 26px; }
.pos { color: #17803a; } .neg { color: #c0161c !important; }
.cost-line { display: block; font-family: var(--font); font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 2px; text-decoration: none; }
.admin-price { text-align: right; }
.fin-filter label { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; font-weight: 600; }
.fin-filter select { padding: 6px 8px; }
.fin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 6px 0 10px; }
.fin-box { background: #fff; padding: 16px 20px; }
.fin-box h2, .fin-h { font-family: var(--font-head); font-size: 24px; margin: 18px 0 10px; }
.fin-box h2 { margin-top: 0; }
.admin-table .num { text-align: right; white-space: nowrap; }
.admin-table.compact td { padding: 7px 10px; }
.admin-table tr.tot td { font-weight: 700; border-top: 2px solid #333; }
.table-scroll { overflow-x: auto; }
.notice-warn { background: #fff1d6; color: #8a5300; padding: 10px 14px; border-left: 4px solid #e0a100; }
.muted { color: var(--muted); }
@media (max-width: 800px) { .fin-cols { grid-template-columns: 1fr; } }
.back-link { margin: 0 0 6px; } .back-link a { color: var(--muted); text-decoration: none; }
.cv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.cv-head .admin-title { margin: 0 0 6px; }
.cv-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; margin-bottom: 16px; }
.cv-grid > section > .fin-box + .fin-box { margin-top: 16px; }
.fin-box + .fin-box, section.fin-box { margin-bottom: 16px; }
.cv-cover { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; min-height: 0; }
.cv-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; margin-top: 6px; }
.cv-thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; min-height: 0; }
.cv-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.cv-sec-head h2 { margin: 0 !important; }
.cv-h3 { font-family: var(--font-head); font-size: 20px; margin: 18px 0 6px; }
.cv-desc { line-height: 1.6; max-height: 320px; overflow: auto; }
.admin-info h3 a { color: inherit; text-decoration: none; } .admin-info h3 a:hover { color: var(--red); }
@media (max-width: 900px) { .cv-grid { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.svc-head { background-size: cover; background-position: center; padding: 70px 0; }
.svc-head h1 { font-size: clamp(34px, 5vw, 56px); }
.svc-head p { margin-bottom: 18px !important; }
.svc-head .crumb { font-size: 15px !important; margin-bottom: 8px !important; } .svc-head .crumb a { color: #ccc; }
.btn-outline-light { border: 1px solid #fff; color: #fff; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 44px; align-items: start; }
.svc-grid aside { position: sticky; top: 20px; }
.svc-text h2 { font-size: clamp(28px, 3.5vw, 40px); margin: 0 0 14px; }
.svc-text h3 { font-size: 28px; margin: 30px 0 12px; }
.svc-text p { line-height: 1.7; }
.svc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.svc-cards > div { background: var(--surface); padding: 18px; border-top: 3px solid var(--red); }
.svc-cards h4 { font-size: 21px; margin: 6px 0; } .svc-cards p { margin: 0; font-size: 15px; line-height: 1.5; }
.svc-cards svg { width: 30px; height: 30px; color: var(--red); fill: currentColor; }
.svc-img { width: 100%; aspect-ratio: 16/8; object-fit: cover; margin: 28px 0 0; border-radius: var(--radius); }
.booking select, .booking-date input { padding: 10px 12px; border: 1px solid #ccc; border-radius: 2px; font: inherit; font-size: 15px; background: #fff; }
.booking-date { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.booking .hint { margin: 0; font-size: 14px; }
.booking-alt { font-size: 14px; text-align: center; margin: 4px 0 0; } .booking-alt a { color: var(--red); }
.faq { max-width: 900px; } .pad-b { padding-bottom: 60px; }
.faq .section-title { margin-top: 10px; }
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { font-family: var(--font-head); font-size: 22px; cursor: pointer; list-style: none; position: relative; padding-right: 30px; }
.faq summary::after { content: "+"; position: absolute; right: 0; color: var(--red); font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { line-height: 1.7; margin: 10px 0 0; }
.svc-cross { margin-top: 26px; text-align: center; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; } .svc-grid aside { position: static; } }
.mainnav { gap: 22px; }
@media (max-width: 1350px) { .mainnav { gap: 14px; } .mainnav a { font-size: 17px; } }
@media (max-width: 1150px) { .mainnav { gap: 10px; } .mainnav a { font-size: 16px; } }
.btn-outline-light, .btn-outline-light:hover { background: transparent !important; border: 1px solid #fff; color: #fff !important; }
.svc-promo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-bottom: 40px; }
.svc-promo-card { min-height: 300px; background-size: cover; background-position: center; color: #fff; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; text-decoration: none; border-radius: var(--radius); }
.svc-promo-card h3 { font-size: 36px; margin: 0 0 6px; } .svc-promo-card p { margin: 0 0 14px; max-width: 460px; }
.check-list a { color: var(--red); }
@media (max-width: 800px) { .svc-promo { grid-template-columns: 1fr; } }

/* SEO locale */
.home-h1 { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 1.6rem; text-align: center; margin: 0 0 18px; color: inherit; }
.local-seo { max-width: 980px; }
.local-seo p { line-height: 1.7; margin: 0 0 14px; }
.local-seo .btn { margin: 6px 8px 0 0; }
.local-zones { color: #555; }
.btn-outline { border: 2px solid #c8102e; color: #c8102e; background: transparent; }
.footer-zones { color: #9aa; font-size: .85rem; text-align: center; padding-top: 10px; padding-bottom: 10px; margin: 0 auto; }
.form-privacy { font-size: .8rem; color: #777; margin: 8px 0 0; }
.faq-page { max-width: 900px; }
.faq-more { margin-top: 24px; line-height: 1.7; }
.legal { max-width: 900px; line-height: 1.7; }
.legal h2 { font-size: 1.25rem; margin: 26px 0 8px; }
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; max-width: 760px; margin: 0 auto; background: #fff; color: #222; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.25); padding: 18px 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1 1 320px; margin: 0; font-size: .9rem; line-height: 1.5; }
.cookie-banner .btn { padding: 10px 22px; }
.list-intro { padding-top: 24px; }
.list-intro p { max-width: 900px; margin: 0; color: #555; line-height: 1.6; }
.service-card h2.h4 { font-size: 22px; margin: 0 0 8px; }
.request-box h2.h3 { font-size: 26px; margin: 0 0 14px; }
.page-head h1 { line-height: 1.15; }
.zone-box { background: var(--surface); padding: 22px; border-top: 3px solid var(--red); }
.zone-box h3 { margin: 0 0 10px; font-size: 26px; }
.btn-block { display: flex; justify-content: center; gap: 8px; width: 100%; box-sizing: border-box; }
.zones-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 24px 0 30px; }
.zone-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--surface); border-left: 3px solid var(--red); color: inherit; text-decoration: none; }
.zone-card strong { font-family: var(--font-head); font-size: 22px; } .zone-card span { color: #555; } .zone-card small { color: var(--red); }
.zone-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.lead-text { max-width: 900px; line-height: 1.7; }
.footer-zones a { color: inherit; }
.sell-band { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 40px; margin-bottom: 10px; padding: 26px 30px; background: var(--surface); border-left: 5px solid var(--red); }
.sell-band h2 { margin: 0 0 6px; font-size: clamp(26px, 3vw, 34px); }
.sell-band p { margin: 0; }
.request-body { flex: 1; min-width: 0; }
.agenda { background: #fff; padding: 16px 20px; margin-bottom: 14px; border-left: 4px solid #17602f; }
.agenda h2 { font-size: 22px; margin: 0 0 8px; }
.agenda p { margin: 4px 0; }
.reply-sent { background: #f3f7f4; padding: 10px 14px; margin-top: 10px; border-left: 3px solid #17602f; }
.reply-sent.just { box-shadow: 0 0 0 2px #25d366; }
.reply-form { margin-top: 10px; }
.reply-form summary { cursor: pointer; font-weight: 600; color: var(--red); }
.reply-grid { display: grid; grid-template-columns: 180px 140px 1fr; gap: 10px; margin: 10px 0; align-items: end; }
.reply-grid .span-2 { grid-column: 1 / -1; }
.reply-grid textarea { width: 100%; }
.reply-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.reply-btns { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 700px) { .reply-grid { grid-template-columns: 1fr 1fr; } .reply-grid .span-2 { grid-column: 1 / -1; } }
.sent-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.sent-box { background: #fff; max-width: 440px; width: 100%; padding: 32px 28px; text-align: center; border-top: 5px solid var(--red); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.sent-box h2 { margin: 6px 0 10px; font-size: 30px; }
.sent-check { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: #e2f4e8; color: #17602f; font-size: 36px; line-height: 64px; font-weight: 700; }
.sent-box .btn { margin-top: 14px; }
