:root{--dark:#111;--muted:#777b80;--line:#e5e5e5;--soft:#f4f5f6;--accent:#ffd84a;--blue:#229ed9;--radius:12px;--container:1210px}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:84px}body{margin:0;color:var(--dark);background:#fff;font-family:Inter,Arial,sans-serif;line-height:1.5;overflow-x:hidden}body.modal-open{overflow:hidden}img{max-width:100%;display:block}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}.container{width:min(var(--container),calc(100% - 48px));margin:auto}.skip-link{position:fixed;left:12px;top:-60px;background:#111;color:#fff;padding:12px;z-index:1000}.skip-link:focus{top:12px}.site-header{height:74px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.96);position:relative;z-index:20}.header-inner{height:100%;display:flex;align-items:center;gap:36px}.brand img{width:152px;height:48px;object-fit:contain}.desktop-nav{display:flex;gap:25px;margin-left:auto}.desktop-nav a,.mobile-menu a{color:#111;text-decoration:none;font-size:14px;font-weight:600}.desktop-nav a:hover{text-decoration:underline}.header-book{background:var(--dark);color:#fff;border:0;border-radius:4px;padding:12px 20px;font-weight:700}.menu-toggle{display:none;border:0;background:transparent;width:44px;height:44px;padding:10px}.menu-toggle span{display:block;height:2px;background:#111;margin:5px 0}.mobile-menu{position:absolute;left:0;right:0;top:74px;background:#fff;border-bottom:1px solid var(--line);padding:20px 24px;box-shadow:0 18px 30px rgba(0,0,0,.12)}.mobile-menu a,.mobile-menu button{display:block;width:100%;padding:12px 0;text-align:left}.mobile-menu button{border:0;background:var(--accent);padding:13px 16px;margin-top:8px;border-radius:8px;font-weight:700}.hero{min-height:586px;position:relative;isolation:isolate}.hero-photo{position:absolute;inset:0;background:linear-gradient(90deg,#fff 0 27%,rgba(255,255,255,.95) 36%,rgba(255,255,255,.55) 52%,rgba(255,255,255,0) 72%),url('../images/hero-background.png') center right/auto 100% no-repeat;z-index:-2}.hero-photo:after{content:"";position:absolute;inset:0;background:url('../images/hero-car.png') center right/auto 100% no-repeat}.hero-inner{min-height:586px;display:flex;align-items:flex-start}.hero-copy{padding-top:40px;width:600px}.hero h1{text-transform:uppercase;font-size:90px;letter-spacing:-.04em;line-height:.87;margin:0;font-weight:900}.hero-copy>p{color:#858585;font-size:18px;line-height:24px;margin:22px 0 17px}.hero-cta,.messengers,.hero-phones{display:flex;gap:12px}.button{min-height:44px;border-radius:5px;padding:0 20px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:#111;border:0;font-weight:700;cursor:pointer}.button:focus-visible,a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ffb800;outline-offset:3px}.button-secondary{background:#fff;border:1px solid var(--line)}.button-accent{background:var(--accent)}.button:disabled{cursor:not-allowed;opacity:.55}.hero-cta .button{width:145px;height:42px}.messengers{margin-top:16px}.messenger{width:224px;height:48px;border-radius:11px;display:flex;align-items:center;justify-content:center;gap:10px;color:#fff;text-decoration:none;font-size:15px;font-weight:700;box-shadow:0 4px 5px rgba(0,0,0,.12);transition:.18s}.messenger:hover{transform:translateY(-2px)}.telegram{background:var(--blue)}.max{background:#121214}.hero-phones{width:460px;height:44px;margin-top:14px;align-items:center}.phone-block{height:44px;display:flex;align-items:center;gap:10px;flex:1;color:#111;text-decoration:none}.phone-icon{width:36px;height:36px;border-radius:10px;background:#f1f2f4;display:grid;place-items:center;flex:0 0 36px}.phone-icon img{width:16px;height:16px}.phone-block small{display:block;color:#7d7d82;font-size:10px;line-height:12px;letter-spacing:.07em;text-transform:uppercase}.phone-block strong{display:block;font-size:15px;line-height:20px;white-space:nowrap}.phone-divider{height:32px;width:1px;background:#d1d4d9}.section{padding:96px 0}.section-head{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:42px}.section h2{font-size:50px;line-height:1;text-transform:uppercase;letter-spacing:-.035em;margin:0;font-weight:900}.section-head p{color:var(--muted);margin:0;max-width:410px}.service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.service-card{border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff;display:flex;flex-direction:column;min-height:430px}.service-card img{width:100%;height:220px;object-fit:cover}.service-card-body{padding:22px;display:flex;flex-direction:column;flex:1}.service-card h3{font-size:22px;line-height:1.15;margin:0 0 10px}.service-card p{color:var(--muted);font-size:14px;margin:0 0 24px}.service-card-footer{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:10px}.service-price{font-size:19px;font-weight:800}.details-button{background:none;border:0;text-decoration:underline;font-weight:700;cursor:pointer}.benefits{background:#111;color:#fff}.benefits h2{max-width:800px;margin-bottom:52px}.benefit-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#333}.benefit-grid article{background:#111;padding:28px}.benefit-grid span{color:var(--accent);font-size:13px}.benefit-grid h3{font-size:21px;line-height:1.15;margin:52px 0 12px}.benefit-grid p{color:#aaa;font-size:14px;margin:0}.works-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.work-card{position:relative;height:410px;border:0;padding:0;overflow:hidden;background:#111;cursor:pointer;text-align:left}.work-card img{width:100%;height:100%;object-fit:cover;transition:.35s}.work-card:hover img{transform:scale(1.03)}.work-card:after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,rgba(0,0,0,.8))}.work-card span{position:absolute;z-index:2;left:24px;right:24px;bottom:22px;color:#fff;font-size:20px;font-weight:800}.about{background:#f5f5f3}.about-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:70px;align-items:center}.about-image{height:560px;overflow:hidden}.about-image img{width:100%;height:100%;object-fit:cover}.eyebrow{text-transform:uppercase;letter-spacing:.12em;color:#7c7c7c;font-size:12px;font-weight:700}.about-copy h2,.contacts h2{font-size:64px}.about-copy>p:not(.eyebrow){font-size:17px;color:#555;max-width:510px;margin:26px 0}.review-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.review-grid article{border:1px solid var(--line);padding:26px;min-height:260px}.review-grid article>span{font-size:11px;text-transform:uppercase;letter-spacing:.1em;background:var(--accent);padding:5px 8px;font-weight:800}.review-grid article>p{font-weight:700;color:#595959;margin-top:30px}.review-grid blockquote{margin:25px 0;color:#555}.review-grid small{color:#888}.muted-link{display:inline-block;margin-top:24px;color:#777;text-decoration:underline}.contacts{background:#111;color:#fff}.contact-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:80px}.contacts .eyebrow{color:#aaa}.contacts .lead{color:#aaa}.contacts address{display:flex;flex-direction:column;gap:12px;margin-top:32px;font-style:normal}.contacts address a{color:#fff;text-decoration:none}.map-placeholder{min-height:390px;border:1px solid #3a3a3a;background:linear-gradient(135deg,#1b1b1b,#282828);display:grid;place-content:center;text-align:center;padding:30px}.map-placeholder strong{text-transform:uppercase}.map-placeholder p{color:#888;max-width:350px}.site-footer{background:#f5f5f3;padding:64px 0 20px}.footer-grid{display:grid;grid-template-columns:1.3fr .7fr 1fr .9fr;gap:45px}.brand-footer img{width:165px}.footer-grid p{color:#777;max-width:270px}.footer-grid nav,.footer-contacts,.footer-actions{display:flex;flex-direction:column;gap:10px}.footer-grid a{color:#111;text-decoration:none}.footer-actions a{font-weight:800}.footer-bottom{margin-top:50px;padding-top:18px;border-top:1px solid #ddd;display:flex;gap:28px;color:#777;font-size:13px}.footer-bottom button{border:0;background:transparent;color:#777;padding:0;text-decoration:underline;cursor:pointer}.cookie-banner{position:fixed;left:24px;right:24px;bottom:24px;z-index:60;background:#fff;border:1px solid #ddd;box-shadow:0 16px 50px rgba(0,0,0,.2);padding:22px;display:flex;align-items:center;justify-content:space-between;gap:30px}.cookie-banner[hidden]{display:none}.cookie-banner p{margin:4px 0 0;color:#666;max-width:680px}.cookie-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.text-button{border:0;background:none;text-decoration:underline;cursor:pointer}.modal{border:0;padding:0;background:transparent;max-width:none;max-height:none;width:100%;height:100%;overflow:hidden}.modal::backdrop{background:rgba(0,0,0,.66);backdrop-filter:blur(3px)}.modal-shell{background:#fff;width:min(930px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;margin:20px auto;padding:42px;position:relative;border-radius:10px}.modal-close{position:sticky;float:right;top:0;margin:-20px -20px 0 0;width:44px;height:44px;border-radius:50%;border:1px solid #ddd;background:#fff;font-size:28px;line-height:1;z-index:2;cursor:pointer}.service-modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:34px}.service-modal-grid img{width:100%;height:360px;object-fit:cover}.service-modal-grid h2{font-size:40px;line-height:1.05;margin:15px 0}.modal-price{font-size:24px;font-weight:900;margin:22px 0}.tabs{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.tab{border:1px solid #ddd;background:#fff;border-radius:20px;padding:7px 12px;font-size:13px}.tab.active{background:#111;color:#fff}.booking-shell{width:min(620px,calc(100% - 32px))}.booking-shell h2,.legal-shell h2,.gallery-shell h2{font-size:40px;margin:6px 0 14px}.booking-shell form{display:grid;gap:16px;margin-top:26px}.booking-shell label:not(.consent){display:grid;gap:6px;font-weight:700}.booking-shell input,.booking-shell select{width:100%;height:48px;border:1px solid #ccc;border-radius:5px;padding:0 12px;background:#fff}.booking-shell input[aria-invalid=true],.booking-shell select[aria-invalid=true]{border-color:#c00}.field-error{color:#b00020;font-size:12px;font-weight:400}.consent{display:flex;gap:10px;align-items:flex-start;font-size:13px}.consent input{width:18px;height:18px;margin-top:2px;flex:none}.consent button{border:0;background:none;padding:0;text-decoration:underline;cursor:pointer}.form-warning{padding:12px;background:#fff6d5;font-size:13px}.form-status{min-height:24px;font-weight:700}.gallery-images{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.gallery-images img{width:100%;height:330px;object-fit:cover}.legal-shell{width:min(760px,calc(100% - 32px))}.legal-copy{font-size:16px}.legal-copy h3{margin-top:28px}.legal-copy>p:first-child{background:#fff2bf;padding:15px}
@media(max-width:1024px){:root{--container:calc(100% - 64px)}.container{width:var(--container)}.desktop-nav{gap:14px}.desktop-nav a{font-size:12px}.hero h1{font-size:70px}.hero-photo{background:linear-gradient(90deg,#fff 0 32%,rgba(255,255,255,.82) 50%,rgba(255,255,255,0) 78%),url('../images/hero-background.png') center right/auto 100% no-repeat}.hero-photo:after{background-size:auto 92%;background-position:right bottom}.service-grid{grid-template-columns:repeat(2,1fr)}.benefit-grid{grid-template-columns:repeat(2,1fr)}.works-grid{grid-template-columns:repeat(3,1fr)}.work-card{height:340px}.footer-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:767px){:root{--container:calc(100% - 32px)}.container{width:var(--container)}.site-header{height:64px}.header-inner{gap:12px}.brand img{width:124px;height:40px}.desktop-nav,.header-book{display:none}.menu-toggle{display:block;margin-left:auto}.mobile-menu{top:64px}.hero{min-height:800px}.hero-inner{min-height:800px}.hero-photo{inset:auto 0 0;height:410px;background:url('../images/hero-background.png') center/cover no-repeat}.hero-photo:before{content:"";position:absolute;inset:0;background:linear-gradient(#fff 0%,rgba(255,255,255,.1) 35%)}.hero-photo:after{background:url('../images/hero-car.png') 60% bottom/auto 93% no-repeat}.hero-copy{padding-top:30px;width:100%}.hero h1{font-size:48px;line-height:.91;letter-spacing:-.04em}.hero-copy>p{font-size:15px;line-height:21px;margin:17px 0}.hero-cta .button{height:44px;flex:1;width:auto}.messengers{display:grid;grid-template-columns:1fr 1fr;gap:8px}.messenger{width:auto;padding:0 10px;font-size:12px}.hero-phones{width:100%;height:auto;gap:8px;margin-top:10px}.phone-block{height:52px;gap:7px;min-width:0}.phone-icon{width:34px;height:34px;flex-basis:34px}.phone-block strong{font-size:12px}.phone-divider{height:38px}.section{padding:68px 0}.section-head{display:block;margin-bottom:30px}.section h2{font-size:38px}.section-head p{margin-top:12px}.service-grid{grid-template-columns:1fr}.service-card{min-height:0}.service-card img{height:210px}.benefit-grid{grid-template-columns:1fr}.benefit-grid h3{margin-top:28px}.works-grid{grid-template-columns:1fr}.work-card{height:330px}.about-grid,.contact-grid{grid-template-columns:1fr;gap:32px}.about-image{height:360px}.about-copy h2,.contacts h2{font-size:46px}.review-grid{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr;gap:28px}.footer-bottom{flex-direction:column;gap:10px}.cookie-banner{left:10px;right:10px;bottom:10px;display:block;padding:16px}.cookie-actions{margin-top:14px}.cookie-actions .button{font-size:12px;padding:0 12px}.modal-shell{padding:26px 20px}.service-modal-grid{grid-template-columns:1fr}.service-modal-grid img{height:240px}.service-modal-grid h2,.booking-shell h2,.legal-shell h2,.gallery-shell h2{font-size:30px}.gallery-images{grid-template-columns:1fr}.gallery-images img{height:260px}}
@media(max-width:350px){.hero h1{font-size:42px}.messenger{font-size:11px}.messenger img{display:none}.phone-block strong{font-size:11px}.phone-block small{font-size:9px}.section h2{font-size:34px}.service-card-body{padding:18px}.about-copy h2,.contacts h2{font-size:40px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Синхронизация с актуальными адаптивами Figma */
.section{padding:76px 0}.section-head{margin-bottom:24px}.section h2{font-size:32px;line-height:1.04}.section-head p{font-size:14px}.services{padding-top:72px;padding-bottom:84px}.service-grid{grid-template-columns:repeat(4,1fr);gap:14px}.service-card{min-height:395px;border-radius:0;background:#f7f7f7}.service-card img{height:196px}.service-card-body{padding:18px}.service-card h3{font-size:17px}.service-card p{font-size:12px;line-height:1.45;margin-bottom:18px}.service-price{font-size:16px}.details-button{font-size:12px}.benefits{background:#fff;color:#111}.benefits h2{font-size:32px;margin-bottom:36px}.benefit-grid{grid-template-columns:repeat(4,1fr);background:#e5e5e5}.benefit-grid article{background:#fff;padding:0 28px 0 0;min-height:155px}.benefit-grid span{color:#111;font-size:11px}.benefit-grid h3{font-size:16px;margin:24px 0 8px}.benefit-grid p{color:#666;font-size:12px}.works-grid{grid-template-columns:repeat(6,1fr);gap:14px}.work-card{grid-column:span 2;height:300px;border-radius:3px}.work-card-wide{grid-column:span 3;height:390px}.work-card span{left:18px;right:18px;bottom:16px;font-size:14px}.about{background:#fff}.about-grid{grid-template-columns:1fr 1fr;gap:72px;align-items:center}.about-image{height:430px;display:grid;place-items:center}.about-image img{width:min(430px,90%);height:auto;object-fit:contain}.about-copy h2{font-size:46px}.about-copy>p:not(.eyebrow){font-size:15px;line-height:1.65}.reviews{padding-top:72px}.review-grid article{background:#f7f7f7;border:0;min-height:220px}.contacts{background:#fff;color:#111}.contact-heading{margin-bottom:24px}.contact-heading>div>p{color:#777;margin:8px 0 0}.contact-grid{grid-template-columns:360px 1fr;gap:24px}.contacts address{margin:0;background:#f7f7f7;padding:30px;min-height:250px}.contacts address a{color:#111}.map-placeholder{min-height:250px;border:0;background:#f7f7f7}.map-placeholder p{color:#888}.final-cta{position:relative;background:#fff;min-height:1130px;overflow:hidden}.final-copy{position:relative;z-index:2;padding-top:0;height:350px}.final-copy h2{font-size:46px;line-height:1.02;text-transform:uppercase;margin:0 0 18px;letter-spacing:-.03em}.final-copy p{font-size:18px;color:#333;margin:0 0 18px}.final-copy>div{display:flex;gap:12px}.final-copy .button{height:46px;border-radius:10px}.final-telegram{width:252px;background:#0e0e0e;color:#fff}.final-max{width:252px;border:1px solid #d9d9d9;background:#fff}.final-car{position:absolute;left:0;right:0;top:320px;height:810px;background:url('../images/work-bmw-1.png') center 45%/cover no-repeat}.final-car:after{content:"";position:absolute;left:0;right:0;bottom:0;height:330px;background:linear-gradient(180deg,rgba(23,25,27,0),rgba(23,25,27,.22) 20%,rgba(23,25,27,.6) 37%,rgba(23,25,27,.865) 47%,rgba(23,25,27,.91) 61%,#17191b 76%)}.site-footer{background:#17191b;color:#fff;padding:0 0 20px;min-height:380px}.footer-grid{grid-template-columns:330px 210px 170px 1fr;gap:64px;padding-top:100px}.footer-logo{font-size:28px;line-height:1.2}.footer-grid p,.footer-grid a,.footer-grid span{color:#bec2c6;font-size:14px}.footer-grid nav,.footer-contacts{gap:10px}.footer-grid nav>strong,.footer-contacts>strong{font-size:12px;text-transform:uppercase;color:#fff}.footer-actions{flex-direction:row;gap:10px;margin-top:14px}.footer-actions a{display:grid;place-items:center;background:#0e0e0e;color:#fff!important;width:150px;height:44px;border-radius:6px;font-size:13px}.footer-actions a:last-child{width:120px;background:#fff;color:#0e0e0e!important}.footer-bottom{border-top-color:#404346;color:#bec2c6;margin-top:58px}.footer-bottom button{color:#bec2c6}
@media(max-width:1024px) and (min-width:768px){.section{padding:56px 0}.service-grid{grid-template-columns:repeat(2,1fr);gap:16px}.service-card{min-height:360px}.service-card img{height:185px}.works-grid{grid-template-columns:repeat(2,1fr)}.work-card,.work-card-wide{grid-column:span 1;height:300px}.about-grid{gap:32px}.about-image{height:360px}.contact-grid{grid-template-columns:1fr 1fr}.footer-grid{grid-template-columns:1.1fr .8fr .8fr 1.2fr;gap:24px}.final-cta{min-height:860px}.final-car{height:560px}.site-footer{min-height:420px}}
@media(max-width:767px){.hero,.hero-inner{min-height:504px}.hero-inner{position:relative}.hero-copy{padding-top:22px}.hero h1{font-size:48px;line-height:48px}.hero-copy>p{font-size:14px;line-height:17.5px;margin-top:12px}.hero-photo{inset:210px 0 auto;height:260px;background:url('../images/hero-background.png') center/cover no-repeat}.hero-photo:before{background:linear-gradient(#fff 0%,rgba(255,255,255,.06) 34%,rgba(255,255,255,.72) 76%,#fff 100%)}.hero-photo:after{background:url('../images/hero-car.png') 54% center/auto 205px no-repeat}.hero-cta{position:absolute;left:0;right:0;top:328px;z-index:3}.hero-cta .button-secondary{display:none}.hero-cta .button-accent{width:100%;height:48px;border-radius:8px}.messengers{position:absolute;left:0;right:0;top:384px;z-index:3;display:flex;flex-direction:column;gap:8px;margin:0}.messenger{width:100%;height:48px;border-radius:8px;font-size:14px;box-shadow:none}.telegram{background:#2582d5}.hero-phones{position:absolute;left:0;right:0;top:210px;z-index:3;width:auto;height:48px;margin:0;padding:2px 10px;background:rgba(255,255,255,.94);gap:8px}.phone-icon,.phone-divider{display:none}.phone-block{height:44px;display:flex;align-items:flex-start;justify-content:center;flex-direction:column;gap:2px}.phone-block small{font-size:9px;line-height:11px}.phone-block strong{font-size:11px;line-height:14px}.section{padding:46px 0}.section h2,.benefits h2{font-size:24px}.section-head{margin-bottom:18px}.services{padding-top:42px;padding-bottom:52px}.service-grid{display:flex;flex-direction:column;gap:10px}.service-card{min-height:118px;display:grid;grid-template-columns:112px 1fr}.service-card img{height:100%;min-height:118px}.service-card-body{padding:12px}.service-card h3{font-size:13px;margin-bottom:5px}.service-card p{font-size:10px;line-height:1.35;margin-bottom:8px}.service-price{font-size:12px}.details-button{font-size:10px}.benefit-grid{grid-template-columns:1fr}.benefit-grid article{min-height:0;padding:14px 0;border-bottom:1px solid #e5e5e5}.benefit-grid h3{font-size:13px;margin:8px 0 3px}.benefit-grid p{font-size:10px}.works-grid{display:flex;flex-direction:column;gap:10px}.work-card,.work-card-wide{height:190px}.work-card span{font-size:12px}.about-grid{grid-template-columns:1fr;gap:22px}.about-image{height:260px}.about-image img{width:min(230px,75%)}.about-copy h2{font-size:28px}.about-copy>p:not(.eyebrow){font-size:12px}.review-grid{gap:10px}.review-grid article{min-height:0;padding:18px}.contacts .container{width:100%}.contact-heading{padding:0 16px}.contact-grid{grid-template-columns:1fr;gap:10px}.contacts address,.map-placeholder{min-height:180px;padding:24px;margin:0 16px}.final-cta{min-height:650px}.final-copy{height:265px;padding-top:0}.final-copy h2{font-size:30px}.final-copy p{font-size:13px;max-width:330px}.final-copy>div{display:grid;grid-template-columns:1fr}.final-copy .button{width:100%;height:44px}.final-car{top:265px;height:385px;background-position:60% center}.final-car:after{height:180px}.site-footer{min-height:0;padding-top:0}.footer-grid{grid-template-columns:1fr;gap:26px;padding-top:44px}.footer-grid nav{display:flex}.footer-actions{display:flex}.footer-bottom{margin-top:36px}.footer-logo{font-size:24px}}
@media(max-width:350px){.service-card{grid-template-columns:96px 1fr}.service-card-body{padding:10px}.service-card p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.final-copy h2{font-size:27px}}

/* Hero: точные прозрачности градиентных слоёв из актуального Figma-фрейма. */
.hero-photo{overflow:hidden}
@media(min-width:1025px){
  .hero-photo{
    background:
      linear-gradient(90deg,
        rgba(255,255,255,1) 0%,
        rgba(255,255,255,1) 25%,
        rgba(255,255,255,.95) 35%,
        rgba(255,255,255,.70) 47%,
        rgba(255,255,255,.35) 57%,
        rgba(255,255,255,.08) 65%,
        rgba(255,255,255,0) 72%,
        rgba(255,255,255,0) 100%),
      url('../images/hero-background.png') 258px -120.72px/1182px auto no-repeat;
  }
  .hero-photo:before{
    content:"";
    position:absolute;
    z-index:2;
    left:30px;
    top:346px;
    width:1440px;
    height:240px;
    pointer-events:none;
    background:linear-gradient(180deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.08) 45%,
      rgba(255,255,255,.42) 72%,
      rgba(255,255,255,.82) 90%,
      rgba(255,255,255,1) 100%);
  }
  .hero-photo:after{
    z-index:1;
    background:url('../images/hero-car.png') 258px -120.72px/1182px auto no-repeat;
  }
}

@media(max-width:1024px) and (min-width:768px){
  .hero-photo{
    background:
      linear-gradient(90deg,
        rgba(255,255,255,1) 0%,
        rgba(255,255,255,1) 25%,
        rgba(255,255,255,.95) 35%,
        rgba(255,255,255,.70) 47%,
        rgba(255,255,255,.35) 57%,
        rgba(255,255,255,.08) 65%,
        rgba(255,255,255,0) 72%,
        rgba(255,255,255,0) 100%),
      url('../images/hero-background.png') center right/auto 100% no-repeat;
  }
  .hero-photo:before{content:none}
}

@media(max-width:767px){
  .hero-photo:before{
    content:"";
    position:absolute;
    inset:90px 0 auto;
    height:170px;
    background:rgba(255,255,255,.72);
    pointer-events:none;
  }
}
.gallery-images figure{position:relative;margin:0}.gallery-images figcaption{position:absolute;left:12px;bottom:12px;background:rgba(17,17,17,.82);color:#fff;padding:5px 9px;border-radius:4px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}.form-status.is-success{color:#16703a}.form-status.is-error{color:#b00020}.form-submit:disabled{cursor:wait;opacity:.7}
.booking-contacts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:24px}.booking-contacts .button,.booking-contacts .messenger{width:100%;height:48px}@media(max-width:600px){.booking-contacts{grid-template-columns:1fr}}
/* Исправление двойного изображения автомобиля */
.hero-photo::after {
    display: none;
}
/* Плавный градиент мобильной версии */
@media (max-width: 767px) {
    .hero-photo::before {
        inset: 0;
        height: 100%;
        background: linear-gradient(
            180deg,
            #fff 0%,
            rgba(255,255,255,0) 25%,
            rgba(255,255,255,0) 65%,
            #fff 100%
        );
    }
}
/* Расположение элементов мобильной версии */
@media (max-width: 767px) {
    .hero,
    .hero-inner {
        min-height: 660px;
    }

    .hero-photo {
        inset: 250px 0 auto;
        height: 240px;
    }

    .hero-cta {
        top: 480px;
    }

    .messengers {
        top: 536px;
    }
}

/* ========================================
   PERFECT CAR — ФОРМА ОБРАТНОЙ СВЯЗИ
   ======================================== */

#booking-form[hidden] {
    display: none !important;
}

#booking-form {
    margin-top: 24px;
}

#booking-form fieldset {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

#booking-form label:not(.consent):not(.honeypot) {
    display: grid;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

#booking-form input[type="text"],
#booking-form input[type="tel"],
#booking-form select {
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0 14px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #f7f7f7;
    color: #111;
    font-size: 16px;
    transition: border-color .2s, background .2s;
}

#booking-form input:focus,
#booking-form select:focus {
    border-color: #111;
    background: #fff;
}

#booking-form input::placeholder {
    color: #999;
    font-weight: 400;
}

#booking-form input[aria-invalid="true"],
#booking-form select[aria-invalid="true"] {
    border-color: #b00020;
}

#booking-form .consent {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    font-size: 12px;
    line-height: 1.5;
    color: #666;
}

#booking-form .consent input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    padding: 0;
    accent-color: #ffd84a;
    cursor: pointer;
}

#booking-form .consent button {
    display: inline;
    border: 0;
    padding: 0;
    background: transparent;
    color: #111;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

#booking-form .consent .field-error {
    grid-column: 2;
}

