@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');
@import url('./variables.css');
@import url('./custom-select.css');

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  line-height: 24px;
  color: var(--clr-black);
}

a {
  transition: 0.3s all;
}

.w-45 {
  width: 45%;
}

.w-55 {
  width: 55%;
}

.text-left {
  text-align: left;
}

.p-relative {
  position: relative;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: auto;
  padding: 0 15px;
}

.bold {
  font-weight: bold;
}

.title {
  position: relative;
  text-align: center;
  font-size: 32px;
  line-height: 40px;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.title:after {
  content: '';
  position: absolute;
  left: calc(50% - 30px);
  bottom: 0;
  width: 60px;
  height: 3px;
  background-color: var(--clr-orange);
}

.section {
  margin: 60px 0;
}

/* header */
.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
}

.header-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.header-menu__item a {
  color: var(--black);
  text-decoration: none;
}

.header-menu__item:hover a {
  text-decoration: underline;
}

.logo {
  text-transform: capitalize;
  font-size: 24px;
  font-weight: bold;
  margin-right: 20px;
}
/* end header */

/* content */
.attention,
.info {
  display: flex;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--clr-red);
  border-radius: var(--border-radius);
  margin: 10px 0;
}

.info {
  border: 1px solid var(--clr-orange);
  font-weight: bold;
  font-size: 14px;
}

.attention:before,
.info:before {
  content: '!';
  color: var(--clr-red);
  font-size: 45px;
  font-weight: bold;
  padding-right: 10px;
}

.info:before {
  color: var(--clr-orange);
  font-size: 25px;
}

.cars-info::before {
  font-size: 45px;
}

.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
  padding: 15px 0 5px;
}

.content ul {
  padding-left: 15px;
  list-style: none;
}

.content ol {
  padding-left: 20px;
}

.content ol li ul {
  padding-left: 0;
}

.cars {
  .content ul li {
    &:not(:first-child) {
      margin-block-start: 10px;
    }
  }
}

.content ul li {
  display: flex;
}

.content ul li:before {
  content: '\2022';
  color: var(--clr-orange);
  font-weight: bold;
  display: inline-block;
  font-size: 20px;
  width: 16px;
  margin-left: -14px;
  position: absolute;
}
/* end content */

/* services */
.service-filters {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.services {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 2rem;
}

.service-item {
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px rgba(21, 24, 28, 0.16);
  background-color: #fff;
}

.service-item {
  ul {
    list-style: none;

    li {
      &:not(:first-child) {
        margin-block-start: 10px;
      }

      display: flex;
      align-items: center;
      gap: 8px;

      svg {
        max-width: 24px;
        width: 100%;
        height: 24px;
        fill: var(--clr-orange);
      }
    }
  }
}

.service-item__contact {
  margin-block-start: 10px;
  display: flex;
  align-items: center;
  gap: 8px;

  svg {
    max-width: 24px;
    width: 100%;
    height: 24px;
    fill: var(--clr-orange);
  }

  a {
    color: inherit;
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }
  }
}

.service-item__row {
  margin-top: 0.35rem;
}
/* end services */

.skeleton {
  background-color: #e5e7eb;
  border-radius: var(--border-radius);
  animation: pulse 1.5s infinite;
  height: 150px;
  box-shadow: none;
}

.animate-pulse {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}

@media screen and (max-width: 768px) {
  .services {
    grid-template-columns: 1fr;
  }

  .service-row {
    width: 100%;
  }
}
