/*
Theme Name:     ITDK (Kallyas child)
Theme URI:      https://itdk.bg/
Description:    Сайтът на ITDK — дъщерна тема на Kallyas. Дизайнът е тук, страниците се редактират в Zion Builder.
Author:         ИТДК ЕООД
Template:       kallyas
Version:        1.0
Text Domain:    zn_framework
*/

/* Чисто бяло, фини линии, смарагдов акцент. Контраст на текста поне 4.5:1; яркият --signal е само за графики. */
:root { --bg: #ffffff; --bg-2: #f6f7f9; --bg-3: #eceff3; --line: #e1e5ea; --line-2: #c9d0d8; --ink: #0b0f14; --text: #0b0f14; --dim: #525c68; --accent: #06775a; --accent-2: #05604a; --signal: #00c48c; --tint: #eafaf4; --sans: Onest, system-ui, "Segoe UI", sans-serif; --mono: "JetBrains Mono", Consolas, monospace; }
html { scroll-padding-top: 110px; }
body { font-family: var(--sans); color: var(--dim); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
.itz-anchor { display: block; }

/* Ширината: съдържанието се разпъва с екрана, до 1560 px (Kallyas го държи на фиксирана ширина) */
@media (min-width: 1200px) {
  .site-header .container, .zn_section > .container, #footer .container { width: 92%; max-width: 1560px; }
}

/* Хедър */
#header.site-header { box-shadow: 0 1px 0 var(--line); }
.site-header .site-header-top-wrapper.sh--dark, .site-header .site-header-top-wrapper { background: var(--bg-2) !important; }
.site-header .site-header-top-wrapper, .site-header .site-header-top { background: var(--bg-2); }
.site-header .site-header-top-wrapper { border-bottom: 1px solid var(--line); }
.site-header .topnav > li > a { font: 500 12px/34px var(--mono); color: var(--dim); padding: 0 10px; }
.site-header .topnav > li > a:hover { color: var(--text); }
.site-header .topnav .lang-item a { display: inline-flex; align-items: center; gap: 6px; }
.site-header .topnav .lang-item.current-lang > a { color: var(--text); font-weight: 700; }
.site-header .site-logo-img { width: 102px; height: 34px; }
.site-header .main-nav > ul > li > a { font-family: var(--sans); font-weight: 500; font-size: 14px; color: var(--dim); text-transform: none; letter-spacing: 0; }
.site-header .main-nav > ul > li > a:hover, .site-header .main-nav > ul > li.active > a, .site-header .main-nav > ul > li.current-menu-ancestor > a { color: var(--accent); }
.site-header .main-nav ul.sub-menu { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(11, 15, 20, .1); padding: 6px; }
.site-header .main-nav ul.sub-menu li a { font-family: var(--sans); font-size: 14px; color: var(--text); border-radius: 8px; text-transform: none; letter-spacing: 0; }
.site-header .main-nav ul.sub-menu li a:hover { background: var(--bg-2); color: var(--accent); }
.site-header a.ctabutton.btn { padding: 8px 14px; border: 0; border-radius: 7px; background: var(--ink) !important; color: #fff; font: 600 14px/1.4 var(--sans); text-transform: none; letter-spacing: 0; }
.site-header a.ctabutton.btn:hover { background: var(--accent) !important; }
.site-header .topnav .lang-item img { width: 20px; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(11, 15, 20, .14); }

/* Секциите: Kallyas слага големи отстъпи, тук ги уеднаквяваме */
.zn_section.itz-hero { padding: 56px 0 26px; background: #fff; }
.zn_section.itz-map-sec, .zn_section.itz-stats, .zn_section.itz-head, .zn_section.itz-panes, .zn_section.itz-block, .zn_section.itz-note { padding: 0; background: #fff; }
.zn_section.itz-map-sec { margin-bottom: 36px; }
.zn_section.itz-stats { margin-bottom: 48px; }
.zn_section.itz-head { padding-top: 12px; }
.zn_section.itz-panes { margin-bottom: 48px; }
.zn_section.itz-head + .itz-panes { margin-top: 4px; }
.zn_section.itz-block { margin-bottom: 56px; }
.zn_section.itz-note { margin: -28px 0 48px; }
.zn_section.itz-two { margin-top: -28px; }

/* Заглавия */
.itz-h1 .dn-heading, h1.itz-h1, .itz-h1 h1 { max-width: 1240px; margin: 0 0 18px; font: 700 clamp(34px, 4.2vw, 76px)/1.05 var(--sans); letter-spacing: -.035em; color: var(--text); }
.hl { color: var(--accent); }
.itz-title, .itz-title h2 { margin: 0 0 22px; font: 700 clamp(26px, 3.2vw, 36px)/1.18 var(--sans); letter-spacing: -.025em; color: var(--text); }
.itz-label, .itz-label p, .itz-small, .itz-small p { margin: 0 0 8px; font: 500 13px/1.4 var(--mono); color: var(--accent); }
.itz-sub p { max-width: 860px; margin: 0 0 8px; font-size: 18px; line-height: 1.55; color: var(--dim); }
.itz-crumbs { margin-bottom: 18px; font: 400 13px var(--mono); color: var(--dim); }
.itz-crumbs a { color: var(--accent); }

/* Бутони */
.zn-buttonWrapper { display: inline-block; }
.zn_section a.itz-btn.btn { display: inline-block; margin: 14px 10px 0 0; padding: 11px 18px; border-radius: 7px; font: 600 15px/1.4 var(--sans); text-transform: none; letter-spacing: 0; transition: background .15s; }
.zn_section a.itz-btn--dark.btn { background: var(--ink); border: 1px solid var(--ink); color: #fff; }
.zn_section a.itz-btn--dark.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.zn_section a.itz-btn--ghost.btn { background: transparent; border: 1px solid var(--line-2); color: var(--text); }
.zn_section a.itz-btn--ghost.btn:hover { background: var(--bg-2); color: var(--text); }

/* Картата на връзките */
.map { max-width: 1136px; margin: 0 auto; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background-color: #fff; background-image: radial-gradient(#d3d9e0 1px, transparent 1px); background-size: 22px 22px; }
.map svg { display: block; width: 100%; height: auto; }
.map .sep { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 5 6; }
.map .sep-t { fill: var(--accent); font: 500 13px var(--mono); }
.map .line { fill: none; stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
.map .line.off { stroke: #e6e9ed; stroke-width: 4; }
.map .yours { stroke: var(--signal); stroke-dasharray: 2 13; }
.map .stop { fill: #fff; stroke: var(--ink); stroke-width: 2.5; }
.map .stop.here { fill: var(--signal); stroke-width: 3; }
.map .stop.off { stroke: #c4ccd4; }
.map .chip rect { fill: var(--ink); }
.map .chip.partner rect { fill: #0b5fe0; }
.map .chip.here rect { fill: var(--accent); }
.map .chip.off rect { fill: #c4ccd4; }
.map a:hover .chip rect { fill: var(--accent); }
.map .stn { fill: var(--ink); font: 500 15px var(--sans); text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 5px; }
.map .stn.own { font-weight: 700; font-size: 17px; }
.map .stn.off { fill: #8b95a1; }
.map a:hover .stn { fill: var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 12px 18px; list-style: none; background: #fff; border-top: 1px solid var(--line); font: 500 12px var(--mono); color: var(--dim); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 22px; height: 4px; border-radius: 2px; }
.legend i.k { width: 13px; height: 13px; border-radius: 4px; background: var(--ink); }
.legend i.k.partner { background: #0b5fe0; }
.legend i.k.sys { box-sizing: border-box; border: 2px solid var(--ink); border-radius: 50%; background: #fff; }
.legend i.dash { background: repeating-linear-gradient(90deg, var(--signal) 0 4px, transparent 4px 9px); }
.routes { display: none; margin: 0; padding: 0; list-style: none; background: #fff; }
.routes li { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.routes li:last-child { border-bottom: 0; }
.routes em { display: block; margin-bottom: 8px; font: 500 12px var(--mono); color: var(--dim); }
.routes div { position: relative; padding-left: 20px; }
.routes div::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; background: var(--c); }
.routes a, .routes span, .routes div > b { display: block; position: relative; padding: 3px 0; color: var(--text); }
.routes a::before, .routes span::before, .routes div > b::before { content: ""; position: absolute; left: -19px; top: 9px; width: 9px; height: 9px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; }
.routes a { color: var(--accent); }
.routes .many { position: relative; margin: 0; padding: 3px 0; color: var(--text); line-height: 1.5; }
.routes .many::before { content: ""; position: absolute; left: -19px; top: 9px; width: 9px; height: 9px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; }
.routes .many a, .routes .many span { display: inline; padding: 0; }
.routes .many a::before, .routes .many span::before { content: none; }
.routes b { font-weight: 600; }

/* Големите числа и решетките: редът на Kallyas се превръща в рамка с линии */
.itz-stats .row, .itz-panes .row { display: flex; flex-wrap: wrap; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.itz-stat, .itz-pane { padding: 22px 24px; margin: 0 -1px -1px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.itz-stat-n, .itz-stat-n div { margin: 0; font: 700 clamp(34px, 4.4vw, 50px)/1.05 var(--sans); letter-spacing: -.035em; color: var(--text); white-space: nowrap; }
.itz-stat--long .itz-stat-n, .itz-stat--long .itz-stat-n div { font-size: clamp(36px, 6vw, 68px); color: var(--accent); }
.itz-stat-t p { margin: 6px 0 0; font-size: 14px; line-height: 1.35; color: var(--dim); }
.itz-pane-t, .itz-pane-t h3 { margin: 0 0 6px; font: 600 18px/1.25 var(--sans); letter-spacing: -.01em; color: var(--text); }
.itz-pane-t a { color: inherit; }
.itz-pane-t a:hover { color: var(--accent); }
.itz-pane-p p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--dim); }
.itz-list ul { margin: 0; padding: 0; list-style: none; }
.itz-list li { position: relative; margin-top: 8px; padding-left: 16px; line-height: 1.5; color: var(--dim); }
.itz-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 2px; background: var(--signal); }
.itz-note .col-md-12 { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.itz-note .row { margin: 0; }

/* Редове с продукти и имена */
.itz-rows { border-top: 1px solid var(--line); margin-bottom: 8px; }
a.itz-row { display: grid; grid-template-columns: minmax(200px, 22%) 1fr 24px; gap: 20px; align-items: center; padding: 15px 4px; border-bottom: 1px solid var(--line); color: var(--text); transition: padding .15s, background .15s; }
a.itz-row:hover { background: var(--bg-2); padding-left: 14px; }
.itz-row b { font-size: 17px; font-weight: 600; }
.itz-row span { color: var(--dim); font-size: 15px; }
.itz-row i { font-style: normal; color: var(--accent); text-align: right; }
.itz-int { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 16px 4px; border-bottom: 1px solid var(--line); color: var(--text); }
.itz-int b { font-weight: 600; }
.itz-names { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.itz-names span { padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 6px; font: 400 13px var(--mono); color: var(--text); }
.itz-block .itz-label { margin-top: 26px; }

/* Контакти с формата */
.zn_section.itz-end { padding: 60px 0; background: var(--tint); border-top: 1px solid #c8eddf; }
.itz-end .itz-title { font-size: clamp(28px, 4vw, 44px); line-height: 1.08; margin-bottom: 10px; }
.itz-contacts { margin: 54px 0 0; font-size: 16px; color: var(--text); }
.itz-contacts dt { margin-top: 12px; font: 500 12px var(--mono); color: #38434e; }
.itz-contacts dd { margin: 0; font-weight: 600; }
.itz-contacts a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.itz-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 18px; }
.itz-form label { display: block; margin: 0; font: 500 13px var(--sans); color: var(--text); }
.itz-form .wide { grid-column: 1 / -1; }
.itz-form input[type="text"], .itz-form input[type="email"], .itz-form input[type="tel"], .itz-form textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 7px; background: #fff; font: 400 15px var(--sans); color: var(--text); box-shadow: none; }
.itz-form textarea { height: 110px; }
.itz-form input:focus, .itz-form textarea:focus { border-color: var(--accent); outline: 2px solid rgba(6, 119, 90, .25); }
.itz-form input[type="submit"] { padding: 11px 22px; border: 0; border-radius: 7px; background: var(--ink); color: #fff; font: 600 15px var(--sans); cursor: pointer; }
.itz-form input[type="submit"]:hover { background: var(--accent); }
.itz-consent { font-size: 13px; color: #38434e; }
.itz-consent .wpcf7-list-item { margin: 0; }

/* Партньорството с METRO */
.zn_section.itz-partner-sec { padding: 0; margin-bottom: 20px; background: #fff; }
.itz-partner { display: flex; align-items: center; gap: 20px; padding: 18px 24px; border: 1px solid #c8eddf; border-radius: 12px; background: var(--tint); }
.itz-partner strong { display: block; font: 700 clamp(18px, 2vw, 24px)/1.25 var(--sans); letter-spacing: -.015em; color: var(--text); }
.itz-partner span { display: block; margin-top: 2px; font-size: 15px; color: #38434e; }
.itz-partner-logo { flex: none; padding: 8px 14px; border-radius: 7px; background: #fff; font: 800 18px var(--sans); letter-spacing: .04em; color: var(--text); box-shadow: 0 0 0 1px var(--line-2); }
/* Логото е жълто и прозрачно: върви върху тъмносиния цвят на METRO, както е на техния сайт */
.itz-partner-img { flex: none; box-sizing: content-box; height: 24px; width: auto; padding: 12px 16px; border-radius: 7px; background: #002d72; }
@media (max-width: 620px) { .itz-partner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; } }

/* Страницата „Партньори“ */
a.itz-pcard { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; margin-bottom: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--dim); text-decoration: none; transition: border-color .15s, background .15s; }
a.itz-pcard:hover, a.itz-papp:hover { border-color: var(--accent); background: var(--tint); }
.itz-pcard .itz-ptext { font-size: 15px; line-height: 1.5; color: #38434e; }
.itz-pcard em { font: 500 13px var(--mono); font-style: normal; color: var(--accent); }
.itz-plogo { display: inline-flex; align-items: center; min-height: 40px; }
.itz-plogo img { display: block; width: auto; max-width: 100%; height: 40px; }
.itz-plogo--chip { padding: 10px 14px; border-radius: 7px; }
.itz-plogo--chip img { height: 24px; }
.itz-papps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
a.itz-papp { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; color: #38434e; text-decoration: none; transition: border-color .15s, background .15s; }
a.itz-papp b { display: block; margin-bottom: 4px; font: 700 17px/1.3 var(--sans); color: var(--text); }
a.itz-papp span { display: block; font-size: 15px; line-height: 1.5; }
@media (max-width: 991px) { .itz-papps { grid-template-columns: 1fr 1fr; } a.itz-pcard { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; } }
@media (max-width: 560px) { .itz-papps { grid-template-columns: 1fr; } }

/* Футър */
#footer { padding: 56px 0 22px; background: var(--ink); color: #aab4bf; font-size: 15px; }
#footer a { color: #d5dbe2; text-decoration: none; transition: color .15s; }
#footer a:hover { color: var(--signal); }
.itz-foot { display: grid; grid-template-columns: 1.3fr 1.6fr .9fr 1fr; gap: 40px; }
#footer .itz-foot-mark { color: #fff; font-size: 26px; font-weight: 700; letter-spacing: .03em; }
.itz-foot-mark i { font-style: normal; color: var(--signal); }
.itz-foot-brand p { max-width: 300px; margin: 12px 0 0; line-height: 1.5; color: #aab4bf; }
.itz-foot-brand .itz-foot-slogan { font: 500 13px var(--mono); color: var(--signal); }
.itz-foot-col h4 { margin: 4px 0 14px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #8b95a1; }
.itz-foot-col a, .itz-foot-col span { display: block; margin-bottom: 8px; line-height: 1.4; }
.itz-foot-products > div { column-count: 2; column-gap: 24px; }
.itz-foot-products a { break-inside: avoid; }
#footer .site-footer-bottom, #footer .bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid #242c36; }
#footer .footer-copyright-text { margin: 0; font-size: 13px; color: #8b95a1; }
@media (max-width: 991px) { .itz-foot { grid-template-columns: 1fr 1fr; } .itz-foot-products { grid-column: 1 / -1; order: 2; } .itz-foot-brand { grid-column: 1 / -1; } .itz-foot-col:not(.itz-foot-products) { order: 3; } }
@media (max-width: 480px) { .itz-foot { grid-template-columns: 1fr; gap: 28px; } }

@media (prefers-reduced-motion: reduce) { .map .train { display: none; } a.itz-row, .zn_section a.itz-btn.btn { transition: none; } }
/* Хедърът под ширината на бургер менюто: един ред, бял фон */
@media (max-width: 991px) {
  #header.site-header, .site-header .site-header-main-wrapper, .site-header .site-header-main, .site-header .kl-top-header { background: #fff; }
  .site-header .site-header-main { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; height: 58px; }
  .site-header .site-header-main-left, .site-header .site-header-main-center, .site-header .site-header-main-right { width: auto; flex: 0 0 auto; }
  .site-header .zn-res-trigger span, .site-header .zn-res-trigger::before, .site-header .zn-res-trigger::after { background-color: var(--ink); }
  .site-header .topnav > li > a { padding: 0 7px; }
  .site-header .zn-menuBurger span { background-color: var(--ink) !important; }
}
@media (max-width: 620px) {
  .site-header .topnav { display: flex; flex-wrap: nowrap; }
  .site-header .itz-top-email, .site-header .itz-top-signin { display: none; }
}
/* На телефон колоните на Kallyas в рамката заемат цял ред; малките числа — по две на ред */
@media (max-width: 991px) {
  .itz-panes .row > .itz-pane, .itz-stats .row > .itz-stat { flex: 0 0 calc(100% + 1px); max-width: calc(100% + 1px); width: calc(100% + 1px); }
  .itz-stats .row > .itz-stat:not(.itz-stat--long) { flex: 0 0 calc(50% + 1px); max-width: calc(50% + 1px); width: calc(50% + 1px); }
}
@media (max-width: 760px) {
  .map svg, .legend { display: none; }
  .routes { display: block; }
  .map { background-image: none; }
}
@media (max-width: 620px) {
  .zn_section.itz-hero { padding-top: 36px; }
  a.itz-row { grid-template-columns: 1fr 20px; gap: 2px 10px; }
  .itz-row b { grid-column: 1; }
  .itz-row span { grid-column: 1; grid-row: 2; }
  .itz-row i { grid-column: 2; grid-row: 1 / span 2; }
  .itz-int { grid-template-columns: 1fr; gap: 10px; }
  .itz-form { grid-template-columns: 1fr; }
  .itz-contacts { margin-top: 12px; }
}
