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

html {
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-overflow-scrolling: touch;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #282828;
  background-color: #ffffff;
  line-height: 1.5;
}

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

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

ul {
  margin: 0;
  padding-left: 1.2rem;
}

.no-scroll {
  overflow: hidden;
}

/* Swiper: выравнивание слайдов по вертикали по центру */
.swiper-wrapper {
  align-items: center;
}

.swiper-slide {
  display: flex;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  min-width: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  min-width: 200px;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, #1572d3 0%, #0f63b9 100%);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(13, 75, 149, 0.2);
}

.btn--primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: skewX(-20deg);
  animation: btn-shine 3s ease-in-out infinite;
}

@keyframes btn-shine {
  0% {
    left: -100%;
  }
  50% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}

.btn--primary:hover {
  background: linear-gradient(135deg, #1a7ee8 0%, #1572d3 100%);
}

.btn--primary:hover::before {
  animation: btn-shine 1.2s ease-in-out;
}

.btn--primary:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(13, 75, 149, 0.3);
}

.btn--primary:active::before {
  animation: none;
}

.btn--full {
  width: 100%;
}

.btn__icon-arrow {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 8px;
  vertical-align: middle;
  object-fit: contain;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo__img {
  display: block;
  height: 30px;
  width: auto;
  object-fit: contain;
}

.logo__img--footer {
  height: 36px;
}



/* Верхняя полоса меню: на всю ширину экрана, контент 1120px, фиксирована при скролле */
.header__top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  background-color: transparent;
  box-shadow: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  animation: headerSlideDown 0.6s ease-out forwards;
}

.header__top--scrolled {
  background-color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);

}

@keyframes headerSlideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.header__top-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.header {
  position: relative;
  overflow: visible;
  min-height: calc(100vh - 72px);
  max-height: 800px;
  padding-top: 72px;
  display: flex;
  flex-direction: column;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 18px;
  color: #484848;
}

.nav__link:hover {
  color: #1572d3;
}

.nav__mobile-contact {
  display: none;
}

.header__contact {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 18px;
  color: #484848;
}

.header__phone {
  white-space: nowrap;
}

.header__hero {
  display: grid;
  grid-template-columns: minmax(0, 600px) 1fr;
  align-items: center;
  gap: 48px;
  padding: 32px 0 24px 0;
  padding-left: max(20px, calc((100vw - 1120px) / 2 + 20px));
  position: relative;
  max-width: 100%;
  flex: 1;
  min-height: 0;
}

/* Фон-логотип на весь header */
.hero__bg-logo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("images/Big_logo.png") no-repeat 100% 0%;

}

.header__hero,
.hero__metrics {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.hero__badge-row {
  margin-bottom: 0;
  background-color: #ffffff;
  padding: 14px 32px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(19, 94, 172, 0.12);
  width: 100%;
  position: relative;
}

/* Swiper сам управляет layout; gap/justify конфликтуют с расчётами слайдов */
.hero__badge-row.swiper {
  overflow: hidden;
  min-width: 0;
  touch-action: pan-y pinch-zoom;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: #6d6d6d;
}

.hero__badge + .hero__badge {
  position: relative;
  padding-left: 18px;
}

.hero__badge + .hero__badge::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 24px;
  background-color: #e0e7f0;
}

