:root {
    --primary-color: #173A8A;      /* tmavšia mestská modrá */
    --secondary-color: #F2C94C;    /* žltá / zlatá */
    --dark-color: #1E1E1E;         /* text */
    --light-color: #F7F9FC;        /* jemné pozadie */
    --white-color: #FFFFFF;
    --navbar-height: 90px;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.6;
    padding-top: var(--navbar-height);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 80px 0;
    scroll-margin-top: calc(var(--navbar-height) + 16px);
}

h1, h2, h3 {
    line-height: 1.2;
}


/* NAVIGÁCIA */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    width: 100%;
    height: var(--navbar-height);
    padding: 0 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background-color: var(--white-color);
    border-bottom: 1px solid rgba(23, 58, 138, 0.10);
    box-shadow: 0 4px 18px rgba(23, 58, 138, 0.06);
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.brand-logo {
    width: 65px;
    height: auto;
    display: block;
}

.brand-name {
    display: flex;
    flex-direction: column;
    color: var(--primary-color);
    font-size: 23px;
    font-weight: 700;
    line-height: 1.05;
}

.nav-menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: clamp(22px, 3vw, 48px);
    list-style: none;
}

.nav-menu a {
    display: block;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--dark-color);
    font-size: 17px;
    white-space: nowrap;

    transition:
        background-color 0.35s ease,
        color 0.35s ease,
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.nav-menu a:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
}

/* BURGER TLAČIDLO */

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    margin-left: auto;
    border: none;
    border-radius: 14px;
    background-color: rgba(23, 58, 138, 0.08);
    cursor: pointer;
    position: relative;
    z-index: 1002;

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    width: 24px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 999px;
    transition: 0.35s ease;
}

.navbar.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.navbar.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.navbar.nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.btn {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}


#program,
#contact {
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
}

/* HERO SEKCIA */

#hero .container {
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
}

#hero {
    min-height: calc(100vh - var(--navbar-height));
    padding: 0;
    position: relative;
    overflow: hidden;
    background: none;
}

#hero::before {
    content: "";
    position: absolute;
    inset: -20px;
    z-index: 0;

    background-image: url("./gallery/hero-background.png");
    background-size: 100% auto;
    background-position: 15% calc(50% + 50px);
    background-repeat: no-repeat;

    filter: blur(2px);
    transform: scale(1.03);
}

#hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background: rgba(0, 0, 0, 0.25);
}



.hero-text {
    max-width: 760px;
    position: relative;
    z-index: 2;
}

.hero-text span {
    display: block;
    font-size: 25px;
    font-weight: 700;
    color: var(--white-color);
    margin-bottom: 15px;
}

.hero-text h1 {
    font-size: 75px;
    line-height: 0.95;
    color: var(--white-color);
    margin: 0 0 40px;

    position: relative;
    display: inline-block;
}

.hero-text h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -15px;
    width: 70%;
    height: 6px;
    background-color: var(--secondary-color);
    border-radius: 10px;
}

.hero-text p {
    font-size: 26px;
    max-width: 650px;
    color: var(--secondary-color);
}

.motto {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    border-radius: 999px;
    
    color: var(--primary-color);
    font-weight: 800;
}

.hero-buttons {
    display: flex;
    gap: 18px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 14px 28px;
    border-radius: 999px;
    border: 2px solid var(--primary-color);
    font-size: 17px;
    font-weight: 700;
    transition:
        background-color 0.45s ease,
        color 0.45s ease,
        transform 0.35s ease,
        box-shadow 0.45s ease,
        border-color 0.45s ease;
}

.hero-btn:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.hero-btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.hero-btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    border-color: var(--secondary-color);
}

/* .hero-photo {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-photo img {
    max-width: 125%;
    width: 500px;
    height: 520px;
    object-fit: cover;
    border-radius: 20px;
} */

.hero-photo {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-self: flex-end;
    position: relative;
    z-index: 3;
    transform: translate(-250px, 45px);
}

.hero-photo img {
    width: 650px;
    max-width: none;
    height: auto;
    object-fit: contain;
    border-radius: 0;
}

/* .hero-photo img:hover {
    transform: translateY(-8px);
    box-shadow: 30px 30px 0 rgba(242, 201, 76, 0.9),
                0 35px 60px rgba(0, 0, 0, 0.30);
} */

/* OBRáZOK POD STRÁNKOU */

#about-me,
#program,
#contact {
    position: relative;
    z-index: 2;
    background-color: var(--light-color);
}

