/* Правки Инторг Азия, ноябрь 2026. Подключается после основного файла стилей. */

/* Планшеты и узкие окна: крупный заголовок первого экрана не помещался
   и наезжал на шапку с меню. Уменьшаем шрифт и даём блоку расти по высоте. */
@media (min-width: 580px) and (max-width: 1199px) {
  .hero {
    height: auto;
    min-height: 900px;
    padding-top: 140px;
    padding-bottom: 120px;
  }
  .hero__title {
    font-size: 64px;
    line-height: 1.1;
    letter-spacing: -1.2px;
  }
}
@media (min-width: 580px) and (max-width: 899px) {
  .hero__title {
    font-size: 52px;
  }
}

/* Планшеты: меню в шапке не помещалось и пряталось под кнопкой
   «Оставить заявку». На этих ширинах показываем мобильное меню (кнопка-бургер). */
@media (min-width: 580px) and (max-width: 1023px) {
  .header__nav { display: none; }
  .header__right { display: none; }
  .header__right-mobile { display: flex; }
}

/* Жёлто-оранжевый фон (#feb102): белый текст на нём плохо читается.
   Делаем текст и значки тёмными во всех таких блоках, кнопках и окнах. */
.about__card--dark, .about__card--dark *,
.card-service--dark, .card-service--dark *,
.form-mini, .form-mini *,
.risks__card--indigo, .risks__card--indigo *,
.service-about__card--indigo, .service-about__card--indigo *,
.service-cta__card, .service-cta__card *,
.calc-popup__sidebar, .calc-popup__sidebar *,
.callback-popup__container, .callback-popup__container *,
.calc-popup__submit, .calc-popup__submit *,
.consult-popup__submit, .consult-popup__submit *,
.calc-popup__success-btn, .consult-popup__success-btn,
.service-hero__btn--primary, .service-hero__btn--primary *,
.mob-menu__cta, .mob-menu__cta *,
.header__cta:hover, .hero__btn--primary:hover,
.service-hero__btn--outline:hover {
  color: #0f0e14 !important;
}
/* Поля ввода на жёлтом фоне: тёмная линия вместо белой */
.callback-popup__container input, .form-mini input, .form-mini textarea {
  border-color: rgba(15, 14, 20, 0.35) !important;
}
/* Белые значки на жёлтом фоне делаем тёмными */
.card-service--dark img { filter: brightness(0) !important; opacity: 0.85; }

/* Планшеты: в блоке «Оставить заявку» картинка налезала на поля формы.
   На этих ширинах ставим текст и форму друг под другом, как на телефоне. */
@media (min-width: 580px) and (max-width: 1199px) {
  .form-mini { padding: 64px 40px 40px; margin-top: 72px; overflow: visible; }
  .form-mini__inner { flex-direction: column; align-items: stretch; gap: 32px; }
  .form-mini__left { padding-right: 0; align-self: auto; }
  .form-mini__image { left: 40px; top: -60px; right: auto; width: 110px; height: 110px; }
  .form-mini__gradient, .form-mini__divider-icon { display: none; }
  .form-mini__right { border-left: none; border-top: 1px solid rgba(15, 14, 20, 0.15); padding-left: 0; padding-top: 25px; height: auto; }
}

/* Главный экран: плашка «Оформление по-белому» над заголовком */
.hero__badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: -12px;
  padding: 10px 20px 10px 16px;
  border-radius: 999px;
  background: #feb102;
  color: #0f0e14;
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}
@media (min-width: 1200px) {
  .hero__title { font-size: 80px; letter-spacing: -1.6px; }
}
@media (max-width: 579px) {
  .hero__badge { align-self: center; font-size: 15px; padding: 8px 16px 8px 12px; margin-bottom: -4px; }
  .hero__badge svg { width: 15px; height: 15px; }
}

/* Жёлтый текст и значки на белом/светлом фоне читались плохо.
   Заменяем на более тёмный янтарный оттенок того же цвета. */