#booking-form .field-error:empty {
    display: none;
}

#booking-form .field-error {
    font-size: 12px;
    color: #b00020;
    font-weight: 400;
}

#booking-form .form-submit {
    width: 100%;
    min-height: 50px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    background: var(--accent);
    color: #111;
}

#booking-form .form-submit:disabled {
    opacity: .55;
    cursor: not-allowed;
}

#booking-form .form-status {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
}

#booking-form .form-status:empty {
    display: none;
}

#booking-form .form-status.is-success {
    padding: 14px;
    border-radius: 8px;
    background: #edf7ef;
    color: #16703a;
}

#booking-form .form-status.is-error {
    padding: 14px;
    border-radius: 8px;
    background: #fff0f0;
    color: #b00020;
}

/* Мобильная адаптация */

@media (max-width: 767px) {
    #booking-form {
        margin-top: 20px;
    }

    #booking-form fieldset {
        gap: 14px;
    }

    #booking-form .consent {
        font-size: 12px;
    }

    #booking-form .form-submit {
        min-height: 48px;
    }
}
/* PERFECT CAR — горизонтальная галерея */

/* Планшет */
@media (max-width: 1024px) {
    .gallery-images {
        display: grid;
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: calc((100% - 24px) / 2);
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding-bottom: 4px;
        min-width: 0;
    }

    .gallery-images::-webkit-scrollbar {
        display: none;
    }

    .gallery-images > * {
        min-width: 0;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .gallery-images img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        border-radius: 4px;
    }
}

