/*
 * Единая сетка сайта (UA = RU, копия в 100pidpysnykiv.com.ru/public/theme/seguidores/assets/css/design.css).
 * Подключается ПОСЛЕДНЕЙ в base.html.twig. Описание и таблица значений: DESIGN.md в корне проекта.
 * Префикс "body" нужен, чтобы перебить и style.min.css, и <style>-блоки внутри шаблонов (они грузятся позже).
 * Кнопки и метки-«таблетки» не трогаем.
 */
:root{
  --r-card:12px;      /* карточки, большие плашки */
  --r-inner:8px;      /* поля, чипы, плашки и кнопки-карточки внутри карточек */
  --gap:24px;         /* между карточками подряд */
  --pad:30px;         /* внутри карточки */
}
@media (max-width:767px){
  :root{--gap:16px;--pad:20px}
}

/* ===== Скругления: карточки 12 ===== */
body .service-info,body .buy-info,body .buy-form,body .card-review,body .card-feature,
body .services,body .services2,body .best-services-grid .services2,body .info-article,body .calc__form,
body .faq__item,body .advantages__item,body .sbx-card,body .hub-pb,body .lc-promo,
body .ct-card,body .ftv2__tool,body .co-card,body .co-split,body .co-tile,body .co-checkout,body .co-paybar,
body .hero-top__left,body .hero-top__right img,body .hero-pick,body .all-services-grid .services,body .bento__i{
  border-radius:var(--r-card)
}
@media (max-width:767px){ body .info-article{border-radius:0} }  /* статья на телефоне во всю ширину, как было */
body .co-entry{border-radius:var(--r-card) var(--r-card) 0 0}

/* ===== Скругления: элементы внутри карточек 8 ===== */
body .input-style,body .select,body .buy-form .input-style,body .buy-form .input-card,body .fqm2-card,
body .buy-form .nice-select,body .radio-payment__content,body .radio-payment__main,body .fq-sel,body .fq-top,
body .co-inp,body .co-qbox,body .hs-delay,body .sbx-emb,body .info-article__content table,
body .hero-pick__btn,body .hero-pick__cart,body .bento__ic,body .best-services-grid .services2__btn{
  border-radius:var(--r-inner)
}

/* ===== Отступы между карточками на странице услуги: 24 / 16 ===== */
body .service-info{margin-bottom:var(--gap)}
body .tabs-style_mb_30{margin-bottom:var(--gap)}
body .hub-pb{margin-top:var(--gap)}
body .section-buy{padding-top:var(--gap)}
body .lc-promo{margin:0 0 var(--gap)}
@media (max-width:991px){ body .buy__right{margin-bottom:var(--gap)} }

/* ===== Внутренний отступ карточек 30 / 20 ===== */
body .service-info,body .buy-info{padding:var(--pad)}
body .card-review{padding:var(--pad)}
body .hub-pb{padding:24px var(--pad)}
body .lc-promo{padding:24px var(--pad)}
@media (max-width:767px){ body .hub-pb,body .lc-promo{padding:var(--pad)} }

/* ===== Шрифты =====
   H1 44/32 · H2 32/26 · H3 24/20 · H4 (заголовок карточки) 20/17
   Лид 18/16 · Текст 16/15 · Текст в карточке 15/14 · Мелкий 13 */
body .h1{font-size:44px}
body .h2,body .fq-head__title{font-size:32px}
body .h3,body .info-article h2,body .services__title,body .services2__title{font-size:24px}
body .card-feature__title,body .calc__item-title,body .faq__head,body .sbx-ttl,body .hub-pb__title,
body .lc-promo__t,body .info-article h3{font-size:20px}
body .service-info__text,body .hero-top__text,body .calc__text{font-size:18px}
body .card-review,body .info-article,body .buy-info,body .calc__item-text,body .faq__content{font-size:16px}
body .hub-pb__text,body .lc-promo__d,body .lc-promo__more{font-size:15px}
body .sbx-feat,body .co-entry,body .hs-box{font-size:14px}
body .hs-note,body .sbx-foot{font-size:13px}

