/**
 * Theme Name:  fourelements
 * Description: Тема для сайта женского клуба
 *
 * Theme URI:   http://underscores.me/
 * Author:      Chipolino
 * Author URI:  http://underscores.me/
 *
 * Tags:        black, brown, orange
 * Text Domain: woman4elements
 *
 * License:     Лицензия. Пр: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Version:     1.0
 */

 @font-face {
    font-family: 'GEHAKS'; 
    src: url('fonts/GEHAKS.otf') format('otf'); 
    font-weight: normal;
    font-style: normal;
}       

/* Базовые стили и переменные */
:root {
    --bg-dark: #111820;
    --bg-light: #F5F1E6;
    --text-light: #F5F1E6;
    --text-dark: #111820;
    --accent-gold: #D0B897;
    --card-red: #461125;
    --font-heading: 'GEHAKS', serif;
    --font-body: 'Montserrat', sans-serif;
    --border-color: #d8d0c1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1192px;
    margin: 0 auto;
}

/* Общая анимация появления */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
    УТИЛИТЫ (Для темных страниц)
========================================= */
body.body-dark {
    background-color: var(--bg-dark);
}

header.header-transparent {
    background-color: transparent;
}

/* =========================================
    ХЭДЕР
========================================= */
header {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 19px 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-gold);
}

.main-menu {
    display: flex;
    gap: 50px;
    font-size: 18px;
}

.main-menu a:hover {
    color: var(--accent-gold);
}

.btn-primary {
    background-color: var(--accent-gold);
    color: #111820;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #c4ae90;
}

/* =========================================
 ГЛАВНАЯ СТРАНИЦА
========================================= */
/* --- Hero Section --- */
.hero {
    background-color: var(--bg-dark);
    background: radial-gradient(circle at center, #294144 0%, #111820 100%);
    color: var(--text-light);
    padding-top: 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 1080px;
}

.hero h1 {
    font-family: var(--font-body);
    font-size: 50px;
    font-weight: 500;
}

.hero h2 {
    font-family: var(--font-heading);
    font-size: 70px;
    font-weight: 400;
    color: #D0B897;
    letter-spacing: 4px;
    margin-bottom: 5px;
}

/* Иконки стихий и Тултип */
.elements-icons {
    display: flex;
    justify-content: center;
    gap: 220px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.element-item {
    position: relative;
    cursor: pointer;
}

.element-item img {
    height: 82px;
    object-fit: contain;
    transition: transform 0.3s;
}

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

.tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--card-red);
    color: #fff;
    width: 234px;
    min-height: 195px;
    height: 220px; 
    padding: 20px 15px;
    font-size: 15px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.element-item:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.tooltip strong, .tooltip b {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
}

.tooltip-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent-gold);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    border-bottom: 1px solid transparent;
    align-self: center;
}

.tooltip-link:hover {
    color: #fff;
    border-bottom: 1px solid #fff;
}

.hero-image-wrapper {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1192px;
    height: 665px;
    z-index: 1;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
    opacity: 0; 
    animation: fadeUpWoman 1.2s ease-out 0.2s forwards;
}

@keyframes fadeUpWoman {
    from {
        opacity: 0;
        transform: translateY(80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Описание --- */
.description {
    margin-top: 140px;
    text-align: center;
}

.description p {
    margin: 0 auto;
    font-size: 18px;
    color: #461125;
    line-height: 1.8;
}

/* --- Мероприятия: Бесконечная карусель --- */
.events {
    margin-top: 140px;
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 32px;
    padding-bottom: 40px;
    letter-spacing: 1px;
    color: #111820;
}

.events-carousel-wrapper {
    width: 100%;
    overflow: hidden; 
    position: relative;
}

.events-track {
    display: flex;
    width: max-content; 
    animation: scroll-carousel 30s linear infinite; 
}

.events-track:hover {
    animation-play-state: paused; 
}

.carousel-set {
    display: flex;
    gap: 20px;
    padding-right: 20px; 
}

.event-card {
    width: calc((100vw - 80px) / 3); 
    max-width: 370px; 
    flex-shrink: 0;
    background-color: var(--card-red);
    color: #D0B897;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.event-info {
    padding: 20px 15px;
    flex-grow: 1;
}

.event-date {
    font-size: 18px;
    color: #d1b4a6;
    margin-bottom: 10px;
}

.event-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
}

@keyframes scroll-carousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Отзывы --- */
.testimonials {
    margin-top: 140px;
    margin-bottom: 140px;
    background-color: var(--bg-light);
}

.reviews-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 66px;
    max-width: 1192px;
    margin: 0 auto;
}

.review-arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: opacity 0.3s ease;
}

