/* Doplňky nového webu ve stylu původního adwydata.cz */
:root { --blue: rgb(35, 119, 215); --ink: rgb(66, 83, 102); --soft: rgb(242, 246, 250); }

/* Text stránek (seznamy, tabulky, citace) */
section .max .text ul, section .max .text ol { margin: 0 0 16px 0; padding-left: 22px; }
section .max .text ul li { list-style: disc; line-height: 24px; margin: 4px 0; }
section .max .text ol li { list-style: decimal; line-height: 24px; margin: 4px 0; }
section .max .text li::marker { color: var(--blue); }
section .max .text p { margin: 0 0 14px 0; }
section .max .text h2, section .max .text h3, section .max .text h4 { margin: 28px 0 10px 0; }
section .max .text > :first-child { margin-top: 0; }
section .max .text a { color: var(--blue); text-decoration: underline; }
section .max .text strong, section .max .text b { font-weight: 500; color: rgb(35, 47, 60); }
section .max .text blockquote { margin: 18px 0; padding: 14px 20px; background: var(--soft); border-left: 4px solid var(--blue); border-radius: 0 7px 7px 0; }
section .max .text blockquote p { margin: 0; }
section .max .text code { background: var(--soft); padding: 1px 5px; border-radius: 4px; font-family: Consolas, monospace; font-size: 90%; }
section .max .text pre { background: var(--soft); padding: 14px; border-radius: 7px; overflow-x: auto; margin: 0 0 16px 0; }
section .max .text pre code { padding: 0; }
section .max .text img { max-width: 100%; height: auto; border-radius: 7px; margin: 10px 0 16px 0; display: block; }
section .max .text .table { overflow-x: auto; margin: 10px 0 20px 0; -webkit-overflow-scrolling: touch; }
section .max .text table { width: 100%; border-collapse: collapse; min-width: 480px; }
section .max .text th, section .max .text td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid rgb(222, 229, 237); line-height: 22px; }
section .max .text th { background: var(--soft); font-weight: 500; color: rgb(35, 47, 60); }

/* Úzký sloupec pro čtení */
.narrow { max-width: 860px; }

/* Drobečková navigace a meta */
.crumbs { font-size: 87.5%; margin: 0 0 12px 0; text-align: center; }
.crumbs a { color: var(--blue); }
.crumbs span { color: var(--ink); }
.meta { font-size: 87.5%; color: rgb(120, 135, 150); margin: 6px 0 0 0; }
.lead { font-size: 112.5%; line-height: 28px; margin: 18px auto 0 auto; text-align: center; max-width: 760px; }

/* Karty služeb: odkaz */
section.about .grid .item .box .item-content h4 a { color: var(--blue); }
section.about .grid .item .box .item-content h4 a:hover { text-decoration: underline; }
section.about .grid .item .box .item-content p.more { margin-top: 12px; }
section.about .grid .item .box .item-content p.more a { color: var(--blue); font-weight: 500; }
section.about .grid .item .box .item-content p.more a:hover { text-decoration: underline; }

