:root {
    --green: #009c3b;
    --yellow: #ffdf00;
    --blue: #002776;
    --blue-soft: #163a86;
    --card: #f1f1f1;
    --ink: #1c1c1c;
}

* {
    box-sizing: border-box;
}

html {
    background: #fff;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
}

button,
input {
    font-family: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

#wrapper {
    display: flex;
    flex-direction: column;
    width: 1300px;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    padding: 0 15px 20px;
}

header {
    display: flex;
    align-items: center;
    min-height: 80px;
    margin: 20px 0 12px;
    position: relative;
}

.logo-link {
    display: block;
    width: 173px;
    max-width: 60%;
}

.logo-link img {
    display: block;
    width: 173px;
    height: auto;
}

.mobile-menu,
.themenumobile,
.escape-mobile-menu {
    display: none;
}

.main-nav {
    background: var(--blue);
    border-radius: 10px;
    margin: 0 0 18px;
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 6px 8px;
}

.main-nav a {
    display: block;
    min-width: 80px;
    padding: 6px 12px;
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.4px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.main-nav a:hover,
.main-nav a:focus-visible {
    background: var(--green);
}

#main {
    display: flex;
    flex: 1 0 auto;
    align-items: flex-start;
    gap: 16px;
}

.article-wrapper {
    width: 74%;
}

.extra-content {
    width: 26%;
}

.title,
h1.article-title {
    position: relative;
    margin: 8px 0 18px;
    padding-bottom: 12px;
    color: var(--green);
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.05;
    text-transform: uppercase;
}

h1.article-title::after,
.extra-content .title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 96%;
    height: 4px;
    background: var(--yellow);
}

.byline {
    margin: -6px 0 16px;
    color: var(--blue);
    font-size: 16px;
    font-weight: 700;
}

.top5in {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 10px;
}

.top5b {
    display: flex;
    width: calc(50% - 20px);
    margin: 10px;
    background: var(--card);
    border-radius: 10px;
}

.top5b:first-of-type {
    width: calc(100% - 20px);
}

.top5b .o {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 16px 12px 18px;
}

.top5b:first-of-type .o {
    display: grid;
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
    justify-content: center;
    align-items: center;
    column-gap: 28px;
    row-gap: 8px;
    min-height: 280px;
    padding: 28px 4% 32px;
}