.hero__badge-icon {
  width: 55px;
  height: 55px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.hero__badge:hover .hero__badge-icon {
  transform: translateY(-6px);
}

.hero__badge-icon-img {
  width: 32px;
  height: 32px;
  display: block;
}

.hero__title {
  font-size: clamp(28px, 3vw, 50px);
  font-weight: 600;
  margin: 0 0 16px;
  color: #1c1c1c;
  line-height: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero__title-accent {
  color: #1572d3;
  position: relative;
  display: inline-block;
}

.text-accent {
  color: #1572d3;
}

.hero__subtitle {
  margin: 0 0 32px;
  font-size: 18px;
  color: #444;
  font-weight: 400;
}

.hero__cta {
  margin-top: 8px;
}

.hero__image {
  position: relative;
  overflow: visible;
  min-height: 200px;
  z-index: 1;
}

.hero__image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: right center;
  margin-left: auto;
}



.hero__metrics {
  margin-top: auto;
  padding-bottom: 24px;
  flex-shrink: 0;
  transform: translateY(-50px);
}

.header__burger {
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #1c1c1c;
  border-radius: 999px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.header__burger--open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.header__burger--open span:nth-child(2) {
  opacity: 0;
}

.header__burger--open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.section {
  padding: 60px 0;
}

.section__badge {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
  padding: 8px 24px;
  border-radius: 8px;
  background-color: rgba(21, 114, 211, 0.1);
  color: #1572d3;
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
}

.section__title {
  margin: 0 0 32px;
  font-size: clamp(24px, 2.3vw, 38px);
  font-weight: 500;    line-height: 110%;
}

.section__text {
  margin: 0 0 16px;
  color: #444444;
}

#leasing-benefits .container,
.section--how-it-works .container {
  max-width: 900px;
  text-align: center;
  overflow: visible;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step__icon {
  width: 112px;
  height: 112px;
  border-radius: 16px;
  background-color: #ecf6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform 0.3s ease;
}

.step:hover .step__icon {
  transform: translateY(-6px);
}

.step__icon-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

.step__title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 500;
  line-height: 120%;
  max-width: 160px;
}

.step__text {
  margin: 0;
  font-size: 14px;
  color: #6d6d6d;
}

.brands {
  margin-top: 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 56px;
  align-items: center;
  width: 1120px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Swiper: убираем flex/gap, добавляем overflow и touch для мобильных */
.brands.swiper {
  display: block;
  overflow: hidden;
  min-width: 0;
  touch-action: pan-y pinch-zoom;
}

.brands.swiper .brands__logo {
  min-width: 0;
  width: 100%;
}

.brands__logo {
  min-width: 260px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.section--why-us {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  min-height: 600px;
  padding-left: 0;
  padding-right: 0;
}

.section--why-us__left {
  position: relative;
  min-height: 200px;
  overflow: hidden;
}

.section--why-us__image-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("images/Big_logo.png") no-repeat 0% 0%;
}

.section--why-us__image {
  position: relative;
  z-index: 1;
  overflow: visible;
  min-height: 200px;
}

.section--why-us__image-vector {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("images/Vector.png") no-repeat;
  background-size: cover;
  background-position: center;
}

.section--why-us__image img {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 90%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
  margin-right: auto;
}

.section--why-us__content {
  max-width: 545px;
  padding-top: 80px;
  padding-bottom: 80px;
  
  padding-right: 20px;
  text-align: left;
}

.section--why-us .section__badge {
  margin-left: 0;
  margin-right: auto;
}

.benefits {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.benefit {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: flex-start;
}

.benefit__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background-color: #ecf6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.benefit:hover .benefit__icon {
  transform: translateY(-6px);
}

.benefit__icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.benefit__title {
  margin: 0 0 8px;
  font-size: 20px;font-weight: 500;
}

.benefit__text {
  margin: 0;
  font-size: 16px;
  color: #6d6d6d;
}

.section--catalog {
  background-color: #ffffff;
}

#catalog .container,
.section--catalog .container {
  text-align: left;
}

.section--catalog .section__title {
  text-align: center;
}

.catalog-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  min-width: 0;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background-color: #ffffff;
  box-shadow: 0 12px 24px rgba(13, 75, 149, 0.16);
  overflow: hidden;
  min-width: 0;
  transition: transform 0.3s ease;
}

.catalog-card:hover {
  transform: translateY(-6px);
}

.catalog-card__image {
  padding: 8px 12px 0;
}

.catalog-card__image img {
  width: 100%;
  height: 206px;
  object-fit: cover;
}

.catalog-card__body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.catalog-card__header {
  display: flex;
  flex-direction: column;

}

.catalog-card__title {
  margin: 0;
  font-size: 14px;font-weight:500;
}

.catalog-card__meta {
  margin: 0;
  font-size: 12px;
  color: #777777;
}

.catalog-card__specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0px;
  font-size: 11px;
  color: #777777;
}

.catalog-card__spec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
}

