/* Allcar Tech Service — identidade limitada a branco, vermelho e cinza-escuro. */
:root {
  color-scheme: light;
  --color-white: #ffffff;
  --color-red: #d71920;
  --color-dark: #252525;
  --line: rgba(37, 37, 37, 0.16);
  --line-light: rgba(255, 255, 255, 0.2);
  --muted: rgba(37, 37, 37, 0.7);
  --muted-light: rgba(255, 255, 255, 0.74);
  --soft-dark: rgba(37, 37, 37, 0.045);
  --page-width: 1240px;
  --page-gutter: clamp(22px, 5.5vw, 84px);
  --header-height: 82px;
  --radius: 2px;
  --font-body: Arial, Helvetica, sans-serif;
  --ease-out: cubic-bezier(0.2, 0.75, 0.25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  background: var(--color-white);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--color-dark);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
}

svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(100% - (var(--page-gutter) * 2), var(--page-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 12px 16px;
  transform: translateY(-160%);
  color: var(--color-white);
  background: var(--color-dark);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--color-red);
  outline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--color-red);
  outline-offset: 4px;
}

.section {
  padding-block: clamp(76px, 9vw, 132px);
  scroll-margin-top: calc(var(--header-height) + 14px);
}

.section--dark {
  color: var(--color-white);
  background: var(--color-dark);
}

.section--red {
  color: var(--color-white);
  background: var(--color-red);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: var(--color-white);
}

.site-header__inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  min-height: 48px;
  line-height: 1;
}

.brand__name {
  position: relative;
  width: fit-content;
  color: var(--color-dark);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -1.5px;
}

.brand__name::after {
  position: absolute;
  right: -8px;
  bottom: 2px;
  width: 4px;
  height: 17px;
  background: var(--color-red);
  content: "";
}

.brand__descriptor {
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2.1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--color-dark);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav__link::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--color-red);
  content: "";
  transition: transform 180ms var(--ease-out);
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="location"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: transparent;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-dark);
  transition: transform 180ms var(--ease-out);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 21px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms var(--ease-out);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(1px);
}

.button--primary {
  color: var(--color-white);
  background: var(--color-red);
}

.button--primary:hover {
  border-color: var(--color-red);
  background: var(--color-red);
}

.button--secondary {
  border-color: var(--line);
  color: var(--color-dark);
  background: var(--color-white);
}

.button--secondary:hover {
  border-color: var(--color-dark);
  background: var(--soft-dark);
}

.button--small {
  min-height: 44px;
  padding: 11px 14px;
  font-size: 12px;
}

.button--small svg {
  width: 17px;
  height: 17px;
}

.button--large {
  min-height: 62px;
  padding-inline: 23px;
  font-size: 15px;
}

.button--large svg {
  width: 21px;
  height: 21px;
}

.hero {
  position: relative;
  display: flex;
  min-height: min(780px, calc(100svh - var(--header-height)));
  align-items: center;
  padding-block: clamp(54px, 7.2vw, 96px) clamp(74px, 8vw, 112px);
  overflow: hidden;
  background: var(--color-white);
}

