@font-face {
    font-family: 'Gabin';
    src: url('fonts/Gabin.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #faf6f5; /* Light cream background */
    --bg-secondary: #ffffff; /* Solid white for cards */
    --accent: #800020; /* Burgundy / Бургунди */
    --accent-hover: #5a0016;
    --text-main: #333333;
    --text-light: #222222;
    --border-color: #eae5e3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.solid-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}
.btn-primary {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 5px 15px rgba(128, 0, 32, 0.3);
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(128, 0, 32, 0.4);
}
.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-secondary:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}
.section-title {
    font-family: 'Gabin', 'Cabin', sans-serif;
    font-size: 2.5rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.logo {
    height: 30px;
    display: flex;
    align-items: center;
}
.logo img {
    height: 100%;
    width: auto;
}
.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    font-weight: 600;
}
.nav-links a:hover {
    color: var(--accent);
}

/* Hero */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hero-text {
    flex: 1;
    padding-right: 50px;
}
.subtitle {
    color: var(--accent);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.title {
    font-family: 'Gabin', 'Cabin', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1.1;
    margin-bottom: 30px;
}
.title span {
    color: var(--accent);
}
.description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 500px;
}
.hero-buttons {
    display: flex;
    gap: 20px;
}
.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}
.hero-image {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    border: 4px solid var(--accent);
}
.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: #ffffff;
}
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.about-card {
    padding: 40px;
    text-align: center;
    transition: transform 0.3s ease;
}
.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}
.about-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}
.about-card h3 {
    font-family: 'Gabin', 'Cabin', sans-serif;
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Games Section */
.games-section {
    padding: 100px 0;
}
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.game-card {
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(128, 0, 32, 0.15);
    border-color: var(--accent);
}
.game-img {
    height: 200px;
    overflow: hidden;
}
.game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.game-card:hover .game-img img {
    transform: scale(1.05);
}
.game-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.game-info h3 {
    font-family: 'Gabin', 'Cabin', sans-serif;
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.game-info p {
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
}
.btn-text {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: color 0.3s;
}
.game-card:hover .btn-text {
    color: var(--accent-hover);
}

/* Video Section */
.video-section {
    padding: 100px 0;
    background: #ffffff;
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.video-card {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 9/16;
    border: 1px solid var(--border-color);
}
.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-card iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
@media (min-width: 900px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Screenshot Reviews */
.screenshot-reviews {
    padding: 100px 0;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (min-width: 900px) {
    .reviews-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.review-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.review-img:hover {
    transform: scale(1.03);
}

/* FAQ */
.faq-section {
    padding: 100px 0;
    background-color: #ffffff;
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.faq-item {
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item:hover {
    border-color: var(--accent);
}
.faq-question {
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question .arrow {
    transition: transform 0.3s;
    color: var(--accent);
}
.faq-answer {
    padding: 0 25px;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
}
.faq-item.active .faq-answer {
    padding: 0 25px 20px;
    max-height: 1000px;
    opacity: 1;
}
.faq-item.active .arrow {
    transform: rotate(180deg);
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
}
.footer p {
    margin-bottom: 30px;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}
.social-btn {
    padding: 12px 25px;
    color: var(--accent);
    border: 1px solid var(--accent);
    background: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}
.social-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}
.copyright {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Modals */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}
.modal-content {
    background: var(--bg-secondary);
    margin: auto;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.modal.show .modal-content {
    transform: translateY(0);
}
.modal-content h2 {
    font-family: 'Gabin', 'Cabin', sans-serif;
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 2rem;
}
.modal-content p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}
.close {
    color: var(--text-main);
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}
.close:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 40px;
    }
    .hero-text {
        padding-right: 0;
        margin-top: 40px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .title {
        font-size: 3rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .navbar {
        padding: 15px 20px;
    }
    .nav-links {
        display: none;
    }
    .hero-image {
        max-width: 250px;
        margin: 0 auto;
        border-radius: 50%;
        aspect-ratio: 1 / 1;
        border: 4px solid var(--accent);
    }
    .hero-image img {
        height: 100%;
        object-fit: cover;
    }
}

/* --- Mobile fixes --- */
.modal {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.modal.show {
    align-items: flex-start;
}
.modal-content {
    margin: auto;
}
@media (max-width: 900px) {
    .title {
        font-size: clamp(1.75rem, 8.5vw, 3rem);
        overflow-wrap: break-word;
    }
    .section-title {
        font-size: clamp(1.5rem, 6.5vw, 2.5rem);
        letter-spacing: 1px;
    }
    .subtitle {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    .hero-text,
    .hero-image-wrapper {
        min-width: 0;
        width: 100%;
    }
    .hero-buttons {
        flex-wrap: wrap;
    }
    .modal-content {
        padding: 30px 20px;
    }
    .modal-content h2 {
        font-size: 1.5rem;
        padding-right: 30px;
    }
}
