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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 75px;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #006a89;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

h2 {
    margin-bottom: 30px;
    text-align: center;
    font-size: 2.2rem;
}

h3 {
    font-size: 1.3rem;
}

a {
    color: #ffffff;
}

section {
    padding: 65px 0;
}

.section-dark {
    background: rgba(0, 0, 0, 0.1);
}

.center {
    text-align: center;
}

/* HERO */
.hero {
    min-height: 400px;
    height: 48vh;
    background: url('/img/hero.jpg') center/cover;
}

.overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    text-align: center;
}

.hero-label {
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.18em;
}

.hero h1 {
    margin-bottom: 12px;
    font-size: 3.7rem;
}

.hero-date {
    font-size: 1.35rem;
    font-weight: bold;
}

/* MENU */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #020617;
}

nav ul {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
}

nav a {
    display: block;
    padding: 10px 14px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s ease;
}

nav a:hover,
nav a:focus {
    background: #c8102e;
}

/* BUTTON */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 6px;
    background: #c8102e;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover,
.btn:focus {
    background: #a60d25;
    transform: translateY(-2px);
}

/* EVENT CARDS */
.event-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.event-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.12);
}

.event-heading {
    padding: 24px;
    background: #004f69;
}

.event-card-red .event-heading {
    background: #c8102e;
}

.event-heading p {
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.08em;
}

.event-heading h3 {
    font-size: 1.8rem;
}

.event-content {
    padding: 26px;
}

.event-content p {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.event-content .btn {
    width: 100%;
    margin-top: 22px;
}

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

.schedule-card {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.12);
}

.schedule-card h3 {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 2px solid #c8102e;
    text-align: center;
}

.schedule-card-amateur {
    background: rgba(200, 16, 46, 0.16);
}

.schedule-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.schedule-item:last-of-type {
    border-bottom: 0;
}

.schedule-item time {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
}

.schedule-item p + p {
    margin-top: 8px;
}

.schedule-note {
    margin-top: 22px;
    padding: 14px 18px;
    border-left: 4px solid #c8102e;
    background: rgba(0, 0, 0, 0.12);
}

/* DOWNLOADS */
.download-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

/* MAP */
.map-container {
    margin-top: 24px;
    overflow: hidden;
    border-radius: 12px;
}

.map-container iframe {
    display: block;
}

/* HOTELS */
.cards-hotele {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.12);
}

.card h3 {
    margin-bottom: 14px;
    text-align: center;
}

/* LOGOS */
.logo-section {
    padding: 60px 0;
}

.logo-section + .logo-section {
    padding-top: 30px;
}

.sponsors,
.organizers {
    display: grid;
    align-items: center;
    justify-items: center;
    gap: 35px;
}

.partners-grid {
    grid-template-columns: repeat(3, 1fr);
}

.sponsors-grid {
    grid-template-columns: repeat(5, 1fr);
}

.organizers {
    grid-template-columns: repeat(4, 1fr);
}

.organizer {
    width: 100%;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsors img,
.organizer img {
    width: auto;
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    display: block;
    transition: transform 0.25s ease;
}

.sponsors img:hover,
.organizer img:hover {
    transform: scale(1.05);
}

/* CONTACT */
.contact-section {
    background: #004f69;
}

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

.contact-cards a {
    padding: 22px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-cards span,
.contact-cards strong {
    display: block;
}

.contact-cards span {
    margin-bottom: 4px;
    opacity: 0.8;
}

/* FOOTER */
footer {
    padding: 22px 15px;
    background: #020617;
    text-align: center;
}

/* TABLET */
@media (min-width: 768px) and (max-width: 1023px) {
    .schedule-cards {
        grid-template-columns: 1fr;
    }

    .cards-hotele {
        grid-template-columns: repeat(2, 1fr);
    }

    .sponsors-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .organizers {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */
@media (max-width: 767px) {
    html {
        scroll-padding-top: 60px;
    }

    section {
        padding: 50px 0;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero {
        min-height: 430px;
        height: auto;
    }

    .overlay {
        min-height: 430px;
        padding: 55px 0;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-date {
        font-size: 1.1rem;
    }

    nav {
        overflow-x: auto;
    }

    nav .container {
        width: 100%;
    }

    nav ul {
        min-width: max-content;
        min-height: 58px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 0 8px;
    }

    .event-cards,
    .schedule-cards,
    .cards-hotele,
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .download-buttons,
    .download-buttons .btn {
        width: 100%;
    }

    .partners-grid,
    .sponsors-grid,
    .organizers {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .organizer {
        min-height: 95px;
    }

    .sponsors img,
    .organizer img {
        height: auto;
        max-height: 75px;
    }
}