/* ==========================================================
   Типографика сайта и мобильная шапка
   ========================================================== */

/* ---------- Шрифт ---------- */
body,
body * {
  font-family: 'Inter', 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- Бренд в шапке ---------- */
.header__name {
  letter-spacing: -0.02em;
}

.header__name-tld {
  color: #15c7ff;
  font-weight: 800;
}

/* ---------- Часы работы ---------- */
.header__time-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__clock {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: #8a97a6;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header__time-lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.header__time-line {
  font-size: 15px;
  line-height: 1.3;
  white-space: nowrap;
  color: rgba(0, 0, 0, 0.55);
}

/* ---------- Иконка меню ---------- */
.header__menu-icon {
  border: none;
  padding: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
}

.header__menu-icon::before,
.header__menu-icon::after {
  display: none !important;
}

.mi-line {
  fill: #10202b;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

/* ---------- Мобильная шапка ---------- */
@media screen and (max-width: 767px) {
  .container.top {
    padding: 8px 12px;
    gap: 8px;
  }

  .header__name-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 4px;
  }

  .header__name-wrapper {
    padding-left: 30px;
    background-size: 24px;
    background-position: 0 50%;
    min-height: auto;
  }

  .header__name {
    margin-top: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    opacity: 1;
    color: #10202b;
  }

  .header__name-description {
    display: block;
    margin-top: 1px;
    font-size: 10px;
    line-height: 1.2;
    opacity: 1;
    color: #7b8794;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header__time-wrapper {
    padding: 4px 8px;
    align-items: flex-start;
    gap: 6px;
    border-radius: 9px;
    background-color: #f3f8fa;
    flex: 0 0 auto;
  }

  .header__clock {
    width: 12px;
    height: 12px;
    margin-top: 2px;
    stroke: #128fb3;
  }

  .header__time-lines {
    gap: 1px;
  }

  .header__time-line {
    font-size: 9.5px;
    line-height: 1.35;
    text-align: left;
    color: #5b6b7a;
  }

  .header__menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    border: none;
    background-color: #f3f8fa;
    transition: background-color 0.2s ease;
  }

  .header__menu-icon svg {
    width: 20px;
    height: 20px;
    display: block;
  }

  .header__menu-icon:hover,
  .header__menu-icon.active {
    height: 38px;
    border: none;
    background-color: #e6eff4;
  }

  .header__menu-icon.active .mi-line--2 {
    opacity: 0;
  }

  .header__menu-icon.active .mi-line--1 {
    transform: translateY(4.8px) rotate(45deg);
  }

  .header__menu-icon.active .mi-line--3 {
    transform: translateY(-4.8px) rotate(-45deg);
  }
}

/* ---------- Выпадающее меню на мобильном ---------- */
@media screen and (max-width: 767px) {
  .header__submenu {
    padding-bottom: 30px;
    border-radius: 0 0 0 16px;
    box-shadow: -10px 0 30px rgba(16, 32, 43, 0.15);
  }

  .header__submenu-link {
    font-size: 16px;
    font-weight: 500;
  }

  .header__submenu-item--active .header__submenu-link {
    font-weight: 700;
  }
}

/* ---------- Заголовки разделов: жирные и контрастные ---------- */
h1,
h2,
h3,
.title,
.suppliers__title,
.steps__title,
.delivery__title,
.payment__title,
.order__inner-title,
.order__top-title,
.brand__title,
.first__title {
  font-weight: 800;
  color: #10202b;
  opacity: 1;
  letter-spacing: -0.015em;
}

h1 {
  font-weight: 700;
}

/* ---------- Крупнее мобильная шапка ---------- */
@media screen and (max-width: 767px) {
  .header {
    height: 76px;
  }

  .container.first--3,
  .wrapper-container.first,
  .brand,
  .container.success {
    margin-top: 76px;
  }

  .container.first--3 {
    padding-top: 8px;
    background-position: 50% 98px;
  }

  .container.top {
    padding: 8px 12px;
  }

  .header__name-wrapper {
    padding-left: 44px;
    background-size: 34px;
  }

  .header__name {
    font-size: 19px;
  }

  .header__name-description {
    font-size: 11.5px;
  }

  .header__time-wrapper {
    padding: 6px 10px;
    gap: 7px;
    border-radius: 11px;
  }

  .header__clock {
    width: 15px;
    height: 15px;
  }

  .header__time-line {
    font-size: 11px;
  }

  .header__menu-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .header__menu-icon svg {
    width: 24px;
    height: 24px;
  }

  .header__menu-icon:hover,
  .header__menu-icon.active {
    height: 44px;
  }
}

/* Чуть компактнее на узких экранах, чтобы шапка не переполнялась */
@media screen and (max-width: 380px) {
  .header__name-wrapper {
    padding-left: 40px;
    background-size: 30px;
  }

  .header__name {
    font-size: 18px;
  }

  .header__name-description {
    font-size: 10.5px;
  }

  .header__time-wrapper {
    padding: 5px 8px;
    gap: 6px;
  }

  .header__time-line {
    font-size: 10px;
  }

  .header__clock {
    width: 13px;
    height: 13px;
  }

  .header__menu-icon {
    width: 40px;
    height: 40px;
  }

  .header__menu-icon:hover,
  .header__menu-icon.active {
    height: 40px;
  }
}

/* Описание бренда: переносим на две строки вместо обрезки */
@media screen and (max-width: 767px) {
  .header__name-description {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 11px;
    line-height: 1.15;
  }
}

@media screen and (max-width: 380px) {
  .header__name-description {
    font-size: 10.5px;
  }
}

/* Аккуратный перенос описания бренда */
@media screen and (max-width: 767px) {
  .header__name-description {
    text-wrap: balance;
  }
}

/* ---------- Выпадающее меню: современный вид ---------- */
@media screen and (max-width: 767px) {
  .header__submenu {
    width: min(86vw, 332px);
    max-width: none;
    height: calc(100vh - 64px);
    right: -340px;
    padding: 16px 14px 28px;
    border-radius: 0 0 0 20px;
    box-shadow: -14px 0 40px rgba(16, 32, 43, 0.18);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .header__submenu-item {
    margin-right: 0;
    font-weight: 400;
  }

  .header__submenu-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .header__submenu-link:hover,
  .header__submenu-link:active {
    background-color: #f1f7fa;
    color: #0f9cbf;
  }

  .header__submenu-item--active .header__submenu-link {
    background-color: #eaf6fb;
    color: #0b87ab;
    font-weight: 700;
  }
}

/* Меню — компактная карточка под шапкой */
@media screen and (max-width: 767px) {
  .header__submenu {
    top: 12px;
    height: auto;
    max-height: calc(100vh - 96px);
  }
}

/* Крупнее логотип в мобильной шапке */
@media screen and (max-width: 767px) {
  .header__name-wrapper {
    padding-left: 52px;
    background-size: 44px;
  }
}

@media screen and (max-width: 380px) {
  .header__name-wrapper {
    padding-left: 46px;
    background-size: 38px;
  }
}

/* ---------- Логотип-надпись Carandu.ru ---------- */
.header__name {
  font-weight: 900;
  letter-spacing: -0.035em;
  color: #0b1b26;
  font-feature-settings: "ss01" 1;
}

.header__name-tld {
  font-weight: 900;
  letter-spacing: -0.02em;
  background-image: linear-gradient(135deg, #2ee6ff 0%, #0fa9db 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@media screen and (max-width: 767px) {
  .header__name {
    font-size: 19px;
    letter-spacing: -0.045em;
  }
}

@media screen and (max-width: 380px) {
  .header__name {
    font-size: 18px;
  }
}

/* ---------- Компактнее шапка: описание в одну строку ---------- */
@media screen and (max-width: 767px) {
  .container.top {
    padding: 8px 12px;
    gap: 6px;
  }

  .header__name-wrapper {
    padding-left: 48px;
    background-size: 42px;
  }

  .header__name {
    font-size: 21px;
    line-height: 1.1;
  }

  .header__name-description {
    font-size: 10.5px;
    line-height: 1.2;
    white-space: nowrap;
    text-wrap: nowrap;
    overflow: visible;
    text-overflow: clip;
  }

  .header__time-wrapper {
    padding: 4px 8px;
    gap: 5px;
    border-radius: 10px;
  }

  .header__clock {
    width: 13px;
    height: 13px;
  }

  .header__time-line {
    font-size: 10px;
    line-height: 1.35;
  }

  .header__menu-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .header__menu-icon svg {
    width: 22px;
    height: 22px;
  }

  .header__menu-icon:hover,
  .header__menu-icon.active {
    height: 40px;
  }
}

@media screen and (max-width: 380px) {
  .header__name-wrapper {
    padding-left: 44px;
    background-size: 38px;
  }

  .header__name {
    font-size: 19px;
  }

  .header__name-description {
    font-size: 9.5px;
  }

  .header__time-line {
    font-size: 9.5px;
  }

  .header__clock {
    width: 12px;
    height: 12px;
  }
}

/* Очень узкие экраны: чтобы бренд и описание не наезжали на часы */
@media screen and (max-width: 359px) {
  .container.top {
    gap: 4px;
    padding: 8px 10px;
  }

  .header__name-wrapper {
    padding-left: 40px;
    background-size: 34px;
  }

  .header__name {
    font-size: 17px;
  }

  .header__name-description {
    font-size: 8.5px;
  }

  .header__time-wrapper {
    padding: 3px 6px;
    gap: 4px;
  }

  .header__clock {
    width: 11px;
    height: 11px;
  }

  .header__time-line {
    font-size: 9px;
  }

  .header__menu-icon {
    width: 36px;
    height: 36px;
  }

  .header__menu-icon:hover,
  .header__menu-icon.active {
    height: 36px;
  }
}

/* Убираем возможную белую полосу под шапкой:
   фон первого экрана рисуется от самого верха, под шапку */
@media screen and (max-width: 767px) {
  .wrapper-container--main {
    overflow: hidden;
  }
}

/* Убираем тень шапки на мобильном — она давала светлую полосу под ней */
@media screen and (max-width: 767px) {
  .header {
    box-shadow: none;
  }

  .header .wrapper-container {
    box-shadow: inset 0 -1px 0 0 rgba(16, 32, 43, 0.08);
  }
}

/* ==========================================================
   Десктопное меню: современные пункты-пилюли
   ========================================================== */
@media screen and (min-width: 1025px) {
  .header__submenu {
    width: auto;
    justify-content: flex-start;
    align-items: center;
    gap: 2px;
    padding-left: 0;
  }

  .header__submenu-item {
    margin-right: 0;
    font-weight: 400;
  }

  .header__submenu-item--active::after {
    display: none;
  }

  .header__submenu-link {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.005em;
    color: #3d5366;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .header__submenu-link:hover {
    background-color: #f2f8fb;
    color: #0e8fb3;
  }

  .header__submenu-item--active .header__submenu-link {
    background-color: #e7f5fb;
    color: #0a7fa3;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(15, 156, 191, 0.12);
  }
}

@media screen and (min-width: 1025px) and (max-width: 1240px) {
  .header__submenu-link {
    height: 34px;
    padding: 0 10px;
    font-size: 14px;
  }
}

/* Точная подгонка ширины меню-пилюль */
@media screen and (min-width: 1241px) {
  .header__submenu-link {
    padding: 0 12px;
  }
}

@media screen and (min-width: 1025px) and (max-width: 1150px) {
  .header__submenu-link {
    height: 32px;
    padding: 0 8px;
    font-size: 13.5px;
  }
}

/* На узких десктопах сдвигаем меню левее, чтобы пилюли влезли */
@media screen and (min-width: 1025px) and (max-width: 1150px) {
  .container.submenu {
    padding-left: 20px;
  }
}

/* ==========================================================
   Блок преимуществ: белая карточка, мятные иконки, разделители
   ========================================================== */
@media screen and (min-width: 1025px) {
  .quality-list--3 {
    margin-top: 40px;
    padding: 20px 4px;
    border-radius: 18px;
    background-color: #fff;
    border: 1px solid #eaf1f5;
    box-shadow: 0 18px 40px -28px rgba(16, 32, 43, 0.45);
  }

  .quality-list--3 .quality-item {
    padding: 6px 30px 6px 70px;
    align-items: center;
    color: #24384a;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 500;
  }

  .quality-list--3 .quality-item + .quality-item {
    border-left: 1px solid #eef4f7;
  }

  .quality-list--3 .quality-item::before {
    left: 14px;
    width: 40px;
    height: 40px;
    background-color: #e9f7ef;
    background-image: none;
    box-shadow: inset 0 0 0 1px rgba(31, 168, 74, 0.12);
  }

  .quality-list--3 .quality-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 34px;
    width: 16px;
    height: 12px;
    transform: translate(-50%, -50%);
    background-color: #1fa84a;
    -webkit-mask: url(/assets/img/quality-item-bg.svg) center / contain no-repeat;
    mask: url(/assets/img/quality-item-bg.svg) center / contain no-repeat;
  }
}

/* Мобильный вариант */
@media screen and (max-width: 767px) {
  .quality-list--3 {
    margin-top: 16px;
    padding: 0;
    background: transparent;
  }

  .quality-list--3 .quality-item {
    padding: 14px 18px 14px 62px;
    border-radius: 14px;
    border: 1px solid #eaf1f5;
    background-color: #fff;
    color: #24384a;
    font-size: 13.5px;
    line-height: 1.4;
    font-weight: 500;
  }

  .quality-list--3 .quality-item + .quality-item {
    margin-top: 8px;
    border-left: 1px solid #eaf1f5;
  }

  .quality-list--3 .quality-item::before {
    left: 14px;
    width: 34px;
    height: 34px;
    background-color: #e9f7ef;
    background-image: none;
    box-shadow: inset 0 0 0 1px rgba(31, 168, 74, 0.12);
  }

  .quality-list--3 .quality-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 31px;
    width: 14px;
    height: 10px;
    transform: translate(-50%, -50%);
    background-color: #1fa84a;
    -webkit-mask: url(/assets/img/quality-item-bg.svg) center / contain no-repeat;
    mask: url(/assets/img/quality-item-bg.svg) center / contain no-repeat;
  }
}

