<?php
/**
 * РЎС‚РёР»Рё РґР»СЏ СЃС‚СЂР°РЅРёС†С‹ В«РЎРІРёРґР°РЅРёРµ СЃ РЎСѓРґСЊР±РѕР№В»
 * mentalnavigation.ru/svidanie_s_sudboi
 */
header('Content-Type: text/css; charset=utf-8');
?>

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #333;
    background: #f9f7f4;
    overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 600; line-height: 1.3; }
a { color: #c9a96e; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #b08d4f; }
img { max-width: 100%; height: auto; display: block; }

/* ===== COMMON ===== */
.section { padding: 80px 20px; }
.section__inner { max-width: 1100px; margin: 0 auto; }
.section__title { font-size: clamp(2rem, 4vw, 2.8rem); color: #1a1a2e; text-align: center; margin-bottom: 20px; }
.section__title--accent { color: #c9a96e; }
.section__subtitle { text-align: center; color: #666; font-size: 1.1rem; max-width: 700px; margin: 0 auto 40px; }
.divider { width: 80px; height: 2px; background: linear-gradient(90deg, transparent, #c9a96e, transparent); margin: 0 auto 50px; }

/* ===== HEADER ===== */
header { background: #fff; padding: 20px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.header-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 700; color: #1a1a2e; }
.logo span { color: #c9a96e; }
nav ul { display: flex; list-style: none; gap: 30px; }
nav ul li a { font-size: 0.95rem; font-weight: 500; color: #333; }
nav ul li a:hover { color: #c9a96e; }

/* ===== HERO ===== */
.hero { background: linear-gradient(135deg, #1a1a2e 0%, #2c2c44 100%); color: #f5f5f5; padding: 100px 20px; text-align: center; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); color: #f5f5f5; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px; opacity: 0.9; }
.hero__img { max-width: 400px; border-radius: 50%; margin: 0 auto 30px; border: 4px solid #c9a96e; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.btn { display: inline-block; background: #c9a96e; color: #fff; padding: 15px 35px; border-radius: 50px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; border: none; cursor: pointer; }
.btn:hover { background: #b08d55; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201, 169, 110, 0.4); color: #fff; }

/* ===== ABOUT ===== */
.about { background: #fff; }
.about-wrap { display: flex; gap: 50px; align-items: center; max-width: 900px; margin: 0 auto; }
.about-text { flex: 1; }
.about-text p { margin-bottom: 15px; color: #444; }
.about-quote { border-left: 4px solid #c9a96e; padding-left: 20px; font-style: italic; color: #1a1a2e; margin: 30px 0; font-size: 1.1rem; }

/* ===== SERVICES ===== */
.services { background: #f9f7f4; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: #fff; padding: 35px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border-top: 4px solid #c9a96e; transition: 0.3s; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.service-card h3 { font-size: 1.4rem; color: #1a1a2e; margin-bottom: 15px; }
.service-card p { color: #666; font-size: 0.95rem; margin-bottom: 20px; }
.service-price { font-weight: 700; color: #c9a96e; font-size: 1.3rem; display: block; margin-bottom: 20px; font-family: 'Cormorant Garamond', serif; }

/* ===== AUDIENCE ===== */
.audience { background: #1a1a2e; color: #f5f5f5; }
.audience .section__title { color: #f5f5f5; }
.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.audience-item { background: rgba(255,255,255,0.05); padding: 30px; border-radius: 10px; border: 1px solid rgba(201, 169, 110, 0.2); }
.audience-item h3 { color: #c9a96e; font-size: 1.3rem; margin-bottom: 15px; font-family: 'Raleway', sans-serif; font-weight: 600; }
.audience-item ul { list-style: none; }
.audience-item li { margin-bottom: 10px; padding-left: 20px; position: relative; font-size: 0.95rem; opacity: 0.9; }
.audience-item li::before { content: "✦"; position: absolute; left: 0; color: #c9a96e; }

/* ============================================
   📅 КАЛЕНДАРЬ МЕРОПРИЯТИЙ (НОВОЕ)
   ============================================ */
.calendar { background: #fff; }
.calendar-filters { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.calendar-filter { background: transparent; border: 2px solid #e0e0e0; color: #333; padding: 10px 24px; border-radius: 50px; font-family: 'Raleway', sans-serif; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: 0.3s; }
.calendar-filter:hover, .calendar-filter.active { background: #c9a96e; border-color: #c9a96e; color: #fff; }

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

.event-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 5px 25px rgba(26, 26, 46, 0.08);
    display: flex; flex-direction: column; transition: 0.4s;
    border: 1px solid rgba(201, 169, 110, 0.15); position: relative;
}
.event-card:hover { transform: translateY(-8px); box-shadow: 0 15px 40px rgba(26, 26, 46, 0.15); }

/* Выделенная карточка */
.event-card--featured {
    border: 2px solid #c9a96e;
    box-shadow: 0 10px 40px rgba(201, 169, 110, 0.25);
}
.event-card__badge {
    position: absolute; top: -2px; right: 20px;
    background: linear-gradient(135deg, #e07a5f, #f4a261);
    color: #fff; padding: 6px 16px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; box-shadow: 0 4px 10px rgba(224, 122, 95, 0.3); z-index: 2;
}

.event-card__date-block {
    background: linear-gradient(135deg, #1a1a2e 0%, #2c2c44 100%);
    color: #f5f5f5; padding: 25px 20px; text-align: center;
}
.event-card__date-day { font-family: 'Cormorant Garamond', serif; font-size: 3rem; font-weight: 700; line-height: 1; color: #c9a96e; display: block; }
.event-card__date-month { font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0.9; display: block; margin-top: 5px; }
.event-card__date-time { font-size: 0.85rem; opacity: 0.7; display: block; margin-top: 5px; font-style: italic; }

.event-card__body { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.event-card__tag { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; align-self: flex-start; background: rgba(201, 169, 110, 0.15); color: #c9a96e; }
.event-card__title { font-size: 1.35rem; color: #1a1a2e; margin-bottom: 12px; line-height: 1.3; }
.event-card__description { color: #666; font-size: 0.95rem; line-height: 1.6; margin-bottom: 15px; flex: 1; }

/* Таймер и счётчик */
.countdown-timer { display: flex; justify-content: center; gap: 15px; margin: 15px 0; padding: 15px; background: rgba(201, 169, 110, 0.08); border-radius: 10px; }
.countdown-timer__item { text-align: center; }
.countdown-timer__number { display: block; font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 700; color: #c9a96e; line-height: 1; }
.countdown-timer__label { font-size: 0.7rem; color: #666; text-transform: uppercase; letter-spacing: 1px; }

.seats-counter { margin: 15px 0 20px; }
.seats-counter__bar { height: 8px; background: #e0e0e0; border-radius: 4px; overflow: hidden; margin-bottom: 8px; }
.seats-counter__fill { height: 100%; background: linear-gradient(90deg, #c9a96e, #e0c48a); border-radius: 4px; transition: width 1s ease; }
.seats-counter__text { font-size: 0.85rem; color: #555; text-align: center; }
.seats-counter__text strong { color: #e07a5f; }

.event-card__footer { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid #eee; gap: 15px; flex-wrap: wrap; }
.event-card__price { display: flex; flex-direction: column; gap: 2px; }
.event-card__price-old { font-size: 0.9rem; color: #999; text-decoration: line-through; }
.event-card__price-new { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 700; color: #1a1a2e; }
.event-card__btn { display: inline-block; background: #c9a96e; color: #fff; padding: 10px 24px; border-radius: 50px; font-size: 0.9rem; font-weight: 500; text-decoration: none; transition: 0.3s; text-align: center; }
.event-card__btn:hover { background: #b08d55; color: #fff; transform: translateY(-2px); }
.event-card__btn--disabled { background: #ccc; cursor: not-allowed; }
.event-card__btn--disabled:hover { background: #ccc; transform: none; }
.event-card.hidden { display: none; }

/* ===== CONTACT ===== */
.contact { background: #f9f7f4; text-align: center; }
.contact-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin: 30px 0; }
.contact-note { font-size: 0.9rem; color: #888; margin-top: 20px; }

/* ===== FOOTER ===== */
footer { background: #1a1a2e; color: rgba(255,255,255,0.7); padding: 40px 20px; text-align: center; font-size: 0.9rem; }
footer .legal { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
footer a { color: #c9a96e; }

/* ===== MODAL ===== */
.modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(26, 26, 46, 0.85); animation: fadeIn 0.3s ease; }
.modal-content { background: #fff; margin: 5% auto; padding: 40px; border-radius: 15px; width: 90%; max-width: 500px; position: relative; animation: slideDown 0.3s ease; }
.close-modal { position: absolute; right: 20px; top: 15px; font-size: 32px; color: #666; cursor: pointer; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.95rem; }
.form-group input { width: 100%; padding: 14px 16px; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 1rem; transition: 0.3s; }
.form-group input:focus { outline: none; border-color: #c9a96e; }
.checkbox-group { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; }
.checkbox-group input { width: 18px; height: 18px; margin-top: 3px; accent-color: #c9a96e; cursor: pointer; }
.checkbox-group label { font-size: 0.85rem; color: #555; line-height: 1.4; cursor: pointer; }
.error-message { color: #e74c3c; font-size: 0.8rem; margin-top: 5px; display: none; }
.success-message { text-align: center; padding: 30px 20px; display: none; }
.success-icon { width: 70px; height: 70px; background: #27ae60; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 40px; margin: 0 auto 20px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-wrap { flex-direction: column; gap: 15px; }
    nav ul { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .about-wrap { flex-direction: column; }
    .calendar-grid { grid-template-columns: 1fr; }
    .event-card__footer { flex-direction: column; align-items: stretch; text-align: center; }
    .event-card__btn { width: 100%; }
    .modal-content { margin: 10% auto; padding: 30px 20px; }
}
/* ============================================
   ⬆️ КНОПКА "НАВЕРХ" (Scroll to Top)
   ============================================ */

#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #1a1a2e; /* Тёмно-синий фон в стиле сайта */
    border: 2px solid #c9a66b; /* Золотая обводка */
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 
        opacity 0.4s ease, 
        visibility 0.4s ease, 
        transform 0.4s ease,
        background-color 0.3s ease,
        box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.3);
    z-index: 9999;
    padding: 0;
    outline: none;
}

/* Состояние "видна" (добавляется JS при прокрутке) */
#scrollTopBtn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover-эффект */
#scrollTopBtn:hover {
    background-color: #c9a66b;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(201, 169, 110, 0.4);
}

/* Инверсия цвета стрелки при наведении */
#scrollTopBtn:hover svg path {
    fill: #1a1a2e;
    transition: fill 0.3s ease;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    #scrollTopBtn {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
}