/* Главная (front-page.php). Порядок блоков задаёт front-page.php, новые блоки — template-parts/home-blocks.php,
   вопросы — template-parts/services-extras.php (стили в css/services.css, здесь — поправки под главную). */
.home { --hm-green: #30af21; --hm-green-dark: #1f7d14; --hm-green-soft: #eaf6e8; --hm-deep: #145422; --hm-orange: #ff7a00; --hm-text: #1d2a1f; --hm-muted: #6b776d; --hm-line: #e6ebe6; --hm-bg: #f4f8f3;
  --sv-green: #30af21; --sv-green-dark: #1f7d14; --sv-green-soft: #eaf6e8; --sv-text: #1d2a1f; --sv-muted: #6b776d; --sv-line: #e6ebe6; }

/* общие заголовки блоков */
.hm-head { margin: 0 0 26px; }
.hm-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hm-green-dark); }
.home h2.hm-h2 { margin: 0; padding: 0; font-size: 32px; line-height: 1.2; font-weight: 700; color: var(--hm-text); text-align: left; }
.hm ul.hm-perks__list, .hm ol.hm-steps__list, .hm ul.hm-card__more, .hm ul.hm-about__stats, .hm ul.hm-about__list { margin: 0; padding: 0; list-style: none; }
.hm .hm-perks__list > li::before, .hm .hm-steps__list > li::before, .hm .hm-card__more > li::before, .hm .hm-about__stats > li::before { content: none; display: none; }

/* ---------- преимущества (оформление — css/perks.css) ---------- */
/* .front-page-wrap .container в теме ставит margin: 0 auto !important — отступы задаём точнее */
.hm .container.hm-perks { margin-top: 40px !important; margin-bottom: 10px !important; }

/* ---------- цены (WPBakery section3): ровный отступ ---------- */
.home .section3 { padding-top: 64px !important; padding-bottom: 10px !important; }
.home .section3 h2 { font-size: 32px !important; color: var(--hm-text) !important; }

