@font-face {
    font-family: 'CormorantGaramond';
    src: url(../fonts/CormorantGaramond-Regular.ttf);
}
/* Общие стили */
:root {
    --primary-color: #8b7355;
    --secondary-color: #d4b8a4;
    --text-color: #333;
    --light-text: #777;
    --bg-light: #f8f5f0;
    --bg-white: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'CormorantGaramond', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    overflow: visible;
    user-select: none;
}

body.no-scroll {
  overflow-y: hidden;
  /* top: calc(-1 * var(--scroll-position)); */
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0 80px 0;
    position: relative;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.active {
    opacity: 1;
}

.section-title {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
    font-family: 'CormorantGaramond', serif;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--secondary-color);
}

/* Стили для слайдера открытия */
.slider-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-light);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.slider-container_main {
    text-align: center;
    padding: 2rem;
}

.slider-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 500;
}

.slider-content p {
    font-size: 1.5rem;
    margin-bottom: 4rem;
    color: var(--light-text);
}

.slider-track {
    width: 100%;
    max-width: 300px;
    height: 100px;
    /* background-color: #e8e0d9; */
    border-radius: 30px;
    margin: 0 auto 1.5rem;
    position: relative;
    /* overflow: hidden; */
    cursor: pointer;
    user-select: none;
    left: -30px;
}

.slider-track>img {
    margin: 35px 50px 35px 0;
    width: 70px;
}

.slider-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 65px;
    height: 100px;
    /* background-color: var(--secondary-color); */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: left 0.1s ease;
}

.slider-thumb img {
    position: absolute;
    width: 140px;
    user-select: none;
    pointer-events: none;
    left: 0;
}

.slider-thumb-after {
    position: absolute;
    top: 0;
    right: 5px;
    width: 65px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: left 0.1s ease;
}

.slider-thumb-after img {
    position: absolute;
    width: 140px;
    user-select: none;
    pointer-events: none;
    left: -6px;
}

.slider-progress-content {
    position: absolute;
    top: 0;
    left: 0;
    height: 100px;
    background-image: url("../media/images/heart/2heartmore.png");
    background-repeat: no-repeat;
    background-color: transparent;
    background-position: center;
    width: 0;
    transition: width 0.1s ease;
    z-index: 1;
}

.slider-progress {
    height: 100px;
    background-image: url("../media/images/heart/2heartmore.png");
    background-repeat: no-repeat;
    background-color: #f8f5f0;
    background-position: center;
}

.slider-hint {
    font-size: 0.9rem;
    color: #9c8e84;
    font-style: italic;
}

/* Большое сердечко */
.big-heart {
    position: fixed;
    top: 49%;
    left: 48.8%;
    transform: translate(-10%, -47%) scale(0);
    font-size: 0;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    /* transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); */
    color: #F45B59;
}

.big-heart.show {
    opacity: 1;
    transform: translate(-10%, -47%) scale(1);
    font-size: 500px;
    animation: heartBeat 0.5s ease-in-out;
}

/* Кнопка навигации */
.nav-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
    /* display: none; */
}

.nav-toggle:hover {
    background-color: var(--secondary-color);
}

/* Боковая панель навигации */
.sidebar-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: var(--bg-white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.4s ease;
    padding: 20px;
    overflow-y: auto;
}

.sidebar-nav.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.sidebar-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.close-nav {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--light-text);
    cursor: pointer;
    transition: var(--transition);
}

.close-nav:hover {
    color: var(--primary-color);
}

.nav-list {
    list-style: none;
}

.nav-list li {
    margin-bottom: 10px;
}

.nav-link {
    display: block;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    font-weight: 400;
    font-size: 1.2rem;
}

.nav-link:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding-left: 20px;
}

/* Главная страница */
.home-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-light);
    position: relative;
}

.vertical-text {
    position: absolute;
    font-family: 'Miranda Sans', serif;
    font-size: 8rem;
    color: rgba(139, 115, 85, 0.1);
    font-weight: 700;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
}

.vertical-text.left {
    left: 50px;
}

.vertical-text.right {
    right: 50px;
}