/* Логотип не должен обрезаться по высоте блока */
@media screen and (max-width: 767px) {
  .header__name-wrapper {
    min-height: 44px;
    justify-content: center;
    background-position: 0 50%;
    background-size: 44px;
  }
}

@media screen and (max-width: 380px) {
  .header__name-wrapper {
    min-height: 38px;
    background-size: 38px;
  }
}

/* Логотип — ссылка на главную */
.header__name-wrapper {
  cursor: pointer;
  text-decoration: none !important;
}

.header__name-wrapper:hover .header__name {
  color: #0a7fa3;
}

.header__name-wrapper:focus-visible {
  outline: 2px solid #15c7ff;
  outline-offset: 4px;
  border-radius: 8px;
}

/* Разделитель шапки — ровно по её нижнему краю, без белой полосы под ним */
@media screen and (max-width: 767px) {
  .header {
    box-shadow: none;
    border-bottom: 1px solid #e3edf2;
  }

  .header .wrapper-container {
    box-shadow: none;
  }
}

/* Центрируем меню между разделителем шапки и первым экраном */
@media screen and (min-width: 1241px) {
  .container.submenu {
    padding-top: 11px;
  }
}

@media screen and (min-width: 1025px) and (max-width: 1240px) {
  .container.submenu {
    padding-top: 12px;
  }
}

/* ==========================================================
   Преимущества: отступы по ширине сайта + иконки по смыслу
   ========================================================== */
@media screen and (max-width: 767px) {
  .quality-list--3 {
    margin-top: 16px;
    padding: 0 12px;
    box-sizing: border-box;
    max-width: 100%;
  }

  .quality-list--3 .quality-item {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Иконки: подбор, доставка, самовывоз */
.quality-list--3 .quality-item::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 34px;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 18px 18px;
  -webkit-mask: none;
  mask: none;
}

.quality-list--3 .quality-item:nth-child(1)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231FA84A' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E");
}

.quality-list--3 .quality-item:nth-child(2)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231FA84A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 7.5h11v9h-11z'/%3E%3Cpath d='M13.5 10.5h3.2l3.3 3.3v2.7h-6.5z'/%3E%3Ccircle cx='6.5' cy='18.5' r='1.7'/%3E%3Ccircle cx='17' cy='18.5' r='1.7'/%3E%3C/svg%3E");
}

.quality-list--3 .quality-item:nth-child(3)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231FA84A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21c3.8-4.1 6-7.1 6-9.8a6 6 0 1 0-12 0C6 13.9 8.2 16.9 12 21z'/%3E%3Ccircle cx='12' cy='11' r='2.3'/%3E%3C/svg%3E");
}

@media screen and (max-width: 767px) {
  .quality-list--3 .quality-item::after {
    left: 31px;
    width: 16px;
    height: 16px;
    background-size: 16px 16px;
  }
}

/* Шапка и меню — по всей ширине сайта (1200px) */
@media screen and (min-width: 1025px) {
  .container.top {
    max-width: 1200px;
  }

  .container.submenu {
    max-width: 1200px;
    padding-left: 0;
  }

  .header__submenu {
    width: 100%;
    justify-content: space-between;
  }
}

@media screen and (min-width: 1025px) and (max-width: 1150px) {
  .container.submenu {
    padding-left: 0;
  }
}

/* Выравнивание шапки и меню по краям контейнера */
@media screen and (min-width: 1025px) {
  .header__submenu {
    padding-right: 0;
  }
}

