/* ---------- RESET & GLOBAL ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'FuturaNew', sans-serif;
    line-height: 1.5;
    background: #FFF9F0;
    color: #2D2D2D;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- CSS VARIABLES ---------- */
:root {
    --color-gray: #e8f1f7;
    --color-text: #454240;
    --color-dark: #1C4780;
    --color-blue: #1EAAF1;
    --sun: #FFB800;
    --orange: #FF6B35;
    --coral: #FF8A5C;
    --teal: #00C2A8;
    --white: #FFFFFF;
    --dark: #2D2D2D;
}

/* ---------- ВЕРХНЯЯ ПАНЕЛЬ (header__top) ---------- */
.header__top {
    background: var(--color-gray);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 8px 0;
}

.header__top .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
}

.adress {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text);
}

.adress a.mail {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s;
}

.adress a.mail:hover {
    color: var(--color-blue);
    text-decoration: underline;
}

.svg-icon, .icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.icon {
    width: 20px;
    height: 20px;
}

.social {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 12px;
}

.social li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    transition: all 0.2s;
    color: var(--color-dark);
}

.social li a:hover {
    background: var(--color-blue);
    transform: scale(1.05);
}

.social li a:hover svg {
    fill: white;
}

.version {
    display: flex;
    align-items: center;
}

.bvi-shortcode a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    background: #f0f3f5;
    padding: 6px 14px;
    border-radius: 40px;
    color: #1C4780;
    transition: 0.2s;
}

.bvi-shortcode a:hover {
    background: #d9e2e8;
    color: #0f2e4f;
}

.bvi-svg-eye {
    width: 20px;
    height: 18px;
    fill: currentColor;
}

.header__lang {
    display: flex;
    list-style: none;
    gap: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 40px;
    padding: 4px 12px;
}

.header__lang li a {
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 4px 8px;
    border-radius: 30px;
    transition: 0.2s;
    color: var(--color-dark);
}

.header__lang .current-lang a {
    background: var(--color-blue);
    color: white;
}

.header__lang li:not(.current-lang) a:hover {
    background: rgba(30, 170, 241, 0.2);
    color: var(--color-blue);
}

