/* Сброс стилей и общие настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #FFD700;
    --primary-orange: #FFA500;
    --accent-orange: #FF8C00;
    --dark-orange: #FF6600;
    --text-dark: #333;
    --text-light: #666;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* Заголовки */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

/* Навигация */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(8px, 0.8vw, 18px);
    padding: 0 clamp(18px, 2vw, 40px);
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-dark);
    text-decoration: none;
    position: static;
    min-width: 0;
}

.nav-logo img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-logo span {
    white-space: nowrap;
    line-height: 1.2;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(10px, 0.65vw, 16px);
    align-items: center;
    justify-content: center;
    justify-self: stretch;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: clamp(1.1rem, 1.02vw, 1.22rem);
    white-space: nowrap;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--dark-orange);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--dark-orange);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: clamp(3px, 0.3vw, 6px);
    align-items: center;
    justify-self: end;
    position: static;
}

.social-links a {
    color: var(--text-dark);
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 3px;
}

.social-links a:hover {
    color: var(--dark-orange);
    transform: scale(1.1);
}

.social-links img {
    height: 18px;
    width: 18px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* Секции */
.section {
    padding: 20px 0;
    position: relative;
}

.section:first-of-type {
    padding-top: 130px;
}

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

.section-title i {
    color: var(--primary-orange);
    margin: 0 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
    border-radius: 2px;
}

/* Стили для страницы цигун */
.qigong-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.qigong-text {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.qigong-section h3 {
    color: var(--primary-orange);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qigong-section h3 i {
    color: var(--primary-gold);
    font-size: 1.5rem;
}

.qigong-section p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.qigong-section p strong {
    font-weight: normal;
}

.emphasis {
    text-align: center;
    font-size: 1.3rem;
    color: var(--primary-orange);
    margin: 2rem 0;
    padding: 20px;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-gold);
    border-right: 4px solid var(--primary-gold);
}

.emphasis strong {
    font-weight: bold;
}

.highlight {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 2rem 0;
    padding: 20px;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-gold);
    border-right: 4px solid var(--primary-gold);
}

.highlight strong {
    font-weight: bold;
}

.qigong-benefits h3 {
    color: var(--primary-orange);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qigong-benefits h3 i {
    color: var(--primary-gold);
    font-size: 1.4rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-orange);
}

.benefits-list li:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.benefits-list i {
    color: var(--primary-orange);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.qigong-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-orange);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-card h4 {
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-card h4 i {
    color: var(--primary-orange);
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.qigong-image {
    display: flex;
    justify-content: center;
    align-items: stretch;
    height: 100%;
}

.qigong-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.qigong-image img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* Контакты */
.contacts-section {
    background: var(--light-bg);
    padding: 60px 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.contact-item h3 {
    color: var(--primary-orange);
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-item h3 i {
    color: var(--primary-gold);
    font-size: 1.4rem;
}

.contact-item p {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* Карта */
.map-container {
    margin-top: 40px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Подвал */
.footer {
    background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
    color: #000;
    padding: 90px 0 45px;
}

.footer * {
    color: #000 !important;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    font-weight: bold;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-gold);
}

.footer-social {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer-social a {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--primary-gold);
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Галерея цигун */
.gallery-section {
    background: var(--light-bg);
    padding: 60px 0;
}

.qigong-gallery-container {
    position: relative;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.qigong-gallery-main {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
}

.qigong-gallery-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: opacity 0.5s ease-in-out;
}

.gallery-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    pointer-events: none;
}

.gallery-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-dark);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.gallery-btn:hover {
    background: var(--primary-orange);
    color: white;
    transform: scale(1.1);
}

.gallery-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .qigong-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .qigong-image {
        position: static;
        order: -1;
    }

    .qigong-features {
        grid-template-columns: 1fr;
    }

    .benefits-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 2100px) {
    .nav-container {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 8px;
        padding: 0 16px;
    }

    .nav-logo {
        gap: 8px;
        font-size: 1.05rem;
    }

    .nav-logo img {
        height: 38px;
    }

    .nav-logo span {
        max-width: 215px;
    }

    .nav-menu {
        justify-self: stretch;
        justify-content: center;
        gap: clamp(9px, 0.6vw, 14px);
    }

    .social-links a {
        padding: 1px;
    }
}
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, var(--primary-gold), var(--primary-orange));
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 20px 0;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-logo {
        font-size: 1rem;
        flex-shrink: 1;
        min-width: 0;
    }

    .nav-logo img {
        height: 30px;
    }

    .nav-logo span {
        max-width: 150px;
        font-size: 0.9rem;
    }

    .social-links {
        display: none;
    }

    .section {
        padding: 60px 0;
    }

    .section:first-of-type {
        padding-top: 100px;
    }

    .section-title {
        font-size: 2rem;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .qigong-gallery-container {
        max-width: 100%;
        margin: 20px 0;
    }

    .qigong-gallery-main img {
        height: 300px;
    }

    .gallery-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .qigong-image img {
        max-width: 300px;
    }
}
/* Desktop header reset for small screens */
@media (max-width: 768px) {
    .nav-container {
        display: flex;
        justify-content: space-between;
        padding: 0 20px;
    }

    .hamburger {
        margin-left: auto;
    }
}

@media (min-width: 1201px) and (max-width: 2100px) {
    .qigong-text {
        gap: 18px;
    }

    .qigong-section h3,
    .qigong-benefits h3 {
        font-size: 1.5rem;
        margin-bottom: 0.9rem;
    }

    .qigong-section p {
        font-size: 0.96rem;
        line-height: 1.45;
        margin-bottom: 0.9rem;
    }

    .emphasis,
    .highlight {
        font-size: 1.05rem;
        margin: 1rem 0;
        padding: 13px;
    }

    .benefits-list,
    .qigong-features {
        gap: 10px;
        margin-top: 16px;
    }

    .benefits-list li,
    .feature-card {
        padding: 12px;
    }

    .feature-card h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .feature-card p,
    .benefits-list li {
        font-size: 0.86rem;
        line-height: 1.35;
    }
}
