/* ============================================================
   GLOBAL RESET
============================================================ */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    background: #fff3ef;
    color: #2c1c1b;
}

/* ============================================================
   WRAPPER
============================================================ */
.regulamin-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(40px, 6vw, 80px) 5vw;
    display: flex;
    gap: 40px;
}

/* ============================================================
   SPIS TREŚCI
============================================================ */
.toc {
    position: sticky;
    top: 120px;
    flex: 0 0 260px;
    align-self: flex-start;
    background: #f0dfc8;
    padding: 20px;
    border-radius: 16px;
}

.toc h3 {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 10px;
}

.toc a {
    display: block;
    font-size: 15px;
    margin: 6px 0;
    text-decoration: none;
    color: #2c1c1b;
}

.toc a:hover {
    text-decoration: underline;
}

/* ============================================================
   TREŚĆ
============================================================ */
.regulamin-content {
    flex: 1;
}

.regulamin-content h2 {
    font-size: clamp(24px, 3vw, 32px);
    margin-top: 40px;
    font-weight: 900;
    color: #cc6d29;
}

.regulamin-content h3 {
    font-size: clamp(20px, 2.2vw, 28px);
    margin-top: 26px;
    font-weight: 700;
}

.regulamin-content p,
.regulamin-content li {
    font-size: 16px;
    margin-bottom: 12px;
}

.regulamin-content ul {
    padding-left: 20px;
}

/* DOWNLOAD BUTTON */
.download-form-link {
    display: inline-block;
    padding: 12px 22px;
    background: #8f6b6b;
    color: white;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.download-form-link:hover {
    background: #a38080;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* ============================================================
   FOOTER
============================================================ */
.footer {
    width: 100%;
    background: #8f6b6b;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

.footer-copy {
    color: white;
    font-size: 16px;
    margin-bottom: 10px;
}

.footer-icons img {
    width: 34px;
    margin: 0 8px;
}

/* ============================================================
   MENU DESKTOP
============================================================ */
.menu {
    width: 100%;
    background-color: #8f6b6b;
    position: sticky;
    top: 0;
    z-index: 5000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.menu-inner {
    width: 100%;
    padding: 1.2rem 3vw;
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-logo {
    height: clamp(2rem, 5vh, 3.2rem);
}

.menu-left,
.menu-right {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.menu-link {
    font-size: clamp(1.2rem, 1.4vw, 1.5rem);
    font-weight: 400;
    text-decoration: none;
    color: white;
    opacity: .95;
    transition: opacity .2s ease;
}

.menu-link:hover {
    opacity: 1;
}

/* ============================================================
   HAMBURGER
============================================================ */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .33rem;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    padding: .5rem;
    z-index: 9001;
}

.burger-line {
    width: 2rem;
    height: .22rem;
    background: white;
    border-radius: 1rem;
    transition: all .3s ease;
}

.menu-toggle[aria-expanded="true"] .burger-line:nth-child(1) {
    transform: translateY(.55rem) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .burger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .burger-line:nth-child(3) {
    transform: translateY(-.55rem) rotate(-45deg);
}

/* ============================================================
   MOBILE MENU
============================================================ */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #8f6b6b;
    backdrop-filter: blur(2px);
    padding-top: 14vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3vh;
    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-logo {
    width: clamp(3rem, 12vw, 5rem);
}

.mobile-menu-item {
    font-size: clamp(1.4rem, 6vw, 2.5rem);
    color: white;
    text-decoration: none;
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.4rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

/* ============================================================
   RESPONSYWNOŚĆ MENU (1050px — jak w polityce)
============================================================ */
@media (max-width: 1050px) {
    .menu-right,
    .menu-link {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
}

/* Small phones */
@media (max-width: 600px) {
    .menu-inner {
        padding: 1rem 2.5vw;
    }
}

/* ============================================================
   RESPONSYWNOŚĆ LAYOUTU
============================================================ */
@media (max-width: 900px) {
    .regulamin-wrapper {
        flex-direction: column;
    }
    .toc {
        position: static;
        width: 100%;
    }
}