@media (max-width:991px){
  body .h1{font-size:36px}
  body .h2,body .fq-head__title{font-size:28px}
}
@media (max-width:767px){
  body .h1{font-size:32px}
  body .h2,body .fq-head__title{font-size:26px}
  body .h3,body .info-article h2,body .services__title,body .services2__title{font-size:20px}
  body .card-feature__title,body .calc__item-title,body .faq__head,body .sbx-ttl,body .hub-pb__title,
  body .lc-promo__t,body .info-article h3{font-size:17px}
  body .service-info__text,body .hero-top__text,body .calc__text{font-size:16px}
  body .card-review,body .info-article,body .buy-info,body .calc__item-text,body .faq__content{font-size:15px}
  body .hub-pb__text,body .lc-promo__d,body .lc-promo__more{font-size:14px}
}

/* ===== Без стрибка при завантаженні (CLS): каталог і бестселери на ПК розкладає Masonry вже після першої відмальовки,
   до того плитки стоять стовпчиком і потім «стрибають». Показуємо їх, коли розкладені (клас ms-on з script-v2.js);
   якщо скрипт не спрацював, плитки все одно з'являться через 3 с. Телефон (до 767) не чіпаємо: там Masonry немає. ===== */
@media (min-width:768px){
  body .all-services-grid:not(.ms-on)>.all-services-grid__item,
  body .best-services-grid:not(.ms-on)>.best-services-grid__item{visibility:hidden;opacity:0;animation:msFallback 0s linear 3s forwards}
  body .all-services-grid.ms-on>.all-services-grid__item,
  body .best-services-grid.ms-on>.best-services-grid__item{visibility:visible;opacity:1;transition:opacity .25s ease}
}
@keyframes msFallback{to{visibility:visible;opacity:1}}

/* Лендинги послуг (поле toc): блоки igl-. Одна система по DESIGN.md (2026-11-17):
   статья = карточка; все елементи всередині = «внутрішні»: скруглення 8, відступ 20 (тел. 16), проміжок 16 (тел. 12).
   Два види поверхні: плитка (заливка #f5f1ff) і панель (біла, рамка 1px #ece6ff). Таблиці = панель.
   Ритм: блок 24 знизу, H2 секції 56 зверху / 16 знизу, текст 16/1.6, текст у плитці 15/1.5, заголовок плитки 18, дрібне 13. */
