@font-face {
  font-family: "Helvetica Neue Regular";
  src: url("../assets/fonts/HelveticaNeue-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue Medium";
  src: url("../assets/fonts/HelveticaNeue-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue Bold";
  src: url("../assets/fonts/HelveticaNeue-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --container: 1240px;
  --pad: 24px;

  --white: #fff;
  --black: #0b0f14;

  --pill: rgba(255, 255, 255, 0.95);
  --pill-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);

  --text-dim: rgba(255, 255, 255, 0.78);
  --topbar-dim: rgba(255, 255, 255, 0.85);

  --blue: #084abc;
  --yellow: #ffd200;

  --radius-pill: 999px;
  --radius-card: 18px;

  --h-mainbar: 64px;
  --h-topbar: 40px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 280ms;
}

body {
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
}

main {
  flex: 1;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.container {
  width: min(var(--container), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

/* ================= HEADER ================= */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

/* topbar */
.topbar {
  height: var(--h-topbar);
  display: flex;
  align-items: center;
  color: var(--topbar-dim);
  font-size: 14px;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between; /* как ты просил */
  gap: 16px;
}

.topbar__contacts {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar__contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  opacity: 0.95;
  transition: opacity var(--dur) var(--ease);
}

.topbar__contact:hover {
  opacity: 1;
}

/* mainbar */
.mainbar {
  height: var(--h-mainbar);
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.mainbar__inner {
  background: var(--pill);
  color: #0a0f14;
  border-radius: var(--radius-pill);
  box-shadow: var(--pill-shadow);
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 18px;
}

.logo {
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__link {
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  color: rgba(10, 15, 20, 0.92);
  transition:
    background var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.nav__link:hover {
  background: rgba(0, 0, 0, 0.06);
}

.mainbar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* CTA */
.cta {
  height: 40px;
  padding: 0 5px 0 16px;
  border-radius: var(--radius-pill);
  background: var(--blue);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  transition:
    transform var(--dur) var(--ease),
    filter var(--dur) var(--ease);
}

.cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.cta__badge {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  background: var(--yellow);
  color: #111;
  display: grid;
  place-items: center;
  font-weight: 800;
}

/* language (отдельный div всегда) */
.lang {
  height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.06);
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
}

.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  color: rgba(10, 15, 20, 0.92);
}

.lang__chev {
  opacity: 0.7;
  display: flex;
}

/* burger */
.burger {
  width: 44px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.06);
  display: none; /* включим на mobile */
  align-items: center;
  justify-content: center;
  transition: background var(--dur) var(--ease);
}

.burger:hover {
  background: rgba(0, 0, 0, 0.1);
}

.burger__lines {
  width: 20px;
  height: 2px;
  background: rgba(10, 15, 20, 0.92);
  position: relative;
  border-radius: 2px;
}

.burger__lines::before,
.burger__lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: rgba(10, 15, 20, 0.92);
  border-radius: 2px;
  transition:
    transform var(--dur) var(--ease),
    top var(--dur) var(--ease),
    opacity var(--dur) var(--ease);
}

.burger__lines::before {
  top: -6px;
}
.burger__lines::after {
  top: 6px;
}

/* active burger to X */
.is-menu-open .burger__lines {
  background: transparent;
}
.is-menu-open .burger__lines::before {
  top: 0;
  transform: rotate(45deg);
}
.is-menu-open .burger__lines::after {
  top: 0;
  transform: rotate(-45deg);
}

/* mobile menu dropdown */
.mobile-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--h-topbar) + var(--h-mainbar));
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.mobile-menu__inner {
  background: var(--pill);
  color: #0a0f14;
  border-radius: 22px;
  box-shadow: var(--pill-shadow);
  padding: 16px;
  display: grid;
  gap: 14px;
}

/* чтобы “снизу” и по порядку: nav -> фраза -> контакты -> кнопка */
.nav--mobile {
  display: grid;
  gap: 6px;
}

.mobile-menu__info {
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.04);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.mobile-menu__text {
  font-size: 14px;
  color: rgba(10, 15, 20, 0.8);
}

.mobile-menu__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-menu__contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: rgba(10, 15, 20, 0.9);
}

.mobile-menu__cta {
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* show mobile menu when open */
.is-menu-open .mobile-menu {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

/* icons (простые заглушки, замени на svg/img если надо) */
.icon {
  margin-top: 4px;
}
.icon--mail {
  mask: none;
}
.icon--phone {
  mask: none;
}

/* ================= HERO ================= */

.hero {
  position: relative;
  min-height: 720px;
  /* height: 100vh; */
  max-height: 900px;
  display: flex;
  align-items: center;
  padding-top: calc(var(--h-topbar) + var(--h-mainbar) + 28px);
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.62) 0%,
      rgba(0, 0, 0, 0.25) 55%,
      rgba(0, 0, 0, 0.2) 100%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__title {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.6px;
  max-width: 860px;
}

.hero__subtitle {
  margin-top: 18px;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-dim);
}

.hero__btn {
  margin-top: 24px;
  height: 44px;
  border-radius: var(--radius-pill);
  padding: 0 5px 0 16px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  transition:
    transform var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.hero__btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.22);
}

.hero__btn-badge {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  background: var(--yellow);
  color: #111;
  display: grid;
  place-items: center;
  font-weight: 900;
}

/* ================= FEEDBACK FORM ================= */
.feedback {
  padding: 18px 0 28px;
}

.feedback__form {
  background: var(--pill);
  box-shadow: var(--pill-shadow);
  border-radius: var(--radius-card);
  padding: 22px 14px 8px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr 210px;
  gap: 12px;
  align-items: start;
}

.field {
  position: relative;
  display: grid;
  gap: 6px;
}

.field__input {
  height: 52px;
  width: 100%;
  border-radius: var(--radius-card);
  background: rgba(0, 0, 0, 0.06);
  padding: 0 18px;
  color: rgba(10, 15, 20, 0.92);
  border: 1px solid transparent;
  outline: none;
  transition:
    border-color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.field__input::placeholder {
  color: rgba(10, 15, 20, 0.55);
}

/* Focus state (как на скрине: более выраженная рамка) */
.field__input:focus {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(10, 15, 20, 0.55);
}

/* Error: красная рамка */
.field.is-invalid .field__input {
  border-color: rgba(255, 60, 60, 0.9);
}

/* Error message: всегда стоит на месте, но невидим */
.field__error {
  font-size: 12px;
  line-height: 1;
  color: rgba(255, 60, 60, 0.95);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  padding-left: 18px;
  min-height: 12px; /* чтобы никогда не прыгало */
}

.field.is-invalid .field__error {
  opacity: 1;
}

/* Button (в стиле твоего CTA) */
.feedback__btn {
  height: 52px;
  border-radius: var(--radius-card);
  background: var(--blue);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  padding: 0 18px;
  transition:
    transform var(--dur) var(--ease),
    filter var(--dur) var(--ease);
}

.feedback__btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* ================= PARTNERS ================= */
.partners {
  padding: 70px 0;
  color: rgba(10, 15, 20, 0.92);
  background: #fff;
}

.partners__grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: start;
}

.partners__kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(10, 15, 20, 0.7);
  margin-bottom: 14px;
}

