main {
    max-width: 900px;
    width: 100%;
    margin: 40px auto;
    padding: 0 20px 20px;
    flex: 1;
}

.tab {
    display: none;
    animation: fadeIn .4s ease-out;
}

.tab.active {
    display: block;
}

h2 {
    font-family: var(--fd);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: #fff;
    border-left: 5px solid var(--orange);
    padding-left: 15px;
    margin-bottom: 30px;
    text-shadow: 0 0 30px rgba(255, 158, 27, .25);
}

h3 {
    font-family: var(--fd);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orange);
    margin-top: 0;
}

.hero-content {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 40px;
    margin-bottom: 20px;
}

.hero-content p {
    line-height: 1.8;
    color: #c5c9ce;
}

.split-flex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0px;
    height: 200px;
}

.split-flex div {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    height: 100%;
    justify-items: center;
}

.split-flex div.special {
    position: relative;
    overflow: hidden;
}

.split-flex div.special::before,
.split-flex div.special::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 3px solid orange;
    transition: 0.4s ease;
    opacity: 0;
}

.split-flex div.special::before {
    top: 0;
    left: 0;
    border-right: 0;
    border-bottom: 0;
}

.split-flex div.special::after {
    bottom: 0;
    right: 0;
    border-left: 0;
    border-top: 0;
}

.split-flex div.special:hover::before,
.split-flex div.special:hover::after {
    opacity: 1;
    width: 40%;
    height: 40%;
}

.split-flex div img {
    display: block;
    max-width: 100%;
    height: 100%;
    transition: .5s;

}

.split-flex div img:hover {
    cursor: pointer;
    height: 101%;
    transition: .5s;
    filter: drop-shadow(0px 5px 10px rgba(215, 215, 215, 0.4));
}

.highlight {
    font-family: var(--fd);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--orange);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(255, 158, 27, .3);
}

.cta-box p {
    font-family: var(--fm);
    color: var(--muted);
    font-size: 13px;
}

/* REGULAMIN */

.rules-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rule-box {
    background: #15181b;
    border: 1px solid var(--border);
    padding: 20px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
}

.rule-box ul {
    color: #b0b5bc;
    line-height: 1.9;
    font-size: 14px;
    padding-left: 18px;
}

.rules-container-full {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rule-section {
    background: #15181b;
    border: 1px solid var(--border);
    padding: 20px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
}

.rule-section h3 {
    color: var(--orange);
    font-family: var(--fd);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.rule-section ul {
    color: #b0b5bc;
    line-height: 1.9;
    font-size: 14px;
    padding-left: 18px;
    margin: 0;
}

.rule-section ul li {
    margin-bottom: 4px;
}

.rule-section ul strong {
    color: #fff;
}

.info-box {
    background: rgba(255, 158, 27, .05);
    border-left: 4px solid var(--orange);
    padding: 20px 25px;
    margin: 20px 0;
}

.info-list {
    margin: 10px 0 0 0;
    padding-left: 20px;
    color: #c5c9ce;
    line-height: 2;
    font-size: 14px;
}

.info-list strong {
    color: var(--orange);
}

.info-list strong.redish {
    color: rgb(255, 102, 0);
}

.hero-info-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
}

.hero-info-text {
    flex: 1;
    padding-top: 0;
}

.hero-info-text .info-box {
    margin-top: 0;
    margin-bottom: 0;
}

.hero-info-image {
    border: 1px solid var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    align-self: stretch;
}

.info-img {
    width: 290px;
    display: block;
}

@media (max-width: 768px) {
    .rules-container {
        grid-template-columns: 1fr;
    }
}

/*credits*/

.credits {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 40px;
    margin-bottom: 40px;
}

.credits h2 {
    font-family: var(--fd);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: #fff;
    border-left: 5px solid var(--orange);
    padding-left: 15px;
    margin-bottom: 30px;
    text-shadow: 0 0 30px rgba(255, 158, 27, .25);
}

.credits-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.credit-box {
    background: #15181b;
    border: 1px solid var(--border);
    padding: 20px;
    flex: 1 1 220px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.credit-box h3 {
    font-family: var(--fd);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--orange);
    margin-top: 0;
    margin-bottom: 12px;
}

.credit-box p {
    color: #c5c9ce;
    font-family: var(--fm);
    font-size: 14px;
    margin: 4px 0;
}

.credit-box a {
    color: var(--orange);
    text-decoration: none;
}

.credit-box a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .credits-content {
        flex-direction: column;
    }
}