/* Каталог на услугите: /uslugi, /uslugi/<cat>[/<sub>][/<city>], /gradove, /ceni */
.ct-crumbs{font-size:14px;color:var(--muted);margin:0 0 14px;display:flex;flex-wrap:wrap;gap:6px}
.ct-crumbs a{color:var(--muted)}
.ct-crumbs span[aria-hidden]{opacity:.5}

/* Хиро */
.ct-hero{background:var(--bg);padding:34px 0 40px}
.ct-hero-in{display:grid;grid-template-columns:1.1fr 1fr;gap:36px;align-items:center}
.ct-hero h1{margin-bottom:12px}
.ct-hero .lead{margin-bottom:18px}
.ct-hero-img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:var(--r-lg);display:block;background:var(--mint)}
.ct-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;margin:0 0 18px}
.ct-price b{font-size:20px;color:var(--green)}
.ct-price .small{color:var(--muted)}
.ct-cta{display:flex;flex-wrap:wrap;gap:10px}
.ct-cta .btn{min-height:48px}
.ct-pill{display:inline-flex;align-items:center;gap:6px;background:var(--mint);color:var(--green-d);font-weight:700;font-size:13px;
  padding:5px 12px;border-radius:999px;margin-bottom:12px}
.ct-pill-warn{background:var(--warn-bg);color:var(--warn)}

/* Търсачка на /uslugi */
.ct-search{position:relative;max-width:560px;margin:18px 0 6px}
.ct-search input{width:100%;border:1.5px solid var(--line);font:inherit;color:var(--ink);background:#fff;-webkit-appearance:none;appearance:none;padding:13px 16px 13px 46px;min-height:52px;border-radius:999px;font-size:16px}
.ct-search svg{position:absolute;left:16px;top:50%;transform:translateY(-50%);width:20px;height:20px;color:var(--muted);pointer-events:none}
.ct-empty{display:none;padding:22px;border:1px dashed var(--mint-2);border-radius:var(--r-lg);margin-top:20px;background:var(--bg)}
.ct-empty.show{display:block}

/* Чипове */
.ct-chips{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 0}
.ct-chip{display:inline-flex;align-items:center;min-height:40px;padding:8px 15px;border-radius:999px;background:#fff;border:1.5px solid var(--line);
  color:var(--ink);font-weight:600;font-size:14px}
.ct-chip:hover{border-color:var(--green);color:var(--green);text-decoration:none}
.ct-chip.on{background:var(--green);border-color:var(--green);color:#fff}

/* Секции с категории (директория) */
.ct-dir{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:22px}
.ct-block{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:22px;box-shadow:var(--shadow)}
.ct-block-h{display:flex;gap:12px;align-items:center;margin-bottom:8px}
.ct-block-ic{width:44px;height:44px;border-radius:12px;background:var(--mint);display:grid;place-items:center;font-size:22px;flex:0 0 auto}
.ct-block-ic img{width:26px;height:26px}
.ct-block h2{font-size:19px;margin:0}
.ct-block h2 a{color:var(--dark)}
.ct-block p{font-size:14px;color:var(--muted);margin-bottom:10px}
.ct-block ul{list-style:none;padding:0;margin:0}
.ct-block li{margin:0;border-top:1px solid var(--line)}
.ct-block li a{display:flex;justify-content:space-between;gap:10px;padding:10px 2px;color:var(--ink);font-size:15px;min-height:44px;align-items:center}
.ct-block li a:hover{color:var(--green);text-decoration:none}
.ct-block li a::after{content:"›";color:var(--muted);font-size:18px}
.ct-block .ct-from{font-size:13px;color:var(--green);font-weight:700;margin-top:10px}
.ct-hide{display:none !important}

/* Карти с подуслуги */
.ct-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:20px}
.ct-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--shadow);color:inherit}
.ct-card:hover{text-decoration:none;border-color:var(--mint-2)}
.ct-card img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block;background:var(--mint)}
.ct-card-b{padding:16px 18px 18px;display:flex;flex-direction:column;flex:1}
.ct-card h3{font-size:17px;margin:0 0 6px}
.ct-card p{font-size:14px;color:var(--muted);margin:0 0 12px;flex:1}
.ct-card .ct-go{font-weight:700;color:var(--green);font-size:15px}

/* Популярни */
.ct-pop{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:18px}
.ct-pop a{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:12px 14px;color:var(--ink);min-height:56px}
.ct-pop a:hover{border-color:var(--green);text-decoration:none}
.ct-pop span.e{font-size:22px}
.ct-pop b{display:block;font-size:15px;line-height:1.3}
.ct-pop small{color:var(--muted);font-size:13px}

/* Стъпки */
.ct-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:18px;counter-reset:st}
.ct-step{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:20px}
.ct-step::before{counter-increment:st;content:counter(st);display:grid;place-items:center;width:34px;height:34px;border-radius:50%;
  background:var(--lime);color:var(--dark);font-weight:800;margin-bottom:10px}