.partners__title {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 700;
}

.partners__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.partner-card {
  position: relative;
  overflow: hidden;
  background: #f3f5f7;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 260px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
  transition: transform var(--dur) var(--ease);
  min-height: 340px;
}

.partner-card:hover {
  transform: translateY(-2px);
}

.partner-card__media {
  position: relative;
  min-height: 190px;
  background: #e9edf1;
}

.partner-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.partner-card__bar {
  height: 64px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 12px;
}

.partner-card__logo {
  height: 26px;
  width: auto;
  max-width: 72%;
  object-fit: contain;
  filter: brightness(0) invert(1); /* чтобы лого было белым как на скрине (если svg/тёмное) */
}

.partner-card__arrow {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

/* Hover info overlay (desktop) */
.partner-card__info {
  position: absolute;
  inset: 0;
  background: var(--blue);
  color: #fff;
  padding: 18px 18px 22px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.partner-card__info p {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.partner-card__more {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

/* show on hover */
.partner-card:hover .partner-card__info {
  opacity: 1;
  transform: translateY(0);
}

/* если нужно “как на 3-й карточке уже открыто” */
.partner-card--show .partner-card__info {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ================= STATS ================= */
.stats {
  background: #fff;
  padding: 56px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 46px;
  align-items: start;
}

.stat__value {
  font-family: "Helvetica Neue Bold", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(44px, 4.6vw, 64px);
  line-height: 1;
  color: var(--blue);
  letter-spacing: -0.5px;
}

.stat__label {
  margin-top: 10px;
  font-family: "Helvetica Neue Medium", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.25;
  color: rgba(10, 15, 20, 0.92);
}

/* ================= CATEGORIES ================= */
.categories {
  padding: 70px 0;
  background: #fff;
}

.categories__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

/* layout как на скрине */
.cat-1 {
  grid-column: 1 / span 6;
}
.cat-2 {
  grid-column: 7 / span 6;
}
.cat-3 {
  grid-column: 1 / span 4;
}
.cat-4 {
  grid-column: 5 / span 4;
}
.cat-5 {
  grid-column: 9 / span 4;
}

.cat-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: rgba(0, 0, 0, 0.04); /* серый фон */
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  color: rgba(10, 15, 20, 0.92);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease),
    color var(--dur) var(--ease);
  display: grid;
  align-items: start;
  padding: 22px 22px 0;
}

/* размеры карточек */
.cat-card--lg {
  min-height: 220px;
}
.cat-card--sm {
  min-height: 170px;
}

.cat-card__title {
  font-family: "Helvetica Neue Medium", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.25;
  max-width: 92%;
  z-index: 2;
}

/* картинка всегда внизу справа, как на скрине */
.cat-card__img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(82%, 520px);
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  transition: transform var(--dur) var(--ease);
}

/* hover effect */
.cat-card:hover {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16); /* небольшая тень */
  transform: translateY(-2px);
}

.cat-card:hover .cat-card__img {
  transform: translateY(-2px);
}

/* ================= WHY ================= */
.why {
  padding: 70px 0;
  background: #fff;
  color: rgba(10, 15, 20, 0.92);
}

.why__kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(10, 15, 20, 0.65);
  margin-bottom: 10px;
}