.top5b:first-of-type .top5al {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.top5b:first-of-type .top5b1 {
    grid-column: 2;
    grid-row: 1;
}

.top5b:first-of-type .nvb {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    margin-top: 8px;
}

.nm {
    color: var(--blue);
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.nmt p {
    margin: 4px 0;
    color: var(--blue);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
}

.nmt span {
    font-weight: 400;
}

.top5al {
    position: relative;
    width: 297px;
    max-width: 100%;
}

.top5al img {
    display: block;
    width: 297px;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.sp,
.nvb {
    display: block;
    color: #fff;
    font-weight: 800;
    text-align: center;
}

.sp {
    position: absolute;
    top: -4px;
    right: -3px;
    width: 122px;
    height: 40px;
    border-radius: 10px;
    background: var(--green);
    font-size: 18px;
    line-height: 40px;
}

.nvb {
    text-decoration: none;
    width: 100%;
    max-width: 280px;
    height: 55px;
    margin: 16px auto 0;
    padding: 0 12px;
    border-radius: 5px;
    background: var(--yellow);
    color: var(--blue);
    font-size: 22px;
    line-height: 55px;
    white-space: nowrap;
}

.freegames {
    margin: 18px 0 28px;
}

.freetabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 10px 6px 0;
    list-style: none;
    background: #163016;
}

.freetabs li {
    flex: 1 1 auto;
    border-radius: 5px 5px 0 0;
    text-align: center;
}

.freetabs button {
    width: 100%;
    padding: 8px 6px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.freetabs li.active {
    background: #fff;
}

.freetabs li.active button {
    color: var(--blue);
}

.freetabs li:not(.active):hover {
    background: var(--yellow);
}

.freetabs li:not(.active):hover button {
    color: var(--blue);
}

.tabs_container > div {
    display: none;
    padding: 12px 4px 4px;
}

.tabs_container > div.active {
    display: block;
}

.games {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px 10px;
}

.fnew img {
    display: block;
    width: 100%;
    height: 125px;
    object-fit: cover;
    background: #eaeaea;
}

.fnew span {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
}

.maintext h2 {
    margin: 22px 0 12px;
    color: var(--blue);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.maintext p,
.maintext li {
    font-size: 16px;
    line-height: 1.75;
}

.maintext p {
    margin: 0 0 14px;
}

.maintext ul {
    margin: 0 0 18px 22px;
    padding: 0;
}

.maintext li {
    margin: 0 0 12px;
}

.maintext::after {
    content: "";
    display: block;
    clear: both;
}

.maintext h3 {
    margin: 20px 0 10px;
    color: var(--green);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
}

.maintext a {
    color: var(--blue);
    font-weight: 700;
}

.faq {
    margin: 0 0 22px;
}

.faq-item {
    margin: 0 0 10px;
    border: 2px solid var(--green);
    border-radius: 10px;
    background: #fff;
}

.faq-item[open] {
    background: #f5f8f2;
}

.faq-item summary {
    position: relative;
    padding: 14px 52px 14px 16px;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 14px;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--blue);
    font-size: 22px;
    font-weight: 800;
    line-height: 28px;
    text-align: center;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item summary:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 2px;
}

.maintext .faq-item h3 {
    margin: 0;
    color: var(--blue);
    font-size: 19px;
}

.faq-item__answer {
    padding: 0 16px 4px;
}

.lead {
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 1.65;
}

.content-img {
    margin: 18px 0 22px;
}

.content-img img {
    display: block;
    width: 100%;
    border-radius: 10px;
}

.table-wrap {
    margin: 0 0 20px;
    overflow-x: auto;
    border: 2px solid var(--green);
    border-radius: 10px;
}

.table-wrap--small {
    max-width: 420px;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.5;
}

.table-wrap th {
    padding: 10px 12px;
    background: var(--green);
    color: #fff;
    text-align: left;
    text-transform: uppercase;
}

.table-wrap td {
    padding: 10px 12px;
    border-top: 1px solid #d9e6dc;
    vertical-align: top;
}

.table-wrap tbody tr:nth-child(even) {
    background: #f5f8f2;
}

.table-wrap td strong {
    color: var(--blue);
    white-space: nowrap;
}

.author-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;
    margin: -4px 0 16px;
    padding: 10px 14px;
    border-left: 4px solid var(--yellow);
    border-radius: 10px;
    background: var(--card);
}

.author-strip__person {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-strip__avatar,
.author-bio__avatar,
.author-head__avatar {
    flex: 0 0 auto;
    border-radius: 50%;
    object-fit: cover;
}

.author-strip__avatar {
    width: 56px;
    height: 56px;
}

.author-strip__label,
.author-strip__role,
.author-strip__date {
    font-size: 14px;
    color: #555;
}

.author-strip__name,
.author-bio__name a {
    color: var(--blue);
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
}

.author-bio {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 28px 0 0;
    padding: 18px;
    border: 3px solid var(--green);
    border-radius: 10px;
}

.author-bio__avatar {
    width: 96px;
    height: 96px;
}

.author-bio__role {
    color: var(--green);
    font-weight: 700;
}

.author-bio p {
    margin: 8px 0 0;
    line-height: 1.6;
}

.article-wrapper--full {
    width: 100%;
    max-width: 960px;
}

.breadcrumb {
    margin: 0 0 6px;
    font-size: 14px;
    color: #555;
}

.breadcrumb a {
    color: var(--blue);
    font-weight: 700;
}

.author-head {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0 0 10px;
}

.author-head__avatar {
    width: 200px;
    height: 200px;
    border: 4px solid var(--yellow);
}

.author-head__role {
    margin: -6px 0 8px;
    color: var(--blue);
    font-size: 18px;
    font-weight: 800;
}

.author-head__bio {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
}

.contact-form {
    max-width: 620px;
    margin: 18px 0 0;
}

.contact-form__field {
    margin: 0 0 14px;
}

.contact-form__field label {
    display: block;
    margin: 0 0 4px;
    color: var(--blue);
    font-weight: 700;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #c9d3c4;
    border-radius: 6px;
    font: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--green);
    outline: none;
}

.contact-form [aria-invalid="true"] {
    border-color: #c62828;
}

.contact-form__field--check label {
    color: var(--ink);
    font-weight: 400;
}

.contact-form__error {
    display: block;
    margin-top: 4px;
    color: #c62828;
    font-size: 14px;
}

.contact-form__hp {
    position: absolute;
    left: -9999px;
}

.contact-form__submit {
    width: auto;
    padding: 0 28px;
}

.form-notice {
    margin: 16px 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 700;
}

.form-notice--ok {
    background: #e3f4e8;
    color: #0b5a26;
}

.form-notice--error {
    background: #fdeaea;
    color: #9b1c1c;
}

.extra-content .title {
    margin: 0 0 10px;
    font-size: 22px;
    letter-spacing: 0;
}

.back-newsletters {
    margin: 0 0 22px;
    padding: 15px;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    font-size: 14px;
    line-height: 1.45;
}

.newsletters p {
    margin: 0 0 10px;
}

.newsletters p > span {
    display: block;
    margin-bottom: 6px;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.15;
}

.newsletter-field {
    display: block;
    margin: 0 0 8px;
    padding: 8px 10px;
    border-radius: 6px;
    background: #14306a;
    color: #d5def2;
}

.input-valider {
    display: block;
    width: 100%;
    height: 48px;
    margin-top: 6px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: var(--yellow);
    box-shadow: 0 3px 0 #c9a900;
    color: var(--blue);
    font-size: 20px;
    font-weight: 800;
    line-height: 48px;
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;
    cursor: default;
}

.nowrap {
    white-space: nowrap;
}

.main-footer {
    clear: both;
    margin-top: 28px;
    padding: 16px 12px 28px;
    border-radius: 5px;
    background: var(--blue);
    color: #fff;
    font-size: 13px;
    text-align: center;
}

.main-footer p {
    margin: 0 0 6px;
}

.footer-logo {
    display: inline-block;
    margin: 0 0 10px;
}

.footer-logo img {
    display: block;
    width: 130px;
    height: auto;
}

.footer-desc {
    max-width: 820px;
    margin: 0 auto 12px !important;
    line-height: 1.6;
}

.badge-18 {
    display: inline-block;
    padding: 0 6px;
    border-radius: 4px;
    background: var(--yellow);
    color: var(--blue);
    font-weight: 800;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--yellow);
}

.cc-message a {
    color: var(--blue);
}

.error-page {
    padding: 20px 0 10px;
}

.error-page__code {
    margin: 0;
    color: var(--yellow);
    font-size: 120px;
    font-weight: 800;
    line-height: 1;
    text-shadow: 3px 3px 0 var(--blue);
}

.error-page__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
    margin-top: 8px;
}

