@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&display=swap');

.instrukcje-container {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 40px;
}

.instrukcje-container * {
    box-sizing: border-box;
}

#title {
    font-size: 32px;
    margin-bottom: 40px;
    margin-top: 35px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
}

.divider {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    border: 0;
    border-top: 1px solid #2a2a2a;
    margin-bottom: 2rem;
}

.zasady-wrapper {
    max-width: 780px;
    margin: 0 auto 2rem;
    padding: 1rem;
}

.zasady-title {
    font-size: 22px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    text-align: center;
    margin-bottom: 2rem;
}

.zasady-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.zasady-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    border-left: 3px solid #ffdd44;
    border-radius: 0 15px 15px 0;
    background: #1e2328;
    text-align: left;
}

.zasady-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: #1e2328;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zasady-text {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
    padding-top: 2px;
}

.zasady-text a {
    color: #ffdd44;
    text-decoration: none;
}

.zasady-text a:hover {
    text-decoration: underline;
}

#platform-selection {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.platform {
    background: #161b1f;
    border: 1.5px solid #2a2a2a;
    border-radius: 10px;
    padding: 10px 22px;
    color: #aaa;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 10px;
}

.platform:hover {
    border-color: #ffdd44;
    color: #fff;
}

.platform.active {
    border-color: #ffdd44;
    color: #ffdd44;
    background: #1e2328;
}

.subplatform {
    font-size: 12px;
    padding: 7px 14px;
    border-color: #3a3f45;
}

.subplatform.active {
    border-color: #e0e0e0;
    color: #e0e0e0;
    background: #1e2328;
}

.content-wrapper {
    display: none;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 1rem;
}

.content-wrapper.active {
    display: block;
}

#steam-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, margin 0.45s ease;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 0;
    margin-top: -1rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

#steam-submenu.visible {
    max-height: 100px;
    margin-bottom: 2rem;
    margin-top: 0;
    padding-top: 0rem;
}

.content-title {
    font-size: 22px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    text-align: center;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.inst-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.inst-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #161b1f;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.inst-step-num {
    min-width: 28px;
    height: 28px;
    background: #ffdd44;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}

.inst-step-text {
    font-size: 15px;
    color: #ccc;
    line-height: 1.6;
    padding-top: 3px;
}

.inst-step-text ul {
    margin: 8px 0 0 0;
    padding-left: 16px;
    list-style: disc;
}

.inst-step-text ul li {
    margin-bottom: 4px;
    font-size: 14px;
    color: #aaa;
}

.inst-step-text a {
    color: #ffdd44;
    text-decoration: none;
}

.inst-step-text a:hover {
    text-decoration: underline;
}

.faq-section {
    margin-top: 2rem;
    max-width: 780px;
}

.faq-item {
    overflow: hidden;
}

.faq-toggle {
    background: transparent;
    border: none;
    padding: 12px 0;
    color: #aaa;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    width: auto;
}

.faq-toggle:hover {
    color: #ffdd44;
}

.faq-toggle:focus {
    outline: none;
}

.faq-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 10px;
    color: inherit;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-top: 8px;
}

.faq-content p {
    margin: 0;
    padding: 12px 0;
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
    background: transparent;
    border: none;
    text-align: left;
}

.faq-small {
    font-size: 10px !important;
}

.faq-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 12px 0 0;
    max-height: 400px;
    width: auto;
}

.faq-item.open .faq-toggle {
    color: #ffdd44;
    font-weight: 600;
}

.global-faq-wrapper {
    max-width: 780px;
    margin: 25px auto 0;
    padding: 3rem 1rem 1rem;
    text-align: center;
}

.global-faq-button {
    text-decoration: none;
    color: #bbb;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.global-faq-content {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.global-faq-icon {
    flex-shrink: 0;
}

.global-faq-text {
    letter-spacing: 0.02em;
}

.global-faq-button:hover {
    border-color: #ffdd44;
    color: #fff;
    background: rgba(10, 10, 10, 0.4);
    transform: translateY(-1px);
}

@media (max-width: 749px) {
    #platform-selection {
        flex-wrap: wrap;
    }
    .platform {
        width: calc(50% - 8px);
        text-align: center;
    }
    .zasady-grid {
        grid-template-columns: 1fr;
    }
    #platform-selection .platform:nth-child(2) {
        order: 3;
    }
    #platform-selection .platform:nth-child(3) {
        order: 2;
    }
    .faq-section {
        margin-left: 0;
        margin-right: 0;
    }
    .global-faq-wrapper {
        text-align: center;
    }
}

.faq-toggle,
.faq-toggle:focus,
.faq-toggle:active,
.faq-toggle:visited {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
    padding: 12px 0 !important;
    width: auto !important;
    color: #aaa !important;
}

.faq-toggle:hover {
    color: #ffdd44 !important;
    background: transparent !important;
}

.faq-item.open .faq-toggle,
.faq-item.open .faq-toggle:focus,
.faq-item.open .faq-toggle:hover {
    color: #ffdd44 !important;
    background: transparent !important;
}