.hero {
  container-type: inline-size;
}

.hero__frame {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(8px, 5.56cqi, 80px);
}

.hero__card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1280 / 596;
  min-height: min-content;
  overflow: hidden;
  border-radius: clamp(20px, 2.22cqi, 32px);
  background: var(--bg);
}

.hero__media {
  position: absolute;
  inset: 0;
  -webkit-mask: url("/assets/img/hero-mask.svg") no-repeat center / 100% 100%;
  mask: url("/assets/img/hero-mask.svg") no-repeat center / 100% 100%;
}

.hero__photo,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__photo {
  object-fit: cover;
  object-position: center 28%;
}

.hero__shade {
  background: rgba(18, 12, 8, 0.55);
}

.hero__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(24px, 3.33cqi, 48px);
  width: min(1110px, 100%);
  padding: clamp(40px, 6.94cqi, 100px) clamp(20px, 6.25cqi, 90px);
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid rgba(252, 151, 9, 0.5);
  border-radius: 999px;
  background: rgba(252, 151, 9, 0.23);
  color: var(--orange);
  font-family: Oswald, sans-serif;
  font-size: clamp(10px, 1.11cqi, 16px);
  font-weight: 600;
  line-height: 24px;
  text-transform: uppercase;
}

.hero__badge-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
}

.hero__title {
  margin: 0;
  color: var(--white);
  font-size: clamp(30px, 4.17cqi, 60px);
  font-weight: 800;
  line-height: 1.28;
}

.hero__title-accent {
  color: var(--orange);
}

.hero__lead {
  max-width: min(690px, 47.9cqi);
  margin: 0;
  color: var(--white);
  font-size: clamp(10px, 1.11cqi, 16px);
  font-weight: 400;
  line-height: 1.375;
  letter-spacing: -0.32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 60px;
  padding: 2px 2px 2px 24px;
  border-radius: 52px;
  box-shadow: 0 1px 6px rgba(33, 33, 33, 0.2);
  font-size: clamp(11px, 1.25cqi, 18px);
  font-weight: 700;
  line-height: 26px;
  white-space: nowrap;
}

.hero__btn--phone {
  color: var(--ink);
  background: var(--white);
}

.hero__btn--ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.hero__btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange);
}

.hero__btn--ghost .hero__btn-icon img {
  transform: rotate(90deg);
}

.hero__score {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 12.5%;
  aspect-ratio: 1;
  border-radius: 20%;
  background: var(--ink);
  container-type: inline-size;
}

.hero__stars,
.hero__rate,
.hero__reviews,
.hero__laurel {
  grid-area: 1 / 1;
}

.hero__stars {
  width: 72%;
  align-self: start;
  margin-top: 6%;
}

.hero__laurel {
  width: 27%;
  height: auto;
  align-self: center;
}

.hero__laurel--left {
  justify-self: start;
  margin-left: 4%;
  transform: scaleX(-1);
}

.hero__laurel--right {
  justify-self: end;
  margin-right: 4%;
}