/* ---------- что мы вывозим ---------- */
.hm .container.hm-waste { margin-top: 72px !important; }
.hm-waste__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.hm-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--hm-line); border-radius: 20px; background: #fff; transition: box-shadow .2s, border-color .2s, transform .2s; }
.hm-card:not(.hm-card--cta):hover { border-color: #cfe5cb; box-shadow: 0 14px 34px rgba(20, 60, 25, .12); transform: translateY(-2px); }
.hm-card__pic { position: relative; aspect-ratio: 400 / 260; overflow: hidden; background: var(--hm-bg); }
.hm-card__pic img { display: block; width: 100%; height: 100%; padding: 14px 18px 0; object-fit: contain; object-position: center bottom; mix-blend-mode: multiply; transition: transform .35s; }
.hm-card--full .hm-card__pic img { padding: 0; object-fit: cover; object-position: center; mix-blend-mode: normal; }
.hm-card:hover .hm-card__pic img { transform: scale(1.03); }
.hm-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.home h3.hm-card__title { margin: 0 0 8px; padding: 0; font-size: 20px; line-height: 1.25; font-weight: 700; text-align: left; }
.hm-card__link { color: var(--hm-text) !important; text-decoration: none !important; }
.hm-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* вся карточка кликабельна */
.hm-card:hover .hm-card__link { color: var(--hm-green-dark) !important; }
.hm-card__text { margin: 0 0 16px !important; font-size: 15px; line-height: 1.55; color: #4a574c; }
.hm-card__more { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto !important; }
.hm .hm-card__more li { margin: 0; padding: 0; }
.hm-card__more a { position: relative; z-index: 2; display: inline-block; padding: 6px 12px; border-radius: 20px; background: var(--hm-green-soft); font-size: 13.5px; font-weight: 600; color: var(--hm-green-dark) !important; text-decoration: none !important; transition: background .15s, color .15s; }
.hm-card__more a:hover { background: var(--hm-green); color: #fff !important; }

/* карточка-призыв */
.hm-card--cta { justify-content: center; padding: 30px 28px; border: 0; color: #fff; background: linear-gradient(150deg, var(--hm-green-dark) 0%, var(--hm-deep) 100%); box-shadow: 0 12px 30px rgba(20, 84, 34, .22); }
.hm-card__cta-title { margin: 0 0 10px; font-size: 24px; line-height: 1.2; font-weight: 700; color: #fff; }
.hm-card__cta-text { margin: 0 0 20px !important; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .85); }
.hm-card__phone { display: block; margin: 0 0 14px; font-size: 22px; font-weight: 700; color: #fff !important; text-decoration: none !important; white-space: nowrap; }
.hm-card__btn { display: block; padding: 14px 18px; border-radius: 14px; background: var(--hm-orange); box-shadow: 0 8px 20px rgba(255, 122, 0, .35); font-size: 16px; font-weight: 700; text-align: center; color: #fff !important; text-decoration: none !important; transition: background .15s; }
.hm-card__btn:hover { background: #ff8c1f; }
.hm-card__all { align-self: center; margin-top: 14px; font-size: 15px; font-weight: 600; color: #fff !important; text-decoration: none !important; border-bottom: 1px solid rgba(255, 255, 255, .4); }
.hm-card__all:hover { border-bottom-color: #fff; }
.hm-waste__note { position: relative; margin: 22px 0 0 !important; padding-left: 30px; font-size: 15px; line-height: 1.55; color: var(--hm-muted); }
.hm-waste__note::before { content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; background: var(--hm-green); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 19H4.8a1.8 1.8 0 0 1-1.6-2.7L5.5 12M11 19h8.2a1.8 1.8 0 0 0 1.6-2.7l-1.2-2'/%3E%3Cpath d='M14 16l-3 3 3 3M8.5 8.6L10.4 5.3a1.8 1.8 0 0 1 3.2 0l3.9 6.7M13.5 12.2l4 .7.8-4M5.5 12l-4-.4M5.5 12l1.1 3.9'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 19H4.8a1.8 1.8 0 0 1-1.6-2.7L5.5 12M11 19h8.2a1.8 1.8 0 0 0 1.6-2.7l-1.2-2'/%3E%3Cpath d='M14 16l-3 3 3 3M8.5 8.6L10.4 5.3a1.8 1.8 0 0 1 3.2 0l3.9 6.7M13.5 12.2l4 .7.8-4M5.5 12l-4-.4M5.5 12l1.1 3.9'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- как проходит заказ ---------- */
.hm .container.hm-steps { margin-top: 76px !important; }
.hm-steps__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.hm .hm-step { position: relative; display: block; margin: 0; padding: 0; }
.hm-step__num { display: block; margin: 0 0 14px; font-size: 64px; line-height: .9; font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px var(--hm-green); }
.hm-step:not(:last-child)::after { content: ""; position: absolute; top: 28px; left: 60px; right: -14px; border-top: 2px dashed #cfe5cb; }
.hm-step__title { display: block; margin: 0 0 8px; font-size: 19px; line-height: 1.3; font-weight: 700; color: var(--hm-text); }
.hm-step__text { display: block; font-size: 15px; line-height: 1.6; color: #4a574c; }

/* ---------- нам доверяют: партнёры (section7) + отзывы (WPBakery) ---------- */
.hm-trust { margin: 76px 0 0; padding: 56px 0 44px; background: var(--hm-bg); }
.home .hm-trust .section7 { padding: 0 !important; border: 0 !important; background: transparent !important; }
/* секции WPBakery с классом container — по центру, с теми же полями, что у заголовка */
.home .hm-trust .vc_section { margin-left: auto !important; margin-right: auto !important; padding-left: 15px !important; padding-right: 15px !important; }
.home .hm-trust .vc_row { margin-left: 0 !important; margin-right: 0 !important; }
.home .hm-trust .vc_column-inner { padding: 0 !important; }
.home .hm-trust .container .container { padding: 0; max-width: none; width: auto; }
.home .hm-trust .slider-partners { margin: 0 0 24px; padding: 18px 56px; border-radius: 20px; background: #fff; }
.home .hm-trust .slider-partners .item { align-items: center; padding: 0 8px; }
/* логотипы подготовлены одним размером 360×128 с выровненным «весом» — показываем как есть */
.home .hm-trust .slider-partners .item img { width: 180px; max-width: 100%; height: auto; max-height: none; object-fit: contain; }
/* стрелки слайдеров — новые, без спрайта */
.home .hm-trust .slick-prev, .home .hm-trust .slick-next { z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(20, 60, 25, .14); transition: background .15s; }
.home .hm-trust .slick-prev:hover, .home .hm-trust .slick-next:hover { background: var(--hm-green-soft); }
.home .hm-trust .slick-prev:before, .home .hm-trust .slick-next:before { content: "" !important; display: block; width: 40px; height: 40px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231f7d14' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E") center no-repeat !important; box-shadow: none !important; opacity: 1; }
.home .hm-trust .slick-next:before { transform: scaleX(-1); }
.home .hm-trust .slider-partners .slick-prev { left: 8px !important; top: 50%; }
.home .hm-trust .slider-partners .slick-next { right: 8px !important; top: 50%; }

/* отзывы: столбец WPBakery скрыт на телефоне — показываем */
.home .hm-trust .vc_hidden-xs { display: block !important; }
.home .hm-trust .reviews-block { padding: 0; text-align: left; }
.home .hm-trust .slider-reviews { padding: 0; border-radius: 20px; background: #fff; }
.home .hm-trust .slider-reviews .slick-slide { margin: 0; }
.home .hm-trust .reviews-block .item-prod { display: flex !important; gap: 32px; align-items: flex-start; padding: 32px 76px 32px 40px; }
.home .hm-trust .reviews-block .item-prod .image { flex: none; width: 170px; padding: 0; text-align: center; }
.home .hm-trust .reviews-block .item-prod .image img { width: 170px; height: auto; max-height: 240px; border: 1px solid var(--hm-line); border-radius: 10px; box-shadow: 0 8px 22px rgba(20, 60, 25, .14); }
.home .hm-trust .reviews-block .item-prod .desk { flex: 1; width: auto; padding: 0; text-align: left; }
.home .hm-trust .reviews-block .item-prod .desk p { position: relative; margin: 0 0 16px; padding-top: 34px; font-size: 16px; line-height: 1.65; color: #3d4a3f; }
.home .hm-trust .reviews-block .item-prod .desk p::before { content: "“"; position: absolute; left: -2px; top: -12px; font: 700 64px/1 Georgia, serif; color: var(--hm-green); }
.home .hm-trust .reviews-block .item-prod .desk .title, .home .hm-trust .reviews-block .item-prod .desk .name { text-align: left; }
.home .hm-trust .reviews-block .item-prod .desk .title { font-size: 16px; color: var(--hm-text); }
.home .hm-trust .reviews-block .item-prod .desk .name { font-size: 14px; color: var(--hm-muted); }
.home .hm-trust .slider-reviews .slick-prev, .home .hm-trust .slider-reviews .slick-next { top: auto; bottom: 26px; transform: none; }
.home .hm-trust .slider-reviews .slick-prev { left: auto; right: 72px; }
.home .hm-trust .slider-reviews .slick-next { right: 24px; }
.home .hm-trust .wpb_content_element { margin-bottom: 0; }
/* кнопка «Все отзывы» из WPBakery — ссылкой справа под слайдером */
.home .hm-trust .reviews-block .btn-black { display: table; width: auto; max-width: none; margin: 18px 0 0 auto; padding: 0; border-radius: 0; background: none !important; box-shadow: none; font-size: 15px !important; font-weight: 600; color: var(--hm-green-dark) !important; text-decoration: none !important; }
.home .hm-trust .reviews-block .btn-black::after { content: " →"; }
.home .hm-trust .reviews-block .btn-black:hover { box-shadow: none; text-decoration: underline !important; }

/* ---------- о компании ---------- */
.hm-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.hm .container.hm-about { margin-top: 76px !important; }
.hm-about__pic img { display: block; width: 100%; height: auto; aspect-ratio: 1408 / 1024; object-fit: cover; border-radius: 24px; box-shadow: 0 16px 40px rgba(20, 60, 25, .16); }
.hm-about .hm-h2 { margin-bottom: 14px !important; font-size: 28px !important; }
.hm-about__lead { margin: 0 0 22px !important; font-size: 16px; line-height: 1.65; color: #3d4a3f; }
.hm-about__lead a { color: var(--hm-green-dark) !important; text-decoration: none !important; border-bottom: 1px solid rgba(31, 125, 20, .3); }
.hm-about__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px !important; }
.hm .hm-about__stats li { margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--hm-green-soft); }
.hm-about__stats b { display: block; font-size: 26px; line-height: 1.1; font-weight: 800; color: var(--hm-green-dark); }
.hm-about__stats span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.35; color: #3d4a3f; }
.hm-about__list { margin: 0 0 22px !important; }
.hm .hm-about__list li { position: relative; margin: 0 0 10px; padding: 0 0 0 30px; font-size: 15.5px; line-height: 1.5; color: var(--hm-text); }
.hm .hm-about__list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--hm-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center no-repeat; }
.hm-about__more { display: inline-block; padding: 12px 20px; border: 2px solid var(--hm-green); border-radius: 12px; font-size: 16px; font-weight: 700; color: var(--hm-green-dark) !important; text-decoration: none !important; transition: background .15s, color .15s; }
.hm-about__more:hover { background: var(--hm-green); color: #fff !important; }

/* ---------- текст про отходы (WPBakery section4) ---------- */
.home .section4.vc_section { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; max-width: none; width: auto !important; margin-top: 76px !important; padding: 44px 48px 26px !important; border-radius: 24px; background: var(--hm-bg) !important; }
.home .section4 > .vc_row { margin: 0 !important; }
.home .section4 > .vc_row > .wpb_column { width: 100% !important; float: none; }
.home .section4 .vc_column-inner { padding: 0 !important; }
/* остаются два ряда: «Классификация отходов» и «Из чего формируется стоимость» — две колонки */
.home .section4 .wpb_single_image, .home .section4 .wpb_column:empty, .home .section4 img { display: none !important; } /* старые картинки: не показываем и не грузим (loading=lazy) */
.home .section4 h2.hm-text__h { margin: 0 0 12px !important; padding: 0; font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--hm-text); text-align: left; }
.home .section4 .wpb_text_column { font-size: 15px; line-height: 1.65; color: #3d4a3f; }
.home .section4 .wpb_text_column p { margin: 0 0 14px; }
.home .section4 a { color: var(--hm-green-dark) !important; text-decoration: none !important; border-bottom: 1px solid rgba(31, 125, 20, .3); }

/* ---------- вопросы (services-extras.php) ---------- */
.hm .hm-faq .container.sv-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; margin-top: 76px !important; }
.home .hm-faq h2.sv-faq__title { margin: 0 0 26px !important; padding: 0; font-size: 32px; line-height: 1.2; font-weight: 700; color: var(--hm-text); text-align: left; }
.home .hm-faq .sv-faq__call { display: inline-block; padding: 12px 20px; border: 2px solid var(--hm-green); border-radius: 12px; font-size: 17px; font-weight: 700; color: var(--hm-green-dark) !important; text-decoration: none !important; transition: background .15s, color .15s; }
.home .hm-faq .sv-faq__call:hover { background: var(--hm-green); color: #fff !important; }
.hm .container.cb { margin-top: 64px !important; }

/* ---------- планшет ---------- */
@media (max-width: 991px) {
  .hm-waste__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .hm-step:nth-child(2)::after { display: none; }
  .hm-about { grid-template-columns: 1fr; gap: 28px; }
  .hm-about__pic { max-width: 640px; }
  .home .section4.vc_section { grid-template-columns: 1fr; padding: 32px 28px 16px !important; }
  .hm .hm-faq .container.sv-faq { grid-template-columns: 1fr; gap: 10px; }
  .hm-faq .sv-faq__aside { position: static; }
  .home .hm-trust .reviews-block .item-prod { padding: 28px 28px 80px; }
}

/* ---------- телефон ---------- */
@media (max-width: 767px) {
  .home h2.hm-h2, .home .hm-faq h2.sv-faq__title { font-size: 25px; }
  .hm-head { margin-bottom: 18px; }
  .hm .container.hm-perks { margin-top: 28px !important; }
  .home .section3 { padding-top: 44px !important; }
  .home .section3 h2 { font-size: 25px !important; }
  .hm .container.hm-waste, .hm .container.hm-steps, .hm .container.hm-about, .hm .hm-faq .container.sv-faq, .hm .container.cb { margin-top: 52px !important; }
  .hm-waste__grid { grid-template-columns: 1fr; gap: 14px; }
  /* карточки на телефоне — горизонтальные: фото слева, текст справа */
  .hm-card:not(.hm-card--cta) { display: grid; grid-template-columns: 112px minmax(0, 1fr); border-radius: 16px; }
  .hm-card__pic { aspect-ratio: auto; height: 100%; }
  .hm-card__pic img { position: absolute; inset: 0; padding: 10px 6px; object-position: center; }
  .hm-card--full .hm-card__pic img { padding: 0; }
  .hm-card__body { padding: 14px 16px 16px; }
  .home h3.hm-card__title { margin-bottom: 6px; font-size: 17px; }
  .hm-card__text { margin-bottom: 12px !important; font-size: 14px; line-height: 1.5; }
  .hm-card__more a { padding: 5px 10px; font-size: 12.5px; }
  .hm-card--cta { padding: 24px 20px; }
  .hm-steps__list { grid-template-columns: 1fr; gap: 20px; }
  .hm .hm-step { display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; }
  .hm-step__num { grid-row: span 2; margin: 0; font-size: 46px; }
  .hm-step:not(:last-child)::after { display: none; }
  .hm-trust { margin-top: 52px; padding: 40px 0 32px; }
  .home .hm-trust .slider-partners { padding: 12px 44px; }
  /* отзыв на телефоне: скан маленьким слева, рядом компания и автор, ниже текст */
  .home .hm-trust .reviews-block .item-prod { display: grid !important; grid-template-columns: 76px minmax(0, 1fr); column-gap: 16px; row-gap: 0; align-items: center; padding: 22px 20px 76px; }
  .home .hm-trust .reviews-block .item-prod .image { grid-row: 1 / 3; grid-column: 1; width: 76px; }
  .home .hm-trust .reviews-block .item-prod .image img { width: 76px; border-radius: 8px; box-shadow: 0 4px 12px rgba(20, 60, 25, .14); }
  .home .hm-trust .reviews-block .item-prod .desk { display: contents; }
  .home .hm-trust .reviews-block .item-prod .desk .title { grid-column: 2; grid-row: 1; align-self: end; margin: 0 0 2px; font-size: 15px; line-height: 1.3; }
  .home .hm-trust .reviews-block .item-prod .desk .name { grid-column: 2; grid-row: 2; align-self: start; margin: 0; font-size: 13px; }
  .home .hm-trust .reviews-block .item-prod .desk p { grid-column: 1 / -1; grid-row: 3; margin: 18px 0 0; padding-top: 30px; font-size: 15px; }
  .home .hm-trust .slider-reviews .slick-prev { right: auto; left: 20px; }
  .home .hm-trust .slider-reviews .slick-next { right: auto; left: 70px; }
  .home .hm-trust .reviews-block .btn-black { margin-left: 0; }
  .hm-about .hm-h2 { font-size: 23px !important; }
  .hm-about__stats { gap: 8px; }
  .hm .hm-about__stats li { padding: 12px; }
  .hm-about__stats b { font-size: 21px; }
  .hm-about__stats span { font-size: 12.5px; }
  .home .section4.vc_section { margin-top: 52px !important; padding: 26px 18px 10px !important; border-radius: 20px; }
  .home .section4 h2.hm-text__h { font-size: 20px; }
  .hm-faq .sv-faq__q { font-size: 16px; padding: 16px 40px 16px 0; }
  .hm-faq .sv-faq__a { padding-right: 0; font-size: 15px; }
}