.error-page__links .nvb {
    width: auto;
    margin: 0;
}

.error-page__link {
    color: var(--blue);
    font-size: 18px;
    font-weight: 700;
}

.cc-window {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
}

.cc-window[hidden] {
    display: none;
}

.cc-message {
    margin: 0;
    font-size: 15px;
}

.cc-dismiss {
    border: 0;
    border-radius: 4px;
    padding: 8px 16px;
    background: var(--yellow);
    color: var(--blue);
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .title,
    h1.article-title {
        font-size: 32px;
    }

    .nm {
        font-size: 32px;
    }

    .nmt p {
        font-size: 24px;
    }
}

@media (max-width: 939px) {
    .mobile-menu {
        display: block;
        position: absolute;
        top: 8px;
        right: 0;
        z-index: 3;
        padding: 4px 10px;
        border: 0;
        background: #fff;
        color: var(--blue);
        font-size: 34px;
        line-height: 1;
        cursor: pointer;
    }

    .main-nav {
        display: none;
    }

    .themenumobile {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 5;
        width: min(280px, 78vw);
        height: 100%;
        padding: 24px 18px;
        background: var(--blue);
        color: #fff;
        transform: translateX(-105%);
        transition: transform 0.2s ease;
    }

    body.menu-active .themenumobile {
        transform: translateX(0);
    }

    .themenumobile strong {
        display: block;
        margin-bottom: 12px;
        font-size: 20px;
    }

    .themenumobile ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .themenumobile a {
        display: block;
        padding: 10px 0;
        color: #fff;
        font-size: 18px;
        font-weight: 800;
        text-decoration: none;
        text-transform: uppercase;
    }

    .escape-mobile-menu {
        display: none;
    }

    body.menu-active .escape-mobile-menu {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 4;
        background: rgba(0, 0, 0, 0.35);
    }

    #main {
        display: block;
    }

    .article-wrapper,
    .extra-content {
        width: 100%;
    }

    .top5b,
    .top5b:first-of-type {
        width: calc(100% - 20px);
    }

    .top5b:first-of-type .o {
        display: flex;
        flex-direction: column;
        min-height: 0;
        gap: 8px;
    }

    .top5b:first-of-type .top5al,
    .top5b:first-of-type .top5b1,
    .top5b:first-of-type .nvb {
        grid-column: auto;
        grid-row: auto;
    }

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

    .author-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .author-head__avatar {
        width: 140px;
        height: 140px;
    }

    .author-bio {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .games {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .error-page__code {
        font-size: 90px;
    }
}
