.brand-mazda {
  --paper: #f4f1e9;
  --ink: #251c1b;
  --muted: #685b56;
  --accent: #ae182b;
  --accent-ink: #fffaf1;
  --panel: #e5ded3;
  --line: #c9beb2;
  --display: Oswald;
  --body: Golos;
  --radius: 0;
  font-family: var(--body), sans-serif;
}
.brand-mazda h1,
.brand-mazda h2 {
  font-weight: 700;
  letter-spacing: -0.025em;
}
.brand-mazda .button {
  border-radius: 0;
}
.m-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  min-height: 104px;
}
.m-header .wordmark {
  grid-column: 2;
  grid-row: 1;
}
.brand-mazda .wordmark {
  font-family: Oswald, sans-serif;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  gap: 12px;
}
.brand-mazda .wordmark-symbol {
  width: 1.75em;
  height: 1.75em;
}
.m-header > nav {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: var(--text-small);
}
.m-header .header-phone {
  justify-self: end;
  font-size: var(--text-small);
}
.m-header .mobile-menu {
  display: none;
}
.m-drive {
  background: var(--accent);
  color: var(--accent-ink);
  padding-block: 34px 44px;
}
.m-drive-heading {
  margin-bottom: 30px;
}
.m-drive-heading h1 {
  font-size: clamp(2.8rem, 4.6vw, 4.4rem);
  line-height: 1.08;
  max-width: 850px;
}
.m-drive-heading h1 span {
  display: block;
}
.m-drive-heading > div {
  margin-top: 20px;
}
.m-drive-heading p {
  max-width: 65ch;
  font-size: var(--text-small);
}
.m-drive-heading .text-link {
  margin-top: 13px;
  font-size: var(--text-small);
}
.m-drive-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.6fr);
  align-items: stretch;
  gap: 28px;
}
.m-booking-rail {
  scroll-margin-top: 24px;
  --form-radius: 0;
}
.m-booking-rail .consultation-form {
  padding: 26px;
  max-width: none;
  height: 100%;
  box-shadow: none;
}
.m-booking-rail .consultation-heading h2 {
  font-family: Oswald, sans-serif;
  font-size: 1.85rem;
}
.m-booking-rail .consultation-fields {
  margin-top: 20px;
  gap: 14px;
}
.m-booking-rail .consultation-fields input {
  border-radius: 0;
}
.m-booking-rail .consultation-submit {
  border-radius: 0;
}
.m-drive-picture {
  min-width: 0;
  align-self: center;
}
.m-drive-picture .hero-fleet {
  display: flex;
  justify-content: center;
}
.m-drive-picture .hero-vehicle {
  max-height: 430px;
  object-fit: contain;
}

.benefits-mazda article {
  background: var(--paper);
  padding-inline: 0;
}
.brand-mazda .service-picture-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}
.brand-mazda .service-picture-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 170px auto;
  padding: 22px;
  background: var(--panel);
  gap: 18px 12px;
}
.brand-mazda .service-picture-card h3 {
  font-family: Oswald, sans-serif;
  font-size: 1.5rem;
}
.brand-mazda .service-picture-art {
  grid-column: 1 / -1;
  grid-row: 2;
}
.brand-mazda .service-picture-price {
  grid-column: 1;
  grid-row: 3;
  font-size: 1rem;
}
.brand-mazda .service-picture-arrow {
  grid-column: 2;
  grid-row: 3;
}

