:root {
  --pad: clamp(56px, 8vw, 120px);
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.wrap {
  padding: 0 var(--inset);
}

.sec__title {
  font-size: clamp(32px, 4.2vw, 64px);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.btn--ink {
  background: var(--ink);
  color: var(--white);
}

/* Buying or selling */

.deal {
  padding: var(--pad) 0;
  background: var(--orange);
  color: var(--ink);
  transition: background-color 0.5s ease, color 0.5s ease;
}

.deal[data-side="sell"] {
  background: var(--blue);
  color: var(--white);
}

.deal__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 40px;
}

.deal__title {
  font-size: clamp(34px, 4.6vw, 72px);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -0.02em;
}

.deal__pick {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 20px);
}

.deal__word {
  padding: 6px 4px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 800;
  font-stretch: 125%;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.deal[data-side="buy"] [data-pick="buy"],
.deal[data-side="sell"] [data-pick="sell"] {
  opacity: 1;
}

.switch--deal {
  width: clamp(116px, 10vw, 156px);
}

.deal__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 1.6vw, 26px);
  margin-top: clamp(28px, 4vw, 56px);
}

.deal__card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(22px, 2.6vw, 40px);
  border: 2px solid currentColor;
  border-radius: 26px;
  cursor: pointer;
  transform: scale(0.97);
  transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease, transform 0.45s ease, box-shadow 0.45s ease;
}

.deal[data-side="buy"] [data-card="buy"],
.deal[data-side="sell"] [data-card="sell"] {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 26px 50px rgba(11, 27, 51, 0.24);
  cursor: default;
  transform: none;
}

.deal__name {
  font-size: clamp(24px, 2.4vw, 38px);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.1;
}

.deal__steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.deal__steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.4;
  counter-increment: step;
}

.deal__steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.deal[data-side="buy"] [data-card="buy"] li::before {
  border-color: var(--orange);
  background: var(--orange);
}

.deal[data-side="sell"] [data-card="sell"] li::before {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.deal__card .btn {
  align-self: flex-start;
  margin-top: auto;
  border-color: currentColor;
  background: none;
  color: inherit;
}

.deal[data-side="buy"] [data-card="buy"] .btn,
.deal[data-side="sell"] [data-card="sell"] .btn {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

/* About */

.about {
  padding: var(--pad) 0;
  background: var(--night);
  color: var(--white);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}

.about__text > p {
  max-width: 54ch;
  margin-top: 18px;
  font-size: clamp(17px, 1.3vw, 20px);
  color: rgba(255, 255, 255, 0.88);
}

.about__say {
  margin: clamp(24px, 3vw, 40px) 0 0;
  padding: 2px 0 2px 22px;
  border-left: 6px solid var(--orange);
}

.about__say p {
  max-width: 24ch;
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.2;
}

.about__why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 1.2vw, 18px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.why {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: clamp(130px, 11vw, 170px);
  padding: clamp(18px, 1.8vw, 28px);
  border-radius: 20px;
}

.why h3 {
  font-size: clamp(19px, 1.6vw, 25px);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.15;
}

.why p {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.4;
}

.why--orange {
  background: var(--orange);
  color: var(--ink);
}

.why--blue {
  background: var(--blue);
  color: var(--white);
}

.why--sky {
  background: var(--sky);
  color: var(--ink);
}

.why--white {
  background: var(--white);
  color: var(--ink);
}

/* Import */

.import {
  padding: var(--pad) 0;
  background: var(--blue);
  color: var(--white);
}

.import__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px clamp(28px, 4vw, 72px);
  align-items: end;
}

.import__say p {
  max-width: 50ch;
  font-size: clamp(17px, 1.3vw, 20px);
}

.import__say .import__count {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
  font-weight: 600;
}

.import__count strong {
  color: var(--white);
  font-size: clamp(34px, 3.6vw, 56px);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -0.02em;
}

.import__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 18px);
  margin: clamp(28px, 4vw, 56px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.import__step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: clamp(170px, 15vw, 230px);
  padding: clamp(18px, 1.9vw, 28px);
  border-radius: 22px;
  counter-increment: step;
}

.import__step::before {
  content: counter(step);
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: auto;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  place-items: center;
}