.why__title {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 22px;
  max-width: 920px;
}

/* hero image block */
.why-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #eef2f6;
}

.why-hero__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* button on image */
.why-hero__btn {
  position: absolute;
  right: 28px;
  bottom: 18px;
  height: 52px;
  min-width: 320px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--blue);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
  transition:
    transform var(--dur) var(--ease),
    filter var(--dur) var(--ease);
}

.why-hero__btn img {
  width: 20px;
  height: 20px;
}

.why-hero__btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* features grid */
.why__features {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 46px;
}

.why-feature {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: start;
}

.why-feature__icon {
  width: 26px;
  height: 26px;
  margin-top: 2px;
}

.why-feature__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}

.why-feature__text {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(10, 15, 20, 0.78);
  max-width: 520px;
}

/* ================= POPULAR (SWIPER) ================= */
.popular {
  padding: 70px 0;
  background: #fff;
  color: rgba(10, 15, 20, 0.92);
}

.popular__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.popular__kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(10, 15, 20, 0.65);
  margin-bottom: 10px;
}

.popular__title {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 700;
}

.popular__nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.popular__btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--blue);
  display: grid;
  place-items: center;
  transition:
    transform var(--dur) var(--ease),
    filter var(--dur) var(--ease);
}

.popular__btn img {
  width: 18px;
  height: 18px;
}

.popular__btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.popular__btn--prev img {
  transform: rotate(180deg);
}

.popular__btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.popular {
  overflow: hidden;
}

/* Swiper spacing */
.popular-swiper {
  padding: 10px 2px 6px;
  overflow: unset;
}

/* карточка товара */
.product-card {
  border-radius: var(--radius-card);
  background: rgba(0, 0, 0, 0.04);
  overflow: hidden;
  min-height: 400px;
  display: grid;
  grid-template-rows: 220px 1fr auto;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.product-card__media {
  background: #fff;
  padding: 14px;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-card__topicons {
  position: absolute;
  right: 14px;
  top: 12px;
  display: flex;
  gap: 10px;
}

.product-card__topicons button {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
}

.product-card__body {
  padding: 16px 16px 8px;
}

.product-card__name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-card__desc {
  font-size: 14px;
  line-height: 1.35;
  color: rgba(10, 15, 20, 0.65);
}

.product-card__footer {
  padding: 14px 16px 16px;
}

.product-card__cta {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  background: var(--blue);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  transition:
    transform var(--dur) var(--ease),
    filter var(--dur) var(--ease);
}

.product-card__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.product-card__cta img {
  width: 18px;
  height: 18px;
}

/* FIX: media container must define a box */
.product-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 16px; /* если надо */
  background: #fff;

  /* вариант А: фикс высоты */
  height: 220px;
  /* вариант Б (лучше): сохраняем пропорцию, если хочешь */
  /* aspect-ratio: 16 / 9; */
}

/* FIX: image should fit inside box */
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ================= STEPS ================= */
.steps {
  padding: 70px 0;
  background: #fff;
  color: rgba(10, 15, 20, 0.92);
}

.steps__kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(10, 15, 20, 0.65);
  margin-bottom: 10px;
}

