/* Global Styles */
:root {
    --primary-color: #d52b1e;
    --secondary-color: #d52b1e;
    --accent-color: #f8c537;
    --dark-color: #222;
    --light-color: #f4f4f4;
    --gray-color: #777;
    --white-color: #fff;
    --card-bg: #fff;
    --header-bg: #fff;
    --footer-bg: #777;
    --text-color: #222;
    --input-bg: #fff;
    --input-text: #222;
}

.dark-theme {
    --primary-color: #e9573f;
    --secondary-color: #e9573f;
    --accent-color: #f6bb42;
    --dark-color: #f4f4f4;
    --light-color: #121212;
    --white-color: #1e1e1e;
    --gray-color: #b0b0b0;
    --card-bg: #2a2a2a;
    --header-bg: #1a1a1a;
    --footer-bg: #1a1a1a;
    --text-color: #f4f4f4;
    --input-bg: #333;
    --input-text: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    margin-bottom: 20px;
    font-weight: 700;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

img {
    max-width: 100%;
    transition: all 0.3s ease;
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #b82218;
    transform: translateY(-2px);
}

.btn-highlight {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

.btn-highlight:hover {
    background-color: #e6b420;
}

/* Header Styles */
header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
}

.logo h1 span {
    color: var(--secondary-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Theme Switcher */
.theme-switcher {
    display: flex;
    align-items: center;
    margin-left: 30px;
}

.theme-switcher i {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin: 0 10px;
    transition: color 0.3s ease;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-color);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--secondary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.dark-theme .theme-switcher i.fa-moon {
    color: var(--accent-color);
}

.dark-theme .theme-switcher i.fa-sun {
    color: var(--gray-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/logo1.png') no-repeat center center/cover;
    height: 100vh;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 80px;
}

.dark-theme .hero {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('images/logo2.png') no-repeat center center/cover;
    color: white;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--white-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.about-image img:hover {
    transform: scale(1.05);
}

/* Matches Section */
.matches-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.matches-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-color);
    position: relative;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--secondary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.match-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.match-card:hover {
    transform: translateY(-5px);
}

.match-date {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.team img {
    height: 60px;
    margin-bottom: 10px;
}

.vs {
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 20px;
}

.score {
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 20px;
    color: var(--secondary-color);
}

.match-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.match-info p {
    margin: 0;
    display: flex;
    align-items: center;
}

.match-info i {
    margin-right: 5px;
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background-color: var(--white-color);
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.player-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.player-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.player-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--secondary-color);
}

.player-card h3 {
    margin-bottom: 5px;
}

.player-card p {
    margin-bottom: 5px;
    color: var(--gray-color);
}

.full-team-btn {
    margin-top: 30px;
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* News Section */
.news-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-date {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 10px;
}

.read-more:hover {
    text-decoration: underline;
}

/* Contacts Section */
.contacts-section {
    padding: 80px 0;
    background-color: var(--white-color);
}

.contacts-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-info i {
    margin-right: 10px;
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    background-color: var(--input-bg);
    color: var(--input-text);
    border-color: var(--gray-color);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--white-color);
    padding: 40px 0 20px;
    text-align: center;
}

.footer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 50px;
    margin-right: 10px;
}

.footer-logo h3 {
    margin: 0;
    font-size: 1.8rem;
}

.footer-logo h3 span {
    color: var(--secondary-color);
}

.footer-contact {
    margin-bottom: 20px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: #ccc;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-media a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-media a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    color: #aaa;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    max-width: 900px;
    width: 90%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 2rem;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    transform: scale(1.2);
    color: var(--accent-color);
}

.modal-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.modal-team-grid .player-card {
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content,
    .contacts-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 30px;
    }
    
    .contact-form {
        margin-top: 30px;
    }
    
    .modal-team-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 80px;
        height: calc(100vh - 80px);
        width: 60%;
        background-color: var(--header-bg);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: right 0.5s ease;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .burger {
        display: block;
    }
    
    .theme-switcher {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
    }
    
    .modal-team-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .match-teams {
        flex-direction: column;
    }
    
    .vs, .score {
        margin: 10px 0;
    }
    
    .match-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .match-info .btn {
        margin-top: 10px;
    }
    
    .contacts-content {
        flex-direction: column;
    }
    
    .contact-form {
        margin-top: 30px;
    }
    
    .modal-team-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
}
/* News Modal Styles */
#modalNewsTitle {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

#modalNewsDate {
    color: var(--gray-color);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

#modalNewsImage {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

#modalNewsContent {
    line-height: 1.8;
}

#modalNewsContent p {
    margin-bottom: 15px;
}

#showAllNews {
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hidden-news {
    display: none;
}

/* Social Media Hover Effects */
.social-media a {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-media a:hover {
    transform: scale(1.1);
}

.social-media .fa-vk:hover {
    background-color: #4a76a8;
}

.social-media .fa-telegram:hover {
    background-color: #0088cc;
}