/* базовые переменные */
:root {
    --bg-dark: #0E2E1C;      /* тёмно-зелёный из логотипа */
    --accent-gold: #D4A24C;  /* золото из логотипа */
    --text-light: #FFFFFF;
    --text-dark: #0E2E1C;
    --surface-light: #FFF8E8; /* мягкий светлый фон секций */
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --max-width: 1200px;
    --section-padding: 64px;
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow-card: 0 24px 40px rgba(0,0,0,0.12);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: #F5F2EA;
    line-height: 1.5;
}

/* HERO */
.hero {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding-top: 32px;
    padding-bottom: 140px;
    position: relative;
}

.hero-inner {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
        "brand nav"
        "hero hero";
    row-gap: 140px;
}

/* Brand */
.brand {
    grid-area: brand;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: var(--accent-gold);
    font-weight: 500;
}

.brand-mark .logo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 20px;
    line-height: 1;
    background: rgba(212,162,76,0.08); /* лёгкий оттенок */
}

.brand-text {
    font-size: 20px;
    line-height: 1.2;
    color: var(--accent-gold);
    font-weight: 500;
    font-family: Georgia, 'Times New Roman', Times, serif; /* более стилизованный логотипный текст */
}

.brand-line {
    white-space: nowrap;
}

/* Навигация */
.main-nav {
    grid-area: nav;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    font-size: 15px;
    font-weight: 500;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    line-height: 1;
    padding-top: 8px;
    transition: color 0.15s ease;
}

.main-nav a:hover {
    color: var(--accent-gold);
}

/* Контент внутри hero */
.hero-content {
    grid-area: hero;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    align-items: center;   /* центрирует по горизонтали */
    text-align: center;    /* выравнивает текст по центру */
    margin: 0 auto;        /* центрирует сам блок внутри grid */
}

.hero-title {
    margin: 0 0 16px;
    font-size: 44px;
    line-height: 1.15;
    font-weight: 600;
    color: var(--text-light);
}

.hero-subtitle {
    margin: 0 0 32px;
    font-size: 18px;
    line-height: 1.5;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 28px rgba(0,0,0,0.4);
    transition: filter 0.15s ease, transform 0.15s ease;
    width: fit-content;
}

.cta-button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

/* MAIN CONTENT */
.main-content {
    background-color: #FFFFFF;
    position: relative;
    z-index: 1;
    box-shadow: 0 -16px 32px rgba(0,0,0,0.3) inset;
}

/* GAMES SECTION */
.games-section {
    padding: var(--section-padding) 0;
    background-color: var(--surface-light);
}

.games-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    background-color: var(--surface-light);
    border-radius: var(--radius-lg);
}

.section-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--bg-dark);
    opacity: 0.8;
    margin-bottom: 24px;
}

/* Карточка игры */
.game-card {
    display: flex;
    gap: 24px;
    flex-wrap: nowrap;
    background-color: #FFEED0;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.05);
    max-width: 100%;
}

.game-thumb {
    flex: 0 0 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-cover {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border: 1px solid rgba(0,0,0,0.1);
}

.thumb-placeholder {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-md);
    background-color: #FAD2A1;
    border: 2px dashed rgba(0,0,0,0.15);
    font-size: 14px;
    font-weight: 500;
    color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.game-info {
    flex: 1;
    min-width: 0;
}

.game-title {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--bg-dark);
}

.game-desc {
    margin: 0 0 20px;
    color: rgba(0,0,0,0.8);
    font-size: 16px;
    line-height: 1.45;
    max-width: 520px;
}

.store-button-placeholder {
    display: inline-block;
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    border: 1px solid rgba(0,0,0,0.15);
    user-select: none;
    text-decoration: none;      /* чтобы не было подчёркивания */
    transition: filter 0.15s ease, transform 0.15s ease;
}

.store-button-placeholder:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

/* ABOUT SECTION */
.about-section {
    padding: var(--section-padding) 0;
    background-color: #FFFFFF;
}

.about-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.about-text {
    margin: 0 0 16px;
    max-width: 640px;
    font-size: 17px;
    line-height: 1.5;
    color: #1E1E1E;
}

/* FOOTER */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 32px 0;
    margin-top: 0;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 24px;
}

.footer-copy {
    font-size: 14px;
    color: var(--accent-gold);
    font-weight: 500;
}

.footer-right {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.social-link {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.15s ease;
}

.social-link:hover {
    color: var(--accent-gold);
}

/* простая адаптация ширины контента если вдруг уменьшается окно браузера */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "nav"
            "hero";
        row-gap: 32px;
    }

    .main-nav {
        flex-wrap: wrap;
    }

    .game-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .game-thumb {
        flex: 0 0 auto;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