/* Телефон */
@media (max-width: 767px) {
    .gallery-images {
        grid-auto-columns: 88%;
        gap: 12px;
    }
}
/* PERFECT CAR — АДАПТИВНАЯ ГАЛЕРЕЯ */

@media (max-width: 1024px) {

    #studio-gallery {
        min-width: 0;
        max-width: 100%;
    }

    #studio-gallery-images {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }

    #studio-gallery-images::-webkit-scrollbar {
        display: none;
    }

    #studio-gallery-images > img {
        flex: 0 0 calc((100% - 24px) / 2);
        width: calc((100% - 24px) / 2) !important;
        min-width: 0;
        height: auto !important;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        border-radius: 4px;
    }
}

@media (max-width: 767px) {

    #studio-gallery-images > img {
        flex: 0 0 88%;
        width: 88% !important;
    }
}


/* PERFECT CAR — АДАПТИВНЫЕ ПРОЕКТЫ */

@media (max-width: 1024px) {

    .works-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }

    .works-grid::-webkit-scrollbar {
        display: none;
    }

    .works-grid > .work-card {
        flex: 0 0 calc((100% - 24px) / 2);
        width: calc((100% - 24px) / 2) !important;
        min-width: 0;
        max-width: none;
        height: auto !important;
        aspect-ratio: 16 / 9;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        overflow: hidden;
    }

    .works-grid > .work-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 767px) {

    .works-grid > .work-card {
        flex: 0 0 88%;
        width: 88% !important;
    }
}