.ct-step h3{font-size:17px;margin:0 0 6px}
.ct-step p{font-size:15px;color:var(--muted);margin:0}

/* Включено / цени */
.ct-two{display:grid;grid-template-columns:1.2fr 1fr;gap:28px;align-items:start}
.ct-list{list-style:none;padding:0;margin:0}
.ct-list li{position:relative;padding-left:30px;margin-bottom:10px}
.ct-list li::before{content:"";position:absolute;left:0;top:4px;width:18px;height:18px;border-radius:50%;background:var(--mint)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D7A5F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat}
.ct-pricebox{background:var(--bg);border:1px solid var(--line);border-radius:var(--r-lg);padding:20px}
.ct-pricebox h3{margin-top:0}
.ct-tbl{width:100%;font-size:15px}
.ct-tbl td,.ct-tbl th{padding:9px 6px}
.ct-tbl td:last-child,.ct-tbl th:last-child{text-align:right;white-space:nowrap}
.ct-note{font-size:13px;color:var(--muted);margin-top:10px}

/* Изпълнители */
.ct-taskers{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:18px}
.ct-tk{display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:18px;color:inherit;box-shadow:var(--shadow)}
.ct-tk:hover{text-decoration:none;border-color:var(--mint-2)}
.ct-tk-top{display:flex;gap:12px;align-items:center}
.ct-av{width:52px;height:52px;border-radius:50%;background:var(--mint);color:var(--green-d);display:grid;place-items:center;font-weight:800;flex:0 0 auto;overflow:hidden}
.ct-av img{width:100%;height:100%;object-fit:cover}
.ct-tk b{display:block}
.ct-tk .small{color:var(--muted)}
.ct-tk p{font-size:14px;margin:0;color:var(--ink)}
.ct-tk-meta{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:14px}
.ct-tk-meta .r{color:var(--green);font-weight:700}
.ct-emptystate{background:var(--bg);border:1px dashed var(--mint-2);border-radius:var(--r-lg);padding:24px;margin-top:18px}
.ct-emptystate h3{margin-top:0}

/* FAQ */
.ct-faq{margin-top:16px;border-top:1px solid var(--line)}
.ct-faq details{border-bottom:1px solid var(--line)}
.ct-faq summary{cursor:pointer;list-style:none;padding:16px 36px 16px 0;font-weight:700;color:var(--dark);position:relative;min-height:44px}
.ct-faq summary::-webkit-details-marker{display:none}
.ct-faq summary::after{content:"+";position:absolute;right:6px;top:12px;font-size:24px;color:var(--green);font-weight:400}
.ct-faq details[open] summary::after{content:"–"}
.ct-faq .a{padding:0 0 16px;color:var(--muted)}