.hero__rate,
.hero__reviews {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.hero__rate {
  color: var(--orange);
  font-size: 35.6cqi;
  letter-spacing: 0.03em;
  transform: translateY(8%);
}

.hero__reviews {
  align-self: end;
  margin-bottom: 14%;
  color: var(--white);
  font-size: 11cqi;
  letter-spacing: 0.03em;
}

@media (min-width: 901px) {
  .hero__title-accent {
    display: block;
  }
}

@media (max-width: 900px) {
  .hero__frame {
    padding: 0 8px 32px;
  }

  .hero__card {
    align-items: stretch;
    aspect-ratio: 377 / 458;
    border-radius: calc(24 / 377 * (100cqi - 16px));
    container-type: inline-size;
  }

  .hero__media {
    -webkit-mask-image: url("/assets/img/hero-mask-m.svg");
    mask-image: url("/assets/img/hero-mask-m.svg");
  }

  .hero__body {
    align-items: flex-start;
    gap: calc(16 / 377 * 100cqi);
    padding: calc(40 / 377 * 100cqi) calc(20 / 377 * 100cqi) calc(20 / 377 * 100cqi);
    text-align: left;
  }

  .hero__badge {
    gap: calc(12 / 377 * 100cqi);
    height: calc(32 / 377 * 100cqi);
    padding: 0 calc(16 / 377 * 100cqi);
    font-size: calc(14 / 377 * 100cqi);
    line-height: calc(24 / 377 * 100cqi);
  }

  .hero__badge-dot {
    width: calc(4 / 377 * 100cqi);
    height: calc(4 / 377 * 100cqi);
  }

  .hero__title {
    font-size: calc(30 / 377 * 100cqi);
    line-height: calc(38 / 377 * 100cqi);
  }

  .hero__title-accent {
    display: inline;
  }

  .hero__lead {
    max-width: none;
    font-size: calc(13.5 / 377 * 100cqi);
    line-height: calc(20 / 377 * 100cqi);
    letter-spacing: calc(-0.4 / 377 * 100cqi);
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: calc(16 / 377 * 100cqi);
    margin-top: calc(16 / 377 * 100cqi);
  }

  .hero__btn {
    gap: calc(16 / 377 * 100cqi);
    height: calc(56 / 377 * 100cqi);
    padding: calc(2 / 377 * 100cqi) calc(2 / 377 * 100cqi) calc(2 / 377 * 100cqi) calc(24 / 377 * 100cqi);
    border-radius: calc(52 / 377 * 100cqi);
    font-size: calc(16 / 377 * 100cqi);
    line-height: calc(26 / 377 * 100cqi);
  }

  .hero__btn-icon {
    width: calc(54 / 377 * 100cqi);
    height: calc(54 / 377 * 100cqi);
  }

  .hero__btn-icon img {
    width: calc(24 / 377 * 100cqi);
    height: calc(24 / 377 * 100cqi);
  }

  .hero__score {
    width: 31.3%;
  }
}

.stats {
  container-type: inline-size;
}

.stats__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(24px, 2.78cqi, 40px) clamp(8px, 5.56cqi, 80px);
  list-style: none;
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.39cqi, 20px);
  text-align: center;
}

.stats__item + .stats__item {
  border-left: 1px solid rgba(0, 0, 0, 0.3);
}

.stats__value,
.stats__label {
  margin: 0;
}

.stats__value {
  font-family: Oswald, sans-serif;
  font-size: clamp(32px, 6.39cqi, 92px);
  font-weight: 600;
  line-height: 0.815;
  /* "10 500+" fills its column to the pixel below 900px; keep the number on one line. */
  white-space: nowrap;
}

.stats__label {
  font-size: clamp(12px, 1.11cqi, 16px);
  line-height: 1.375;
  letter-spacing: -0.32px;
}

@media (max-width: 900px) {
  .stats__list {
    align-items: start;
    padding: calc(32 / 393 * 100cqi) calc(8 / 393 * 100cqi);
  }

  .stats__item {
    gap: calc(8 / 393 * 100cqi);
    padding: 0 calc(12 / 393 * 100cqi);
  }

  .stats__item--locks {
    order: -1;
  }

  .stats__item + .stats__item {
    border-left: 0;
  }

  .stats__item--locks,
  .stats__item--clients {
    align-self: stretch;
    border-right: 1px solid rgba(0, 0, 0, 0.3);
  }

  .stats__value {
    font-size: calc(32 / 393 * 100cqi);
    line-height: calc(26 / 393 * 100cqi);
  }

  .stats__label {
    font-size: calc(12 / 393 * 100cqi);
    line-height: calc(16 / 393 * 100cqi);
  }
}

/* Shared section head: badge, h2 with orange accent, lead. */

/* Breadcrumbs (service and contact heroes) */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-family: "Nunito Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.32px;
}

.crumbs__home {
  color: var(--orange);
  text-decoration: none;
}

.crumbs__home:hover {
  text-decoration: underline;
}

.sect-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid rgba(252, 151, 9, 0.5);
  border-radius: 30px;
  background: rgba(252, 151, 9, 0.23);
  color: var(--orange);
  font-family: Oswald, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-transform: uppercase;
  white-space: nowrap;
}

.sect-title {
  margin: 0;
  color: #000;
  font-size: clamp(28px, 3.33cqi, 48px);
  font-weight: 800;
  line-height: 1.25;
}

