/* Основные стили для fed.curling76.ru */
:root {
    --primary-color: #1a3d6d;
    --secondary-color: #2c5282;
    --accent-color: #e63946;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --font-main: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    --font-heading: 'Montserrat', 'Arial', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.site-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.2rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 2.2rem;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    white-space: nowrap;
}

.logo-sub {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
    white-space: nowrap;
}

/* Бургер-меню */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}
.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Навигация */
.site-nav {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    line-height: 1.2;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.nav-text {
    display: inline-block;
}

/* Основной контент */
.main-content {
    flex: 1;
    padding-top: 90px;
    padding-bottom: 3rem;
}

.page-title {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.page-subtitle {
    color: var(--secondary-color);
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Карточки */
.card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.card-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Сетки */
.grid {
    display: grid;
    gap: 2rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Новости и события */
.news-grid, .events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-item, .event-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.news-item:hover, .event-item:hover {
    transform: translateY(-5px);
}

.news-date, .event-date {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-title, .event-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1rem;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-secondary { background: var(--secondary-color); }
.btn-accent { background: var(--accent-color); }
.btn-large { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; }

/* Формы */
.form-group { margin-bottom: 1.5rem; }
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}
.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 61, 109, 0.1);
}

/* Футер */
.site-footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #343a40 100%);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #ffd700;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-family: var(--font-heading);
}

.footer-section p, .footer-section a {
    color: #ddd;
    margin-bottom: 0.8rem;
    display: block;
}

.footer-section a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
    padding-left: 5px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.6s ease-out; }

/* Адаптивность */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .nav-link { font-size: 0.95rem; padding: 0.4rem 0.7rem; }
    .logo-main { font-size: 1.4rem; }
    .logo-sub { font-size: 0.85rem; }
}

@media (max-width: 768px) {
    .burger-menu { display: flex; }
    .site-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(26, 61, 109, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 1000;
    }
    .site-nav.active { right: 0; }
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    .nav-link {
        font-size: 1.3rem;
        padding: 1rem 2rem;
        justify-content: center;
    }
    .header-content { padding: 0 15px; }
    .page-title { font-size: 2rem; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .main-content { padding-top: 75px; }
    .card { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 10px; }
    .page-title { font-size: 1.8rem; }
    .card-title { font-size: 1.5rem; }
    .btn { padding: 0.7rem 1.5rem; font-size: 0.9rem; }
    .logo-main { font-size: 1.2rem; }
    .logo-sub { font-size: 0.75rem; }
}