/* CTA лента */
.ct-band{background:var(--dark);color:#fff;border-radius:var(--r-lg);padding:30px;display:flex;flex-wrap:wrap;gap:18px;align-items:center;justify-content:space-between;margin-top:40px}
.ct-band h2{color:#fff;margin:0 0 6px;font-size:24px}
.ct-band p{color:#CBD9D0;margin:0}
.ct-band .btn{background:var(--lime);color:var(--dark)}
.ct-band .btn:hover{background:#c9db55;color:var(--dark)}

/* Списък за чакане */
.ct-wait{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:22px;box-shadow:var(--shadow);max-width:560px}
.ct-wait h2,.ct-wait h3{margin-top:0}
.ct-wait form{display:grid;gap:12px}
.ct-wait .ct-roles{display:flex;gap:8px;flex-wrap:wrap}
.ct-wait .ct-roles label{display:flex;align-items:center;gap:8px;font-weight:600;border:1.5px solid var(--line);border-radius:999px;padding:8px 14px;margin:0;cursor:pointer;min-height:44px}
.ct-wait .ct-roles input{accent-color:var(--green);width:18px;height:18px}
.ct-wait .ct-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.ct-msg{font-size:15px;margin:0}
.ct-msg.ok{color:var(--green-d)}
.ct-msg.err{color:var(--err)}

/* Градове */
.ct-cities{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:18px}
.ct-city{display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:18px;color:var(--ink);min-height:96px}
.ct-city:hover{text-decoration:none;border-color:var(--green)}
.ct-city b{font-size:18px;color:var(--dark)}
.ct-city.on{border:2px solid var(--green);background:var(--mint-3)}

/* Ценови пътеводител */
.ct-toc{background:var(--bg);border:1px solid var(--line);border-radius:var(--r);padding:16px 20px;margin:18px 0}
.ct-toc ol{margin:0;padding-left:20px}
.ct-factors{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:12px}
.ct-factor{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:14px 16px;font-weight:600}

@media(max-width:960px){
  .ct-dir,.ct-cards,.ct-taskers{grid-template-columns:1fr 1fr}
  .ct-pop{grid-template-columns:1fr 1fr}
  .ct-cities{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:700px){
  .ct-hero{padding:20px 0 28px}
  .ct-hero-in,.ct-two{grid-template-columns:1fr;gap:20px}
  .ct-hero-img{order:-1;aspect-ratio:16/9}
  .ct-dir,.ct-cards,.ct-taskers,.ct-steps,.ct-factors{grid-template-columns:1fr}
  .ct-pop{grid-template-columns:1fr}
  .ct-cities{grid-template-columns:1fr 1fr}
  .ct-cta .btn{flex:1 1 100%}
  .ct-band{padding:24px}
  .ct-band .btn{width:100%}
}

/* Таблиците с цени на телефон: без хоризонтален скрол */
@media(max-width:520px){
  .ct-tbl{font-size:14px;table-layout:fixed}
  .ct-tbl th{font-size:11px}
  .ct-tbl td,.ct-tbl th{padding:8px 4px;overflow-wrap:anywhere}
  .ct-tbl td:first-child,.ct-tbl th:first-child{width:46%}
  .ct-tbl td:nth-child(2),.ct-tbl th:nth-child(2){width:20%}
  .ct-tbl td:last-child{white-space:normal}
}

/* Подуслуги без собствена снимка — компактни карти */
.ct-cards-sub .ct-card{border-left:4px solid var(--mint-2)}
.ct-cards-sub .ct-card:hover{border-left-color:var(--green)}
@media(max-width:700px){
  .ct-cards-sub{gap:10px}
  .ct-cards-sub .ct-card img{aspect-ratio:21/9}
  .ct-cards-sub .ct-card-b{padding:14px 16px}
}

/* ── Страница на категория: голяма снимка, подуслуги, „Готово в 3 стъпки“ ── */
.cx-hero{position:relative;background:var(--dark);color:#fff;overflow:hidden;text-align:center}
.cx-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cx-hero::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(0deg,rgba(16,40,30,.82),rgba(16,40,30,.55))}
.cx-hero-in{position:relative;z-index:2;padding-top:26px;padding-bottom:64px;max-width:980px}
.cx-hero .ct-crumbs{justify-content:center;margin-bottom:34px}
.cx-hero .ct-crumbs,.cx-hero .ct-crumbs a{color:#D6EADF}
.cx-hero h1{color:#fff;font-size:clamp(30px,4.4vw,50px);margin:10px 0 14px}
.cx-hero .lead{color:#EEF6F1;max-width:820px;margin:0 auto 14px}
.cx-price{color:#D6EADF;margin:0}
.cx-price b{color:var(--lime)}
.cx-main{padding-top:36px}
.cx-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:40px;align-items:start}
.cx-list{display:flex;flex-direction:column;gap:18px;min-width:0}
.cx-item{display:flex;gap:28px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:20px 24px;box-shadow:var(--shadow)}
.cx-img{flex:0 0 150px}
.cx-img img{width:150px;height:150px;border-radius:50%;object-fit:cover;display:block;background:var(--mint)}
.cx-b{min-width:0}
.cx-b h2{font-size:21px;margin:0 0 6px}
.cx-b h2 a{color:var(--dark)}
.cx-b h2 a:hover{color:var(--green);text-decoration:none}
.cx-b p{color:var(--muted);margin:0 0 14px}
.cx-side{position:sticky;top:90px}
.cx-side h2{font-size:19px;margin:0 0 14px}
.cx-side h2+ol{margin-bottom:26px}
.cx-steps{list-style:none;padding:0;margin:0;counter-reset:cx}
.cx-steps li{counter-increment:cx;position:relative;padding-left:44px;margin:0 0 18px}
.cx-steps li::before{content:counter(cx);position:absolute;left:0;top:0;width:28px;height:28px;border-radius:50%;background:var(--dark);color:#fff;font-weight:800;font-size:14px;display:flex;align-items:center;justify-content:center}
.cx-steps b{display:block;color:var(--dark);margin-bottom:3px}
.cx-steps span{color:var(--muted);font-size:15px}
.cx-trust{list-style:none;padding:0;margin:0 0 20px}
.cx-trust li{position:relative;padding-left:26px;margin:0 0 10px;font-size:15px}
.cx-trust li::before{content:"✓";position:absolute;left:0;color:var(--green);font-weight:800}
.cx-side-btn{width:100%}
@media(max-width:960px){
  .cx-grid{grid-template-columns:1fr}
  .cx-side{position:static;background:var(--mint-3);border-radius:var(--r-lg);padding:20px}
}
@media(max-width:600px){
  .cx-hero-in{padding-bottom:40px}
  .cx-hero .ct-crumbs{margin-bottom:20px}
  .cx-item{flex-direction:column;align-items:flex-start;gap:14px;padding:18px}
  .cx-img{flex:none}
  .cx-img img{width:96px;height:96px}
  .cx-b .btn{width:100%}
}
