:root {
    --green: #20483a;
    --green-dark: #14352b;
    --cream: #f4efe3;
    --sand: #ded4bd;
    --text: #20302a;
    --muted: #66736d;
    --white: #fff;
    --max: 1300px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6
}

a {
    color: inherit
}

.clear {
    clear: both;
    visibility: hidden;
}

#main-menu a {
    text-shadow: #000 .5px .5px;
}

#main-menu.is-open a {
    text-shadow: none;
}

.page-logo {
    width: 200px;
    position: relative;
    top: 60px;
}

.container {
    width: min(calc(100% - 40px), var(--max));
    margin-inline: auto
}

.site-header {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    right: 0;
    color: #fff;
}

.header-inner {
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    font-weight: 750;
    font-size: 1.15rem;
    letter-spacing: .02em
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 1.35rem
}

.main-nav > ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0
}

.main-nav li {
    position: relative
}

.main-nav a {
    display: block;
    text-decoration: none;
    padding: 12px 13px;
    border-radius: 8px;
    font-weight: 600
}

.main-nav a:hover, .main-nav a:focus-visible {
    background: rgba(255, 255, 255, .14)
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #fff;
    color: var(--text);
    border-radius: 10px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .22)
}

.has-submenu:hover > .submenu, .has-submenu:focus-within > .submenu {
    display: block
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 8px;
    color: #fff;
    padding: 9px 13px;
    font: inherit
}

.hero {
    position: relative;
    min-height: 780px;
    display: flex;
    align-items: center;
    color: #fff;
    background: url('../images/hero-raby.svg?1') center/cover no-repeat;
    text-shadow: black 1px 1px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg,rgba(25, 39, 63, .62) 0%, rgba(255, 255, 255, 0) 100%);
}

.hero-content {
    position: relative;
    padding-top: 90px
}

.hero-content > * {
    max-width: 950px
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 800;
    font-size: .78rem;
    margin: 0 0 16px;
    color: #f0dfb5
}

.eyebrow.dark {
    color: var(--green)
}

h1, h2, h3 {
    line-height: 1.1;
    margin-top: 0;
}

h1 {
    font-family: Georgia, serif;
    font-size: clamp(4rem, 9vw, 7.8rem);
    font-weight: 500;
    margin-bottom: 22px;
}

.hero-lead {
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    margin-bottom: 8px;
    text-shadow: black 1px 1px;
}

.hero-content > p:not(.eyebrow):not(.hero-lead) {
    font-size: 1.08rem
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 34px
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 750
}

.button-primary {
    background: var(--cream);
    color: var(--green-dark)
}

.button-secondary {
    border: 1px solid rgba(255, 255, 255, .7);
    color: #fff;
    background: #f4efe335;
}

.section {
    padding: 90px 0
}

.section-muted {
    background: #f7f9f7;
}

.intro-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 70px;
    align-items: start
}

.intro-grid h2, .page-hero h1 {
    font-family: Georgia, serif;
    font-size: clamp(2.4rem, 5vw, 4.3rem);
    font-weight: 500
}

.intro-grid > p {
    font-size: 1.15rem;
    color: var(--muted)
}

.cards {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 22px
}

.card {
    background: #fff;
    padding: 34px;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(25, 49, 40, .08)
}

.card-number {
    display: block;
    color: #9a8c68;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .16em;
    margin-bottom: 30px
}

.card h3 {
    font-size: 1.45rem
}

.card p {
    color: var(--muted)
}

.card a {
    color: var(--green);
    font-weight: 750
}