.review-arrow:hover {
    opacity: 0.6;
}

.reviews-content {
    display: flex;
    gap: 40px;
    position: relative;
    width: 100%;
    transition: opacity 0.4s ease-in-out;
    opacity: 1;
}

.reviews-content.fading {
    opacity: 0;
}

.reviews-content::after {
    content: '';
    position: absolute;
    top: 10%;
    bottom: 10%;
    left: 50%;
    width: 1px;
    background-color: #461125;
    transition: opacity 0.3s ease;
}

.review-card {
    flex: 1;
    text-align: center;
    padding: 0 30px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.review-name {
    color: var(--card-red);
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.review-text {
    font-size: 15px;
    color: var(--bg-dark);
    line-height: 1.6;
    height: 220px;
    text-align: left;
}

/* =========================================
   ОБЩИЕ СТИЛИ ВНУТРЕННИХ СТРАНИЦ 
========================================= */
.page-content, .article-page, .gallery-page, .payment-page {
    padding: 222px 0 140px;
}

.page-header {
    padding-top: 40px;
    margin-bottom: 40px;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 500;
    padding-bottom: 10px;
    text-transform: uppercase;
    transition: font-size 0.3s;
}

.breadcrumbs {
    font-size: 14px;
    color: #555;
    font-weight: 400;
}

.breadcrumbs a {
    text-decoration: underline;
    color: #888;
}

.breadcrumbs a:hover {
    color: var(--card-red);
}

/* Фильтры стихий */
.filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.filter-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    padding: 12px;
}

.filter-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.3s;
}

.filter-btn:hover {
    border-color: var(--accent-gold);
}

.filter-btn.active {
    background-color: var(--bg-dark);
    border-color: var(--bg-dark);
}

.filter-btn.active img {
    filter: brightness(1.2);
}

/* =========================================
   СТРАНИЦА СПИСКА МЕРОПРИЯТИЙ
========================================= */
.events-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}

.event-list-card {
    display: flex;
    border: 1px solid var(--border-color);
    padding: 25px;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
    background-color: transparent;
    animation: fadeIn 0.4s ease;
}

.floating-icon {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 75px;
    height: 75px;
    z-index: 2;
}

.card-image {
    width: 320px;
    height: 200px;
    flex-shrink: 0;
}

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

.card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
}

.card-date {
    font-size: 18px;
    color: var(--card-red);
    margin-bottom: 26px;
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--card-red);
    margin-bottom: 30px;
    line-height: 1.3;
}

.btn-visit {
    background-color: var(--card-red);
    color: #fff;
    border: none;
    padding: 10px 30px;
    font-family: var(--font-body);
    font-size: 18px;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.3s;
}

.btn-visit:hover {
    background-color: #6a1a38;
}

/* Календарь */
.calendar-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: 120px;
}

.cal-nav {
    background: none;
    border: 1px solid var(--border-color);
    width: 100%;
    cursor: pointer;
    padding: 10px;
    margin: 5px 0;
    background-color: #fff;
    transition: background 0.3s;
}

.cal-nav img {
    width: 30px;
}

.cal-nav:hover {
    background-color: #f0ece1;
}

.cal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.months-container {
    width: 100%;
    position: relative;
}

.month-card {
    background-color: #fff;
    width: 100%;
    height: 365px;
    padding: 25px 20px;
    border: 1px dashed #ccc;
    display: none;
    animation: fadeIn 0.3s ease;
}

.month-card.active-month {
    display: block;
} 

.month-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    gap: 12px 0;
    font-size: 12px;
    color: #333;
}

.weekdays {
    font-weight: 400;
    color: #999;
    margin-bottom: 15px;
    text-transform: lowercase;
}

.day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0 auto;
    border-radius: 50%;
    transition: all 0.3s;
}