.steps__title {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 22px;
}

/* timeline */
.steps__timeline {
  position: relative;
  height: 34px;
  margin: 18px 0 22px;
}

.steps__line {
  position: absolute;
  left: 0;
  right: 0;
  top: 16px;
  height: 2px;
  background: rgba(31, 102, 255, 0.35);
  border-radius: 2px;
}

/* dots */
.steps__dot {
  position: absolute;
  top: 5px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  z-index: 2;
}

/* positions: ровно как на макете — 4 равных шага */
.steps__dot--1 {
  left: 0;
  transform: translateX(-0%);
}
.steps__dot--2 {
  left: 33.333%;
  transform: translateX(-50%);
}
.steps__dot--3 {
  left: 66.666%;
  transform: translateX(-50%);
}
.steps__dot--4 {
  left: 100%;
  transform: translateX(-100%);
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.step__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
}

.step__text {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(10, 15, 20, 0.75);
  max-width: 320px;
}

/* ================= PARTNERS STRIP ================= */
.partners-strip {
  padding: 40px 0;
  background: #fff;
  overflow: hidden;
}

.partners-swiper {
  width: 100%;
  overflow: unset;
}

.partners-slide {
  height: 64px;
  display: grid;
  place-items: center;
}

.partners-slide img {
  height: 30px; /* как на скрине */
  width: auto;
  max-width: 160px;
  display: block;
  opacity: 0.65; /* серенькие лого */
}

/* ================= CONTACT CTA ================= */
.contact-cta {
  position: relative;
  padding: 86px 0;
  overflow: hidden;
  color: var(--white);
}

.contact-cta__bg {
  position: absolute;
  inset: 0;
  background: url("../assets/contact/contact-bg.png") center/cover no-repeat;
  transform: scale(1.01);
}

.contact-cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.62) 0%,
      rgba(0, 0, 0, 0.35) 55%,
      rgba(0, 0, 0, 0.25) 100%
    ),
    rgba(0, 0, 0, 0.18);
}

.contact-cta__content {
  position: relative;
  z-index: 2;
}

.contact-cta__title {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin-bottom: 14px;
}

.contact-cta__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 520px;
}

.contact-cta__btn {
  margin-top: 18px;
  height: 44px;
  border-radius: var(--radius-pill);
  padding: 0 5px 0 16px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  transition:
    transform var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.contact-cta__btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.22);
}

.contact-cta__badge {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-pill);
  background: var(--yellow);
  color: #111;
  display: grid;
  place-items: center;
  font-weight: 900;
}

/* ================= MODAL ================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 20, 0.55);
  backdrop-filter: blur(2px);
}

.modal__dialog {
  position: relative;
  width: min(560px, 100%);
  border-radius: 22px;
  background: var(--pill);
  box-shadow: var(--pill-shadow);
  color: rgba(10, 15, 20, 0.92);
  padding: 28px 26px 22px;
  transform: translateY(10px) scale(0.98);
  transition: transform var(--dur) var(--ease);
}

.modal.is-open .modal__dialog {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  display: grid;
  place-items: center;
}

.modal__title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
  text-align: center;
}

.modal__subtitle {
  font-size: 12px;
  line-height: 1.35;
  color: rgba(10, 15, 20, 0.72);
  text-align: center;
  margin-bottom: 16px;
}

.modal__form {
  display: grid;
  gap: 12px;
}

/* textarea reuse same input style */
.field__textarea {
  height: 110px;
  padding: 14px 18px;
  resize: none;
}

/* checkbox row */
.modal__agree {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(10, 15, 20, 0.78);
  margin-top: 2px;
}

.modal__check {
  width: 14px;
  height: 14px;
  accent-color: var(--blue);
}

.modal__submit {
  margin-top: 8px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  transition:
    transform var(--dur) var(--ease),
    filter var(--dur) var(--ease);
}

