/* ===== БАЗОВЫЕ СТИЛИ ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/*/ <weight>: Use a value from 300 to 700*/
/*/ <uniquifier>: Use a unique and descriptive class name*/
.cormorant-infant-500 {
  font-family: "Cormorant Infant", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant', 'Inter', sans-serif;
    font-feature-settings: "lnum";
    font-variant-numeric: lining-nums;
    overflow-x: hidden;
    color: #3a100a;
    background-color: #fff;
    /* font-size: 20px; */
    line-height: 1.4em;
}

.container {
    margin: 0 auto;
    max-width: 100%;
    padding: 0 16px;
}

@media(min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media(min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media(min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media(min-width: 1200px) {
    .container {
        max-width: 1180px;
    }
}

/* ===== ШАПКА И МНОГОУРОВНЕВОЕ МЕНЮ ===== */
.header {
    background: #fff;
    border-bottom: .5px solid rgba(121,66,37,.4);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.7s ease;
}

.header.scrolled {
    /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); */
	top:-100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1002;
}

.logo-icon {
    font-size: 2rem;
    color: #794225;
    transition: transform 0.3s ease;
}

.logo-text h1 {
	font-family:'Cormorant', 'Inter', sans-serif;    font-size: 1.5rem;
    font-weight: 700;
    color: #3a100a;
    margin: 0;
}

.logo-text p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Многоуровневое меню для десктопа */
nav {
    position: relative;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-menu > li {
    position: relative;
    margin-left: 25px;
}

.main-menu > li > a {
    color: #3a100a;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.main-menu > li > a:hover {
    background-color: rgba(121, 66, 37, 0.1);
    color: #794225;
}

/* Подменю первого уровня */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    position: relative;
}

.sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #3a100a;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sub-menu li a:hover {
    background-color: rgba(121, 66, 37, 0.1);
    color: #794225;
    padding-left: 25px;
}

/* Подменю второго уровня */
.sub-menu .sub-menu {
    top: 0;
    left: 100%;
    transform: translateX(10px);
}

.sub-menu .menu-item-has-children:hover > .sub-menu {
    transform: translateX(0);
}

/* Индикатор подменю */
.menu-item-has-children > a:after {
    content: '›';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.sub-menu .menu-item-has-children > a:after {
    position: absolute;
    right: 15px;
    transform: rotate(90deg);
}

.menu-item-has-children:hover > a:after {
    transform: rotate(180deg);
}

/* Кнопка мобильного меню - ИСПРАВЛЕНА */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid rgba(121,66,37,0.3);
    color: #3a100a;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    z-index: 1003; /* Увеличено для корректного отображения */
    position: relative;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex;
        position: fixed;
        right: 16px;
        top: 15px;
    }
    
    .main-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 20px 20px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        overflow-y: auto;
        z-index: 1002;
    }
    
    .main-menu.active {
        right: 0;
    }
    
    .main-menu > li {
        margin: 0;
        border-bottom: 1px solid rgba(121,66,37,0.1);
    }
    
    .main-menu > li:last-child {
        border-bottom: none;
    }
    
    .main-menu > li > a {
        padding: 15px 0;
        border-radius: 0;
        justify-content: space-between;
        font-size: 1.1rem;
    }
    
    /* Подменю в мобильной версии */
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(121,66,37,0.05);
        border-radius: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        margin-left: 20px;
    }
    
    .sub-menu.active {
        max-height: 1000px;
        padding: 10px 0;
    }
    
    .sub-menu li a {
        padding: 12px 0 12px 20px;
        font-size: 1rem;
    }
    
    .sub-menu .sub-menu li a {
        padding-left: 40px;
    }
    
    .sub-menu .menu-item-has-children > a:after {
        transform: rotate(0deg);
        right: 0;
    }
    
    .menu-item-has-children > a:after {
        transform: rotate(90deg);
    }
    
    .menu-item-has-children.active > a:after {
        transform: rotate(-90deg);
    }
    
    /* Оверлей для мобильного меню */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1001;
    }
    
    .menu-overlay.active {
        display: block;
    }
    
    /* Корректировка логотипа для мобильной версии */
    .logo {
        position: fixed;
        left: 16px;
        top: 15px;
        z-index: 1003;
        background: #fff;
        padding: 5px 10px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
}

/* ===== СЛАЙДЕР С COVERFLOW ЭФФЕКТОМ ===== */
.swiper {
    width: 100%;
    height: 500px;
    position: relative;
    margin-top: 70px;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    width: 60% !important; /* Для coverflow эффекта */
    transition: all 0.3s ease;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}

.swiper-slide-active img {
    transform: scale(1.05);
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(58, 16, 10, 0.85), transparent);
    color: white;
    padding: 40px;
    z-index: 2;
}

