/* =========================
   ZÁKLAD
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #111111;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================
   HORNÍ LIŠTA
========================= */

.header {
    width: 100%;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eeeeee;
    transition: transform 0.3s ease;
}

.header-hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: 1400px;
    height: 100px;
    margin: 0 auto;
    padding: 0 50px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* LOGO */

.logo {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 8px;
    align-items: center;
    line-height: 0.85;
}

.logo-main {
    grid-row: 1 / 3;

    font-size: 34px;
    font-weight: 900;
    letter-spacing: -2px;

    color: #173c68;
}

.logo-city {
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1px;

    color: #111111;
}

.logo-sub {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;

    color: #d6aa00;
}


/* NAVIGACE */

.navigation {
    display: flex;
    align-items: center;
    gap: 40px;
}

.navigation a {
    position: relative;

    font-size: 15px;
    font-weight: 700;

    transition: 0.2s;
}

.navigation a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -8px;

    width: 0;
    height: 3px;

    background: #e2b500;

    transition: 0.25s;
}

.navigation a:hover {
    color: #173c68;
}

.navigation a:hover::after {
    width: 100%;
}


/* MOBILNÍ TLAČÍTKO */

.menu-button {
    display: none;

    width: 42px;
    height: 42px;

    border: none;
    background: transparent;

    cursor: pointer;
}

.menu-button span {
    display: block;

    width: 28px;
    height: 3px;

    margin: 5px auto;

    border-radius: 5px;

    background: #173c68;
}


/* =========================
   ÚVOD
========================= */

.hero {
    min-height: calc(100vh - 100px);

    display: flex;
    align-items: center;

    overflow: hidden;

    background: #ffffff;
}

.hero-content {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
    padding: 30px 50px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 50px;
}


/* LEVÁ ČÁST */

.hero-small {
    margin-bottom: 22px;

    color: #173c68;

    font-size: clamp(55px, 6vw, 95px);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -5px;
}

.hero h1 {
    margin: 0;

    color: #173c68;

    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 4px;

    white-space: nowrap;
}

.hero-description {
    max-width: 520px;

    margin-top: 35px;

    font-size: 21px;
    line-height: 1.5;
    white-space: nowrap;
   
    color: #555555;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 25px;

    margin-top: 35px;

    padding: 17px 28px;

    border-radius: 50px;

    background: #173c68;
    color: #ffffff;

    font-weight: 800;

    transition: 0.25s;
}

.hero-button span {
    font-size: 22px;
}

.hero-button:hover {
    transform: translateY(-3px);

    background: #e2b500;
    color: #111111;
}


/* =========================
   PRAVÁ GRAFIKA
========================= */

 .hero-design {
    position: relative;

    width: 100%;
    min-width: 0;
    height: 500px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: visible;
}

.hero-city-image {
    display: block;
    width: 90%;
    max-width: 700px;
    height: auto;
    object-fit: contain;
    transform: translateY(10px);
    filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.06));
}

/* =========================
   DALŠÍ SEKCE
========================= */

.section {
    min-height: 600px;

    max-width: 1400px;

    margin: 0 auto;

    padding: 100px 50px;
}

.section h2 {
    font-size: 60px;

    letter-spacing: -3px;

    color: #173c68;
}
/* =========================
   NÁŠ PROGRAM
========================= */

.program-section {
    background: #f6f6f4;
    padding: 120px 50px;
}

.program-container {
    max-width: 1400px;
    margin: 0 auto;
}

.program-heading {
    margin-bottom: 60px;
}

.program-heading p {
    color: #d6aa00;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 12px;
}

.program-heading h2 {
    color: #173c68;
    font-size: clamp(55px, 6vw, 90px);
    font-weight: 900;
    letter-spacing: -5px;
    line-height: 1;
}

.program-heading span {
    display: block;
    margin-top: 18px;
    color: #555;
    font-size: 20px;
}


/* KARTY */