.catalog-card__spec-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.catalog-card__footer {
  margin-top: auto;
  border-top: 1px solid #e1e1e1;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.catalog-card__price {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
}

.catalog-card__price-label {
  color: #777777;
}

.catalog-card__price-value {
  font-weight: 600;
}

.section--about {
  background-color: #f7fbff;
}

.section--about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: flex-start;
}

.section--about__text {
  max-width: 420px;
  text-align: left;
}

.section--about .section__badge {
  margin-left: 0;
  margin-right: auto;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.about-card {
  padding: 24px;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 12px 24px rgba(13, 75, 149, 0.12);
}

.about-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 12px;

  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.about-card:hover .about-card__icon {
  transform: translateY(-6px);
}

.about-card__icon-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
}

.about-card__title {
  margin: 0 0 8px;
  font-size: 16px;
}

.about-card__text {
  margin: 0;
  font-size: 14px;
  color: #666666;
}

.about-grid-dots {
  display: none;
}

.about-grid-wrap {
  display: contents;
}

.section--cta {
  position: relative;
  overflow: hidden;
  min-height: 556px;
}

.section--cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("images/Big_logo.png") no-repeat 100% 0%;
}

.section--cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 560px) 1fr;
  gap: 48px;
  align-items: center;
  padding-left: max(20px, calc((100vw - 1120px) / 2 + 20px));
  padding-right: 0;
  max-width: 100%;
}

.section--cta__text {
  max-width: 500px;
  text-align: left;
}

.section--cta .section__badge {
  margin-left: 0;
  margin-right: auto;
}

.section--cta__list {
  margin: 0 0 24px;
  padding-left: 1.1rem;
  color: #282828;
}

.section--cta__list li + li {
  margin-top: 4px;
}

.section--cta__image {
  position: relative;
  overflow: visible;
  min-height: 200px;
}

.section--cta__image-vector {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("images/Vector.png") no-repeat;
  background-size: cover;
  background-position: center;
}

.section--cta__image img {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 90%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: right center;
  margin-left: auto;
}

.footer {
  background-color: #071b35;
  color: #d6d6d6;
  padding: 0px 0 32px;
  font-size: 16px;
  min-height: 275px;
  display: flex;
  flex-direction: column;
}

.footer__top {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
  align-content: center;
}

.footer__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer__contact-group {
  display: flex;
  flex-direction: row;
  gap: 24px;
  grid-column: span 2;
}

.footer__contact-group .footer__item:last-child {
  margin-left: auto;
}

.footer__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

.footer__text {
  margin: 0;
  color: #d6d6d6;
}

.footer__bottom {
  margin-top: auto;
}

.footer__divider {
  height: 1px;
  background-color: #555555;
  margin-bottom: 16px;
}

.footer__bottom-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer__copy {
  margin: 0;
  font-size: 14px;
  color: #9f9f9f;
}

.footer__dev {
  font-size: 13px;
  color: #9f9f9f;
  text-align: center;
}

.footer__dev:hover {
  color: #d6d6d6;
}

.footer__privacy {
  font-size: 14px;
  color: #9f9f9f;
}

.footer__privacy:hover {
  color: #d6d6d6;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal--open {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 611px;
  margin: 16px;
  border-radius: 15px;
  background: #ffffff;
  padding: 40px 40px 32px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  z-index: 41;
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.modal__close::before,
.modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: #4a4a4a;
  border-radius: 999px;
}

.modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.modal__header {
  margin-bottom: 32px;
}

.modal__title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  color: #1c1c1c;
}