.image-reveal {
    position: relative;
    z-index: 1;
    height: 80vh;

    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* .image-reveal-1 {
    background-image: url("./gallery/reveal-image1.jpg");
    background-position: center top;
} */

.image-reveal-2 {
    background-image: url("./gallery/reveal-image1.jpg");
    background-position: center 30%;
}

/* ABOUT ME */

#about-me {
    display: block;
    min-height: auto;
    padding: 110px 0 0;
    background-color: #173A8A;
    /* background:
        radial-gradient(circle at top right, rgba(242, 201, 76, 0.16), transparent 32%),
        radial-gradient(circle at bottom left, rgba(23, 58, 138, 0.10), transparent 35%),
        var(--light-color); */
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 90px;
    background-color: var(--primary-color);
}

.about-title {
    font-size: 48px;
    color: var(--primary-color);
    text-align: center;

    position: relative;
    display: block;
    width: fit-content;
    margin: 0 auto 60px;
}

.about-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 100%;
    height: 5px;
    background-color: var(--secondary-color);
    border-radius: 10px;
}

.about-row {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    align-items: center;
    gap: 70px;
    
}

.about-row:nth-of-type(2) {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
}

.about-row-light {
    position: relative;
    padding: 90px 0;
    z-index: 1;
}

.about-row-light::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;

    background: linear-gradient(
        180deg,
        #2F61B4 0%,
        #4F7FCC 100%
    );
}

.about-row-light .about-card {
    background-color: transparent;
    border-radius: 0;
    padding-left: 0;
}

.about-row-trust-light {
    position: relative;
    padding: 90px 0 50px;
    z-index: 1;
}

.about-row-trust-light::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;

    background: linear-gradient(
        180deg,
        #2F61B4 0%,
        #4F7FCC 100%
    );
}

.about-row-trust-light .about-card {
    background-color: transparent;
    border-radius: 0;
}

.about-card {
    /* background-color: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(23, 58, 138, 0.08);
    border-radius: 28px; */
    color: #FFFFFF;
    padding: 42px;
    background-color: var(--primary-color);
    /* box-shadow: 0 20px 45px rgba(23, 58, 138, 0.08); */
}

.about-card h2,
.about-card h3 {
    color: var(--light-color);
}

.about-card h3 {
    font-size: 28px;
    margin-bottom: 22px;
    position: relative;
    display: inline-block;
}

.about-card h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 70%;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 10px;
}

.about-card p {
    font-size: 18px;
    line-height: 1.85;
    margin-bottom: 18px;
}

.about-card p:last-child {
    margin-bottom: 0;
}

.about-photo {
    position: relative;
}

.about-photo img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow:
        22px 22px 0 rgba(242, 201, 76, 0.85),
        0 28px 55px rgba(0, 0, 0, 0.20);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.about-me-picture2 img {
    box-shadow:
        
        28px 28px 0 rgba(23, 58, 138, 0.78),
        0 28px 55px rgba(0, 0, 0, 0.20);
}

.about-photo img:hover {
    transform: translateY(-8px);
    box-shadow:
        22px 22px 0 rgba(242, 201, 76, 0.85),
        0 38px 70px rgba(0, 0, 0, 0.25);
}

.about-me-picture2 img:hover {
    box-shadow:
        28px 28px 0 rgba(23, 58, 138, 0.78),
        0 38px 70px rgba(0, 0, 0, 0.25);
}

.about-me-priorities {
    border-left: 8px solid var(--secondary-color);
}

.priority-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.priority-list li {
    background-color: rgba(23, 58, 138, 0.05);
    border-radius: 18px;
    padding: 20px;
    font-size: 17px;
    line-height: 1.65;
}

.priority-list strong {
    color: var(--secondary-color);
}

.signature {
    font-weight: 700;
    color: var(--secondary-color);
}





/* PROGRAM */

#program .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 48px;
    color: var(--light-color);
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 70%;
    height: 5px;
    background-color: var(--secondary-color);
    border-radius: 10px;
}

.program-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 25px;
    width: 100%;
}

.program-card {
    width: 100%;
    height: 320px;
    perspective: 1000px;
    cursor: pointer;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.program-card:hover {
    transform: translateY(-10px) rotateZ(-1.5deg) scale(1.03);
}

.program-card:hover .program-card-front,
.program-card:hover .program-card-back {
    box-shadow: 0 28px 55px rgba(0, 0, 0, 0.22);
}

.program-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
    transform-style: preserve-3d;
}

.program-card.is-flipped .program-card-inner {
    transform: rotateY(180deg);
}

.program-card-front,
.program-card-back {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    overflow: hidden;
    backface-visibility: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

.program-card-front {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 25px;
    color: var(--white-color);
}

.program-card-front::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75),
        rgba(0, 0, 0, 0.25)
    );
}