.page-hero {
    padding: 250px 0 85px;
    color: #fff;
    background: linear-gradient(115deg, #2574c2, #203f48c2);
}

.page-hero h1 {
    margin-bottom: 15px
}

.page-hero p:last-child {
    font-size: 1.15rem
}

.narrow {
    max-width: 820px
}

.contact-note img {
    max-width: 40px;
}

.empty-state, .contact-note {
    padding: 36px;
    background: #f7f9f7;
    border-radius: 14px
}

.contact-grid {
    display: grid;
    grid-template-columns:1.2fr .8fr;
    gap: 60px;
}

.download-grid {
    display: grid;
    grid-template-columns: 0.1fr .9fr;
    gap: 10px;
}

.download-grid h2{
    margin: 0;
}

.contact-list {
    display: grid;
    grid-template-columns:50px 1fr;
    gap: 16px;
    margin-top: 30px
}

.contact-list dt {
    font-weight: 800
}

.contact-list dd {
    margin: auto 0 auto 0;
}

.contact-list img {
    width: 50px;
}

.sitemap-list {
    font-size: 1.15rem
}

.sitemap-list li {
    margin: 12px 0
}

.sitemap-list small {
    color: var(--muted)
}

.site-footer {
    background: #2f6e90;
    color: #dfe8e3;
    padding: 65px 0 25px
}

.footer-grid {
    display: grid;
    grid-template-columns:1.4fr 1fr 1fr;
    gap: 50px
}

.site-footer p {
    color: #aebdb6
}

.site-footer a {
    color: #fff
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 35px;
    padding-top: 20px;
    color: #8fa198;
    font-size: .9rem
}

@media (max-width: 950px) {

    .menu-toggle {
        display: block
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 78px;
        left: 20px;
        right: 20px;
        background: #fff;
        color: var(--text);
        border-radius: 12px;
        padding: 10px;
        box-shadow: 0 20px 55px rgba(0, 0, 0, .24)
    }

    .main-nav.is-open {
        display: block
    }

    .main-nav > ul {
        display: block
    }

    .submenu {
        position: static;
        display: block;
        box-shadow: none;
        padding-left: 22px;
        background: #f7f5ef
    }

    .hero {
        min-height: 700px
    }

    .intro-grid, .contact-grid {
        grid-template-columns:1fr;
        gap: 30px
    }

    .cards {
        grid-template-columns:1fr
    }

    .footer-grid {
        grid-template-columns:1fr 1fr
    }
}

@media (max-width: 600px) {
    .container {
        width: min(calc(100% - 28px), var(--max))
    }

    .hero {
        min-height: 660px
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch
    }

    .section {
        padding: 65px 0
    }

    .footer-grid {
        grid-template-columns:1fr
    }

    .contact-list {
        grid-template-columns:1fr;
        gap: 4px
    }

    .contact-list dd {
        margin-bottom: 14px
    }
}

.social-container img {
    max-width: 140px;
}

@media (max-width: 470px) {
    .social-container img {
        width: 140px;
    }
}

@media (max-width: 768px) {
    .hero {
        background-position: 75% center;
    }
}

.kandidati-grid {
    display: grid;
    grid-template-columns: repeat(3, 320px);
    justify-content: center;
    gap: 50px;
}

.kandidati-grid > div {
    width: 320px;
}

.kandidati-grid img {
    display: block;
    width: 100%;
    height: auto;
    #padding: 1px;
}

.kandidati-grid .medailon {
    text-align: justify;
    padding: 10px;
}

.kandidati-grid .kandidat {
    position: relative;
    border: 1px solid rgba(142, 205, 230, 1);
    background: linear-gradient(0deg,rgba(142, 205, 230, 1) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 100%);
}

.kandidat h1 {
    font-weight: bold;
    padding: 10px;
    margin: 0;
    font-size: 20px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.kandidat h2 {
    padding: 10px;
    font-size: 18px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
    margin: 0;
}

.corner-number {
    position: absolute;
    top: 0;
    left: 0;

    width: 0;
    height: 0;

    border-top: 150px solid rgba(142, 205, 230, 1);
    border-right: 150px solid transparent;
}

.corner-number span {
    position: absolute;

    top: -130px;
    left: 25px;
    text-shadow: #000 1px 1px;
    color: #fff;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}

/* 2 kandidáti na řádek */
@media (max-width: 1150px) {
    .kandidati-grid {
        grid-template-columns: repeat(2, 320px);
    }
}

/* 1 kandidát na řádek */
@media (max-width: 750px) {
    .kandidati-grid {
        grid-template-columns: minmax(0, 320px);
    }
}

/* Úzké mobily */
@media (max-width: 400px) {
    .kandidati-grid {
        grid-template-columns: minmax(0, 100%);
        gap: 35px;
    }

    .kandidati-grid > div {
        width: 100%;
        max-width: 320px;
        justify-self: center;
    }
}

.program.hero-lead {
    margin-top: 10px;
}

.program-grid {
    max-width: 1500px;
    margin: 0 auto;
}

.program-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 50px;
    align-items: center;

    padding: 45px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

/* První řádek nemusí mít tolik prostoru nahoře */
.program-item:first-child {
    padding-top: 0;
}

/* Poslední řádek bez spodní čáry */
.program-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.program-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
}

/* Obrázky ponecháme v jejich skutečné velikosti */
.program-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
}

.program-image::after {
    content: "";
    position: absolute;

    top: 20px;
    bottom: 20px;

    right: -25px;

    width: 1px;
    border-radius: 1px;
}

/* Každý řádek jinou barvou */
.program-item-1 .program-image::after {
    background: #226500;
}

.program-item-2 .program-image::after {
    background: #00003c;
}

.program-item-3 .program-image::after {
    background: #226500;
}

.program-text {
    font-size: clamp(18px, 2.2vw, 25px);
    line-height: 1.4;
    text-align: justify;
}

@media (max-width: 800px) {
    .program-item {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .program-image img {
        width: auto;
        max-width: 100%;
        margin: 0 auto;
    }

    .program-image::after {
        display: none;
    }

    .program-text {
        text-align: center;
    }
}

.kv-img {
    position: absolute;
    right: 20px;
}
.kv-img2 {
    display: none;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
}
#news.section {
    padding-top: 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(40px, 6vw, 60px);
    align-items: center;

    max-width: var(--max);
    margin: 0 auto;
    margin-bottom: 15px;
}

.news-grid.left .news-text{
    text-align: right;
}
.zasedani-image {
    max-width: 500px;
}

.zasedani-image img {
    max-width: 350px;
}

.news-image {
    max-width: 900px;
}

.news-grid.high .news-image img {
    max-width: 650px;
}

.news-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;

    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.news-text {
    max-width: 620px;
}
#news h1 {
    text-align: center;
    font-size: clamp(3rem, 3vw, 3rem);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin-bottom: 30px;
}
#news h2 {
    text-align: center;
    font-size: clamp(2rem, 2vw, 2rem);
}

