/* Страницы услуг (services-page.php). Разметка — из WPBakery: 1) заголовок + форма + фото, 2) текст на фоне,
   3) цены/контейнеры, 4) текст. Форма заявки — css/css3.css, свёрнутая форма на телефоне — js/main.js */
.page-template-services-page { --sv-green: #30af21; --sv-green-dark: #1f7d14; --sv-green-soft: #eaf6e8; --sv-text: #1d2a1f; --sv-muted: #6b776d; --sv-line: #e6ebe6; }
.page-template-services-page .services-page { padding-bottom: 0 !important; }
.page-template-services-page #wpb-content-root .vc_separator { display: none !important; }

/* ---------- 1. первый экран ---------- */
.page-template-services-page #wpb-content-root > .vc_section:first-child > .vc_row:first-child {
  margin: 10px 0 24px !important; padding: 0 !important;
}
.page-template-services-page #wpb-content-root > .vc_section:first-child > .vc_row:first-child h1 { margin: 0 0 8px !important; font-size: 42px; line-height: 1.12; color: var(--sv-text); }
.page-template-services-page #wpb-content-root > .vc_section:first-child > .vc_row:first-child .sub-heading { margin: 0 !important; font-size: 19px; line-height: 1.45; color: #3f4c41; }
/* фото на белом фоне: без рамки и тени, multiply прячет белое, если фон не чисто белый */
.page-template-services-page #wpb-content-root > .vc_section:first-child > .vc_row:first-child .service-image img {
  border-radius: 0 !important; box-shadow: none !important; background: transparent !important; mix-blend-mode: multiply;
}
/* заметка под первым экраном (блок «сообщение» WPBakery) */
.page-template-services-page #wpb-content-root > .vc_section:first-child .vc_message_box {
  position: relative; margin: 0 0 10px !important; padding: 18px 22px 18px 64px !important; border: 0 !important; border-radius: 18px !important;
  background: var(--sv-green-soft) !important; color: var(--sv-text) !important; font-size: 15px; line-height: 1.6;
}
.page-template-services-page #wpb-content-root > .vc_section:first-child .vc_message_box p { margin: 0 !important; color: var(--sv-text) !important; }
.page-template-services-page #wpb-content-root > .vc_section:first-child .vc_message_box-icon {
  left: 20px !important; top: 18px !important; width: 28px !important; height: 28px !important; margin: 0 !important; transform: none !important;
  border-radius: 50%; background: var(--sv-green); color: #fff !important; font-size: 14px !important; line-height: 28px !important; text-align: center;
}
.page-template-services-page #wpb-content-root > .vc_section:first-child .vc_message_box-icon i { font-size: 14px !important; color: #fff !important; }

/* ---------- 2. текст на фоне ---------- */
.page-template-services-page .vc_section.width-big { background-color: #f4f8f3 !important; background-image: none !important; }
.page-template-services-page .vc_section.width-big .wpb_text_column { max-width: 1110px; margin-left: auto !important; margin-right: auto !important; }

/* ---------- общий текст (блоки 2–4) ---------- */
.page-template-services-page #wpb-content-root > .vc_section:not(:first-child) .wpb_text_column { font-size: 16px; line-height: 1.7; color: #26322a; }
.page-template-services-page #wpb-content-root > .vc_section:not(:first-child) .wpb_text_column p { margin: 0 0 16px; }
.page-template-services-page #wpb-content-root > .vc_section:not(:first-child) h2 { margin: 36px 0 16px !important; font-size: 30px; line-height: 1.2; font-weight: 700; color: var(--sv-text); }
.page-template-services-page #wpb-content-root > .vc_section:not(:first-child) h3 { margin: 28px 0 12px !important; font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--sv-text); }
.page-template-services-page #wpb-content-root > .vc_section:not(:first-child) .wpb_text_column:first-child h2:first-child,
.page-template-services-page #wpb-content-root > .vc_section:not(:first-child) .wpb_text_column:first-child h3:first-child { margin-top: 10px !important; }
.page-template-services-page #wpb-content-root .wpb_text_column a:not([class]) { color: var(--sv-green-dark) !important; text-decoration: none !important; border-bottom: 1px solid rgba(31, 125, 20, .3); }
.page-template-services-page #wpb-content-root .wpb_text_column a:not([class]):hover { border-bottom-color: var(--sv-green-dark); }

.page-template-services-page #wpb-content-root > .vc_section:not(:first-child) .wpb_text_column ul:not([class]) { margin: 0 0 20px !important; padding: 0 !important; list-style: none !important; }
.page-template-services-page #wpb-content-root > .vc_section:not(:first-child) .wpb_text_column ul:not([class]) > li { position: relative; margin: 0 0 10px !important; padding: 0 0 0 26px !important; list-style: none !important; }
.page-template-services-page #wpb-content-root > .vc_section:not(:first-child) .wpb_text_column ul:not([class]) > li::before {
  content: "" !important; position: absolute !important; left: 4px !important; top: 10px !important; display: block !important;
  width: 8px !important; height: 8px !important; margin: 0 !important; border: 0 !important; border-radius: 50% !important; background: var(--sv-green) !important;
}
.page-template-services-page #wpb-content-root > .vc_section:not(:first-child) .wpb_text_column ol:not([class]) { margin: 0 0 20px !important; padding: 0 0 0 26px !important; list-style: decimal !important; }
.page-template-services-page #wpb-content-root > .vc_section:not(:first-child) .wpb_text_column ol:not([class]) > li { margin: 0 0 8px !important; padding: 0 0 0 4px !important; list-style: inherit !important; }
.page-template-services-page #wpb-content-root > .vc_section:not(:first-child) .wpb_text_column ol:not([class]) > li::before { content: none !important; display: none !important; }
.page-template-services-page #wpb-content-root > .vc_section:not(:first-child) .wpb_text_column ol:not([class]) > li::marker { font-weight: 800; color: var(--sv-green-dark); }