/* PERFECT CAR — ГОРИЗОНТАЛЬНЫЕ ПРОЕКТЫ */

@media (max-width: 1024px) {
    .works-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        align-items: stretch !important;
    }

    .works-grid > .work-card {
        flex-shrink: 0 !important;
    }
}


/* PERFECT CAR — НОВЫЙ МОБИЛЬНЫЙ ЭКРАН */

@media (max-width: 767px) {

    .hero {
        position: relative;
        min-height: 0 !important;
        background: #111;
        color: #fff;
        overflow: hidden;
    }

    .hero .hero-photo {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: url('../images/hero-background.png')
                    center / cover no-repeat !important;
    }

    .hero .hero-photo::after {
        position: absolute;
        inset: 0;
        content: "";
        background: url('../images/hero-car.png')
                    58% center / auto 100% no-repeat !important;
        z-index: 1;
    }

    .hero .hero-photo::before {
        position: absolute;
        inset: 0;
        content: "";
        background: linear-gradient(
            180deg,
            rgba(0,0,0,.78) 0%,
            rgba(0,0,0,.30) 45%,
            rgba(0,0,0,.20) 60%,
            rgba(0,0,0,.95) 100%
        ) !important;
        z-index: 2;
    }

    .hero .hero-inner {
        position: relative;
        z-index: 3;
        min-height: 650px !important;
        display: flex;
        flex-direction: column;
        padding-top: 32px;
        padding-bottom: 24px;
    }

    .hero .hero-copy {
        display: flex;
        flex-direction: column;
        flex: 1;
        width: 100% !important;
        padding: 0 !important;
    }

    .hero h1 {
        color: #fff !important;
        font-size: clamp(36px, 11vw, 48px);
        line-height: .98;
        letter-spacing: -1.5px;
        margin: 0;
    }

    .hero .hero-copy > p {
        color: rgba(255,255,255,.85) !important;
        font-size: 14px;
        line-height: 1.5;
        margin-top: 16px;
    }

    .hero .hero-cta {
        position: static !important;
        margin-top: auto !important;
        padding-top: 200px;
        width: 100%;
    }

    .hero .hero-cta .button-accent {
        width: 100%;
        height: 54px;
        border-radius: 8px;
        font-size: 16px;
    }

    .hero .hero-cta .button-secondary {
        display: none;
    }

    .hero .messengers {
        position: static !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
        margin: 10px 0 0 !important;
    }

    .hero .messenger {
        width: 100%;
        height: 46px;
        padding: 0 6px;
        font-size: 11px;
        border-radius: 8px;
    }

    .hero .hero-phones {
        position: static !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        height: auto;
        margin: 20px 0 0 !important;
        padding: 14px 0 0;
        background: transparent !important;
        border-top: 1px solid rgba(255,255,255,.2);
    }

    .hero .phone-block {
        background: transparent !important;
        color: #fff !important;
        height: auto;
    }

    .hero .phone-block strong {
        color: #fff !important;
        font-size: 12px;
    }

    .hero .phone-block small {
        color: rgba(255,255,255,.65) !important;
        font-size: 10px;
    }

    .hero .phone-divider {
        display: none;
    }
}