.sect-title__accent {
  display: block;
  color: var(--orange);
}

.sect-lead {
  margin: 0;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.32px;
}

@media (max-width: 900px) {
  .sect-head {
    gap: 12px;
  }

  .badge {
    height: 32px;
    padding: 0 12px;
    font-size: 14px;
    line-height: 20px;
  }

  .sect-title {
    font-size: 28px;
    line-height: 36px;
  }

  .sect-lead {
    font-size: 14px;
    line-height: 20px;
  }
}

/* Advantages */

.adv {
  container-type: inline-size;
}

.adv__frame {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4.17cqi, 60px);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(40px, 6.25cqi, 90px) clamp(16px, 5.56cqi, 80px);
}

.adv__title {
  max-width: 594px;
}

.adv__lead {
  max-width: 712px;
}

.adv__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2.08cqi, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.adv__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 246px;
  padding: 26px;
  border: 1px solid transparent;
  border-radius: 32px;
  background:
    linear-gradient(#fff, var(--bg)) padding-box,
    linear-gradient(var(--orange) 55%, rgba(252, 151, 9, 0)) border-box;
}

.adv__card:hover {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(var(--orange), var(--orange)) border-box;
}

.adv__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  border-radius: 20px;
  background: var(--orange);
}

.adv__name {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  line-height: 28px;
}

.adv__text {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.32px;
}

@media (max-width: 900px) {
  .adv__title {
    max-width: none;
  }

  /* One column: the card is 361px wide in the 393 frame; everything inside scales with it. */
  .adv__grid {
    grid-template-columns: 1fr;
    gap: calc(12 / 361 * (100cqi - 32px));
  }

  .adv__card {
    min-height: 0;
    padding: calc(26 / 361 * (100cqi - 32px));
    border-radius: calc(32 / 361 * (100cqi - 32px));
  }

  .adv__icon {
    width: calc(72 / 361 * (100cqi - 32px));
    height: calc(72 / 361 * (100cqi - 32px));
    margin-bottom: calc(24 / 361 * (100cqi - 32px));
    border-radius: calc(20 / 361 * (100cqi - 32px));
  }

  .adv__icon img {
    width: calc(32 / 361 * (100cqi - 32px));
    height: calc(32 / 361 * (100cqi - 32px));
  }

  .adv__name {
    margin-bottom: calc(10 / 361 * (100cqi - 32px));
    font-size: calc(20 / 361 * (100cqi - 32px));
    line-height: calc(28 / 361 * (100cqi - 32px));
  }

  .adv__text {
    font-size: calc(14 / 361 * (100cqi - 32px));
    line-height: calc(20 / 361 * (100cqi - 32px));
    letter-spacing: calc(-0.32 / 361 * (100cqi - 32px));
  }
}

.badge__dot {
  width: 4px;
  height: 4px;
  background: var(--orange);
}

/* Services */

.svc {
  container-type: inline-size;
  background: var(--white);
}

.svc__frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 4.17cqi, 60px);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(40px, 5.56cqi, 80px) clamp(16px, 5.56cqi, 80px);
}

.svc .sect-title {
  color: var(--ink);
}

.svc__lead {
  max-width: 576px;
}

.svc__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.78cqi, 40px);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.svc__card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding: 2px;
  overflow: hidden;
  border: 1px solid var(--orange);
  border-radius: 32px;
  background: linear-gradient(#fff, rgba(255, 255, 255, 0));
  color: var(--ink);
  text-decoration: none;
}

.svc__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
}

.svc__name {
  margin: 0;
  font-size: clamp(16px, 1.39cqi, 20px);
  font-weight: 800;
  line-height: 1.4;
}

.svc__text {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.32px;
}

.svc__media {
  position: relative;
  display: block;
  margin-top: auto;
  aspect-ratio: 396 / 232;
  overflow: hidden;
  border-radius: 30px 0 0 30px;
}

.svc__slot {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  aspect-ratio: 396 / 232;
  overflow: hidden;
  border-radius: 29px;
}

.svc__photo {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--w);
  max-width: none;
  height: var(--h);
  object-fit: cover;
}

.svc__price {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0 0 2px 2px;
  border-radius: 0 18px 0 20px;
  background: var(--white);
}

