/*
Theme Name: Окинава Каратэ и Кобудо
Author: AI Assistant
Description: Традиционная черно-белая тема для Федерации боевых искусств.
Version: 1.0
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #fdfdfd;
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }

/* Шапка */
.header {
    background: #ffffff;
    padding: 15px 0;
    box-shadow: 0 1px 0px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    color: #000;
    letter-spacing: 1px;
}

.logo span {
    color: #666;
    font-size: 15px;
    font-weight: 400;
    margin-left: 5px;
    text-transform: uppercase;
}

.nav a {
    color: #333;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.2s;
    padding-bottom: 4px;
}

.nav a:hover {
    color: #000;
    border-bottom: 2px solid #000;
}

/* Главный баннер */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.92)), 
                url('https://unsplash.com') no-repeat center center/cover;
    color: #fff;
    padding: 140px 0;
    text-align: center;
}

.hero h1 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero p {
    max-width: 800px;
    margin: 0 auto 35px;
    font-size: 18px;
    opacity: 0.85;
    font-weight: 300;
}

.btn {
    display: inline-block;
    background: #ffffff;
    color: #000000;
    padding: 14px 35px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #ffffff;
    transition: all 0.2s;
}

.btn:hover {
    background: transparent;
    color: #ffffff;
}

/* Секции */
.about, .directions, .dojos, .contacts {
    padding: 80px 0;
}

.directions { background: #f8f8f8; }
.contacts { background: #000000; color: #fff; }

.section-title {
    font-size: 30px;
    color: #000;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
}

.contacts .section-title { color: #fff; }

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: #000;
}

.text-center.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.contacts .section-title::after { background: #fff; }

/* Сетки блоков */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p { margin-bottom: 15px; color: #444; }
.about-img img { width: 100%; filter: grayscale(30%); }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: #fff;
    border: 1px solid #eef2f3;
}

.card-img img { width: 100%; height: 220px; object-fit: cover; filter: grayscale(40%); }
.card h3 { padding: 20px 20px 10px; text-transform: uppercase; font-size: 18px; color: #000;}
.card p { padding: 0 20px 25px; color: #555; font-size: 15px; }

/* Адреса залов */
.dojo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.dojo-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid #000;
    padding: 30px;
    position: relative;
}

.dojo-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #333;
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    text-transform: uppercase;
}

.dojo-item h3 { font-size: 20px; margin-bottom: 12px; color: #000; }
.dojo-address { font-size: 15px; color: #444; margin-bottom: 20px; }
.schedule h4 { font-size: 13px; text-transform: uppercase; color: #777; margin-bottom: 10px; }
.schedule ul { list-style: none; }
.schedule ul li { font-size: 15px; margin-bottom: 8px; display: flex; justify-content: space-between; border-bottom: 1px dashed #e0e0e0; padding-bottom: 4px; }

/* Контакты */
.contact-box { max-width: 600px; text-align: center; margin: 0 auto; }
.contact-subtitle { color: #888; margin-bottom: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 25px; }
.info-item strong { color: #888; display: block; font-size: 14px; text-transform: uppercase; margin-bottom: 5px; }
.info-item a { color: #fff; text-decoration: none; font-weight: bold; border-bottom: 1px solid #333; transition: all 0.2s; }
.info-item a:hover { border-color: #fff; }

.social-links { margin-top: 10px; display: flex; justify-content: center; gap: 15px; }
.social-links a { color: #fff; padding: 10px 22px; font-size: 14px; border: 1px solid #333; text-decoration: none; text-transform: uppercase;}
.social-links a:hover { background: #fff; color: #000; }

.footer { background: #000; color: #555; text-align: center; padding: 25px 0; font-size: 13px; border-top: 1px solid #111; }

@media (max-width: 768px) {
    .header .container { flex-direction: column; gap: 15px; }
    .nav a { margin: 0 10px; }
    .hero h1 { font-size: 30px; }
    .about-grid { grid-template-columns: 1fr; }
}
