/* ---------------- ФОН ---------------- */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden;

    background:
        linear-gradient(115deg, rgba(0, 0, 0, 0.25) 0%, transparent 40%),
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 1px,
            transparent 1px,
            transparent 40px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 1px,
            transparent 1px,
            transparent 40px
        ),
        linear-gradient(to bottom, #3abd67, #1c6038);
    background-attachment: fixed;
}

/* vh-фікс для iPad */
:root {
    --vh: 1vh;
}


/* ---------------- ХЕДЕР ---------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 20px 20px 10px;
    z-index: 1000;
}

.logo {
    width: 320px;
    margin-bottom: 5px;
}

.event-title {
    font-size: 26px;
    color: #fff;
    margin: 0;
}

/* iPad + планшети */
@media (max-width: 1024px) {
    .logo { width: 280px; }
    .event-title { font-size: 22px; }
}

@media (max-width: 768px) {
    .logo { width: 220px; }
    .event-title { font-size: 20px; }
}


/* ---------------- КОНТЕНТ ---------------- */

.wrapper {
    margin-top: 150px; /* відступ під фіксований хедер */
}

@media (max-width: 1024px) {
    .wrapper { margin-top: 120px; }
}

@media (max-width: 768px) {
    .wrapper { margin-top: 100px; }
}

.iframe-section {
    height: calc(var(--vh) * 100);  /* vh-фікс */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.iframe-section iframe {
    width: 100%;
    max-width: 900px;
    height: min(65vh, 600px); /* iPad-friendly */
    border-radius: 12px;
    border: none;
}

/* iPad */
@media (max-width: 1024px) {
    .iframe-section iframe {
        height: min(62vh, 560px);
    }
}

@media (max-width: 768px) {
    .iframe-section iframe {
        height: min(58vh, 520px);
    }
}


/* ---------------- НИЖНЯ НАВІГАЦІЯ ---------------- */

.bottom-nav {
    position: fixed;
    bottom: 35px;                        /* стабільна позиція */
    padding-bottom: env(safe-area-inset-bottom);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 80px);
    max-width: 900px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
    z-index: 999;
}

/* Кнопки */
.nav-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    transition: background .2s;
    z-index: 2000;
}

.nav-btn:hover {
    background: rgba(0,0,0,0.85);
}

.to-bottom-btn {
    animation: bounceDown 1.4s infinite;
}

@keyframes bounceDown {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(6px); }
    100% { transform: translateY(0); }
}

.to-top-btn {
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

.to-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
}


/* ---------------- НУМЕРАЦІЯ ---------------- */

.bottom-steps ul {
    list-style: none;
    display: flex;
    gap: 12px;
    padding: 0;
    margin: 0;
}

.bottom-steps li {
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: 50%;
    font-size: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: .2s;
}

.bottom-steps li:hover {
    background: rgba(255,255,255,0.7);
    color: #000;
}

.bottom-steps li.active {
    background: #fff;
    color: #000;
    font-weight: bold;
}

/* ---------------- АДАПТАЦІЯ ---------------- */

@media (max-width: 768px) {
    .nav-btn {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .bottom-steps li {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}
