/* Сброс и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #f0f9f0;
    --light-green: #e8f5e9;
    --text-color: #4a235a;
    --dark-text: #2c0e3a;
    --accent-orange: #ffccbc;
    --accent-dark-orange: #ffab91;
    --white: #ffffff;
    --glass-white: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: rgba(74, 35, 90, 0.1);
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --box-shadow: 0 8px 32px var(--glass-shadow);
    --box-shadow-hover: 0 16px 48px rgba(74, 35, 90, 0.15);
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--primary-green) 0%, #e6f3e6 100%);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 204, 188, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(74, 35, 90, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(232, 245, 233, 0.2) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

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

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes borderGlow {
    0%, 100% {
        border-color: var(--accent-orange);
        box-shadow: 0 0 20px rgba(255, 204, 188, 0.5);
    }
    50% {
        border-color: var(--text-color);
        box-shadow: 0 0 30px rgba(74, 35, 90, 0.3);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Навигация - стеклянный эффект */
.navbar {
    background: rgba(255, 204, 188, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0;
    border-bottom: 3px solid var(--text-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin: 0 10px;
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(74, 35, 90, 0.2);
    animation: pulse 0.5s ease;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.nav-links a:hover::before {
    left: 100%;
}

.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    padding: 12px 16px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

/* Секции */
section {
    padding: 100px 0;
    animation: fadeInUp 0.8s ease-out;
}

section:nth-child(even) {
    background: rgba(232, 245, 233, 0.4);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    margin: 40px 10px;
    position: relative;
    overflow: hidden;
}

section:nth-child(even)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--accent-orange) 0%,
        var(--text-color) 50%,
        var(--accent-orange) 100%);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

h2 {
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-color);
    font-size: 2.8rem;
    position: relative;
    padding-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-orange), var(--text-color));
    border-radius: 3px;
    animation: borderGlow 3s infinite;
}

/* Герой секция */
.hero {
    position: relative;
    text-align: center;
    padding: 60px 0 80px;
}

.hero-image {
    background: linear-gradient(45deg,
        rgba(74, 35, 90, 0.4),
        rgba(255, 204, 188, 0.4)),
        url('../images/hero-bg.jpg') center/cover no-repeat;
    height: 450px;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--glass-border);
    box-shadow: var(--box-shadow);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%);
    animation: shimmer 3s infinite linear;
}

.hero-slogan {
    color: var(--white);
    padding: 40px;
    max-width: 900px;
    background: rgba(74, 35, 90, 0.7);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-slogan h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-slogan p {
    font-size: 1.5rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Логотип в круге */
.logo-frame {
    margin: -60px auto 30px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--glass-white);
    padding: 20px;
    border: 3px solid var(--glass-border);
    box-shadow:
        0 20px 40px rgba(74, 35, 90, 0.2),
        inset 0 0 60px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.logo-frame::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        var(--accent-orange),
        transparent 30%
    );
    animation: rotate 4s linear infinite;
}

.logo-frame::after {
    content: '';
    position: absolute;
    inset: 5px;
    background: var(--glass-white);
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.logo-frame img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 250px;  /* было 150px */
    max-height: 250px; /* было 150px */
    width: auto;
    height: auto;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.site-title {
    font-size: 3rem;
    color: var(--text-color);
    margin-top: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out 0.9s both;
}

/* О нас */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out;
}

.about-gallery {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.gallery-item {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    animation: fadeInUp 0.8s ease-out;
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    background: linear-gradient(45deg, var(--accent-orange), var(--text-color)) border-box;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.gallery-item img:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 40px rgba(74, 35, 90, 0.3);
}

.gallery-item p {
    font-weight: 700;
    color: var(--dark-text);
    font-size: 1.3rem;
    text-align: center;
    background: linear-gradient(45deg, var(--text-color), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Направления */
.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.direction-card {
    background: var(--glass-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.direction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-orange), var(--text-color));
}

.direction-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--accent-orange);
}

.direction-card i {
    font-size: 56px;
    background: linear-gradient(45deg, var(--text-color), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.direction-card:hover i {
    transform: scale(1.2) rotate(10deg);
}

.direction-card h3 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 1.4rem;
}

/* Специалисты */
.specialists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
    margin-top: 50px;
}

.specialist-card {
    background: var(--glass-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
}

.specialist-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: var(--box-shadow-hover);
}

.specialist-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-bottom: 5px solid transparent;
    background: linear-gradient(90deg, var(--accent-orange), var(--text-color)) border-box;
    transition: all 0.5s ease;
}

.specialist-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.specialist-card h3 {
    margin: 25px 0 10px;
    color: var(--text-color);
    font-size: 1.5rem;
    padding: 0 20px;
}

.specialist-card .specialty {
    color: var(--accent-dark-orange);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--accent-dark-orange), var(--text-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.specialist-card p {
    padding: 0 25px 25px;
    color: var(--dark-text);
    line-height: 1.6;
}

/* Новости */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.news-card {
    background: var(--glass-white);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.news-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 8px;
    background: linear-gradient(to bottom, var(--accent-orange), var(--text-color));
}

.news-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--box-shadow-hover);
}

