/* Font declarations - add your font files here */
@font-face {
    font-family: 'Oks Free';
    src: url('/fonts/OksFree.otf') format('woff2'),
        url('/fonts/OksFree.otf') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Dela Gothic One';
    src: url('/fonts/DelaGothicOne.ttf') format('woff2'),
        url('/fonts/DelaGothicOne.ttf') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/Montserrat/Montserrat-Regular.ttf') format('woff2'),
        url('/fonts/Montserrat/Montserrat-Regular.ttf') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/Montserrat/Montserrat-Bold.ttf') format('woff2'),
        url('/fonts/Montserrat/Montserrat-Bold.ttf') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Global styles */
html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #C0392B;
    --text-color: #ffffff;
    --accent-color: #e6e6e6;
    --heading-font: 'Dela Gothic One', serif;
    --body-font: 'Montserrat', sans-serif;
    --logo-font: 'Oks Free', cursive;
    --bg-dark-1: #0b0b0d;
    --bg-dark-2: #1a1a1e;
    --bg-dark-3: #2a2a2e;
    --bg-dark-4: #3a3a3e;
    --bg-dark-5: #4a4a4e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--body-font);
}

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header/Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(26, 26, 26, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--logo-font);
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
    font-family: var(--body-font);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.header-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--body-font);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: none;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background-color: #950000;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    /* контент идёт сверху вниз */
    justify-content: center;
    /* по вертикали по центру экрана */
    align-items: center;
    /* по горизонтали по центру */
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Dark overlay for better text visibility */
    z-index: 1;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-size: cover;
    background-position: center;
}

.hero-title {
    font-family: var(--heading-font);
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.header-social {
    display: flex;
    gap: 15px;
    /* уменьшили отступ между иконками */
}

.header-social img {
    width: 24px;
    /* сделали иконки поменьше */
    height: 24px;
}

/* Hero Section */
.hero-title {
    font-size: 36px;
    /* увеличили заголовок */
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 24px;
    /* чуть крупнее подзаголовок */
    margin-bottom: 30px;
}

/* 1) Делаем контейнер hero относительным */
.hero {
    position: relative;
    width: 100%;
    min-height: 500px;
    /* по необходимости менять */
    overflow: hidden;
}

/* Фон на весь блок */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("/images/hero-bg.jpg") center/cover no-repeat;
    /* затемнение фона для контраста с текстом */
    background-color: rgba(0, 0, 0, 0.4);
    background-blend-mode: darken;
    z-index: -1;
}

/* Внутренний контейнер */
.hero-content {
    margin-left: 50px;
    position: relative;
    z-index: 1;
    padding: 0 20px;
    max-width: 800px;
}

/* Между собой элементы в колонке разделяются отступами */
.hero-title {
    margin-bottom: 0.5em;
}

.hero-subtitle {
    margin-bottom: 1em;
}

.hero-buttons {
    display: block;
}

.hero-buttons .btn {
    margin: 0 auto;
}

/* Блок «Где и Когда» */
.where-when {
    padding: 75px 10px;
    background-color: var(--bg-dark-1);
}