.hero__layout {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(44px, 7vw, 104px);
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 590px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 23px;
  color: var(--color-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.65px;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow__line {
  display: inline-block;
  width: 25px;
  height: 2px;
  flex: 0 0 auto;
  background: currentColor;
}

.eyebrow--light {
  color: var(--color-white);
}

.hero h1,
.section h2 {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 70px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.045;
}

.hero h1 span,
.section h2 span {
  color: var(--color-red);
}

.hero__description {
  max-width: 470px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 31px;
}

.hero__actions svg {
  width: 18px;
  height: 18px;
}

.hero__note {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 594px;
  justify-self: end;
  padding: 0 0 20px 20px;
  animation: hero-visual-enter 700ms var(--ease-out) 100ms both;
}

[data-enter] {
  animation: hero-copy-enter 650ms var(--ease-out) both;
}

.photo-slot {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-white);
  background-color: var(--color-dark);
  isolation: isolate;
}

.photo-slot::before,
.gallery-slot::before {
  position: absolute;
  z-index: 0;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  content: "";
}

/* Com a foto real, descomente e ajuste o arquivo: background-image: url("../assets/images/hero/hero-oficina.jpg"); background-size: cover; background-position: center. */

.photo-slot--hero {
  z-index: 1;
  aspect-ratio: 1.04;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(18px, 2vw, 28px);
  border: 1px solid rgba(37, 37, 37, 0.08);
}

.photo-slot--hero::after {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  width: 41%;
  height: 70%;
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
  content: "";
}

.photo-slot__topline,
.photo-slot__bottomline {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.45px;
}

.photo-slot__center {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.photo-slot__index {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(255, 255, 255, 0.045);
  font-size: clamp(160px, 24vw, 340px);
  font-weight: 800;
  letter-spacing: -0.12em;
  line-height: 0.8;
  transform: translate(-56%, -53%);
  pointer-events: none;
}

.photo-slot__icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: var(--color-white);
}

.photo-slot__icon svg {
  width: 25px;
  height: 25px;
  opacity: 0.8;
}

.photo-slot__title {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 700;
}

.photo-slot__hint {
  margin-top: 3px;
  color: var(--muted-light);
  font-size: 12px;
}

.hero__visual-accent {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  width: 38%;
  height: 32%;
  background: var(--color-red);
}

.hero__scroll {
  position: absolute;
  bottom: 25px;
  left: max(var(--page-gutter), calc((100vw - var(--page-width)) / 2));
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.hero__scroll span {
  width: 23px;
  height: 1px;
  background: var(--color-red);
  transition: width 180ms var(--ease-out);
}

.hero__scroll:hover span {
  width: 35px;
}

@keyframes hero-copy-enter {
  from { opacity: 0; transform: translateY(13px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-visual-enter {
  from { opacity: 0; transform: translateY(13px); }
  to { opacity: 1; transform: translateY(0); }
}

.about__layout {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.93fr);
  gap: clamp(55px, 9vw, 138px);
}

.about__visual {
  position: relative;
  padding: 18px 0 0 18px;
}

.photo-slot--about {
  min-height: 420px;
  aspect-ratio: 1.08;
  background-color: rgba(255, 255, 255, 0.06);
}

.photo-slot--about .photo-slot__index {
  top: 4px;
  left: 14px;
  color: rgba(255, 255, 255, 0.04);
  font-size: clamp(150px, 18vw, 240px);
  transform: none;
}

.photo-slot__corner {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: var(--muted-light);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.35px;
}

.about__visual-rule {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 41%;
  height: 25%;
  border-top: 2px solid var(--color-red);
  border-left: 2px solid var(--color-red);
}

.about h2 {
  max-width: 510px;
  font-size: clamp(36px, 4.5vw, 60px);
}

.section--dark h2 span {
  color: var(--color-white);
}

.about__lead {
  max-width: 470px;
  margin: 25px 0 0;
  color: var(--color-white);
  font-size: 18px;
  line-height: 1.6;
}

.about__body {
  max-width: 480px;
  margin: 15px 0 0;
  color: var(--muted-light);
  font-size: 14px;
}

.content-status {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  margin-top: 23px;
  padding: 7px 10px;
  border: 1px solid var(--line-light);
  color: var(--muted-light);
  font-size: 11px;
}

.content-status > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-red);
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  margin-top: 27px;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 700;
}

.text-link span {
  color: var(--color-red);
  transition: transform 180ms var(--ease-out);
}

.text-link:hover span {
  transform: translate(2px, -2px);
}

.text-link--light {
  color: var(--color-white);
}

.section-heading {
  margin-bottom: clamp(35px, 5.2vw, 68px);
}

.section-heading--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
}

.section-heading h2,
.location h2 {
  font-size: clamp(36px, 4.5vw, 59px);
}

.section-heading .eyebrow {
  margin-bottom: 18px;
}

.section-heading__aside {
  max-width: 340px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 14px;
}

.section-heading--light h2,
.section-heading--light h2 span {
  color: var(--color-white);
}

.section-heading--light h2 span {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.65);
  text-decoration-thickness: 2px;
  text-underline-offset: 9px;
}

.section-heading--light .section-heading__aside {
  color: rgba(255, 255, 255, 0.84);
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  min-height: 140px;
  align-items: center;
  grid-template-columns: 48px 64px minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 42px);
  padding-block: 25px;
  border-bottom: 1px solid var(--line);
  transition: padding 180ms var(--ease-out), background-color 180ms ease;
}

.service-item:hover {
  padding-inline: 12px;
  background: var(--soft-dark);
}

.service-item__number {
  color: var(--color-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.service-item__mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--color-red);
}

.service-item__mark svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.45;
}