.program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.program-card {
    min-height: 260px;
    padding: 30px;

    border: none;
    border-radius: 25px;

    background: #ffffff;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    text-align: left;
    cursor: pointer;

    position: relative;
    overflow: hidden;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.program-letter {
    font-size: 90px;
    font-weight: 900;
    line-height: 1;

    color: #e3b700;

    transition: 0.3s ease;
}

.program-name {
    max-width: 280px;

    margin-top: auto;

    font-size: 25px;
    font-weight: 900;
    line-height: 1.05;

    color: #173c68;

    transition: 0.3s ease;
}

.program-arrow {
    position: absolute;
    right: 28px;
    bottom: 27px;

    font-size: 25px;
    color: #173c68;

    transition: 0.3s ease;
}


/* HOVER */

.program-card:hover {
    background: #173c68;

    transform: translateY(-8px);

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.program-card:hover .program-letter {
    color: #e3b700;
    transform: translateY(-4px);
}

.program-card:hover .program-name,
.program-card:hover .program-arrow {
    color: #ffffff;
}

.program-card:hover .program-arrow {
    transform: translateX(6px);
}

/* =========================
   DETAIL PROGRAMU
========================= */

.program-detail {
    display: none;
    position: relative;

    margin-top: 25px;
    padding: 55px;

    background: #173c68;
    color: #ffffff;

    border-radius: 30px;

    overflow: hidden;
}

.program-detail.active {
    display: block;
    animation: programOpen 0.4s ease;
}

@keyframes programOpen {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ZAVŘÍT */

.program-close {
    position: absolute;
    top: 25px;
    right: 30px;

    width: 45px;
    height: 45px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;

    font-size: 30px;
    line-height: 1;

    cursor: pointer;

    transition: 0.2s;
}

.program-close:hover {
    background: #e3b700;
    color: #111111;
    transform: rotate(90deg);
}


/* NADPIS */

.program-detail-top {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 35px;

    align-items: center;

    padding-right: 70px;
    margin-bottom: 45px;
}

.detail-letter {
    font-size: 150px;
    line-height: 0.8;
    font-weight: 900;

    color: #e3b700;
}

.detail-label {
    margin-bottom: 8px;

    color: #e3b700;

    font-size: 13px;
    font-weight: 900;
    letter-spacing: 3px;
}

.program-detail h3 {
    max-width: 900px;

    font-size: clamp(38px, 4vw, 65px);
    line-height: 0.95;
    letter-spacing: -3px;
}

.detail-subtitle {
    margin-top: 15px;

    font-size: 21px;
    font-weight: 700;

    color: rgba(255, 255, 255, 0.8);
}


/* BODY */

.program-detail-content {
    max-width: 1050px;
    margin-left: 185px;
}

.program-detail-content ul {
    list-style: none;
}

.program-detail-content li {
    position: relative;

    padding: 22px 0 22px 35px;

    border-top: 1px solid rgba(255, 255, 255, 0.15);

    font-size: 17px;
    line-height: 1.65;

    color: rgba(255, 255, 255, 0.9);
}

.program-detail-content li::before {
    content: "";

    position: absolute;
    left: 0;
    top: 31px;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #e3b700;
}

.detail-ending {
    margin-top: 30px;
    padding: 25px 30px;

    border-left: 5px solid #e3b700;

    background: rgba(255, 255, 255, 0.06);

    border-radius: 0 15px 15px 0;

    font-size: 19px;
    line-height: 1.5;
    font-weight: 700;
}

/* =========================
   KANDIDÁTI
========================= */

.candidates-section {
    padding: 120px 50px;
    background: #ffffff;
}

.candidates-container {
    max-width: 1400px;
    margin: 0 auto;
}

.candidates-heading {
    margin-bottom: 60px;
}

.candidates-heading p {
    margin-bottom: 12px;

    color: #e3b700;

    font-size: 15px;
    font-weight: 900;
    letter-spacing: 4px;
}

.candidates-heading h2 {
    color: #173c68;

    font-size: clamp(55px, 6vw, 90px);
    font-weight: 900;
    letter-spacing: -5px;
    line-height: 1;
}


/* MŘÍŽKA */

.candidates-grid {
    width: 100%;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.candidate-card {
    width: 100%;
    min-width: 0;
}


/* KARTA */

.candidate-card {
    overflow: hidden;

    border-radius: 25px;

    background: #173c68;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.candidate-card:hover {
    transform: translateY(-8px);

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14);
}


/* FOTKA */

.candidate-photo {
    height: 380px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #f1f1ef;
}

.candidate-photo span {
    color: #999999;
    font-size: 14px;
    font-weight: 700;
}

.candidate-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}

.candidate-card:hover .candidate-photo img {
    transform: scale(1.04);
}


/* INFORMACE */

.candidate-info {
    position: relative;

    min-height: 180px;

    padding: 30px;
}

.candidate-number {
    display: block;

    margin-bottom: 25px;

    color: #e3b700;

    font-size: 15px;
    font-weight: 900;
    letter-spacing: 2px;
}

.candidate-info h3 {
    color: #ffffff;

    font-size: 25px;
    line-height: 1.05;
}

.candidate-info p {
    margin-top: 10px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 15px;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1100px) and (min-width: 851px) {

    .hero-content {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 25px;
    }

    .hero-city-image {
    width: 95%;
    max-width: 600px;
    height: auto;
    transform: translateX(0) translateY(10px);
}

    .hero-small {
        font-size: clamp(48px, 6vw, 70px);
        line-height: 0.88;
        letter-spacing: -3px;
        margin-bottom: 18px;
    }

    .hero h1 {
        font-size: 25px;
        line-height: 1;
        letter-spacing: 3px;
        white-space: nowrap;
    }
}


/* =========================
   MOBIL
========================= */

@media (max-width: 850px) {

    .nav-container {
        height: 80px;
        padding: 0 22px;
    }

    .logo-main {
        font-size: 27px;
    }

    .navigation {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;

    padding: 25px 22px;

    background: #ffffff;
    border-bottom: 1px solid #eeeeee;

    flex-direction: column;
    align-items: flex-start;
    gap: 25px;

    z-index: 999;
}

.navigation.active {
    display: flex;
}

    .menu-button {
        display: block;
    }

    .hero {
        min-height: auto;
    }

    .hero-content {
    grid-template-columns: 1fr;
    padding: 45px 25px 60px;
    gap: 10px;
}

    .hero-small {
        font-size: clamp(48px, 14vw, 70px);
        line-height: 0.88;
        letter-spacing: -3px;
        margin-bottom: 18px;
    }

    .hero h1 {
        font-size: 22px;
        line-height: 1;
        letter-spacing: 3px;
        white-space: nowrap;
    }

    .hero-description {
    font-size: 18px;
    white-space: normal;
    max-width: 100%;
}

    .hero-design {
    width: 100%;
    height: auto;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.hero-city-image {
    width: 88%;
    max-width: 500px;
    height: auto;
    transform: translateX(-8%);
    margin: 0 auto;
}

    .section {
        padding: 80px 25px;
    }

    .section h2 {
        font-size: 45px;
    }
    .program-section {
        padding: 80px 22px;
    }

    .program-heading {
        margin-bottom: 40px;
    }

    .program-heading h2 {
        font-size: 55px;
        letter-spacing: -3px;
    }

    .program-heading span {
        font-size: 17px;
    }

    .program-grid {
        grid-template-columns: 1fr;
    }

    .program-card {
        min-height: 200px;
    }

   .program-detail {
    padding: 70px 25px 30px;
    border-radius: 22px;
}

.program-detail-top {
    grid-template-columns: 1fr;
    gap: 15px;

    padding-right: 0;
    margin-bottom: 30px;
}

.detail-letter {
    font-size: 90px;
}

.program-detail h3 {
    font-size: 38px;
    letter-spacing: -2px;
}

.detail-subtitle {
    font-size: 18px;
}

.program-detail-content {
    margin-left: 0;
}

.program-detail-content li {
    padding-left: 28px;
    font-size: 16px;
}

.program-close {
    top: 18px;
    right: 18px;
}

    .candidates-section {
        padding: 80px 22px;
    }

    .candidates-heading {
        margin-bottom: 40px;
    }

    .candidates-heading h2 {
        font-size: 55px;
        letter-spacing: -3px;
    }

    .candidates-grid {
        grid-template-columns: 1fr;
    }

    .candidate-photo {
        height: 430px;
    }
}

#uvod {
    scroll-margin-top: 100px;
}

.back-to-top {
    position: fixed;
    right: 4px;
    bottom: 30px;

    width: 55px;
    height: 55px;

    border: none;
    border-radius: 50%;

    background: #173c68;
    color: white;

    font-size: 26px;
    font-weight: bold;

    cursor: pointer;
    z-index: 900;

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);

    transition: 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #e3b700;
    color: #111;
    transform: translateY(-4px);
}

/* =========================
   JAK VOLIT
========================= */

.how-to-vote {
    padding: 90px 50px;
    background: #173c68;
    color: #ffffff;
}

.how-to-vote-container {
    max-width: 1400px;
    margin: 0 auto;
}

.how-to-vote-label {
    margin: 0 0 12px;
    color: #f2c500;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 2px;
}

.how-to-vote h2 {
    margin: 0 0 45px;
    max-width: none;
    font-size: 42px;
    line-height: 1.1;
    font-weight: 900;
}

.vote-times {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.vote-day {
    padding: 30px 35px;
    background: #ffffff;
    color: #173c68;
    border-radius: 22px;
}

.vote-day strong {
    display: block;
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 900;
}

.vote-day span {
    color: #e3b700;
    font-size: 30px;
    font-weight: 900;
}

.vote-text {
    max-width: 1100px;
    margin: 0;
    font-size: 19px;
    line-height: 1.7;
}


/* MOBIL */

@media (max-width: 850px) {

    .how-to-vote {
        padding: 65px 22px;
    }

    .how-to-vote h2 {
        font-size: 31px;
        margin-bottom: 30px;
    }

    .vote-times {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .vote-day {
        padding: 25px;
    }

    .vote-day strong {
        font-size: 21px;
    }

    .vote-day span {
        font-size: 26px;
    }

    .vote-text {
        font-size: 17px;
        line-height: 1.6;
    }
}

@media (max-width: 850px) {
    .hero-description {
        white-space: normal !important;
        max-width: 100% !important;
        width: 100%;
    }
}

.hero-description strong {
    font-weight: 900;
}

/* PATIČKA */

.footer {
    background: #102f54;
    color: #ffffff;
    padding: 18px 30px;
    text-align: center;
}

.footer p {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* FACEBOOK QR */

.facebook-section {
    padding: 80px 50px;
    background: #f5f7fa;
}

.facebook-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 55px 65px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;

    background: #173c68;
    border-radius: 30px;
}

.facebook-text p {
    margin: 0 0 12px;
    color: #f2c500;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 2px;
}

.facebook-text h2 {
    margin: 0;
    color: #ffffff;
    font-size: 46px;
    line-height: 1.1;
    font-weight: 900;
}

.facebook-qr {
    width: 250px;
    height: 250px;
    object-fit: contain;

    background: #ffffff;
    padding: 15px;
    border-radius: 22px;

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
}


/* MOBIL */

@media (max-width: 850px) {

    .facebook-section {
        padding: 45px 22px;
    }

    .facebook-container {
        padding: 40px 25px;
        flex-direction: column;
        text-align: center;
        gap: 30px;
        border-radius: 24px;
    }

    .facebook-text h2 {
        font-size: 31px;
    }

    .facebook-qr {
        width: 210px;
        height: 210px;
        padding: 12px;
    }
}