.news-date {
    background: linear-gradient(45deg, var(--accent-orange), var(--text-color));
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 0.9rem;
    border: none;
}

.news-card h3 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 1.5rem;
    line-height: 1.4;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    padding: 10px 20px;
    background: rgba(74, 35, 90, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid transparent;
}

.read-more:hover {
    color: var(--white);
    background: linear-gradient(45deg, var(--accent-orange), var(--text-color));
    transform: translateX(10px);
    border-color: var(--glass-border);
}

/* Занимайся с нами (видео) */
.practice-section {
    background: linear-gradient(135deg,
        rgba(240, 249, 240, 0.8) 0%,
        rgba(224, 242, 224, 0.8) 100%);
    padding: 100px 0;
    position: relative;
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    margin: 40px 10px;
    border: 1px solid var(--glass-border);
}

.practice-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg,
        var(--accent-orange) 0%,
        var(--text-color) 50%,
        var(--accent-orange) 100%);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--dark-text);
    max-width: 800px;
    margin: 0 auto 60px;
    opacity: 0.9;
    line-height: 1.7;
    padding: 0 20px;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 50px;
    margin-bottom: 70px;
}

.video-item {
    background: var(--glass-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
}

.video-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--accent-orange);
}

.video-container {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    overflow: hidden;
    border-bottom: 5px solid transparent;
    background: linear-gradient(90deg, var(--accent-orange), var(--text-color)) border-box;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

video::-webkit-media-controls-panel {
    background: rgba(255, 204, 188, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0 0 8px 8px;
}

video::-webkit-media-controls-play-button,
video::-webkit-media-controls-volume-slider-container,
video::-webkit-media-controls-mute-button,
video::-webkit-media-controls-fullscreen-button {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 5px;
}

video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display {
    color: var(--text-color);
    font-weight: 600;
}

video::-webkit-media-controls-timeline {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
}

.video-description {
    position: relative;
    z-index: 1;
    padding: 30px;
    background: transparent;
}

.video-description h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
    line-height: 1.4;
    min-height: 60px;
}

.video-description p {
    color: var(--dark-text);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.video-duration {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, var(--accent-orange), var(--text-color));
    color: var(--white);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
}

.video-duration i {
    font-size: 0.9rem;
}

/* Форма подписки */
.video-cta {
    background: var(--glass-white);
    border-radius: var(--border-radius);
    padding: 50px;
    text-align: center;
    box-shadow: var(--box-shadow);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
}

.video-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-orange), var(--text-color));
}

.video-cta h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 2rem;
    background: linear-gradient(45deg, var(--text-color), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.video-cta p {
    color: var(--dark-text);
    margin-bottom: 40px;
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.subscribe-form {
    display: flex;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
    padding: 18px 25px;
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius);
    font-size: 16px;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 204, 188, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(45deg, var(--text-color), var(--dark-text));
    color: var(--white);
    border: none;
    padding: 18px 35px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(74, 35, 90, 0.3);
    background: linear-gradient(45deg, var(--dark-text), var(--text-color));
}

/* CTA форма */
.cta {
    background: linear-gradient(135deg,
        rgba(74, 35, 90, 0.9),
        rgba(44, 14, 58, 0.9));
    color: var(--white);
    text-align: center;
    padding: 100px 0;
    position: relative;
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    margin: 40px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-orange), var(--white), var(--accent-orange));
}

.cta h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--accent-orange);
    text-shadow: 0 0 20px rgba(255, 204, 188, 0.5);
    animation: pulse 2s infinite;
}

.cta h2 {
    color: var(--white);
}

.cta h2::after {
    background: linear-gradient(90deg, var(--accent-orange), var(--white));
}

.cta p {
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.3rem;
    opacity: 0.95;
    line-height: 1.7;
}

.cta-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.cta-form input {
    padding: 18px 25px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    font-size: 16px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.cta-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.cta-form input:focus {
    outline: none;
    border-color: var(--accent-orange);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 3px rgba(255, 204, 188, 0.2);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-dark-orange));
    color: var(--text-color);
    border: none;
    padding: 20px 45px;
    font-size: 18px;
    font-weight: 700;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--accent-dark-orange), var(--accent-orange));
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.form-message {
    margin-top: 25px;
    padding: 20px;
    border-radius: var(--border-radius);
    font-weight: 700;
    background: rgba(212, 237, 218, 0.9);
    color: #155724;
    border: 1px solid rgba(195, 230, 203, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.5s ease-out;
}

/* Отзывы */
.reviews-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.review-card {
    background: var(--glass-white);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    position: relative;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease;
    animation: fadeInUp 0.8s ease-out;
}

.review-card:hover {
    transform: translateY(-10px);
}

.review-card::before {
    content: '"';
    font-size: 120px;
    color: var(--accent-orange);
    position: absolute;
    top: -40px;
    left: 20px;
    opacity: 0.3;
    font-family: serif;
    z-index: 0;
}

.review-card::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    background: linear-gradient(45deg, var(--accent-orange), transparent) border-box;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.review-text {
    font-style: italic;
    margin-bottom: 25px;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dark-text);
    position: relative;
    z-index: 1;
}

