/* Сброс базовых стилей */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td, article,
aside, canvas, details, embed, figure,
figcaption, footer, header, hgroup, menu,
nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    background: #f5f7fa;
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #23294a;
    background: #f5f7fa;
    min-height: 100vh;
    font-size: 18px;
    line-height: 1.55;
    letter-spacing: 0.02em;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: #2a4df4;
    text-decoration: none;
    transition: color .2s;
}
a:hover, a:focus {
    color: #2335a7;
    text-decoration: underline;
}
.main-header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(45, 60, 100, 0.06);
    border-bottom: 2px solid #e8eaf6;
    padding: 0 0 2px 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1260px;
    margin: 0 auto;
    padding: 14px 22px;
}
.logo-link {
    display: flex;
    align-items: center;
}
.logo-img {
    height: 48px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 1px 7px rgba(30,45,60,0.04);
    background: #eef1fa;
}
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}
.main-nav li a {
    font-weight: 500;
    font-size: 18px;
    padding: 7px 16px;
    border-radius: 8px;
    transition: background .2s, color .2s;
}
.main-nav li a:hover, .main-nav li a.active {
    background: #e8eaf6;
    color: #1a244c;
}
@media (max-width: 900px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 8px;
    }
    .main-nav ul {
        gap: 12px;
        flex-wrap: wrap;
    }
    .logo-img {
        height: 40px;
    }
}
@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 4px;
    }
    .main-nav li a {
        font-size: 16px;
        padding: 6px 10px;
    }
    .logo-img {
        height: 32px;
    }
}
/* Основной контент */
.main-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 14px 0 14px;
}
.main-footer {
    background: #23294a;
    color: #fff;
    padding: 32px 0 0 0;
    border-top: 2px solid #e8eaf6;
    margin-top: 56px;
    font-size: 17px;
}
.footer-inner {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 22px 12px 22px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
}
.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 370px;
}
.footer-logo-link {
    display: inline-block;
}
.footer-logo-img {
    height: 36px;
    width: auto;
    border-radius: 6px;
    background: #e8eaf6;
    margin-bottom: 4px;
}
.footer-desc {
    font-size: 15px;
    color: #bac3e0;
    margin-top: 2px;
}
.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-nav li a {
    color: #bac3e0;
    font-size: 17px;
    transition: color .2s;
}
.footer-nav li a:hover, .footer-nav li a.active {
    color: #fff;
    text-decoration: underline;
}
.footer-bottom {
    margin-top: 24px;
    background: #181c36;
    padding: 10px 0;
    text-align: center;
    font-size: 15px;
    color: #9ca3c9;
}

@media (max-width: 900px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 0 10px 10px 10px;
    }
    .footer-logo-img {
        height: 32px;
    }
}
@media (max-width: 600px) {
    .main-footer {
        font-size: 15px;
        padding-top: 18px;
    }
    .footer-logo-img {
        height: 26px;
    }
    .footer-inner {
        gap: 12px;
        padding: 0 6px 8px 6px;
    }
    .footer-nav li a {
        font-size: 15px;
    }
    .footer-bottom {
        font-size: 13px;
    }
}
.intro-block {
    background: #f8fafc;
    border-radius: 18px;
    padding: 38px 32px 28px 32px;
    box-shadow: 0 2px 12px rgba(80, 110, 180, 0.06);
    margin-bottom: 36px;
    text-align: center;
}
.intro-block h1 {
    font-size: 2.2rem;
    margin-bottom: 14px;
    font-weight: 700;
    color: #253285;
}
.intro-block p {
    font-size: 1.22rem;
    color: #47557d;
    max-width: 720px;
    margin: 0 auto;
}

.feature-block {
    margin-bottom: 40px;
    text-align: center;
}
.feature-block h2 {
    font-size: 1.45rem;
    margin-bottom: 18px;
    font-weight: 700;
    color: #1c224b;
}
.features-list {
    display: flex;
    justify-content: center;
    gap: 44px;
    flex-wrap: wrap;
    list-style: none;
}
.features-list li {
    background: #e9eefc;
    border-radius: 14px;
    box-shadow: 0 1px 6px rgba(60,80,150,0.04);
    padding: 22px 22px 14px 22px;
    min-width: 210px;
    max-width: 300px;
    font-size: 1.07rem;
    color: #22316a;
    margin-bottom: 8px;
}
.feature-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 8px;
}

