:root {
  --red: #ee101e;
  --red-dark: #c90b16;
  --ink: #151a20;
  --muted: #5e6670;
  --line: #e4e7ea;
  --soft: #f6f8f9;
  --white: #ffffff;
  --container: 1180px;
  --shadow: 0 16px 44px rgba(19, 28, 38, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "Onest", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 12px 16px; color: white; background: var(--ink); }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 30; height: 78px; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(18,24,30,.08); backdrop-filter: blur(12px); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { flex: 0 0 auto; width: 252px; height: 56px; overflow: hidden; position: relative; }
.brand-sprite { position: absolute; inset: 0; display: block; background-image: url("./assets/automako-layout.png"); background-repeat: no-repeat; background-size: 935px 1683px; background-position: -36px -3px; }
.main-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; font-size: 13px; font-weight: 700; }
.main-nav a { position: relative; padding: 28px 0; }
.main-nav a::after { content: ""; position: absolute; inset: auto 0 20px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .2s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 10px; }
.menu-toggle span { display: block; width: 25px; height: 2px; margin: 5px 0; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.button { min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--red); box-shadow: 0 10px 24px rgba(238,16,30,.18); }
.button-primary:hover { background: var(--red-dark); box-shadow: 0 13px 28px rgba(238,16,30,.25); }
.button-outline { color: var(--ink); border-color: #b9bec5; background: white; }
.button-outline:hover { border-color: var(--red); }
.button-large { min-height: 58px; padding-inline: 27px; }
.header-cta { min-height: 46px; padding-inline: 20px; }
.mini-calendar { width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 2px; position: relative; }
.mini-calendar::before { content: ""; position: absolute; left: -2px; right: -2px; top: 3px; border-top: 2px solid currentColor; }
.hero { position: relative; overflow: hidden; min-height: 520px; background: linear-gradient(90deg, #fff 0%, #fff 43%, #f2f4f5 43%, #f2f4f5 100%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 33%, rgba(255,255,255,.35) 51%, transparent 67%); }
.hero-grid { min-height: 520px; display: grid; grid-template-columns: 51% 49%; }
.hero-copy { z-index: 2; align-self: center; padding: 62px 0 58px; }
.eyebrow { margin: 0 0 14px; color: var(--red); font-size: 11px; line-height: 1.4; letter-spacing: .17em; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 650px; margin-bottom: 22px; font-size: clamp(42px, 4.6vw, 62px); line-height: 1.09; letter-spacing: -.038em; font-weight: 700; }
h1 span, h2 span { color: var(--red); }
.hero-lead { max-width: 650px; margin-bottom: 28px; color: #39414a; font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 15px; }
.hero-actions span { font-size: 18px; }
.hero-contacts { display: flex; flex-wrap: wrap; gap: 13px 28px; margin-top: 27px; font-size: 13px; font-weight: 700; }
.hero-contacts a { display: flex; align-items: center; gap: 9px; }
.hero-contacts span { color: var(--red); font-size: 18px; }
.hero-photo { z-index: 1; margin-right: calc((100vw - min(100vw - 40px, var(--container))) / -2); background-image: url("./assets/automako-layout.png"); background-repeat: no-repeat; background-size: 1400px auto; background-position: -680px -89px; }
.section { padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-heading { margin-bottom: 42px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.section-heading.simple { display: block; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 3.7vw, 48px); line-height: 1.14; letter-spacing: -.034em; font-weight: 700; }
.section-link { color: var(--red); font-size: 14px; font-weight: 800; border-bottom: 1px solid rgba(238,16,30,.35); padding-bottom: 5px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { position: relative; overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 22px 56px rgba(19,28,38,.13); }
.service-photo { height: 205px; background-image: url("./assets/automako-layout.png"); background-repeat: no-repeat; background-size: 340% auto; }
.service-photo-suspension { background-position: 6% 30%; }
.service-photo-engine { background-position: 50% 30%; }
.service-photo-transmission { background-position: 94% 30%; }
.service-icon { display: none; }
.service-content { position: relative; min-height: 190px; padding: 25px 64px 28px 24px; }
.service-content h3 { margin-bottom: 9px; font-size: 22px; letter-spacing: -.025em; }
.service-content p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.card-link { position: absolute; right: 20px; bottom: 25px; width: 36px; height: 36px; border: 0; color: var(--red); background: transparent; font-size: 26px; cursor: pointer; }
.asset-icon { display: block; flex: 0 0 auto; width: 70px; height: 70px; background-image: url("./assets/service-icons.png"); background-repeat: no-repeat; background-size: 362px 272px; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; pointer-events: none; }
.icon-suspension { background-position: -10px -10px; }
.icon-engine { background-position: -100px -10px; }
.icon-transmission { background-position: -190px -10px; }
.icon-car-diagnostic, .icon-diagnostic { background-position: -282px -10px; }
.icon-tools { background-position: -10px -104px; }
.icon-brakes { background-position: -100px -104px; }
.icon-phone { background-position: -190px -104px; }
.icon-location { background-position: -282px -104px; }
.icon-telegram { background-position: -10px -193px; }
.icon-calendar { background-position: -100px -193px; }
.icon-car { background-position: -190px -193px; }
.icon-garage { background-position: -282px -193px; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.benefit-card { display: grid; grid-template-columns: 76px 1fr; gap: 17px; align-items: start; }
.benefit-card .asset-icon { width: 70px; height: 70px; border-radius: 50%; background-color: white; box-shadow: 0 10px 30px rgba(22,30,39,.07); }
.benefit-card h3 { margin-bottom: 8px; font-size: 16px; line-height: 1.35; }
.benefit-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.brands { padding-bottom: 86px; }
.brand-grid { display: grid; grid-template-columns: repeat(10, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.car-brand { min-width: 0; min-height: 136px; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: white; border-right: 1px solid var(--line); }
.car-brand:last-child { border-right: 0; }
.car-brand strong { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.brand-logo { display: block; flex: 0 0 auto; width: 90px; height: 80px; background-image: url("./assets/japanese-brands.png"); background-repeat: no-repeat; background-size: 464px 348px; }
.brand-toyota { width: 90px; background-position: -7px -82px; }
.brand-honda { width: 87px; background-position: -100px -82px; }
.brand-nissan { width: 89px; background-position: -187px -82px; }
.brand-mazda { width: 86px; background-position: -277px -82px; }
.brand-subaru { width: 96px; background-position: -363px -82px; }
.brand-mitsubishi { width: 80px; background-position: -10px -188px; }
.brand-lexus { width: 85px; background-position: -99px -188px; }
.brand-infiniti { width: 88px; background-position: -187px -188px; }
.brand-suzuki { width: 68px; background-position: -291px -188px; }
.brand-isuzu { width: 90px; background-position: -369px -188px; }
.process { background: linear-gradient(180deg, #f8fafb, #fff); border-top: 1px solid #edf0f2; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; list-style: none; margin: 0; padding: 0; }
.process-card { position: relative; min-height: 255px; padding: 28px 48px 25px 25px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 12px 34px rgba(19,28,38,.05); }
.process-card:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -18px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #8b9299; background: white; border: 1px solid var(--line); }
.process-card .step-number { position: absolute; top: 16px; left: 16px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--red); font-size: 13px; font-weight: 800; }
.process-card .asset-icon { margin: -5px 0 10px 43px; transform: scale(.88); transform-origin: left center; }
.process-card h3 { margin-bottom: 8px; font-size: 17px; }
.process-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.process-card > button, .process-card > a { position: absolute; right: 17px; bottom: 17px; width: 34px; height: 34px; border: 0; color: var(--red); background: transparent; font-size: 22px; cursor: pointer; }
.contact-section { padding: 86px 0; background: white; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-copy h2 { margin-bottom: 18px; font-size: clamp(36px, 3.7vw, 48px); line-height: 1.14; letter-spacing: -.034em; font-weight: 700; }
.contact-copy > p:not(.eyebrow) { max-width: 560px; color: var(--muted); line-height: 1.7; }
.contact-lines { display: flex; flex-wrap: wrap; gap: 18px 34px; margin: 29px 0; }
.contact-lines a { display: flex; align-items: center; gap: 11px; font-weight: 700; }
.contact-lines strong { color: var(--red); font-size: 22px; }
.contact-lines span { display: grid; gap: 3px; }
.contact-lines small { color: #8a9198; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.garage-photo { min-height: 315px; border-radius: 12px; background-image: url("./assets/automako-layout.png"); background-repeat: no-repeat; background-size: 1340px 2412px; background-position: -716px -1924px; box-shadow: var(--shadow); }
.site-footer { color: rgba(255,255,255,.78); background: #171c22; }
.footer-main { min-height: 108px; display: flex; align-items: center; gap: 27px; font-size: 12px; }
.footer-brand { width: 240px; filter: invert(1) grayscale(1) brightness(2.8); opacity: .95; }
.footer-main nav { display: flex; gap: 22px; margin-left: auto; }
.footer-bottom { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.42); font-size: 10px; }
.mobile-actions { display: none; }
.site-dialog { width: min(720px, calc(100vw - 28px)); max-height: calc(100vh - 28px); overflow: auto; padding: 36px; border: 0; border-radius: 14px; box-shadow: 0 28px 90px rgba(6,10,15,.34); }
.site-dialog::backdrop { background: rgba(11,15,20,.7); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: 15px; right: 17px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f1f3f4; font-size: 25px; cursor: pointer; }
.dialog-heading { margin-bottom: 27px; }
.dialog-heading h2, .telegram-dialog h2 { margin-bottom: 12px; font-size: 32px; letter-spacing: -.035em; }
.dialog-heading p:last-child, .telegram-dialog p { color: var(--muted); line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 8px; margin-bottom: 17px; font-size: 12px; font-weight: 800; }
input, select, textarea { width: 100%; border: 1px solid #d5d9dd; border-radius: 7px; padding: 13px 14px; color: var(--ink); background: white; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(238,16,30,.09); }
textarea { resize: vertical; }
.consent { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-weight: 500; line-height: 1.45; }
.consent input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--red); }
.submit-button { width: 100%; }
.form-status { min-height: 20px; margin: 13px 0 0; color: var(--muted); font-size: 13px; }
.form-status.error { color: #b10d18; }
.form-status.success { color: #1a7a3b; }
.telegram-dialog { max-width: 520px; text-align: center; }
.telegram-art { margin: 0 auto 10px; transform: scale(1.35); }
.telegram-dialog .button { margin-top: 6px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (max-width: 1080px) {
  .main-nav { gap: 19px; }
  .main-nav a:nth-child(2) { display: none; }
  .header-cta { display: none; }
  .hero-grid { grid-template-columns: 56% 44%; }
  .hero-photo { background-position: -700px -89px; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(5, 1fr); }
  .car-brand:nth-child(5) { border-right: 0; }
  .car-brand:nth-child(-n+5) { border-bottom: 1px solid var(--line); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-card:nth-child(2)::after { display: none; }
  .footer-main { flex-wrap: wrap; padding-block: 22px; }
  .footer-main nav { width: 100%; margin-left: 0; }
}
@media (max-width: 760px) {
  body { padding-bottom: 62px; }
  .container { width: min(100% - 28px, var(--container)); }
  .site-header { height: 70px; }
  .header-inner { gap: 12px; }
  .brand { width: 252px; height: 53px; transform: scale(.82); transform-origin: left center; }
  .menu-toggle { display: block; margin-left: auto; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { display: none; position: absolute; inset: 70px 14px auto; margin: 0; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav.open { display: flex; }
  .main-nav a, .main-nav a:nth-child(2) { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a::after { display: none; }
  .hero { min-height: 0; background: white; }
  .hero::after { display: none; }
  .hero-grid { width: 100%; grid-template-columns: 1fr; }
  .hero-copy { padding: 42px 14px 30px; order: 1; }
  h1 { font-size: 45px; }
  .hero-lead { font-size: 15px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .hero-contacts { display: grid; gap: 11px; }
  .hero-photo { order: 2; min-height: 290px; margin-right: 0; background-size: 1250px auto; background-position: -600px -79px; }
  .section { padding: 72px 0; }
  .section-heading { display: block; margin-bottom: 32px; }
  .section-heading h2 { font-size: 38px; }
  .section-link { display: inline-block; margin-top: 18px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-photo { height: 200px; }
  .service-content { min-height: 170px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-card { grid-template-columns: 70px 1fr; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .car-brand, .car-brand:nth-child(5) { min-height: 133px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .car-brand:nth-child(even) { border-right: 0; }
  .car-brand:nth-last-child(-n+2) { border-bottom: 0; }
  .process-grid { grid-template-columns: 1fr; }
  .process-card { min-height: 220px; }
  .process-card::after { display: none !important; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-lines { display: grid; }
  .contact-actions { display: grid; }
  .garage-photo { min-height: 240px; background-size: 1080px 1944px; background-position: -575px -1550px; }
  .footer-main { display: grid; gap: 15px; }
  .footer-main nav { display: none; }
  .footer-bottom { min-height: 72px; align-items: flex-start; justify-content: center; flex-direction: column; }
  .mobile-actions { position: fixed; z-index: 45; inset: auto 0 0; height: 62px; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -10px 30px rgba(12,18,24,.15); }
  .mobile-actions a, .mobile-actions button { display: grid; place-items: center; border: 0; color: white; background: var(--ink); font-size: 13px; font-weight: 800; }
  .mobile-actions button { background: var(--red); }
  .site-dialog { padding: 32px 18px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