.m-fleet {
  padding-block: 50px;
}
.m-fleet > header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 30px;
  margin-bottom: 24px;
}
.m-fleet h2 {
  font-size: 2.6rem;
}
.m-fleet-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--panel);
}
.m-fleet-model {
  min-width: 0;
  scroll-snap-align: start;
}
.m-fleet-model .model-media {
  border-radius: 0;
}
.m-fleet-model > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font:
    700 1.65rem/1.2 Oswald,
    sans-serif;
  padding-top: 14px;
}
.m-fleet-model > span svg {
  width: 20px;
  height: 20px;
}
.m-fleet-model:hover > span {
  color: var(--accent);
}
.m-service-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 60px;
  padding-block: 18px 34px;
}
.m-service-heading h2 {
  font-size: clamp(2.7rem, 4.4vw, 4.3rem);
  line-height: 1.1;
}
.m-service-chapter {
  border-top: 1px solid var(--line);
  padding-block: 34px;
}
.m-service-chapter:nth-of-type(even) {
  background: var(--panel);
}
.m-chapter-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.7fr;
  gap: 80px;
}
.m-chapter-layout > header {
  align-self: start;
  position: sticky;
  top: 24px;
}
.m-chapter-layout h3 {
  font:
    700 clamp(2.1rem, 3.2vw, 3.2rem)/1.1 Oswald,
    sans-serif;
  letter-spacing: -0.02em;
  max-width: 350px;
}
.m-chapter-layout > header p {
  font-size: var(--text-small);
  max-width: 33ch;
  color: var(--muted);
  margin-top: 20px;
}
.m-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 20px;
  align-items: baseline;
  gap: 22px;
  padding-block: 17px;
  border-bottom: 1px solid var(--line);
}
.m-price-row:first-child {
  padding-top: 4px;
}
.m-price-row:last-child {
  border-bottom: 0;
}
.m-price-row > span {
  font-size: 1rem;
  line-height: 1.5;
}
.m-price-row strong {
  white-space: nowrap;
  font-size: var(--text-small);
  font-weight: 700;
}
.m-price-row svg {
  width: 20px;
  height: 20px;
  align-self: center;
}
.m-price-row:hover > span {
  color: var(--accent);
}
.m-workshop-story {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--accent);
  color: var(--accent-ink);
  margin-top: 28px;
}
.m-workshop-image {
  min-width: 0;
}
.m-workshop-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.m-workshop-copy {
  padding: 48px clamp(32px, 5vw, 75px);
}
.m-workshop-copy h2 {
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1.1;
}
.m-workshop-copy ol {
  list-style: none;
  counter-reset: repair;
  padding: 0;
  margin: 32px 0 0;
}
.m-workshop-copy li {
  counter-increment: repair;
  position: relative;
  padding-left: 36px;
  margin-top: 24px;
}
.m-workshop-copy li::before {
  content: counter(repair);
  position: absolute;
  left: 0;
  top: 0;
  font:
    700 1.5rem/1.2 Oswald,
    sans-serif;
}
.m-workshop-copy h3 {
  font-size: 1.05rem;
  line-height: 1.4;
}
.m-workshop-copy li p {
  font-size: var(--text-small);
  line-height: 1.65;
  margin-top: 9px;
}
.m-owner-note {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 30px 70px;
  padding-block: 60px;
}
.m-owner-note h2 {
  font-size: clamp(2.5rem, 4vw, 3.7rem);
  line-height: 1.1;
}
.m-owner-note figure {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
}
.m-owner-note img {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
}
.m-owner-note > div p {
  font-size: var(--text-small);
  color: var(--muted);
  margin-top: 16px;
}
.m-owner-note > div p:first-child {
  margin-top: 0;
}
.m-trust-close {
  border-top: 2px solid var(--accent);
  background: var(--panel);
  padding-block: 48px 56px;
}
.m-arrival {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.m-arrival > .trust-reviews,
.m-arrival > .trust-location {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
.m-arrival > .trust-reviews {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.m-arrival .trust-review-intro {
  padding: 0;
}
.m-arrival .trust-review-intro h2,
.m-arrival .trust-location-heading h2 {
  font-size: 3.2rem;
  line-height: 1.1;
}
.m-arrival .trust-review-intro h2 > span {
  display: inline;
}
.m-arrival .trust-review-intro > p {
  font-size: var(--text-small);
  margin-top: 16px;
}
.m-arrival .trust-platform-links {
  display: flex;
  max-width: none;
  margin-top: 20px;
  gap: 12px;
}
.m-arrival .trust-platform {
  flex: 1;
  min-width: 0;
  padding: 14px;
  min-height: 58px;
  gap: 10px;
}
.m-arrival .trust-platform > span {
  display: none;
}
.m-arrival .trust-platform > svg {
  margin-left: auto;
}
.m-arrival .trust-platform .trust-yandex-logo {
  width: 92px;
}
.m-arrival .trust-reviews-widget {
  width: 100%;
  min-width: 0;
  max-width: none;
}
.m-arrival .trust-reviews-widget iframe {
  height: 620px;
  border-radius: 0;
}
.m-arrival .trust-location-heading.wrap,
.m-arrival .trust-map-layout.wrap {
  width: 100%;
}
.m-arrival .trust-location-heading {
  display: block;
  margin-bottom: 25px;
}
.m-arrival .trust-location-heading p {
  margin-top: 12px;
  font-size: var(--text-small);
}
.m-arrival .trust-location-contact {
  margin-top: 22px;
}
.m-arrival .trust-location-contact > a {
  font-size: 1.5rem;
}

.brand-mazda .site-footer {
  border-top: 1px solid var(--line);
}
@media (max-width: 1000px) {
  .m-fleet-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .brand-mazda .service-picture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .m-header {
    gap: 20px;
  }
  .m-header > nav {
    gap: 12px;
    font-size: var(--text-small);
  }
  .m-drive-heading h1 {
    font-size: 3.2rem;
  }
  .m-drive-grid {
    grid-template-columns: minmax(300px, 1fr) minmax(0, 1.2fr);
    gap: 24px;
  }
  .m-chapter-layout {
    gap: 40px;
  }
  .m-workshop-copy {
    padding: 36px 28px;
  }
  .m-arrival {
    gap: 30px;
  }
  .m-arrival .trust-platform-links {
    display: grid;
  }
}
@media (max-width: 700px) {
  .brand-mazda .service-picture-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .brand-mazda .wordmark {
    font-size: 1.15rem;
    gap: 9px;
  }
  .m-header {
    grid-template-columns: 1fr auto auto;
    min-height: 80px;
    gap: 12px;
  }
  .m-header .wordmark {
    grid-column: 1;
  }
  .m-header > nav {
    display: none;
  }
  .m-header .header-phone {
    grid-column: 2;
    font-size: var(--text-small);
    white-space: nowrap;
  }
  .m-header .mobile-menu {
    display: block;
    grid-column: 3;
  }
  .m-header .mobile-menu nav {
    display: block;
  }
  .m-drive {
    padding-block: 24px 30px;
  }
  .m-drive-heading {
    margin-bottom: 20px;
  }
  .m-drive-heading h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
    line-height: 1.08;
  }
  .m-drive-heading > div {
    margin-top: 14px;
  }
  .m-drive-heading p {
    font-size: var(--text-small);
  }
  .m-drive-heading .text-link {
    font-size: var(--text-small);
    gap: 10px;
  }
  .m-drive-heading .text-link svg {
    width: 18px;
  }
  .m-drive-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .m-booking-rail .consultation-form {
    padding: 20px;
  }
  .m-booking-rail .consultation-heading h2 {
    font-size: 1.55rem;
  }
  .m-booking-rail .consultation-fields {
    margin-top: 16px;
    gap: 12px;
  }
  .m-booking-rail .consultation-fields input {
    min-height: 48px;
  }
  .m-booking-rail .form-consent {
    margin-top: 16px;
  }
  .m-booking-rail .consultation-submit {
    margin-top: 16px;
  }
  .m-booking-rail .consultation-privacy {
    margin-top: 10px;
  }
  .m-drive-picture {
    width: 100%;
    order: -1;
  }
  .m-fleet {
    padding-block: 32px;
  }
  .m-fleet > header {
    gap: 20px;
    margin-bottom: 20px;
  }
  .m-fleet h2 {
    font-size: 2.15rem;
  }
  .m-fleet-track {
    grid-auto-columns: 86%;
    gap: 16px;
    padding-bottom: 15px;
  }
  .m-fleet-model > span {
    font-size: 1.4rem;
    padding-top: 11px;
  }
  .m-service-heading {
    display: block;
    padding-block: 8px 28px;
  }
  .m-service-heading h2 {
    font-size: 2.5rem;
  }
  .m-service-chapter {
    padding-block: 28px;
  }
  .m-chapter-layout {
    display: block;
  }
  .m-chapter-layout > header {
    position: static;
  }
  .m-chapter-layout h3 {
    font-size: 2.25rem;
    max-width: none;
  }
  .m-chapter-layout > header p {
    font-size: var(--text-small);
    max-width: 38ch;
    margin-top: 14px;
  }
  .m-chapter-rows {
    margin-top: 24px;
  }
  .m-price-row {
    grid-template-columns: minmax(0, 1fr) auto 16px;
    gap: 12px;
    padding-block: 15px;
  }
  .m-price-row > span {
    font-size: var(--text-small);
  }
  .m-price-row strong {
    font-size: var(--text-small);
  }
  .m-price-row svg {
    width: 16px;
    height: 16px;
  }
  .m-workshop-story {
    display: flex;
    flex-direction: column;
    margin-top: 0;
  }
  .m-workshop-image img {
    height: 270px;
  }
  .m-workshop-copy {
    padding: 32px 20px 38px;
  }
  .m-workshop-copy h2 {
    font-size: 2.8rem;
  }
  .m-workshop-copy ol {
    margin-top: 25px;
  }
  .m-workshop-copy li {
    margin-top: 22px;
    padding-left: 30px;
  }
  .m-workshop-copy h3 {
    font-size: 1rem;
  }
  .m-workshop-copy li p {
    font-size: var(--text-small);
  }
  .m-owner-note {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-block: 38px;
  }
  .m-owner-note h2 {
    font-size: 2.5rem;
  }
  .m-owner-note figure {
    width: 100%;
  }
  .m-owner-note img {
    aspect-ratio: 1.5;
  }
  .m-owner-note > div p {
    font-size: var(--text-small);
  }
  .m-trust-close {
    padding-block: 35px 40px;
  }
  .m-arrival {
    display: flex;
    flex-direction: column;
    gap: 38px;
  }
  .m-arrival .trust-review-intro h2,
  .m-arrival .trust-location-heading h2 {
    font-size: 2.8rem;
  }
  .m-arrival .trust-platform-links {
    display: flex;
  }
  .m-arrival .trust-platform {
    padding: 12px;
  }
  .m-arrival .trust-reviews-widget iframe {
    height: 620px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .m-fleet-track {
    scroll-snap-type: none;
  }
}