.day.active {
    background-color: var(--card-red);
    color: #fff;
    font-weight: 500;
}

.day.fade {
    color: #ccc;
}

.no-events-msg {
    display: none;
    font-size: 18px;
    color: #666;
    text-align: center;
    padding: 60px 20px;
    border: 1px dashed var(--border-color);
}

/* =========================================
   ДЕТАЛЬНАЯ СТРАНИЦА МЕРОПРИЯТИЯ 
========================================= */
.event-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('https://images.unsplash.com/photo-1542204165-65bf26472b9b?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.event-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.2); 
    z-index: 1;
}

.event-hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 140px; 
    padding-bottom: 60px;
}

.event-badge {
    background-color: rgba(17, 24, 32, 0.95); 
    color: #fff;
    display: inline-block;
}

.event-hero .event-date {
    font-family: var(--font-body);
    font-size: 42px;
    font-weight: 600;
    padding: 15px 30px;
    margin-bottom: 0;
    color: #fff;
}

.event-hero .event-title {
    font-family: var(--font-body);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.3;
    padding: 25px 40px;
    max-width: 850px;
}

.event-details {
    background-color: var(--event-red);
    color: var(--accent-gold);
    padding: 140px;
    text-align: center;
}

.event-details-content {
    max-width: 1192px;
    margin: 0 auto;
}

.event-details p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.btn-large {
    padding: 15px 40px;
    font-size: 18px;
    margin-top: 10px;
    display: inline-block;
}

/* =========================================
   СТРАНИЦА СТАТЕЙ 
========================================= */
.articles-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 50px 30px; 
}

.article-card { 
    display: flex; 
    flex-direction: column; 
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 25px;
    animation: fadeIn 0.4s ease; 
    position: relative;
    overflow: hidden; 
    height: 100%;
    min-height: 500px;
}

/* Водяной знак стихии */
.article-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 220px;
    height: 220px;
    background-size: contain;
    background-position: bottom right;
    background-repeat: no-repeat;
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
    transition: transform 0.4s ease;
}

.article-card[data-category="fire"]::after { background-image: url('images/svg/fire article.svg'); }
.article-card[data-category="earth"]::after { background-image: url('images/svg/earth article.svg'); }
.article-card[data-category="air"]::after { background-image: url('images/svg/air article.svg'); }
.article-card[data-category="water"]::after { background-image: url('images/svg/water article.svg'); }

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

.article-image { 
    width: 100%; 
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative; 
    z-index: 1;
}

.article-image img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.4s ease;
}

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

.article-info { position: relative; z-index: 1; }

.article-title { 
    font-size: 20px; 
    font-weight: 600; 
    color: var(--card-red); 
    margin-bottom: 15px; 
    line-height: 1.3; 
    transition: color 0.3s;
}

.article-card:hover .article-title { color: #833939; }

.article-excerpt { font-size: 14px; color: #444; line-height: 1.6; }

.no-articles-msg {
    display: none;
    font-size: 18px;
    color: #666;
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
    border: 1px dashed var(--border-color);
}

/* =========================================
   ДЕТАЛЬНАЯ СТРАНИЦА СТАТЬИ
========================================= */
.article-container {
    max-width: 1192px; 
    margin: 0 auto;
}

.article-page .breadcrumbs {
    margin-bottom: 20px;
}

h1.article-title, .article-page .article-title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 500;
    color: var(--card-red);
    margin-bottom: 40px;
    line-height: 1.2;
}

.article-hero-image {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: cover;
    margin-bottom: 40px;
}

.article-content {
    color: #222;
    font-size: 16px;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: #111;
    margin: 40px 0 20px 0;
    line-height: 1.4;
}

.article-content ul, 
.article-content ol {
    margin-bottom: 25px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content ol {
    counter-reset: article-counter;
}

.article-content ol li {
    position: relative;
    padding-left: 20px;
}

.article-content ol li::before {
    counter-increment: article-counter;
    content: counter(article-counter) ". ";
    position: absolute;
    left: 0;
    font-weight: 500;
}

.article-content ul li {
    position: relative;
    padding-left: 20px;
}

.article-content ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    font-weight: 500;
}

/* =========================================
   СТРАНИЦА ГАЛЕРЕИ
========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-item {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background-color: #ddd;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    pointer-events: none;
}

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

.gallery-item:hover::after {
    background: rgba(0, 0, 0, 0.2);
}

/* Модальное окно (Lightbox) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(17, 24, 32, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1001;
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent-gold);
}


/* =========================================
   СТРАНИЦА ОПЛАТЫ
========================================= */
.payment-form-box {
    background-color: var(--accent-gold);
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 70px;
}

.payment-info {
    margin-bottom: 30px;
    font-size: 16px;
}

.payment-info p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.payment-info strong {
    font-weight: 600;
}

/* Поля формы */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid transparent;
    background-color: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    color: #333;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--card-red);
}

