@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --red: #f03b3b;
  --ink: #161c2d;
  --muted: #6e727d;
  --band: #f4f7fa;
  --night: #1b202f;
  --sky: #4ab8f8;
  --violet-shadow: rgba(71, 59, 240, 0.07);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--muted);
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  line-height: 1.875;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
iframe {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

h2 {
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: -0.027em;
}

p {
  margin: 0;
}

.container {
  width: min(1170px, 90%);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  height: 110px;
  padding: 0 70px;
  transition: height 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  height: 70px;
  background: #fff;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.08);
}

.brand {
  display: block;
}

.logo {
  width: auto;
  height: 30px;
}

.icon {
  width: auto;
  height: 24px;
}

.logo-dark,
.icon {
  display: none;
}

.is-scrolled .logo-light {
  display: none;
}

.is-scrolled .logo-dark {
  display: block;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px;
  border: 2px solid var(--red);
  border-radius: 50px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: filter 0.2s ease;
}

.button:hover {
  filter: brightness(0.92);
}

.button-arrow {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  padding: 125px 0 75px;
  background: var(--night) url("images/hero.jpg") center / max(100%, 1920px) auto no-repeat;
  color: #fff;
}

.hero h1 {
  color: #fff;
  font-size: 90px;
  line-height: 1;
  letter-spacing: -0.027em;
}

.hero-intro {
  margin: 55px 0;
  padding: 0 100px 0 40px;
  border-left: 3px solid var(--red);
}

.documents {
  padding: 125px 0;
}

.documents-layout {
  display: grid;
  grid-template-columns: 45% 55%;
  align-items: start;
}

.documents-photos {
  position: relative;
}

.documents-car {
  width: calc(100% - 40px);
}

.documents-engine {
  position: absolute;
  top: 35px;
  left: calc(100% - 140px);
  width: 200px;
  height: 200px;
  border: 10px solid #fff;
  border-radius: 50%;
  box-shadow: 0 10px 45px rgba(71, 59, 240, 0.28);
  object-fit: cover;
}

.documents-text {
  padding-left: 160px;
}

.documents-text > p {
  margin: 20px 0;
}

.document-list {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.document {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 30px 10px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px var(--violet-shadow);
}

.document:nth-child(odd) {
  margin: 0 -20px 0 20px;
}

.document-icon {
  flex: none;
  width: 27px;
  height: 27px;
}

.document-icon circle {
  fill: var(--red);
}

.document-icon path {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.document h3 {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.027em;
}

.samples {
  padding: 100px 0;
  background: var(--band);
  text-align: center;
}

.samples-intro {
  max-width: 620px;
  margin: 20px auto;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  align-items: start;
  text-align: left;
}

.sample {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.sample img {
  width: 100%;
}

.sample-body {
  padding: 34px 25px 67px;
}

.sample h3 {
  margin-bottom: 5px;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.prices .container {
  padding: 10px;
}

.prices h2 {
  margin-bottom: 20px;
}

.price-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.price-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 10px;
}

.price-name {
  display: flex;
  align-items: center;
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.875;
}

.price-name::after {
  content: "";
  flex: 1;
  min-width: 20px;
  margin: 0 15px 0 10px;
  border-bottom: 1px dashed #ccc;
}

.price-note {
  font-size: 14px;
  line-height: 1.875;
}

.price {
  justify-self: end;
  min-width: 50px;
  padding: 0 7px;
  border-radius: 50px;
  background: var(--sky);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
  white-space: nowrap;
}

.testimonial {
  position: relative;
  overflow: hidden;
  padding: 150px 0 100px;
  background: var(--band);
}

.testimonial::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(at 50% 100%, var(--red) -10%, var(--band) 35%);
  opacity: 0.5;
}

.testimonial .container {
  position: relative;
}

.testimonial-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: -55px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 135px 150px 50px 0;
  padding: 60px 35px;
  border-radius: 15px;
  background: #fff;
  text-align: center;
}

.quote-mark {
  width: 90px;
  margin-bottom: 40px;
}

.testimonial-card blockquote {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.027em;
}

.testimonial-avatar {
  width: 100px;
  height: 100px;
  margin-top: 40px;
  border-radius: 50%;
}

.testimonial-card figcaption {
  margin-top: 20px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.testimonial-photo {
  justify-self: end;
  width: calc(100% - 40px);
}

.gallery .container {
  padding: 10px 10px 25px;
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  display: flex;
  flex: 0 0 100%;
  justify-content: center;
  align-items: flex-start;
  margin: 0;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(237, 237, 237, 0.9);
  transform: translateY(-50%);
  cursor: pointer;
}

.carousel-arrow svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-previous {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 20px;
  margin-top: 19px;
}

.carousel-dots button {
  width: 6px;
  height: 6px;
  margin: 0 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #000;
  opacity: 0.2;
  cursor: pointer;
}

.carousel-dots button[aria-current="true"] {
  opacity: 1;
}

.map iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

.site-footer {
  padding: 80px 0;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 0 10px;
}

.footer-title {
  margin-bottom: 22px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.site-footer p {
  font-size: 17px;
  line-height: 2;
}

.site-footer p:not(.contact-line) {
  margin-bottom: 17px;
}

.facebook {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  border-radius: 50%;
  background: rgba(127, 127, 127, 0.2);
  color: var(--muted);
}

.facebook svg {
  width: 15px;
  height: 15px;
}

.facebook rect {
  fill: currentColor;
}

.facebook path {
  fill: #e5e5e5;
}

.contact-line {
  display: flex;
  align-items: center;
  margin-bottom: 3px;
}

.contact-line svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-right: 21px;
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-line a {
  color: inherit;
  text-decoration: none;
}

.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 1px 0 22px -9px rgba(0, 0, 0, 0.4);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal:not(.is-shown) {
    opacity: 0;
  }

  .reveal.is-shown {
    animation: fade-in 1.25s both;
    animation-delay: var(--delay, 0ms);
  }

  .reveal-up.is-shown {
    animation-name: fade-in-up;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1024px) {
  body {
    font-size: 14px;
  }

  h2 {
    font-size: 25px;
  }

  .site-header {
    height: 64px;
    padding: 0 29px;
  }

  .site-header.is-scrolled {
    height: 64px;
  }

  .logo,
  .is-scrolled .logo-dark {
    display: none;
  }

  .icon-light {
    display: block;
  }

  .is-scrolled .icon-light {
    display: none;
  }

  .is-scrolled .icon-dark {
    display: block;
  }

  .button {
    padding: 15px 35px;
    font-size: 13px;
  }

  .button-arrow {
    width: 12px;
    height: 12px;
  }

  .hero {
    padding: 100px 0 50px;
  }

  .hero h1 {
    font-size: 45px;
  }

  .hero-intro {
    margin: 30px 0;
    padding: 0 125px 0 25px;
  }

  .documents {
    padding: 75px 0;
  }

  .documents-photos {
    align-self: center;
    margin-bottom: 20px;
  }

  .documents-car {
    width: 100%;
  }

  .documents-engine {
    top: auto;
    bottom: 64px;
    left: calc(100% - 65px);
    width: 115px;
    height: 115px;
    border-width: 5px;
  }

  .documents-text {
    padding-left: 75px;
  }

  .document {
    gap: 10px;
    padding: 15px 15px 10px;
  }

  .document-icon {
    width: 22px;
    height: 22px;
  }

  .document h3 {
    font-size: 16px;
  }

  .samples {
    padding: 75px 0;
  }

  .samples-intro {
    max-width: none;
    padding: 0 100px;
  }

  .sample-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .sample {
    border-radius: 10px;
  }

  .sample-body {
    padding: 33px 25px 61px;
  }

  .sample h3 {
    margin-bottom: 6px;
    font-size: 15px;
  }

  .testimonial {
    padding: 75px 0;
  }

  .testimonial-layout {
    margin-top: -20px;
  }

  .testimonial-card {
    margin: 50px 80px 0 0;
    padding: 30px 20px 25px;
  }

  .quote-mark {
    width: 60px;
  }

  .testimonial-card blockquote {
    font-size: 17px;
  }

  .testimonial-avatar {
    width: 75px;
    height: 75px;
    margin-top: 20px;
  }

  .testimonial-card figcaption {
    font-size: 15px;
  }

  .testimonial-photo {
    justify-self: center;
    width: calc(100% - 20px);
  }

  .footer-title {
    margin-bottom: 17.6px;
    font-size: 16px;
  }
}

@media (max-width: 1023px) {
  .site-footer {
    padding: 50px 0;
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 100px 0 82px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-intro {
    margin: 20px 0 27px;
    padding: 0 25px;
  }

  .documents-layout {
    grid-template-columns: 1fr;
  }

  .documents-photos {
    align-self: start;
    margin-bottom: 0;
  }

  .documents-car {
    width: calc(100% - 30px);
  }

  .documents-engine {
    top: 85px;
    bottom: auto;
    left: calc(100% - 90px);
    width: 100px;
    height: 100px;
  }

  .documents-text {
    margin-top: 44px;
    padding: 0 25px 0 0;
  }

  .document {
    flex-direction: column;
    gap: 18px;
  }

  .samples-intro {
    padding: 0;
  }

  .sample-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .price-name {
    font-size: 14px;
    font-weight: 400;
  }

  .price-name::after {
    display: none;
  }

  .price-note {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .prices .button {
    margin: 7px 0;
  }

  .testimonial {
    padding: 75px 0 0;
  }

  .testimonial-layout {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .testimonial-card {
    margin: 10px 0 50px;
    padding: 40px 25px;
  }

  .testimonial-photo {
    width: calc(100% - 50px);
  }

  .gallery .container {
    padding-bottom: 10px;
  }

  .carousel-dots {
    margin-top: 7px;
  }

  .site-footer {
    padding: 30px 0 47px;
  }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .back-to-top {
    display: none;
  }
}