.genres-block {
    margin: 48px 0 44px 0;
}
.genres-block h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #253285;
    text-align: center;
}
.genres-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}
.genre-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 8px rgba(45, 60, 100, 0.08);
    padding: 22px 18px 18px 18px;
    width: 320px;
    min-width: 240px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.genre-section h3 {
    font-size: 1.13rem;
    color: #1a244c;
    margin-bottom: 13px;
    font-weight: 600;
}
.genre-section h3 a {
    color: #1a244c;
}
.genre-section h3 a:hover {
    color: #2a4df4;
    text-decoration: underline;
}
.game-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.game-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
    border-bottom: 1px dashed #e7eaf6;
    padding-bottom: 10px;
    margin-bottom: 7px;
}
.game-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.game-list img {
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(40,60,90,0.08);
    width: 64px;
    height: 64px;
    object-fit: cover;
    background: #e9eefc;
}

.promo-block {
    margin: 52px 0 34px 0;
    text-align: center;
}
.promo-card {
    display: inline-block;
    background: linear-gradient(100deg, #2a4df4 0%, #637fe3 100%);
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(90,110,200,0.09);
    padding: 32px 42px 26px 42px;
    font-size: 1.23rem;
    max-width: 670px;
}
.promo-card h2 {
    font-size: 1.23rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.about-block {
    background: #f1f3fa;
    border-radius: 14px;
    padding: 30px 30px 18px 30px;
    margin: 40px 0 30px 0;
    text-align: center;
}
.about-block h2 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: #253285;
    font-weight: 700;
}
.about-block p {
    color: #47557d;
    font-size: 1.06rem;
    max-width: 600px;
    margin: 0 auto;
}

.partner-note {
    margin: 54px 0 16px 0;
    text-align: center;
}
.partner-note p {
    color: #8b96bb;
    font-size: 1.04rem;
}
.partner-note a {
    color: #3958c8;
    border-bottom: 1px dashed #6e92ed;
    transition: border-color .15s, color .15s;
}
.partner-note a:hover {
    color: #213393;
    border-bottom: 1px solid #213393;
}

/* Адаптив для главной */
@media (max-width: 1200px) {
    .genres-grid {
        gap: 16px;
    }
    .genre-section {
        width: 280px;
    }
}
@media (max-width: 900px) {
    .intro-block, .about-block, .promo-card {
        padding-left: 12px;
        padding-right: 12px;
    }
    .features-list {
        gap: 18px;
    }
    .genres-grid {
        flex-wrap: wrap;
        gap: 10px;
    }
    .genre-section {
        width: 95vw;
        max-width: 350px;
    }
}
@media (max-width: 600px) {
    .intro-block, .about-block, .promo-card {
        padding-left: 4px;
        padding-right: 4px;
    }
    .genres-grid {
        flex-direction: column;
        align-items: center;
    }
    .genre-section {
        width: 98vw;
        max-width: 98vw;
        padding: 14px 8px;
    }
}
.genre-hero {
    background: linear-gradient(96deg, #eef1fa 70%, #c9d5fc 100%);
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(80, 110, 180, 0.06);
    padding: 38px 36px 32px 36px;
    margin-bottom: 38px;
    text-align: center;
}
.genre-hero h1 {
    font-size: 2.0rem;
    margin-bottom: 12px;
    color: #22316a;
    font-weight: 700;
}
.genre-hero p {
    font-size: 1.18rem;
    color: #4c567e;
    max-width: 740px;
    margin: 0 auto;
}

.games-list-block {
    margin-bottom: 46px;
}
.games-list-block h2 {
    font-size: 1.35rem;
    margin-bottom: 22px;
    font-weight: 700;
    color: #253285;
    text-align: center;
}
.games-card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
}
.game-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 1px 9px rgba(45, 60, 100, 0.08);
    padding: 22px 18px 16px 18px;
    width: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow .18s;
}
.game-card:hover {
    box-shadow: 0 2px 18px rgba(40,60,120,0.13);
}
.game-card img {
    border-radius: 12px;
    margin-bottom: 13px;
    background: #e9eefc;
    object-fit: cover;
    width: 120px;
    height: 120px;
}
.game-info h3 {
    font-size: 1.09rem;
    font-weight: 600;
    color: #1c224b;
    margin-bottom: 8px;
    text-align: center;
}
.game-info p {
    color: #485486;
    font-size: 1.01rem;
    text-align: center;
}