.import__step h3 {
  font-size: clamp(19px, 1.7vw, 26px);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.12;
}

.import__step p {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.4;
}

.import__step--white {
  background: var(--white);
  color: var(--ink);
}

.import__step--orange {
  background: var(--orange);
  color: var(--ink);
}

.import__step--sky {
  background: var(--sky);
  color: var(--ink);
}

.import__step--night {
  background: var(--night);
  color: var(--white);
}

.import__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 40px);
}

/* Contact */

.contact {
  padding: var(--pad) 0;
  background: var(--sky);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(14px, 1.6vw, 26px);
  align-items: start;
  margin-top: clamp(24px, 3.4vw, 48px);
}

.form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 2.4vw, 38px);
  border-radius: 26px;
  background: var(--white);
}

.form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
  font-size: 15px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 2px solid #C7D3E3;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  font-weight: 500;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  outline: none;
}

.field [aria-invalid="true"] {
  border-color: #C4321F;
}

.form__note {
  min-height: 1.5em;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--blue);
}

.form__note.is-wrong {
  color: #B02A18;
}

.form__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form__acts .btn {
  cursor: pointer;
  font-family: inherit;
}

.btn--edge {
  border-color: var(--ink);
  background: var(--white);
  color: var(--ink);
}

.form__how {
  font-size: 14px;
  color: rgba(11, 27, 51, 0.72);
}

.contact__side {
  display: grid;
  gap: clamp(12px, 1.4vw, 20px);
}

.contact__card {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 2.2vw, 32px);
  border-radius: 26px;
  background: var(--white);
}

.contact__where {
  text-wrap: balance;
  font-size: clamp(21px, 1.9vw, 29px);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.15;
}

.contact__hours {
  display: grid;
  margin: 0;
}

.contact__hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 2px solid var(--tile);
  font-size: 17px;
}

.contact__hours dt {
  font-weight: 500;
}

.contact__hours dd {
  margin: 0;
  font-weight: 800;
}

.contact__score {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--tile);
  font-weight: 500;
  text-decoration: none;
}

.contact__score strong {
  font-size: 22px;
  font-weight: 800;
  font-stretch: 125%;
  color: var(--blue);
}

.contact__ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.1vw, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.way {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  min-height: 96px;
  padding: 16px 18px;
  border-radius: 18px;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.way:hover {
  transform: translateY(-3px);
}

.way span {
  font-size: 14px;
  font-weight: 600;
}

.way strong {
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.way--orange {
  background: var(--orange);
  color: var(--ink);
}

.way--blue {
  background: var(--blue);
  color: var(--white);
}

.way--night {
  background: var(--ink);
  color: var(--white);
}

.way--white {
  background: var(--white);
  color: var(--ink);
}

.contact__map {
  overflow: hidden;
  height: clamp(240px, 24vw, 340px);
  border-radius: 26px;
  background: var(--white);
}

.contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: clamp(22px, 3vw, 40px);
}

.social__say {
  font-size: clamp(19px, 1.6vw, 25px);
  font-weight: 800;
  font-stretch: 112%;
}

.social__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social__list a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.social__list a:hover {
  background: var(--blue);
}

/* Footer */

.foot {
  padding: clamp(28px, 4vw, 56px) var(--inset) 22px;
  background: var(--night);
  color: rgba(255, 255, 255, 0.82);
}

.foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
}

.foot__logo {
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--white);
}

.foot__logo img {
  width: auto;
  height: 32px;
}

.foot__line {
  font-weight: 600;
  color: var(--white);
}

.foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-left: auto;
}

.foot__nav a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.foot__nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.foot__end {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 15px;
}

.foot__end a {
  color: var(--white);
  font-weight: 700;
}

@media (max-width: 900px) {
  .deal__cards,
  .about__grid,
  .import__head,
  .contact__grid,
  .form__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .import__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .import__step {
    min-height: 150px;
  }

  .deal__card {
    transform: none;
  }

  .deal__card .btn {
    align-self: stretch;
  }

  .form__acts .btn {
    flex: 1 1 100%;
  }

  .foot__nav {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .about__why {
    grid-template-columns: minmax(0, 1fr);
  }

  .why {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .deal,
  .deal__card,
  .way {
    transition: none;
  }
}
