@font-face { font-family: "PlusJakartaSans"; src: url("fonts/PlusJakartaSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "PlusJakartaSans"; src: url("fonts/PlusJakartaSans-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "PlusJakartaSans"; src: url("fonts/PlusJakartaSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "VastagoGrotesk"; src: url("fonts/VastagoGrotesk-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "resmed-icon"; src: url("fonts/resmed-icon.woff") format("woff"); font-weight: normal; font-style: normal; font-display: block; }

:root {
    --blue: #1788c3;
    --navy: #004062;
    --red: #df2726;
    --red-dark: #c93127;
    --text: #222;
    --line: #bdbdbd;
    --bg: #fff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    margin: 0;
    font: 500 16px/1.5 "PlusJakartaSans", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}
h1, h2 { font-family: "VastagoGrotesk", "PlusJakartaSans", Arial, sans-serif; font-weight: 500; line-height: 1.25; }
h1 { text-align: center; font-size: 32px; margin: 30px 0; }
h2 { font-size: 22px; }
a { color: var(--blue); }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* hlavička – podle živého servis.resmed.cz */
.site-header .wrap { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-top: 30px; padding-bottom: 30px; }
.site-header .logo img { display: block; width: 200px; }
.back-link { white-space: nowrap; font-size: 18px; color: var(--red); text-decoration: underline; }

/* patička – podle živého webu */
main { padding-bottom: 40px; }
.copyright { background: #000; color: #909090; text-align: right; padding: 35px 10px 55px 0; }
.copyright p { max-width: 1200px; margin: 0 auto; font-size: 13px; line-height: 16px; }
.copyright a { color: var(--red); text-decoration: underline; }

/* drobečková navigace */
.breadcrumb { margin: 10px 0 20px; font-size: 16px; line-height: 35px; color: #9b9b9e; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--red); text-decoration: underline; }
.breadcrumb .sep { margin: 0 6px; }

/* výběr případu */
.cases { display: flex; gap: 40px; }
.cases-column { flex: 1 1 50%; min-width: 0; }
.case-list { list-style: none; margin: 0; padding: 0; }
.case-list li { margin: 0 0 10px; }
.case-link {
    display: block; width: 100%; padding: 10px; text-align: left;
    font: inherit; color: inherit; background: none;
    border: 1px solid #000; border-radius: 5px; cursor: pointer;
}
.case-link:hover, .case-link.is-active { border-color: var(--blue); background: var(--blue); color: #fff; }

/* panely s detailem a formulářem */
.panel {
    position: relative; margin: 40px auto 0; padding: 50px 30px 30px;
    background: var(--blue); color: #fff; text-align: center; font-size: 20px; line-height: 28px;
}
/* šipka dolů z ikonového fontu resmed-icon (znak \21), stejně jako na starém webu */
.panel::before {
    content: "\21"; position: absolute; top: -21px; left: 50%; margin-left: -21px;
    width: 42px; height: 42px; line-height: 42px; border-radius: 21px;
    background: inherit; color: #fff; text-align: center; font-size: 20px;
    font-family: "resmed-icon", sans-serif; font-weight: normal; speak: none;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
.panel h2 { margin-top: 0; }
.panel a { color: #fff; text-decoration: underline; }
.panel-dark { background: var(--navy); }

.btn {
    cursor: pointer; font: inherit; font-size: 20px; line-height: 28px;
    border: 1px solid #fff; border-radius: 5px; background: none; color: #fff;
    padding: 10px 20px; margin: 5px 10px;
}
.btn:hover, .btn.is-active { background: #fff; color: var(--blue); }
.btn-request { font-weight: 600; }
.panel a.btn { display: inline-block; text-decoration: none; }

/* formulář */
.service-form { text-align: left; font-size: 18px; line-height: 1.4; }
.service-form h2, .service-form .row-submit { text-align: center; }
.service-form > *, .service-form fieldset > * { max-width: 520px; margin-left: auto; margin-right: auto; }
.service-form fieldset { border: 0; margin: 0; padding: 0; max-width: none; }
.row { display: flex; flex-wrap: wrap; align-items: baseline; padding: 6px 0; }
.row label { flex: 0 0 160px; }
.row input, .row select, .row textarea, .row output { flex: 1 1 300px; min-width: 0; font: inherit; }
.row input[type="text"], .row input[type="tel"], .row input[type="email"], .row select, .row textarea {
    padding: 8px 10px; border: none; border-radius: 2px; color: #000; background: #fff;
}
.row textarea { height: 100px; resize: vertical; }
.row output { font-weight: 700; }
.hint, .field-error { flex: 1 0 100%; padding-left: 160px; font-size: 14px; }
.field-error { color: #ffb3b3; font-weight: 600; }
.invalid { box-shadow: inset 0 -3px 0 var(--red); }
.consent { font-size: 14px; }
.form-error { color: #ffb3b3; font-weight: 700; }
.btn-submit {
    border: none; padding: 11px 30px; margin: 10px 0;
    background: linear-gradient(to bottom, var(--red) 0, var(--red-dark) 100%);
}
.btn-submit:hover { background: var(--red-dark); color: #fff; }
.btn-submit:disabled { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* náhled obrázku v modálním okně */
.lightbox {
    max-width: min(900px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
    padding: 0; border: none; border-radius: 5px; background: #fff; overflow: visible;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .75); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; max-width: 100%; max-height: calc(100vh - 100px); margin: 0 auto; border-radius: 5px 5px 0 0; }
.lightbox figcaption { padding: 10px 16px; font-size: 16px; text-align: center; }
.lightbox figcaption:empty { display: none; }
.lightbox-close {
    position: absolute; top: -16px; right: -16px; width: 36px; height: 36px; border-radius: 18px;
    border: 2px solid #fff; background: var(--navy); color: #fff; font-size: 24px; line-height: 28px; cursor: pointer;
}
.lightbox-close:hover { background: var(--blue); }
@media (max-width: 480px) { .lightbox-close { top: 6px; right: 6px; } }

/* stránka s textem (ochrana osobních údajů) – 1:1 podle živého webu (.article v base.css) */
.article { max-width: 1205px; margin: 0 auto; padding: 10px 0 30px; color: #000; font-size: 18px; font-weight: 400; }
.article h1 { font-family: "VastagoGrotesk", "PlusJakartaSans", Arial, sans-serif; font-size: 50px; line-height: 50px; font-weight: 400; margin: 0 0 15px; }
.article-inner { padding: 10px; }
.article p { margin: 0 0 30px; line-height: 26px; }
.article strong { font-weight: 700; }
.article ul { margin: 0; padding: 0 0 30px 20px; }
.article li { padding-bottom: 5px; list-style: disc; line-height: 22px; text-align: justify; }
.article a { color: var(--blue); text-decoration: none; }
.article a:hover { color: var(--red); text-decoration: underline; }
.article h2, .article h3 { font-family: "PlusJakartaSans", Arial, sans-serif; font-weight: 400; color: #000; }
.article h2 { font-size: 35px; line-height: 40px; margin: 20px 0; padding: 22px 0 10px; }
.article h3 { font-size: 25px; line-height: 25px; margin: 10px 0; padding: 15px 0 0; }
.article-showhide { border-top: 1px solid #ecebea; cursor: pointer; }
.article-showhide::after { content: "+"; color: var(--blue); float: right; }
.article-showhide.open::after { content: "–"; }
.article-showhide:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

@media (max-width: 959px) {
    .cases { display: block; }
    .panel { padding: 50px 16px 30px; font-size: 18px; }
    .row label { flex-basis: 100%; }
    .hint, .field-error { padding-left: 0; }
    .article h2 { font-size: 24px; }
    .copyright { padding: 20px 16px; text-align: center; }
    .copyright p { font-size: 12px; line-height: 15px; }
    .article-inner { padding: 0 5px; }
}
@media (max-width: 480px) {
    .site-header .wrap { flex-direction: column; align-items: flex-start; }
    h1, .article h1 { font-size: 30px; line-height: 1.2; }
}
