:root {
  --bg: #f8f4ec;
  --panel: #ffffff;
  --panel-2: #fbf8f1;
  --ink: #171717;
  --muted: #6d685f;
  --line: rgba(24, 22, 18, 0.1);
  --accent: #b9965d;
  --accent-dark: #8c6a36;
  --graphite: #24303b;
  --soft: #efe6d7;
  --danger: #b8413b;
  --shadow: 0 28px 80px rgba(33, 29, 20, 0.13);
  --radius: 28px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(185, 150, 93, 0.16), transparent 32rem),
    radial-gradient(circle at 88% 0%, rgba(36, 48, 59, 0.12), transparent 34rem),
    var(--bg);
  min-width: 320px;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(248, 244, 236, 0.82);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 18px; }
.brand { border: 0; background: transparent; display: inline-flex; align-items: center; gap: 12px; padding: 0; color: var(--ink); min-width: 225px; text-align: left; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #151515, #53606c 45%, #b9965d);
  box-shadow: 0 16px 28px rgba(26, 25, 22, 0.18);
  flex: 0 0 auto;
}
.brand-mark.big { width: 62px; height: 62px; border-radius: 20px; font-size: 26px; }
.brand strong, .footer-brand { display: block; font-weight: 900; letter-spacing: -0.04em; }
.brand em { display: block; font-style: normal; color: var(--muted); font-size: 12px; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 11px;
  border-radius: 999px;
  font-weight: 750;
  white-space: nowrap;
  font-size: 14px;
}
.nav button:hover, .nav button.active { color: var(--ink); background: rgba(185, 150, 93, 0.16); }
.menu-toggle { display: none; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 14px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; background: rgba(255,255,255,0.7); }
.burger span { width: 19px; height: 2px; background: var(--ink); border-radius: 2px; }
.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 20px;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 850;
  letter-spacing: -0.01em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { color: #fff; background: linear-gradient(135deg, #161616, #33404b 55%, #b9965d); box-shadow: 0 18px 42px rgba(35, 38, 39, 0.22); }
.btn.ghost { color: var(--ink); background: rgba(255,255,255,.72); border-color: var(--line); }
.btn.soft { color: var(--ink); background: var(--soft); border-color: rgba(185,150,93,.26); }
.btn.small { min-height: 42px; padding: 10px 15px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn.danger, .danger { color: var(--danger); }
.hero { padding: 68px 0 46px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr); gap: 42px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-dark); font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 900; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(42px, 6vw, 76px); line-height: .93; letter-spacing: -0.075em; margin-bottom: 24px; max-width: 840px; }
h2 { font-size: clamp(30px, 4vw, 52px); line-height: .98; letter-spacing: -0.06em; margin-bottom: 16px; }
h3 { font-size: 22px; letter-spacing: -0.035em; margin-bottom: 9px; }
p { color: var(--muted); line-height: 1.65; }
.hero-copy > p { font-size: 19px; max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; max-width: 620px; }
.hero-stats div { border: 1px solid var(--line); background: rgba(255,255,255,.56); border-radius: 22px; padding: 18px; }
.hero-stats strong { display: block; font-size: 24px; letter-spacing: -.04em; }
.hero-stats span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.hero-card { position: relative; border: 1px solid rgba(185,150,93,.26); background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.55)); border-radius: 36px; padding: 18px; box-shadow: var(--shadow); overflow: hidden; }
.hero-card::before { content: ""; position: absolute; inset: -70px -30px auto auto; width: 210px; height: 210px; border-radius: 999px; background: rgba(185,150,93,.18); filter: blur(2px); }
.hero-card-top, .hero-car-meta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero-card-top span { background: #e8f3e7; color: #3f7b42; border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 850; }
.hero-card-top b { font-size: 18px; }
.hero-car-meta { margin-top: 14px; align-items: flex-start; }
.hero-car-meta p { margin: 0; font-size: 14px; }
.car-image-wrap { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 28px; overflow: hidden; margin-top: 18px; background: linear-gradient(135deg, #f3ece0, #fff 55%, #e6d5ba); display: grid; place-items: center; }
.car-image-wrap.placeholder { padding: 8px; }
.car-photo { width: 100%; height: 100%; object-fit: cover; }
.car-svg { width: min(92%, 620px); height: auto; filter: drop-shadow(0 22px 25px rgba(28, 31, 34, 0.18)); }
.section { padding: 64px 0; }
.soft-section { background: rgba(255,255,255,.36); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head p { font-size: 17px; }
.benefit-grid, .steps-grid, .service-grid, .contacts-grid, .review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.benefit-card, .step-card, .service-grid article, .contacts-grid article, .review-card, .empty-public, .order-panel, .form-shell form, .contact-strip, .catalog-card {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 46px rgba(26, 24, 19, 0.06);
}
.benefit-card, .step-card, .service-grid article, .contacts-grid article, .review-card { padding: 26px; }
.benefit-card span { color: var(--accent-dark); font-weight: 900; font-size: 13px; }
.step-card b { font-size: 48px; letter-spacing: -0.07em; color: rgba(185,150,93,.52); }
.split-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; margin-bottom: 24px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.catalog-card { overflow: hidden; min-width: 0; }
.catalog-card .car-image-wrap { border-radius: 0; margin: 0; aspect-ratio: 16/10; }
.car-card-body { padding: 20px; }
.car-title-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.car-title-row h3 { margin-bottom: 3px; }
.car-title-row p { margin: 0; font-size: 14px; }
.pill { flex: 0 0 auto; border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.pill.available { background: #e6f3e6; color: #397a41; }
.muted-pill { background: #f0eee8; color: var(--muted); }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0; }
.specs span { min-width: 0; border: 1px solid var(--line); background: var(--panel-2); border-radius: 14px; padding: 10px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price-row strong { font-size: 18px; letter-spacing: -0.035em; }
.contact-strip { padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 22px; background: linear-gradient(135deg, #fff, #f0e4cf); }
.contact-strip span { color: var(--accent-dark); text-transform: uppercase; font-size: 12px; letter-spacing: .12em; font-weight: 900; }
.contact-strip h2 { margin: 6px 0 0; font-size: clamp(26px, 3.6vw, 44px); }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.page-hero { padding: 62px 0 24px; }
.page-hero p { font-size: 18px; max-width: 760px; }
.order-panel { padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.empty-public { padding: 36px; text-align: center; }
.form-shell { max-width: 760px; }
.form-shell form { padding: 26px; display: grid; gap: 14px; }
.form-shell label, .admin-content label, .admin-login-card label { display: grid; gap: 8px; font-weight: 850; color: var(--ink); }
.form-shell input, .form-shell textarea, .admin-content input, .admin-content textarea, .admin-login-card input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: #fff;
  color: var(--ink);
  outline: none;
}
textarea { min-height: 116px; resize: vertical; }
.contacts-grid article span, .footer span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.contacts-grid article a, .contacts-grid article p { font-size: 20px; font-weight: 850; color: var(--ink); margin: 0; overflow-wrap: anywhere; }
.review-card p { font-size: 17px; }
.review-card strong { display: block; margin-top: 18px; }
.review-card span { color: var(--muted); font-size: 13px; }
.footer { padding: 34px 0; border-top: 1px solid var(--line); background: rgba(255,255,255,.38); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr .8fr; gap: 20px; align-items: start; }
.footer p { margin: 0; }
.footer a { font-weight: 850; overflow-wrap: anywhere; }
.footer-admin { padding: 0; border: 0; background: transparent; color: var(--accent-dark); font-weight: 850; text-align: left; }
/* Admin */
.admin-login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin-login-card { width: min(440px, 100%); background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: 34px; box-shadow: var(--shadow); padding: 30px; }
.admin-login-card h1 { font-size: 38px; margin: 18px 0 8px; }
.admin-login-card form { display: grid; gap: 14px; margin: 24px 0 12px; }
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 290px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 22px; background: #171717; color: #fff; display: flex; flex-direction: column; gap: 16px; }
.admin-logo { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.admin-logo strong { display: block; }
.admin-logo em { display: block; font-size: 12px; color: rgba(255,255,255,.62); font-style: normal; }
.admin-tabs { display: grid; gap: 8px; }
.admin-tabs button { width: 100%; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.05); color: rgba(255,255,255,.72); border-radius: 16px; padding: 13px 14px; text-align: left; font-weight: 850; }
.admin-tabs button.active { color: #171717; background: #f5ead6; }
.admin-sidebar .btn.ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: #fff; }
.admin-sidebar .btn.soft { background: rgba(185,150,93,.18); color: #fff; border-color: rgba(185,150,93,.24); }
.admin-content { min-width: 0; padding: 28px; }
.admin-content h1 { font-size: clamp(32px, 4vw, 54px); margin-bottom: 22px; }
.admin-notice { background: #fff8e8; border: 1px solid rgba(185,150,93,.28); border-radius: 20px; padding: 14px 16px; margin-bottom: 22px; color: #6d552b; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.admin-grid.small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: 1 / -1; }
.admin-content label span, .image-admin > span { font-size: 13px; color: var(--muted); }
.admin-section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.admin-section-head h1, .admin-section-head h2 { margin: 0; }
.admin-section-head.sub { margin-top: 26px; }
.admin-list { display: grid; gap: 16px; }
.admin-list.compact { gap: 12px; }
.admin-item { background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: 26px; padding: 18px; }
.admin-item-head { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 16px; }
.danger-link { border: 0; background: transparent; color: var(--danger); font-weight: 900; padding: 8px; }
.check-field { align-self: end; min-height: 54px; display: flex !important; align-items: center; gap: 10px !important; border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; background: #fff; }
.check-field input { width: 18px !important; height: 18px; }
.image-admin { display: grid; gap: 8px; }
.image-admin-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 54px; border: 1px solid var(--line); border-radius: 18px; padding: 10px; background: #fff; }
.image-admin-row img, .mini-placeholder { width: 76px; height: 52px; border-radius: 12px; object-fit: cover; background: #eee8db; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.empty-admin { padding: 24px; border: 1px dashed rgba(185,150,93,.42); border-radius: 22px; background: rgba(255,255,255,.55); margin-bottom: 16px; }
.admin-muted { max-width: 720px; }
.data-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 1040px) {
  .header-cta { display: none; }
  .brand { min-width: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 620px; }
  .catalog-grid, .benefit-grid, .steps-grid, .service-grid, .contacts-grid, .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-layout { grid-template-columns: 240px minmax(0,1fr); }
  .admin-grid.small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .container { width: min(100% - 28px, 1160px); }
  .header-inner { min-height: 68px; }
  .burger { display: inline-flex; margin-left: auto; }
  .nav { display: none; position: absolute; left: 14px; right: 14px; top: 72px; padding: 12px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .nav button { text-align: left; padding: 14px; }
  .menu-toggle:checked ~ .nav { display: flex; }
  .hero { padding-top: 42px; }
  .hero-stats { grid-template-columns: 1fr; }
  .split-head, .contact-strip, .order-panel { align-items: stretch; flex-direction: column; }
  .contact-actions { justify-content: stretch; }
  .contact-actions .btn, .hero-actions .btn { width: 100%; }
  .admin-layout { display: block; }
  .admin-sidebar { position: relative; height: auto; border-radius: 0 0 26px 26px; }
  .admin-tabs { display: flex; overflow-x: auto; padding-bottom: 4px; }
  .admin-tabs button { white-space: nowrap; width: auto; flex: 0 0 auto; }
  .admin-content { padding: 18px 14px 36px; }
}
@media (max-width: 620px) {
  h1 { font-size: clamp(38px, 12vw, 52px); }
  h2 { font-size: 32px; }
  .brand em { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .hero-card { border-radius: 28px; padding: 12px; }
  .hero-card-top, .hero-car-meta, .price-row, .car-title-row { flex-direction: column; align-items: flex-start; }
  .catalog-grid, .benefit-grid, .steps-grid, .service-grid, .contacts-grid, .review-grid { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .benefit-card, .step-card, .service-grid article, .contacts-grid article, .review-card, .empty-public, .order-panel, .form-shell form, .contact-strip { border-radius: 22px; padding: 20px; }
  .section { padding: 42px 0; }
  .page-hero { padding: 42px 0 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-grid, .admin-grid.small { grid-template-columns: 1fr; }
  .admin-section-head { flex-direction: column; align-items: stretch; }
  .data-actions .btn { width: 100%; }
}
@media (max-width: 380px) {
  .container { width: min(100% - 20px, 1160px); }
  .btn { width: 100%; }
  .admin-login-card { padding: 22px; border-radius: 26px; }
}

.admin-savebar{
  position: sticky;
  top: 0;
  z-index: 20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:-2px 0 22px;
  padding:14px 16px;
  border:1px solid rgba(24,31,42,.10);
  border-radius:22px;
  background:rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  box-shadow:0 18px 42px rgba(24,31,42,.08);
}
.admin-savebar div{display:flex; flex-direction:column; gap:3px; min-width:0;}
.admin-savebar strong{font-size:15px; color:#161b24;}
.admin-savebar span{font-size:13px; color:#6e7480; overflow:hidden; text-overflow:ellipsis;}
@media (max-width: 720px){
  .admin-savebar{position:static; flex-direction:column; align-items:stretch; border-radius:18px;}
  .admin-savebar .btn{width:100%;}
}


.site-loader { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 0%, rgba(194,153,89,.18), transparent 38%), #f8f4ec; }
.site-loader-card { width: min(520px, 100%); padding: 42px 34px; border-radius: 34px; background: rgba(255,255,255,.78); border: 1px solid rgba(31,31,31,.08); box-shadow: 0 30px 90px rgba(31,31,31,.12); text-align: center; backdrop-filter: blur(16px); }
.loader-mark { margin: 0 auto 18px; }
.site-loader h1 { margin: 0; font-size: clamp(30px, 6vw, 54px); letter-spacing: -0.05em; }
.site-loader p { margin: 12px auto 24px; max-width: 340px; color: rgba(31,31,31,.62); font-weight: 700; line-height: 1.6; }
.loader-line { height: 9px; border-radius: 999px; overflow: hidden; background: rgba(31,31,31,.08); }
.loader-line span { display: block; width: 42%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #c29959, #1f1f1f); animation: loaderMove 1.15s ease-in-out infinite; }
@keyframes loaderMove { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
