/* ==========================================================================
   AP Development – podstránky
   ========================================================================== */

/* úvod podstránky: grafitový „řídicí panel“ */
.phero { background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }
.phero__net { position: absolute; inset: 0; background: url("image/net.svg") right -60px center / 720px auto no-repeat, radial-gradient(circle at 90% 10%, rgba(14, 122, 95, .45), transparent 50%); opacity: .85; pointer-events: none; }
.phero__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 64px); align-items: end; }
.phero__text { max-width: 820px; }
.phero h1 { margin-bottom: 20px; }
.phero .eyebrow { color: var(--sig); }
.phero .lead { color: #B9C4BE; max-width: 720px; }
.phero .actions { margin-top: 32px; }
.phero__aside { align-self: center; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; font: 400 13px var(--mono); color: #8A958F; }
.crumbs a:hover { color: #fff; }
.crumbs i { font-size: 9px; opacity: .6; }
.crumbs span { color: #D6DED9; }

.hero-quote { padding: 28px; border-radius: var(--radius-lg); background: rgba(31, 37, 42, .82); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .1); }
.hero-quote i { font-size: 28px; color: var(--sig); margin-bottom: 18px; }
.hero-quote p { font-size: 21px; line-height: 1.45; font-weight: 500; color: #fff; }

.case-meta { padding: 26px; border-radius: var(--radius-lg); background: rgba(31, 37, 42, .86); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 12px; }
.case-meta > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; font-size: 15px; }
.case-meta dt { color: #8A958F; font: 400 12.5px/1.9 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.case-meta dd { color: #E6ECE9; }
.case-meta a { color: var(--sig); }
.case-meta .case-meta__metric { display: flex; align-items: baseline; gap: 12px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.case-meta__metric b { font: 600 44px/1 var(--mono); color: var(--sig); }
.case-meta__metric span { color: #C9D2CD; }

/* přepínač pro vedení / pro IT */
.viewbar { position: sticky; top: var(--header); z-index: 50; background: rgba(237, 240, 238, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.viewbar--inline { position: relative; top: 0; }
.viewbar__in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 10px; padding-bottom: 10px; }
.viewbar__label { font: 500 13px var(--mono); color: var(--muted); }
.viewbar__hint { font-size: 14px; color: var(--muted); }
.toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.toggle button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--muted); transition: .2s ease; }
.toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.toggle button[aria-pressed="true"] i { color: var(--sig); }
[data-view="manager"] [data-tech] { display: none; }
[data-view="tech"] [data-tech] { animation: rise .35s ease; }

/* rozvržení */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; }
.split--top { align-items: start; }

/* bolesti a změna */
.pains { display: flex; flex-direction: column; gap: 10px; }
.pains li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-weight: 500; }
.pains i { color: var(--warn); margin-top: 4px; flex: none; }
.sec--alt .pains li { border-color: transparent; }

.change { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.change__head { display: grid; grid-template-columns: 1fr 1fr; font: 500 12.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.change__head span { padding: 14px 20px; color: var(--muted); }
.change__head span:last-child { background: var(--em); color: #fff; padding-left: 40px; }
.change__row { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.change__row > i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; background: var(--sig); color: var(--ink); font-size: 12px; display: flex; align-items: center; justify-content: center; z-index: 1; }
.change__before { padding: 16px 28px 16px 20px; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(90, 100, 108, .4); }
.change__after { padding: 16px 20px 16px 40px; background: var(--em-tint); font-weight: 500; }

/* postup */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { padding: 26px 24px; border-radius: var(--radius); background: var(--surface); }
.steps__num { display: block; font: 600 30px/1 var(--mono); color: var(--em); margin-bottom: 18px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 15.5px; }

/* technický pohled */
.tech__box { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--ink); color: #fff; overflow: hidden; }
.tech__box::before { content: ""; position: absolute; inset: 0; background: url("image/net.svg") right -120px top -40px / 560px auto no-repeat; opacity: .5; }
.tech__head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 26px; }
.tech__head > i { width: 48px; height: 48px; flex: none; border-radius: 12px; background: rgba(43, 209, 140, .14); color: var(--sig); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.tech__head h2 { font-size: 26px; }
.tech__head p { color: #AEB8B3; }
.tech__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.tech__list li { font: 400 15px/1.5 var(--mono); color: #D6DED9; padding-left: 22px; }
.tech__list li::before { content: ">"; position: absolute; left: 0; color: var(--sig); }

/* důkaz / reference */
.proof { display: flex; flex-direction: column; gap: 12px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--em-tint); border: 1px solid #C6E3D7; transition: .25s ease; }
.proof:hover { background: #D6ECE3; transform: translateY(-3px); }
.proof__label { font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--em); }
.proof h2 { font-size: clamp(22px, 2.6vw, 32px); max-width: 860px; }
.proof p { color: var(--ink-2); max-width: 760px; }
.proof__big { font-size: clamp(19px, 2vw, 24px); line-height: 1.45; font-weight: 500; }
.proof--plain { padding: 0; background: none; border: 0; }
.proof--plain:hover { background: none; }

/* cena */
.price { border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.price__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.price__row:last-child { border-bottom: 0; }
.price__label { font-weight: 600; }
.price__note { font-size: 14px; color: var(--muted); }
.price__value { font: 600 18px var(--mono); color: var(--em); text-align: right; white-space: nowrap; }

/* FAQ */
.faq { max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 0; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { color: var(--em); transition: transform .2s ease; flex: none; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 760px; }

/* související */
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.related a { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); font-weight: 600; transition: .2s ease; }
.related a > i:first-child { color: var(--em); width: 22px; }
.related a > i:last-child { margin-left: auto; color: var(--muted); transition: transform .2s ease; }
.related a:hover { box-shadow: var(--shadow); }
.related a:hover > i:last-child { transform: translateX(4px); color: var(--em); }

/* bloky, seznamy, poznámky */
.blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.block { padding: 30px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.block > i { font-size: 26px; color: var(--em); margin-bottom: 18px; }
.block h2 { font-size: 24px; margin-bottom: 10px; }
.block > p { color: var(--muted); margin-bottom: 18px; }
.ticks { display: flex; flex-direction: column; gap: 8px; }
.ticks li { padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--em-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%230E7A5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.ticks--big li { font-size: 18px; padding-left: 32px; margin-bottom: 6px; }
.ticks--big li::before { top: 6px; width: 20px; height: 20px; background-size: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--surface); font-weight: 500; font-size: 15px; }
.note-card { padding: clamp(24px, 3.5vw, 36px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.note-card h2 { font-size: 24px; margin-bottom: 14px; }
.note-card h3 { margin-bottom: 8px; }
.note-card p { color: var(--ink-2); }
.note-card .ticks, .note-card .btn, .note-card .link { margin-top: 18px; }
.note-card--accent { background: var(--ink); color: #fff; border: 0; }
.note-card--accent h2 { color: #fff; }
.note-card--accent p { color: #C9D2CD; }
.nots { display: flex; flex-direction: column; gap: 10px; }
.nots li { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); font-weight: 500; }
.nots i { color: #9A3412; margin-top: 4px; }

/* odvětví: co řešíme */
.solve { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.solve__item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); transition: .2s ease; }
.solve__item > i:first-child { width: 44px; height: 44px; border-radius: 12px; background: var(--em-tint); color: var(--em); display: flex; align-items: center; justify-content: center; }
.solve__item > i:last-child { color: var(--muted); transition: transform .2s ease; }
.solve__item p { color: var(--muted); font-size: 15.5px; }
.solve__item:hover { box-shadow: var(--shadow); }
.solve__item:hover > i:last-child { transform: translateX(4px); color: var(--em); }

/* filtr studií a reference */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { padding: 9px 16px; border-radius: 999px; font-weight: 500; font-size: 15px; background: var(--surface); border: 1px solid var(--line); transition: .15s ease; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.refs-head { margin-top: clamp(48px, 7vw, 80px); }
.refs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ref { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.ref__logo { display: flex; align-items: center; height: 56px; margin-bottom: 16px; }
.ref__logo img { max-height: 48px; max-width: 160px; width: auto; object-fit: contain; }
.ref h3 { margin-bottom: 6px; }
.ref p { color: var(--muted); font-size: 15.5px; }
.is-hidden { display: none !important; }

/* případová studie */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: calc(-1 * clamp(80px, 10vw, 140px)); }
.metrics li { padding: 24px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.metrics b { display: block; font: 600 clamp(30px, 3.4vw, 44px)/1.05 var(--mono); color: var(--em); margin-bottom: 6px; }
.metrics span { color: var(--muted); font-size: 15px; line-height: 1.35; display: block; }
.page--case .phero { padding-bottom: clamp(90px, 12vw, 160px); }
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sgrid__item { padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border-top: 3px solid var(--em); }
.sgrid__item h3 { margin-bottom: 8px; }
.sgrid__item p { color: var(--muted); font-size: 15.5px; }
.invest { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--ink); color: #fff; }
.invest h2 { font-size: 26px; margin-bottom: 20px; }
.invest dl > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.invest dt { font: 400 13px/1.7 var(--mono); color: #8A958F; text-transform: uppercase; letter-spacing: .05em; }
.invest dd { color: #E6ECE9; }
.invest dl > div:first-child dd { font: 600 22px var(--mono); color: var(--sig); }
.invest .muted { margin-top: 16px; color: #8A958F; }
.case-photo { border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); }
.case-photo img { width: 100%; height: auto; }
.quote { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--surface); }
.quote > i { font-size: 30px; color: var(--sig); margin-bottom: 16px; }
.quote p { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.55; font-weight: 500; margin-bottom: 18px; }
.quote cite { font-style: normal; color: var(--muted); font-size: 15px; }
.case-grid--small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }

/* integrace */
.igroups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.igroup { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.igroup h2 { font-size: 21px; display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.igroup h2 i { width: 40px; height: 40px; border-radius: 11px; background: var(--em-tint); color: var(--em); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.igroup li { display: flex; flex-direction: column; padding: 11px 0; border-top: 1px solid var(--line); }
.igroup li b { font-weight: 600; }
.igroup li span { font-size: 14.5px; color: var(--muted); }

/* spolupráce */
.models { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.model { display: flex; flex-direction: column; padding: 28px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.model > i { font-size: 24px; color: var(--em); margin-bottom: 16px; }
.model h3 { font-size: 20px; }
.model__price { font: 600 24px var(--mono); color: var(--em); margin-top: 12px; }
.model__unit { font: 400 13px var(--mono); color: var(--muted); margin-bottom: 14px; }
.model > p:not([class]) { color: var(--ink-2); font-size: 15.5px; margin-bottom: 16px; }
.model .ticks li { font-size: 15px; }
.model:nth-child(2) { border: 2px solid var(--em); }
.rate { margin-top: 24px; padding: 16px 20px; border-radius: var(--radius); background: var(--alt); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.rate b { font-family: var(--mono); }
.rate small { color: var(--muted); }

/* o nás */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.person { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); }
.person img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; filter: grayscale(.2); }
.person__role { font: 500 13px var(--mono); color: var(--em); margin: 4px 0 10px; }
.person p:last-child { color: var(--muted); font-size: 15px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.values > div { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.values h3 { margin-bottom: 8px; }
.values p { color: var(--muted); }
.table > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.table dt { color: var(--muted); font: 400 14px/1.7 var(--mono); }
.table--small > div { grid-template-columns: 120px minmax(0, 1fr); padding: 8px 0; font-size: 14.5px; }

/* kontakt */
.person-card { display: flex; gap: 18px; align-items: center; }
.person-card img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.person-card h2 { font-size: 24px; }
.person-card p { color: var(--muted); }
.form-title { font-size: 28px; margin-bottom: 6px; }
.contact-sec__in > div > .muted { margin-bottom: 20px; }
.contact-sec__side .note-card { width: 100%; }
.contact-sec__side .table { width: 100%; }

/* text */
.prose { max-width: 780px; }
.prose p { margin-bottom: 16px; font-size: 18px; color: var(--ink-2); }
.prose--legal h2 { font-size: 24px; margin: 36px 0 12px; }
.prose--legal h2:first-child { margin-top: 0; }
.prose--legal p { font-size: 16.5px; }
.prose a { color: var(--em); text-decoration: underline; }

@media (max-width: 1080px) {
    .phero__in { grid-template-columns: 1fr; align-items: start; }
    .steps, .models, .people { grid-template-columns: repeat(2, 1fr); }
    .blocks, .sgrid { grid-template-columns: 1fr 1fr; }
    .metrics { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .split { grid-template-columns: 1fr; }
    .tech__list, .solve, .values { grid-template-columns: 1fr; }
    .blocks, .sgrid { grid-template-columns: 1fr; }
    .change__head, .change__row { grid-template-columns: 1fr; }
    .change__head span:first-child { display: none; }
    .change__head span:last-child { padding-left: 20px; }
    .change__row > i { position: static; transform: rotate(90deg); margin: -15px auto; }
    .change__before { padding: 14px 20px 18px; }
    .change__after { padding: 18px 20px 14px; }
    .price__row { grid-template-columns: 1fr; gap: 6px; }
    .price__value { text-align: left; white-space: normal; }
    .invest dl > div, .table > div, .case-meta > div { grid-template-columns: 1fr; gap: 2px; }
    .viewbar__hint { display: none; }
}
@media (max-width: 520px) {
    .steps, .models, .people, .metrics { grid-template-columns: 1fr; }
    .solve__item { grid-template-columns: 40px minmax(0, 1fr); }
    .solve__item > i:last-child { display: none; }
}