.slide-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 20px;
    opacity: 0.95;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    background-color: #e8b97f;
    color: #3a100a;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: all .3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.125rem;
    box-shadow: 0 4px 15px rgba(232, 185, 127, 0.3);
}

.btn:hover {
    background-color: #f1dec6;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(232, 185, 127, 0.4);
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.content {
    display: flex;
    margin: 60px 0;
    gap: 40px;
    flex-direction: column;
}

@media(min-width: 992px) {
    .content {
        flex-direction: row;
        align-items: flex-start;
    }
}

.main-content {
    flex: 3;
    min-height: 300px;
}

.sidebar {
    flex: 1;
    min-height: 300px;
}

/* ===== КАРТОЧКИ ===== */
.card {
    /* background: #f8f6f4; */
    border-radius: 10px;
    overflow: hidden;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); */
    margin-bottom: 40px;
    transition: all .4s ease;
    /* border: 1px solid rgba(0, 0, 0, 0.05); */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgb(0 0 0 / 3%);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform .7s ease;
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
}

.card h3 {
    color: #000000;
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 300;
    font-family: 'Cormorant', 'Inter', sans-serif;
}

.card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 200;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 0.9rem;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* ===== БОКОВАЯ ПАНЕЛЬ ===== */
.sidebar-widget {
    background: #ffffff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
    color: #794225;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8b97f;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* События */
.event-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.event-list li {
    padding: 15px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all .3s ease;
}

.event-list li:hover {
    background-color: rgba(232, 185, 127, 0.1);
    padding-left: 10px;
    padding-right: 10px;
    margin: 0 -10px;
    border-radius: 8px;
}

.event-list li:last-child {
    border-bottom: none;
}

.event-date {
    background-color: #794225;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: all .3s ease;
}

.event-list li:hover .event-date {
    transform: scale(1.1);
    background-color: #5a311b;
}

.event-day {
    font-weight: bold;
    font-size: 1.4rem;
    line-height: 1;
}

.event-month {
    font-size: 0.85rem;
}

.event-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #333;
}

/* ===== ГАЛЕРЕЯ ===== */
.gallery-section {
    padding: 80px 0;
}

.section-title {
    color: #3a100a;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #794225;
}

.main-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

@media(min-width: 768px) {
    .main-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(58, 16, 10, 0.9), transparent);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-image-container {
    width: 90%;
    max-width: 1200px;
    position: relative;
}

.modal-image-wrapper {
    position: relative;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

#fullImage {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

#imageDescription {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 20px;
    font-size: 1.1rem;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #333;
    z-index: 10;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.modal-image-container .modal-close {
    background: rgba(0,0,0,0.7);
    color: white;
    right: 10px;
    top: 10px;
}

/* Форма обратной связи */
.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #794225;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
}

/* ===== СТАТИСТИКА ===== */
.stats-section {
    padding: 80px 0;
    background: #794225;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

@media(min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #e8b97f;
}

.stat-text {
    font-size: 1.1rem;
}

/* ===== ПОДВАЛ ===== */
.footer {
    background: #f1dec6;
    padding: 60px 0 30px;
    position: relative;
    margin-top: 80px;
}

.footer:before {
    background: linear-gradient(to bottom, transparent, #f1dec6);
    content: "";
    display: block;
    height: 100px;
    left: 0;
    position: absolute;
    top: -100px;
    width: 100%;
}

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

@media(min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-section h3 {
    color: #3a100a;
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #794225;
}

.footer-section p, .footer-section a {
    color: #666;
    margin-bottom: 12px;
    display: block;
    text-decoration: none;
    transition: all .3s ease;
}

.footer-section a:hover {
    color: #794225;
    padding-left: 8px;
}

.contact-info i {
    width: 20px;
    margin-right: 10px;
    color: #794225;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #555;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all .3s ease;
}

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

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.9rem;
    color: #888;
}

/* ===== КНОПКА "НАВЕРХ" ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #794225;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    box-shadow: 0 5px 15px rgba(121, 66, 37, 0.3);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: #5a311b;
    transform: translateY(-5px);
}

/* ===== НАВИГАЦИЯ ДЛЯ ИЗОБРАЖЕНИЙ ===== */
.image-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    z-index: 5;
}

.image-nav button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.image-nav button:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}
.about-image>img {
	max-width: 100%;
}
/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .swiper {
        height: 350px;
    }
    
    .slide-content {
        padding: 25px;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .main-gallery {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .modal-content {
        padding: 25px 20px;
    }
}

@media (max-width: 576px) {
    .logo-text h1 {
        font-size: 1.3rem;
    }
    
    .swiper {
        height: 300px;
        margin-top: 80px;
    }
    
    .swiper-slide {
        width: 80% !important;
    }
    
    .slide-content h2 {
        font-size: 1.3rem;
    }
    
    .gallery-item {
        height: 180px;
    }
    
    .image-nav {
        padding: 0 10px;
    }
    
    .image-nav button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}