.info-article__content:has(.igl-facts){--igl-r:8px;--igl-pad:20px;--igl-gap:16px;--igl-line:#ece6ff;--igl-soft:#f5f1ff}
.info-article__content:has(.igl-facts)>*{margin-top:0;margin-bottom:24px}
.info-article__content:has(.igl-facts)>h2{font-size:24px;line-height:1.3;margin:56px 0 16px}
.info-article__content:has(.igl-facts)>h2:first-child{margin-top:0}
.info-article__content:has(.igl-facts)>p{line-height:1.6;margin-bottom:16px}
.info-article__content:has(.igl-facts)>p+:not(p):not(h2){margin-top:8px}
.info-article__content:has(.igl-facts)>ul:not([class]){margin-bottom:24px}
.info-article__content:has(.igl-facts)>ul:not([class]) li{line-height:1.6;margin-bottom:6px}
.info-article__content:has(.igl-facts) p a{color:#7a4af7}
.igl-lead{font-size:18px;line-height:1.5;color:#667198}

/* плитки */
.igl-facts,.igl-stats,.igl-cards,.igl-guar{display:grid;gap:var(--igl-gap)}
.igl-facts{grid-template-columns:repeat(4,1fr)}
.igl-facts.igl-facts_3,.igl-stats,.igl-cards{grid-template-columns:repeat(3,1fr)}
.igl-fact,.igl-stat{background:var(--igl-soft);border-radius:var(--igl-r);padding:var(--igl-pad)}
.igl-fact b,.igl-col h4,.igl-card h4,.igl-chart h4{display:block;font-size:18px;line-height:1.3;font-weight:700;color:#000;margin:0 0 8px}
.igl-fact span,.igl-stat span{display:block;font-size:15px;line-height:1.5;color:#667198}
.igl-stat b{display:block;font-size:32px;line-height:1.1;color:#7a4af7;font-weight:800;margin-bottom:8px}

/* панелі */
.igl-col,.igl-card,.igl-chart{background:#fff;border:1px solid var(--igl-line);border-radius:var(--igl-r);padding:var(--igl-pad)}
.igl-card{display:flex;flex-direction:column}
.igl-card .igl-tag{align-self:flex-start;font-size:13px;font-weight:700;color:#7a4af7;background:var(--igl-soft);border-radius:100px;padding:4px 12px;margin-bottom:12px}
.igl-card p{font-size:15px;line-height:1.5;margin:0 0 8px!important}
.igl-card p:last-child{margin-bottom:0!important}
.igl-card a,.igl-note a,.igl-src a,.igl-links a,.igl-ev a{color:#7a4af7}

/* гарантія: акцентна плитка + дві панелі */
.igl-guar{grid-template-columns:180px 1fr 1fr}
.igl-big{background:#c7f74a;border-radius:var(--igl-r);padding:var(--igl-pad);display:flex;flex-direction:column;justify-content:center;color:#141a06}
.igl-big b{font-size:64px;line-height:1;font-weight:800}
.igl-big span{font-size:15px;font-weight:600;margin-top:8px}
.igl-col ul{margin:0!important;padding:0;list-style:none}
.igl-col li{display:block!important;position:relative;padding-left:22px;margin:0 0 8px;font-size:15px;line-height:1.5}
.igl-col li:last-child{margin-bottom:0}
.info-article__content .igl-col li::before{background-image:none;margin:0;content:"";position:absolute;left:2px;top:8px;width:8px;height:8px;border-radius:50%;background:#b4e730}
.info-article__content .igl-col_no li::before{background:#f2b8b5}

/* таблиці = панель */
.info-article__content table.igl-tbl{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--igl-line);border-radius:var(--igl-r);box-shadow:none;overflow:hidden;background:#fff}
.igl-tw{background:#fff;border:1px solid var(--igl-line);border-radius:var(--igl-r);overflow-x:auto}
.info-article__content .igl-tw table.igl-tbl{border:0;border-radius:0;margin:0!important}
.info-article__content .igl-tbl th{background:var(--igl-soft)!important;color:#000!important;font-size:14px;font-weight:700;padding:14px 20px;text-align:left;line-height:1.4}
.info-article__content .igl-tbl td{background:#fff!important;font-size:15px;line-height:1.5;padding:14px 20px;color:#667198;border-top:1px solid var(--igl-line)}
.info-article__content .igl-tbl tbody td:first-child{font-weight:700;color:#000}
.info-article__content .igl-tbl tr.highlight td{background:#f4fbe2!important}
.info-article__content .igl-tbl td.price{color:#7a4af7;font-weight:700}
.info-article__content td.igl-yes{color:#3f7d00;font-weight:600}
.info-article__content td.igl-no{color:#b42318;font-weight:600}

/* графік */
.igl-chart .igl-sub{font-size:13px;color:#667198;margin:-4px 0 16px}
.igl-bar{display:grid;grid-template-columns:110px 1fr 56px;gap:12px;align-items:center;margin:0 0 12px;font-size:14px}
.igl-bar span{color:#000;font-weight:600}
.igl-bar i{display:block;height:20px;border-radius:var(--igl-r);background:#7a4af7;min-width:6px}
.igl-bar_g i{background:#b4e730}
.igl-bar em{font-style:normal;font-weight:700;color:#000;text-align:right}
.igl-src{font-size:13px;color:#667198;margin:16px 0 0}

/* хронологія */
.igl-time{position:relative;padding-left:28px}
.igl-time:before{content:"";position:absolute;left:7px;top:8px;bottom:8px;width:2px;background:var(--igl-line)}
.igl-ev{position:relative;margin:0 0 16px}
.igl-ev:last-child{margin-bottom:0}
.igl-ev:before{content:"";position:absolute;left:-26px;top:5px;width:14px;height:14px;border-radius:50%;background:#7a4af7;box-shadow:0 0 0 4px var(--igl-soft)}
.igl-ev b{display:block;color:#000;font-size:15px;line-height:1.5;font-weight:700}
.igl-ev span{display:block;font-size:15px;line-height:1.5;color:#667198}

/* списки, примітки, кнопки */
.igl-links{padding:0;list-style:none}
.igl-links li{display:block!important;margin:0 0 12px;padding-left:24px;position:relative;line-height:1.6}
.igl-links li:last-child{margin-bottom:0}
.info-article__content .igl-links li::before{background-image:none;width:auto;height:auto;margin:0;content:"→";position:absolute;left:0;color:#7a4af7;font-weight:700}
.igl-links li b{color:#000}
.info-article__content:has(.igl-facts)>.igl-note,.igl-note,.igl-upd{font-size:13px;line-height:1.5;color:#667198}
.info-article__content:has(.igl-facts)>:not(p)+.igl-note{margin-top:-12px}
.igl-cta{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.igl-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 28px;border-radius:100px;background:#7a4af7;color:#fff!important;font-weight:700;font-size:16px;text-decoration:none}
.igl-btn:hover{background:#6236d8}
.info-article__content a.igl-btn{text-decoration:none}
.igl-btn_ghost{background:var(--igl-soft);color:#7a4af7!important}
.igl-btn_ghost:hover{background:#ece6ff}

@media(max-width:991px){.igl-facts,.igl-facts.igl-facts_3{grid-template-columns:1fr 1fr}.igl-guar{grid-template-columns:1fr 1fr}.igl-big{grid-column:1/-1;flex-direction:row;align-items:baseline;gap:12px}.igl-cards{grid-template-columns:1fr}}
@media(max-width:767px){
.info-article__content:has(.igl-facts){--igl-pad:16px;--igl-gap:12px}
.info-article__content:has(.igl-facts)>*{margin-bottom:20px}
.info-article__content:has(.igl-facts)>h2{font-size:20px;margin-top:40px}
.info-article__content:has(.igl-facts)>p{margin-bottom:12px}
.igl-lead{font-size:16px}
.igl-stats{grid-template-columns:1fr}
.igl-fact b,.igl-col h4,.igl-card h4,.igl-chart h4{font-size:17px}
.igl-fact span,.igl-stat span,.igl-col li,.igl-card p,.igl-ev span,.igl-ev b{font-size:14px}
.igl-stat b{font-size:26px}
.igl-guar{grid-template-columns:1fr!important}.igl-big b{font-size:48px}
.igl-bar{grid-template-columns:72px 1fr 44px;gap:8px;font-size:13px}
.info-article__content table.igl-tbl{display:table;table-layout:auto;white-space:normal}
.info-article__content .igl-tbl th,.info-article__content .igl-tbl td{padding:10px 8px!important;font-size:13px;white-space:normal!important;min-width:0!important;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}
.info-article__content .igl-tbl td.price{white-space:nowrap!important}
}
@media(max-width:420px){.igl-facts,.igl-facts.igl-facts_3{grid-template-columns:1fr}}
/* Заголовок блока покупки: длинный делим на ровные строки, значок или одно слово не висит отдельной строкой (2026-11-21) */
.buy-info__title{text-wrap:balance}