.program-card-front h3 {
    position: relative;
    z-index: 1;
    font-size: 24px;
    line-height: 1.2;
}

.program-card-back {
    background-color: var(--white-color);
    color: var(--dark-color);
    padding: 28px;
    transform: rotateY(180deg);

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.program-card-back h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 18px;
}

.program-card-back p {
    font-size: 16px;
    line-height: 1.7;
}

/* POLOŽ OTÁZKU */

#question,
#transparent-account {
    padding: 110px 0;
    background-color: var(--light-color);
    position: relative;
    z-index: 2;
}

.question-container,
.transparent-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.text-detail p,
.transparent-container p {
    font-size: 19px;
    line-height: 1.8;
    color: var(--dark-color);
}

.question-form {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 28px;
    box-shadow: 0 20px 45px rgba(23, 58, 138, 0.10);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.question-form input,
.question-form textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid rgba(23, 58, 138, 0.18);
    border-radius: 16px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
}

.question-form textarea {
    min-height: 160px;
    resize: vertical;
}

.question-form input:focus,
.question-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(23, 58, 138, 0.10);
}

.question-form button {
    border: none;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 15px 26px;
    border-radius: 999px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.35s ease;
}

.question-form button:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

/* TRANSPARENTNÝ ÚČET */

.account-box {
    margin-top: 30px;
    background-color: var(--white-color);
    padding: 28px;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(23, 58, 138, 0.10);
}

.account-box p {
    margin-bottom: 22px;
    font-size: 18px;
}

.qr-box {
    background-color: var(--white-color);
    padding: 35px;
    border-radius: 28px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(23, 58, 138, 0.10);
}

.qr-box img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    margin: 0 auto 20px;
}

.qr-box p {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 700;
}

/* KONTAKT */

#contact {
    min-height: auto;
    padding: 110px 0 60px;
    display: block;
    background:
        radial-gradient(circle at top left, rgba(242, 201, 76, 0.16), transparent 32%),
        radial-gradient(circle at bottom right, rgba(23, 58, 138, 0.10), transparent 35%),
        var(--light-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.contact-text p {
    font-size: 20px;
    line-height: 1.8;
    max-width: 560px;
    color: var(--dark-color);
}

.contact-buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 35px;
}

.contact-card {
    background-color: var(--white-color);
    border-radius: 30px;
    padding: 42px;
    box-shadow: 0 25px 55px rgba(23, 58, 138, 0.12);
    border: 1px solid rgba(23, 58, 138, 0.08);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--secondary-color)
    );
}

.contact-card h3 {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.contact-position {
    font-size: 17px;
    color: var(--dark-color);
    margin-bottom: 35px;
    line-height: 1.6;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    background-color: rgba(23, 58, 138, 0.05);
    padding: 18px 20px;
    border-radius: 18px;
}

.contact-item span {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.contact-item a,
.contact-item p {
    font-size: 18px;
    color: var(--dark-color);
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}



#program,
#question,
#transparent-account,
#contact {
    background: linear-gradient(
        180deg,
        #173A8A 0%,
        #2B55A0 50%,
        #BFD0F0 100%
    );
}

/* KONTAKT - MOBIL */



/* MOBIL */




/* SCROLL ANIMÁCIE */

.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition:
        opacity 0.9s ease,
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up {
    transform: translateY(70px);
}

.reveal-left {
    transform: translateX(-80px);
}

.reveal-right {
    transform: translateX(80px);
}

.reveal-show {
    opacity: 1;
    transform: translate(0, 0);
}

.form-message {
    min-height: 24px;
    margin-top: 4px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.form-message.success {
    color: #18733c;
}

.form-message.error {
    color: #b42318;
}

.question-form button:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}


/* RESPONZÍVNY LAYOUT */


/* =========================================================
   MEDIA QUERIES – VŠETKY RESPONZÍVNE PRAVIDLÁ SÚ NASPODKU
   ========================================================= */

@media (max-width: 1050px) {
    :root {
        --navbar-height: 88px;
    }

    .navbar {
        padding: 0 22px;
    }

    .brand {
        gap: 12px;
    }

    .brand-logo {
        width: 62px;
    }

    .brand-name {
        font-size: 21px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;

        padding: 16px;
        background-color: var(--white-color);
        border: 1px solid rgba(23, 58, 138, 0.08);
        border-radius: 0 0 20px 20px;
        box-shadow: 0 20px 45px rgba(23, 58, 138, 0.18);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-12px);

        transition:
            opacity 0.35s ease,
            transform 0.35s ease,
            visibility 0.35s ease;
    }

    .navbar.nav-open .nav-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-menu a {
        width: 100%;
        padding: 13px 16px;
        border-radius: 14px;
        font-size: 16px;
    }
}