.form-group input::placeholder {
    color: #aaa;
}

.form-group input:disabled {
    background-color: #e2d7c8;
    cursor: not-allowed;
    color: #888;
}

.input-margin-top {
    margin-top: 10px;
}

/* Сообщения об ошибках валидации */
.error-msg {
    color: #d93838;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.input-error {
    border-color: #d93838 !important;
}

/* Квадратный чекбокс "Нет отчества" */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: -10px;
    margin-bottom: 20px;
}

.form-checkbox input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid var(--card-red);
    background-color: transparent;
    cursor: pointer;
    position: relative;
}

.form-checkbox input[type="checkbox"]:checked {
    background-color: var(--card-red);
}

.form-checkbox input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}

.form-checkbox label {
    font-size: 14px;
    cursor: pointer;
    color: var(--text-dark);
}

/* Переключатель (Toggle Switch) */
.form-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 40px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #b0b0b0;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--card-red);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.toggle-text {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
}

.toggle-text a {
    text-decoration: underline;
    color: var(--text-dark);
}

.toggle-text a:hover {
    color: var(--card-red);
}

/* Подвал формы (Цена и Кнопка) */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.price {
    font-size: 18px;
    color: var(--text-dark);
}

.price strong {
    font-weight: 600;
}

.btn-submit {
    background-color: var(--card-red);
    color: #fff;
    border: none;
    padding: 18px 30px;
    font-family: var(--font-body);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s, opacity 0.3s;
}

.btn-submit:disabled {
    background-color: #7a5462;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-submit:not(:disabled):hover {
    background-color: #6a1a38;
}

/* =========================================
   СТРАНИЦА СТИХИИ (Слайдер и Градиент)
========================================= */
.element-page {
    padding: 222px 0 140px;
    color: var(--text-light);
}

.element-hero {
    text-align: center;
    margin-bottom: 80px;
}

.element-icon {
    width: 140px;
    height: 140px;
    margin-bottom: 20px;
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 0px rgba(208, 184, 151, 0)); 
    }
    50% { 
        transform: scale(1.05); 
        filter: drop-shadow(0 0 15px rgba(208, 184, 151, 0.4)); 
    }
    100% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 0px rgba(208, 184, 151, 0)); 
    }
}