.service-item__copy h3,
.difference-item h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.service-item__copy p {
  max-width: 540px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.service-item__link {
  display: inline-flex;
  min-width: 118px;
  min-height: 44px;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: var(--color-dark);
  font-size: 12px;
  font-weight: 700;
}

.service-item__link span:last-child {
  color: var(--color-red);
  transition: transform 180ms var(--ease-out);
}

.service-item__link:hover span:last-child {
  transform: translate(2px, -2px);
}

.section-footnote {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.section-footnote span {
  color: var(--color-red);
  font-weight: 800;
}

.difference-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-light);
}

.difference-item {
  min-height: 178px;
  padding: 28px 28px 0 0;
}

.difference-item + .difference-item {
  padding-left: 28px;
  border-left: 1px solid var(--line-light);
}

.difference-item__number {
  display: inline-block;
  margin-bottom: 19px;
  color: var(--color-white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.difference-item h3 {
  font-size: 17px;
}

.difference-item p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gallery-slot {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 260px;
  align-items: flex-end;
  justify-content: space-between;
  aspect-ratio: 1.7;
  padding: clamp(18px, 2.3vw, 30px);
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-dark);
  isolation: isolate;
  transition: transform 200ms var(--ease-out);
}

.gallery-slot:hover {
  transform: translateY(-2px);
}

.gallery-slot--wide {
  grid-column: 1 / -1;
  aspect-ratio: 2.5;
}

.gallery-slot::after {
  position: absolute;
  z-index: -1;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  content: "";
}

.gallery-slot__number {
  position: absolute;
  top: 25px;
  left: 28px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.gallery-slot__label {
  max-width: calc(100% - 60px);
  font-size: 14px;
  font-weight: 700;
}

.gallery-slot__mark {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--color-white);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  transition: transform 180ms var(--ease-out), background-color 180ms ease;
}

.gallery-slot:hover .gallery-slot__mark {
  transform: rotate(90deg);
  background: var(--color-red);
}

.location__layout {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(50px, 8vw, 120px);
}

.location__copy h2 {
  max-width: 410px;
}

.location__intro {
  max-width: 390px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.location__detail {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-block: 27px;
}

.location__icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--color-red);
}

.location__icon svg {
  width: 20px;
  height: 20px;
}

.location__label,
.contact__label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.location__detail p {
  margin: 3px 0 0;
  font-size: 14px;
}

.location__note {
  max-width: 370px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.map-slot {
  position: relative;
  display: grid;
  min-height: 390px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--soft-dark);
  isolation: isolate;
}

.map-slot__grid {
  position: absolute;
  z-index: 0;
  inset: -15%;
  transform: rotate(-11deg);
}

.map-slot__grid span {
  position: absolute;
  display: block;
  background: var(--color-white);
}

.map-slot__grid span:nth-child(1),
.map-slot__grid span:nth-child(2) {
  top: 0;
  bottom: 0;
  width: 22px;
}

.map-slot__grid span:nth-child(1) { left: 29%; }
.map-slot__grid span:nth-child(2) { left: 69%; }

.map-slot__grid span:nth-child(3),
.map-slot__grid span:nth-child(4),
.map-slot__grid span:nth-child(5) {
  right: 0;
  left: 0;
  height: 18px;
}

.map-slot__grid span:nth-child(3) { top: 22%; }
.map-slot__grid span:nth-child(4) { top: 49%; }
.map-slot__grid span:nth-child(5) { top: 78%; }

.map-slot__pin {
  position: absolute;
  z-index: 2;
  top: 37%;
  left: 53%;
  display: grid;
  width: 54px;
  height: 64px;
  place-items: center;
  color: var(--color-red);
  transform: translate(-50%, -50%);
}

.map-slot__pin svg {
  width: 32px;
  height: 40px;
  fill: var(--color-red);
  stroke: var(--color-white);
  stroke-width: 1.5;
}

.map-slot__label {
  position: absolute;
  top: calc(37% + 43px);
  left: 50%;
  max-width: calc(100% - 32px);
  padding: 8px 11px;
  color: var(--color-dark);
  background: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  transform: translateX(-50%);
}

.map-slot__coordinates {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.contact__layout {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(50px, 10vw, 145px);
}

.contact h2 {
  max-width: 620px;
  font-size: clamp(37px, 4.8vw, 64px);
}

.contact__copy > p:last-child {
  max-width: 480px;
  margin: 22px 0 0;
  color: var(--muted-light);
  font-size: 16px;
}

.contact__actions {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 25px;
}

.contact__phone {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
}

.contact__label {
  color: var(--muted-light);
}

.contact__phone a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  color: var(--color-white);
  font-size: 18px;
  font-weight: 700;
}

