/* 
 * Sportclub Franeker - Official Stylesheet
 * Version: 1.0.2
 * Author: SC Franeker Dev Team
 */

/* --- 1. Variables & Reset --- */
:root {
    --primary-blue: #0044cc;
    --primary-yellow: #ffcc00;
    --primary-hover: #e6b800;
    --text-dark: #333333;
    --text-light: #f4f4f4;
    --bg-light: #ffffff;
    --bg-grey: #f9f9f9;
    --border-color: #ddd;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease-in-out;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- 2. Layout & Containers --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 60px 0;
}

/* --- 3. Header & Navigation --- */
header {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo span {
    border: 2px solid var(--primary-yellow);
    padding: 4px 10px;
    border-radius: 50%;
}

.logo:hover {
    color: #fff;
}

nav ul {
    display: flex;
    gap: 25px;
}

nav a {
    font-weight: 500;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    color: #fff;
}

nav a:hover, nav a.active {
    color: var(--primary-yellow);
    border-bottom-color: var(--primary-yellow);
}

/* --- 4. Hero Section --- */
.hero {
   /* Прозрачность 0.3 для теста */
background: linear-gradient(rgba(0, 68, 204, 0.3), rgba(0, 68, 204, 0.3)), url('../images/herobg.webp');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: var(--primary-yellow);
    color: var(--primary-blue);
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 6px;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    background-color: var(--primary-hover);
    box-shadow: 0 6px 8px rgba(0,0,0,0.25);
}

/* --- 5. Components --- */
/* License Box */
.license-info {
    background-color: var(--bg-grey);
    border-left: 5px solid var(--primary-yellow);
    padding: 25px;
    margin: 40px auto;
    border-radius: 4px;
}

.license-details {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    font-size: 0.95rem;
    color: #555;
    margin-top: 15px;
}

.license-item strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 3px;
}

/* Grids & Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 25px;
}

.card h3 {
    margin-bottom: 12px;
    color: var(--primary-blue);
}

/* Icon Boxes (About Page) */
.icon-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 35px;
}

.icon-box svg {
    width: 42px;
    height: 42px;
    fill: var(--primary-blue);
    flex-shrink: 0;
}

/* News Items */
.news-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 25px;
    padding: 25px;
    transition: border-color 0.2s;
}

.news-item:hover {
    border-color: var(--primary-blue);
}

.news-date {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.read-more {
    color: var(--primary-blue);
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin: 40px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
}

.info-item svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-blue);
}

/* --- 6. Footer --- */
footer {
    background-color: #222;
    color: #ccc;
    padding: 60px 0 20px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--primary-blue);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: var(--primary-yellow);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 25px;
    font-size: 0.85rem;
    color: #777;
}

/* --- 7. Cookie Banner --- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 30, 30, 0.95);
    color: white;
    padding: 15px;
    text-align: center;
    z-index: 9999;
    display: flex; /* Hidden by JS if accepted */
    justify-content: center;
    align-items: center;
    gap: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

#cookie-btn {
    background: var(--primary-yellow);
    color: var(--primary-blue);
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

#cookie-btn:hover {
    background: #fff;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    #cookie-banner {
        flex-direction: column;
        gap: 10px;
    }
}