.element-title {
    font-size: 24px;
    font-weight: 300;
    font-style: italic;
    color: var(--accent-gold);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.element-subtitle {
    font-size: 16px;
    font-weight: 300;
    color: #d1b4a6;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Слайдер Мероприятий */
.slider-section {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.slider-btn {
    background-color: rgba(17, 24, 32, 0.6);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    position: absolute;
    z-index: 2;
}

.slider-btn:hover {
    background-color: var(--accent-gold);
    color: #111820;
}

.slider-btn.prev {
    left: -25px;
}

.slider-btn.next {
    right: -25px;
}

.slider-track {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth; 
    scroll-snap-type: x mandatory; 
    padding: 20px 0;
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.slide-card {
    flex: 0 0 340px;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
}

.slide-card:hover {
    transform: translateY(-5px);
}

.slide-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.slide-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.slide-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.slide-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--card-red);
    line-height: 1.4;
    margin-bottom: 25px;
}

.slide-btn {
    background-color: var(--card-red);
    color: #fff;
    border: none;
    padding: 12px 0;
    width: 100%;
    text-align: center;
    font-family: var(--font-body);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: auto; 
}

.slide-btn:hover {
    background-color: #6a1a38;
}

/* =========================================
   ОПИСАНИЕ СТИХИИ (Текстовый блок)
========================================= */
.element-description {
    max-width: 1000px;
    margin: 0 auto 80px auto;
    text-align: left;
    font-size: 16px;
    line-height: 1.8;
    color: #e2d7c8; /* Светло-бежевый цвет текста */
}

.desc-intro {
    text-align: center;
    font-size: 18px;
    margin-bottom: 50px;
}

.desc-intro p {
    margin-bottom: 20px;
}

.desc-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки для списков */
    gap: 40px;
    margin-bottom: 60px;
}

.desc-block h3 {
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-size: 26px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.desc-block p {
    margin-bottom: 20px;
}

.desc-block ul {
    list-style: none;
    padding: 0;
}

.desc-block li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

/* Красивые золотые буллиты для списков */
.desc-block li::before {
    content: '•';
    color: var(--accent-gold);
    position: absolute;
    left: 0;
    font-size: 20px;
    line-height: 1.6;
}

.desc-outro {
    text-align: center;
    font-size: 18px;
    padding: 30px;
    border-top: 1px solid rgba(208, 184, 151, 0.2);
    border-bottom: 1px solid rgba(208, 184, 151, 0.2);
}

.desc-call {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--accent-gold);
    margin-top: 15px;
    letter-spacing: 1px;
}


/* =========================================
   ФУТЕР & МОБИЛЬНОЕ МЕНЮ
========================================= */
footer {
    background-color: #1a202c;
    color: #a0aec0;
    padding: 50px 0;
    font-size: 18px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
}

.footer-col {
    flex: 1;
}

.footer-col.menu ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col.menu a:hover {
    color: #fff;
}

.footer-contacts p {
    margin-bottom: 5px;
}

.footer-contacts a {
    text-decoration: underline;
    color: #a0aec0;
}

.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 100; 
}

.burger-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--accent-gold);
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 100%; 
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.4s ease;
    z-index: 99;
}

.mobile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
    margin-bottom: 40px;
}

.mobile-menu-list a {
    font-size: 18px;
    font-family: var(--accent-gold);
    color: var(--text-light);
    letter-spacing: 2px;
}

.mobile-menu-list a:hover {
    color: var(--accent-gold);
}

body.no-scroll {
    overflow: hidden;
}

/* =========================================
   СТРАНИЦА 404
========================================= */
.error-404-page {
    /* Отступ сверху больше из-за абсолютной шапки, плюс центрируем по вертикали */
    padding: 220px 0 140px; 
    min-height: calc(100vh - 200px); /* Вычитаем примерную высоту футера, чтобы он прижался к низу */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-light);
}

.error-title {
    font-family: var(--font-heading);
    font-size: 160px;
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 25px;
    letter-spacing: 5px;
}

.error-subtitle {
    font-family: var(--font-body);
    font-size: 36px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.error-text {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.6;
}

/* =========================================
   АДАПТИВ (Планшеты 992px)
========================================= */
@media (max-width: 992px) {
    .container {padding: 0 20px;}
    
    /* Главная */
    .event-card { width: calc((100vw - 60px) / 2); max-width: 328px; }
    .reviews-content { flex-direction: column; }
    .reviews-content::after { display: none; }
    .footer-inner { flex-direction: column; gap: 30px; }
    .element-item { position: static; }
    .elements-icons { position: relative; gap: 100px; }
    .tooltip {
        top: 100%; 
        left: 50%;
        transform: translateX(-50%);
        width: 300px; 
        margin-top: 30px; 
        height: 160px;
    }

    /* Список мероприятий */
    .events-layout { display: flex; flex-direction: column; gap: 40px; }
    .floating-icon { left: -10px;}
    .calendar-sidebar { order: -1; width: 100%; position: relative; top: 0; margin-bottom: 20px; }
    .cal-nav { display: none; }
    
    .months-container { 
        display: flex; 
        overflow-x: auto; 
        scroll-snap-type: x mandatory; 
        gap: 15px; 
        padding: 0 calc(50% - 170px); 
        scrollbar-width: none; 
        -ms-overflow-style: none; 
    }
    .months-container::-webkit-scrollbar { display: none; } 
    
    .month-card { 
        display: block !important; 
        flex: 0 0 500px; 
        height: 365px;  
        scroll-snap-align: center; 
        opacity: 0.3; 
        transition: opacity 0.4s;
        margin-bottom: 0;
        box-sizing: border-box;
    }

    .month-card.active-month { opacity: 1; }

    /* Мероприятие детально */
    .event-hero .event-title { font-size: 32px; padding: 20px 30px; }
    .event-hero .event-date { font-size: 32px; padding: 15px 25px; }

    /* Список статей */
    .articles-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }

    /* Статья детально */
    .article-container { padding: 0 20px; }
    h1.article-title, .article-page .article-title { font-size: 42px; }

    /* Галерея */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

    /* Форма оплаты */
    .payment-form-box { padding: 40px 50px; }

    /* Страница стихии */
    .slide-card { flex: 0 0 300px; }
    .slider-btn.prev { left: 0px; }
    .slider-btn.next { right: 0px; }
    /* 404 */
    .error-title { font-size: 120px; }
    .error-subtitle { font-size: 28px; }
    /* текст стихий */
    .desc-blocks {
    grid-template-columns: 1fr; /* На телефонах списки выстроятся друг под другом */
    gap: 30px;
    }
    .desc-intro { font-size: 16px; }
    .desc-call { font-size: 22px; }
    .desc-block h3 { font-size: 22px; }

    
}

