@font-face {
 font-family: "Cormorant Garamond";
 src: url("../fonts/Cormorant_Garamond/CormorantGaramond-Regular.cd06a275eb74.ttf");
 font-style: normal;
 font-weight: 400;
 font-display: swap;
}
@font-face {
 font-family: "Montserrat";
 src: url("../fonts/Montserrat/Montserrat-Regular.34de1239b121.ttf");
 font-style: normal;
 font-weight: 400;
 font-display: swap;
}

:root {
 --purple-dark: #3a1c4f;
 --purple-light: #7c49ad;
 --gold: #ffb835a8;
 --dark-gold: #9e824f;
 --text-dark: #2c3539;
}

/* --- Фон пергамента --- */
.parchment-bg {
 position: relative;
 background-color: #f3ece0;
 padding: 0 0 3rem; /* Убрали большой верхний отступ для шапки */
 overflow: hidden;
}
.parchment-bg::before {
 content: "";
 position: absolute;
 top: 0; left: 0; right: 0; bottom: 0;
 background-image: url("../img/sps/paper_texture.1002c4fdf1de.png");
 background-repeat: repeat;
 z-index: 1;
 pointer-events: none;
}
.parchment-bg::after {
 content: "";
 position: absolute;
 top: 0; left: 0; right: 0; bottom: 0;
 background-image:
  linear-gradient(to right, rgba(84, 58, 32, 0.45) 0%, rgba(115, 84, 52, 0.3) 2%, rgba(145, 112, 78, 0.2) 5%, rgba(166, 133, 96, 0.1) 9%, rgba(189, 161, 127, 0.04) 14%, rgba(212, 189, 159, 0.01) 18%, transparent 22%),
  linear-gradient(to left, rgba(84, 58, 32, 0.45) 0%, rgba(115, 84, 52, 0.3) 2%, rgba(145, 112, 78, 0.2) 5%, rgba(166, 133, 96, 0.1) 9%, rgba(189, 161, 127, 0.04) 14%, rgba(212, 189, 159, 0.01) 18%, transparent 22%);
 z-index: 3;
 pointer-events: none;
}
.parchment-bg > * {
 position: relative;
 z-index: 4;
}
.parchment-bg > header,
.parchment-bg .hero-nav-container {
 z-index: 10;
}

