:root{color-scheme:dark;--paper:#141516;--ink:#f6f5f0;--muted:#bfc0bd;--line:#393a39;--accent:#ffb02e}
body{background:var(--paper);color:var(--ink);font-family:Montserrat,Arial,sans-serif}
.wrap{width:min(1380px,89%)}
header{background:#131415}.bar{min-height:74px}.phone{font-variant-numeric:tabular-nums;font-size:16px}
.hero{background:#101111;position:relative;overflow:hidden;isolation:isolate}
.hero-car{position:absolute;right:0;top:0;width:100%;height:100%;object-fit:cover;object-position:center 57%;z-index:-2}
.hero:before{background:linear-gradient(90deg,#101111 5%,#101111 17%,rgb(16 17 17/.90) 29%,rgb(16 17 17/.40) 42%,transparent 60%);z-index:-1}
.inner{padding-block:clamp(54px,5.5vw,90px)}
.kicker{font:650 11px/1.4 Montserrat,Arial,sans-serif;letter-spacing:.14em;color:#efece6}.kicker:before{width:28px;height:12px;transform:skewX(-20deg);background:repeating-linear-gradient(90deg,var(--accent) 0 4px,transparent 4px 8px)}
h1,h2{text-transform:uppercase;font-weight:860;letter-spacing:-.067em}h1{font-size:clamp(43px,4.9vw,84px);line-height:.98;margin:26px 0 23px}h1 em{display:inline-block;color:var(--accent);font-style:normal;transform:skewX(-8deg);transform-origin:bottom left}
.hero p{font-size:16px;line-height:1.55}.actions{margin-top:27px}.button,.contact-request{clip-path:polygon(0 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%);font-size:15px}.actions{align-items:stretch;flex-wrap:wrap;gap:12px}
.actions a[href^="tel:"]{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 15px;background:#302d25;border:1px solid #70634a;color:#fff3d9;font-size:16px;font-weight:650;text-decoration:none}
.actions a[href^="tel:"] .icon{width:22px;height:22px;color:var(--accent)}
.actions a[href^="tel:"]:hover,.actions a[href^="tel:"]:focus-visible{background:#40392b;border-color:var(--accent)}.strip{background:#232424;border-block:1px solid #424442}.location{min-height:58px}
.section,.contacts{padding-block:clamp(52px,6vw,92px)}
h2{font-size:clamp(35px,4vw,66px);line-height:.98}
.catalog{display:grid;grid-template-columns:1.16fr .84fr;gap:5%}
.service-heading{display:flex;flex-direction:column;justify-content:flex-start;gap:clamp(18px,2.4vw,38px)}
.service-heading h2{margin:0}
#request{border:1px solid #a58a55;box-shadow:0 16px 54px rgb(0 0 0/.5)}
.inspection{margin:0}
.inspection-terminal{display:grid;margin:12px 0 0;padding-left:14px;border-left:2px solid #aa852e;color:#ffd05a;font:500 clamp(14px,1.1vw,17px)/1.5 ui-monospace,Menlo,Consolas,"Liberation Mono",monospace;text-shadow:0 0 6px rgb(255 194 52/.42)}
.inspection-terminal span{grid-area:1/1}
.terminal-space{visibility:hidden}
.terminal-space::after,.terminal-output::after{content:"▌"}
.terminal-output::after{visibility:hidden}
.inspection-terminal.is-typing .terminal-output::after{visibility:visible}
.inspection-scene{width:100%;height:auto;display:block;overflow:hidden}
.inspection-pin rect{fill:#ffbd50}
.inspection-pin path{fill:none;stroke:#211b13;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.inspection-leader{fill:none;stroke:#ffbd50;stroke-width:2;stroke-linejoin:round}
.inspection-label{fill:#ffcf7d;stroke:#141516;stroke-width:5;stroke-linejoin:round;paint-order:stroke;font:600 20px/1 sans-serif}
.scanner{visibility:hidden;pointer-events:none}
@media(prefers-reduced-motion:no-preference){
  .inspection.scanning .scanner{visibility:visible}
  .inspection.scanning .scan-motion{animation:inspection-pass 3.8s cubic-bezier(.24,.52,.46,.93) both}
  .inspection.scanning .inspection-pin{animation:inspection-blink .48s ease-out both}
  .inspection.scanning .inspection-leader{stroke-dasharray:1;animation:inspection-trace .42s .32s ease-out both}
  .inspection.scanning .inspection-label{animation:inspection-reveal .25s .68s ease-out both}
  @keyframes inspection-blink{0%,55%{opacity:.2}30%,100%{opacity:1}}
  @keyframes inspection-trace{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
  @keyframes inspection-reveal{from{opacity:0}to{opacity:1}}
  @keyframes inspection-pass{from{transform:translateX(0)}to{transform:translateX(790px)}}
}
.services{align-self:start}summary{font-size:clamp(17px,1.4vw,24px);padding:13px 1px;letter-spacing:-.035em}summary:after{color:var(--accent)}details p{font-size:14px;max-width:65ch}
.photos,.gallery,.contacts{position:relative;isolation:isolate}.photos:before,.gallery:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url(drawing.jpg) right top/55% auto no-repeat;opacity:.12}
.photo-grid{gap:10px}
@media(min-width:768px){.photo-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.photo:nth-child(4n + 1 of .photo:not([hidden])),.photo:last-child:nth-child(4n + 3 of .photo:not([hidden])){grid-column:span 2}.photo img{height:clamp(145px,15vw,235px)}}
.gallery{gap:7%;grid-template-columns:1.1fr 1fr}.gallery img{aspect-ratio:1.9}.gallery:before{background-position:right bottom;opacity:.10}
.contacts{background:#1a1b1c}.contact-request{padding:12px 21px}.contact-grid{gap:6%}.close:focus-visible,.button:focus-visible,.contact-request:focus-visible{outline-offset:-4px}
@media(max-width:767px){.bar{min-height:67px}.phone{font-size:14px}.hero-car{width:115%;height:52%;top:auto;bottom:12px;mask-image:linear-gradient(to bottom,#000 94%,transparent);object-position:center 66%}.hero:before{background:linear-gradient(180deg,#101111 42%,rgb(16 17 17/.92) 48%,transparent 72%)}.inner{padding:38px 0 clamp(195px,51vw,320px)}h1{font-size:clamp(32px,10vw,68px);margin:19px 0}.hero p{font-size:14px}.actions{margin-top:18px}.kicker{font-size:9px}.catalog,.gallery,.contact-grid{grid-template-columns:1fr;gap:24px}.service-heading{gap:16px}.service-heading h2{margin:0}.photo-grid{grid-template-columns:1fr 1fr}.photo img{height:auto}.photos:before{background-size:70% auto}.gallery img{order:2}.section,.contacts{padding-block:44px}.strip .location{font-size:13px}.contacts h2{margin-bottom:24px}}
@media(min-width:768px){.hero{padding-bottom:clamp(34px,4vw,64px)}.hero-car{object-position:center calc(50% - 12px)}.hero:before{background:linear-gradient(90deg,#101111 12%,rgb(16 17 17/.97) 26%,rgb(16 17 17/.77) 41%,transparent 65%)}}

@media(max-width:767px){.photo:last-child:nth-child(odd of .photo:not([hidden])){grid-column:1/-1}}

/* Состояния отправки встроенной формы Битрикс24. */
.b24-form-state-container .b24-form-state.b24-form-success,
.b24-form-wrapper .b24-form-state-container .b24-form-loader,
.b24-form-wrapper.b24-from-state-on .b24-form-state-container {
  background-color: #141516;
}
.b24-form-success .b24-form-state-icon.b24-form-success-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border: 2px solid #ffb02e;
  border-radius: 50%;
  background: transparent;
  box-sizing: border-box;
}
.b24-form-success-icon::after {
  content: "";
  display: block;
  width: 30px;
  height: 16px;
  margin: 21px auto 0;
  border: solid #ffb02e;
  border-width: 0 0 3px 3px;
  transform: rotate(-45deg);
}
.b24-form-state.b24-form-success .b24-form-state-text {
  color: #f6f5f0;
  opacity: 1;
}

@font-face {
  font-family: Xenogears;
  src: url("../assets/fonts/xenogears.ttf") format("truetype");
  font-display: swap;
}
header { position: sticky; top: 0; z-index: 20; }
html { scroll-padding-top: 82px; }
.brand strong { font-family: Xenogears, sans-serif; letter-spacing: 0; transform: none; }
.brand strong span { font-size: inherit; letter-spacing: inherit; }
.hero p { max-width: 46ch; }
.ratings, .socials { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 20px; }
.ratings a, .contact-grid .socials a { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 14px; }
.ratings b, .contact-grid .alignment-booking { color: var(--accent); }
.contact-grid .alignment-booking { font-size: 16px; text-decoration: underline; text-underline-offset: 4px; }
.services details p, .inspection-terminal, #workshop p { white-space: pre-line; }
.whole-car > image { filter: url(#amber-lines); }
#workshop img { height: auto; aspect-ratio: auto; align-self: center; }
@media (min-width: 768px) {
  .hero:before { background: linear-gradient(90deg, #101111 0%, rgb(16 17 17/.96) 32%, rgb(16 17 17/.76) 52%, transparent 76%); }
}
@media (max-width: 767px) {
  .hero-car { width: 100%; height: 36%; bottom: 0; }
  .hero:before { background: linear-gradient(to bottom, #101111 62%, transparent 84%); }
}
