/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .nav {
    gap: 14px;
  }

  .header__phone-number {
    font-size: 12px;
  }

  .hero__map {
    right: -10vw;
    width: 64vw;
    opacity: 0.75;
  }

  .hero__title {
    font-size: clamp(46px, 6.8vw, 92px);
  }

  .why__grid {
    gap: 36px;
  }

  .services__grid {
    gap: 12px;
  }

  .service-card {
    min-height: 322px;
  }
}

@media (max-width: 1080px) {
  .nav {
    display: none;
  }

  .burger {
    display: block;
  }

  .header__actions {
    gap: 12px;
  }

  .hero__inner {
    gap: 32px;
  }

  .hero__phone-card {
    width: 310px;
  }

  .hero__map {
    right: 0;
    width: 66vw;
    opacity: 0.5;
  }

  .why__years-num {
    font-size: 120px;
  }

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

  .calc__shell {
    grid-template-columns: 1fr;
  }

  .calc__form {
    border-right: 0;
    border-bottom: 1px solid rgba(247, 242, 234, 0.12);
  }

  .tariffs__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contacts__phones {
    max-width: 640px;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .footer__phones {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 20px;
    text-align: left;
  }

  .footer__phones span {
    flex-basis: 100%;
    margin-top: 0;
  }
}

@media (max-width: 860px) {
  .hero {
    padding-top: 120px;
  }

  .hero__inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
  }

  .hero__phone-card {
    width: 100%;
    max-width: 420px;
    margin-top: 8px;
  }

  .hero__stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stat {
    padding: 14px 0 14px 20px;
  }

  .hero-stat:nth-child(3),
  .hero-stat:nth-child(4) {
    padding-top: 15px;
    border-top: 1px solid rgba(247, 242, 234, 0.1);
  }

  .hero-stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .why__grid {
    grid-template-columns: 1fr;
  }

  .why__card {
    position: relative;
    top: 0;
    min-height: 380px;
  }

  .section-head--split {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-head--split .section-lead {
    justify-self: start;
    margin-bottom: 0;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .process__note {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .process__note .btn {
    justify-self: start;
  }

  .contacts__bottom {
    flex-wrap: wrap;
  }

  .footer__bottom {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .grain {
    display: none;
  }

  .header {
    padding: 12px 0;
  }

  .header__phone {
    display: none;
  }

  .logo__mark {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .logo__text strong {
    font-size: 12px;
  }

  .hero {
    padding-top: 104px;
  }

  .hero__inner {
    padding-bottom: 26px;
  }

  .hero__title {
    font-size: clamp(40px, 11.5vw, 58px);
    line-height: 0.94;
  }

  .hero__lead {
    margin-top: 20px;
    font-size: 13px;
  }

  .hero__actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-top: 26px;
  }

  .hero__actions .btn {
    width: 100%;
    min-height: 52px;
  }

  .hero__phone-card {
    max-width: none;
    margin-top: 16px;
    padding: 22px;
  }

  .phone-lockup__number {
    font-size: 24px;
  }

  .hero__stats {
    padding: 14px 0 18px;
  }

  .hero-stat__value {
    font-size: 19px;
  }

  .hero__map {
    top: 42%;
    right: -55vw;
    width: 150vw;
    opacity: 0.32;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(13, 8, 9, 0.92) 0%, rgba(13, 8, 9, 0.6) 70%, rgba(13, 8, 9, 0.5) 100%),
      linear-gradient(0deg, #0d0809 0%, transparent 38%, transparent 78%, rgba(13, 8, 9, 0.4) 100%);
  }

  .section {
    padding: 64px 0;
  }

  .h2 {
    font-size: clamp(34px, 9vw, 48px);
  }

  .kicker {
    margin-bottom: 18px;
    font-size: 9px;
  }

  .section-lead {
    margin-top: 18px;
    font-size: 13px;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .feature {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 20px 0;
  }

  .feature h3 {
    font-size: 22px;
  }

  .why__card {
    min-height: 360px;
    padding: 26px;
  }

  .why__years-num {
    font-size: 108px;
  }

  .why__stamp {
    right: 18px;
    bottom: 18px;
    width: 88px;
    height: 88px;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .service-card {
    min-height: 0;
    padding: 24px;
  }

  .service-card__top {
    margin-bottom: 24px;
  }

  .service-card h3 {
    max-width: 18ch;
    font-size: 24px;
  }

  .service-card__bottom {
    margin-top: 20px;
    padding-top: 18px;
  }

  .calc__form {
    padding: 20px;
  }

  .calc__result {
    padding: 24px 20px;
  }

  .calc__field {
    margin-top: 22px;
  }

  .calc__row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stepper {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    height: 56px;
  }

  .stepper__value {
    font-size: 24px;
  }

  .input-suffix input {
    height: 56px;
    font-size: 24px;
  }

  .calc__price {
    font-size: 58px;
  }

  .calc__result.is-night .calc__price {
    font-size: 36px;
  }

  .tariff-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 16px;
    padding: 14px 0;
  }

  .tariff-row__name {
    font-size: 12px;
  }

  .tariff-row__price {
    font-size: 18px;
  }

  .faq__item summary {
    padding: 15px 0;
    font-size: 12px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step {
    padding: 20px 0 20px 28px;
    border-top: 0;
    border-left: 1px solid rgba(247, 242, 234, 0.18);
  }

  .step__line {
    top: 26px;
    left: -4px;
  }

  .step__num {
    margin-bottom: 10px;
  }

  .step h3 {
    font-size: 26px;
  }

  .step p {
    max-width: 34ch;
  }

  .process__note {
    margin-top: 36px;
  }

  .contacts__grid {
    gap: 36px;
  }

  .contacts__hours,
  .contacts__geo {
    margin-top: 24px;
  }

  .phone-card {
    min-height: 84px;
    padding: 18px 64px 18px 20px;
  }

  .phone-card__number {
    font-size: 26px;
  }

  .phone-card__arrow {
    right: 18px;
    width: 34px;
    height: 34px;
  }

  .phone-card--main {
    min-height: 190px;
    padding: 24px 20px 64px;
  }

  .phone-card--main .phone-lockup__number {
    font-size: 28px;
  }

  .phone-card--main .phone-card__arrow {
    right: 20px;
    bottom: 20px;
  }

  .contacts__bottom {
    flex-direction: column;
    gap: 8px;
  }

  .footer {
    padding-bottom: 88px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__nav {
    grid-template-columns: 1fr 1fr;
  }

  .footer__phones {
    grid-column: auto;
    flex-direction: column;
    gap: 6px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
  }

  .mobile-bar {
    display: flex;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 18px;
  }

  .hero__title {
    font-size: clamp(36px, 12vw, 46px);
  }

  .hero__phone-card {
    padding: 18px;
  }

  .phone-lockup__number {
    font-size: 21px;
  }

  .phone-lockup__circle {
    border-width: 1px;
  }

  .hero__phone-extra {
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero-stat__value {
    font-size: 17px;
  }

  .hero-stat__label {
    font-size: 7px;
  }

  .why__years-num {
    font-size: 92px;
  }

  .why__card-text {
    font-size: 18px;
  }

  .why__stamp {
    width: 76px;
    height: 76px;
    opacity: 0.8;
  }

  .calc__price {
    font-size: 50px;
  }

  .calc__result.is-night .calc__price {
    font-size: 32px;
  }

  .phone-card--main .phone-lockup__number {
    font-size: 24px;
  }

  .phone-card__number {
    font-size: 23px;
  }

  .mobile-bar a {
    font-size: 10px;
  }
}