.contact__phone a:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-red);
  text-underline-offset: 5px;
}

.contact__status {
  max-width: 290px;
  color: var(--muted-light);
  font-size: 11px;
}

.site-footer {
  padding-block: 48px 20px;
  color: var(--color-white);
  background: var(--color-dark);
}

.site-footer__main {
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr auto auto;
  gap: clamp(20px, 3vw, 46px);
  padding-bottom: 37px;
}

.brand--footer .brand__name,
.brand--footer .brand__descriptor {
  color: var(--color-white);
}

.site-footer__tagline {
  margin: 0;
  color: var(--muted-light);
  font-size: 12px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.site-footer__nav a,
.site-footer__maps {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  color: var(--muted-light);
  font-size: 11px;
  transition: color 160ms ease;
}

.site-footer__nav a:hover,
.site-footer__maps:hover {
  color: var(--color-white);
  text-decoration: underline;
  text-decoration-color: var(--color-red);
  text-underline-offset: 4px;
}

.site-footer__maps {
  gap: 8px;
}

.site-footer__maps span {
  color: var(--color-red);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
  color: var(--muted-light);
  font-size: 10px;
}

.site-footer__phone {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 7px;
}

.site-footer__phone a {
  min-height: 28px;
  align-content: center;
  color: var(--color-white);
}

.site-footer__phone a:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-red);
  text-underline-offset: 3px;
}

.site-footer__phone-note {
  color: var(--muted-light);
}

.back-to-top {
  position: fixed;
  z-index: 90;
  right: max(20px, calc((100vw - var(--page-width)) / 2));
  bottom: 22px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--color-white);
  background: var(--color-dark);
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}

.back-to-top:hover {
  transform: translateY(-2px);
  background: var(--color-red);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 1500px) {
  :root { --page-width: 1320px; }
}

@media (max-width: 1080px) {
  :root { --header-height: 76px; }

  .site-nav { gap: 13px; }
  .site-nav__link { font-size: 12px; }
  .site-nav__action { padding-inline: 11px; }
  .site-nav__action svg { display: none; }
  .hero__layout { gap: 46px; }
  .hero h1 { font-size: clamp(40px, 5.5vw, 58px); }
  .site-footer__main { grid-template-columns: auto 1fr auto; }
  .site-footer__nav { grid-column: 1 / 3; grid-row: 2; }
  .site-footer__maps { grid-column: 3; grid-row: 2; }
}

@media (max-width: 900px) {
  :root { --header-height: 72px; }

  .site-header__inner { position: relative; }
  .menu-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: calc(var(--page-gutter) * -1);
    left: calc(var(--page-gutter) * -1);
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px var(--page-gutter) 22px;
    border-bottom: 1px solid var(--line);
    background: var(--color-white);
    box-shadow: 0 18px 25px rgba(37, 37, 37, 0.09);
  }

  html.has-js .site-nav:not(.is-open) { display: none; }

  .site-nav__link {
    min-height: 48px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }

  .site-nav__link::after { display: none; }
  .site-nav__action { margin-top: 14px; }
  .site-nav__action svg { display: block; }
  .hero { min-height: 0; padding-block: 66px 90px; }
  .hero__layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 0.88fr); gap: 32px; }
  .hero h1 { font-size: clamp(38px, 5.8vw, 52px); }
  .hero__actions { align-items: flex-start; flex-direction: column; }
  .hero__actions .button { min-width: 215px; }
  .photo-slot--about { min-height: 340px; }
  .about__layout { gap: 55px; }
  .section-heading--split { gap: 30px; }
  .difference-item { padding-right: 18px; }
  .difference-item + .difference-item { padding-left: 18px; }
  .location__layout { gap: 50px; }
  .map-slot { min-height: 340px; }
  .contact__layout { gap: 48px; }
}

