/* Шаблон СТО в стиле CarRepair pro: главная + страницы услуг. Цвет акцента — accent в config.js. */
:root {
  --accent: #ff6a1a;
  --accent-ink: #0b0c0d;
  --bg: #0b0c0d;
  --surface: #141618;
  --surface-2: #1c1f22;
  --text: #f2f2ee;
  --muted: #9a9fa5;
  --line: rgba(255, 255, 255, .1);
  --radius: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Manrope", system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: "Oswald", "Arial Narrow", sans-serif; text-transform: uppercase; line-height: 1.02; letter-spacing: .005em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
svg.i { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Шапка */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 30; transition: background .2s; }
header.solid { background: rgba(11, 12, 13, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { font-family: "Oswald"; font-weight: 700; font-size: 24px; text-transform: uppercase; letter-spacing: .02em; }
.logo b { color: var(--accent); font-weight: 700; }
.logo-img { display: block; height: 64px; width: auto; filter: brightness(1.35) contrast(1.15); mask-mode: luminance; mask-size: 100% 100%; -webkit-mask-size: 100% 100%; }
nav { display: flex; gap: 28px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
nav a { opacity: .75; }
nav a:hover { opacity: 1; color: var(--accent); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 26px; border-radius: 999px; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; border: 0; cursor: pointer; font-family: inherit; transition: transform .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent-grad, var(--accent)); color: var(--accent-ink); }
.btn-white { background: #fff; color: #111; }
.btn-ghost { background: rgba(255, 255, 255, .08); color: var(--text); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-dark { background: var(--accent-ink); color: var(--text); }
.btn-sm { padding: 11px 18px; font-size: 13px; }
.btn .arr { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-ink); color: var(--accent); display: grid; place-items: center; margin-right: -12px; }
.btn .arr svg { width: 15px; height: 15px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Первый экран */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 140px 0 56px; overflow: hidden; }
.hero.short { min-height: 0; padding: 150px 0 64px; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background-size: cover; background-position: center; transform: scale(1.03); animation: zoomout 2.4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes zoomout { from { transform: scale(1.15); } to { transform: scale(1.03); } }
.hero::after { content: ""; position: absolute; inset: 0; background:
    linear-gradient(180deg, rgba(11, 12, 13, .55) 0%, rgba(11, 12, 13, .25) 35%, rgba(11, 12, 13, .85) 75%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11, 12, 13, .75) 0%, rgba(11, 12, 13, 0) 70%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.pill { display: inline-flex; align-items: center; gap: 10px; background: rgba(11, 12, 13, .55); border: 1px solid var(--line); backdrop-filter: blur(8px); padding: 8px 16px 8px 8px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.pill .dot { color: var(--accent); padding: 3px 0 3px 8px; font-size: 13px; }
.hero h1 { font-size: clamp(48px, 9vw, 124px); font-weight: 700; margin: 24px 0 22px; max-width: 980px; }
.hero h1 em { font-style: normal; color: rgba(242, 242, 238, .55); }
.hero.short h1 { font-size: clamp(44px, 7vw, 96px); }
.hero .lead { font-size: clamp(17px, 1.8vw, 20px); color: rgba(242, 242, 238, .82); max-width: 580px; }
.hero .btns { margin-top: 34px; }
.crumbs { font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.crumbs a:hover { color: var(--accent); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 56px; }
.stat { background: rgba(11, 12, 13, .72); backdrop-filter: blur(8px); padding: 22px 24px; }
.stat .num { font-family: "Oswald"; font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; line-height: 1; }
.stat .lbl { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* Секции */
section { padding: 96px 0; }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.head h2 { font-size: clamp(38px, 5.6vw, 72px); font-weight: 700; margin-top: 12px; max-width: 760px; }
.head p { color: var(--muted); max-width: 380px; }

/* Карточки услуг — ссылки на страницы */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.svc { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column; gap: 10px; min-height: 250px; grid-column: span 2; transition: border-color .2s; }
.svc:hover { border-color: var(--accent); }
.svc.w3 { grid-column: span 3; }
.svc.w6 { grid-column: span 6; min-height: 0; }
.svc.photo { grid-column: span 3; min-height: 340px; justify-content: flex-end; border: 0; }
.svc.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc.photo:hover img { transform: scale(1.04); }
.svc.photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 12, 13, 0) 30%, rgba(11, 12, 13, .92) 100%); z-index: 1; }
.svc > *:not(img) { position: relative; z-index: 2; }
.svc .num { font-family: "Oswald"; color: var(--muted); font-size: 15px; }
.svc .ic { width: 50px; height: 50px; border-radius: 50%; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; margin-bottom: auto; }
.svc.w6 .ic { margin-bottom: 8px; }
.svc h3 { font-size: 26px; font-weight: 600; }
.svc p { color: rgba(242, 242, 238, .7); font-size: 15px; max-width: 420px; }
.svc .more { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-weight: 800; font-size: 14px; }
.svc .more .price { color: var(--accent); }
.svc .more svg { width: 20px; height: 20px; color: var(--accent); transition: transform .2s; }
.svc:hover .more svg { transform: translateX(4px); }
.price-note { margin-top: 22px; color: var(--muted); font-size: 15px; }

/* Прайс: категории раскрываются */
.pricelist { display: grid; gap: 12px; }
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cat[open] { border-color: rgba(255, 255, 255, .22); }
.cat summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 24px; }
.cat summary::-webkit-details-marker { display: none; }
.cat summary .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.cat summary h3 { font-size: 22px; font-weight: 600; flex: 1; }
.cat summary .cnt { color: var(--muted); font-size: 14px; white-space: nowrap; }
.cat summary .plus { width: 28px; height: 28px; position: relative; flex-shrink: 0; }
.cat summary .plus::before, .cat summary .plus::after { content: ""; position: absolute; left: 6px; right: 6px; top: 13px; height: 2px; background: var(--accent); transition: transform .2s; }
.cat summary .plus::after { transform: rotate(90deg); }
.cat[open] summary .plus::after { transform: rotate(0); }
.cat-body { padding: 0 24px 22px; columns: 2; column-gap: 40px; }
.cat-body .line { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; break-inside: avoid; }
.cat-body .line b { color: var(--accent); white-space: nowrap; }
.cat-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 800; font-size: 14px; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; column-span: all; }
.cat-link svg { width: 18px; height: 18px; }

/* Почему мы */
.perks-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 16px; }
.perks-photo { border-radius: var(--radius); overflow: hidden; min-height: 460px; position: relative; }
.perks-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.perks-photo .tag { position: absolute; left: 20px; bottom: 20px; background: rgba(11, 12, 13, .7); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.perks-photo .tag b { color: #fff; }
.perks-photo .tag b i { color: var(--accent); font-style: normal; }
.perks-photo .tag b { font-family: "Oswald"; font-size: 34px; line-height: 1; display: block; }
.perks-photo .tag span { font-weight: 700; font-size: 14px; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.perk { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.perk svg { color: var(--accent); width: 30px; height: 30px; margin-bottom: 8px; }
.perk h3 { font-size: 22px; font-weight: 600; }
.perk p { color: var(--muted); font-size: 15px; }

/* Отзывы */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.review .q { font-family: "Oswald"; font-size: 64px; line-height: .6; color: var(--accent); height: 28px; }
.review .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 14px; gap: 12px; }
.stars { color: var(--accent); letter-spacing: 2px; }
.gscore { display: flex; align-items: center; gap: 14px; }
.gscore .big { font-family: "Oswald"; font-size: 64px; font-weight: 600; line-height: 1; }
.gscore .stars { font-size: 20px; }
.gscore a { color: var(--muted); font-size: 14px; display: block; }

/* Запись и контакты */
/* Фото на фоне (photos.book или hero), затемнение поверх */
.book { position: relative; overflow: hidden; background-size: cover; background-position: center; border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.book::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 12, 13, .92) 0%, rgba(11, 12, 13, .72) 100%); }
.book > * { position: relative; }
.book h2 { font-size: clamp(40px, 5.4vw, 72px); font-weight: 700; }
.book .sub { font-size: 17px; margin: 14px 0 32px; max-width: 420px; font-weight: 500; }
.book .contacts { display: grid; gap: 18px; align-content: start; }
.book .c { display: flex; gap: 14px; align-items: flex-start; }
.book .c .ci { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.book .c small { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; opacity: .65; }
.book .c a, .book .c span { font-weight: 800; font-size: 18px; }
.book .c em { display: block; font-style: normal; font-weight: 600; font-size: 14px; opacity: .75; }
.book table { border-collapse: collapse; font-weight: 800; font-size: 16px; }
.book td { padding: 1px 0; }
.book td:first-child { padding-right: 24px; }
.map { border-radius: var(--radius); overflow: hidden; height: 360px; border: 1px solid var(--line); margin-top: 16px; filter: grayscale(1) invert(.92) contrast(.9); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Страница услуги */
.items { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.item { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; font-weight: 700; }
.item svg { color: var(--accent); width: 22px; height: 22px; }
.item b { margin-left: auto; color: var(--accent); white-space: nowrap; }
.svc-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.aside { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 24px; padding: 32px; position: sticky; top: 96px; display: grid; gap: 14px; }
.aside h3 { font-size: 34px; font-weight: 700; }
.aside p { font-weight: 500; }
.aside .row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.aside .row b { font-family: "Oswald"; font-size: 20px; font-weight: 600; white-space: nowrap; }
.aside .btn { width: 100%; }
.other { display: flex; flex-wrap: wrap; gap: 10px; }
.other a { padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; transition: border-color .2s, color .2s; }
.other a:hover { border-color: var(--accent); color: var(--accent); }

footer { padding: 40px 0; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer .logo { color: var(--text); }
.mobile-bar { display: none; }

/* Появление блоков при прокрутке */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
}

@media (max-width: 980px) {
  nav { display: none; }
  .services { grid-template-columns: 1fr 1fr; }
  .svc, .svc.photo, .svc.w3 { grid-column: span 1; }
  .svc.w6 { grid-column: span 2; }
  .perks-grid, .book, .svc-layout { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .book { padding: 36px; }
  .aside { position: static; }
  section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  header .btn-sm { display: none; }
  .hero { padding: 110px 0 40px; }
  .hero.short { padding: 110px 0 40px; }
  .services, .perks, .items { grid-template-columns: 1fr; }
  .svc.w6 { grid-column: span 1; }
  .svc.photo { min-height: 280px; }
  .perks-photo { min-height: 320px; }
  .stat { padding: 18px; }
  .book { padding: 28px 20px; border-radius: 22px; }
  .cat-body { columns: 1; padding: 0 18px 18px; }
  .cat summary { padding: 14px 18px; gap: 12px; }
  .cat summary h3 { font-size: 19px; }
  .cat summary .cnt { display: none; }
  .mobile-bar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; gap: 8px; }
  .mobile-bar .btn { flex: 1; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); padding: 14px 8px; font-size: 13px; gap: 6px; }
  .mobile-bar .btn svg { width: 18px; height: 18px; }
  .mobile-bar .btn-ghost { background: rgba(28, 31, 34, .95); }
  footer { padding-bottom: 100px; }
}
