/* ==========================================================================
   Доработки kond-krasnodar.ru (по образцу pogreb-plastikovyj.ru)
   Подключается после rest.css, поэтому переопределяет старые правила.
   ========================================================================== */

/* ---------- Кнопка «Меню» в рамке + всплывающее меню ---------- */
.header__burger:before{
  border:2px solid var(--accent,#ffc90e) !important;
  color:#111 !important;
  border-radius:10px !important;
  padding:6px 14px !important;
  font-weight:600;
  background:#fff;
}
.header__burger:hover:before,
.header__burger.-active:before{background:var(--accent,#ffc90e) !important;color:#000 !important}
.header__burger:focus-visible{outline:3px solid rgba(255,201,14,.45);outline-offset:3px;border-radius:10px}

@media screen and (min-width:768px){
  .header__links{
    left:19% !important;
    top:calc(100% - 4px);
    display:grid;
    grid-template-columns:repeat(2,minmax(170px,auto));
    gap:.35rem 1.6rem;
    padding:1.1rem 1.4rem;
    border:2px solid var(--accent,#ffc90e);
    border-radius:14px;
    box-shadow:0 18px 40px rgba(0,0,0,.08);
    opacity:0;
    visibility:hidden;
    transform:translateY(-8px);
    transition:opacity .2s ease,transform .2s ease,visibility 0s linear .2s;
  }
  /* невидимый «мостик», чтобы меню не закрывалось, пока курсор идёт от кнопки к меню */
  .header__links::before{content:"";position:absolute;left:0;right:0;top:-18px;height:18px}
  .header__links.-active{
    opacity:1;
    visibility:visible;
    transform:none;
    transition:opacity .2s ease,transform .2s ease,visibility 0s;
  }
  .header__link{padding:.3rem 0}
}

/* ---------- Контейнер (SEO-текст) ---------- */
.seo-shell{margin-top:0;margin-bottom:clamp(40px,5vw,70px)}
.seo-frame{
  position:relative;
  width:100%;
  max-width:920px;
  margin:0 auto;
  border:2px solid var(--accent,#ffc90e);
  border-radius:12px;
  background:#fff;
  overflow:hidden;
  transition:max-height .45s ease;
}
.seo-frame.is-collapsed{max-height:320px}
.seo-frame.is-expanded{max-height:none}
.seo-frame.is-collapsed::after{
  content:"";
  position:absolute;left:0;right:0;bottom:0;height:130px;
  pointer-events:none;
  background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 58%,#fff 100%);
  z-index:1;
}
.seo-frame__body{padding:clamp(14px,3vw,24px) clamp(12px,3vw,24px) 78px}
.seo-frame__body .ac-lead p{margin-bottom:0}
.seo-frame__body .ac-repair-article{padding:0}
.seo-frame__body .ac-repair-article > h2:first-child{margin-top:0;text-align:center;font-size:clamp(21px,3.6vw,28px);font-weight:800}
.seo-toggle{
  position:absolute;left:50%;bottom:18px;z-index:3;
  transform:translateX(-50%);
  min-width:210px;padding:13px 30px;
  border:0;border-radius:60px;
  background:var(--accent,#ffc90e);color:#000;
  font:700 16px/1.15 Inter,"Segoe UI",Arial,sans-serif;
  cursor:pointer;
  box-shadow:0 8px 22px rgba(0,0,0,.08);
  transition:transform .2s ease,box-shadow .2s ease;
}
.seo-toggle:hover{transform:translateX(-50%) translateY(-2px);box-shadow:0 14px 32px rgba(231,178,42,.24)}
.seo-toggle:focus-visible{outline:3px solid rgba(255,201,14,.35);outline-offset:3px}

/* перелинковка внутри контейнера */
.seo-related-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:22px auto 0;max-width:820px}
.seo-related-links a{
  display:inline-flex;align-items:center;min-height:38px;padding:8px 13px;
  border:1px solid var(--accent,#ffc90e);border-radius:12px;background:#fff;
  font-weight:700;font-size:14px;line-height:1.2;text-decoration:none !important;
  transition:background .2s ease,transform .2s ease;
}
.seo-related-links a:hover{background:rgba(255,201,14,.18);transform:translateY(-1px)}

/* ---------- Подкатегории: равномерно на всю ширину, без серого фона ---------- */
.kartochki__wrapper{
  background:#fff !important;
  border-top:1px solid rgba(255,201,14,.25);
  border-bottom:1px solid rgba(255,201,14,.25);
  padding:22px 0 !important;
  margin-bottom:2.5rem;
}
.kartochki__wrapper .kartochki{
  display:flex !important;
  flex-wrap:wrap;
  gap:14px;
  max-height:none !important;
  overflow:visible !important;
}
.kartochki__wrapper .kartochki__elem{
  /* 4 в ряд; неполный последний ряд растягивается на всю ширину */
  flex:1 1 calc(25% - 14px);
  min-width:250px;
  display:flex;flex-direction:column;gap:10px;
  padding:14px !important;
  background:#fff !important;
  border:2px solid var(--accent,#ffc90e) !important;
  border-radius:16px !important;
  box-shadow:0 6px 16px rgba(0,0,0,.035);
}
.kartochki__cat{display:flex;align-items:center;gap:10px}
.kartochki__cat img{width:40px !important;height:40px !important;object-fit:contain;margin:0 !important;flex-shrink:0}
.kartochki__name{font-weight:800;font-size:16px;line-height:1.2;flex-grow:1}
.kartochki__group{display:block;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#8a7a3a;margin-bottom:2px}
.kartochki__count{flex-shrink:0;min-width:28px;height:24px;padding:0 7px;border-radius:12px;background:#fff6cc;font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.kartochki__wrapper .kartochki__sub{
  display:flex;flex-wrap:wrap;gap:6px;
  max-height:170px;overflow-y:auto;padding-right:4px;
  scrollbar-width:thin;scrollbar-color:var(--accent,#ffc90e) #f3f3f3;
}
.kartochki__wrapper .kartochki__sub_elem{
  display:inline-flex;align-items:center;min-height:28px;
  padding:4px 10px !important;
  border-radius:999px !important;
  background:#fffbe8;
  border:1px solid rgba(255,201,14,.55) !important;
  color:#222;font-size:13px;line-height:1.25;text-decoration:none;
  transition:background .2s ease,border-color .2s ease;
}
.kartochki__wrapper .kartochki__sub_elem:hover{background:var(--accent,#ffc90e) !important;border-color:var(--accent,#ffc90e) !important}
.kartochki__wrapper .kartochki__sub_elem.-current{background:#111;color:#fff;border-color:#111 !important;cursor:default}
@media screen and (max-width:1199px){.kartochki__wrapper .kartochki__elem{flex-basis:calc(33.333% - 14px)}}
@media screen and (max-width:767px){
  /* на телефоне — компактная горизонтальная лента групп с прокруткой */
  .kartochki__wrapper{padding:14px 0 !important}
  .kartochki__wrapper .kartochki{flex-wrap:nowrap !important;gap:10px;overflow-x:auto !important;scroll-snap-type:x mandatory;padding-bottom:8px;scrollbar-width:thin;scrollbar-color:var(--accent,#ffc90e) #f3f3f3}
  .kartochki__wrapper .kartochki__elem{flex:0 0 84%;min-width:0;scroll-snap-align:start}
  .kartochki__wrapper .kartochki__sub{max-height:150px}
}

/* ---------- Панель фильтров и сортировки: в один ряд ---------- */
.catalog-tools{margin:0 auto 28px}
.catalog-filter-panel{
  display:grid;
  grid-template-columns:repeat(5,minmax(140px,1fr)) auto;
  gap:12px;
  padding:16px 18px;
  border:2px solid var(--accent,#ffc90e);
  border-radius:14px;
  background:linear-gradient(180deg,#fffef8 0%,#fff9df 100%);
  box-shadow:0 8px 24px rgba(0,0,0,.04);
  align-items:end;
}
.catalog-filter-item{min-width:0}
.catalog-filter-item label{display:block;margin:0 0 7px 4px;font-size:13px;line-height:1.2;font-weight:700;color:#252525}
.catalog-filter-select{
  width:100%;height:46px;padding:0 34px 0 14px;
  border:1px solid #e7dfbf;border-radius:10px;background:#fff;color:#111;
  font:inherit;outline:none;cursor:pointer;text-overflow:ellipsis;
}
.catalog-filter-select:focus{border-color:var(--accent,#ffc90e);box-shadow:0 0 0 3px rgba(255,201,14,.2)}
.catalog-filter-reset{
  height:46px;padding:0 22px;
  border:2px solid var(--accent,#ffc90e);border-radius:10px;
  background:#fff;color:#111;font-weight:700;cursor:pointer;transition:.2s ease;
}
.catalog-filter-panel.-filtered .catalog-filter-reset{background:var(--accent,#ffc90e)}
.catalog-filter-reset:hover{transform:translateY(-1px);box-shadow:0 6px 14px rgba(255,201,14,.22)}
.catalog-filter-result{min-height:22px;padding:9px 4px 0;color:#666;font-size:13px;line-height:1.35}
.catalog-empty{padding:24px;text-align:center;border:1px dashed var(--accent,#ffc90e);border-radius:14px;margin-bottom:24px}
.catalog-empty__reset{margin-left:8px;border:0;background:var(--accent,#ffc90e);border-radius:8px;padding:6px 12px;font-weight:700;cursor:pointer}
@media screen and (max-width:1199px){
  .catalog-filter-panel{grid-template-columns:repeat(3,minmax(150px,1fr))}
  .catalog-filter-reset{width:100%}
}
@media screen and (max-width:767px){
  .catalog-filter-panel{grid-template-columns:1fr 1fr;padding:12px;gap:10px}
  .catalog-filter-reset{grid-column:1/-1}
}

/* ---------- Карточки: рамки и цена ---------- */
.products__elem{
  border:2px solid var(--accent,#ffc90e) !important;
  border-radius:18px !important;
  background:#fff !important;
  box-shadow:0 8px 20px rgba(0,0,0,.04);
  transition:box-shadow .2s ease,transform .2s ease;
}
.products__elem:hover{box-shadow:0 14px 30px rgba(0,0,0,.08);transform:translateY(-2px)}
a.products__link[href^="/"]:hover{text-decoration:underline;text-underline-offset:4px}
.products__price_box{display:flex;flex-direction:column;align-items:center;gap:12px}
.products__price_text{font-size:1.7rem;font-weight:800;white-space:nowrap}
.products__order{
  display:inline-block;padding:12px 34px;border-radius:60px;
  background:var(--accent,#ffc90e);color:#000;font-weight:700;transition:.2s ease;
}
.products__order:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(231,178,42,.3)}

/* ---------- Акция: рамка у перечня слов ---------- */
.akcii__text{
  border:2px solid var(--accent,#ffc90e) !important;
  border-radius:12px !important;
  padding:18px !important;
  background:#fff !important;
  gap:.6rem !important;
}
.akcii__text a{
  display:inline-flex;align-items:center;justify-content:center;
  width:100%;min-height:34px;padding:4px 8px;
  border:1px solid rgba(255,201,14,.6);border-radius:10px;
  text-decoration:none !important;font-size:14px;text-align:center;
  transition:background .2s ease;
}
.akcii__text a:hover{background:rgba(255,201,14,.2)}

/* ---------- FAQ внизу страницы ---------- */
.faq-block{margin-left:auto;margin-right:auto}
.faq-block .faq-head{text-align:center;margin:0 auto 34px;max-width:900px}
.faq-block .faq-head h2{margin:0 0 10px;font-size:clamp(24px,4vw,38px);line-height:1.15;font-weight:800;text-transform:uppercase}
.faq-block .faq-head p{margin:0;color:var(--gray,#777);font-size:clamp(14px,2vw,17px);line-height:1.5}
.faq-block .faq-list{width:100%;margin:0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}
.faq-block details{
  margin:0;width:100%;background:#f7f7f7;
  border:1px solid var(--borderColor,#e8e8e8);border-radius:12px;overflow:hidden;
  transition:border-color .25s ease,box-shadow .25s ease,background .25s ease;
}
.faq-block details:hover{border-color:var(--accent,#ffc90e)}
.faq-block details[open]{background:#fff;border-color:var(--accent,#ffc90e);box-shadow:0 10px 30px rgba(0,0,0,.05)}
.faq-block summary{
  position:relative;display:flex;align-items:center;min-height:104px;
  padding:20px 70px 20px 22px;cursor:pointer;list-style:none;
  font-size:clamp(15px,2.2vw,17px);line-height:1.35;font-weight:700;color:#111;
}
.faq-block summary::-webkit-details-marker{display:none}
.faq-block details[open] summary{background:rgba(255,201,14,.12)}
.faq-block summary::after{
  content:"";position:absolute;right:20px;top:50%;transform:translateY(-50%);
  width:34px;height:34px;box-sizing:border-box;
  border:2px solid var(--accent,#ffc90e);border-radius:10px;background-color:#fff;
  background-image:linear-gradient(#111,#111),linear-gradient(#111,#111);
  background-position:center,center;background-size:14px 2px,2px 14px;background-repeat:no-repeat;
}
.faq-block details[open] summary::after{background-color:var(--accent,#ffc90e);background-image:linear-gradient(#111,#111);background-size:14px 2px}
.faq-block .faq-answer{padding:16px 22px 20px;border-top:1px solid #eee;color:#444;font-size:15px;line-height:1.65}
@media (max-width:1023px){.faq-block .faq-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}}
@media (max-width:640px){
  .faq-block .faq-list{grid-template-columns:1fr;gap:12px}
  .faq-block summary{min-height:74px;padding:16px 60px 16px 16px}
  .faq-block summary::after{right:14px;width:30px;height:30px}
}

/* ---------- 152-ФЗ: галочка согласия ---------- */
.politica__label{
  display:flex;align-items:flex-start;gap:.55rem;margin-top:.6rem;
  cursor:pointer;font-style:normal;text-align:left;
  font-size:.85rem;line-height:1.3;color:var(--gray,#666);
}
.politica__check{flex:none;width:18px;height:18px;margin:1px 0 0;accent-color:#ffc90e;cursor:pointer}
.politica__label a{text-decoration:underline}
.politica__label.-error{color:#d32f2f}
.politica__label.-error .politica__check{outline:2px solid #d32f2f;outline-offset:2px}
.quiz__text_content .politica__label{margin-bottom:.5rem}

/* ---------- Cookie-плашка ---------- */
.cookie-banner{
  left:50% !important;bottom:16px !important;
  width:calc(100% - 32px) !important;max-width:980px;
  transform:translateX(-50%);
  background:#1f1f1f !important;border-radius:14px;
  padding:16px 20px !important;gap:18px;
  box-shadow:0 18px 40px rgba(0,0,0,.25);line-height:1.45;
}
.cookie-banner a{color:#ffc90e !important;margin:0 !important}
.cookie-banner button{
  flex-shrink:0;background:#ffc90e !important;color:#000 !important;
  border-radius:60px !important;padding:10px 24px !important;font-weight:700;
}
@media (max-width:600px){.cookie-banner{flex-direction:column;align-items:stretch !important;bottom:8px !important;width:calc(100% - 16px) !important}}

/* ---------- Служебные страницы ---------- */
.legal-page{padding-top:7rem}
.legal{max-width:960px;margin:0 auto;line-height:1.6;color:#222}
.legal h1{font-size:2rem;line-height:1.2;margin:0 0 1.2rem;font-weight:800}
.legal h2{font-size:1.25rem;margin:2rem 0 .75rem;font-weight:700}
.legal p{margin:0 0 .75rem}
.legal ol,.legal ul{margin:0 0 .75rem 1.4rem;list-style:decimal}
.legal ul{list-style:disc}
.legal li{margin:0 0 .35rem}
.legal a{text-decoration:underline}
.legal__crumbs{font-size:.9rem;color:#777;margin-bottom:1rem}
.legal__operator{margin-top:2.5rem;padding:18px 20px;border:2px solid #ffc90e;border-radius:12px;background:#fff}
.legal__operator p{margin:0 0 .4rem}
.legal__links{margin-top:1.5rem;display:flex;flex-wrap:wrap;gap:.6rem 1.2rem}
@media (max-width:767px){.legal-page{padding-top:3.5rem}.legal h1{font-size:1.5rem}}

/* Условия выезда под списком городов */
.vyezd__terms{grid-column:1/-1;margin-top:1.2rem;padding:12px 16px;border:2px solid var(--accent,#ffc90e);border-radius:12px;background:#fffdf3;line-height:1.5}
.vyezd__terms a{text-decoration:underline;font-weight:600}
.vyezd__content{flex-wrap:wrap}
.vyezd__terms{flex:0 0 100%;width:100%;order:3;margin-top:1.5rem}

/* Вакансии: рамка стандартного жёлтого цвета, как у остальных блоков */
.vakancii__warning{border:2px solid var(--accent,#ffc90e) !important;border-radius:12px}

/* Раздел «одной карточкой»: подписи групп внутри карточки */
.kartochki__subcap{flex-basis:100%;margin:6px 0 0;font-size:12px;font-weight:700;color:#8a7a3a;text-transform:uppercase;letter-spacing:.03em}
.kartochki__subcap:first-child{margin-top:0}