@media (max-width: 950px) {
    .about-row,
    .about-row:nth-of-type(2) {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-row:nth-of-type(2) .about-photo {
        order: -1;
    }

    .about-card {
        padding: 32px;
    }

    .priority-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 950px) {
    

    .hero-text h1 {
        font-size: 64px;
    }

    .hero-text span {
        font-size: 24px;
    }

    .hero-text p {
        font-size: 22px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-photo {
        justify-content: center;
    }

    .hero-photo img {
        width: 340px;
        height: 430px;
    }

    .program-cards {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 850px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .contact-card {
        padding: 32px;
    }
}

@media (max-width: 850px) {
    .question-container,
    .transparent-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    #about-me {
        padding: 70px 0;
    }

    .about-container {
        gap: 55px;
    }

    .about-card {
        padding: 26px 22px;
        border-radius: 22px;
    }

    .about-card h3 {
        font-size: 24px;
    }

    .about-card p,
    .priority-list li {
        font-size: 16px;
        line-height: 1.75;
    }

    .about-photo img {
        height: 380px;
        box-shadow:
            14px 14px 0 rgba(23, 58, 138, 0.65),
            0 20px 38px rgba(0, 0, 0, 0.18);
    }

    .about-me-picture2 img {
        box-shadow:
            14px 14px 0 rgba(242, 201, 76, 0.8),
            0 20px 38px rgba(0, 0, 0, 0.18);
    }
}

@media (max-width: 600px) {
    #contact {
        padding: 75px 0 45px;
    }

    .contact-text p {
        font-size: 17px;
    }

    .contact-card {
        padding: 28px 22px;
        border-radius: 24px;
    }

    .contact-card h3 {
        font-size: 25px;
    }

    .contact-item a,
    .contact-item p {
        font-size: 16px;
    }
}

@media (max-width: 600px) {
    section {
        padding: 65px 0;
        scroll-margin-top: 85px;
    }

    .hero-text h1 {
        font-size: 48px;
    }

    .hero-text span {
        font-size: 19px;
    }

    .hero-text p {
        font-size: 18px;
    }

    .hero-btn {
        width: 100%;
        text-align: center;
    }

    .hero-photo img {
        width: 280px;
        height: 360px;
        box-shadow:
            15px 15px 0 rgba(242, 201, 76, 0.8),
            0 20px 38px rgba(0, 0, 0, 0.22);
    }

    .section-title,
    .about-title {
        font-size: 36px;
    }

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

    .program-card {
        height: 300px;
    }

    .image-reveal {
        height: 45vh;
        background-attachment: scroll;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 0 16px;
    }

    .brand-logo {
        width: 58px;
    }

    .brand-name {
        font-size: 19px;
    }

    .nav-menu {
        left: 10px;
        right: 10px;
    }
}

/* HERO – TABLET */

@media (max-width: 1050px) {
    #hero {
        min-height: calc(100svh - var(--navbar-height));
    }

    #hero .container {
        min-height: calc(100svh - var(--navbar-height));
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
        align-items: end;
        gap: 30px;

        padding: 25px 30px 0;
        text-align: left;
    }

    .hero-photo {
        width: 100%;
        min-width: 0;
        align-self: end;
        justify-content: center;

        /* zruší pôvodný veľký posun */
        transform: none;
    }

    .hero-photo img {
        width: min(100%, 500px);
        max-width: 100%;
        height: auto;
    }

    .hero-text {
        width: 100%;
        max-width: 460px;
        align-self: center;
        padding-bottom: 30px;
    }

    .hero-text h1 {
        font-size: 56px;
        line-height: 0.95;
        margin-bottom: 34px;
    }

    .hero-text span {
        font-size: 20px;
        line-height: 1.45;
        margin-bottom: 12px;
    }

    .hero-text p {
        font-size: 22px;
        line-height: 1.3;
    }

    .motto {
        margin-top: 8px;
        padding: 5px 0;
    }

    .hero-buttons {
        margin-top: 22px;
    }
}

/* HERO – MOBIL */