.info-grid {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

.info-grid .schedule,
.info-grid .map {
    flex: 1 1 400px;
    /* минимум 400px, растягивается */
    max-width: 430px;
}

.schedule .section-title {
    margin-bottom: 30px;
}

.schedule p {
    line-height: 30px;
}

.map-style {
  filter: grayscale(40%) invert(90%);
}
/* Убираем старый map-link, если вы оставили стили: */
.map-link {
    display: none;
}

/* Контейнер для адаптивного встраивания карты */
.map-responsive {
    position: relative;
    width: 100%;
    /* 16:9 соотношение сторон */
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.map-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* About Section */
.about {
    padding: 75px 10px;
    background-color: var(--bg-dark-2);
    position: relative;
    overflow: hidden;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
}

.about-content {
    flex: 1;
}

.section-title {
    font-family: var(--heading-font);
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Features Section */
.features {
    padding: 75px 0;
    background-color: var(--bg-dark-2);
}

.features-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-dark-1);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.feature-title {
    font-family: var(--heading-font);
    font-size: 24px;
    margin-bottom: 15px;
}

.feature-description {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.8;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background-color: #121212;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-teaser {
    padding: 75px;
    background-color: var(--bg-dark-1);
}

.gallery-item {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
}

/* Events Section */
.events {
    padding: 100px 0;
}

.events-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.event-card {
    display: flex;
    background-color: #1e1e1e;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.event-image {
    width: 30%;
    background-size: cover;
    background-position: center;
}

.event-content {
    width: 70%;
    padding: 30px;
}

.event-date {
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.event-title {
    font-family: var(--heading-font);
    font-size: 24px;
    margin-bottom: 15px;
}

.event-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: #121212;
}

.contact-container {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 24px;
    margin-right: 15px;
    color: var(--secondary-color);
}

.contact-text {
    font-size: 16px;
    line-height: 1.6;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 15px;
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-radius: 5px;
    color: var(--text-color);
    font-size: 16px;
}

.form-input:focus {
    border-color: var(--secondary-color);
    outline: none;
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.footer-social {
    display: flex;
    gap: 10px;
}

footer {
    padding: 25px 0;
    background-color: var(--bg-dark-2);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-logo {
    font-family: var(--logo-font);
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.footer-title {
    font-family: var(--heading-font);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #1e1e1e;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
    font-size: 14px;
    opacity: 0.7;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--primary-color);
    z-index: 1001;
    padding: 80px 40px;
    transition: all 0.4s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-links a {
    font-size: 18px;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Media Queries */
@media (max-width: 1440px) {

    .container {
        max-width: 1100px;
    }

    .hero-content {
        max-width: 500px;
    }
}

/* Media Queries */
@media (max-width: 1200px) {
    .hero-content {
        max-width: 400px;
    }

    .container {
        max-width: 1000px;
    }
}

@media (max-width: 1024px) {
    .features-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .nav-links,
    .header-buttons {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-image {
        width: 100%;
        opacity: 0.3;
    }

    .about-container {
        flex-direction: column;
    }

    .features-container {
        grid-template-columns: 1fr;
    }

    .gallery-container {
        grid-template-columns: 1fr;
    }

    .event-card {
        flex-direction: column;
    }

    .event-image {
        width: 100%;
        height: 200px;
    }

    .event-content {
        width: 100%;
    }

    .contact-container {
        flex-direction: column;
    }
}

/* Универсальный hero-блок для всех страниц, кроме главной */
.page-hero {
    position: relative;
    width: 100%;
    min-height: 320px;         /* Оптимально для секции не на главной */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 110px 0 55px 0;   /* Отступ сверху учитывает fixed navbar */
    background: url("/images/hero-bg.jpg") center/cover no-repeat;
    background-color: rgba(0, 0, 0, 0.68);
    background-blend-mode: darken;
    z-index: 0;
}

.page-hero .container {
    z-index: 2;
    position: relative;
}

.page-hero .section-title {
    font-family: var(--heading-font);
    font-size: 48px;
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: 2px;
    margin-bottom: 18px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 6px 32px rgba(0,0,0,0.28);
}

.page-hero .hero-subtitle {
    font-size: 24px;
    color: #ececec;
    font-weight: 400;
    opacity: 0.93;
    max-width: 820px;
    margin: 0 auto;
    text-shadow: 0 3px 24px rgba(0,0,0,0.17);
}

/* Мобильная адаптация */
@media (max-width: 800px) {
    .page-hero {
        min-height: 180px;
        padding: 80px 0 40px 0;
    }
    .page-hero .section-title {
        font-size: 30px;
    }
    .page-hero .hero-subtitle {
        font-size: 18px;
    }
}

/* Player Page Specific Styles */

/* Hero Section */
.players-hero {
    position: relative;
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 0 50px;
}

.players-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("/images/hero-bg.jpg") center/cover no-repeat;
    background-color: rgba(0, 0, 0, 0.6);
    background-blend-mode: darken;
    z-index: -1;
}

/* Search */
.players-search {
    display: flex;
    justify-content: center;
    margin: 30px auto;
    max-width: 500px;
}

.search-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 50px;
    border: none;
    background-color: var(--bg-dark-3);
    color: var(--text-color);
    font-size: 16px;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--secondary-color);
}

/* Players Section */
.players-section {
    padding: 75px 0;
    background-color: var(--bg-dark-2);
}

/* Players Grid */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Player Card */
.player-card {
    background-color: var(--bg-dark-1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.player-image {
    width: 100%;
    height: 250px;
    background-color: var(--bg-dark-3);
    background-size: cover;
    background-position: center;
    position: relative;
}

.player-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--bg-dark-5);
}

.player-info {
    padding: 20px;
}

.player-name {
    font-family: var(--heading-font);
    font-size: 24px;
    margin-bottom: 10px;
}

.player-role {
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.player-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 15px;
}

.player-stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.player-stats-value {
    font-weight: bold;
    font-size: 18px;
}

/* Player Modal */
.player-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.player-modal.active {
    opacity: 1;
    visibility: visible;
}

.player-modal-content {
    background-color: var(--bg-dark-1);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.player-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: var(--text-color);
    cursor: pointer;
    z-index: 2001;
    background: none;
    border: none;
}

.player-modal-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.player-modal-image {
    width: 200px;
    height: 200px;
    background-color: var(--bg-dark-3);
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.player-modal-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--bg-dark-5);
}

.player-modal-info {
    flex: 1;
}

.player-modal-name {
    font-family: var(--heading-font);
    font-size: 32px;
    margin-bottom: 10px;
}

.player-modal-role {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.player-modal-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.player-modal-stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.player-modal-stats-value {
    font-weight: bold;
    font-size: 24px;
}

.player-modal-stats-label {
    font-size: 14px;
    opacity: 0.8;
}

.player-modal-details {
    margin-top: 30px;
}

.player-modal-subtitle {
    font-family: var(--heading-font);
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.player-modal-awards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.player-modal-award {
    background-color: var(--bg-dark-3);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.player-modal-award-icon {
    font-size: 16px;
    color: gold;
}

.player-history {
    margin-top: 30px;
}

.player-history-item {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
}

.player-history-date {
    width: 100px;
    font-size: 14px;
    opacity: 0.8;
}

.player-history-event {
    flex: 1;
}

.player-history-result {
    width: 100px;
    text-align: right;
    font-weight: bold;
}

.win {
    color: #66cc66;
}

.loss {
    color: #cc6666;
}

/* Responsive styles */
@media (max-width: 768px) {
    .player-modal-header {
        flex-direction: column;
    }

    .player-modal-image {
        width: 100%;
        max-width: none;
        margin: 0 auto;
    }

    .player-modal-stats {
        flex-wrap: wrap;
        gap: 15px;
    }

    .player-modal-stats-item {
        width: calc(50% - 15px);
    }
    
    .players-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}