/* ---------- ОСНОВНОЙ HEADER ---------- */
.main-header {
    background: linear-gradient(135deg, #FFB800 0%, #FF8A5C 100%);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.25);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    background: rgba(255, 255, 255, 0.3);
    width: 56px;
    height: 56px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    backdrop-filter: blur(4px);
}

.logo-text {
    max-width: 180px;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 3px 0 0 0;
}

.nav-menu {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-menu > ul > li {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.nav-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 8px 0;
    gap: 0;
    min-width: 200px;
}

.nav-menu > ul > li:hover > ul {
    display: flex;
}

.nav-menu ul ul li {
    display: flex;
}

.nav-menu ul ul a {
    padding: 10px 20px !important;
    border-radius: 0;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.02);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    font-size: 1.2rem;
}

.social-icons a:hover {
    background: white;
    color: #FF6B35;
    transform: translateY(-3px) rotate(5deg);
}

/* ---------- HERO ---------- */
.hero {
    background: linear-gradient(120deg, #FFE8B6 0%, #FFD9A5 100%);
    padding: 70px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "🌈";
    font-size: 200px;
    position: absolute;
    bottom: -40px;
    right: -40px;
    opacity: 0.15;
    transform: rotate(-10deg);
    pointer-events: none;
}

.hero::after {
    content: "⭐";
    font-size: 120px;
    position: absolute;
    top: 20px;
    left: -30px;
    opacity: 0.12;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-badge {
    background: #FF6B35;
    color: white;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero h2 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h2 span {
    background: linear-gradient(135deg, #FF6B35, #FFB800);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: #4A4A4A;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B35, #FFB800);
    color: white;
    padding: 14px 32px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.4);
}

.btn-outline {
    border: 2px solid #FF6B35;
    color: #FF6B35;
    background: white;
    padding: 12px 28px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: #FF6B35;
    color: white;
}

.hero-image img {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 25px 40px -15px rgba(0, 0, 0, 0.2);
    border: 4px solid white;
}

/* ---------- STATS SECTION ---------- */
.stats-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #E8F8F5 0%, #D1F2EB 100%);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 50px;
}

.section-title:after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FFB800, #FF6B35);
    margin: 15px auto 0;
    border-radius: 4px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 28px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 194, 168, 0.2);
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: #00C2A8;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #FF6B35, #FFB800);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: #4A4A4A;
    margin-top: 12px;
}

/* ---------- FEATURES ---------- */
.features {
    background: #FFF0E6;
    padding: 70px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 35px 24px;
    border-radius: 32px;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-bottom-color: #00C2A8;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
}

.feature-card:nth-child(1) .feature-icon { background: #FFE8B6; }
.feature-card:nth-child(2) .feature-icon { background: #FFD9C5; }
.feature-card:nth-child(3) .feature-icon { background: #D1F2EB; }
.feature-card:nth-child(4) .feature-icon { background: #E8DAEF; }

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700;
}

/* ---------- DIRECTOR ---------- */
.director {
    padding: 70px 0;
    background: linear-gradient(135deg, #FDEBD0 0%, #FAD7A0 100%);
}

.director-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

.director-photo img {
    width: 100%;
    max-width: 380px;
    border-radius: 40px;
    display: block;
    border: 5px solid white;
}

.director-quote {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.director-quote i {
    color: #FFB800;
    font-size: 2rem;
    margin-right: 10px;
}

.director-name {
    font-weight: 800;
    font-size: 1.2rem;
    margin-top: 20px;
    color: #FF6B35;
}

.director-post {
    color: #666;
    font-size: 0.95rem;
}

/* ---------- FEEDBACK ---------- */
.feedback {
    background: linear-gradient(135deg, #00C2A8 0%, #009688 100%);
    padding: 70px 0;
    color: white;
}

.feedback-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.feedback h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    font-weight: 800;
}

.contact-info p {
    margin: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 60px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    border-radius: 24px;
    resize: vertical;
}

.contact-form button {
    background: linear-gradient(135deg, #FFB800, #FF8A5C);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 60px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
    width: 100%;
}

.contact-form button:hover {
    opacity: 0.9;
}

/* ---------- MAP ---------- */
.map-section {
    padding: 50px 0;
    background: #FFF9F0;
}

.map-container {
    border-radius: 32px;
    overflow: hidden;
    border: 4px solid white;
}

.map-container iframe {
    display: block;
}

/* ---------- FOOTER ---------- */
.footer {
    background: #2D2D2D;
    color: #E0E0E0;
    padding: 50px 0 30px;
}

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

.footer h4 {
    color: #FFB800;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #E0E0E0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #FFB800;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
}

/* ---------- MEDIA QUERIES ---------- */
@media (max-width: 880px) {
    .header__top .container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .adress, .social, .version, .header__lang {
        justify-content: center;
    }
    
    .header__lang {
        align-self: center;
    }
}

@media (max-width: 768px) {
    .hero-grid, .director-grid, .feedback-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 520px) {
    .bvi-shortcode a span:last-child {
        display: none;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ========== ПЕРЕОПРЕДЕЛЕНИЕ ФОНА ВЕРХНЕЙ ПАНЕЛИ ========== */
.header__top {
    background: linear-gradient(120deg, #FFE8B6 0%, #FFD9A5 100%);
}

.bvi-shortcode a {
    background: rgba(255, 255, 255, 0.6);
}

.bvi-shortcode a:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* ========== УЛУЧШЕННЫЕ ИКОНКИ СОЦСЕТЕЙ В ВЕРХНЕЙ ПАНЕЛИ ========== */
.header__top .social li a {
    background: rgba(255, 255, 255, 0.9);
    color: #FF6B35;
    transition: all 0.3s ease;
}

.header__top .social li a:hover {
    background: linear-gradient(135deg, #FF6B35, #FFB800);
    color: white;
    transform: translateY(-3px);
}

.header__top .social li a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.header__top .social li a:hover svg {
    fill: white;
}

/* ========== УМЕНЬШЕНИЕ БЛОКА BVI (ВЕРСИЯ ДЛЯ СЛАБОВИДЯЩИХ) ========== */
.version {
    display: flex;
    align-items: center;
}

.bvi-shortcode a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.6);
    padding: 5px 10px;
    border-radius: 40px;
    color: #1C4780;
    transition: 0.2s;
}

.bvi-svg-eye {
    width: 16px;
    height: 14px;
    fill: currentColor;
}

.bvi-shortcode a span {
    font-size: 11px;
    white-space: nowrap;
}

/* Адаптация для планшетов */
@media (max-width: 880px) {
    .bvi-shortcode a span {
        font-size: 10px;
    }
    
    .bvi-shortcode a {
        padding: 4px 8px;
        gap: 4px;
    }
}

/* Для мобильных телефонов - скрываем текст, оставляем только иконку */
@media (max-width: 620px) {
    .bvi-shortcode a span {
        display: none;
    }
    
    .bvi-shortcode a {
        padding: 6px 8px;
    }
    
    .bvi-svg-eye {
        width: 18px;
        height: 16px;
    }
}

/* ========== КОМПАКТНЫЙ ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКОВ ========== */
.header__lang {
    display: flex;
    list-style: none;
    gap: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 40px;
    padding: 3px 8px;
    margin: 0;
}

.header__lang li a {
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 30px;
    transition: all 0.2s;
    color: #1C4780;
    display: inline-block;
}

.header__lang .current-lang a {
    background: linear-gradient(135deg, #FF6B35, #FFB800);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header__lang li:not(.current-lang) a:hover {
    background: rgba(255, 107, 53, 0.15);
    color: #FF6B35;
    transform: translateY(-1px);
}

/* Адаптация для планшетов */
@media (max-width: 880px) {
    .header__lang {
        padding: 2px 6px;
    }
    
    .header__lang li a {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* Для мобильных телефонов */
@media (max-width: 620px) {
    .header__lang {
        padding: 2px 5px;
        gap: 2px;
    }
    
    .header__lang li a {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* WordPress specific */
.widget {
    margin-bottom: 20px;
}

.widget-title {
    margin-bottom: 15px;
    color: #FFB800;
}

main {
    min-height: 50vh;
}

.post-section {
    padding: 70px 0;
    background: #FFF9F0;
}

.post-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    color: #1C4780;
}

.post-meta {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 30px;
}

.post-meta span {
    margin-right: 20px;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
    border-radius: 20px;
}

/* Адаптивное видео в контенте */
.post-content iframe,
.post-content video,
.wp-video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px 0;
}

/* Контейнер для встроенных видео с сохранением соотношения сторон */
.post-content > iframe,
.post-embed-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
}

/* YouTube видео из Gutenberg блока */
.wp-block-embed-youtube,
.wp-block-embed.is-type-video {
    width: 100% !important;
    height: auto !important;
    margin: 40px 0 !important;
}

.wp-block-embed-youtube .wp-block-embed__wrapper,
.wp-block-embed.is-type-video .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding-bottom: 56.25%; /* 16:9 соотношение */
    height: 0;
    overflow: hidden;
}

.wp-block-embed-youtube .wp-block-embed__wrapper iframe,
.wp-block-embed.is-type-video .wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Стили для кнопки отправки формы */
button[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 14px 32px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

button[type="submit"]:active {
    transform: translateY(1px);
}