.modal__submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.modal__submit img {
  width: 18px;
  height: 18px;
}

/* ================= FOOTER ================= */
.footer {
  background: var(--blue);
  color: var(--white);
}

.footer__top {
  padding: 44px 0 34px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 0.9fr;
  gap: 46px;
  align-items: start;
}

.footer__logo {
  font-size: 18px;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 10px;
  color: var(--white);
}

.footer__desc {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  max-width: 260px;
  margin-bottom: 16px;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__soc {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  transition:
    transform var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.footer__soc img {
  width: 18px;
  height: 18px;
  display: block;
}

.footer__soc:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

.footer__head {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.95);
}

.footer__link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  transition: color var(--dur) var(--ease);
}

.footer__link:hover {
  color: var(--yellow);
}

/* состояние как на “Условия поставки” */
.footer__link--active {
  color: var(--yellow);
  font-weight: 700;
}

.footer__text {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

/* bottom bar */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.footer__bottom-inner {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer__copy,
.footer__made {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}

.footer__made:hover {
  color: rgba(255, 255, 255, 0.95);
}

/* ================= CONTACTS SECTION ================= */
.contacts {
  padding: 220px 0 70px;
  background: #fff;
  color: rgba(10, 15, 20, 0.92);
}

.contacts__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 48px;
}

.contacts__title {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 700;
}

.contacts__tag {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--blue);
  font-weight: 700;
}

.contacts__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: start;
  margin-bottom: 70px;
}

/* left info */
.contacts__info {
  display: grid;
  gap: 12px;
}

.contacts__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(10, 15, 20, 0.78);
  font-size: 13px;
  line-height: 1.25;
}

.contacts__item:hover {
  color: rgba(10, 15, 20, 0.92);
}

.contacts__icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  opacity: 0.85;
}

/* form */
.contacts__form {
  display: grid;
  gap: 12px;
}

/* agree row */
.contacts__agree {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(10, 15, 20, 0.7);
  margin-top: 2px;
}

.contacts__check {
  width: 14px;
  height: 14px;
  accent-color: var(--blue);
}

/* submit button */
.contacts__btn {
  height: 52px;
  border-radius: var(--radius-card);
  background: var(--blue);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  padding: 0 18px;
  transition:
    transform var(--dur) var(--ease),
    filter var(--dur) var(--ease);
}

.contacts__btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.contacts__btn img {
  width: 18px;
  height: 18px;
}

/* map */
.contacts__map {
  margin-top: 22px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.04);
}

.contacts__map iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

/* ================= PRODUCTS PAGE ================= */
.products-page {
  padding: 140px 0 70px;
  background: #fff;
  color: rgba(10, 15, 20, 0.92);
}

.products-page__title {
  font-size: 44px;
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 8px;
}

.products-page__crumbs {
  font-size: 12px;
  color: rgba(10, 15, 20, 0.55);
  margin-bottom: 24px;
}

/* toolbar */
.products-toolbar {
  display: grid;
  grid-template-columns: 140px 1fr 420px;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.products-toolbar__catalog-btn {
  height: 30px;
  padding: 0 12px 0 14px;
  border-radius: var(--radius-pill);
  background: var(--blue);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
}

.products-toolbar__catalog-btn img {
  width: 16px;
  height: 16px;
}

.products-toolbar__meta {
  font-size: 12px;
  color: rgba(10, 15, 20, 0.55);
}

.products-toolbar__search {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 10px;
  align-items: center;
}

.products-toolbar__search-input {
  height: 30px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.06);
  padding: 0 14px;
  color: rgba(10, 15, 20, 0.9);
}

.products-toolbar__search-btn {
  height: 30px;
  border-radius: var(--radius-pill);
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
}

/* layout */
.products-layout {
  display: grid;
  /* grid-template-columns: 0px 1fr; sidebar hidden by default */
  gap: 18px;
  align-items: start;
}

.products-layout.is-catalog-open {
  grid-template-columns: 280px 1fr;
}

/* sidebar */
.catalog {
  width: 280px;
  border-radius: var(--radius-card);
  background: var(--blue);
  color: var(--white);
  padding: 18px;
  display: none; /* hidden until open */
}

.products-layout.is-catalog-open .catalog {
  display: block;
}

.catalog__title {
  font-weight: 800;
  margin-bottom: 12px;
}

