@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #c8102e;
    --primary-blue: #003478;
    --text-dark: #2d2d2d;
    --text-gray: #666;
    --bg-cream: #f5f1ed;
    --bg-white: #ffffff;
    --border-light: #e5e5e5;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: 
        radial-gradient(circle at 20% 50%, rgba(200, 16, 46, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 52, 120, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, #f8f5f2 0%, #f0ebe8 50%, #f8f5f2 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

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

/* Header */
.site-header {
    background: var(--bg-white);
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo-section h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
    margin: 0;
}

.main-nav {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-red);
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-switcher .lang-link {
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
    background-color: var(--primary-red);
}

.language-switcher .lang-link:hover {
    background-color: #a00d25;
}

.language-switcher .lang-link.active {
    background-color: var(--primary-red);
}

.lang-separator {
    display: none;
}

/* ===== Mobile Navigation ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: flex;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f5e6e8 0%, #f8f3f0 50%, #e8e4e6 100%);
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 50 Q 25 25, 50 50 T 100 50' stroke='%23e8d4d8' fill='none' stroke-width='0.5' opacity='0.3'/%3E%3Cpath d='M0 30 Q 25 5, 50 30 T 100 30' stroke='%23e8d4d8' fill='none' stroke-width='0.5' opacity='0.3'/%3E%3Cpath d='M0 70 Q 25 45, 50 70 T 100 70' stroke='%23e8d4d8' fill='none' stroke-width='0.5' opacity='0.3'/%3E%3C/svg%3E");
    background-size: 200px 100px;
    opacity: 0.6;
}

.hero-background::after {
    content: '空手道';
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20rem;
    font-weight: 900;
    color: rgba(200, 16, 46, 0.05);
    line-height: 1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 4rem 0 5rem;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: stretch;
}

.hero-main {
    max-width: 640px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title-light {
    color: var(--text-dark);
    font-weight: 700;
}

.hero-title-red {
    color: var(--primary-red);
    font-weight: 900;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 700px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-contact-card {
    align-self: stretch;
    display: flex;
    align-items: center;
    animation: fadeInUp 0.8s ease-out;
}

/* Buttons */
.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-red {
    background-color: var(--primary-red);
    color: var(--bg-white);
}

.btn-red:hover {
    background-color: #a00d25;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.btn-outline-red {
    background-color: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.btn-outline-red:hover {
    background-color: var(--primary-red);
    color: var(--bg-white);
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    padding: 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-red);
    border-radius: 2px;
}

/* Contacts Section */
.contacts-section {
    background: linear-gradient(135deg, #fef9f6 0%, #f9f5f2 50%, #fef9f6 100%);
    padding: 5rem 0;
}

.contacts-grid-single {
    display: flex;
    justify-content: center;
}

.contact-card-circle {
    background: var(--bg-white);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
}

.contact-card-circle:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.contact-circle-avatar {
    width: 100%;
    max-width: 420px;
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    border: 4px solid rgba(200, 16, 46, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: var(--bg-white);
}

.contact-circle-text {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-red);
}

.contact-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.contact-social-icons {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.contact-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-card-subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.contact-card-details {
    text-align: left;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.contact-card-details p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-gray);
}

.contact-card-details strong {
    color: var(--text-dark);
    font-weight: 600;
}

.contact-card-details a {
    color: var(--primary-red);
    text-decoration: none;
}

.contact-card-details a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contacts-section, .news-section, .events-section, .partners-section {
    animation: fadeInUp 0.8s ease-out;
}

/* News Section */
.news-section {
    background: linear-gradient(135deg, #f8f4f0 0%, #f2ece8 50%, #f8f4f0 100%);
    padding: 5rem 0;
}

.news-card-modern {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.news-card-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5e6e8 0%, #e8e4e6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-placeholder-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: rgba(200, 16, 46, 0.3);
}

.news-placeholder-icon {
    font-size: 6rem;
}

.news-placeholder-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-gray);
}

.news-card-content {
    padding: 2.5rem;
}

.news-card-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.news-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.news-social-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.news-share-text {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.social-icons-inline {
    display: flex;
    gap: 0.75rem;
}

.social-icon-round {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.social-icon-round img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-icon-round:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Events Section */
.events-section {
    background: linear-gradient(135deg, #ffffff 0%, #fefcfa 50%, #ffffff 100%);
    padding: 5rem 0;
}

.events-calendar-modern {
    max-width: 1000px;
    margin: 0 auto;
}

.month-group-modern {
    margin-bottom: 3rem;
}

.month-title-modern {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: lowercase;
}

.month-title-modern::first-letter {
    text-transform: lowercase;
}

.calendar-icon {
    color: var(--primary-red);
    flex-shrink: 0;
}

.events-list-modern {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-item-modern {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-cream);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.event-item-modern.event-clickable {
    cursor: pointer;
}

.event-item-modern:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.event-link-wrapper {
    display: flex;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.event-no-link {
    display: flex;
    gap: 1.5rem;
    width: 100%;
}

.event-item-modern:hover .event-name-modern {
    color: var(--primary-red);
}

.event-date-box {
    flex-shrink: 0;
    width: 80px;
    background: var(--primary-red);
    color: var(--bg-white);
    border-radius: 12px;
    padding: 1rem 0.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(200, 16, 46, 0.3);
}

.event-date-day {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.event-date-month {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.event-content-modern {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.event-main-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.event-text {
    flex: 1;
    min-width: 0;
}

.event-thumb {
    width: 160px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-name-modern {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    transition: color 0.3s;
}

.event-name-modern a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.event-name-modern a:hover {
    color: var(--primary-red);
}

.event-location-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.95rem;
    margin: 0;
}

.location-icon {
    color: var(--primary-red);
}

.events-footer {
    text-align: center;
    margin-top: 3rem;
}

/* Partners Section */
.partners-section {
    background: linear-gradient(135deg, #f5ede8 0%, #ebe3dd 50%, #f5ede8 100%);
    padding: 5rem 0;
}

.partners-grid-circles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.partner-card-circle {
    text-align: center;
}

.partner-link-circle {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s;
}

.partner-link-circle:hover {
    transform: translateY(-8px);
}

.partner-link-circle:hover .partner-circle-avatar {
    box-shadow: 0 8px 24px rgba(200, 16, 46, 0.25);
}

.partner-circle-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(200, 16, 46, 0.15);
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: box-shadow 0.3s;
}

.partner-circle-text {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-red);
}

.partner-name-circle {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.partner-description-circle {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Footer */
.site-footer {
    background: #1a1a2e;
    color: #e5e5e5;
    padding: 3rem 0 1.5rem;
}

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

.footer-section h3 {
    color: var(--bg-white);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-logo-section p {
    color: #999;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--primary-red);
}

.footer-social-icons {
    display: flex;
    gap: 1rem;
}

.footer-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s;
}

.footer-social-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-social-icon:hover {
    transform: scale(1.2);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: #999;
    font-size: 0.9rem;
}

.footer-tagline {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-kanji {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-red);
}

.no-content {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-gray);
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header & Navigation */
    .site-header {
        padding: 0.75rem 0;
    }
    
    .header-content {
        position: relative;
    }
    
    .logo-section h1 {
        font-size: 1.25rem;
    }
    
    /* Показать бургер */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Скрыть десктопный переключатель языков */
    .desktop-only {
        display: none;
    }
    
    /* Мобильная навигация */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        padding: 2rem;
        box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    }
    
    .main-nav.active {
        transform: translateX(0);
    }
    
    .main-nav a {
        font-size: 1.5rem;
        font-weight: 600;
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-radius: 8px;
        transition: background 0.3s, color 0.3s;
    }
    
    .main-nav a:hover,
    .main-nav a:active {
        background: var(--primary-red);
        color: var(--bg-white);
    }
    
    /* Показать мобильный переключатель языков */
    .mobile-only {
        display: flex;
        margin-top: 2rem;
        padding-top: 2rem;
        border-top: 2px solid var(--border-light);
        width: 100%;
        justify-content: center;
    }
    
    .mobile-only .lang-link {
        font-size: 1.25rem;
    }
    
    /* Hero */
    .hero-content {
        padding: 3rem 0 4rem;
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-contact-card {
        margin-top: 2rem;
    }

    .contacts-grid-two {
        grid-template-columns: 1fr;
    }
    
    .contact-circle-avatar {
        width: 100%;
        height: auto;
        aspect-ratio: 689 / 383;
        max-width: 500px;
    }
    
    .news-card-image {
        height: 250px;
    }
    
    .news-card-content {
        padding: 1.5rem;
    }
    
    .event-item-modern {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .event-location-modern {
        justify-content: center;
    }
    
    .event-main-row {
        flex-direction: column;
        align-items: center;
    }
    
    .event-text {
        text-align: center;
    }
    
    .event-thumb {
        width: 140px;
        height: 100px;
    }
    
    .partners-grid-circles {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