.modal__subtitle {
  margin: 0;
  font-size: 14px;
  color: #6d6d6d;
  line-height: 1.4;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal__row--inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.modal__row--footer {
  display: flex;
  flex-wrap: wrap;
 /* align-items: flex-end;*/
  justify-content: space-between;
  gap: 16px;
}

.modal__field {
  display: block;
}

.modal__field input {
  width: 100%;
  height: 56px;
  border-radius: 10px;
  border: 1px solid #e0e5f5;
  padding: 0 18px;
  background: #f0f3ff;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
}

.modal__field input::placeholder {
  color: #9f9f9f;
}

.modal__field input:focus {
  border-color: rgba(21, 114, 211, 0.5);
  box-shadow: 0 0 0 2px rgba(21, 114, 211, 0.2);
  background: #ffffff;
}

.modal__disclaimer {
  margin: 0;
  font-size: 12px;
  color: #9f9f9f;
  line-height: 1.45;
  max-width: 310px;
}

.modal__submit {
  flex-shrink: 0;    text-transform: uppercase;
}

.modal__success {
  display: none;
  padding: 24px 0 0;
  text-align: center;
}

.modal__success[hidden] {
  display: none !important;
}

.modal__success:not([hidden]) {
  display: block;
}

.modal__success-text {
  margin: 0 0 24px;
  font-size: 18px;
  font-weight: 500;
  color: #282828;
  line-height: 1.4;
}

.modal__close-success {
  margin: 0;
}

@media (max-width: 640px) {
  .modal__row--inputs {
    grid-template-columns: 1fr;
  }

  .modal__row--footer {
    flex-direction: column;
    align-items: stretch;
  }

  .modal__disclaimer {
    max-width: none;
  }
}

/* 1200px: планшет landscape — близко к ПК */
@media (max-width: 1200px) {
  .header__hero {
    grid-template-columns: 1.1fr 1.1fr;
  }

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

/* Планшет в горизонтальном положении (landscape): как на ПК */
@media (min-width: 769px) and (max-width: 1366px) and (orientation: landscape) {
  .hero__title {
    font-size: 50px;
  }

  .hero__subtitle {
    font-size: 20px;
  }

  .hero__cta {
    width: auto;
  }

  /* Отменяем изменения 992px — полная версия как на ПК */
  .header__top-inner {
    gap: 32px;
    padding: 24px 20px;
  }

  .nav {
    gap: 40px;
    font-size: 18px;
  }

  .header__contact {
    font-size: 18px;
    gap: 24px;
  }

  .header__hero {
    grid-template-columns: minmax(0, 600px) 1fr;
    gap: 48px;
    padding: 32px 0 24px 0;
    padding-left: max(20px, calc((100vw - 1120px) / 2 + 20px));
  }

  .section--why-us__content {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .section--cta__inner {
    gap: 48px;
  }

  .section--about__inner {
    gap: 64px;
  }

  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
  }

  .catalog-card__image img {
    height: 206px;
  }

  .brands {
    gap: 56px;
  }

  .brands__logo {
    min-width: 260px;
  }

  .footer__top {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
  }

  .footer {
    min-height: 275px;
  }

  .footer__bottom {
    text-align: center;
  }

  .footer__copy {
    font-size: 14px;
  }

  .footer__privacy {
    font-size: 14px;
  }

  .footer__contact-group {
    flex-direction: row;
    gap: 24px;
  }
}

/* 992px: планшет — сохраняем layout как на ПК, только уменьшаем отступы */
@media (max-width: 992px) {
  .header__top-inner {
    gap: 20px;
    padding: 20px;
  }

  .nav {
    gap: 28px;
    font-size: 16px;
  }

  .header__contact {
    font-size: 16px;
    gap: 16px;
  }

  .header__hero {
    gap: 36px;
    padding-left: max(20px, calc((100vw - 1120px) / 2 + 20px));
  }

  .hero__title {
    font-size: clamp(26px, 2.8vw, 44px);
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .section--why-us__content {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .section--cta__inner {
    gap: 40px;
  }

  .section--about__inner {
    gap: 48px;
  }

  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }

  .catalog-card__image img {
    height: 180px;
  }

  .brands {
    gap: 40px;
  }

  .brands__logo {
    min-width: 180px;
  }
}

/* Планшет в вертикальном положении (portrait): всё как на мобильном */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
  body {
    font-size: 14px;
  }

  .header__top-inner {
    gap: 16px;
  }

  .nav {
    display: none;
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    padding: 16px 20px 24px;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
    flex-direction: column;
    gap: 10px;
    z-index: 20;
  }

  .nav__mobile-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #e1e1e1;
    font-size: 14px;
  }

  .nav__mobile-address {
    color: #6d6d6d;
    line-height: 1.4;
  }

  .nav__mobile-phone {
    font-weight: 600;
    color: #1572d3;
  }

  .nav__mobile-btn {
    width: 100%;
    max-width: 260px;
  }

  .nav--open {
    display: flex;
  }

  .header__burger {
    display: flex;
  }

  .header__contact .btn {
    display: none;
  }

  /* Первый экран как на мобильном */
  .header__hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 24px 20px 32px;
  }

  .hero__content {
    order: 1;
    max-width: 100%;
  }

  .hero__image {
    order: 2;
  }

  .hero__badge-row {
    padding: 8px 12px;
    margin-bottom: 24px;
  }

  .hero__badge {
    font-size: 12px;
  }

  .hero__title {
    font-size: 50px;
    line-height: 1.25;
  }

  .hero__subtitle {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .hero__cta {
    width: auto;
    justify-content: center;
  }

  .hero__image img {
    width: 100%;
    max-width: 100%;
  }

  .hero__metrics {
    transform: translateY(-24px);
  }

  /* Весь layout как на мобильном */
  .header__top {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header__top-inner {
    padding: 16px;
    gap: 12px;
  }

  main {
    display: flex;
    flex-direction: column;
  }

  .section--how-it-works {
    order: 1;
  }

  .section--catalog {
    order: 2;
  }

  .section--why-us {
    order: 3;
    grid-template-columns: minmax(0, 1fr);
  }

  .section--about {
    order: 4;
  }

  .section--cta {
    order: 5;
    min-height: auto;
  }

  .section {
    padding: 48px 0;
  }

  .section__badge {
    font-size: 12px;
    padding: 8px 16px;
    margin-bottom: 20px;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
  }

  .section__title {
    font-size: 36px;
    margin-bottom: 28px;
    margin-left: 0;
    text-align: left;
  }

  .section--why-us__left {
    order: -1;
    overflow: visible;
    max-height: none;
  }

  .section--why-us__image {
    max-height: none;
  }

  .section--why-us__content {
    padding: 40px 20px;
    max-width: 100%;
  }

  .section--why-us__image img {
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
  }

  .section--about__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
  }

  .section--about__text {
    order: 1;
  }

  .about-grid-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    order: 2;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    overflow-x: clip;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .section--cta__inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 20px;
    gap: 36px;
  }

  .section--cta__image {
    order: 2;
  }

  .section--cta__text {
    order: 1;
    max-width: 100%;
    width: 100%;
  }

  .section--cta .section__title {
    font-size: 46px;
    width: 100%;
  }

  .section--cta__list {
    font-size: 14px;
  }

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

  .catalog-card__image img {
    height: 280px;
  }

  .catalog-card__body {
    padding: 16px 16px 20px;
    gap: 14px;
  }

  .catalog-card__title {
    font-size: 16px;
  }

  .catalog-card__meta {
    font-size: 12px;
  }

  .catalog-card__specs {
    font-size: 11px;
  }

  .catalog-card__price-value {
    font-size: 18px;
  }

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

  .about-grid--slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    width: 100%;
  }

  .about-grid--slider .about-card {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: center;
  }

  .about-grid-dots {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 8px;
  }

  .about-grid-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid #1572d3;
    background-color: transparent;
    padding: 0;
    cursor: pointer;
  }

  .about-grid-dot--active {
    background-color: #1572d3;
  }

  .about-card {
    padding: 20px;
  }

  .about-card__title {
    font-size: 15px;
  }

  .about-card__text {
    font-size: 13px;
  }

  .benefits {
    gap: 24px;
    margin-top: 28px;
  }

  .benefit {
    gap: 12px;
  }

  .section--cta__list {
    font-size: 14px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
  }

  .footer__contact-group {
    flex-direction: column;
    grid-column: auto;
  }

  .footer__contact-group .footer__item:last-child {
    margin-left: 0;
  }

  .footer {
    min-height: 0;
    padding-top: 30px;
  }

  .footer__bottom {
    text-align: left;
  }

  .footer__copy {
    line-height: 1.4;
    font-size: 12px;
  }

  .footer__privacy {
    font-size: 12px;
    color: #9f9f9f;
  }

  .container {
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  .header__top-inner {
    gap: 16px;
  }

  .nav {
    display: none;
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    padding: 16px 20px 24px;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
    flex-direction: column;
    gap: 10px;
    z-index: 20;
  }

  .nav__mobile-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid #e1e1e1;
    font-size: 14px;
  }

  .nav__mobile-address {
    color: #6d6d6d;
    line-height: 1.4;
  }

  .nav__mobile-phone {
    font-weight: 600;
    color: #1572d3;
  }

  .nav__mobile-btn {
    width: 100%;
    max-width: 260px;
  }

  .nav--open {
    display: flex;
  }

  .header__burger {
    display: flex;
  }

  .header__contact .btn {
    display: none;
  }

  .header__hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero__image {
    order: -1;
  }

  .section {
    padding: 48px 0;
  }

  .section__title {
    font-size: 22px;
    margin-bottom: 28px;
  }

  .section--why-us {
    grid-template-columns: minmax(0, 1fr);
  }

  .section--why-us__left {
    order: -1;
    overflow: visible;
    max-height: none;
  }

  .section--why-us__image {
    max-height: none;
  }

  .section--why-us__image img {
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
  }

  .section--why-us__content {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 40px;
    padding-bottom: 40px;
    max-width: 100%;
  }

  .section--about__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .section--cta__inner {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 20px;
    padding-right: 20px;
    gap: 36px;
  }

  .section--cta {
    min-height: auto;
  }

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

  .footer__top {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
  }

  .footer__contact-group {
    flex-direction: column;
    grid-column: auto;
  }

  .footer__contact-group .footer__item:last-child {
    margin-left: 0;
  }

  .about-grid-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: clip;
  }

  .about-grid--slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    width: 100%;
  }

  .about-grid--slider .about-card {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: center;
  }

  .about-grid-dots {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 8px;
  }

  .about-grid-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid #1572d3;
    background-color: transparent;
    padding: 0;
    cursor: pointer;
  }

  .about-grid-dot--active {
    background-color: #1572d3;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

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

  .container {
    padding: 0 16px;
  }

  .header__top {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  main {
    display: flex;
    flex-direction: column;
  }

  .section--how-it-works {
    order: 1;
  }

  .section--catalog {
    order: 2;
  }

  .section--why-us {
    order: 3;
  }

  .section--about {
    order: 4;
  }

  .section--cta {
    order: 5;
  }

  .header__top-inner {
    padding: 16px 16px;
    gap: 12px;
  }

  .header__hero {
    padding-top: 24px;
    padding-bottom: 32px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero__content {
    order: 1;
    max-width: 100%;
  }

  .hero__image {
    order: 2;
  }

  .hero__badge-row {
    padding: 8px 12px;
    gap: 12px;
    margin-bottom: 24px;
  }

  .hero__badge {
    font-size: 12px;
  }

  .hero__title {
    font-size: 28px;
    line-height: 1.25;
  }

  .hero__subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .hero__cta {
    width: 100%;
    justify-content: center;
  }

  .section__badge {
    font-size: 12px;
    padding: 8px 16px;
    margin-bottom: 20px;
  }

  .section__title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .section {
    padding: 56px 0;
  }

  .hero__metrics {
    transform: translateY(-24px);
  }

  .hero__image img {
    width: 100%;
    max-width: 100%;
  }

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

  .catalog-card__image img {
    height: 219px;
  }

  .catalog-card__body {
    padding: 16px 16px 20px;
    gap: 14px;
  }

  .catalog-card__title {
    font-size: 16px;
  }

  .catalog-card__meta {
    font-size: 12px;
  }

  .catalog-card__specs {
    font-size: 11px;
  }

  .catalog-card__price-value {
    font-size: 18px;
  }

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

  .about-card {
    padding: 20px;
  }

  .footer__privacy {
    font-size: 12px;
    color: #9f9f9f;
  }

  .about-card__title {
    font-size: 15px;
  }

  .about-card__text {
    font-size: 13px;
  }

  .section--why-us__content {
    padding-top: 32px;
    padding-bottom: 32px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .section--why-us__image img {
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
  }

  .benefits {
    gap: 24px;
    margin-top: 28px;
  }

  .benefit {
    gap: 12px;
  }

  .section--cta {
    min-height: auto;
  }

  .section--cta__inner {
    gap: 40px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .section--cta__image {
    order: 2;
  }

  .section--cta__text {
    order: 1;
  }

  .section--cta__list {
    font-size: 14px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
  }

  .footer__contact-group {
    flex-direction: column;
    grid-column: auto;
  }

  .footer__contact-group .footer__item:last-child {
    margin-left: 0;
  }

  .footer {
    min-height: 0;
    padding-top: 30px;
  }

  .footer__bottom {
    text-align: left;
  }

  .footer__copy {
    line-height: 1.4;
    font-size: 12px;
  }

  .footer__text {
    font-size: 16px;
  }

  .modal__dialog {
    margin: 24px 16px;
    padding: 24px 20px 20px;
  }

  .modal__title {
    font-size: 20px;
  }

  .modal__subtitle {
    font-size: 13px;
  }

  .modal__field input {
    height: 48px;
  }
}

.footer__cta-btn {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
  background-color: #ffffff;
  color: #ffffff;
  border: 1px solid #1572d3;
  box-shadow: none;
  display: none;
}

.footer__cta-btn:hover {
  background-color: #f3f7ff;
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .footer__cta-btn {
    display: inline-flex;
    min-width: 0;
    white-space: normal;
    font-size: 12px;
    padding: 10px 8px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
  }

  .header__hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero__badge-row {
    padding: 10px 14px;
    gap: 10px;
  }

  .section--why-us__content {
    padding-top: 28px;
    padding-bottom: 28px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .section--cta__inner {
    padding-left: 14px;
    padding-right: 14px;
    gap: 32px;
  }

  .section--cta__list {
    font-size: 13px;
  }

  .benefits {
    gap: 20px;
  }

  .catalog-card__body {
    padding: 14px 14px 18px;
  }

  .footer__bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

@media (max-width: 375px) {
  .section {
    padding: 40px 0;
  }

  .container {
    padding: 0 12px;
  }

  .header__hero {
    padding-top: 24px;
    padding-bottom: 28px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero__title {
    font-size: 25px;
    line-height: 1.3;
  }

  .hero__subtitle {
    font-size: 13px;
  }

  .hero__metrics {
    transform: translateY(-16px);
  }

  .hero__badge-row {
    padding: 8px 12px;
  }

  .section__title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .section__badge {
    font-size: 11px;
    padding: 6px 12px;
  }

  .btn {
    padding: 10px 18px;
    font-size: 13px;
    min-width: 0;
  }

  .logo__img {
    height: 28px;
  }

  .section--why-us__content {
    padding-top: 24px;
    padding-bottom: 24px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .section--cta__inner {
    padding-left: 12px;
    padding-right: 12px;
    gap: 28px;
  }

  .section--cta__list {
    font-size: 12px;
  }

  .benefits {
    gap: 18px;
    margin-top: 20px;
  }

  .benefit__title {
    font-size: 14px;
  }

  .benefit__text {
    font-size: 12px;
  }

  .catalog-grid {
    gap: 20px;
  }

  .catalog-card__specs {
    gap: 6px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
  }
}

/* Анимации появления при прокрутке */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

/* Контейнеры со ступенчатым появлением детей не скрываем */
.steps.animate-on-scroll,
.benefits.animate-on-scroll,
.catalog-grid.animate-on-scroll,
.about-grid.animate-on-scroll,
.brands.animate-on-scroll {
  opacity: 1;
  transform: none;
}

/* Ступенчатое появление для шагов */
.steps.animate-on-scroll .step {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.steps.animate-on-scroll.is-visible .step {
  opacity: 1;
  transform: none;
}

.steps.animate-on-scroll.is-visible .step:nth-child(1) { transition-delay: 0.05s; }
.steps.animate-on-scroll.is-visible .step:nth-child(2) { transition-delay: 0.12s; }
.steps.animate-on-scroll.is-visible .step:nth-child(3) { transition-delay: 0.19s; }
.steps.animate-on-scroll.is-visible .step:nth-child(4) { transition-delay: 0.26s; }

/* Ступенчатое появление для преимуществ */
.benefits.animate-on-scroll .benefit {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.benefits.animate-on-scroll.is-visible .benefit {
  opacity: 1;
  transform: none;
}

.benefits.animate-on-scroll.is-visible .benefit:nth-child(1) { transition-delay: 0.05s; }
.benefits.animate-on-scroll.is-visible .benefit:nth-child(2) { transition-delay: 0.12s; }
.benefits.animate-on-scroll.is-visible .benefit:nth-child(3) { transition-delay: 0.19s; }
.benefits.animate-on-scroll.is-visible .benefit:nth-child(4) { transition-delay: 0.26s; }

/* Ступенчатое появление для карточек каталога */
.catalog-grid.animate-on-scroll .catalog-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.catalog-grid.animate-on-scroll.is-visible .catalog-card {
  opacity: 1;
  transform: none;
}

.catalog-grid.animate-on-scroll.is-visible .catalog-card:nth-child(1) { transition-delay: 0.03s; }
.catalog-grid.animate-on-scroll.is-visible .catalog-card:nth-child(2) { transition-delay: 0.08s; }
.catalog-grid.animate-on-scroll.is-visible .catalog-card:nth-child(3) { transition-delay: 0.13s; }
.catalog-grid.animate-on-scroll.is-visible .catalog-card:nth-child(4) { transition-delay: 0.18s; }
.catalog-grid.animate-on-scroll.is-visible .catalog-card:nth-child(5) { transition-delay: 0.23s; }
.catalog-grid.animate-on-scroll.is-visible .catalog-card:nth-child(6) { transition-delay: 0.28s; }
.catalog-grid.animate-on-scroll.is-visible .catalog-card:nth-child(7) { transition-delay: 0.33s; }
.catalog-grid.animate-on-scroll.is-visible .catalog-card:nth-child(8) { transition-delay: 0.38s; }

/* Ступенчатое появление для карточек "О компании" */
.about-grid.animate-on-scroll .about-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.about-grid.animate-on-scroll.is-visible .about-card {
  opacity: 1;
  transform: none;
}

.about-grid.animate-on-scroll.is-visible .about-card:nth-child(1) { transition-delay: 0.05s; }
.about-grid.animate-on-scroll.is-visible .about-card:nth-child(2) { transition-delay: 0.12s; }
.about-grid.animate-on-scroll.is-visible .about-card:nth-child(3) { transition-delay: 0.19s; }
.about-grid.animate-on-scroll.is-visible .about-card:nth-child(4) { transition-delay: 0.26s; }

/* Бренды — лёгкая задержка между логотипами */
.brands.animate-on-scroll .brands__logo {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.brands.animate-on-scroll.is-visible .brands__logo {
  opacity: 1;
  transform: none;
}

.brands.animate-on-scroll.is-visible .brands__logo:nth-child(1) { transition-delay: 0.05s; }
.brands.animate-on-scroll.is-visible .brands__logo:nth-child(2) { transition-delay: 0.15s; }
.brands.animate-on-scroll.is-visible .brands__logo:nth-child(3) { transition-delay: 0.25s; }

