/* ==========================================================================
   RESET & GLOBÁLNÍ NASTAVENÍ
   ========================================================================== */

:root {
    --color-text-main: #333333;
    --color-orange: #e67e22;
    --color-green: #1e7145;
    --color-grey-light: #f0f0f0;
    --color-grey-mid: #d9d9d9;
    --color-red: #ff0000;
    --font-primary: 'Arial', sans-serif;
    --c-green: #2a7e43;
    --c-green-light: #6fb936;
    --c-blue: #0b4b8a;
    --c-blue-light: #6c99c6;
    --c-grey: #d9d9d9;
}

::-webkit-scrollbar {
    width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px #ffffff;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--color-red);
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #b30000;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-padding-top: 150px;
    /* overflow-x: hidden; */
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, sans-serif;
    background-color: #fafafa;
}

.layout-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    /* flex: 1; */
}

.background-img {
    min-width: 100vw;
    height: 130vh;
    position: fixed;
    top: 0;
    left: 0;
    will-change: transform;
    pointer-events: none;
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -1;
}

/* ==========================================================================
   HLAVIČKA: NAVIGACE
   ========================================================================== */

.header {
    width: 100%;
    min-height: 100px;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    background: rgb(255, 255, 255);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

.container {
    width: 100%;
    max-width: 1400px;
    padding: 0 1.5rem;
    margin-inline: auto;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.header__brand a {
    display: block;
    width: 90px;
    height: 90px;
}

.logo {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.header__brand__slogan {
    display: block;
    max-width: 200px;
}

.header__slogan_title {
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 4px 0;
}

.header__slogan_text {
    font-size: 1rem;
    line-height: 1.3;
    color: #555;
}

/* --- PRAVÁ STRANA: NAVIGACE A MENU --- */

.header__nav {
    display: flex;
    align-items: center;
}

.header__list {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 50px;
}

.header__list li {
    list-style-type: none;
}

.header__list_link {
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--color-text-main, #111);
    transition: color 0.3s ease-in-out;
}

.header__list_link:hover {
    color: #ff0000;
}

.header__list_link.active {
    color: #ff0000;
}

.header__hamburger {
    position: relative;
    z-index: 50;
    padding: 8px;
    display: none;
    cursor: pointer;
}

.header__hamburger_bar {
    width: 25px;
    height: 3px;
    margin: 5px auto;
    display: block;
    background-color: var(--color-text-main, #111);
    transition: all 0.3s ease-in-out;
}

/* ==========================================================================
   KOMPONENTA: HERO (Desktop Layout)
   ========================================================================== */

/* --- HLAVNÍ OBAL (Grid) --- */
.hero {
    position: relative;
    width: 100%;
    max-width: 1400px;
    padding: 0 1.5rem;
    margin-inline: auto;
    margin-block: 0 60px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 20px;
}

/* ==========================================================================
   1. ŘÁDEK: HLAVNÍ FOTO & TEXTY
   ========================================================================== */

.hero__image-wrapper {
    position: relative;
    z-index: 1;
    max-height: 700px;
    grid-column: 3 / 7;
    grid-row: 1 / 2;
    align-self: start;
}

.hero__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.hero__content {
    position: relative;
    z-index: 2;
    grid-column: 1 / 5;
    grid-row: 1 / 2;
    align-self: flex-end;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.hero__title {
    margin: 0;
    font-size: clamp(3.5rem, 6vw, 5.8rem);
    font-weight: 900;
    text-transform: uppercase;
}

.hero__subtitle {
    margin: 0;
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-red, #ff0000);
}

.hero__description {
    margin: 5px 0 0 0;
    font-size: clamp(1.25rem, 2.5vw, 1.9rem);
    font-weight: 600;
}


/* ==========================================================================
   2. ŘÁDEK: IKONY (Flexbox s automatickým rozestupem)
   ========================================================================== */

.hero__features {
    grid-column: 1 / 5;
    grid-row: 2;
    align-self: center;
    width: 100%;
    max-width: 750px;
    margin: 0;
    padding: 10px 0 0 0;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    list-style: none;
}

.hero__feature-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 120px;
    text-align: center;
}

.hero__feature-icon {
    width: 80px;
    height: 60px;
    object-fit: contain;
}

.hero__feature-text {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    max-width: 140px;
    margin: 0 auto;
    text-wrap: balance;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #1a1a1a;
    line-height: 1.2;
}


/* ==========================================================================
   3. ŘÁDEK: SILUETA (Grid Overlap)
   ========================================================================== */

.hero__silhouette {
    grid-column: 1 / 5;
    grid-row: 3;
    align-self: end;
    z-index: 1;
    width: 100%;
    max-width: 750px;
    max-height: 230px;
}

.hero__silhouette-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left bottom;
}


/* ==========================================================================
   4. ŘÁDEK: LOGA
   ========================================================================== */

.hero__logos {
    grid-column: 1 / 5;
    grid-row: 4;
    align-items: center;
    width: 100%;
    max-width: 750px;
    height: 180px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.hero__logo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* ==========================================================================
   PRAVÝ SLOUPEC: BANNER
   ========================================================================== */

.hero__banner {
    position: relative;
    grid-column: 5 / 7;
    grid-row: 2 / 5;
    z-index: 2;
    width: 100%;
    min-height: 300px;
    margin: 0;
}

.hero__banner-bg {
    display: block;
    width: 100%;
    height: 100%;
    background-image: url('../images/banner.svg');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero__banner-content {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    padding: clamp(1rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    box-sizing: border-box;
}

.hero__banner-title {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    text-transform: uppercase;
    line-height: 1.75;
}

.hero__banner-subtitle {
    margin: 0;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.75;
}

.hero__banner-text {
    margin: 5px 0 0 0;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.75;
}

/* ==========================================================================
   SEKCE: NASE-PRACE (Desktop Layout)
   ========================================================================== */

/* Reference sekce */
.reference {
    width: 100%;
    margin-block: 120px 60px;
    box-sizing: border-box;
}

.reference .container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* Hlavička sekce */
.section-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.section-header__title {
    line-height: 1.2;
}

.section-header__title h1 {
    font-size: clamp(3.5rem, 5vw, 5.8rem);
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
}

.section-header__title h3 {
    font-size: clamp(2rem, 3vw, 3.2rem);
    margin: 10px 0 0 0;
}

.--highlight-text {
    color: #3aaa3a;
}

.section-header__leaf-box {
    background-color: #0b7a2d;
    width: clamp(120px, 15vw, 230px);
    height: clamp(120px, 15vw, 230px);
    border-bottom-left-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0 10px 20px;
    flex-shrink: 0;
}

.section-header__leaf-box img {
    width: clamp(60px, 10vw, 230px);
    height: auto;
}

.reference-wrapper {
    width: 100%;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 40px 200px;
    align-items: start;
}

.reference-group {
    display: contents;
}

/* Levá část (Ikonky) */
.reference-group__sidebar {
    display: flex;
    flex-direction: column;
    gap: 60px;
    grid-column: 1;
}

.sidebar__item {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #111;
    min-height: 80px;
}

.sidebar__item p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.sidebar__icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background-color: #329c3a;
    border-radius: 50%;
    flex-shrink: 0;
}

.sidebar__icon img {
    width: 40px;
    height: auto;
}

/* Pravá část (Galerie) */
.reference-group__gallery {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 30px;
    grid-column: 2;
    align-content: start;
    width: 100%;
}

.gallery__card {
    border: 1px solid #414141;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f4f4f4;
    min-height: 200px;
    display: flex;
}

.gallery__img {
    /* width: 100%;
    height: 100%; */
    object-fit: cover;
    display: block;
    max-width: 100%;
    height: auto;
    image-rendering: high-quality;
    user-select: none;
}

/* Span definice */
.span-12 {
    grid-column: span 12;
}

.span-7 {
    grid-column: span 7;
}

.span-6 {
    grid-column: span 6;
}

.span-5 {
    grid-column: span 5;
}

.row-span-2 {
    grid-row: span 2;
}

/* Zelený zvýrazněný pruh */
.reference-highlight-row {
    grid-column: 1 / -1;
    position: relative;
    width: 100%;
    margin: 10px 0;
}

.highlight-bar {
    position: relative;
    color: #ffffff;
    padding: 15px 25px 15px 30px;
    border-radius: 0 20px 20px 0;
    z-index: 1;
    width: max-content;
}

.highlight-bar::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(-1 * (50vw - 50%));
    right: 0;
    height: 100%;
    max-height: 100px;
    background-color: #9bc325;
    border-radius: 0 20px 20px 0;
    z-index: -1;
}

.highlight-bar p {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    margin: 0;
}

.volebni-program {
    max-width: 1400px;
    margin-block: 120px 60px;
    padding: 0 1.5rem;
    margin-inline: auto;
}

.section-program-header h1 {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-program-header p {
    margin-bottom: 15px;
}

/* =========================================
   4. Bannery (Oranžový a Šedý)
   ========================================= */
.highlight-banner {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    padding: 0 100px;
    margin: 15px 0;
    border-radius: 8px;
}

.orange-banner {
    width: 100%;
    height: 150px;
    background-image: url('../images/podklad-2.svg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    color: #fff;
    gap: 20px;
}

.banner-icon {
    width: 80px;
}

.orange-banner .small-title {
    display: block;
    font-size: 1.6rem;
    font-size: clamp(0.5rem, 0.5rem + 0.8vw, 2rem);
    font-weight: 700;
    margin-bottom: 5px;
}

.orange-banner h2 {
    font-size: clamp(0.8rem, 0.8rem + 0.8vw, 2.6rem);
    /* font-size: 2rem; */
    text-transform: uppercase;
}

.pill-banner {
    background-color: var(--c-green-light);
    font-size: clamp(0.9rem, 2.2vw, 1.4rem);
    color: white;
    text-align: center;
    padding: 15px 30px;
    border-radius: 50px;
    margin: 40px auto;
    max-width: 80%;
}

/* =========================================
   5. Seznam vlastností (Ikona vlevo, text vpravo)
   ========================================= */
.program-list {
    max-width: 100%;
    list-style: none;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.program-item {
    display: flex;
    align-items: center;
    gap: 25px;
}

.program-icon {
    width: 150px;
    height: 150px;
    background-color: #e1ecdb;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.program-icon img {
    width: auto;
    height: 80px;
}

.program-content {
    border-left: 2px solid var(--color-green);
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.program-content h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.program-content blockquote {
    font-style: italic;
    margin-top: 10px;
    color: #555;
}

/* =========================================
   6. Mřížka s červenými odrážkami (CSS Grid)
   ========================================= */
.tag-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin-bottom: 60px;
}

.tag-list li {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
}

/* Červený čtvereček */
.tag-list li::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: var(--color-red);
    margin-right: 4px;
    flex-shrink: 0;
}

/* =========================================
   7. Footer s překrývajícím se prvkem
   ========================================= */
.section-footer {
    max-width: 100%;
    background-color: var(--color-green);
    color: white;
    padding: 30px 0;
    margin-top: 60px;
}

.relative-container {
    max-width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
}

.relative-container p {
    font-size: clamp(0.9rem, 2.2vw, 2rem);
}

.floating-image {
    position: absolute;
    right: 0;
    top: -0;
    transform: translate(-40%, -65%);
    width: clamp(80px, 10vw, 100%);
    max-width: 150px;
    max-height: 100px;
    color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.floating-image img {
    width: 100%;
    object-fit: contain;
}

/* =========================================
   Základní layout horní části
   ========================================= */
.nas-tym {
    max-width: 1400px;
    padding: 0 1.5rem;
    margin-block: 120px 60px;
    margin-inline: auto;
}

/* =========================================
   1. Hlavní mřížka
   ========================================= */
.hero-layout {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto 150px;
    gap: 5px 40px;
    grid-template-areas:
        "top-left    .       top-right"
        "top-left    center  mid-right"
        "bottom-left center  bottom-right";
    margin-bottom: 100px;
}

/* =========================================
   2. Přidělení oblastí a vertikální zarovnání
   ========================================= */
.area-top-left {
    grid-area: top-left;
    align-self: flex-start;
}

.area-bottom-left {
    grid-area: bottom-left;
    align-self: flex-start;
}

.area-center {
    grid-area: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.area-top-right {
    width: 100%;
    grid-area: top-right;
    justify-self: end;
    align-self: start;
}

.area-mid-right {
    grid-area: mid-right;
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.area-bottom-right {
    grid-area: bottom-right;
    justify-self: end;
    align-self: end;
}

/* Individuální zarovnání (Flexbox) */
.align-left {
    align-self: flex-start;
}

.align-right {
    align-self: flex-end;
}

/* =========================================
   3. Typografie a zvětšené prvky
   ========================================= */
.title-large {
    width: 100%;
    max-width: 450px;
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1.1;
    margin: 0;
}

.uppercase {
    text-transform: uppercase;
}

.text-green {
    color: #2a7e43;
}

.text-blue {
    color: #0b4b8a;
}

.block-text {
    display: block;
}

.font-bold {
    font-weight: bold;
}

.ampersand {
    color: #2a7e43;
    font-weight: bold;
    text-align: center;
    width: 60%;
    margin-bottom: 10px;
}

/* =========================================
   4. Odznaky, Boxy a Obrázky
   ========================================= */
.image-wrapper {
    display: flex;
    width: 100%;
}

.image-wrapper img {
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.logo-wrapper {
    width: 65%;
    display: flex;
    align-items: center;
}

.logo-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.year-badge {
    background-color: #6fb936;
    color: white;
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    padding-block: 15px;
    border-radius: 40px 0 0 40px;
}

.box-right {
    width: 100%;
    height: 150px;
    padding: 0 50px 0 0;
}

.relative-box {
    position: relative;
}

.green-splash {
    position: absolute;
    right: 0;
    bottom: 0;
    transform: translate(-40%, 30%);
    width: clamp(120px, 12vw, 180px);
    height: clamp(120px, 12vw, 180px);
    background-image: url('../images/cmaranice.svg');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    text-align: center;
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* =========================================
   5. Profilové karty (Hlavní i běžné)
   ========================================= */
.profile-card {
    position: relative;
    min-width: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-content: flex-start;
    border: 2px solid #82b1d6;
    border-radius: 15px 15px 0 0;
    background: linear-gradient(to bottom, #c2def6 0%, #ffffff 70%, #ffffff 100%);
}

.area-center .profile-card {
    max-width: 420px;
    height: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.profile-card.profile-card-main {
    border-radius: 30px;
}

.profile-card.profile-card-main img {
    border-radius: 28px 28px 0 0;
}

.card-badge {
    position: absolute;
    top: 40px;
    left: -25px;
    width: 45px;
    height: 45px;
    background-color: #0b4b8a;
    color: white;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.4rem;
}

.area-center .profile-card .card-badge {
    width: 55px;
    height: 55px;
    top: 50px;
    left: -30px;
    font-size: 1.6rem;
}

.card-img {
    width: 100%;
    height: auto;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 13px 13px 0 0;
}

.card-content {
    padding: 1.5rem 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    line-height: 1.75;
}

.area-center .profile-card .card-content {
    gap: 20px;
    padding: 30px;
}

.card-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    color: #333;
}

.area-center .profile-card .card-content h3 {
    margin: 0;
    font-size: 1.6rem;
}

.card-content p {
    font-size: 1.1rem;
    color: #292929;
    margin-top: auto;
}

.area-center .profile-card .card-content p {
    margin: 0;
}

.card-content p strong {
    font-size: 1.1rem;
}

/* =========================================
   6. Mřížka galerie (20 malých karet)
   ========================================= */
.cards-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Striktně 4 sloupce */
    grid-template-rows: auto;
    gap: 30px;
    justify-items: center;
    width: 100%;
}

.cards-gallery .profile-card {
    width: 100%;
    max-width: 280px;
}

.site-footer {
    background-color: var(--color-green);
    color: white;
    text-align: center;
    padding: 20px 0;
    font-family: system-ui, -apple-system, sans-serif;
    border-top: 1px solid #eaeaea;
}

/* ==========================================================================
   RESPONZIVITA A MEDIA QUERIES
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

@media (max-width: 1200px) {
    .cards-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* MEDIA QUERY 1000px */
@media (max-width: 1000px) {
    .header__hamburger {
        padding: 8px;
        display: block;
    }

    .header__hamburger.is-active .header__hamburger_bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .header__hamburger.is-active .header__hamburger_bar:nth-child(2) {
        opacity: 0;
    }

    .header__hamburger.is-active .header__hamburger_bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Full-screen mobilní menu */
    .header__list {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 9;
        width: 100%;
        height: 100dvh;
        padding-top: 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 100px;
        background-color: #ffffff;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        transition: transform 0.4s ease-in-out, opacity 0.3s ease-in-out, visibility 0.4s;
    }

    .header__list.is-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .hero {
        gap: 10px;
        padding: 0 1.5rem;
    }

    .hero__features {
        gap: 5px;
    }

    .hero__feature-card {
        height: auto;
        min-height: 100px;
    }

    .hero__feature-icon {
        width: 55px;
        height: 45px;
    }

    .hero__feature-text {
        font-size: 0.85rem;
        max-width: 120px;
        height: auto;
        min-height: 45px;
    }

    /* Komprese log */
    .hero__logos {
        gap: 50px;
    }

    .hero__banner {
        grid-row: 3 / 5;
    }

    .highlight-banner {
        width: 100%;
        padding: 0;
        justify-content: center;
    }

    .orange-banner {
        gap: 10px;
    }

    .banner-icon {
        width: auto;
        display: flex;
        justify-content: center;
    }

    .banner-icon img {
        width: 50px;
    }

    .reference-wrapper {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 60px;
    }

    .reference-group {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 40px;
    }

    .reference-group__sidebar,
    .reference-group__gallery {
        grid-column: auto;
        width: 100%;
    }

    .reference-group__gallery {
        gap: 20px;
    }

    .hero-layout {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        /* Opět sloučeno pod 'top-left' */
        grid-template-areas:
            "top-left    top-right"
            "top-left    center"
            "bottom-left center"
            "mid-right   bottom-right";
        gap: 40px;
    }
}

/* MEDIA QUERY 800px */
@media (max-width: 800px) {
    .header {
        min-height: 50px;
    }

    .header .container {
        padding: 0 1rem;
    }

    .hero {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0 1rem 0 1.5rem;
    }

    .hero__image-wrapper {
        width: 100%;
        max-width: 480px;
        max-height: 480px;
        order: 1;
    }

    .hero__image {
        width: 100%;
        height: auto;
    }

    /* Fotka půjde na úplný začátek */
    .hero__content {
        order: 2;
    }

    /* Text hned pod fotku */
    .hero__features {
        order: 3;
    }

    /* Následují ikony */
    .hero__banner {
        order: 4;
    }

    /* Banner přesuneme pod ikony */
    .hero__silhouette {
        order: 5;
    }

    /* Silueta zapadne dolů */
    .hero__logos {
        order: 6;
    }

    /* Resetování Grid pozic pro všechny potomky */
    .hero__content,
    .hero__image-wrapper,
    .hero__features,
    .hero__silhouette,
    .hero__logos,
    .hero__banner {
        width: 100%;
        max-width: 100%;
        align-self: auto;
        margin: 0;
    }

    .hero__features {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .hero__feature-card {
        flex: 0 0 calc(33.333% - 20px);
        min-width: 100px;
    }

    .hero__banner {
        width: 100%;
        height: auto;
    }

    .hero__banner-content {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        padding: 3rem 1.5rem;
    }

    .hero__banner-bg {
        position: absolute;
        top: 0;
        left: 0;
        z-index: -1;
    }

    .orange-banner {
        width: 100%;
        height: auto;
        background-image: none;
        background-size: none;
        background-repeat: no-repeat;
        background-color: rgb(255, 123, 0);
        color: rgb(255, 255, 255);
        background-position: center center;
        gap: 10px;
    }

    .floating-image {
        transform: translate(0%, -80%);
    }

    .volební-program {
        max-width: 700px;
        padding: 0 1rem;
    }

    .nas-tym {
        margin: 50px 0 0 0;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        grid-template-areas:
            "top-right"
            "top-left"
            /* Zahrnuje nyní celý nadpis s ampersandem */
            "bottom-left"
            "center"
            "mid-right"
            "bottom-right";
        gap: 30px;
        margin-bottom: 60px;
    }

    .area-center .profile-card {
        max-width: 350px;
    }

    .cards-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 650px) {
    .cards-gallery .profile-card {
        width: 100%;
        max-width: 250px;
    }
}


/* MEDIA QUERY 480px */
@media (max-width: 500px) {
    .header__brand__slogan {
        display: none;
    }

    .header__brand a {
        width: 65px;
        height: 65px;
    }

    .section-header__title h3 {
        margin: 5px 0 0 0;
    }

    .section-header__leaf-box {
        display: none;
    }

    .volební-program {
        max-width: 380px;
        padding: 0 .5rem;
    }

    .program-item {
        align-items: start;
        flex-direction: column;
    }

    .pill-banner {
        max-width: 100%;
        margin-inline: 0;
    }

    .cards-gallery {
        max-width: 100%;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .area-center .profile-card {
        max-width: 300px;
    }

    .cards-gallery {
        grid-template-columns: 1fr;
    }

    .cards-gallery .profile-card {
        max-width: 250px;
    }
}