.home-content {
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.home-content_img-mh {
    /* width: 400px;
    height: 500px; */
    width: 100%;
    height: 100%;
    max-width: 400px;
    max-height: 500px;
    object-fit: cover;
    border-radius: 0px 0px 0px 0px;
    mask: radial-gradient(at 50% 50%,#000 70%,#0000 50%), 
    linear-gradient(#000 0 0) bottom/100% 50% no-repeat;
    object-position: center center;
}

.main-title_mobile {
    display: none;
}

.main-title_mobile h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: 2px;
    font-family: 'CormorantGaramond', serif;
    font-weight: 400;
}

.main-title {
    padding-top: 100px;
}

.main-title h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: 2px;
    font-family: 'CormorantGaramond', serif;
    font-weight: 400;
}

.subtitle {
    font-family: 'Miranda Sans', serif;
    font-size: 1.8rem;
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 40px;
}

.date-large {
    margin: 40px 0;
}

.date-large .day {
    font-size: 8rem;
    color: var(--primary-color);
    line-height: 1;
}

.date-large .month-year {
    font-size: 1.7rem;
    color: var(--light-text);
    margin-top: 10px;
}

.quote-block {
    max-width: 600px;
    margin: 0 auto;
}

.quote {
    /* font-family: 'Miranda Sans', serif; */
    font-size: 2rem;
    /* font-style: italic; */
    color: var(--primary-color);
    line-height: 1.4;
    font-family: 'CormorantGaramond', serif;
}

/* Дорогие родные и близкие */
.dear-section {
    background-color: var(--bg-white);
}

.dear-section h2 {
    font-family: 'CormorantGaramond', Arial serif;
}

.dear-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
}

.dear-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

/* Дата проведения */
.date-section {
    background-color: var(--bg-light);
}

.month-display {
    font-family: 'CormorantGaramond', serif;
    font-size: 4rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 50px;
    font-weight: 500;
}

.calendar-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-header {
    display: contents;
}

.weekday {
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.3rem;
}

.calendar-body {
    display: contents;
}

.day {
    text-align: center;
    padding: 15px 0;
    font-size: 1.5rem;
    cursor: default;
    border-radius: 5px;
    transition: var(--transition);
    font-weight: 600;
    font-family: 'CormorantGaramond';
}

.day.empty {
    visibility: hidden;
}

.day:hover:not(.wedding-day) {
    background-color: var(--bg-light);
}

.wedding-day {
    color: white;
    color: black;
    font-weight: 500;
    position: relative;
    animation: none;
}

.wedding-day img {
    position: absolute;
    font-size: 8rem;
    left: 0;
    top: 5px;
    animation: heart 1.5s infinite;
    width: 70px;
}

@keyframes heart {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(221, 160, 221, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(221, 160, 221, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(221, 160, 221, 0);
    }
}

/* Место регистрации и проведения */
.registration-section, .venue-section {
    background-color: var(--bg-white);
}

.map-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.map-link:hover {
    color: var(--secondary-color);
}

.location-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.location-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    /* font-family: 'CormorantGaramond', serif; */
    font-weight: 400;
}

.location-info h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 400;
}

.location-info .address {
    font-size: 1.4rem;
    color: var(--light-text);
    margin-bottom: 10px;
}

.location-info .time {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 30px;
}

.location-addres {
    width: 100%;
    max-width: 700px;
    border-radius: 15px;
    margin: 30px auto;
}

.location-addres img {
    display: flex;
    margin: 0 auto;
    width: 100%;
    max-width: 700px;
    border-radius: 15px;
    box-shadow: 0 0 30px #8b735555;
}

.map-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    font-size: 1.2rem;
}

.map-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.map-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.map-btn:hover i {
    transform: translateX(5px);
}