@media (max-width: 700px) {
    #hero {
        min-height: auto;
    }

    #hero .container {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 25px;

        padding: 35px 22px 0;
        text-align: center;
    }

    .hero-text {
        order: 1;
        max-width: 100%;
        padding-bottom: 0;
    }

    .hero-photo {
        order: 2;
        align-self: end;
    }

    .hero-photo img {
        width: min(82vw, 390px);
        height: auto;
        margin: 0 auto;
    }

    .hero-text h1 {
        font-size: 46px;
        margin-bottom: 30px;
    }

    .hero-text h1::after {
        left: 50%;
        width: 65%;
        transform: translateX(-50%);
    }

    .hero-text span {
        font-size: 18px;
    }

    .hero-text p {
        font-size: 20px;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (min-width: 951px) and (max-width: 1050px) {
    .hero-photo {
        transform: translateY(8px);
    }
}


/* HERO – TABLET */

@media (min-width: 701px) and (max-width: 1050px) {
    #hero {
        min-height: calc(100svh - var(--navbar-height));
    }

    #hero::before {
        inset: -10px;
        background-size: cover;
        background-position: center;
    }

    #hero .container {
        min-height: calc(100svh - var(--navbar-height));
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
        align-items: stretch;
        gap: 25px;

        padding: 0 30px;
        text-align: left;
    }

    .hero-photo {
        width: 100%;
        min-width: 0;
        height: 100%;

        display: flex;
        align-items: flex-end;
        justify-content: center;
        align-self: stretch;

        transform: none;
    }

    .hero-photo img {
        display: block;
        width: min(100%, 500px);
        max-width: 100%;
        height: auto;

        /* mierne zasunutie pod spodný okraj */
        transform: translateY(3px);
    }

    .hero-text {
        width: 100%;
        max-width: 470px;
        align-self: center;
        padding: 20px 0;
    }

    .hero-text h1 {
        font-size: 56px;
        line-height: 0.95;
        margin-bottom: 34px;
    }

    .hero-text span {
        font-size: 20px;
        line-height: 1.45;
    }

    .hero-text p {
        font-size: 22px;
        line-height: 1.35;
    }

    .hero-buttons {
        justify-content: flex-start;
    }
}

/* HERO – MOBILNÉ ZARIADENIA */

@media (max-width: 767px) {
    #hero {
        min-height: auto;
        padding: 0;
        overflow: hidden;
    }

    #hero::before {
        inset: 0;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        transform: none;
        filter: blur(1px);
    }

    #hero .container {
        min-height: auto;
        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;

        gap: 26px;
        padding: 38px 20px 0;
        text-align: center;
    }

    .hero-text {
        order: 1;
        width: 100%;
        max-width: 520px;
        align-self: auto;
        padding: 0;
    }

    .hero-text h1 {
        font-size: clamp(42px, 11vw, 58px);
        line-height: 1;
        margin: 0 0 36px;
    }

    .hero-text h1::after {
        left: 50%;
        width: 65%;
        transform: translateX(-50%);
    }

    .hero-text span {
        font-size: clamp(18px, 4.5vw, 22px);
        line-height: 1.45;
        margin-bottom: 18px;
    }

    .hero-text p {
        font-size: clamp(20px, 5vw, 25px);
        line-height: 1.35;
    }

    .motto {
        margin-top: 8px;
        padding: 6px 0;
    }

    .hero-buttons {
        width: 100%;
        margin-top: 24px;

        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .hero-btn {
        width: 100%;
        padding: 14px 20px;
        text-align: center;
    }

    .hero-photo {
        order: 2;
        width: 100%;
        height: auto;
        min-height: 0;

        display: flex;
        align-items: flex-end;
        justify-content: center;
        align-self: auto;

        margin: 0;
        transform: none;
    }

    .hero-photo img {
        width: min(90vw, 430px);
        max-width: 100%;
        height: auto;

        margin: 0 auto;
        object-fit: contain;

        transform: translateY(4px);

        /* odstráni žltú zvislú čiaru */
        box-shadow: none;
        border-radius: 0;
    }
}

/* VEĽKÝ TELEFÓN – POSUN POSTAVY A POZADIA DOĽAVA */

@media (max-width: 820px) {
    #hero::before {
        background-position: 75% center !important;
    }

    #hero .hero-photo img {
        transform: translate(-80px, 4px) !important;
    }
}

@media (max-width: 820px) {
    #hero::before {
        background-size: cover !important;
        background-position: center center !important;
    }

    #hero .hero-photo img {
        transform: translate(-80px, 4px) !important;
    }

    /* Menšie písmo v hero sekcii */
    .hero-text h1 {
        font-size: clamp(36px, 8vw, 46px) !important;
        line-height: 1;
    }

    .hero-text span {
        font-size: clamp(16px, 3.8vw, 19px) !important;
        line-height: 1.4;
    }

    .hero-text p {
        font-size: clamp(18px, 4.2vw, 21px) !important;
        line-height: 1.35;
    }
}