.genre-extra-block {
    background: #f8fafc;
    border-radius: 15px;
    padding: 30px 34px 18px 34px;
    margin: 34px 0 18px 0;
    text-align: center;
    box-shadow: 0 1px 8px rgba(60,80,150,0.04);
}
.genre-extra-block h2 {
    font-size: 1.14rem;
    margin-bottom: 10px;
    color: #233393;
    font-weight: 600;
}
.extra-game-list {
    list-style: disc inside;
    color: #1c224b;
    text-align: left;
    display: inline-block;
    margin: 0 auto 18px auto;
    font-size: 1.03rem;
    padding-left: 8px;
    line-height: 1.56;
}
.genre-note {
    color: #8999be;
    font-size: 0.99rem;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .genre-hero {
        padding: 20px 10px 20px 10px;
    }
    .games-card-grid {
        gap: 12px;
    }
    .game-card {
        width: 96vw;
        max-width: 310px;
    }
    .genre-extra-block {
        padding: 16px 6px 12px 6px;
    }
}
@media (max-width: 600px) {
    .games-card-grid {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .game-card {
        width: 98vw;
        max-width: 98vw;
        padding: 10px 6px 10px 6px;
    }
    .genre-hero {
        padding: 12px 3vw 12px 3vw;
    }
    .genre-extra-block {
        padding: 12px 3vw 12px 3vw;
    }
}
.adventure-hero {
    background: linear-gradient(100deg, #f6faf8 65%, #d2e7f6 100%);
}
.genre-hero {
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(100, 120, 180, 0.07);
    padding: 38px 36px 32px 36px;
    margin-bottom: 38px;
    text-align: center;
}
.genre-hero h1 {
    font-size: 2.0rem;
    margin-bottom: 12px;
    color: #20475c;
    font-weight: 700;
}
.genre-hero p {
    font-size: 1.16rem;
    color: #46546e;
    max-width: 740px;
    margin: 0 auto;
}
.games-list-block {
    margin-bottom: 46px;
}
.games-list-block h2 {
    font-size: 1.28rem;
    margin-bottom: 22px;
    font-weight: 700;
    color: #2d395c;
    text-align: center;
}
.games-card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
}
.game-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 1px 9px rgba(45, 60, 100, 0.09);
    padding: 22px 18px 16px 18px;
    width: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow .18s;
}
.game-card:hover {
    box-shadow: 0 2px 16px rgba(40,60,120,0.13);
}
.game-card img {
    border-radius: 12px;
    margin-bottom: 13px;
    background: #e2ecf6;
    object-fit: cover;
    width: 120px;
    height: 120px;
}
.game-info h3 {
    font-size: 1.08rem;
    font-weight: 600;
    color: #22426a;
    margin-bottom: 8px;
    text-align: center;
}
.game-info p {
    color: #486476;
    font-size: 1.01rem;
    text-align: center;
}