.page-template-services-page #wpb-content-root > .vc_section:not(:first-child) blockquote {
  position: relative; margin: 24px 0 !important; padding: 20px 24px 20px 68px !important; border: 0 !important; border-radius: 18px;
  background: var(--sv-green-soft) !important; font-size: 16px; line-height: 1.6; font-style: normal; color: var(--sv-text);
}
.page-template-services-page #wpb-content-root > .vc_section:not(:first-child) blockquote::before {
  content: "" !important; position: absolute !important; left: 22px !important; right: auto !important; top: 20px !important; margin: 0 !important; width: 30px !important; height: 30px !important; border-radius: 50% !important;
  background: var(--sv-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 6.2v4M7 3.6v.1'/%3E%3C/svg%3E") center / 14px no-repeat !important;
}
.page-template-services-page #wpb-content-root > .vc_section:not(:first-child) blockquote::after { display: none !important; }
.page-template-services-page #wpb-content-root > .vc_section:not(:first-child) blockquote p { margin: 0 !important; }

/* ---------- видео (ряды из WPBakery собираются в блок в js/main.js) ---------- */
.page-template-services-page .sv-videos { margin: 40px 0 10px; padding: 32px; border-radius: 24px; background: #f4f8f3; }
.sv-videos__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.page-template-services-page #wpb-content-root .vc_section .sv-videos h2.sv-videos__title { margin: 0 !important; font-size: 28px; line-height: 1.2; font-weight: 700; color: var(--sv-text); }
.page-template-services-page .sv-videos__all { flex: none; font-size: 15px; font-weight: 600; color: var(--sv-green-dark) !important; text-decoration: none !important; white-space: nowrap; }
.sv-videos__all::after { content: " →"; }
.sv-videos__all:hover { text-decoration: underline !important; }
.sv-videos__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sv-videos__grid--one { grid-template-columns: minmax(0, 760px); justify-content: center; }
.sv-video { position: relative; overflow: hidden; border-radius: 16px; background: #0f1a11; box-shadow: 0 10px 28px rgba(20, 60, 25, .14); aspect-ratio: 16 / 9; }
.sv-video iframe { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; border: 0; }

/* ---------- почему мы / как проходит заказ / вопросы (template-parts/services-extras.php) ---------- */
.page-template-services-page .sv-perks__list,
.page-template-services-page .sv-steps__list { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.page-template-services-page .sv-perks__list > li,
.page-template-services-page .sv-steps__list > li { margin: 0 !important; list-style: none !important; }
.page-template-services-page .sv-perks__list > li::before,
.page-template-services-page .sv-steps__list > li::before { content: none !important; display: none !important; }

/* почему мы — полоса под первым экраном */
.services-page .container.sv-perks { margin-top: 8px !important; margin-bottom: 36px !important; }
.sv-perks__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--sv-text); border-bottom: 1px solid var(--sv-line); }
.page-template-services-page .sv-perk { display: flex; gap: 14px; padding: 22px 20px 22px 0 !important; }
.sv-perk + .sv-perk { padding-left: 20px !important; border-left: 1px solid var(--sv-line); }
.sv-perk__ico { flex: none; width: 26px; height: 26px; margin-top: 1px; background: var(--sv-green); -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.sv-perk__ico--clock { -webkit-mask-image: 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%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); mask-image: 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%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.sv-perk__ico--tag { -webkit-mask-image: 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='M20.6 13.4l-7.2 7.2a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E"); mask-image: 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='M20.6 13.4l-7.2 7.2a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E"); }
.sv-perk__ico--doc { -webkit-mask-image: 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='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E"); mask-image: 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='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E"); }
.sv-perk__ico--cal { -webkit-mask-image: 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%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18M9 15l2 2 4-4'/%3E%3C/svg%3E"); mask-image: 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%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18M9 15l2 2 4-4'/%3E%3C/svg%3E"); }
.sv-perk__body { display: block; }
.sv-perk__title { display: block; margin: 0 0 4px; font-size: 16px; line-height: 1.3; font-weight: 700; color: var(--sv-text); }
.sv-perk__text { display: block; font-size: 14px; line-height: 1.5; color: var(--sv-muted); }

/* как проходит заказ */
.services-page .container.sv-steps { margin-top: 56px !important; margin-bottom: 0 !important; }
.sv-steps__kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sv-green-dark); }
.page-template-services-page .services-page h2.sv-steps__title,
.page-template-services-page .services-page h2.sv-faq__title { margin: 0 0 26px !important; font-size: 30px; line-height: 1.2; font-weight: 700; color: var(--sv-text); }
.sv-steps__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: none; }
.page-template-services-page .sv-step { position: relative; display: block; padding: 0 !important; }
.sv-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(--sv-green); }
.sv-step:not(:last-child)::after { content: ""; position: absolute; top: 28px; left: 64px; right: -14px; height: 0; border-top: 2px dashed #cfe5cb; }
.sv-step__title { display: block; margin: 0 0 8px; font-size: 19px; line-height: 1.3; font-weight: 700; color: var(--sv-text); }
.sv-step__text { display: block; font-size: 15px; line-height: 1.6; color: #4a574c; }

/* вопросы */
.services-page .container.sv-faq { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; margin-top: 60px !important; margin-bottom: 0 !important; }
.sv-faq__aside { align-self: start; position: sticky; top: 110px; }
.sv-faq__lead { margin: -12px 0 16px !important; font-size: 15px; line-height: 1.6; color: var(--sv-muted); }
.page-template-services-page .sv-faq__call { display: inline-block; padding: 12px 20px; border: 2px solid var(--sv-green); border-radius: 12px; font-size: 17px; font-weight: 700; color: var(--sv-green-dark) !important; text-decoration: none !important; transition: background .15s, color .15s; }
.page-template-services-page .sv-faq__call:hover { background: var(--sv-green); color: #fff !important; }
.sv-faq__list { border-top: 1px solid var(--sv-line); }
.sv-faq__item { border-bottom: 1px solid var(--sv-line); }
.sv-faq__q { position: relative; display: block; padding: 20px 48px 20px 0; font-size: 18px; line-height: 1.4; font-weight: 700; color: var(--sv-text); cursor: pointer; list-style: none; }
.sv-faq__q::-webkit-details-marker { display: none; }
.sv-faq__q::after { content: ""; position: absolute; right: 4px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--sv-green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%231f7d14' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 1v10M1 6h10'/%3E%3C/svg%3E") center no-repeat; transition: transform .2s; }
.sv-faq__item[open] .sv-faq__q::after { transform: rotate(45deg); }
.sv-faq__q:hover { color: var(--sv-green-dark); }
.sv-faq__a { padding: 0 48px 20px 0; font-size: 16px; line-height: 1.65; color: #3d4a3f; }

/* ---------- калькулятор и другие услуги ---------- */
/* .services-page .container в теме ставит margin: 0 auto !important — перебиваем точнее */
.services-page .container.sv-others { margin-top: 44px !important; margin-bottom: 40px !important; }
.sv-others__title { margin: 0 0 14px; font-size: 22px; font-weight: 700; color: var(--sv-text); }
.page-template-services-page .sv-others__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.page-template-services-page .sv-others__list li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.page-template-services-page .sv-others__list li::before { display: none !important; }
.sv-others__list a {
  display: inline-block; padding: 10px 16px; border: 1px solid var(--sv-line); border-radius: 12px; background: #fff;
  font-size: 15px; font-weight: 600; color: var(--sv-text) !important; text-decoration: none !important; transition: border-color .15s, color .15s;
}
.sv-others__list a:hover { border-color: #bfe3b9; color: var(--sv-green-dark) !important; }

/* ---------- планшет и телефон ---------- */
@media (max-width: 991px) {
  .sv-perks__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-perk:nth-child(3) { padding-left: 0 !important; border-left: 0; }
  .sv-perk:nth-child(n+3) { border-top: 1px solid var(--sv-line); }
  .services-page .container.sv-faq { grid-template-columns: 1fr; gap: 10px; }
  .sv-faq__aside { position: static; }
  .page-template-services-page #wpb-content-root > .vc_section:first-child > .vc_row:first-child { padding: 0 !important; }
  /* фото первого экрана было скрыто на планшете и телефоне — показываем под формой/кнопками */
  .page-template-services-page #wpb-content-root > .vc_section:first-child > .vc_row:first-child > .wpb_column.vc_hidden-xs,
  .page-template-services-page #wpb-content-root > .vc_section:first-child > .vc_row:first-child > .wpb_column.vc_hidden-sm { display: block !important; }
  .page-template-services-page #wpb-content-root > .vc_section:first-child > .vc_row:first-child .service-image { margin: 0 0 26px !important; text-align: center; }
  .page-template-services-page #wpb-content-root > .vc_section:first-child > .vc_row:first-child .service-image img {
    position: static !important; display: block; width: 100%; max-width: 560px; height: auto; max-height: 300px; margin: 0 auto; object-fit: contain;
  }
}
@media (max-width: 767px) {
  .sv-perks__list { grid-template-columns: 1fr; }
  .page-template-services-page .sv-perk, .page-template-services-page .sv-perk + .sv-perk { padding: 16px 0 !important; border-left: 0; }
  .sv-perk + .sv-perk { border-top: 1px solid var(--sv-line); }
  .services-page .container.sv-steps { margin-top: 40px !important; }
  .page-template-services-page .services-page h2.sv-steps__title,
  .page-template-services-page .services-page h2.sv-faq__title { font-size: 24px; margin-bottom: 18px !important; }
  .sv-steps__list { grid-template-columns: 1fr; gap: 22px; }
  .page-template-services-page .sv-step { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; }
  .sv-step__num { grid-row: span 2; margin: 0; font-size: 48px; }
  .sv-step:not(:last-child)::after { display: none; }
  .services-page .container.sv-faq { margin-top: 44px !important; }
  .sv-faq__lead { margin-top: -6px !important; }
  .sv-faq__q { font-size: 16px; padding: 16px 40px 16px 0; }
  .sv-faq__a { padding-right: 0; font-size: 15px; }
  .page-template-services-page .sv-videos { margin-top: 30px; padding: 20px 16px; border-radius: 20px; }
  .sv-videos__head { flex-direction: column; gap: 6px; margin-bottom: 16px; }
  .page-template-services-page #wpb-content-root .vc_section .sv-videos h2.sv-videos__title { font-size: 23px; }
  .sv-videos__grid { grid-template-columns: 1fr; gap: 14px; }
  .sv-video { border-radius: 12px; }
  .page-template-services-page #wpb-content-root > .vc_section:first-child > .vc_row:first-child { padding: 0 !important; }
  .page-template-services-page #wpb-content-root > .vc_section:first-child > .vc_row:first-child .vc_column-inner { padding-left: 0 !important; padding-right: 0 !important; }
  .page-template-services-page #wpb-content-root > .vc_section:first-child > .vc_row:first-child h1 { font-size: 30px; }
  .page-template-services-page #wpb-content-root > .vc_section:first-child > .vc_row:first-child .sub-heading { font-size: 17px; }
  .page-template-services-page #wpb-content-root > .vc_section:first-child > .vc_row:first-child .service-image { margin-bottom: 16px !important; }
  .page-template-services-page #wpb-content-root > .vc_section:first-child > .vc_row:first-child .service-image img { max-height: 220px; }
  .page-template-services-page #wpb-content-root > .vc_section:not(:first-child) h2 { font-size: 24px; }
  .page-template-services-page #wpb-content-root > .vc_section:not(:first-child) h3 { font-size: 19px; }
  .page-template-services-page #wpb-content-root > .vc_section:not(:first-child) blockquote { padding: 16px 16px 16px 58px !important; }
  .page-template-services-page #wpb-content-root > .vc_section:not(:first-child) blockquote::before { left: 16px !important; top: 16px !important; }
  .page-template-services-page #wpb-content-root > .vc_section:first-child .vc_message_box { padding: 16px 16px 16px 58px !important; }
}