/* PERFECT CAR — МОБИЛЬНАЯ СЕТКА УСЛУГ */

@media (max-width: 767px) {

    #service-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        align-items: stretch;
    }

    #service-grid .service-card {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        min-width: 0;
        min-height: 0 !important;
        height: auto !important;
        border: 1px solid #e8e8e8;
        border-radius: 10px;
        overflow: hidden;
        background: #f7f7f7;
    }

    #service-grid .service-card img {
        display: block;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    #service-grid .service-card-body {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-width: 0;
        padding: 12px !important;
        gap: 8px;
    }

    #service-grid .service-card h3 {
        font-size: 14px !important;
        line-height: 1.25;
        margin: 0;
        overflow-wrap: anywhere;
    }

    #service-grid .service-card p {
        font-size: 11px !important;
        line-height: 1.4;
        margin: 0 0 8px;
        color: #777;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    #service-grid .service-price {
        font-size: 14px !important;
        font-weight: 700;
        white-space: nowrap;
    }

    #service-grid .details-button {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 36px;
        padding: 8px 4px;
        background: #ffda49;
        color: #111;
        border: 0;
        border-radius: 6px;
        font-size: 11px !important;
        font-weight: 700;
        text-decoration: none;
    }

    #service-grid .service-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: calc((100% - 12px) / 2);
    }
}