.genre-extra-block {
    background: #f7fafd;
    border-radius: 15px;
    padding: 28px 30px 18px 30px;
    margin: 36px 0 20px 0;
    text-align: center;
    box-shadow: 0 1px 8px rgba(120,160,200,0.04);
}
.genre-extra-block h2 {
    font-size: 1.13rem;
    margin-bottom: 11px;
    color: #29709b;
    font-weight: 600;
}
.extra-game-list {
    list-style: disc inside;
    color: #255471;
    text-align: left;
    display: inline-block;
    margin: 0 auto 18px auto;
    font-size: 1.03rem;
    padding-left: 8px;
    line-height: 1.56;
}
.genre-note {
    color: #8999be;
    font-size: 0.99rem;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .genre-hero {
        padding: 20px 10px 20px 10px;
    }
    .games-card-grid {
        gap: 12px;
    }
    .game-card {
        width: 96vw;
        max-width: 310px;
    }
    .genre-extra-block {
        padding: 16px 6px 12px 6px;
    }
}
@media (max-width: 600px) {
    .games-card-grid {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .game-card {
        width: 98vw;
        max-width: 98vw;
        padding: 10px 6px 10px 6px;
    }
    .genre-hero {
        padding: 12px 3vw 12px 3vw;
    }
    .genre-extra-block {
        padding: 12px 3vw 12px 3vw;
    }
}
.rpg-hero {
    background: linear-gradient(105deg, #f6f5fc 68%, #e0d8ff 100%);
}
.rpg-extra-block {
    background: #f6f3fd;
    box-shadow: 0 1px 10px rgba(128,90,255,0.03);
}
.genre-hero {
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(110, 90, 180, 0.07);
    padding: 38px 36px 32px 36px;
    margin-bottom: 38px;
    text-align: center;
}
.genre-hero h1 {
    font-size: 2.0rem;
    margin-bottom: 12px;
    color: #44368a;
    font-weight: 700;
}
.genre-hero p {
    font-size: 1.16rem;
    color: #60567e;
    max-width: 740px;
    margin: 0 auto;
}
.games-list-block {
    margin-bottom: 46px;
}
.games-list-block h2 {
    font-size: 1.28rem;
    margin-bottom: 22px;
    font-weight: 700;
    color: #4e3a92;
    text-align: center;
}
.games-card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
}
.game-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 1px 10px rgba(80, 65, 140, 0.10);
    padding: 22px 18px 16px 18px;
    width: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow .18s;
}
.game-card:hover {
    box-shadow: 0 2px 18px rgba(80,60,160,0.13);
}
.game-card img {
    border-radius: 12px;
    margin-bottom: 13px;
    background: #e7e0fc;
    object-fit: cover;
    width: 120px;
    height: 120px;
}
.game-info h3 {
    font-size: 1.08rem;
    font-weight: 600;
    color: #42347e;
    margin-bottom: 8px;
    text-align: center;
}
.game-info p {
    color: #5d5698;
    font-size: 1.01rem;
    text-align: center;
}
.genre-extra-block {
    background: #f6f7fb;
    border-radius: 15px;
    padding: 28px 30px 18px 30px;
    margin: 36px 0 20px 0;
    text-align: center;
    box-shadow: 0 1px 8px rgba(120,100,200,0.04);
}
.genre-extra-block h2 {
    font-size: 1.13rem;
    margin-bottom: 11px;
    color: #6a47c8;
    font-weight: 600;
}
.extra-game-list {
    list-style: disc inside;
    color: #45338b;
    text-align: left;
    display: inline-block;
    margin: 0 auto 18px auto;
    font-size: 1.03rem;
    padding-left: 8px;
    line-height: 1.56;
}
.genre-note {
    color: #968bbe;
    font-size: 0.99rem;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .genre-hero {
        padding: 20px 10px 20px 10px;
    }
    .games-card-grid {
        gap: 12px;
    }
    .game-card {
        width: 96vw;
        max-width: 310px;
    }
    .genre-extra-block, .rpg-extra-block {
        padding: 16px 6px 12px 6px;
    }
}
@media (max-width: 600px) {
    .games-card-grid {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .game-card {
        width: 98vw;
        max-width: 98vw;
        padding: 10px 6px 10px 6px;
    }
    .genre-hero {
        padding: 12px 3vw 12px 3vw;
    }
    .genre-extra-block, .rpg-extra-block {
        padding: 12px 3vw 12px 3vw;
    }
}
.strategy-hero {
    background: linear-gradient(104deg, #f6fafd 67%, #c8dafc 100%);
}
.strategy-extra-block {
    background: #f5f9fc;
    box-shadow: 0 1px 10px rgba(90,130,200,0.03);
}
.genre-hero {
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(90, 130, 200, 0.07);
    padding: 38px 36px 32px 36px;
    margin-bottom: 38px;
    text-align: center;
}
.genre-hero h1 {
    font-size: 2.0rem;
    margin-bottom: 12px;
    color: #2a4069;
    font-weight: 700;
}
.genre-hero p {
    font-size: 1.15rem;
    color: #3c5476;
    max-width: 740px;
    margin: 0 auto;
}
.games-list-block {
    margin-bottom: 46px;
}
.games-list-block h2 {
    font-size: 1.26rem;
    margin-bottom: 22px;
    font-weight: 700;
    color: #274075;
    text-align: center;
}
.games-card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
}
.game-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 1px 10px rgba(80, 120, 160, 0.10);
    padding: 22px 18px 16px 18px;
    width: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow .18s;
}
.game-card:hover {
    box-shadow: 0 2px 18px rgba(40,80,140,0.13);
}
.game-card img {
    border-radius: 12px;
    margin-bottom: 13px;
    background: #e5eefc;
    object-fit: cover;
    width: 120px;
    height: 120px;
}
.game-info h3 {
    font-size: 1.08rem;
    font-weight: 600;
    color: #2c4378;
    margin-bottom: 8px;
    text-align: center;
}
.game-info p {
    color: #45608a;
    font-size: 1.01rem;
    text-align: center;
}
.genre-extra-block {
    background: #f7fafd;
    border-radius: 15px;
    padding: 28px 30px 18px 30px;
    margin: 36px 0 20px 0;
    text-align: center;
    box-shadow: 0 1px 8px rgba(120,160,200,0.04);
}
.genre-extra-block h2 {
    font-size: 1.13rem;
    margin-bottom: 11px;
    color: #2b5fa6;
    font-weight: 600;
}
.extra-game-list {
    list-style: disc inside;
    color: #2b5fa6;
    text-align: left;
    display: inline-block;
    margin: 0 auto 18px auto;
    font-size: 1.03rem;
    padding-left: 8px;
    line-height: 1.56;
}
.genre-note {
    color: #8ba4c8;
    font-size: 0.99rem;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .genre-hero {
        padding: 20px 10px 20px 10px;
    }
    .games-card-grid {
        gap: 12px;
    }
    .game-card {
        width: 96vw;
        max-width: 310px;
    }
    .genre-extra-block, .strategy-extra-block {
        padding: 16px 6px 12px 6px;
    }
}
@media (max-width: 600px) {
    .games-card-grid {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .game-card {
        width: 98vw;
        max-width: 98vw;
        padding: 10px 6px 10px 6px;
    }
    .genre-hero {
        padding: 12px 3vw 12px 3vw;
    }
    .genre-extra-block, .strategy-extra-block {
        padding: 12px 3vw 12px 3vw;
    }
}