.catalog__nav {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.catalog__link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.catalog__link.is-active {
  color: var(--yellow);
  font-weight: 700;
}

.catalog__chev {
  opacity: 0.9;
}

.catalog__download {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
}

.catalog__download img {
  width: 14px;
  height: 14px;
}

/* grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* default: 3 cols */
  gap: 18px;
}

.products-layout.is-catalog-open .products-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* open: 2 cols */
}

/* ================= ADAPTIVE ================= */
@media (max-width: 1024px) {
  .products-toolbar {
    grid-template-columns: 140px 1fr 360px;
  }

  .products-layout.is-catalog-open {
    grid-template-columns: 260px 1fr;
  }
}

@media (max-width: 768px) {
  .products-page {
    padding: 110px 0 50px;
  }

  .products-page__title {
    font-size: 34px;
  }

  .products-toolbar {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }

  .products-toolbar__search {
    grid-template-columns: 1fr 92px;
  }

  /* на мобилке: каталог лучше как drawer/аккордеон,
     но пока сделаем: sidebar становится блоком сверху */
  .products-layout,
  .products-layout.is-catalog-open {
    grid-template-columns: 1fr;
  }

  .catalog {
    width: 100%;
    display: none;
  }

  .products-layout.is-catalog-open .catalog {
    display: block;
  }

  .products-grid,
  .products-layout.is-catalog-open .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .products-page__title {
    font-size: 30px;
  }

  .products-grid,
  .products-layout.is-catalog-open .products-grid {
    grid-template-columns: 1fr;
  }

  form#productsSearchForm {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  input.products-toolbar__search-input {
    width: 100%;
  }

  button.products-toolbar__search-btn {
    width: 100%;
  }
}

/* ================= ADAPTIVE ================= */
@media (max-width: 1024px) {
  .contacts__grid {
    grid-template-columns: 240px 1fr;
    gap: 26px;
  }
}

@media (max-width: 768px) {
  .contacts {
    padding: 120px 0 70px;
  }

  .contacts__title {
    font-size: 34px;
  }

  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contacts__map iframe {
    height: 320px;
  }
}

@media (max-width: 540px) {
  .contacts__title {
    font-size: 30px;
  }

  .contacts__map iframe {
    height: 280px;
  }
}

/* ================= ADAPTIVE ================= */
@media (max-width: 1024px) {
  .footer__top {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
  }
  .footer__top .footer__col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer__top {
    padding: 34px 0 26px;
    grid-template-columns: 1fr 1fr;
    gap: 26px 28px;
  }
  .footer__desc {
    max-width: none;
  }
}