.svc__price-pill {
  display: flex;
  align-items: baseline;
  gap: 4px;
  height: 36px;
  padding: 0 14px;
  border-radius: 32px;
  background: var(--orange);
  font-family: Oswald, sans-serif;
  font-weight: 700;
  line-height: 36px;
  text-transform: uppercase;
  white-space: nowrap;
}

.svc__price-small {
  font-size: 12px;
}

.svc__price-num {
  font-size: 22px;
}

.svc__corner {
  position: absolute;
}

.svc__corner--price-below {
  top: 38px;
  right: 0;
}

.svc__corner--price-left {
  top: 0;
  left: -21px;
}

.svc__go {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 2px 1px 1px 2px;
  border-radius: 30px 0 26px 0;
  background: var(--white);
}

.svc__go-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50px;
  background: var(--orange);
  transition: background-color 0.2s;
}

.svc__go-btn img {
  transform: rotate(90deg);
}

.svc__corner--go-above {
  right: 0;
  bottom: 59px;
  transform: rotate(90deg);
}

.svc__corner--go-left {
  left: -28px;
  bottom: 0;
  transform: rotate(90deg);
}

.svc__call {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(400px, 100%);
}

.svc__call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 72px;
  padding: 0 24px;
  border-radius: 52px;
  background: var(--orange);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  text-decoration: none;
}

.svc__call-note {
  margin: 0;
  font-family: "Nunito Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.32px;
  text-align: center;
}

@media (max-width: 900px) {
  .svc__grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .svc__name {
    font-size: 20px;
  }

  .svc__media {
    aspect-ratio: 357 / 232;
  }
}

/* Steps */

.steps {
  container-type: inline-size;
}

.steps__frame {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4.17cqi, 60px);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(40px, 5.56cqi, 80px) clamp(16px, 5.56cqi, 80px);
}

.steps__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.steps__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.steps__title {
  max-width: 712px;
}

.steps__title .sect-title__accent {
  display: inline;
}

.steps__lead {
  flex: 0 1 400px;
}

.steps__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.steps__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 26px;
  border-radius: 20px;
  background: var(--orange);
}

.steps__glyph {
  position: relative;
  width: 32px;
  height: 32px;
}

.steps__glyph img {
  position: absolute;
  top: 0;
  left: 0;
}

.steps__glyph--car img,
.steps__glyph--money img {
  top: 1.42px;
  left: 1.42px;
}

.steps__glyph--money img {
  top: 4.08px;
}

.steps__num,
.steps__name,
.steps__text {
  margin: 0;
}

.steps__num {
  color: var(--orange);
  font-family: Oswald, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-transform: uppercase;
}

.steps__name {
  margin: 2px 0 12px;
  font-size: 20px;
  font-weight: 800;
  line-height: 28px;
}

.steps__text {
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.32px;
}

@media (max-width: 900px) {
  .steps__head {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }

  .steps__intro {
    align-items: center;
  }

  .steps__title {
    max-width: none;
  }

  .steps__title .sect-title__accent {
    display: block;
  }

  .steps__lead {
    flex: none;
  }

  .steps__list {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps__text {
    font-size: 14px;
    line-height: 20px;
  }
}

/* Call-to-action banner */

.cta {
  container-type: inline-size;
}

.cta__frame {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(8px, 5.56cqi, 80px);
}

.cta__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 3.33cqi, 48px);
  padding: clamp(50px, 5.56cqi, 80px) clamp(16px, 5.56cqi, 80px);
  overflow: hidden;
  border-radius: 32px;
  background: var(--ink);
}

.cta__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 582px;
  overflow: hidden;
  background: #000;
}

.cta__bg img {
  position: absolute;
  top: -69px;
  left: 0;
  width: 1280px;
  max-width: none;
  height: 720px;
  object-fit: cover;
  opacity: 0.4;
}

.cta__head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.cta__title {
  max-width: 556px;
  color: var(--white);
}

.cta__lead {
  max-width: 454px;
  color: var(--white);
  font-family: "Nunito Sans", sans-serif;
  font-weight: 500;
}

.cta__actions {
  position: relative;
  display: flex;
  gap: 16px;
}

.cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 60px;
  padding: 0 2px 0 24px;
  border-radius: 52px;
  box-shadow: 0 1px 6px rgba(33, 33, 33, 0.2);
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
  text-decoration: none;
  white-space: nowrap;
}

.cta__btn--phone {
  background: var(--white);
  color: var(--ink);
}

.cta__btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.cta__btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50px;
  background: var(--orange);
}

.cta__btn--ghost .cta__btn-icon img {
  transform: rotate(90deg);
}

@media (max-width: 900px) {
  .cta__head {
    gap: 12px;
  }

  .cta__title {
    max-width: none;
  }

  .cta__actions {
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .cta__lead {
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
  }
}

/* Reviews */

.reviews {
  container-type: inline-size;
}

.reviews__frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 2.78cqi, 40px);
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(40px, 5.56cqi, 80px) clamp(16px, 5.56cqi, 80px);
}

.reviews__title {
  max-width: 630px;
  color: var(--ink);
  text-align: center;
}

.reviews__track {
  display: flex;
  gap: 40px;
  width: 100%;
  overflow-x: auto;
  container-type: inline-size;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.reviews__track::-webkit-scrollbar {
  display: none;
}

.reviews__track img {
  -webkit-user-drag: none;
  pointer-events: none;
}

.reviews__track.is-draggable {
  cursor: grab;
}

.reviews__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

/*
 * Card size follows the track width: 361px track (393 frame) gives the mobile card,
 * a 1280px track gives the desktop card. --d is how far the track is past 361px.
 * Width grows slowly until three cards fit, then it is a third of the track, max 400px.
 */
.reviews__card {
  --d: clamp(0px, 100cqi - 361px, 919px);
  display: flex;
  flex: 0 0 min(100cqi, 400px, max(361px + var(--d) * 0.029201, (100cqi - 80px) / 3));
  flex-direction: column;
  gap: calc(20px + var(--d) * 0.0043526);
  min-height: calc(282px + var(--d) * 0.161045);
  padding: calc(20px + var(--d) * 0.0043526);
  border: 1px solid transparent;
  border-radius: 32px;
  background:
    linear-gradient(#fff, var(--bg)) padding-box,
    linear-gradient(var(--orange) 55%, rgba(252, 151, 9, 0)) border-box;
  scroll-snap-align: start;
}

.reviews__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: calc(20px + var(--d) * 0.0043526);
  border-bottom: 1px solid rgba(26, 122, 82, 0.12);
  color: #222;
  font-family: Roboto, sans-serif;
}

.reviews__name,
.reviews__date,
.reviews__text {
  margin: 0;
}

.reviews__name {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0.32px;
}

.reviews__date {
  margin-top: 4px;
  font-size: 14px;
  line-height: 20px;
}

.reviews__stars {
  display: flex;
  flex: none;
  gap: 1px;
}

.reviews__text {
  font-size: calc(16px + var(--d) * 0.0043526);
  line-height: calc(22px + var(--d) * 0.0065288);
  letter-spacing: calc(-0.32px + var(--d) * 0.0003482);
}

.reviews__nav {
  display: flex;
  gap: 20px;
}

.reviews__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #e4e4e7;
  border-radius: 52px;
  background: var(--white);
  cursor: pointer;
}

.reviews__arrow:disabled {
  cursor: default;
}

.reviews__arrow--prev img {
  transform: rotate(180deg);
}

/* Mobile frame gutters: 16px for content sections, 8px for the banner, as in the 393 frame. */

@media (max-width: 900px) {
  .adv__frame,
  .svc__frame,
  .steps__frame,
  .reviews__frame {
    padding-inline: 16px;
  }

  .cta__frame {
    padding-inline: 8px;
  }
}

/*
 * One-column layout (<=900px): section heads and steps scale from the 393 frame
 * instead of keeping mobile pixel sizes on a wide screen. 100cqi is the section width.
 */