.news-text h3 {
    margin: 0;
    font-size: clamp(2rem, 2.8vw, 2.7rem);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.thanks-image {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.thanks-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;

    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.thanks-text {
    margin: 50px;
}

.thanks-text h3 {
    margin: 0;
    font-size: clamp(2rem, 2.8vw, 2.7rem);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-wrap: balance;
    text-align: center;
}

@media (max-width: 1100px) {
    .zasedani-image, .news-image {
        margin-left: auto;
        margin-right: auto;
    }
    .news-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .news-grid.left .news-text {
        text-align: center;
    }
    .news-text {
        max-width: 720px;
        margin: 0 auto;
        text-align: center;
    }

    .news-text h2 {
        font-size: clamp(1.8rem, 5vw, 2.8rem);
        text-align: center;
    }
    .news-grid.up .news-image {
        order: 2;
    }
    .kv-img {
        display: none;
    }
    .kv-img2 {
        display: block;
    }
}

/* Tablet / menší notebook */
@media (max-width: 900px) {
    .news-image {
        max-width: 720px;
        margin: 0 auto;
    }
    .zasedani-image {
        max-width: 250px;
        margin: 0 auto;
    }
    .news-grid.high .zasedani-image img, .news-grid.high .news-image img {
        max-width: 100%;
    }
}

/* Mobil */
@media (max-width: 600px) {
    .news-grid {
        gap: 24px;
    }

    .news-text h2 {
        font-size: clamp(1.5rem, 7vw, 2.1rem);
        line-height: 1.2;
    }

    .news-image img {
        border-radius: 6px;
    }
}

.scroll-down {
    display: none;
    position: absolute;
    z-index: 5;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);

    width: 44px;
    height: 44px;

    align-items: center;
    justify-content: center;

    cursor: pointer;
    text-decoration: none;
}

.form-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.banner {
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
}
.banner img {
    width: 100%;
}

.scroll-down span {
    width: 14px;
    height: 14px;

    border-right: 2px solid rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid rgba(255, 255, 255, 0.9);

    transform: rotate(45deg);
    animation: scroll-down 1.6s infinite;
}

.section#obsah {
    padding-top: 30px;
}

.container.zadluzeni div.img {
    text-align: center;
}

.container.zadluzeni div.img img {
    max-width: 80%;
}

.container.zadluzeni h2 {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 40px;
}

.container.zadluzeni p {
    text-align: justify;
    text-indent: 30px;
    margin-bottom: 30px;
}

.container.zadluzeni ul li {
    list-style-type: none;
}

.container.zadluzeni li a {
    color: #2f6e90;
    text-decoration: none;
}

@keyframes scroll-down {
    0% {
        transform: rotate(45deg) translate(0, 0);
        opacity: 0.4;
    }

    50% {
        transform: rotate(45deg) translate(6px, 6px);
        opacity: 1;
    }

    100% {
        transform: rotate(45deg) translate(0, 0);
        opacity: 0.4;
    }
}

@media (max-width: 768px) {
    .scroll-down {
        display: flex;
    }
}