@media (max-width: 540px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer__bottom-inner {
    height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ================= ADAPTIVE ================= */
@media (max-width: 768px) {
  .contact-cta {
    padding: 60px 0;
  }

  .modal__dialog {
    padding: 22px 18px 18px;
  }
}

@media (max-width: 540px) {
  .modal {
    padding: 14px;
  }

  .modal__title {
    font-size: 22px;
  }
}

/* adaptive */
@media (max-width: 768px) {
  .partners-strip {
    padding: 28px 0;
  }
  .partners-slide {
    height: 56px;
  }
  .partners-slide img {
    height: 26px;
    max-width: 140px;
  }
}

@media (max-width: 540px) {
  .partners-slide img {
    height: 24px;
    max-width: 120px;
  }
}

/* ================= ADAPTIVE ================= */
@media (max-width: 1024px) {
  .steps__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 28px;
  }
  .step__text {
    max-width: none;
  }

  /* на 2 колонки делаем линию короче визуально */
  .steps__timeline {
    margin-bottom: 14px;
  }
}

@media (max-width: 768px) {
  .steps {
    padding: 44px 0;
  }

  .steps__title {
    font-size: 34px;
  }

  /* на мобиле можно спрятать таймлайн (или оставить — скажи) */
  .steps__timeline {
    display: none;
  }
}

@media (max-width: 540px) {
  .steps__title {
    font-size: 30px;
  }

  .steps__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ================= ADAPTIVE ================= */
@media (max-width: 768px) {
  .popular {
    padding: 44px 0;
  }

  .popular__title {
    font-size: 34px;
  }
}

@media (max-width: 540px) {
  .popular__title {
    font-size: 30px;
  }

  .popular__nav {
    gap: 8px;
  }

  .popular__btn {
    width: 40px;
    height: 40px;
  }
}

/* ================= ADAPTIVE ================= */
@media (max-width: 768px) {
  .why {
    padding: 44px 0;
  }

  .why__title {
    font-size: 34px;
  }

  .why-hero__btn {
    right: 14px;
    bottom: 12px;
    min-width: 0;
    width: calc(100% - 28px);
    height: 50px;
  }

  .why__features {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .why-feature__title {
    font-size: 17px;
  }
}

@media (max-width: 540px) {
  .why__title {
    font-size: 30px;
  }

  .why-hero {
    border-radius: 18px;
  }

  .why-hero__btn {
    border-radius: 12px;
    height: 48px;
    font-size: 14px;
  }

  .why-feature {
    grid-template-columns: 28px 1fr;
    gap: 12px;
  }

  .why-feature__icon {
    width: 22px;
    height: 22px;
  }
}

/* ================= ADAPTIVE ================= */
@media (max-width: 1024px) {
  /* чуть плотнее */
  .categories__grid {
    gap: 14px;
  }
  .cat-card {
    padding: 18px 18px 0;
  }
}

@media (max-width: 768px) {
  .categories {
    padding: 44px 0;
  }

  /* 1 колонка, но сохраняем “крупные/мелкие” */
  .categories__grid {
    grid-template-columns: 1fr;
  }

  .cat-1,
  .cat-2,
  .cat-3,
  .cat-4,
  .cat-5 {
    grid-column: auto;
  }

  .cat-card--lg {
    min-height: 210px;
  }
  .cat-card--sm {
    min-height: 190px;
  }

  .cat-card__img {
    width: min(86%, 560px);
    right: 10px;
  }
}

@media (max-width: 540px) {
  .cat-card {
    padding: 16px 16px 0;
  }

  .cat-card__title {
    font-size: 16px;
  }

  .cat-card__img {
    width: 92%;
    right: 6px;
    bottom: 8px;
  }
}

/* ====== Adaptive ====== */
@media (max-width: 768px) {
  .stats {
    padding: 42px 0;
  }

  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 28px;
  }

  .stat__label {
    font-size: 16px;
  }
}

@media (max-width: 540px) {
  .stats {
    padding: 34px 0;
  }

  .stats__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .stat__label {
    font-size: 15px;
  }
}

/* ================= ADAPTIVE ================= */
@media (max-width: 1024px) {
  .partners__grid {
    grid-template-columns: 1fr;
  }
  .partners__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .partners {
    padding: 44px 0;
  }

  .partners__title {
    font-size: 34px;
  }

  .partners__cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* На мобилке инфо под фоткой, а не оверлеем */
  .partner-card {
    grid-template-rows: auto auto auto;
  }

  .partner-card__info {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    border-radius: 0;
  }

  /* Чтобы hover не влиял */
  .partner-card:hover .partner-card__info {
    opacity: 1;
    transform: none;
  }

  /* Если на мобилке инфу надо показывать только “по клику” — скажи, сделаю */
}

@media (max-width: 540px) {
  .partners__title {
    font-size: 30px;
  }

  .partner-card__bar {
    height: 60px;
  }
}

/* ================= ADAPTIVE ================= */
@media (max-width: 768px) {
  .feedback__form {
    grid-template-columns: 1fr;
    gap: 10px;
    border-radius: 22px; /* чуть “карточнее” на мобиле */
  }

  .field__input,
  .feedback__btn {
    height: 50px;
  }
}

@media (max-width: 540px) {
  .feedback {
    padding: 12px 0 22px;
  }

  .feedback__form {
    padding: 12px;
  }
}

/* ================= ADAPTIVE ================= */

@media (max-width: 768px) {
  :root {
    --pad: 18px;
    --h-topbar: 0px; /* topbar скрыт */
  }

  .topbar {
    display: none;
  }

  .nav--desktop {
    display: none;
  }
  .burger {
    display: inline-flex;
  }

  .mobile-menu {
    top: calc(var(--h-mainbar) + 10px);
  }

  .hero {
    padding-top: calc(var(--h-mainbar) + 22px);
    min-height: 680px;
  }
}

@media (max-width: 540px) {
  :root {
    --pad: 14px;
  }

  .mainbar__inner {
    height: 54px;
    padding: 0 10px;
    gap: 10px;
  }

  .cta {
    display: none; /* на очень узких можно спрятать CTA в хедере, т.к. внизу меню она будет */
  }

  .hero__subtitle {
    font-size: 15px;
  }
}