@media (max-width: 900px) {
  .sect-head,
  .cta__head {
    gap: calc(12 / 393 * 100cqi);
  }

  .steps__head,
  .steps__intro {
    gap: calc(20 / 393 * 100cqi);
  }

  .badge {
    gap: calc(12 / 393 * 100cqi);
    height: calc(32 / 393 * 100cqi);
    padding: 0 calc(12 / 393 * 100cqi);
    border-radius: 999px;
    font-size: calc(14 / 393 * 100cqi);
    line-height: calc(20 / 393 * 100cqi);
  }

  .badge__dot {
    width: calc(4 / 393 * 100cqi);
    height: calc(4 / 393 * 100cqi);
  }

  .sect-title {
    font-size: calc(28 / 393 * 100cqi);
    line-height: calc(36 / 393 * 100cqi);
  }

  .sect-lead {
    font-size: calc(14 / 393 * 100cqi);
    line-height: calc(20 / 393 * 100cqi);
    letter-spacing: calc(-0.32 / 393 * 100cqi);
  }

  .steps__list {
    gap: calc(32 / 393 * 100cqi);
  }

  .steps__icon {
    width: calc(72 / 393 * 100cqi);
    height: calc(72 / 393 * 100cqi);
    margin-bottom: calc(26 / 393 * 100cqi);
    border-radius: calc(20 / 393 * 100cqi);
  }

  .steps__glyph {
    width: calc(32 / 393 * 100cqi);
    height: calc(32 / 393 * 100cqi);
  }

  .steps__glyph img {
    width: 100%;
    height: 100%;
  }

  .steps__glyph--car img,
  .steps__glyph--money img {
    top: 4.44%;
    left: 4.44%;
    width: 91.15%;
  }

  .steps__glyph--car img {
    height: 91.15%;
  }

  .steps__glyph--money img {
    top: 12.75%;
    height: 78.65%;
  }

  .steps__num {
    font-size: calc(16 / 393 * 100cqi);
    line-height: calc(24 / 393 * 100cqi);
  }

  .steps__name {
    margin: calc(2 / 393 * 100cqi) 0 calc(12 / 393 * 100cqi);
    font-size: calc(20 / 393 * 100cqi);
    line-height: calc(28 / 393 * 100cqi);
  }

  .steps__text {
    font-size: calc(14 / 393 * 100cqi);
    line-height: calc(20 / 393 * 100cqi);
    letter-spacing: calc(-0.32 / 393 * 100cqi);
  }
}

/*
 * Hover states (Figma 796:1025): orange and white fills darken by an 8% black layer,
 * the glass pill brightens to 22% white, and the corner arrow turns 45deg to point right.
 */
.hero__btn-icon,
.cta__btn-icon,
.svc__go-btn,
.svc__call-btn,
.hero__btn--ghost,
.cta__btn--ghost,
.reviews__arrow {
  transition: background-color 0.2s, background-image 0.2s;
}

.hero__btn-icon img,
.cta__btn-icon img,
.svc__go-btn img {
  transition: transform 0.2s;
}

@media (hover: hover) {
  .hero__btn:hover .hero__btn-icon,
  .cta__btn:hover .cta__btn-icon,
  .svc__call-btn:hover,
  .reviews__arrow:not(:disabled):hover {
    background-image: linear-gradient(rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.08));
  }

  .hero__btn--ghost:hover,
  .cta__btn--ghost:hover {
    background-color: rgba(255, 255, 255, 0.22);
  }

  .hero__btn--ghost:hover .hero__btn-icon img,
  .cta__btn--ghost:hover .cta__btn-icon img,
  .svc__card:hover .svc__go-btn img {
    transform: rotate(135deg);
  }
}

/* Service card hover (Figma 724:6825 -> 724:6848): the corner cutout widens into a white
   "Детальніше" pill and the arrow turns right. The text slides out from under the circle. */
.svc__go {
  display: flex;
  align-items: center;
}

.svc__go-text {
  max-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
  white-space: nowrap;
  transition: max-width 0.3s, padding 0.3s, margin 0.3s;
}

@media (hover: hover) {
  .svc__card:hover .svc__go-text {
    max-width: 160px;
    margin-right: 16px;
    padding-left: 24px;
  }
}

/* Review card hover (Figma 721:5013): white fill and a solid orange border. */
@media (hover: hover) {
  .reviews__card:hover {
    background:
      linear-gradient(#fff, #fff) padding-box,
      linear-gradient(var(--orange), var(--orange)) border-box;
  }
}
