/*
Theme Name: Garaz Baku
Theme URI: https://garazbaku.pl
Author: Garaz Baku
Description: Одностраничная тема автосервиса Garaz Baku.
Version: 1.2.0
Text Domain: garaz-baku
*/

:root {
  --red: #e20d13;
  --red-bright: #ff1b23;
  --black: #030405;
  --panel: #080a0c;
  --line: #24282c;
  --muted: #a9adb2;
  --white: #f5f5f5;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body {
  margin: 0; min-width: 320px; color: var(--white); background:
  radial-gradient(circle at 75% 5%, rgba(193, 0, 0, .09), transparent 26%),
  var(--black); font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
  line-height: 1.45;
}
body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.section { padding: 22px 0; scroll-margin-top: 86px; }
.panel {
  border: 1px solid var(--line); border-radius: 6px;
  background: linear-gradient(145deg, rgba(16,18,20,.96), rgba(5,6,7,.98));
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
}
.section-heading { margin: 0 0 8px; text-align: center; font-size: clamp(27px, 3vw, 38px); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.section-heading::before, .section-heading::after { content: ""; display: inline-block; width: 48px; height: 2px; margin: 0 18px 10px; background: var(--red); box-shadow: 0 0 11px rgba(255, 0, 0, .45); }
.section-lead { margin: 0 0 24px; color: #c7c9cc; text-align: center; }
.red { color: var(--red-bright); }
.icon {
  display: inline-grid; width: 40px; height: 40px; place-items: center; flex: 0 0 auto;
  border: 1px solid var(--red); border-radius: 50%; color: var(--red-bright);
  font-size: 19px; font-weight: 800;
}
.btn {
  display: inline-flex; min-height: 45px; align-items: center; justify-content: center;
  border: 1px solid var(--red); border-radius: 4px; padding: 0 22px;
  color: #fff; background: transparent; font-size: 13px; font-weight: 800;
  letter-spacing: .02em; text-transform: uppercase; cursor: pointer; transition: .2s ease;
}
.btn:hover, .btn:focus-visible { background: var(--red); box-shadow: 0 0 25px rgba(226,13,19,.35); transform: translateY(-1px); }
.btn-primary { background: linear-gradient(#ed1c24, #c4070d); }

.site-header {
  position: sticky; top: 0; z-index: 50; min-height: 88px; border-bottom: 1px solid rgba(255,255,255,.075);
  background: rgba(2,3,4,.94); backdrop-filter: blur(18px);
}
.header-inner { display: flex; min-height: 88px; align-items: center; gap: 28px; }
.brand { display: flex; min-width: 220px; align-items: center; gap: 11px; }
.brand-logo {
  display: block; width: 138px; height: 78px; object-fit: contain;
  object-position: center; filter: drop-shadow(0 0 12px rgba(0, 89, 255, .24));
}
.brand-mark {
  position: relative; display: grid; width: 48px; height: 52px; place-items: center;
  border: 2px solid var(--red); border-radius: 12px 12px 16px 16px;
  color: #fff; background: #07090b; font-size: 15px; font-weight: 900;
  clip-path: polygon(50% 0, 94% 19%, 88% 76%, 50% 100%, 12% 76%, 6% 19%);
}
.brand-mark::after { content: ""; position: absolute; inset: 6px; border: 1px solid #777; clip-path: inherit; }
.brand-copy strong { display: block; font-size: 22px; font-style: italic; letter-spacing: .08em; line-height: 1; }
.brand-copy small { display: block; margin-top: 7px; color: #babdc0; font-size: 9px; letter-spacing: .48em; }
.main-nav { display: flex; margin-left: auto; align-items: center; gap: 31px; }
  .main-nav a { position: relative; padding: 35px 0 30px; color: #ececec; font-size: 12px; font-weight: 700; text-transform: uppercase; }
  .main-nav a::after { content: ""; position: absolute; right: 50%; bottom: 23px; left: 50%; height: 2px; background: var(--red); transition: .2s; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; left: 0; }
.header-cta { margin-left: 4px; white-space: nowrap; }
.menu-toggle { display: none; margin-left: auto; border: 0; padding: 8px; color: #fff; background: transparent; font-size: 27px; }

.hero { position: relative; overflow: hidden; min-height: 540px; border-bottom: 1px solid #171a1d; background: #020304; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #020304 0%, rgba(2,3,4,.97) 30%, rgba(2,3,4,.28) 68%, #020304 100%); z-index: 1; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 130px; background: linear-gradient(transparent, #030405); z-index: 1; }
.hero-art {
  position: absolute; inset: 0 0 0 34%; background-image: url("assets/reference.png");
  background-repeat: no-repeat; background-size: 1060px auto; background-position: center -57px;
  filter: contrast(1.12) saturate(1.08);
}
.hero-grid { position: relative; z-index: 2; display: grid; min-height: 540px; align-items: center; grid-template-columns: 54% 46%; }
.hero-copy { padding: 50px 0 95px; }
.hero-kicker { margin: 0; font-size: clamp(20px, 2.4vw, 34px); font-style: italic; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.hero h1 { margin: 2px 0; font-size: clamp(47px, 6vw, 78px); font-style: italic; font-weight: 900; letter-spacing: -.035em; line-height: .98; text-transform: uppercase; text-shadow: 0 5px 25px #000; }
.hero-subtitle { margin: 0; font-size: clamp(24px, 3vw, 40px); font-style: italic; font-weight: 800; text-transform: uppercase; }
.hero-description { max-width: 435px; margin: 25px 0 30px; color: #c2c5c7; font-size: 14px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 25px; }
.video-link { display: inline-flex; align-items: center; gap: 10px; border: 0; color: #fff; background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.play { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid #777; border-radius: 50%; }
.play::after { content: "▶"; margin-left: 2px; font-size: 10px; }

.stats-wrap { position: relative; z-index: 3; margin-top: -70px; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { display: flex; min-height: 94px; align-items: center; justify-content: center; gap: 15px; padding: 17px; border-right: 1px solid #34383b; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 24px; font-weight: 500; line-height: 1; }
.stat small { display: block; margin-top: 7px; color: #b7b9bb; font-size: 10px; text-transform: uppercase; }

.about { display: grid; min-height: 210px; grid-template-columns: 36% 32% 32%; overflow: hidden; }
.about-photo {
  min-height: 210px; background-image: url("assets/reference.png"); background-repeat: no-repeat;
  background-size: 862px 1824px; background-position: -20px -390px;
}
.about-copy { padding: 32px 20px 25px 34px; }
.about-copy h2 { margin: 0 0 13px; font-size: 27px; font-weight: 500; text-transform: uppercase; }
.about-copy p { margin: 0; color: #b9bdc0; font-size: 13px; line-height: 1.7; }
.check-list { display: grid; align-content: center; gap: 15px; margin: 0; padding: 25px 30px; list-style: none; }
.check-list li { display: flex; align-items: center; gap: 13px; font-size: 13px; }
.check-list li::before { content: "◉"; color: var(--red-bright); font-size: 19px; }

.services-panel { padding: 23px 14px 14px; }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.service-card { overflow: hidden; min-height: 250px; border: 1px solid #2b2f32; border-radius: 6px; background: #090b0d; transition: .2s; }
.service-card:hover { border-color: #5d171a; transform: translateY(-2px); }
.service-photo { height: 126px; background-image: url("assets/reference.png"); background-repeat: no-repeat; background-size: 862px 1824px; filter: contrast(1.08); }
.service-photo.p1 { background-position: -33px -623px; }
.service-photo.p2 { background-position: -237px -623px; }
.service-photo.p3 { background-position: -439px -623px; }
.service-photo.p4 { background-position: -638px -623px; }
.service-photo.p5 { background-position: -33px -778px; }
.service-photo.p6 { background-position: -237px -778px; }
.service-photo.p7 { background-position: -439px -778px; }
.service-photo.p8 { background-position: -638px -778px; }
.service-body { padding: 13px 14px 15px; }
.service-title { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.service-title b { color: var(--red); font-size: 18px; }
.service-body p { margin: 9px 0 0; color: #aeb1b4; font-size: 12px; line-height: 1.55; }

.price-panel { padding: 23px 17px 13px; }
.price-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; }
.price-card { min-height: 176px; padding: 16px 8px; border: 1px solid #303438; border-radius: 6px; text-align: center; background: linear-gradient(150deg, #0b0d0f, #060708); }
.price-card .icon { width: 46px; height: 46px; margin: 0 auto 11px; }
.price-card h3 { min-height: 39px; margin: 0; font-size: 13px; font-weight: 500; line-height: 1.4; }
.price-card small { display: block; margin: 7px 0 2px; color: #ddd; text-transform: uppercase; }
.price-card strong { color: var(--red-bright); font-size: 25px; font-weight: 700; }
.fineprint { margin: 10px 0 0; color: #999da0; font-size: 11px; text-align: center; }

.brands-panel { padding: 18px 22px 22px; }
.brands-title { margin: 0 0 20px; text-align: center; font-size: 22px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.brands { display: flex; align-items: center; justify-content: space-around; gap: 22px; flex-wrap: wrap; }
.brand-name { min-width: 72px; color: #d5d7d9; font-family: Georgia, serif; font-size: 23px; font-weight: 800; font-style: italic; text-align: center; filter: grayscale(1); opacity: .9; }
.brand-name.round { display: grid; width: 50px; min-width: 50px; height: 50px; place-items: center; border: 3px solid #c8ccd0; border-radius: 50%; font-size: 13px; }

.benefits-panel { padding: 18px 14px; }
.benefit-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.benefit { min-height: 162px; padding: 15px 14px; border-right: 1px solid #2d3135; text-align: center; }
.benefit:last-child { border-right: 0; }
.benefit .icon { border: 0; margin-bottom: 6px; font-size: 27px; }
.benefit h3 { margin: 4px 0 8px; font-size: 12px; font-weight: 600; }
.benefit p { margin: 0; color: #a8acaf; font-size: 10px; line-height: 1.6; }

.care { position: relative; min-height: 286px; overflow: hidden; }
.care-bg {
  position: absolute; inset: 0; background-image: url("assets/reference.png");
  background-repeat: no-repeat; background-size: 862px 1824px; background-position: right -1328px;
}
.care::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #07090b 0%, rgba(7,9,11,.96) 28%, rgba(7,9,11,.08) 75%); }
.care-copy { position: relative; z-index: 2; padding: 38px 24px; }
.care h2 { max-width: 380px; margin: 0; font-size: 30px; font-style: italic; line-height: 1.3; text-transform: uppercase; }
.care-mini-stats { display: flex; gap: 54px; margin-top: 34px; }
.care-mini-stats strong { display: block; font-size: 25px; font-weight: 500; }
.care-mini-stats small { display: block; color: #b9bcbe; font-size: 10px; text-transform: uppercase; }

.contacts { display: grid; min-height: 282px; grid-template-columns: 34% 66%; overflow: hidden; }
.contact-copy { padding: 28px 30px; border-right: 1px solid #34383c; }
.contact-copy h2 { margin: 0 0 20px; font-size: 23px; font-weight: 500; text-transform: uppercase; }
.contact-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 12px; color: #c0c3c5; font-size: 12px; line-height: 1.5; }
.contact-list b { color: var(--red); }
.map {
  position: relative; min-height: 282px; background:
  linear-gradient(35deg, transparent 45%, #30343a 46%, transparent 47%),
  linear-gradient(145deg, transparent 45%, #24282d 46%, transparent 47%),
  linear-gradient(85deg, transparent 47%, #21252a 48%, transparent 49%), #0d1014;
  background-size: 190px 130px, 220px 160px, 150px 120px;
}
.map::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, transparent, rgba(0,0,0,.5)); }
.map-pin {
  position: absolute; left: 54%; top: 50%; z-index: 2; transform: translate(-50%,-50%);
  padding: 15px 20px 15px 48px; border: 1px solid var(--red); border-radius: 6px;
  background: rgba(7,9,11,.92); font-size: 13px; line-height: 1.3;
}
.map-pin::before { content: "●"; position: absolute; left: 16px; top: 14px; color: var(--red); font-size: 27px; }

.site-footer { padding: 24px 0 34px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; color: #bbb; font-size: 12px; }
.socials { display: flex; gap: 28px; }
.socials a { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #777; border-radius: 12px; color: #fff; font-size: 17px; font-weight: 800; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; background: rgba(0,0,0,.88); backdrop-filter: blur(10px); }
.modal-backdrop.is-open { display: grid; }
.booking-modal { position: relative; width: min(100%, 480px); padding: 35px; border: 1px solid #591216; border-radius: 8px; background: radial-gradient(circle at 100% 0, #30090c, #090a0b 43%); box-shadow: 0 35px 100px #000; }
.booking-modal h2 { margin: 0 0 8px; font-size: 29px; text-transform: uppercase; }
.booking-modal > p { margin: 0 0 20px; color: #b8bbbd; font-size: 13px; }
.modal-close { position: absolute; top: 10px; right: 14px; border: 0; color: #aaa; background: transparent; font-size: 28px; cursor: pointer; }
.booking-form { display: grid; gap: 13px; }
.booking-form label { display: grid; gap: 5px; color: #d7d9db; font-size: 12px; }
.booking-form input, .booking-form textarea { width: 100%; border: 1px solid #34383b; border-radius: 4px; padding: 12px 13px; color: #fff; background: #090b0d; outline: 0; }
.booking-form textarea { min-height: 85px; resize: vertical; }
.booking-form input:focus, .booking-form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(226,13,19,.13); }
.form-status { min-height: 18px; margin: 0; color: #b9bdc0; font-size: 12px; }

@media (max-width: 1050px) {
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 11px; }
  .brand { min-width: 205px; }
  .header-cta { display: none; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid #34383b; }
  .stats-wrap { margin-top: -45px; }
  .about { grid-template-columns: 40% 60%; }
  .check-list { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(3, 1fr); }
  .benefit-grid { grid-template-columns: repeat(3, 1fr); }
  .benefit:nth-child(3) { border-right: 0; }
  .benefit:nth-child(n+4) { border-top: 1px solid #2d3135; }
}

@media (max-width: 760px) {
  body.admin-bar .site-header { top: 46px; }
  .container { width: min(calc(100% - 28px), var(--max)); }
  .site-header, .header-inner { min-height: 74px; }
  .brand { min-width: 0; }
  .brand-logo { width: 104px; height: 64px; }
  .brand-mark { width: 41px; height: 45px; }
  .brand-copy strong { font-size: 18px; }
  .brand-copy small { font-size: 7px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute; top: 74px; right: 0; left: 0; display: none; padding: 8px 20px 18px;
    flex-direction: column; align-items: stretch; gap: 0; background: rgba(3,4,5,.98);
    border-bottom: 1px solid #292d30;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 5px; font-size: 13px; }
  .main-nav a::after { display: none; }
  .hero { min-height: 610px; }
  .hero::before { background: linear-gradient(180deg, rgba(2,3,4,.35), #020304 58%); }
  .hero-art { inset: 0; background-size: 900px auto; background-position: 43% -75px; opacity: .8; }
  .hero-grid { min-height: 610px; grid-template-columns: 1fr; align-items: end; }
  .hero-copy { padding: 230px 0 100px; }
  .hero h1 { font-size: clamp(46px, 15vw, 66px); }
  .hero-description { margin: 18px 0 22px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 13px; }
  .video-link { justify-content: center; }
  .stats-wrap { margin-top: -68px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { min-height: 88px; justify-content: flex-start; padding: 14px; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(3) { border-right: 1px solid #34383b; }
  .stat:nth-child(n+3) { border-top: 1px solid #34383b; }
  .stat:last-child { grid-column: 1 / -1; }
  .section { padding: 10px 0; }
  .section-heading { font-size: 25px; }
  .section-heading::before, .section-heading::after { width: 22px; margin: 0 8px 7px; }
  .about { grid-template-columns: 1fr; }
  .about-photo { min-height: 210px; background-position: center -388px; }
  .about-copy { padding: 25px 22px; }
  .check-list { grid-template-columns: 1fr; padding: 0 22px 25px; }
  .services-panel { padding: 20px 8px 8px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .service-photo { height: 155px; background-size: 1058px 2240px; }
  .service-photo.p1 { background-position: -40px -765px; }
  .service-photo.p2 { background-position: -291px -765px; }
  .service-photo.p3 { background-position: -539px -765px; }
  .service-photo.p4 { background-position: -784px -765px; }
  .service-photo.p5 { background-position: -40px -956px; }
  .service-photo.p6 { background-position: -291px -956px; }
  .service-photo.p7 { background-position: -539px -956px; }
  .service-photo.p8 { background-position: -784px -956px; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card { min-height: 170px; }
  .brands { gap: 18px; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit { border-bottom: 1px solid #2d3135; }
  .benefit:nth-child(3) { border-right: 1px solid #2d3135; }
  .benefit:nth-child(2n) { border-right: 0; }
  .care { min-height: 400px; }
  .care-bg { background-size: 1100px auto; background-position: 69% -1660px; }
  .care::after { background: linear-gradient(180deg, rgba(7,9,11,.08), #07090b 70%); }
  .care-copy { padding-top: 235px; }
  .care-mini-stats { gap: 25px; }
  .contacts { grid-template-columns: 1fr; }
  .contact-copy { border-right: 0; border-bottom: 1px solid #34383c; }
  .map { min-height: 240px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .booking-modal { padding: 30px 20px 24px; }
}