@media (max-width: 680px) {
  :root {
    --page-gutter: 23px;
    --header-height: 68px;
  }

  body { font-size: 15px; }
  .section { padding-block: 72px; }
  .site-header__inner { gap: 12px; }
  .brand__name { font-size: 23px; }
  .brand__descriptor { font-size: 7px; }
  .hero { padding-block: 49px 72px; }
  .hero__layout { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .hero__copy { max-width: 550px; }
  .hero h1 { max-width: 530px; font-size: clamp(42px, 11vw, 58px); }
  .hero__description { max-width: 440px; margin-top: 19px; font-size: 16px; }
  .hero__actions { flex-direction: row; gap: 10px; margin-top: 23px; }
  .hero__actions .button { min-width: 0; }
  .button { min-height: 52px; padding-inline: 16px; font-size: 13px; }
  .hero__note { margin-top: 13px; }
  .hero__visual { width: 100%; max-width: 520px; justify-self: stretch; padding: 0 0 14px 14px; }
  .photo-slot--hero { aspect-ratio: 1.12; }
  .photo-slot__topline,
  .photo-slot__bottomline { font-size: 8px; }
  .photo-slot__title { font-size: 14px; }
  .photo-slot__index { font-size: 200px; }
  .hero__scroll { bottom: 17px; font-size: 9px; }
  .about__layout { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .about__visual { max-width: 500px; padding: 13px 0 0 13px; }
  .photo-slot--about { min-height: 0; aspect-ratio: 1.15; }
  .about__copy { max-width: 540px; }
  .about h2,
  .section-heading h2,
  .location h2 { font-size: clamp(37px, 10vw, 52px); }
  .about__lead { margin-top: 20px; font-size: 17px; }
  .about__body { font-size: 14px; }
  .section-heading { margin-bottom: 33px; }
  .section-heading--split { align-items: flex-start; flex-direction: column; gap: 16px; }
  .section-heading__aside { max-width: 460px; }
  .service-item {
    position: relative;
    min-height: 0;
    grid-template-columns: 34px 50px minmax(0, 1fr);
    gap: 13px;
    padding-block: 20px 57px;
  }
  .service-item:hover { padding-inline: 7px; }
  .service-item__number { align-self: start; padding-top: 5px; font-size: 10px; }
  .service-item__mark { width: 46px; height: 46px; }
  .service-item__mark svg { width: 23px; height: 23px; }
  .service-item__copy h3 { font-size: 16px; }
  .service-item__copy p { margin-top: 4px; font-size: 12px; }
  .service-item__link { position: absolute; right: 0; bottom: 8px; min-height: 40px; }
  .service-item__link span:last-child { margin-left: 3px; }
  .difference-list { grid-template-columns: minmax(0, 1fr); }
  .difference-item,
  .difference-item + .difference-item { min-height: 0; padding: 22px 0; border-bottom: 1px solid var(--line-light); border-left: 0; }
  .difference-item__number { margin-bottom: 9px; }
  .difference-item h3 { font-size: 17px; }
  .difference-item p { margin-top: 5px; }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .gallery-slot,
  .gallery-slot--wide { min-height: 220px; grid-column: auto; aspect-ratio: 1.38; padding: 20px; }
  .gallery-slot::after { inset: 9px; }
  .gallery-slot__number { top: 21px; left: 23px; }
  .location__layout { grid-template-columns: minmax(0, 1fr); gap: 35px; }
  .location__intro { margin-top: 15px; }
  .map-slot { min-height: 290px; }
  .contact__layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .contact h2 { font-size: clamp(39px, 10.5vw, 55px); }
  .contact__copy > p:last-child { font-size: 15px; }
  .contact__actions { gap: 19px; }
  .contact__actions .button { width: 100%; justify-content: space-between; }
  .contact__phone { width: 100%; padding-top: 4px; }
  .site-footer { padding-top: 35px; }
  .site-footer__main { grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding-bottom: 25px; }
  .site-footer__tagline { grid-column: 1 / -1; grid-row: 2; }
  .site-footer__nav { grid-column: 1 / -1; grid-row: 3; gap: 5px 16px; }
  .site-footer__maps { grid-column: 1 / -1; grid-row: 4; }
  .site-footer__bottom { align-items: flex-start; flex-direction: column; gap: 8px; font-size: 10px; }
  .site-footer__phone { align-items: flex-start; flex-direction: column; gap: 0; }
  .back-to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}

@media (max-width: 380px) {
  :root { --page-gutter: 18px; }
  .hero h1 { font-size: 40px; }
  .hero__actions { align-items: stretch; flex-direction: column; }
  .hero__actions .button { width: 100%; }
  .service-item { grid-template-columns: 26px 42px minmax(0, 1fr); gap: 10px; }
  .service-item__mark { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