.review-author {
    border-top: 2px solid var(--accent-orange);
    padding-top: 20px;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Контакты */
.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
    margin-top: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: var(--glass-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out;
}

.contact-item:hover {
    transform: translateX(15px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--accent-orange);
}

.contact-item i {
    font-size: 32px;
    background: linear-gradient(45deg, var(--accent-orange), var(--text-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 5px;
    flex-shrink: 0;
}

.contact-item h3 {
    margin-bottom: 12px;
    color: var(--text-color);
    font-size: 1.3rem;
}

.contact-item p {
    color: var(--dark-text);
    line-height: 1.6;
}

.map-placeholder {
    background: var(--glass-white);
    padding: 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.map-placeholder h3 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.map {
    height: 350px;
    background: linear-gradient(45deg, rgba(255, 204, 188, 0.2), rgba(74, 35, 90, 0.1));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px dashed var(--accent-orange);
    transition: all 0.3s ease;
}

.map:hover {
    background: linear-gradient(45deg, rgba(255, 204, 188, 0.3), rgba(74, 35, 90, 0.2));
    transform: scale(1.02);
}

/* Футер */
footer {
    background: linear-gradient(135deg,
        rgba(74, 35, 90, 0.95),
        rgba(44, 14, 58, 0.95));
    color: var(--white);
    padding: 80px 0 30px;
    margin-top: 60px;
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

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

.footer-logo h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--white);
    background: linear-gradient(45deg, var(--white), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo p {
    opacity: 0.9;
    font-size: 1.1rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.9;
    font-size: 1.1rem;
    padding: 8px 0;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-orange);
    opacity: 1;
    transform: translateX(10px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(-5px);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 22px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.social-links a:hover {
    background: linear-gradient(45deg, var(--accent-orange), var(--text-color));
    color: var(--white);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: transparent;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0.8;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* Адаптивность */
@media (max-width: 1100px) {
    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        padding: 8px 16px;
        font-size: 15px;
    }

    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .hero-slogan h1 {
        font-size: 2.8rem;
    }

    .site-title {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2.3rem;
    }

    .logo-frame {
        width: 180px;
        height: 180px;
        margin: -50px auto 25px;
    }

    .logo-frame img {
        max-width: 140px;
        max-height: 140px;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        justify-content: space-between;
        padding: 0 15px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(255, 204, 188, 0.95);
        backdrop-filter: blur(20px);
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        gap: 0;
        max-height: 80vh;
        overflow-y: auto;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        border: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 18px;
        text-align: center;
        border-bottom: 1px solid rgba(74, 35, 90, 0.1);
        font-size: 16px;
        margin: 5px 0;
        border-radius: var(--border-radius);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    section {
        padding: 70px 0;
    }

    .hero-image {
        height: 350px;
        margin: 0 10px;
    }

    .hero-slogan {
        padding: 25px;
    }

    .hero-slogan h1 {
        font-size: 2.2rem;
    }

    .hero-slogan p {
        font-size: 1.2rem;
    }

    .gallery-item {
        min-width: 100%;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .videos-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .video-cta {
        padding: 35px 25px;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .subscribe-form input,
    .subscribe-form button {
        width: 100%;
    }

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

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

@media (max-width: 480px) {
    .hero-slogan h1 {
        font-size: 1.8rem;
    }

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

    h2 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .logo-frame {
        width: 250px;      /* было 150px */
        height: 250px;     /* было 150px */
        margin: -40px auto 20px;
    }

    .logo-frame img {
        max-width: 300px;  /* было 120px */
        max-height: 300px; /* было 120px */
    }


    .directions-grid,
    .specialists-grid,
    .news-grid,
    .reviews-slider {
        grid-template-columns: 1fr;
    }

    .video-description {
        padding: 25px;
    }

    .video-description h3 {
        font-size: 1.3rem;
        min-height: auto;
    }

    .video-cta h3 {
        font-size: 1.7rem;
    }

    .video-cta p {
        font-size: 1.1rem;
    }

    .cta h1 {
        font-size: 3rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 16px 25px;
        font-size: 15px;
    }

    .contact-item {
        padding: 25px;
    }

    .map {
        height: 250px;
    }
}

/* Дополнительные классы для JS */
.video-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 20px;
    text-align: center;
    z-index: 10;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.video-error p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.reload-video {
    background: linear-gradient(45deg, var(--accent-orange), var(--text-color));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reload-video:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Класс для секций с верхней полоской */
.section-with-line {
    position: relative;
}

.section-with-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--text-color), var(--accent-orange));
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}