/* --- Шапка (Header / Nav) --- */
.hero-container {
 position: relative;
 width: 100%;
 max-width: 1400px;
 height: 100%;
 display: flex;
 flex-direction: row; /* Как в вашем кастомном стиле */
 justify-content: space-between;
 align-items: center;
 padding: 10px 2rem 10px;
 margin: 0 auto;
}
.hero-logo {
 width: 100px;
 height: 100px;
 max-width: 100px;
 min-width: 100px;
 filter: none;
 border-radius: 50%;
}
.hero-nav-container {
 display: flex;
 justify-content: flex-end;
 align-items: center;
 width: 100%;
 padding: 0;
}
.hero-nav-links {
 display: flex;
 align-items: center;
 gap: 50px;
}
.nav-item {
 color: #3a1c4f; /* Темно-фиолетовый */
 text-decoration: none;
 font-size: 0.8rem;
 font-weight: 500;
 letter-spacing: 2px;
 position: relative;
 transition: color 0.3s ease;
}
.nav-item:hover {
 color: var(--gold);
}
.hero-btn {
 display: inline-flex;
 align-items: center;
 padding: 0;
 background-color: #311e43;
 border: 1px solid #7c49ad;
 border-radius: 0 30px 30px 0;
 text-decoration: none;
 transition: all 0.3s ease;
 box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.hero-btn .btn-text {
 color: #fff;
 font-size: 0.8rem;
 font-weight: 600;
 letter-spacing: 2px;
 padding: 18px 25px 18px 35px;
 text-transform: uppercase;
}
.hero-btn:hover {
 background-color: #42295a;
 border-color: #fff;
}

/* --- Мобильное меню и бургер --- */
.burger-menu-btn {
 display: none;
 width: 62px;
 height: 62px;
 border-radius: 50%;
 background-color: #44364c;
 border: 1px solid #ae8f76;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 gap: 4px;
 cursor: pointer;
 padding: 0;
 transition: all 0.3s ease;
}
.burger-bar {
 display: block;
 width: 23px;
 height: 2px;
 background-color: #ae8f76;
}
.mobile-menu-overlay {
 position: fixed;
 top: 0; left: 0;
 width: 100%; height: 100%;
 background-color: rgba(26, 38, 57, 0.98);
 z-index: 9999;
 display: flex;
 justify-content: center;
 align-items: center;
 opacity: 0;
 pointer-events: none;
 transform: translateY(-20px);
 transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.mobile-menu-overlay.is-open {
 opacity: 1;
 pointer-events: auto;
 transform: translateY(0);
}
.close-menu-btn {
 position: absolute;
 top: 25px; right: 25px;
 background: none;
 border: none;
 color: white;
 font-size: 2.5rem;
 cursor: pointer;
 color: rgba(255, 255, 255, 0.6);
 transition: color 0.3s;
}
.mobile-nav-links {
 display: flex;
 flex-direction: column;
 align-items: center;
 gap: 2rem;
}
.mobile-nav-item {
 color: white;
 text-decoration: none;
 font-size: 1.3rem;
 font-weight: 500;
 letter-spacing: 3px;
 transition: color 0.3s;
}

/* --- Адаптивность шапки --- */
@media (max-width: 1200px) {
 .hero-nav-links {
  gap: 20px;
 }
}
@media (max-width: 992px) {
 .hero-nav-links {
  display: none;
 }
 .burger-menu-btn {
  display: flex;
 }
 .hero-container {
  padding: 0 1rem 1rem;
  flex-direction: row;
 }
}
/* =========================================
   ФУТЕР (перенесено из home_sps.css)
   ========================================= */

.main-footer {
    background-color: #271c3c;
    color: white;
    padding: 3rem 20px 40px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.footer-left {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.footer-right {
    display: flex;
    gap: 60px;
}

.footer-right .footer-logo {
    position: relative;
    top: -100px;
    object-fit: contain;
}

.footer-logo {
    width: 200px;
    height: auto;
}

.footer-left h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin: 0 0 0.5rem 0;
    letter-spacing: 1px;
    color: #9f8991;
}

.footer-left p {
    font-size: 0.9rem;
    color: var(--gold, #ffb835a8);
    margin: 0 0 1.5rem 0;
}

.social-icons a {
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
    margin-right: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.social-icons a:hover {
    opacity: 1;
}

.footer-right h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin: 0 0 1.5rem 0;
    color: #997a69;
}

.footer-right p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    color: #9f8991;
}

.map-link {
    display: inline-block;
    color: #9f8991;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: 500;
    text-decoration: none;
}

.map-link:hover {
    text-decoration: underline;
}

/* Адаптивность футера */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-right {
        gap: 2rem;
    }
    .footer-right .footer-logo {
        top: 0;
    }
    .footer-logo {
        width: 100px;
    }
    .footer-right .footer-logo {
        height: 150px;
    }
    .main-footer {
        padding: 20px;
    }
    .footer-left h3,
    .footer-right h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    .footer-left p {
        font-size: 0.8rem;
    }
}
.hero-nav-links .hero-btn, .mobile-menu-overlay .hero-btn {
    border-radius: 30px;
}
.hero-nav-links .hero-btn .btn-text, .mobile-menu-overlay .hero-btn .btn-text {
    padding: 12px 20px;
    font-size: 10px;
}
.hero-logo {
 width: 100px;
 max-width: 100px;
 min-width: 100px;
 filter: none;
 border-radius: 50%;
}
.hero-container {
 flex-direction: row;
 padding: 10px 2rem 10px;
}
.parchment-bg {
 padding: 0 0 3rem;
}
.hero-nav-container {
 padding: 0;
}
.nav-item {
 color: #3a1c4f;
}
.nav-item:first-child:after {
 background: #3a1c4f;
}
.event-hero {
 width: 100%;
 height: 35vh;
 min-height: 450px;
 background-size: cover;
 background-position: center;
 position: relative;
 display: flex;
 align-items: center;
}

.event-hero::before {
 content: "";
 position: absolute;
 inset: 0;
 background: linear-gradient(
  to right,
  rgba(0, 0, 0, 0.7) 0%,
  rgba(0, 0, 0, 0.2) 100%
 );
}

.event-hero-content {
 position: relative;
 z-index: 2;
 color: #fff;
 max-width: 600px;
}

.event-badge {
 display: inline-block;
 background-color: rgba(49, 30, 67, 0.8);
 border: 1px solid #7c49ad;
 color: #fff;
 font-family: sans-serif;
 font-size: 11px;
 font-weight: 600;
 text-transform: uppercase;
 padding: 6px 12px;
 border-radius: 20px;
 margin-bottom: 20px;
 letter-spacing: 1px;
}
h1 {
 -webkit-text-stroke: white;
}
.event-hero-content h1 {
 font-size: 52px;
 line-height: 1.1;
 margin-bottom: 20px;
 font-weight: 700;
}

.event-short-desc {
 font-size: 20px;
 line-height: 1.4;
 margin-bottom: 30px;
 color: #e0e0e0;
 font-weight: 400;
}

.btn-event-primary {
 display: inline-flex;
 align-items: center;
 gap: 10px;
 background-color: rgba(49, 30, 67, 0.9);
 border: 1px solid #e5daca;
 box-shadow: 0px 0px 0px 2px #7c49ad;
 color: #e5daca;
 padding: 14px 28px;
 border-radius: 6px;
 text-decoration: none;
 font-family: sans-serif;
 font-size: 16px;
 font-weight: 500;
 transition: background 0.3s;
}

.btn-event-primary:hover {
 background-color: #4a1f63;
 color: #e5daca;
}

.event-meta-bar {
 padding: 20px 0 40px;
}

.event-meta-grid {
 display: flex;
 justify-content: space-between;
 align-items: center;
}

.meta-item {
 text-align: center;
 flex: 1;
}

.meta-label {
 display: block;
 font-family: sans-serif;
 font-size: 11px;
 text-transform: uppercase;
 letter-spacing: 1px;
 color: #7a6b5d;
 margin-bottom: 5px;
}

.meta-value {
 display: block;
 font-size: 20px;
 font-weight: 600;
 color: #3a1c4f;
}

.meta-divider {
 width: 2px;
 height: 50px;
 background-color: #dcd2c0;
}

/* --- MAIN LAYOUT --- */
.event-main-layout {
 margin: 0 auto;
}

.event-section {
 margin-bottom: 60px;
}

.section-title-wrap {
 display: flex;
 align-items: center;
 gap: 20px;
 margin-bottom: 30px;
}

.section-title {
 font-size: 32px;
 font-weight: 600;
 color: #3a1c4f;
 margin: 0;
 white-space: nowrap;
}

.title-line {
 flex-grow: 1;
 height: 2px;
 background-color: #c4b5a3;
}

/* --- О событии --- */
.about-content-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 40px;
}

.about-text {
 font-size: 16px;
 line-height: 1.7;
 color: #4a3b4c;
}

.about-text p {
 margin-bottom: 15px;
}

.about-image img {
 width: 100%;
 height: auto;
 border-radius: 8px;
 box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.image-caption {
 font-size: 13px;
 font-style: italic;
 color: #7a6b5d;
 text-align: center;
 margin-top: 10px;
}

/* --- Программа и Условия --- */
.program-conditions-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 40px;
}

.timeline {
 border-left: 2px solid #5e2d79;
 padding-left: 20px;
 margin-left: 10px;
}

.timeline-item {
 position: relative;
 margin-bottom: 30px;
}

.timeline-dot {
 position: absolute;
 left: -27px;
 top: 5px;
 width: 12px;
 height: 12px;
 background-color: #5e2d79;
 border-radius: 50%;
}

.timeline-content h4 {
 font-size: 20px;
 margin: 0 0 10px 0;
 color: #3a1c4f;
}

.timeline-content p {
 font-family: sans-serif;
 font-size: 15px;
 color: #4a3b4c;
 margin: 4px 0;
}

/* Блок условий */
.conditions-card {
 background-color: #ede3cf;
 border: 1px solid #dcd2c0;
 border-radius: 8px;
 padding: 30px;
}

.conditions-title {
 font-size: 24px;
 color: #3a1c4f;
 margin-top: 0;
 margin-bottom: 20px;
}

.conditions-table {
 width: 100%;
 border-collapse: collapse;
 margin-bottom: 30px;
 font-family: sans-serif;
 font-size: 15px;
}

.conditions-table td {
 padding: 10px 0;
 border-bottom: 1px solid #dcd2c0;
 vertical-align: top;
}

.conditions-table td:first-child {
 color: #7a6b5d;
 width: 40%;
}

.conditions-table td:last-child {
 color: #3a1c4f;
 font-weight: 500;
}

.btn-event-outline {
 display: flex;
 align-items: center;
 justify-content: center;
 margin: 0 auto;
 gap: 10px;
 width: 100%;
 max-width: 300px;
 background-color: rgba(49, 30, 67, 0.9);
 border: 1px solid #e5daca;
 box-shadow: 0px 0px 0px 2px #7c49ad;
 color: #e5daca;
 padding: 14px;
 border-radius: 6px;
 text-decoration: none;
 font-family: sans-serif;
 font-size: 16px;
 font-weight: 500;
 transition: background 0.3s;
}

.btn-event-outline:hover {
 background-color: #4a1f63;
}

/* --- Кому подойдёт --- */
.target-audience-grid {
 display: flex;
 justify-content: space-between;
 align-items: flex-start;
 padding-bottom: 20px;
 border-bottom: 1px solid #dcd2c0;
}

.audience-item {
 flex: 1;
 padding: 0 20px;
}

.audience-item:first-child {
 padding-left: 0;
}
.audience-item:last-child {
 padding-right: 0;
}

.audience-item h4 {
 font-size: 20px;
 margin-top: 0;
 margin-bottom: 10px;
 color: #3a1c4f;
}

.audience-item p {
 font-family: sans-serif;
 font-size: 15px;
 color: #7a6b5d;
 line-height: 1.5;
 margin: 0;
}

.audience-divider {
 width: 1px;
 height: 60px;
 background-color: #dcd2c0;
}

/* --- НИЖНИЙ БЛОК --- */
.event-bottom-grid {
 display: grid;
 grid-template-columns: 1fr 1.5fr 1fr;
 gap: 40px;
 padding-bottom: 40px;
}

.bottom-col {
 display: flex;
 flex-direction: column;
}

.bottom-title {
 font-size: 24px;
 margin-top: 0;
 margin-bottom: 20px;
 color: #3a1c4f;
}

.check-list {
 list-style: none;
 padding: 0;
 margin: 0;
}

.check-list li {
 position: relative;
 padding-left: 25px;
 margin-bottom: 12px;
 font-family: sans-serif;
 font-size: 16px;
 color: #4a3b4c;
}

.check-list li::before {
 content: "✓";
 position: absolute;
 left: 0;
 color: #5e2d79;
 font-weight: bold;
}

/* Место */
.map-placeholder {
 background-color: #ede3cf;
 border: 1px solid #dcd2c0;
 border-radius: 8px;
 height: 150px;
 display: flex;
 flex-direction: column;
 justify-content: center;
 align-items: center;
 text-align: center;
}

.map-pin {
 font-size: 32px;
 margin-bottom: 10px;
}

.map-placeholder span {
 font-family: sans-serif;
 font-size: 14px;
 color: #3a1c4f;
 padding: 0 20px;
}

/* Вопросы */
.contact-text {
 font-family: sans-serif;
 font-size: 16px;
 color: #4a3b4c;
 margin-bottom: 10px;
}

.contact-link {
 font-size: 20px;
 color: #5e2d79;
 text-decoration: underline;
 font-weight: 600;
}

.contact-link:hover {
 color: #3a1c4f;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 900px) {
 .event-meta-grid {
  flex-wrap: wrap;
  gap: 20px;
 }
 .meta-divider {
  display: none;
 }
 .meta-item {
  flex: 0 0 45%;
 }

 .about-content-grid,
 .program-conditions-grid,
 .event-bottom-grid {
  grid-template-columns: 1fr;
 }

 .target-audience-grid {
  flex-direction: column;
  gap: 20px;
 }
 .audience-divider {
  display: none;
 }
 .audience-item {
  padding: 0;
 }

 .event-hero-content h1 {
  font-size: 32px;
 }
 .event-hero {
  height: 50vh;
  min-height: 300px;
 }
}
.included-block-wrapper {
 display: flex;
 align-items: flex-start;
 justify-content: space-between;
 border: 2px solid #dcd2c0;
 border-radius: 8px;
 padding: 30px 20px;
 gap: 20px;
}

.included-col {
 flex: 1;
}

.included-title {
 font-size: 22px;
 color: #3a1c4f;
 margin-top: 0;
 margin-bottom: 20px;
}

.included-list {
 list-style: none;
 padding: 0;
 margin: 0;
}

.included-list li {
 position: relative;
 padding-left: 30px;
 margin-bottom: 12px;
 font-family: sans-serif;
 font-size: 15px;
 color: #4a3b4c;
}

/* Галочки */
.included-list.check li::before {
 content: "✓";
 position: absolute;
 left: 0;
 color: #5e2d79;
 font-weight: bold;
 font-size: 18px;
 top: -2px;
}

/* Кружочки (не входит) */
.included-list.cross li::before {
 content: "○";
 position: absolute;
 left: 0;
 color: #7a6b5d;
 font-weight: bold;
 font-size: 16px;
 top: 0;
}

.included-divider {
 width: 1px;
 background-color: #dcd2c0;
 align-self: stretch;
}

/* Колонка с иконкой */
.icon-col {
 display: flex;
 gap: 15px;
 align-items: flex-start;
}

.icon-wrap {
 font-size: 32px;
 line-height: 1;
 color: #3a1c4f;
}

.icon-col h4 {
 margin: 0 0 8px 0;
 font-size: 16px;
 color: #3a1c4f;
 font-weight: 600;
}

.icon-col p {
 margin: 0;
 font-family: sans-serif;
 font-size: 13px;
 color: #7a6b5d;
 line-height: 1.5;
}

/* --- СЕТКА ГАЛЕРЕИ (6 плиток) --- */
.event-gallery-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 15px;
}

.event-gallery-grid .ph {
 width: 100%;
 height: 100%;
 overflow: hidden;
 border-radius: 4px;
}

.event-gallery-grid .ph img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 display: block;
 transition: transform 0.3s;
}

.event-gallery-grid .ph:hover img {
 transform: scale(1.05);
}

.event-gallery-grid .ph {
 border-radius: 20px;
}
.event-gallery-grid {
 grid-template-columns: repeat(6, 1fr);
}
/* --- Адаптивность для новых блоков --- */
@media (max-width: 900px) {
 .included-block-wrapper {
  flex-direction: column;
  gap: 30px;
 }

 .included-divider {
  width: 100%;
  height: 1px;
 }

 .event-gallery-grid {
  grid-template-columns: repeat(2, 1fr);
 }
}

@media (max-width: 500px) {
 .event-gallery-grid {
  grid-template-columns: 1fr;
 }
}