/* Наша история */
.story-section {
    background-color: var(--bg-light);
    position: relative;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-content img {
    opacity: 0.05;
}

.story-img-f {
    width: 150px;
    position: absolute;
    right: 350px;
    bottom: 400px;
}

.story-img-s {
    width: 200px;
    position: absolute;
    top: 100px;
    left: 450px;
}

.story-img-t {
    width: 200px;
    position: absolute;
    bottom: 50px;
    left: 300px;
}

.story-img-fo {
    width: 150px;
    position: absolute;
    top: 30px;
    right: 500px;
}

.story-img-fi {
    width: 200px;
    position: absolute;
    bottom: 400px;
    left: 850px;
}

.story-text p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.bride-signature {
    text-align: right;
    margin-top: 40px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.bride-signature p {
    font-family: 'Miranda Sans', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 3px;
}

/* Программа дня */
.program-section {
    background-color: var(--bg-light);
    padding: 100px 0;
}

.program-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.program-timeline::before {
    content: '';
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--secondary-color);
}

.program-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.program-card-content-info {
    padding: 30px 20px 30px 20px;
}

.program-time {
    font-weight: 400;
    display: flex;
    justify-content: center;
    font-family: 'Miranda Sans', serif;
    font-size: 2.5rem;
    margin-bottom: 30px;
    line-height: 1;
    text-align: center;
    letter-spacing: 1px;
    position: relative;
    transition: transform 0.3s ease;
    align-items: center;
    height: 75px;
}

.program-time h3 {
    padding-right: 20px;
    font-weight: 400;
}

.program-content {
    flex: 1;
    padding-left: 40px;
}

.program-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.program-content p {
    color: var(--light-text);
}

/* Программа дня - карточки */
.program-section {
    background-color: var(--bg-white);
    padding: 80px 0;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.program-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    height: 100%;
    position: relative;
    /* opacity: 0; */
    transform: translateY(30px);
}

.program-card.active {
    animation: cardAppear 0.6s ease forwards;
}

.program-card:nth-child(1) { animation-delay: 0.1s; }
.program-card:nth-child(2) { animation-delay: 0.2s; }
.program-card:nth-child(3) { animation-delay: 0.3s; }
.program-card:nth-child(4) { animation-delay: 0.4s; }
.program-card:nth-child(5) { animation-delay: 0.5s; }
.program-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.program-card:hover {
    transform: translateY(20px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.program-card:hover::before {
    transform: scaleX(1);
}

.program-card-content {
    /* padding: 40px 30px; */
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.program-card-content img {
    height: 300px;
    object-fit: cover;
}

.program-card-title {
    font-family: 'Miranda Sans', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.3;
    min-height: 4.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.program-card-text {
    color: var(--light-text);
    line-height: 1.7;
    text-align: center;
    margin: 0;
    font-size: 1.2rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.dresscode-item p {
    font-size: 1.2rem;
}

/* Дресс-код */
.dresscode-section {
    background-color: var(--bg-white);
}

.dresscode-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.dresscode-content>p {
    font-size: 22px;
}

.dresscode-content-colors {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin-top: 25px;
    grid-column-gap: 15px;
    grid-row-gap: 15px;
    width: 100%;
    margin: 30px 0;
    justify-content: center;
}

.dresscode-content-color {
    width: 110px;
    height: 110px;
    border-radius: 50%;
}

.dr-color_a {
    background-color: #AEC8E1;
}

.dr-color_b {
    background-color: #737373;
}

.dr-color_c {
    background-color: #A6A6A6;
}

.dr-color_d {
    background-color: #C7A780;
}

.dr-color_e {
    background-color: #E6CBAE;
}

.dr-color_f {
    background-color: #F1E5CD;
}

.dresscode-items {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.dresscode-item {
    flex: 0 0 48%;
    margin-bottom: 30px;
    text-align: left;
}

.dresscode-item h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* Пожелания */
.wishes-section {
    background-color: var(--bg-light);
}

.wishes-content {
    max-width: 800px;
    margin: 0 auto;
}

.wish-block {
    margin-bottom: 70px;
    /* border-bottom: 1px solid #ddd; */
}

.wish-block:last-child {
    border-bottom: none;
}

.wish-block h3 {
    font-size: 2.3rem;
    color: var(--primary-color);
    /* margin-bottom: 15px; */
}

.wish-block p {
    font-size: 1.5rem;
    color: var(--primary-color);
    /* margin-bottom: 15px; */
}

/* Общий чат */
.chat-section {
    background-color: var(--bg-white);
}

.chat-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.chat-content p {
    font-size: 1.5rem;
}

.chat-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    margin-top: 30px;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.chat-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.chat-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.chat-btn:hover i {
    transform: translateX(5px);
}

/* Подтвердите присутствие */
.confirmation-section {
    background-color: var(--bg-light);
}

.confirmation-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.confirmation-content strong {
    font-family: 'Miranda Sans', serif;
}

.confirmation-content > p {
    font-size: 1.7rem;
    margin-bottom: 40px;
}

.confirmation-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}
/* -------------------------------------1 */
.confirmation-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.confirmation-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.confirmation-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.confirmation-btn:hover i {
    transform: translateX(5px);
}

/* -----------------------------2 */
.confirmation-family {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.confirmation-family:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.confirmation-family i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.confirmation-family:hover i {
    transform: translateX(5px);
}

/* -----------------------------3 */

.confirmation-not-coming {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.confirmation-not-coming:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.confirmation-not-coming i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.confirmation-not-coming:hover i {
    transform: translateX(5px);
}

.contact-info {
    font-size: 1.1rem;
    color: var(--light-text);
}

/* Обратный отсчет */
.countdown-section {
    background-color: var(--primary-color);
    color: white;
}

.countdown-section .section-title {
    color: white;
}

.countdown-section .section-title::after {
    background-color: var(--secondary-color);
}

.countdown-subtitle {
    text-align: center;
    font-size: 1.7rem;
    margin-bottom: 50px;
    opacity: 0.9;
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.countdown-item {
    text-align: center;
    margin: 0 20px;
}

.countdown-number {
    font-family: 'Miranda Sans';
    font-size: 5rem;
    font-weight: 400;
    line-height: 1;
    margin-bottom: 10px;
}

.countdown-label {
    font-size: 1.5rem;
    opacity: 0.9;
}

.countdown-separator {
    font-size: 3rem;
    font-weight: 300;
    opacity: 0.7;
    margin: 0 5px;
    padding-bottom: 40px;
}

/* Подвал сайта */
.footer {
    background-color: #2c2c2c;
    color: #aaa;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    font-size: 1.3rem;
}

.footer-left, .footer-right {
    flex: 0 0 48%;
}

.footer-logo {
    font-family: 'Miranda Sans', serif;
    font-size: 2rem;
    color: white;
    font-weight: 500;
    margin-bottom: 10px;
}

.footer-name {
    font-size: 0.9rem;
}

/* Модальные окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modaloverflov {
    overflow: auto;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 100%;
    height: 100%;
    max-width: 500px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1101;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-img {
    width: 100%;
}

.modal-img img {
    width: 100%;
    max-width: 500px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--light-text);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 25px;
}

.modal-body>p {
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.1rem;
}

.form-choice p {
    font-size: 1.1rem;
}

.form-choice-under p {
    font-size: 0.9rem;
}

.modal-form .form-group {
    margin-bottom: 30px;
}

.modal-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 4600;
    color: var(--text-color);
    font-size: 1.2rem;
}

.modal-form input, .modal-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.modal-form textarea {
    resize: none;
    min-height: 120px;
    max-height: 120px;
}

.form-choice {
    margin-bottom: 15px;
    font-size: 0.8rem;
}

.form-choice-under {
    font-size: 12px;
}

.modal-form input:focus, .modal-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.menu-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-options label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.menu-options input {
    width: auto;
    margin-right: 10px;
}

.modal-submit {
    display: block;
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
}

.modal-submit:hover {
    background-color: var(--secondary-color);
}

/* Стили для активной навигационной ссылки */
.nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.nav-link.active:hover {
    background-color: var(--primary-color);
    color: white;
    padding-left: 15px;
}

/* Индикатор активного раздела в боковой панели */
.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background-color: var(--primary-color);
    border-radius: 0 2px 2px 0;
    transition: height 0.3s ease;
}

.nav-link.active::before {
    height: 70%;
}

.nav-list li {
    position: relative;
    margin-bottom: 10px;
}

.accordion {
    width: 100%;
    margin: 0 auto;
}

.accordion__item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* margin: 0 auto; */
    margin-bottom: 0.5rem;
}

.accordion__header {
    max-width: 600px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: background-color 0.2s ease-out;
}

.accordion__header::after {
    flex-shrink: 0;
    margin-left: auto;
    background-repeat: no-repeat;
    /* background-size: 1.25rem; */
    content: "⬩➤";
    /* content: "⪼"; */
    font-size: 14pt;
    top: 0;
    transition: transform 0.2s ease-out;
    transform: rotate(90deg);
}

.accordion__item_show .accordion__header::after,
.accordion__item_slidedown .accordion__header::after {
    transform: rotate(-90deg);
}

.accordion__header:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.accordion__body {
    width: 1000px;
    margin: 0 auto;
    position: relative;
    left: 0;
}

.accordion__content {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #fff;
    border-bottom-right-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.accordion__item:not(.accordion__item_show) .accordion__body {
    display: none;
}

/* Стили для аккордеона с картой */
.accordion-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 300px;
    margin: 30px auto 0;
    padding: 15px 25px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.2);
}

.accordion-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.3);
}

.accordion-btn:active {
    transform: translateY(0);
}

.accordion-btn.active {
    border-radius: 20px 20px 0 0;
    margin-bottom: 0;
}

.accordion-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
}

.accordion-btn.active .accordion-icon {
    transform: rotate(180deg);
}

/* Содержимое аккордеона */
.accordion-content {
    max-width: 800px;
    margin: 0 auto;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: white;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.accordion-content.active {
    max-height: 600px;
    opacity: 1;
    transform: translateY(0);
    margin-top: -5px;
}

.map-container {
    padding: 25px;
}

.map-frame {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.action-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--bg-light);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.action-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.2);
}

.action-link i {
    font-size: 0.9rem;
}

/* Анимация при открытии/закрытии */
@keyframes accordionOpen {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes accordionClose {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes heartBeat {
    0% {
        transform: translate(-10%, -47%) scale(0);
    }
    50% {
        transform: translate(-10%, -47%) scale(1.3);
    }
    100% {
        transform: translate(-10%, -47%) scale(1);
    }
}