/* Body služby */
ul.points { margin: 24px auto 0 auto; max-width: 860px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
ul.points li { background: var(--soft); color: var(--blue); border-radius: 20px; padding: 8px 16px; font-size: 93.75%; }

/* Rozvržení obsah + boční panel */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.side .box { background: var(--soft); border-radius: 7px; padding: 24px; margin-bottom: 20px; }
.side h3 { font-size: 125% !important; margin: 0 0 10px 0; }
.side ul li { margin: 6px 0; line-height: 22px; }
.side a { color: var(--blue); }
.side a:hover { text-decoration: underline; }
.side p { line-height: 24px; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }

/* Časté dotazy */
.faq { margin-top: 30px; }
.faq details { background: var(--soft); border-radius: 7px; padding: 16px 20px; margin: 0 0 10px 0; }
.faq summary { cursor: pointer; font-weight: 500; color: var(--blue); font-size: 106%; }
.faq details p { margin: 10px 0 0 0; line-height: 24px; }

/* Formulář */
.pform { background: var(--soft); border-radius: 7px; padding: 30px; }
.pform .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 16px 0; }
.pform label { display: block; font-weight: 500; font-size: 93.75%; margin: 0; }
.pform label span.opt { font-weight: 400; color: rgb(120, 135, 150); }
.pform input, .pform select, .pform textarea { display: block; width: 100%; margin: 6px 0 0 0; padding: 12px 14px; font-size: 16px; background: #fff; border: 1px solid rgb(210, 220, 232); border-radius: 7px; min-height: 46px; }
.pform textarea { min-height: 140px; resize: vertical; }
.pform input:focus, .pform select:focus, .pform textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(35, 119, 215, .15); }
.pform .full-row { margin: 0 0 16px 0; }
.pform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pform .note { font-size: 87.5%; color: rgb(120, 135, 150); margin: 0 0 16px 0; line-height: 20px; }
.pform .err { background: #fbe9e7; color: #9a2018; border-radius: 7px; padding: 12px 16px; margin: 0 0 16px 0; }
.pform button { background: var(--blue); color: #fff; border-radius: 25px; padding: 14px 32px; font-size: 100%; font-weight: 500; cursor: pointer; margin: 0; }
.pform button:hover { background: rgb(25, 95, 180); }
@media (max-width: 640px) { .pform .row { grid-template-columns: 1fr; } .pform { padding: 20px; } }

/* Projekty / reference */
section .grid .item .box.project { background: var(--soft); border-radius: 7px; padding: 24px; height: 100%; }
section .grid .item .box.project h3 { font-size: 125%; margin: 0; }
section .grid .item .box.project p { line-height: 24px; margin: 8px 0 0 0; }
section .grid .item .box.project p.when { color: rgb(120, 135, 150); font-size: 87.5%; margin: 0 0 6px 0; }
section .grid .item .box figcaption { font-size: 87.5%; text-align: center; margin-top: 8px; }

/* Blog: výpis */
section.news .grid .item .box .box-content h3 a { color: var(--blue); }
section.news .grid .item .box .box-content h3 a:hover { text-decoration: underline; }
section.news .grid .item .box .box-content p.more { margin-top: 12px; }
section.news .grid .item .box .box-content p.more a { color: var(--blue); font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 24px auto 0 auto; }
.tags a { background: #fff; border: 1px solid rgb(210, 220, 232); color: var(--blue); border-radius: 20px; padding: 8px 16px; font-size: 93.75%; }
.tags a:hover, .tags a.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Pobočka: fotka */
.branch-photo { width: 100%; border-radius: 7px; display: block; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 0 20px 0; }

/* Přístupnost */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgb(232, 116, 42); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; color: var(--blue); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
ul.points li { list-style: none; }
.side ul li { list-style: none; }
footer .copyright a { color: inherit; text-decoration: underline; }
ul.points li, .tags a { margin: 0; }
a .px, a .px * { color: inherit; }

/* Aktuality: zkrácený text s rozbalením */
.news-text.clamp { max-height: 7.4em; overflow: hidden; position: relative; transition: max-height .35s ease; }
.news-text.clamp::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2.6em; background: linear-gradient(rgba(242, 246, 250, 0), rgb(242, 246, 250)); pointer-events: none; }
.news-text.clamp.fits::after { display: none; }
.news-toggle { margin: 10px 0 0 0; }
.news-toggle button { background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 500; color: rgb(35, 119, 215); cursor: pointer; }
.news-toggle button::after { content: ' \25BE'; }
.news-toggle button[aria-expanded="true"]::after { content: ' \25B4'; }
.news-toggle button:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .news-text.clamp { transition: none; } }
.news-text.clamp.open::after { display: none; }
section.news .grid { align-items: start; }