/* На экранах уже контейнера — аккуратные боковые отступы */
@media screen and (min-width: 1025px) and (max-width: 1240px) {
  .container.top {
    padding-left: 20px;
    padding-right: 20px;
  }

  .container.submenu {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Компактная высота шапки: контент 60px + 4px отступы */
@media screen and (max-width: 767px) {
  .header {
    height: 68px;
  }

  .container.top {
    padding: 4px 12px;
  }

  .container.first--3,
  .wrapper-container.first,
  .brand,
  .container.success {
    margin-top: 68px;
  }
}

/* Шапка ровно по высоте контента — без белой полосы снизу */
@media screen and (max-width: 767px) {
  .header {
    height: 52px;
  }

  .container.first--3,
  .wrapper-container.first,
  .brand,
  .container.success {
    margin-top: 52px;
  }
}

/* Финальная высота шапки: 44px контент + 6px отступы = 56px */
@media screen and (max-width: 767px) {
  .header {
    height: 56px;
  }

  .container.top {
    padding: 6px 12px;
  }

  .container.first--3,
  .wrapper-container.first,
  .brand,
  .container.success {
    margin-top: 56px;
  }
}

/* Итоговая высота шапки: 44px контент + 8px отступы = 60px */
@media screen and (max-width: 767px) {
  .header {
    height: 60px;
  }

  .container.top {
    padding: 8px 12px;
  }

  .container.first--3,
  .wrapper-container.first,
  .brand,
  .container.success {
    margin-top: 60px;
  }
}

/* Первый экран — по ширине сайта, как остальные секции */
@media screen and (min-width: 1025px) {
  .container.first--3 {
    padding-left: 0;
    padding-right: 0;
    background-position: calc(100% - 40px) 50%;
  }
}

/* На экранах уже 1200px — боковые отступы первого экрана */
@media screen and (min-width: 1025px) and (max-width: 1240px) {
  .container.first--3 {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ==========================================================
   Блок поставщиков: аккуратные карточки + чёткие логотипы (4x)
   ========================================================== */
.suppliers__row {
  grid-gap: 16px;
  padding: 8px 0;
}

.suppliers__item {
  border-radius: 18px;
  background-color: #fff;
  border: 1px solid #edf3f6;
  box-shadow: 0 10px 26px -20px rgba(16, 32, 43, 0.45);
  background-repeat: no-repeat;
  background-position: 50% 50%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.suppliers__item:hover {
  transform: translateY(-3px);
  border-color: #dbe9f1;
  box-shadow: 0 18px 34px -22px rgba(16, 32, 43, 0.55);
}

/* размеры подобраны под исходные пропорции логотипов */
.suppliers__item--1  { background-size: 49px 48px; }
.suppliers__item--2  { background-size: 108px 26px; }
.suppliers__item--3  { background-size: 100px 31px; }
.suppliers__item--4  { background-size: 96px 32px; }
.suppliers__item--5  { background-size: 96px 74px; }
.suppliers__item--6  { background-size: 76px 36px; }
.suppliers__item--7  { background-size: 64px 64px; }
.suppliers__item--8  { background-size: 84px 42px; }
.suppliers__item--9  { background-size: 50px 50px; }
.suppliers__item--10 { background-size: 100px 33px; }
.suppliers__item--11 { background-size: 88px 38px; }
.suppliers__item--12 { background-size: 50px 50px; }

@media screen and (max-width: 767px) {
  .suppliers__item {
    border-radius: 16px;
  }

  .suppliers__item--1  { background-size: 42px 41px; }
  .suppliers__item--2  { background-size: 92px 22px; }
  .suppliers__item--3  { background-size: 86px 27px; }
  .suppliers__item--4  { background-size: 82px 27px; }
  .suppliers__item--5  { background-size: 82px 63px; }
  .suppliers__item--6  { background-size: 65px 31px; }
  .suppliers__item--7  { background-size: 55px 55px; }
  .suppliers__item--8  { background-size: 72px 36px; }
  .suppliers__item--9  { background-size: 43px 43px; }
  .suppliers__item--10 { background-size: 86px 28px; }
  .suppliers__item--11 { background-size: 75px 33px; }
  .suppliers__item--12 { background-size: 43px 43px; }
}

/* Часы и телефон — по правому краю сайта */
@media screen and (min-width: 1025px) {
  .container.top .header__button-wrapper {
    display: none;
  }

  .header__time-wrapper {
    margin-left: auto;
  }
}

/* ==========================================================
   Концепция: тёмная акцентная карточка преимуществ
   ========================================================== */
.quality-list--3 {
  background-image: linear-gradient(135deg, #0b1f2a 0%, #123a4a 55%, #0e5568 100%);
  border: 0;
  border-radius: 22px;
  box-shadow: 0 30px 60px -32px rgba(11, 31, 42, 0.65);
}

.quality-list--3 .quality-item {
  color: #e8f2f6;
}

.quality-list--3 .quality-item + .quality-item {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.quality-list--3 .quality-item::before {
  background-color: rgba(21, 199, 255, 0.16);
  background-image: none;
  box-shadow: inset 0 0 0 1px rgba(94, 227, 255, 0.4);
}

/* иконки делаем белыми */
.quality-list--3 .quality-item::after {
  filter: brightness(0) invert(1);
}

@media screen and (min-width: 1025px) {
  .quality-list--3 {
    padding: 26px 10px;
  }

  .quality-list--3 .quality-item {
    padding: 8px 30px 8px 70px;
    font-size: 15.5px;
  }
}

@media screen and (max-width: 767px) {
  .quality-list--3 {
    padding: 0;
    background-color: transparent;
    background-image: none;
    box-shadow: none;
  }

  .quality-list--3 .quality-item {
    background-image: linear-gradient(135deg, #0b1f2a 0%, #123a4a 60%, #0e5568 100%);
    border: 0;
    box-shadow: 0 16px 30px -22px rgba(11, 31, 42, 0.6);
    color: #e8f2f6;
  }

  .quality-list--3 .quality-item + .quality-item {
    margin-top: 10px;
    border-left: 0;
  }

  /* мобильные разделители не нужны */
  .quality-list--3 .quality-item::before {
    background-color: rgba(21, 199, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(94, 227, 255, 0.45);
  }
}

/* Секция поставщиков — на лёгкой подложке, чтобы карточки читались */
.wrapper-container--suppliers {
  background-color: #f4fafc;
}

/* Отступы карточек преимуществ на мобильном (перекрываем общий сброс) */
@media screen and (max-width: 767px) {
  .quality-list--3 {
    padding: 0 12px;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }
}

/* Единый стиль карточек: гарантии, оплата, доставка, этапы */
.advantages__item,
.payment__container,
.delivery__container,
.steps__list {
  background-color: #fff;
  border: 1px solid #edf3f6;
  border-radius: 18px;
  box-shadow: 0 16px 36px -28px rgba(16, 32, 43, 0.45);
}

/* Мягкая подложка секции гарантий, чтобы белые карточки читались */
.wrapper-container--guarantees {
  background-color: #f7fbfd;
}

/* ==========================================================
   Правки: светлые карточки, ширина секций, обводка меню,
   крупнее заголовок на мобильном и диск на десктопе
   ========================================================== */

/* 1. Возврат светлой карточки преимуществ */
.quality-list--3 {
  background-image: none;
  background-color: #fff;
  border: 1px solid #eaf1f5;
  box-shadow: 0 18px 40px -28px rgba(16, 32, 43, 0.45);
}

.quality-list--3 .quality-item {
  color: #24384a;
}

.quality-list--3 .quality-item + .quality-item {
  border-left: 1px solid #eef4f7;
}

.quality-list--3 .quality-item::before {
  background-color: #e9f7ef;
  box-shadow: inset 0 0 0 1px rgba(31, 168, 74, 0.12);
}

.quality-list--3 .quality-item::after {
  filter: none;
}

@media screen and (max-width: 767px) {
  .quality-list--3 {
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .quality-list--3 .quality-item {
    background-image: none;
    background-color: #fff;
    border: 1px solid #eaf1f5;
    box-shadow: none;
    color: #24384a;
  }

  .quality-list--3 .quality-item + .quality-item {
    margin-top: 8px;
    border-left: 1px solid #eaf1f5;
  }
}

/* 2. Секции гарантий, этапов, оплаты и доставки — по ширине сайта */
@media screen and (min-width: 1025px) {
  .advantages__list {
    padding: 0;
  }

  .container.steps,
  .container.payment,
  .container.delivery {
    padding-left: 0;
    padding-right: 0;
  }

  .advantages__item {
    width: 32.5%;
    max-width: 380px;
  }
}

/* 3. Обводка пунктов меню в стиле иконок-кружков */
@media screen and (min-width: 1025px) {
  .header__submenu-link {
    box-shadow: inset 0 0 0 1px rgba(15, 156, 191, 0.1);
  }

  .header__submenu-link:hover {
    box-shadow: inset 0 0 0 1px rgba(15, 156, 191, 0.16);
  }

  .header__submenu-item--active .header__submenu-link {
    box-shadow: inset 0 0 0 1px rgba(15, 156, 191, 0.2);
  }
}

/* 4. Крупнее заголовок первого экрана на мобильном */
@media screen and (max-width: 767px) {
  .container.first--3 .main-title__title {
    font-size: 25px;
    line-height: 1.18;
  }

  .container.first--3 .main-title__subtitle {
    font-size: 17px;
  }
}

/* 5. Крупнее диск на десктопе */
@media screen and (min-width: 1025px) {
  .container.first--3 {
    background-size: 320px auto;
    background-position: calc(100% - 20px) 50%;
  }
}

/* Крупный заголовок + компенсация отступа, чтобы форма влезала */
@media screen and (max-width: 767px) {
  .container.first--3 .main-title__title {
    line-height: 1.12;
  }

  .container.first--3 .form__container {
    margin-top: 46px;
  }
}

@media screen and (max-width: 359px) {
  .container.first--3 .main-title__title {
    font-size: 21px;
    line-height: 1.16;
  }
}

/* На мобильном крупный заголовок не оставляет места диску — убираем его */
@media screen and (max-width: 767px) {
  .container.first--3 {
    background-image: none;
  }
}

/* Возврат исходного вида карточек: серые плитки без рамок и теней */
.advantages__item,
.steps__list,
.payment__container {
  background-color: #edf3f5;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
}

.delivery__container {
  background-color: transparent;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
}

/* Контакты — по ширине сайта */
@media screen and (min-width: 1025px) {
  .container.order {
    padding-left: 0;
    padding-right: 0;
  }

  .order__half--left {
    padding-left: 0;
  }

  .order__half--right {
    padding-left: 0;
  }
}

/* Правая колонка контактов — по правому краю сайта */
@media screen and (min-width: 1025px) {
  .order__half--right {
    text-align: right;
  }

  .order__half--right .order__phone {
    margin-left: auto;
  }
}

/* Диск заметно крупнее — лёгкий наплыв на кнопку WhatsApp */
@media screen and (min-width: 1241px) {
  .container.first--3 {
    background-size: 480px auto;
    background-position: 100% 50%;
  }
}

@media screen and (min-width: 1025px) and (max-width: 1240px) {
  .container.first--3 {
    background-size: 340px auto;
    background-position: calc(100% - 10px) 50%;
  }
}

/* ==========================================================
   Преимущества: 3 крупные карточки с заголовком и пояснением
   ========================================================== */
.quality-list--3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.quality-list--3 .quality-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: auto;
  max-width: none;
  padding: 22px 24px;
  border-radius: 18px;
  background-color: #fff;
  border: 1px solid #e6f0f5;
  box-shadow: 0 18px 38px -30px rgba(16, 32, 43, 0.5);
  color: #0f2430;
}

.quality-list--3 .quality-item::before,
.quality-list--3 .quality-item::after {
  display: none;
}

.quality-item__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background-image: linear-gradient(135deg, #e8f8ef 0%, #e2f4fd 100%);
  box-shadow: inset 0 0 0 1px rgba(14, 143, 179, 0.1);
}

.quality-item__icon svg {
  width: 23px;
  height: 23px;
  display: block;
}

.quality-item__title {
  margin: 0 0 4px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #0f2430;
}

.quality-item__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: #5b7180;
}

@media screen and (max-width: 1024px) {
  .quality-list--3 {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .quality-list--3 .quality-item {
    padding: 16px 18px;
    border-radius: 16px;
  }

  .quality-item__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .quality-item__title {
    font-size: 15.5px;
  }

  .quality-item__text {
    font-size: 13px;
  }
}

/* Отступы и чуть заметнее рамка карточек преимуществ */
@media screen and (max-width: 1024px) {
  .quality-list--3 {
    padding: 0 12px;
  }
}

.quality-list--3 .quality-item {
  border-color: #dcebf2;
}

/* Симметричный белый отступ под блоком преимуществ */
.container--quality {
  padding-bottom: 40px;
}

@media screen and (max-width: 1024px) {
  .container--quality {
    padding-bottom: 20px;
  }
}

/* Доставка — вернуть прежнюю ширину блока */
@media screen and (min-width: 1241px) {
  .container.delivery {
    padding-left: 130px;
    padding-right: 130px;
  }
}

@media screen and (min-width: 1025px) and (max-width: 1240px) {
  .container.delivery {
    padding-left: 80px;
    padding-right: 80px;
  }
}

/* Диск на мобильном: выглядывает из-под формы, не задевая текст */
@media screen and (max-width: 767px) {
  .container.first--3 {
    background-image: url(/assets/img/first--3-mobile-img.png);
    background-repeat: no-repeat;
    background-position: 50% 124px;
    background-size: 170px auto;
  }

  .container.first--3 .form__container {
    background: #e7f4fa;
  }
}

@media screen and (max-width: 359px) {
  .container.first--3 {
    background-position: 50% 118px;
    background-size: 140px auto;
  }
}

/* Секция поставщиков: отступы внутри тонированной подложки */
.wrapper-container--suppliers {
  padding: 56px 0 44px;
}

@media screen and (max-width: 767px) {
  .wrapper-container--suppliers {
    padding: 32px 0 24px;
  }
}

/* Панель формы на мобильном — белая карточка с тенью, чтобы не сливалась с фоном */
@media screen and (max-width: 767px) {
  .container.first--3 .form__container {
    background: #ffffff;
    box-shadow: 0 24px 48px -30px rgba(11, 31, 42, 0.4);
  }

  .container.first--3 .form__field,
  .container.first--3 .form__input,
  .container.first--3 input[type='text'],
  .container.first--3 input[type='tel'] {
    border: 1px solid #dfeaf1;
  }
}

/* Поля формы: рамка на обёртке, сам input без рамки */
@media screen and (max-width: 767px) {
  .container.first--3 .form-input__container input {
    border: 0;
  }

  .container.first--3 .form__container .form-input__container {
    background-color: #f7fbfd;
    border: 1px solid #e2eef5;
  }
}

/* Доставка — вернуть исходный серый фон карточек */
.delivery__container {
  background-color: #edf3f5;
  border-radius: 12px;
  border: 0;
  box-shadow: none;
}

/* Блоки «Способы оплаты» и «Доставка партнерами» — по ширине сайта */
@media screen and (min-width: 1025px) {
  .container.payment,
  .container.delivery {
    padding-left: 0;
    padding-right: 0;
  }

  .container.payment {
    padding-bottom: 0;
  }
}

/* Поля формы: строка в цвет поля + свечение при фокусе */
.container.first--3 .form-input__container input {
  background-color: transparent;
}

.container.first--3 .form-input__container {
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.container.first--3 .form-input__container:focus-within {
  background-color: #ffffff;
  border-color: #5bbcdf;
  box-shadow: 0 0 0 3px rgba(21, 199, 255, 0.22),
              0 10px 26px -12px rgba(21, 199, 255, 0.65);
}

.container.first--3 .form-input__container input:focus {
  outline: 0;
}

/* Форма «Заказать запчасти»: градиентная обводка + крупнее заголовок */
@media screen and (max-width: 767px) {
  .container.first--3 .form__container {
    border: 1.5px solid transparent;
    background-image:
      linear-gradient(#ffffff, #ffffff),
      linear-gradient(135deg, rgba(21, 199, 255, 0.55) 0%, rgba(31, 168, 74, 0.4) 100%);
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 28px 56px -34px rgba(11, 31, 42, 0.5);
  }

  .container.first--3 .form__title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
  }
}

/* Обводка формы заметнее */
@media screen and (max-width: 767px) {
  .container.first--3 .form__container {
    border-width: 2px;
    background-image:
      linear-gradient(#ffffff, #ffffff),
      linear-gradient(135deg, #7fd7f2 0%, #8fd8b4 100%);
  }
}

/* Небольшой запас, чтобы форма не упиралась в нижнюю панель */
@media screen and (max-width: 767px) {
  .container.first--3 .form__container {
    margin-top: 42px;
  }
}

/* ==========================================================
   Меню: обычный текст + подчёркивание активного пункта
   ========================================================== */
@media screen and (min-width: 1025px) {
  .header__submenu-link {
    height: auto;
    padding: 10px 2px;
    border-radius: 0;
    background: none !important;
    box-shadow: none !important;
    color: #3d5366;
    font-size: 15px;
    font-weight: 500;
    position: relative;
  }

  .header__submenu-link:hover {
    background: none !important;
    box-shadow: none !important;
    color: #0a7fa3;
  }

  .header__submenu-item--active .header__submenu-link {
    background: none !important;
    box-shadow: none !important;
    color: #0b1b26;
    font-weight: 600;
  }

  .header__submenu-item--active .header__submenu-link::after {
    content: '';
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background-image: linear-gradient(90deg, #22c8f0 0%, #0e8fb3 100%);
  }
}

@media screen and (max-width: 767px) {
  .header__submenu-link {
    min-height: 50px;
    padding: 0 4px;
    border-radius: 0;
    background: none !important;
    color: #20313d;
    font-size: 17px;
    position: relative;
  }

  .header__submenu-link:hover,
  .header__submenu-link:active {
    background: none !important;
    color: #0a7fa3;
  }

  .header__submenu-item--active .header__submenu-link {
    background: none !important;
    color: #0b1b26;
    font-weight: 700;
  }

  .header__submenu-item--active .header__submenu-link::after {
    content: '';
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 10px;
    height: 2px;
    border-radius: 2px;
    background-image: linear-gradient(90deg, #22c8f0 0%, #0e8fb3 100%);
  }

  .header__submenu-item + .header__submenu-item {
    border-top: 1px solid #f0f6f9;
  }
}

/* ==========================================================
   Факты под заголовком первого экрана
   ========================================================== */
.hero-facts {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.hero-facts__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4d6575;
  font-size: 14px;
  line-height: 1.35;
}

.hero-facts__item + .hero-facts__item::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #b9ccd6;
  margin-right: 16px;
  flex: 0 0 auto;
}

.hero-facts__icon {
  display: inline-flex;
  flex: 0 0 auto;
}

.hero-facts__icon svg {
  width: 17px;
  height: 17px;
  display: block;
}

.hero-facts__link {
  color: #0e8fb3;
  text-decoration: none;
  font-weight: 500;
}

.hero-facts__link:hover {
  text-decoration: underline;
}

.hero-facts__link b {
  font-weight: 700;
}

.hero-facts__stars {
  color: #f2a516;
}

@media screen and (max-width: 767px) {
  .hero-facts {
    margin-top: 12px;
    gap: 6px 14px;
  }

  .hero-facts__item {
    font-size: 12.5px;
    gap: 6px;
  }

  .hero-facts__item + .hero-facts__item::before {
    margin-right: 6px;
  }

  .hero-facts__icon svg {
    width: 15px;
    height: 15px;
  }
}

/* На мобильном факты занимают место диска — убираем его, чтобы текст не перекрывался */
@media screen and (max-width: 767px) {
  .container.first--3 {
    background-image: none;
  }
}

/* Компактный режим для невысоких экранов, чтобы форма помещалась над панелью */
@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 {
    padding-top: 14px;
  }

  .container.first--3 .main-title__title {
    font-size: 23px;
  }

  .container.first--3 .main-title__subtitle {
    font-size: 15px;
  }

  .hero-facts {
    margin-top: 8px;
    gap: 4px 10px;
  }

  .hero-facts__item {
    font-size: 12px;
  }

  .container.first--3 .form__container {
    margin-top: 22px;
    padding: 14px;
  }

  .container.first--3 .form__title {
    font-size: 18px;
  }

  .container.first--3 .form-input__container {
    padding: 5px 14px;
  }

  .container.first--3 .form__button {
    line-height: 48px;
  }
}

/* Ещё чуть компактнее на коротких экранах */
@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 {
    padding-top: 12px;
  }

  .container.first--3 .form__container {
    margin-top: 18px;
  }

  .container.first--3 .form__button {
    line-height: 46px;
  }
}

/* Очень узкие и невысокие экраны: ещё компактнее */
@media screen and (max-width: 359px) and (max-height: 700px) {
  .container.first--3 {
    padding-top: 10px;
  }

  .container.first--3 .main-title__title {
    font-size: 21px;
    line-height: 1.12;
  }

  .container.first--3 .main-title__subtitle {
    font-size: 14px;
    margin-top: 2px;
  }

  .hero-facts {
    margin-top: 6px;
    gap: 3px 8px;
  }

  .hero-facts__item {
    font-size: 11.5px;
  }

  .container.first--3 .form__container {
    margin-top: 12px;
    padding: 12px;
  }

  .container.first--3 .form__title {
    font-size: 16px;
  }

  .container.first--3 .form-input__container {
    padding: 4px 12px;
  }

  .container.first--3 .form-input__container label {
    font-size: 11px;
  }

  .container.first--3 .form__button {
    line-height: 44px;
    font-size: 16px;
  }

  .container.first--3 .form__conditional-text {
    font-size: 12px;
    line-height: 1.35;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .container.first--3 .main-title__title {
    font-size: 20px;
  }

  .container.first--3 .form__container {
    margin-top: 8px;
    padding: 10px;
  }

  .container.first--3 .form__button {
    line-height: 42px;
  }

  .container.first--3 .form-input__container {
    padding: 3px 12px;
  }

  .container.first--3 .form__conditional-text {
    font-size: 11.5px;
  }
}

/* Мобильные факты: без точек-разделителей, ближе к форме */
@media screen and (max-width: 767px) {
  .hero-facts__item + .hero-facts__item::before {
    display: none;
  }

  .container.first--3 .form__container {
    margin-top: 28px;
  }
}

/* Возвращаем компактные отступы формы на коротких экранах */
@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 .form__container {
    margin-top: 18px;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .container.first--3 .form__container {
    margin-top: 8px;
  }
}

/* Факты вместо подзаголовка: крупнее, по размеру убранного текста */
.hero-facts {
  margin-top: 16px;
  max-width: 640px;
  gap: 8px 22px;
}

.hero-facts__item {
  font-size: 24px;
  line-height: 1.25;
  color: #3d5566;
  gap: 10px;
}

.hero-facts__icon svg {
  width: 22px;
  height: 22px;
}

.hero-facts__item + .hero-facts__item::before {
  margin-right: 4px;
}

@media screen and (max-width: 1024px) {
  .hero-facts {
    margin-top: 12px;
    max-width: none;
    gap: 6px 12px;
  }

  .hero-facts__item {
    font-size: 16px;
    line-height: 1.3;
    gap: 7px;
  }

  .hero-facts__icon svg {
    width: 17px;
    height: 17px;
  }
}

@media screen and (max-width: 767px) and (max-height: 700px) {
  .hero-facts__item {
    font-size: 14px;
  }

  .hero-facts__icon svg {
    width: 15px;
    height: 15px;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .hero-facts__item {
    font-size: 13px;
  }
}

/* Убираем точки-разделители у крупных фактов */
.hero-facts__item + .hero-facts__item::before {
  display: none;
}

@media screen and (min-width: 1025px) {
  .hero-facts {
    gap: 8px 28px;
  }
}

/* Перенос «Мы» на новую строку только на мобильном */
.mob-break {
  display: none;
}

@media screen and (max-width: 767px) {
  .mob-break {
    display: inline;
  }
}

/* Факты на мобильном: каждый пункт с новой строки и крупнее */
@media screen and (max-width: 767px) {
  .hero-facts {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }

  .hero-facts__item {
    font-size: 17px;
    line-height: 1.25;
  }

  .hero-facts__icon svg {
    width: 18px;
    height: 18px;
  }
}

@media screen and (max-width: 767px) and (max-height: 700px) {
  .hero-facts {
    gap: 4px;
  }

  .hero-facts__item {
    font-size: 14.5px;
  }

  .container.first--3 .form__container {
    margin-top: 14px;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .hero-facts__item {
    font-size: 13.5px;
  }
}

@media screen and (max-width: 767px) {
  .hero-facts__item {
    font-size: 18px;
  }

  .hero-facts__icon svg {
    width: 19px;
    height: 19px;
  }
}

/* Компактный режим важнее крупного кегля (для невысоких экранов) */
@media screen and (max-width: 767px) and (max-height: 700px) {
  .hero-facts__item {
    font-size: 14.5px;
  }

  .hero-facts__icon svg {
    width: 16px;
    height: 16px;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .hero-facts__item {
    font-size: 13.5px;
  }
}

/* Иконка Яндекс.Карт перед строкой с рейтингом */
.hero-facts__item .hero-facts__icon--yandex + .hero-facts__icon {
  margin-left: -2px;
}

/* Звезда сразу после цифры 5, внутри ссылки */
.hero-facts__stars {
  display: inline-flex;
  width: 0.85em;
  height: 0.85em;
  margin-left: 4px;
  vertical-align: -0.08em;
}

.hero-facts__stars svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* +2px к размеру блока фактов, по центру экрана на мобильном */
@media screen and (min-width: 1025px) {
  .hero-facts__item {
    font-size: 26px;
  }

  .hero-facts__icon svg {
    width: 24px;
    height: 24px;
  }
}

@media screen and (max-width: 767px) {
  .hero-facts {
    align-items: center;
    text-align: center;
  }

  .hero-facts__item {
    font-size: 20px;
    justify-content: center;
    text-align: center;
  }

  .hero-facts__icon svg {
    width: 21px;
    height: 21px;
  }
}

@media screen and (max-width: 767px) and (max-height: 700px) {
  .hero-facts__item {
    font-size: 16.5px;
  }

  .hero-facts__icon svg {
    width: 17.5px;
    height: 17.5px;
  }

  .container.first--3 .form__container {
    margin-top: 10px;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .hero-facts__item {
    font-size: 15.5px;
  }

  .container.first--3 .form__container {
    margin-top: 6px;
  }
}

/* Ссылка рейтинга — того же размера, что и остальные строки фактов */
.hero-facts__link {
  font-size: inherit;
  line-height: inherit;
}

/* Иконки третьей строки — визуально того же размера, что часы во второй */
.hero-facts__icon--yandex svg {
  width: 1.2em;
  height: 1.2em;
}

.hero-facts__stars {
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.14em;
  margin-left: 3px;
}

/* Фиксированные размеры иконок третьей строки (в px, без em) */
.hero-facts__icon--yandex svg {
  width: 23px;
  height: 23px;
}

.hero-facts__stars {
  width: 20px;
  height: 20px;
}

@media screen and (min-width: 1025px) {
  .hero-facts__icon--yandex svg {
    width: 26px;
    height: 26px;
  }

  .hero-facts__stars {
    width: 23px;
    height: 23px;
  }
}

/* Небольшой запас на коротких экранах после увеличения иконок */
@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 .form__container {
    margin-top: 4px;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .container.first--3 .form__container {
    margin-top: 2px;
  }
}

/* Цифра 5 — того же размера, что и текст */
.hero-facts__link b {
  font-size: inherit;
  line-height: inherit;
}

/* Ещё +2px к тексту и иконкам на мобильном */
@media screen and (max-width: 767px) {
  .hero-facts__item {
    font-size: 22px;
  }

  .hero-facts__icon svg {
    width: 23px;
    height: 23px;
  }

  .hero-facts__icon--yandex svg {
    width: 25px;
    height: 25px;
  }

  .hero-facts__stars {
    width: 22px;
    height: 22px;
  }
}

@media screen and (max-width: 767px) and (max-height: 700px) {
  .hero-facts__item {
    font-size: 18.5px;
  }

  .hero-facts__icon svg {
    width: 19.5px;
    height: 19.5px;
  }

  .hero-facts__icon--yandex svg {
    width: 21px;
    height: 21px;
  }

  .hero-facts__stars {
    width: 19px;
    height: 19px;
  }

  .container.first--3 {
    padding-top: 10px;
  }

  .container.first--3 .form__container {
    margin-top: 0;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .hero-facts__item {
    font-size: 17.5px;
  }

  .hero-facts__icon--yandex svg {
    width: 20px;
    height: 20px;
  }

  .hero-facts__stars {
    width: 18px;
    height: 18px;
  }
}

/* Одинаковые отступы: заголовок → факты → форма */
@media screen and (max-width: 767px) {
  .hero-facts {
    margin-top: 14px;
  }

  .container.first--3 .form__container {
    margin-top: 14px;
  }
}

@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 {
    padding-top: 6px;
  }

  .hero-facts {
    margin-top: 12px;
    gap: 5px;
  }

  .container.first--3 .form__container {
    margin-top: 14px;
    padding: 13px;
  }

  .container.first--3 .form__button {
    line-height: 44px;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .container.first--3 .form__container {
    margin-top: 12px;
  }
}

/* Подгонка, чтобы равные отступы уживались с нижней панелью */
@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 .form__container {
    padding: 12px;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .container.first--3 {
    padding-top: 2px;
  }

  .container.first--3 .main-title__title {
    font-size: 19px;
  }

  .hero-facts {
    margin-top: 10px;
    gap: 4px;
  }

  .container.first--3 .form__container {
    margin-top: 10px;
    padding: 11px;
  }

  .container.first--3 .form__button {
    line-height: 42px;
  }
}

@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 .form__container {
    margin-top: 12px;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .container.first--3 .form__container {
    margin-top: 10px;
  }
}

/* Мобильный: +2px к заголовку и фактам, иконки тоже крупнее */
@media screen and (max-width: 767px) {
  .container.first--3 .main-title__title {
    font-size: 27px;
  }

  .hero-facts__item {
    font-size: 24px;
  }

  .hero-facts__icon svg {
    width: 25px;
    height: 25px;
  }

  .hero-facts__icon--yandex svg {
    width: 27px;
    height: 27px;
  }

  .hero-facts__stars {
    width: 24px;
    height: 24px;
  }
}

@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 {
    padding-top: 0;
  }

  .container.first--3 .main-title__title {
    font-size: 25px;
  }

  .hero-facts {
    margin-top: 10px;
    gap: 4px;
  }

  .hero-facts__item {
    font-size: 20.5px;
  }

  .hero-facts__icon svg {
    width: 21.5px;
    height: 21.5px;
  }

  .hero-facts__icon--yandex svg {
    width: 23px;
    height: 23px;
  }

  .hero-facts__stars {
    width: 21px;
    height: 21px;
  }

  .container.first--3 .form__container {
    margin-top: 10px;
    padding: 10px;
  }

  .container.first--3 .form__button {
    line-height: 40px;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .container.first--3 .main-title__title {
    font-size: 22px;
  }

  .hero-facts {
    margin-top: 8px;
    gap: 3px;
  }

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

  .hero-facts__icon svg {
    width: 20px;
    height: 20px;
  }

  .hero-facts__icon--yandex svg {
    width: 21px;
    height: 21px;
  }

  .hero-facts__stars {
    width: 19px;
    height: 19px;
  }

  .container.first--3 .form__container {
    margin-top: 8px;
    padding: 9px;
  }

  .container.first--3 .form__button {
    line-height: 38px;
  }
}

/* Ужимаем трекинг, чтобы крупный текст оставался в 3 строки */
@media screen and (max-width: 767px) {
  .container.first--3 .main-title__title {
    letter-spacing: -0.02em;
  }

  .hero-facts__item {
    gap: 6px;
    letter-spacing: -0.01em;
  }
}

@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 .main-title__title {
    font-size: 25px;
    letter-spacing: -0.015em;
  }

  .hero-facts__item {
    font-size: 20.5px;
    gap: 5px;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .container.first--3 .main-title__title {
    font-size: 21px;
    letter-spacing: -0.01em;
  }

  .hero-facts__item {
    font-size: 18.5px;
    gap: 4px;
  }
}

@media screen and (max-width: 767px) {
  .container.first--3 .main-title__title {
    letter-spacing: -0.035em;
  }
}

/* Воздух над заголовком и запас под строку, чтобы ничего не наезжало */
@media screen and (max-width: 767px) {
  .container.first--3 .main-title__title {
    line-height: 1.2;
  }
}

@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 {
    padding-top: 10px;
  }

  .hero-facts {
    margin-top: 8px;
  }

  .container.first--3 .form__container {
    margin-top: 8px;
    padding: 8px;
  }

  .container.first--3 .form__button {
    line-height: 38px;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .container.first--3 {
    padding-top: 8px;
  }

  .container.first--3 .form__container {
    margin-top: 8px;
    padding: 8px;
  }
}

/* Одинаковый воздух над заголовком на мобильном */
@media screen and (max-width: 767px) {
  .container.first--3 {
    padding-top: 14px;
  }
}

@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 {
    padding-top: 12px;
  }

  .container.first--3 .form__container {
    padding: 7px;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .container.first--3 {
    padding-top: 10px;
  }

  .container.first--3 .form__container {
    padding: 6px;
  }

  .container.first--3 .form__button {
    line-height: 36px;
  }
}

/* Равные отступы и на компактных экранах */
@media screen and (max-width: 767px) and (max-height: 700px) {
  .hero-facts {
    margin-top: 12px;
    gap: 3px;
  }

  .container.first--3 .form__container {
    margin-top: 12px;
    padding: 5px;
  }

  .container.first--3 .form__button {
    line-height: 36px;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .hero-facts {
    margin-top: 10px;
  }

  .container.first--3 .form__container {
    margin-top: 10px;
    padding: 5px;
  }

  .container.first--3 .form__button {
    line-height: 35px;
  }
}

/* Заголовок переносится по словам, без принудительного баланса */
@media screen and (max-width: 767px) {
  .container.first--3 .main-title__title {
    text-wrap: wrap;
  }
}

/* 26px — чтобы «Мы подберем необходимые» оставалось в одной строке */
@media screen and (max-width: 767px) {
  .container.first--3 .main-title__title {
    font-size: 26px;
  }
}

@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 .main-title__title {
    font-size: 24px;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .container.first--3 .main-title__title {
    font-size: 20px;
  }
}

/* Логотип-надпись: «Каранду» синим цветом */
.header__name {
  color: #0340f5;
}

.header__name-wrapper:hover .header__name {
  color: #0340f5;
  opacity: 0.85;
}

/* Иконка в шапке: синяя заливка, белый ключ */
.header__name-wrapper {
  background-image: url(/pic/design/logo-blue.svg);
}

/* Мобильный: диск выглядывает из-под формы */
@media screen and (max-width: 767px) {
  .container.first--3 {
    background-image: url(/assets/img/first--3-mobile-img.png);
    background-repeat: no-repeat;
    background-position: 50% calc(100% - 6px);
    background-size: 170px auto;
    padding-bottom: 88px;
  }
}

/* Фото магазина в контактах */
.order__photo {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  margin: 26px 0 0 auto;
  border-radius: 18px;
  object-fit: cover;
  background-color: #dbe6ec;
  box-shadow: 0 24px 48px -30px rgba(11, 31, 42, 0.5);
}

@media screen and (max-width: 1024px) {
  .order__photo {
    max-width: none;
    margin: 18px 0 0;
    border-radius: 16px;
  }
}

/* Фото магазина — широкая полоса под контактами */
.order__photo {
  flex: 0 0 100%;
  width: 100%;
  max-width: none;
  height: 400px;
  margin: 36px 0 0;
  border-radius: 20px;
  object-fit: cover;
  object-position: 50% 35%;
  background-color: #dbe6ec;
  box-shadow: 0 30px 60px -40px rgba(11, 31, 42, 0.55);
}

@media screen and (max-width: 1024px) {
  .order__photo {
    height: auto;
    max-height: 300px;
    margin-top: 20px;
    border-radius: 16px;
    object-position: 50% 40%;
  }
}

/* Фото магазина: после колонок, целиком, по центру */
.order__photo {
  order: 4;
  flex: 0 0 100%;
  width: 100%;
  max-width: 880px;
  height: auto;
  margin: 36px auto 0;
  border-radius: 20px;
  object-fit: contain;
  object-position: 50% 50%;
  background-color: #dbe6ec;
  box-shadow: 0 30px 60px -40px rgba(11, 31, 42, 0.55);
}

@media screen and (max-width: 1024px) {
  .order__photo {
    max-width: none;
    height: auto;
    margin: 20px auto 0;
    border-radius: 16px;
  }
}

/* «Каранду» — ровно в цвет иконки, без прозрачности */
.header__name {
  opacity: 1;
}

.header__name-wrapper:hover .header__name {
  opacity: 1;
  color: #0340f5;
}

/* Подчёркивание активного пункта меню — в цвет логотипа */
.header__submenu-item--active .header__submenu-link::after {
  background-image: none;
  background-color: #0340f5;
}

/* Кнопка «Отправить заявку» — в цвет логотипа, премиальная */
.form__button {
  background-color: #0340f5;
  background-image: linear-gradient(180deg, #2a5cff 0%, #0340f5 52%, #0234cf 100%);
  color: #fff;
  border: 0;
  border-radius: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 18px 34px -18px rgba(3, 64, 245, 0.7),
              inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.form__button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 24px 44px -20px rgba(3, 64, 245, 0.8),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.form__button:active {
  transform: translateY(0);
  box-shadow: 0 10px 22px -14px rgba(3, 64, 245, 0.65),
              inset 0 2px 6px rgba(0, 0, 0, 0.18);
}

.form__button:focus-visible {
  outline: 3px solid rgba(3, 64, 245, 0.35);
  outline-offset: 3px;
}

@media screen and (max-width: 767px) {
  .form__button {
    border-radius: 14px;
  }
}

/* Возврат исходной геометрии формы: поля-«пилюли», прежние отступы */
@media screen and (max-width: 767px) {
  .container.first--3 .form__container {
    padding: 18px;
  }

  .container.first--3 .form__title {
    font-size: 20px;
  }

  .container.first--3 .form-input__container {
    background-color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 8px 16px;
  }

  .form__button {
    border-radius: 8px;
    font-weight: 600;
  }
}

@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 .form__container {
    padding: 14px;
  }

  .container.first--3 .form-input__container {
    padding: 6px 14px;
  }

  .container.first--3 .form__button {
    line-height: 36px;
    font-size: 16px;
  }
}

/* Компактный режим: сохраняем форму, аккуратно поджимаем отступы */
@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 .main-title__title {
    font-size: 23px;
  }

  .hero-facts {
    margin-top: 10px;
  }

  .hero-facts__item {
    font-size: 19.5px;
  }

  .container.first--3 .form__container {
    margin-top: 10px;
    padding: 14px;
  }

  .container.first--3 .form__title {
    font-size: 17px;
  }

  .container.first--3 .form-input__container {
    padding: 5px 14px;
  }

  .container.first--3 .form__button {
    line-height: 34px;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .container.first--3 .main-title__title {
    font-size: 21px;
  }

  .hero-facts {
    margin-top: 8px;
  }

  .hero-facts__item {
    font-size: 18.5px;
  }

  .container.first--3 .form__container {
    margin-top: 8px;
    padding: 12px;
  }

  .container.first--3 .form__title {
    font-size: 16px;
  }

  .container.first--3 .form-input__container {
    padding: 4px 12px;
  }

  .container.first--3 .form__button {
    line-height: 32px;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .container.first--3 .main-title__title {
    font-size: 20px;
  }

  .hero-facts {
    margin-top: 7px;
  }

  .hero-facts__item {
    font-size: 18px;
  }

  .container.first--3 .form__container {
    margin-top: 7px;
    padding: 10px;
  }

  .container.first--3 .form__button {
    line-height: 30px;
  }
}

/* Поля формы: возврат белых «пилюль» (перекрываем более специфичное правило) */
@media screen and (max-width: 767px) {
  .container.first--3 .form__container .form-input__container {
    background-color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 8px 16px;
  }
}

@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 .form__container .form-input__container {
    padding: 5px 14px;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .container.first--3 .form__container .form-input__container {
    padding: 4px 12px;
  }
}

/* Карточка формы — прежняя полупрозрачная, чтобы белые поля читались */
@media screen and (max-width: 767px) {
  .container.first--3 .form__container {
    background: rgba(255, 255, 255, 0.32);
    border: 0;
    border-radius: 24px;
    box-shadow: 0 18px 40px -28px rgba(16, 32, 43, 0.35);
  }
}

/* Новое качественное изображение диска */
@media screen and (min-width: 1241px) {
  .container.first--3 {
    background-image: url(/assets/img/disc-desktop.png);
    background-size: 430px auto;
    background-position: calc(100% - 8px) 50%;
  }
}

@media screen and (min-width: 1025px) and (max-width: 1240px) {
  .container.first--3 {
    background-image: url(/assets/img/disc-desktop.png);
    background-size: 300px auto;
    background-position: calc(100% - 8px) 50%;
  }
}

@media screen and (max-width: 767px) {
  .container.first--3 {
    background-image: url(/assets/img/disc-mobile.png);
    background-size: 175px auto;
    background-position: 50% calc(100% - 4px);
  }
}

/* Лёгкие webp-версии диска (png остаются как резерв) */
@media screen and (min-width: 1025px) {
  .container.first--3 {
    background-image: url(/assets/img/disc-desktop.webp);
  }
}

@media screen and (max-width: 767px) {
  .container.first--3 {
    background-image: url(/assets/img/disc-mobile.webp);
  }
}

/* Карточка формы непрозрачная — диск выглядывает только снизу, поля читаются */
@media screen and (max-width: 767px) {
  .container.first--3 .form__container {
    background: linear-gradient(180deg, #eef8fd 0%, #e3f2fa 100%);
    border: 0;
    box-shadow: 0 22px 44px -30px rgba(11, 31, 42, 0.45);
  }

  .container.first--3 .form__container .form-input__container {
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(16, 32, 43, 0.06);
  }
}

/* Мобильный: убираем голубой фон первого экрана — белый */
@media screen and (max-width: 767px) {
  .wrapper-container--main {
    background-color: #fff;
  }

  .container.first--3 {
    background-color: transparent;
  }
}

/* Карточка формы — серый #F0F4F8 (из макета) */
@media screen and (max-width: 767px) {
  .container.first--3 .form__container {
    background: #f0f4f8;
    box-shadow: 0 22px 44px -30px rgba(11, 31, 42, 0.38);
  }

  .container.first--3 .form__container .form-input__container {
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(16, 32, 43, 0.07);
  }
}

/* Мобильный: обводка формы в цвет логотипа */
@media screen and (max-width: 767px) {
  .container.first--3 .form__container {
    border: 2px solid #0340f5;
  }
}

/* Три кнопки: один шрифт (Inter), крупнее и одинаковые по высоте */
@media screen and (max-width: 767px) and (min-height: 701px) {
  .container.first--3 .form__button {
    line-height: 50px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
  }

  .header__button-wrapper .header__whatsapp {
    font-size: 16px;
    padding: 0 8px;
  }
}

/* Компактные экраны: кнопка чуть ниже, чтобы форма влезала */
@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 .form__button {
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    line-height: 40px;
  }

  .header__button-wrapper .header__whatsapp {
    font-size: 16px;
    padding: 0 8px;
  }
}

/* Ссылка «Рейтинг в Яндекс 5» — в цвет логотипа */
.hero-facts__link {
  color: #0340f5;
}

.hero-facts__link:hover {
  color: #0340f5;
}

@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 .form__button {
    line-height: 38px;
  }
}

/* MAX в нижней панели: текст в одну строку */
@media screen and (max-width: 767px) {
  .header__button-wrapper .header__whatsapp {
    font-size: 14px;
    padding: 0 6px;
    white-space: nowrap;
  }

  .header__button-wrapper .header__whatsapp .max-logo {
    width: 20px;
    height: 20px;
    margin-right: 6px;
  }
}

/* Компакт: кнопка формы такой же высоты, как «Позвонить» (50px) */
@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 .form__button {
    line-height: 50px;
    font-size: 16px;
  }

  .hero-facts {
    margin-top: 8px;
  }

  .container.first--3 .main-title__title {
    font-size: 22px;
  }

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

  .container.first--3 .form__container {
    margin-top: 8px;
    padding: 13px;
  }

  .container.first--3 .form__title {
    font-size: 16px;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .hero-facts {
    margin-top: 6px;
  }

  .container.first--3 .main-title__title {
    font-size: 18.5px;
  }

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

  .container.first--3 .form__container {
    margin-top: 6px;
    padding: 9px;
  }

  .container.first--3 .form__title {
    font-size: 15px;
  }

  .container.first--3 .form__button {
    font-size: 15px;
  }
}

/* Форма: ровный серый фон без белых полос у рамки */
@media screen and (max-width: 767px) {
  .container.first--3 .form__container {
    background: #f0f4f8 !important;
    background-image: none !important;
    background-clip: border-box;
  }

  .container.first--3 .form__container .form__inner,
  .container.first--3 .form__container form {
    background: transparent;
  }
}

/* Фон вокруг формы — тот же серый, что у карточки */
@media screen and (max-width: 767px) {
  .wrapper-container--main {
    background-color: #f0f4f8;
  }
}

/* Флажок «Более 10 лет с Вами» рядом с логотипом */
.header__name-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background-color: #eaf2ff;
  border: 1px solid rgba(3, 64, 245, 0.16);
  color: #0340f5;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.header__badge svg {
  width: 12px;
  height: 12px;
  display: block;
}

.header__badge-short {
  display: none;
}

@media screen and (max-width: 767px) {
  .header__name-line {
    gap: 6px;
  }

  .header__badge {
    height: 20px;
    padding: 0 7px;
    gap: 4px;
    font-size: 10px;
  }

  .header__badge svg {
    width: 11px;
    height: 11px;
  }

  .header__badge-full {
    display: none;
  }

  .header__badge-short {
    display: inline;
  }
}

/* Мобильный: флажок не мешает часам — компактный «10+» на логотипе */
@media screen and (max-width: 767px) {
  .header__name-line .header__badge {
    display: none;
  }

  .header__name-wrapper {
    position: relative;
  }

  .header__name-wrapper::after {
    content: '10+';
    position: absolute;
    left: 30px;
    top: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 18px;
    border-radius: 999px;
    background-color: #0340f5;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    box-shadow: 0 2px 6px rgba(3, 64, 245, 0.35);
    pointer-events: none;
  }
}

/* Подсветка всей формы при фокусе в поле */
@media screen and (max-width: 767px) {
  .container.first--3 .form__container {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
  }

  .container.first--3 .form__container:focus-within {
    border-color: #0340f5;
    box-shadow: 0 0 0 4px rgba(3, 64, 245, 0.16),
                0 22px 44px -30px rgba(11, 31, 42, 0.45);
  }
}

/* «10+» — на уголке логотипа, не задевая подпись */
@media screen and (max-width: 767px) {
  .header__name-wrapper::after {
    left: 20px;
    top: 29px;
    width: 22px;
    height: 16px;
    font-size: 8.5px;
  }
}

/* «10+» — белый флажок с синей рамкой на уголке логотипа */
@media screen and (max-width: 767px) {
  .header__name-wrapper::after {
    left: 18px;
    top: 29px;
    width: 26px;
    height: 15px;
    background-color: #fff;
    color: #0340f5;
    border: 1.5px solid #0340f5;
    font-size: 8.5px;
    box-shadow: 0 2px 6px rgba(3, 64, 245, 0.25);
  }
}

/* Компакт: поджимаем факты, чтобы форма осталась над панелью */
@media screen and (max-width: 767px) and (max-height: 700px) {
  .hero-facts {
    margin-top: 6px;
  }

  .hero-facts__item {
    font-size: 18.5px;
  }

  .container.first--3 .main-title__title {
    font-size: 21px;
  }

  .container.first--3 .form__container {
    padding: 12px;
  }
}

/* Узкие экраны: ещё компактнее, чтобы 4 факта влезли */
@media screen and (max-width: 359px) and (max-height: 700px) {
  .container.first--3 .main-title__title {
    font-size: 17.5px;
  }

  .hero-facts {
    margin-top: 4px;
  }

  .hero-facts__item {
    font-size: 15.5px;
  }

  .container.first--3 .form__container {
    margin-top: 5px;
    padding: 8px;
  }

  .container.first--3 .form__title {
    font-size: 15px;
  }
}

/* Равные отступы в компактном режиме */
@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 .form__container {
    margin-top: 6px;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .container.first--3 .form__container {
    margin-top: 4px;
  }
}

/* Мобильный: обводка-свечение вокруг формы видна всегда */
@media screen and (max-width: 767px) {
  .container.first--3 .form__container {
    box-shadow: 0 0 0 4px rgba(3, 64, 245, 0.14),
                0 22px 44px -30px rgba(11, 31, 42, 0.45);
  }

  .container.first--3 .form__container:focus-within {
    box-shadow: 0 0 0 5px rgba(3, 64, 245, 0.22),
                0 22px 44px -30px rgba(11, 31, 42, 0.45);
  }

  /* Подсветка выбранного поля */
  .container.first--3 .form__container .form-input__container:focus-within {
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(3, 64, 245, 0.2),
                0 10px 24px -14px rgba(3, 64, 245, 0.6);
  }
}

/* Тонкая подсветка поля при клике */
@media screen and (max-width: 767px) {
  .container.first--3 .form__container .form-input__container:focus-within {
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(3, 64, 245, 0.35);
  }
}

/* Подзаголовок формы */
.container.first--3 .form__subtitle {
  display: block;
  margin-top: 6px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 400;
  color: #6b7f8c;
}

@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 .form__subtitle {
    margin-top: 4px;
    font-size: 11.5px;
    line-height: 1.3;
  }
}

/* Компакт: ужимаем всё, чтобы форма с подзаголовком влезла над панелью */
@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 .main-title__title {
    font-size: 18px;
  }

  .hero-facts {
    margin-top: 3px;
  }

  .hero-facts__item {
    font-size: 16.5px;
  }

  .container.first--3 .form__container {
    margin-top: 4px;
    padding: 8px;
  }

  .container.first--3 .form__title {
    font-size: 15px;
  }

  .container.first--3 .form__subtitle {
    font-size: 10.5px;
  }

  .container.first--3 .form-input__container {
    padding: 4px 12px;
  }

  .container.first--3 .form__conditional-text {
    font-size: 11px;
    line-height: 1.3;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .container.first--3 .main-title__title {
    font-size: 17px;
  }

  .hero-facts__item {
    font-size: 15.5px;
  }

  .container.first--3 .form__container {
    margin-top: 3px;
    padding: 7px;
  }

  .container.first--3 .form__subtitle {
    font-size: 10px;
  }

  .container.first--3 .form-input__container {
    padding: 3px 10px;
  }

  .container.first--3 .form__conditional-text {
    font-size: 10.5px;
  }
}

/* Подзаголовок ближе к заголовку формы */
.container.first--3 .form__subtitle {
  margin-top: 2px;
}

@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 .form__subtitle {
    margin-top: 1px;
  }
}

/* Заголовок формы блочный — подзаголовок прижимается вплотную */
@media screen and (max-width: 767px) {
  .container.first--3 .form__title {
    display: block;
    margin: 0;
    line-height: 1.15;
  }

  .container.first--3 .form__subtitle {
    margin-top: 2px;
  }
}

@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 {
    padding-top: 4px;
  }

  .hero-facts {
    margin-top: 2px;
  }

  .hero-facts__item {
    font-size: 16px;
  }

  .container.first--3 .form__container {
    margin-top: 2px;
    padding: 6px;
  }

  .container.first--3 .form__title {
    font-size: 14px;
  }

  .container.first--3 .form__subtitle {
    font-size: 10px;
    margin-top: 1px;
  }

  .container.first--3 .form-input__container {
    padding: 3px 10px;
  }

  .container.first--3 .form__conditional-text {
    font-size: 10.5px;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .container.first--3 {
    padding-top: 2px;
  }

  .hero-facts__item {
    font-size: 15px;
  }

  .container.first--3 .form__container {
    margin-top: 2px;
    padding: 5px;
  }

  .container.first--3 .form__title {
    font-size: 13.5px;
  }

  .container.first--3 .form__subtitle {
    font-size: 9.5px;
  }

  .container.first--3 .form__button {
    line-height: 46px;
  }

  .container.first--3 .form__conditional-text {
    font-size: 10px;
  }
}

/* Откат: возвращаем прежние размеры текста и полей */
@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 {
    padding-top: 10px;
  }

  .container.first--3 .main-title__title {
    font-size: 21px;
  }

  .hero-facts {
    margin-top: 6px;
  }

  .hero-facts__item {
    font-size: 18.5px;
  }

  .container.first--3 .form__container {
    margin-top: 6px;
    padding: 12px;
  }

  .container.first--3 .form__title {
    font-size: 16px;
  }

  .container.first--3 .form__subtitle {
    margin-top: 2px;
    font-size: 11.5px;
  }

  .container.first--3 .form-input__container {
    padding: 5px 14px;
  }

  .container.first--3 .form__conditional-text {
    font-size: 12px;
  }

  .container.first--3 .form__button {
    line-height: 50px;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .container.first--3 {
    padding-top: 8px;
  }

  .container.first--3 .main-title__title {
    font-size: 18px;
  }

  .hero-facts {
    margin-top: 4px;
  }

  .hero-facts__item {
    font-size: 16.5px;
  }

  .container.first--3 .form__container {
    margin-top: 4px;
    padding: 9px;
  }

  .container.first--3 .form__title {
    font-size: 15px;
  }

  .container.first--3 .form__subtitle {
    font-size: 11px;
  }

  .container.first--3 .form-input__container {
    padding: 4px 12px;
  }

  .container.first--3 .form__conditional-text {
    font-size: 11px;
  }
}

/* Подгоняем только отступы, не трогая размеры текста */
@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 {
    padding-top: 6px;
  }

  .hero-facts {
    margin-top: 4px;
  }

  .container.first--3 .form__container {
    margin-top: 4px;
    padding: 11px;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .container.first--3 {
    padding-top: 4px;
  }

  .hero-facts {
    margin-top: 3px;
  }

  .container.first--3 .form__container {
    margin-top: 3px;
    padding: 8px;
  }
}

/* Мобильный: «10+ лет на рынке» — третьей строкой в шапке */
@media screen and (max-width: 767px) {
  .header {
    height: 72px;
  }

  .container.first--3,
  .wrapper-container.first,
  .brand,
  .container.success {
    margin-top: 72px;
  }

  .header__name-wrapper::after {
    display: none;
  }

  .header__name-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }

  .header__name-line .header__badge {
    display: inline-flex;
    height: 13px;
    padding: 0;
    gap: 3px;
    border: 0;
    border-radius: 0;
    background: none;
    font-size: 9.5px;
    font-weight: 600;
    color: #0340f5;
    line-height: 1;
  }

  .header__name-line .header__badge svg {
    width: 9px;
    height: 9px;
  }

  .header__badge-full {
    display: none;
  }

  .header__badge-short {
    display: inline;
  }
}

/* Заголовок первого экрана на мобильном: +2px */
@media screen and (max-width: 767px) {
  .container.first--3 .main-title__title {
    font-size: 28px;
  }
}

@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 {
    padding-top: 2px;
  }

  .container.first--3 .main-title__title {
    font-size: 23px;
  }

  .hero-facts {
    margin-top: 2px;
  }

  .container.first--3 .form__container {
    margin-top: 2px;
    padding: 9px;
  }

  .container.first--3 .form__subtitle {
    margin-top: 0;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .container.first--3 {
    padding-top: 2px;
  }

  .container.first--3 .main-title__title {
    font-size: 20px;
  }

  .hero-facts {
    margin-top: 2px;
  }

  .container.first--3 .form__container {
    margin-top: 2px;
    padding: 6px;
  }

  .container.first--3 .form__title {
    font-size: 15px;
  }
}

/* Финальная подгонка отступов (без изменения размеров текста) */
@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 {
    padding-top: 0;
  }

  .hero-facts {
    margin-top: 1px;
  }

  .container.first--3 .form__container {
    padding: 8px;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .container.first--3 .form__container {
    padding: 5px;
  }
}

@media screen and (max-width: 767px) and (max-height: 700px) {
  .hero-facts {
    gap: 2px;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .hero-facts {
    gap: 1px;
  }
}

/* «10+ лет на рынке» — на 1px меньше */
@media screen and (max-width: 767px) {
  .header__name-line .header__badge {
    font-size: 8.5px;
  }
}

/* Небольшие отступы: шапка → заголовок → факты → форма */
@media screen and (max-width: 767px) and (min-height: 701px) {
  .container.first--3 {
    padding-top: 20px;
  }

  .hero-facts {
    margin-top: 18px;
  }

  .container.first--3 .form__container {
    margin-top: 18px;
  }

  .container.first--3 .main-title__title {
    line-height: 1.25;
  }
}

/* «10+ лет на рынке»: без флажка и на 1px меньше */
@media screen and (max-width: 767px) {
  .header__name-line .header__badge svg {
    display: none;
  }

  .header__name-line .header__badge {
    font-size: 7.5px;
  }
}

/* Заметнее воздух в заголовке и между блоками */
@media screen and (max-width: 767px) and (min-height: 701px) {
  .container.first--3 {
    padding-top: 22px;
  }

  .container.first--3 .main-title__title {
    line-height: 1.35;
  }

  .hero-facts {
    margin-top: 22px;
  }

  .container.first--3 .form__container {
    margin-top: 22px;
  }
}

/* «Срочный заказ» на мобильном: +3px */
@media screen and (max-width: 767px) {
  .container.first--3 .form__title {
    font-size: 23px;
  }
}

@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 .form__title {
    font-size: 19px;
  }

  .container.first--3 .form__container {
    margin-top: 1px;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .container.first--3 .form__title {
    font-size: 18px;
  }
}

@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 .form__container {
    padding: 7px;
  }
}

/* Заголовок: +3px и жирнее; отступы не уменьшаем — 22px везде */
@media screen and (max-width: 767px) {
  .container.first--3 {
    padding-top: 22px;
  }

  .container.first--3 .main-title__title {
    font-size: 31px;
    font-weight: 900;
    line-height: 1.3;
  }

  .hero-facts {
    margin-top: 22px;
  }

  .container.first--3 .form__container {
    margin-top: 22px;
  }
}

/* «Срочный заказ»: +2px */
@media screen and (max-width: 767px) {
  .container.first--3 .form__title {
    font-size: 25px;
  }
}

@media screen and (max-width: 767px) and (max-height: 700px) {
  .container.first--3 .form__title {
    font-size: 21px;
  }
}

@media screen and (max-width: 359px) and (max-height: 700px) {
  .container.first--3 .form__title {
    font-size: 20px;
  }
}

/* Кнопка Telegram в первом экране (десктоп) */
.main-buttons__container {
  flex-wrap: wrap;
  row-gap: 12px;
}

.main-buttons__tg {
  display: inline-flex;
  align-items: center;
  margin-left: 14px;
  padding: 8px 16px;
  border: 2px solid #29a9ea;
  border-radius: 8px;
  background: transparent;
  color: #1279b5 !important;
  font-family: "PT Sans", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease,
              border-color 0.25s ease, transform 0.2s ease;
}

.main-buttons__tg:hover,
.main-buttons__tg:focus-visible {
  background: #29a9ea;
  border-color: #29a9ea;
  color: #fff !important;
  transform: translateY(-1px);
}

.main-buttons__tg-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: 12px;
  border-radius: 12px;
  background-color: #29a9ea;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.24);
}

.main-buttons__tg-icon svg {
  display: block;
  width: 26px;
  height: 26px;
}

@media screen and (max-width: 1200px) {
  .main-buttons__tg {
    margin-left: 10px;
    padding: 6px 12px;
    font-size: 16px;
  }
}

@media screen and (max-width: 767px) {
  .main-buttons__tg {
    display: none;
  }
}

/* Кнопки первого экрана: не заезжают на диск — две строки */
@media screen and (min-width: 1241px) {
  .main-buttons__container {
    max-width: 840px;
  }
}

/* Telegram: всегда залитая кнопка, при наведении только оттенок */
.main-buttons__tg {
  background-color: #29a9ea;
  border-color: #29a9ea;
  color: #fff !important;
}

.main-buttons__tg .main-buttons__tg-icon {
  background-color: transparent;
  box-shadow: none;
  margin-right: 10px;
}

.main-buttons__tg:hover,
.main-buttons__tg:focus-visible {
  background-color: #1f9bd8;
  border-color: #1f9bd8;
  color: #fff !important;
  transform: none;
}

/* Telegram: курсор-указатель и место в общем ряду после WhatsApp */
.main-buttons__tg {
  cursor: pointer;
}

@media screen and (min-width: 1241px) {
  .main-buttons__container {
    max-width: none;
  }
}

/* Плавающая кнопка Telegram — в стиле WhatsApp, над ней */
.tg-btn {
  position: fixed;
  right: 24px;
  bottom: 100px;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background-color: #29a9ea;
  background-image: linear-gradient(135deg, #4fc3f7 0%, #29a9ea 55%, #1f8cc7 100%);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22),
              0 2px 6px rgba(0, 0, 0, 0.14);
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease;
}

.tg-btn:hover,
.tg-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.26),
              0 4px 10px rgba(0, 0, 0, 0.16);
}

.tg-btn__icon {
  display: block;
  width: 32px;
  height: 32px;
}

@media screen and (max-width: 767px) {
  .tg-btn {
    right: calc(14px + env(safe-area-inset-right));
    bottom: calc(154px + env(safe-area-inset-bottom));
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .tg-btn__icon {
    width: 29px;
    height: 29px;
  }
}

/* WhatsApp на ПК: без подъёма/анимации при наведении */
@media screen and (min-width: 1025px) {
  .main-buttons__wa {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }

  .main-buttons__wa:hover,
  .main-buttons__wa:focus-visible {
    transform: none;
  }
}

/* Telegram на ПК — в стиле кнопок MAX и WhatsApp (контурная) */
.main-buttons__tg {
  background-color: transparent;
  border-color: #29a9ea;
  color: #1279b5 !important;
}

.main-buttons__tg .main-buttons__tg-icon {
  background-color: #29a9ea;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.24);
  margin-right: 12px;
}

.main-buttons__tg:hover,
.main-buttons__tg:focus-visible {
  background-color: #29a9ea;
  border-color: #29a9ea;
  color: #fff !important;
}

/* Мобильный вариант первого экрана (как было ранее) */
.title-desktop,
.ft-desktop {
  display: inline;
}

.title-mobile,
.ft-mobile {
  display: none;
}

@media screen and (max-width: 767px) {
  .title-desktop,
  .ft-desktop {
    display: none;
  }

  .title-mobile,
  .ft-mobile {
    display: inline;
  }

  .hero-facts__item--desktop,
  .form__subtitle--desktop,
  .tg-btn {
    display: none;
  }

  .header__name-line .header__badge {
    display: none;
  }

  .header {
    height: 60px;
  }

  .container.first--3,
  .wrapper-container.first,
  .brand,
  .container.success {
    margin-top: 60px;
  }

  .container.first--3 {
    padding-top: 14px;
  }

  .container.first--3 .main-title__title {
    font-size: 25px;
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: -0.02em;
  }

  .hero-facts {
    margin-top: 12px;
    gap: 4px;
  }

  .hero-facts__item {
    font-size: 18px;
    gap: 6px;
  }

  .hero-facts__icon svg {
    width: 19px;
    height: 19px;
  }

  .container.first--3 .form__container {
    margin-top: 12px;
    padding: 18px;
    border-radius: 24px;
  }

  .container.first--3 .form__title {
    font-size: 20px;
  }

  .container.first--3 .form-input__container {
    padding: 8px 16px;
  }

  .container.first--3 .form__button {
    line-height: 50px;
    font-size: 16px;
  }
}

@media screen and (max-width: 767px) {
  .container.first--3 .form__subtitle.form__subtitle--desktop {
    display: none;
  }
}

/* Варианты заголовков наследуют размер и начертание */
.main-title__title .title-desktop,
.main-title__title .title-mobile,
.form__title .ft-desktop,
.form__title .ft-mobile {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
}

/* ПК: убираем плавающие иконки Telegram и WhatsApp */
@media screen and (min-width: 768px) {
  .wa-btn,
  .tg-btn {
    display: none;
  }
}

/* Мобильный заголовок: по ширине сайта, мельче — три строки */
@media screen and (max-width: 767px) {
  .container.first--3 .main-title__inner {
    max-width: none;
  }

  .container.first--3 .main-title__title {
    max-width: none;
    font-size: 22px;
    line-height: 1.2;
  }
}

/* Бейдж «Более 10 лет с Вами» убираем и на ПК */
.header__name-line .header__badge {
  display: none;
}

/* ПК: у кнопок WhatsApp и Telegram нет эффекта при наведении */
@media screen and (min-width: 1025px) {
  .main-buttons__wa,
  .main-buttons__tg {
    transition: none;
  }

  .main-buttons__wa:hover,
  .main-buttons__wa:focus-visible {
    background: transparent;
    border-color: #0cc437;
    color: #0a8f28 !important;
    transform: none;
    box-shadow: none;
  }

  .main-buttons__tg:hover,
  .main-buttons__tg:focus-visible {
    background-color: transparent;
    border-color: #29a9ea;
    color: #1279b5 !important;
    transform: none;
  }
}

/* Мобильный: заголовки без жирного начертания */
@media screen and (max-width: 767px) {
  .container.first--3 .main-title__title,
  .container.first--3 .main-title__title .title-mobile {
    font-weight: 400;
  }

  .container.first--3 .form__title,
  .container.first--3 .form__title .ft-mobile {
    font-weight: 400;
  }
}

/* Мобильные заголовки — средняя жирность (как на эталоне) */
@media screen and (max-width: 767px) {
  .container.first--3 .main-title__title,
  .container.first--3 .main-title__title .title-mobile {
    font-weight: 600;
  }

  .container.first--3 .form__title,
  .container.first--3 .form__title .ft-mobile {
    font-weight: 600;
  }
}

/* Как на эталоне — ближе к bold */
@media screen and (max-width: 767px) {
  .container.first--3 .main-title__title,
  .container.first--3 .main-title__title .title-mobile,
  .container.first--3 .form__title,
  .container.first--3 .form__title .ft-mobile {
    font-weight: 700;
  }
}
