:root {
    --red: #e2001a;
    --blue: #2981c4;
    --ink: #20323c;
    --light: #ebebeb;
}

body { font: 400 1rem/1.55 Roboto, Arial, sans-serif; color: var(--ink); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.btn:focus-visible, .form-control:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #20323c; }
.block { padding: clamp(2.75rem, 6vw, 5.625rem) 0; }
h2, .article-body h1 {
    margin: 0 0 clamp(1.5rem, 3vw, 2.8rem);
    font-size: clamp(1.9rem, 4vw, 3.125rem);
    font-weight: 400;
    line-height: 1.08;
    text-transform: uppercase;
}
h2 strong, .article-body h1 strong { color: var(--red); font-weight: 900; }
.btn {
    border: 0;
    border-radius: 0;
    padding: .85rem 1.6rem;
    background: var(--ink);
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.1;
    text-transform: uppercase;
}
.btn.red { background: var(--red); }
.btn:hover, .btn:focus-visible { background: white; color: var(--red); }
.skip-link { position: absolute; top: -5rem; left: 1rem; z-index: 10; padding: .6rem 1rem; background: white; color: var(--ink); }
.skip-link:focus { top: 1rem; }

/* Úvod využívá oba sloupce původní šablony pro značku, adresu a navigaci. */
.hero, .article-hero { background: var(--red); color: white; }
.hero { position: relative; }
.hero-inner {
    display: grid;
    grid-template-columns: 1.6fr minmax(13.25rem, .9fr) minmax(10.25rem, .58fr);
    align-items: center;
    gap: clamp(1.25rem, 4vw, 4rem);
    padding-top: clamp(4.5rem, 8vw, 7rem);
    padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
}
.hero-ribbon {
    position: absolute;
    inset: 0 auto auto 0;
    width: clamp(5.2rem, 9vw, 11rem);
    aspect-ratio: 1;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    background: var(--blue);
    pointer-events: none;
}
.hero-ribbon span {
    position: absolute; top: 32%; left: 32%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: clamp(.85rem, 1.15vw, 1.3rem);
    font-weight: 900; text-align: center; line-height: 1.05;
}
.top-line { display: none; }
.partners { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.8rem); }
.partners img { display: block; width: auto; max-width: 44%; height: clamp(2.25rem, 3.5vw, 3.3rem); object-fit: contain; }
.hero h1 { margin: 2.5rem 0 1.25rem; color: white; line-height: .98; }
.hero h1 span, .hero h1 strong { display: block; }
.hero h1 .top { font-size: clamp(2rem, 3.5vw, 3.45rem); font-weight: 400; }
.hero h1 strong { margin: .25rem 0 .15rem; font-size: clamp(3rem, 6.25vw, 5.4rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.035em; }
.hero h1 .city { font-size: clamp(2.3rem, 4vw, 3.4rem); font-weight: 900; }
.hero-brand p { font-size: 1.125rem; margin: 0; }
.hero-brand p span { padding: 0 .4rem; }
.where { padding: clamp(1.15rem, 2vw, 2rem); border: 2px dashed white; }
.where h2 { margin-bottom: 1.15rem; font-weight: 900; }
.where address { font-size: 1.05rem; line-height: 1.35; margin-bottom: 1.5rem; }
.where address strong { display: inline-block; margin-bottom: .7rem; font-size: clamp(1.25rem, 1.6vw, 1.5rem); }
.main-nav ul { margin: 0; padding: 0; list-style: none; }
.main-nav a, .menu-button {
    display: block; padding: .55rem .75rem; color: white;
    text-align: right; text-transform: uppercase; font-weight: 700; line-height: 1.12;
}
.main-nav a[href="#top"], .main-nav a:hover, .main-nav a:focus-visible { background: var(--ink); color: white; text-decoration: none; }
.menu-button { border: 1px solid white; background: transparent; text-align: center; cursor: pointer; }
.menu-button span { margin-left: .4rem; }
.section-open { padding: .95rem 1rem; background: var(--blue); color: white; font-size: clamp(1.35rem, 3.4vw, 3.1rem); font-weight: 900; text-align: center; line-height: 1.15; }

/* Stejné piktogramy, barvy a pořadí sekcí jako v Novém Bydžově. */
.safety, .programs, .article-body { background: var(--light); }
.safety .row { row-gap: 1.75rem; }
.safety .icon { display: grid; place-items: center; width: min(100%, 10.625rem); aspect-ratio: 1; margin: 0 auto 1.5rem; border-radius: 40%; background: #fff; }
.safety .icon img { width: 59%; height: 59%; }
.safety .title { margin: 0 0 .85rem; font-size: 1.23rem; font-weight: 700; line-height: 1.25; }
.safety p { margin: 0; color: #536067; }
.price { overflow: hidden; }
.price ul { list-style: none; margin: 0; padding: 0; font-size: clamp(1.1rem, 1.7vw, 1.5rem); }
.price li { position: relative; padding: .3rem .8rem .3rem 1.8rem; }
.price li::before { content: ''; position: absolute; width: .9rem; height: .9rem; margin-top: .45em; left: 0; border: .2rem solid var(--red); border-radius: 50%; }
.price-tag { display: inline-block; border: 3px solid var(--red); padding: 0 .45rem; color: var(--red); }
.payment { position: relative; margin-top: -1.25rem; border-left: .8rem solid #cb0017; padding: 2.25rem; background: var(--red); color: white; }
.payment::after { content: ''; position: absolute; inset: 0 auto 0 100%; width: 60vw; background: inherit; }
.payment h3, .services h3, .blog h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); font-weight: 700; text-transform: uppercase; }
.payment p, .services p, .blog p { font-size: 1.125rem; }
.programs h2 { margin-bottom: 1.15rem; }
.programs .perex { margin-bottom: 1.5rem; font-size: clamp(1.15rem, 2vw, 1.5rem); }
.perex .number { color: var(--red); font-weight: 900; font-size: 1.55em; }
.program-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.programs .box { --accent: var(--red); padding: 1.5rem; border-top: 4px solid var(--accent); background: white; }
.programs .box-wheels { --accent: var(--blue); }
.box .number { margin-bottom: 1.1rem; color: var(--accent); font-size: 4rem; font-weight: 900; line-height: 1; }
.box h3 { font-size: 1.6rem; text-transform: uppercase; font-weight: 700; }
.box .subtitle { margin-bottom: 1rem; color: #58646b; }
.box p { font-size: 1.1rem; margin: 0; }
.box .program-tip { margin-top: 1rem; border-top: 1px solid var(--light); padding-top: 1rem; font-size: 1rem; }
.program-note { margin: 1.5rem 0 0; }
.services .container { border: .85rem solid #f2f2f2; padding: clamp(1.4rem, 3vw, 3.5rem); }
.services img { height: 4rem; width: 4rem; margin-bottom: 1.2rem; }
.services h3 { margin-bottom: .8rem; }
.services .row { row-gap: 1.5rem; }
.services p { margin-bottom: 0; }
.blog, .footer-bottom { background: var(--ink); color: white; }
.blog h2 strong { color: #ff4558; }
.article-list { row-gap: 2rem; }
.article-list article { display: flex; flex-direction: column; align-items: flex-start; }
.article-list h3 { margin-bottom: .8rem; }
.article-list p { margin-bottom: 1.4rem; }
.article-list a { margin-top: auto; }

.footer iframe { display: block; width: 100%; height: 100%; min-height: 24rem; border: 0; background: var(--light); }
.footer-contact { background: var(--red); color: white; border-left: .8rem solid #cb0017; }
.footer-contact-inner { max-width: 40rem; padding: clamp(1.25rem, 4vw, 4rem); }
.footer-contact h2 { margin-bottom: 1.5rem; }
.footer-contact h2 strong { color: var(--ink); }
.footer-contact address { font-size: clamp(1.15rem, 1.7vw, 1.5rem); }
.phone, .mail { color: white; }
.phone:hover, .mail:hover, .article-brand:hover { color: white; }
.phone { display: inline-block; margin: 1.4rem 0 .3rem; padding-right: 2.75rem; background: url(../img/icon-phone.svg) right center / 2rem no-repeat; font-size: clamp(1.3rem, 2.3vw, 1.9rem); font-weight: 700; }
.mail { display: inline-block; margin: 0 0 1.6rem; font-size: 1.25rem; }
.form-control { border-radius: 0; border: 0; margin: 0 0 .65rem; }
.form-end { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.form-end small { font-size: .875rem; }
.form-status { padding: .8rem 1rem; background: white; color: var(--ink); font-weight: 700; }
.non-stop { margin-top: 2rem; font-size: clamp(1.5rem, 2.5vw, 2.5rem); font-weight: 900; }
.footer-bottom { padding: 2rem 0; color: #bdc4c8; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.footer-bottom a { color: white; }
.go-top { position: fixed; bottom: 1.1rem; right: 1.1rem; z-index: 2; width: 2.8rem; height: 2.8rem; border: 1px solid #cdd0d2; border-radius: 50%; transform: rotate(-90deg); background: white url(../img/arrow-right.svg) center / 48% no-repeat; }
.article-hero { padding: 2rem 0; }
.article-brand { display: block; margin: 1.2rem 0 .8rem; color: white; font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.15; }
.article-hero nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.article-hero .btn { font-size: 1rem; }
.article-body .container { max-width: 55rem; }
.article-body p { font-size: 1.125rem; }
.article-body .perex { font-size: clamp(1.25rem, 2.1vw, 1.5rem); }
.article-body h2 { margin: 2rem 0 .75rem; font-size: 1.45rem; font-weight: 700; }
.article-body .btn { margin-top: .5rem; }

@media (min-width: 1400px) {
    .container { max-width: 1200px; }
}
@media (max-width: 991.98px) {
    .hero-inner { grid-template-columns: 1.2fr 1fr; gap: 2rem; padding-top: 3.5rem; padding-bottom: 2rem; }
    .main-nav { grid-column: 1 / -1; }
    .main-nav ul { display: flex; flex-wrap: wrap; gap: .15rem; }
    .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .payment { margin: 2rem 15px 0; flex-basis: calc(100% - 30px); padding: 1.5rem; }
    .payment::after { display: none; }
    .services .container { border-width: .5rem; }
}
@media (max-width: 767.98px) {
    .hero-ribbon { display: none; }
    .top-line { display: block; background: var(--blue); padding: .3rem .75rem; text-align: center; font-weight: 700; }
    .hero-inner { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.5rem 1.25rem; }
    .hero h1 { margin: 1.65rem 0 .8rem; }
    .hero h1 strong { font-size: clamp(2.8rem, 12vw, 4.25rem); }
    .partners img { height: 2.15rem; }
    .where { padding: 1.2rem; }
    .where h2 { font-size: 1.65rem; margin-bottom: .6rem; }
    .where address { margin-bottom: .9rem; }
    .where address strong { margin-bottom: .3rem; }
    .main-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; margin-top: .6rem; }
    .main-nav a { text-align: left; }
    .footer iframe { min-height: 17rem; }
    .footer-contact { border-left: 0; border-top: .6rem solid #cb0017; }
    .article-list article + article { padding-top: 1.5rem; border-top: 1px solid #53636e; }
}
@media (max-width: 575.98px) {
    .program-grid { grid-template-columns: 1fr; }
    .safety .row > div { display: grid; grid-template-columns: 4.1rem 1fr; column-gap: 1rem; text-align: left !important; }
    .safety .icon { grid-row: 1 / 3; width: 100%; height: auto; margin: 0; align-self: start; }
    .safety .title { margin: .1rem 0 .35rem; }
    .services .container { border: 0; padding: 0 15px; }
    .services article + article { padding-top: 1rem; }
}