@media (max-width: 350px) {

    #service-grid {
        gap: 8px !important;
    }

    #service-grid .service-card-body {
        padding: 9px !important;
    }

    #service-grid .service-card h3 {
        font-size: 12px !important;
    }
}


/* PERFECT CAR — МОБИЛЬНЫЕ КОНТАКТЫ И ФИНАЛЬНЫЙ ЭКРАН */

@media (max-width: 767px) {

  #contacts .contact-heading p {
    display: none;
  }

  #contacts .contact-grid address {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 18px;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    font-style: normal;
  }

  #contacts address > strong,
  #contacts address > a:not(.button),
  #contacts address > span {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #dedede;
    font-size: 14px;
    line-height: 1.5;
  }

  #contacts address > strong::before,
  #contacts address > a:not(.button)::before,
  #contacts address > span::before {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    height: 36px;
    background: #fff;
    border-radius: 9px;
    font-size: 20px;
    color: #111;
  }

  #contacts address > strong::before {
    content: "⌖";
  }

  #contacts address > a:not(.button)::before {
    content: "☎";
  }

  #contacts address > span::before {
    content: "◷";
  }

  #contacts address > .button {
    width: 100%;
    min-height: 48px;
    align-self: stretch !important;
    margin-top: 18px !important;
    border-radius: 8px;
    font-weight: 700;
  }

  .final-cta {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 32px 0 0 !important;
    background: #111 !important;
    color: #fff !important;
    overflow: hidden;
  }

  .final-cta .final-copy {
    position: relative !important;
    inset: auto !important;
    z-index: 2;
    width: 100%;
    padding-bottom: 24px;
  }

  .final-cta .final-copy::before {
    content: "PERFECT CAR";
    display: block;
    margin-bottom: 14px;
    color: #ffda42;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
  }

  .final-cta h2 {
    color: #fff !important;
    font-size: clamp(27px, 8vw, 36px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.8px;
  }

  .final-cta h2 br {
    display: none;
  }

  .final-cta p {
    color: #bbb !important;
    font-size: 14px !important;
    line-height: 1.5;
    margin: 18px 0 24px !important;
  }

  .final-cta .final-copy > div {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .final-cta .button {
    width: 100% !important;
    min-height: 48px;
    padding: 10px 6px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    text-align: center;
  }

  .final-cta .final-telegram {
    background: #2582d5 !important;
    color: #fff !important;
    border: none !important;
  }

  .final-cta .final-max {
    background: #292929 !important;
    color: #fff !important;
    border: 1px solid #444 !important;
  }

  .final-cta .final-car {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 260px !important;
    background-position: center !important;
    background-size: cover !important;
  }

  .final-cta .final-car::after {
    height: 80px !important;
    top: 0 !important;
    bottom: auto !important;
    background: linear-gradient(#111, transparent) !important;
  }

}


/* PERFECT CAR — монохромные кнопки */

.button-accent,
#booking-form .form-submit,
#service-grid .details-button {
    background: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
}

.button-accent:hover,
#booking-form .form-submit:hover,
#service-grid .details-button:hover {
    background: #333333 !important;
    color: #ffffff !important;
}

#booking-form input[type="checkbox"] {
    accent-color: #111111;
}

.final-cta .final-copy::before {
    color: #ffffff !important;
}

/* PERFECT CAR — белая кнопка главного экрана */

@media (max-width: 767px) {
    .hero .hero-cta .button-accent {
        background: #ffffff !important;
        color: #111111 !important;
        border-color: #ffffff !important;
    }

    .hero .hero-cta .button-accent:hover {
        background: #e8e8e8 !important;
        color: #111111 !important;
    }
}