.about-calm__label, .about-culture-intro__accent, .about-culture-intro__item-text,
.about-culture-intro__label, .about__heading-accent, .about__label, .about__pill,
.calc-popup__success-phone, .faq__item--active .faq__question-text,
.import-categories__label, .mega__label, .mob-menu__back, .mob-menu__card-badge,
.mob-menu__card-meta, .mob-menu__promo-label, .mob-menu__promo-link,
.mob-menu__section-label, .risks__label, .risks__text em, .service-about__label,
.services__label, .stats__prefix, .steps__card-text strong,
.about-calm__card-icon, .about-culture-intro__bullet, .about__card-icon,
.calc-popup__success-icon, .consult-popup__icon, .consult-popup__success-icon,
.import-categories__icon, .mob-menu__phone-icon, .risks__card-check,
.risks__card-icon, .service-about__icon, .steps__card-icon {
  color: #9e5f00 !important;
}

/* Внутри жёлтых блоков текст и значки остаются тёмными */
html body .about__card--dark *, html body .card-service--dark *, html body .form-mini *,
html body .risks__card--indigo *, html body .service-about__card--indigo *,
html body .service-cta__card *, html body .calc-popup__sidebar *,
html body .callback-popup__container * {
  color: #0f0e14 !important;
}
html body .about__pill--filled { color: #0f0e14 !important; }


/* ===== Читаемость: контраст и размер шрифта (WCAG 2.2: 4,5:1 для текста, 3:1 для крупного) ===== */
/* Полупрозрачный серый текст на светлом фоне делаем плотнее */
.about__card--light .about__card-desc,
.steps__card-step,
.stats__unit,
.risks__arrow-text,
.risks__card--white .risks__card-problem, .risks__card--beige .risks__card-problem,
.risks__card--white .risks__card-label, .risks__card--beige .risks__card-label,
.calc-popup__label,
.calc-popup__success-text,
.calc-popup__success-hint,
.consult-popup__subtitle,
.consult-popup__label,
.consult-popup__privacy,
.consult-popup__success-text,
.service-hero__crumb,
.service-hero__crumb--current,
.service-hero__desc,
.service-hero__stat-unit,
.service-hero__stat-label,
.service-about__card-desc,
.service-about__card--beige .service-about__card-desc, .service-about__card--sand .service-about__card-desc {
  color: rgba(8, 7, 12, 0.7);
}
/* Полупрозрачный белый текст на тёмном фоне делаем плотнее */
.form-mini__desc,
.form-mini__badge-text,
.form-mini__input:focus ~ .form-mini__label, .form-mini__input:not(:placeholder-shown) ~ .form-mini__label,
.form-mini__privacy,
.about__card--accent .about__card-desc,
.about__card--dark .about__card-desc, .about__card--accent .about__card-desc,
.steps__card-step--dark,
.risks__card--black .risks__card-problem, .risks__card--purple .risks__card-problem, .risks__card--indigo .risks__card-problem,
.footer__map-link,
.footer__legal,
.footer__legal a,
.calc-popup__subtitle,
.calc-popup__step-text,
.callback-popup__status-text,
.callback-popup__label,
.callback-popup__success-text,
.service-about__card--indigo .service-about__card-desc {
  color: rgba(255, 255, 255, 0.7);
}
/* Серые части крупных заголовков */
.service-about__title-dim,
.import-categories__title-dim {
  color: rgba(8, 7, 12, 0.55);
}
/* Оттенок янтарного для надписей темнее: читается и на бежевом фоне */
.about-calm__label, .about-culture-intro__accent, .about-culture-intro__item-text,
.about-culture-intro__label, .about__heading-accent, .about__label, .about__pill,
.calc-popup__success-phone, .faq__item--active .faq__question-text,
.import-categories__label, .mega__label, .mob-menu__back, .mob-menu__card-badge,
.mob-menu__card-meta, .mob-menu__promo-label, .mob-menu__promo-link,
.mob-menu__section-label, .risks__label, .risks__text em, .service-about__label,
.services__label, .stats__prefix, .steps__card-text strong,
.about-calm__card-icon, .about-culture-intro__bullet, .about__card-icon,
.calc-popup__success-icon, .consult-popup__icon, .consult-popup__success-icon,
.import-categories__icon, .mob-menu__phone-icon, .risks__card-check,
.risks__card-icon, .service-about__icon, .steps__card-icon {
  color: #875100 !important;
}
html body .about__pill--filled { color: #0f0e14 !important; }
/* Жёлтый текст на красно-оранжевой плашке слайдера: белый читается лучше */
.about__slider-title-pill { color: #ffffff; }

/* Размер шрифта: подписи не мельче 12–13 px, основной текст не мельче 16 px */
.hero__bar-label-text, .service-hero__stat-label { font-size: 12px; }
.about__slider-counter { font-size: 13px; }
.header__nav-link { font-size: 13px; }
.service-hero__desc { font-size: 17px; line-height: 1.55; }
@media (max-width: 1199px) {
  .service-hero__desc, .steps__card-desc, .risks__card-desc,
  .service-about__card-desc, .about__card-desc {
    font-size: 16px; line-height: 1.45;
  }
  .about__slider-subtitle { font-size: 15px; }
}

/* Красно-оранжевый фон с белым текстом: делаем оттенок глубже, чтобы белый читался (4,8:1) */
.about__card--accent, .risks__card--purple, .about__slider-title-pill, .about__pill--circle,
.header.is-scrolled .header__cta, .header:has(.header__nav-item:hover) .header__cta,
.has-light-header .header .header__cta {
  background: #d13c00;
}
.about__card--accent .about__card-desc,
.risks__card--purple .risks__card-label, .risks__card--black .risks__card-label {
  color: #ffffff;
}
.risks__card--purple .risks__card-problem, .risks__card--purple .risks__card-problem s {
  color: #ffffff;
}
/* Фиолетовая карточка в шагах: текст плотнее */
.steps__card--cta .steps__card-desc { color: rgba(255, 255, 255, 0.88); }
/* На тёмных и цветных карточках выделения и значки остаются жёлтыми, а не тёмно-янтарными */
html body .steps__card--purple .steps__card-text strong,
html body .steps__card--purple .steps__card-icon,
html body .risks__card--black .risks__card-icon,
html body .risks__card--black .risks__card-check {
  color: #feb102 !important;
}
html body .risks__card--purple .risks__card-icon,
html body .risks__card--purple .risks__card-check { color: #ffffff !important; }
/* Подвал */
.footer__info-label { color: rgba(255, 255, 255, 0.7); }
.footer__nav-col a { font-size: 14px; }
/* Описания в карточках услуг: не мельче 16 px и на компьютере */
.service-about__card-desc { font-size: 16px; line-height: 1.45; }
/* Подпись и счётчик слайдера лежат на фото: тёмная подложка, чтобы читались на любом снимке */
.about__slider-subtitle, .about__slider-counter {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 7, 12, 0.62);
  color: #ffffff;
}

/* Блок «О компании» (слайдер + 4 карточки): при ширине окна меньше ~1400 px
   карточки сжимались и текст вылезал. Ставим слайдер сверху, карточки 2×2 под ним. */
@media (min-width: 580px) and (max-width: 1399px) {
  .about__bottom { flex-direction: column; padding: 0 32px; }
  .about__slider { width: 100%; height: 460px; }
  .about__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .about__card { width: auto; height: auto; min-height: 220px; gap: 24px; padding: 28px; }
}

/* ===== Средние ширины (планшет, небольшой ноутбук): у сайта нет отдельной вёрстки,
   из-за этого карточки сжимались, текст обрезался, страница прокручивалась вбок. ===== */
.partners { overflow-x: clip; }
@media (min-width: 580px) and (max-width: 1199px) {
  .stats__card { width: calc((100% - 24px) / 2); height: auto; min-height: 200px; padding: 32px 16px 16px 32px; }
}
@media (min-width: 580px) and (max-width: 1023px) {
  .services__row { flex-wrap: wrap; }
  .card-service { flex: 1 1 calc(50% - 12px); min-width: 0; padding: 32px; }
  .risks__card { height: auto; min-height: 360px; padding: 36px; }
  .footer__contacts { height: auto; overflow: visible; }
}

/* ===== Страницы услуг: средние ширины (580–1399) ===== */
@media (min-width: 580px) and (max-width: 1399px) {
  .service-hero__intro { flex-direction: column; gap: 32px; }
  .service-hero__title, .service-hero__col { width: auto; max-width: 100%; flex: 0 1 auto; margin-left: 0; }
  .service-hero__desc { max-width: 640px; }
  .service-hero__buttons { width: auto; flex-wrap: wrap; gap: 12px; }
  .service-about__body { flex-direction: column; gap: 48px; }
  .service-about__text, .service-about__right { width: auto; max-width: 100%; }
  .service-about__cards { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-about__card-body { width: auto; min-width: 0; }
  .import-categories__heading { padding-right: 0; }
}
@media (min-width: 580px) and (max-width: 1199px) {
  .service-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .service-hero__stat { width: auto; min-width: 0; }
}
@media (min-width: 580px) and (max-width: 1023px) {
  .import-categories__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 580px) and (max-width: 799px) {
  .service-about__cards { grid-template-columns: 1fr; }
}
/* Контакты, телефон: колонка «Мы открыты к сотрудничеству» съезжала вправо */
@media (max-width: 579px) {
  .about-culture-intro__col { margin-left: 0; left: 0; transform: none; grid-column: 1 / -1; width: 100%; }
}

/* ===== Узкие планшеты (580–899) и телефоны ===== */
@media (min-width: 580px) and (max-width: 899px) {
  :has(> .risks__cards) { flex-direction: column; }
  .risks__cards { width: 100%; }
  .footer__cards { flex-direction: column; height: auto; }
  .footer__cards > * { width: auto; }
  .hero__buttons { flex-wrap: wrap; gap: 12px; padding-left: 0; }
  .about-calm__cards { grid-template-columns: 1fr; height: auto; }
  .about-calm__card { height: auto; }
}
@media (min-width: 580px) and (max-width: 1199px) {
  .about-hero__title { font-size: 64px; width: auto; max-width: 100%; height: auto; }
}
@media (min-width: 580px) and (max-width: 899px) {
  .about-hero__title { font-size: 52px; }
}
@media (max-width: 579px) {
  .risks__card { height: auto; min-height: 285px; }
}
@media (min-width: 580px) and (max-width: 899px) {
  .service-about__title { font-size: 40px; overflow-wrap: break-word; hyphens: auto; }
}
/* Страховка от горизонтальной прокрутки из-за бегущих лент и слайдеров */
html, body { overflow-x: clip; }

/* Блок цифр из 3 пунктов (страница фулфилмента): 3 колонки вместо 4 */
@media (min-width: 1200px) {
  .service-hero__stats:has(> .service-hero__stat:nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Кружки со значками: заметная подложка ===== */
/* На светлых карточках — жёлтый кружок с тёмным значком */
html body .service-about__icon, html body .about__card-icon, html body .import-categories__icon,
html body .about-calm__card-icon, html body .risks__card-check {
  background: #feb102 !important;
  color: #0f0e14 !important;
}
/* На жёлтых карточках — белый кружок */
html body .service-about__card--indigo .service-about__icon,
html body .about__card--dark .about__card-icon,
html body .risks__card--indigo .risks__card-check {
  background: #ffffff !important;
  color: #0f0e14 !important;
}
/* На красно-оранжевых — полупрозрачный белый кружок с белым значком */
html body .about__card--accent .about__card-icon,
html body .risks__card--purple .risks__card-check {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}
/* На чёрных — жёлтый кружок с тёмным значком */
html body .risks__card--black .risks__card-check {
  background: #feb102 !important;
  color: #0f0e14 !important;
}
/* Кружок-кнопка в карточках услуг: видимая обводка */
html body .card-service__btn-circle { border-color: rgba(8, 7, 12, 0.3) !important; color: #0f0e14 !important; }
html body .service-about__icon svg, html body .about__card-icon svg, html body .import-categories__icon svg,
html body .about-calm__card-icon svg, html body .risks__card-check svg, html body .card-service__btn-circle svg {
  color: inherit !important;
}
/* Квадратные значки в карточках «Закупки без риска» */
html body .risks__card-icon { background: #feb102 !important; color: #0f0e14 !important; }
html body .risks__card--indigo .risks__card-icon { background: #ffffff !important; }
html body .risks__card--purple .risks__card-icon { background: rgba(255, 255, 255, 0.22) !important; color: #ffffff !important; }
html body .risks__card-icon svg { color: inherit !important; }
html body .risks__card--black .risks__card-icon, html body .risks__card--black .risks__card-icon svg,
html body .risks__card--black .risks__card-check svg { color: #0f0e14 !important; }
/* Кружок с телефоном в шапке: обводка заметнее */
html body .header__phone { border-color: rgba(255, 255, 255, 0.45) !important; }

/* ===== Кружки в окнах заявок, мобильном меню и шагах ===== */
/* На белом фоне — жёлтый кружок, тёмный значок */
html body .consult-popup__icon, html body .calc-popup__success-icon, html body .consult-popup__success-icon,
html body .mob-menu__phone-icon, html body .steps__card-icon {
  background: #feb102 !important; color: #0f0e14 !important;
}
/* На жёлтом фоне — белый кружок, тёмный значок или цифра */
html body .callback-popup__icon, html body .callback-popup__success-icon,
html body .calc-popup__step-num, html body .form-mini__divider-icon {
  background: #ffffff !important; color: #0f0e14 !important; border-color: transparent !important;
}
html body .consult-popup__icon svg, html body .calc-popup__success-icon svg, html body .consult-popup__success-icon svg,
html body .mob-menu__phone-icon svg, html body .steps__card-icon svg, html body .callback-popup__icon svg,
html body .callback-popup__success-icon svg, html body .form-mini__divider-icon svg { color: inherit !important; }
/* Фиолетовая карточка в шагах: значок остаётся жёлтым на полупрозрачном белом */
html body .steps__card--purple .steps__card-icon { background: rgba(255, 255, 255, 0.18) !important; color: #feb102 !important; }
/* Карточка в подвале открывает форму расчёта */
.footer__calc { cursor: pointer; }
.footer__calc-link { font-size: 16px; font-weight: 500; color: #0f0e14; }
/* Подвал: две карточки одной высоты, адрес сразу под подписью */
html body .footer__contacts { height: auto; }
.footer__calc { gap: 48px; }
.footer__info-address { justify-content: flex-start; gap: 12px; }
.footer__info-address > :last-child { margin-top: auto; }
/* Плашка в жёлтой форме: длинный текст переносится на телефоне */
.form-mini__badge { max-width: 100%; }
.form-mini__badge-text { white-space: normal; min-width: 0; }


/* «Закупки без риска» на телефоне и узком планшете: карточки обычным списком,
   без эффекта «стопки» — иначе между ними пол-экрана пустоты при прокрутке */
@media (max-width: 899px) {
  .risks__cards { gap: 16px !important; }
  .risks__card { position: relative !important; top: auto !important; }
}
@media (max-width: 899px) { .risks__card-label { margin-top: 14px; } }