/* =========================================
   АДАПТИВ (Планшеты 768px)
========================================= */
@media (max-width: 768px) {
    .payment-form-box { padding: 30px; }
    .form-footer { flex-direction: column; align-items: flex-start; gap: 20px; }
    .btn-submit { width: 100%; text-align: center; }
}

/* =========================================
   АДАПТИВ (Телефоны 393px)
========================================= */
@media (max-width: 393px) {
    .container {padding: 0 15px;}
    
    /* Общие для мобильных (Меню, Футер, Заголовки) */
    .desktop-nav, .desktop-btn { display: none; }
    .burger-btn { display: flex; }
    .mobile-menu.active { left: 0; }
    .burger-btn.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .burger-btn.active span:nth-child(2) { opacity: 0; }
    .burger-btn.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
    footer { font-size: 14px; padding: 40px 0; }
    .page-title { font-size: 28px; margin-bottom: 15px; letter-spacing: 1px; font-weight: 600; }
    .filters { flex-wrap: wrap; gap: 15px; margin-bottom: 40px; }
    .filter-btn { width: 60px; height: 60px; padding: 10px; }
    
    /* Общие отступы внутренних страниц на мобильных */
    .page-content, .article-page, .gallery-page, .payment-page { padding: 120px 0 60px; }

    /* Главная */
    .elements-icons { gap: 59px; }
    .main-menu { display: none; }
    .hero {min-height: 550px;}
    .hero h1 { font-size: 22px; }
    .hero h2 { font-size: 28px; margin-bottom: 40px; }
    .elements-icons { gap: 20px; flex-wrap: wrap; }
    .element-item img {height: 53px;}
    .tooltip {width: 100%; max-width: 328px;}
    .hero-image-wrapper { width: 100%; height: 400px; }
    .description {margin-top: 50px;}
    .description p {font-size: 11px;}
    .section-title {font-size: 14px; padding-bottom: 15px;}
    .events {margin-top: 50px;}
    .event-card { width: calc(100vw - 40px); max-width: 328px;}
    .testimonials {margin-top: 50px;}
    .review-name {font-size: 16px;}
    .review-text {font-size: 11px; height: 105px;}
    
    .reviews-wrapper {flex-wrap: wrap; justify-content: center; gap: 40px; }
    .reviews-content { order: -1; width: 100%; }
    .review-arrow img { width: 24px; height: auto; }
    .review-arrow { margin: 0 10px; padding: 5px; }

    /* Список мероприятий */
    .event-list-card { flex-direction: column; padding: 15px; gap: 15px;}
    .card-image { width: 353px; height: 190px; aspect-ratio: 16/9; }
    .card-info { padding: 0; text-align: center; align-items: center; } 
    .btn-visit { align-self: center; width: 100%; text-align: center; }
    .floating-icon { top: -20px; left: -10px; width: 80px; height: 80px; }
    
    .card-title { font-size: 14px; margin-bottom: 15px; }
    .card-date { font-size: 14px; margin-bottom: 10px; }
    .btn-visit { font-size: 14px; padding: 10px 0; }
    .no-events-msg { font-size: 14px; padding: 30px 10px; }
    
    .month-card { flex: 0 0 340px; height: 320px; padding: 15px; }
    .month-title { margin-bottom: 15px; }
    .calendar-grid { gap: 6px 0; } 
    .weekdays { margin-bottom: 10px; }

    /* Мероприятие детально */
    .event-hero { height: 60vh; min-height: 450px; }
    .event-hero .container { padding-top: 110px; padding-bottom: 40px; }
    .event-hero .event-date { font-size: 20px; padding: 10px 20px; }
    .event-hero .event-title { font-size: 20px; padding: 15px 20px; }
    .event-details { padding: 50px 15px; }
    .event-details p { font-size: 14px; margin-bottom: 20px; }
    .btn-large { font-size: 16px; width: 100%; padding: 15px 0; }

    /* Список статей */
    .article-title { font-size: 18px; margin-bottom: 10px; }
    .article-excerpt { font-size: 12px; }
    .articles-grid { grid-template-columns: 1fr; gap: 40px; }
    .article-card { min-height: 400px; }

    /* Статья детально */
    .article-container { padding: 0 10px; }
    h1.article-title, .article-page .article-title { font-size: 32px; margin-bottom: 25px; }
    .article-content p, .article-content li { font-size: 14px; line-height: 1.6; }
    .article-content h2 { font-size: 20px; margin: 30px 0 15px 0; }
    .article-hero-image { margin-bottom: 25px; }

    /* Галерея */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .gallery-item { aspect-ratio: 4 / 3; }
    .modal-close { top: 10px; right: 20px; font-size: 40px; }

    /* Форма оплаты */
    .payment-form-box { padding: 25px 15px; }
    .payment-info { font-size: 14px; }
    .form-group label { font-size: 14px; }
    .form-group input { font-size: 14px; padding: 10px 12px; }
    .toggle-text { font-size: 12px; }
    .price { font-size: 16px; }
    .btn-submit { font-size: 14px; padding: 15px 0; }

    /* Страница стихии */
    .element-page { padding: 120px 0 60px; }
    .element-icon { width: 100px; height: 100px; }
    .element-title { font-size: 20px; }
    .element-subtitle { font-size: 14px; padding: 0 15px; }
    .slider-btn { display: none; } 
    .slider-track { padding: 20px 15px; gap: 15px; }
    .slide-card { flex: 0 0 85vw; }
    .slide-img { height: 180px; }
    .slide-title { font-size: 16px; }
    /* 404 */
    .error-404-page { padding: 150px 0 80px; min-height: 60vh; }
    .error-title { font-size: 80px; margin-bottom: 15px; }
    .error-subtitle { font-size: 22px; margin-bottom: 15px; }
    .error-text { font-size: 14px; }
}
/* =========================================
   МОДАЛЬНОЕ ОКНО РАССЫЛКИ
========================================= */
.newsletter-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: rgba(17, 24, 32, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.newsletter-modal.show {
    opacity: 1;
    visibility: visible;
}

.newsletter-modal-content {
    background-color: var(--accent-gold);
    padding: 40px 30px;
    max-width: 450px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.newsletter-modal.show .newsletter-modal-content {
    transform: scale(1);
}

.newsletter-modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 35px;
    color: var(--text-dark);
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.newsletter-modal-close:hover {
    color: var(--card-red);
}

.newsletter-title {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--card-red);
    margin-bottom: 10px;
}

.newsletter-subtitle {
    font-size: 14px;
    color: #242323;
    margin-bottom: 25px;
}

.btn-submit-newsletter {
    width: 100%;
    padding: 15px 0;
    margin-top: 10px;
    background-color: var(--card-red);
    color: #fff;
    border: none;
    font-family: var(--font-body);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s, opacity 0.3s;
}

.btn-submit-newsletter:disabled {
    background-color: #7a5462;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-submit-newsletter:not(:disabled):hover {
    background-color: #6a1a38;
}

.newsletter-disclaimer {
    font-size: 11px;
    color: #242323;
    margin-top: 15px;
    line-height: 1.4;
}

.newsletter-disclaimer a {
    text-decoration: underline;
    color: var(--card-red);
}

