* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Comfortaa', sans-serif;
}

a {
    text-decoration: none;
    color: #666;
}

p {
    line-height: 1.6;
}

.top-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: #ffffffb8;
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    height: 70px;
    position: fixed;
    z-index: 99;
    width: 100%;
    top: 0;
    box-shadow: 0 10px 10px 0 rgb(0 0 0 / 7%);
}

.container-header {
    margin: 0 auto;
    max-width: 1160px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu {
    font-size: 15px;
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 0;
    margin-left: 250px;
    gap: 81px;
}

.menu>li {
    overflow: hidden;
    gap: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contacts-header {
    display: flex;
    flex-direction: column;
    margin-left: 64px;
    gap: 10px;
}

.logo_1 {
    width: 60%;
}

.section_2 {
    margin-top: 80px;
}

.section_2>.container {
    display: flex;
    flex-direction: column;
}

.animated-button1 {
    background: linear-gradient(-30deg, #5d0d0d 50%, #3b0a0a 50%);
    padding: 20px 40px;
    display: inline-block;
    -webkit-transform: translate(0%, 0%);
    transform: translate(0%, 0%);
    overflow: hidden;
    color: #f7d4d4;
    font-size: 15px;
    letter-spacing: 2.5px;
    text-align: center;
    text-decoration: none;
    -webkit-box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin-bottom: 30px;
    width: 390px;
    height: 55px;
}

.animated-button1::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: #ad8585;
    opacity: 0;
    -webkit-transition: .2s opacity ease-in-out;
    transition: .2s opacity ease-in-out;
}

.animated-button1:hover::before {
    opacity: 0.2;
}

.animated-button1 span {
    position: absolute;
}

.animated-button1 span:nth-child(1) {
    top: 0px;
    left: 0px;
    width: 100%;
    height: 2px;
    background: -webkit-gradient(linear, right top, left top, from(rgba(43, 8, 8, 0)), to(#d92626));
    background: linear-gradient(to left, rgba(43, 8, 8, 0), #d92626);
    -webkit-animation: 2s animateTop linear infinite;
    animation: 2s animateTop linear infinite;
}

@keyframes animateTop {
    0% {
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
    }

    100% {
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%);
    }
}

.animated-button1 span:nth-child(2) {
    top: 0px;
    right: 0px;
    height: 100%;
    width: 2px;
    background: -webkit-gradient(linear, left bottom, left top, from(rgba(43, 8, 8, 0)), to(#d92626));
    background: linear-gradient(to top, rgba(43, 8, 8, 0), #d92626);
    -webkit-animation: 2s animateRight linear -1s infinite;
    animation: 2s animateRight linear -1s infinite;
}

@keyframes animateRight {
    0% {
        -webkit-transform: translateY(100%);
        transform: translateY(100%);
    }

    100% {
        -webkit-transform: translateY(-100%);
        transform: translateY(-100%);
    }
}

.animated-button1 span:nth-child(3) {
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 2px;
    background: -webkit-gradient(linear, left top, right top, from(rgba(43, 8, 8, 0)), to(#d92626));
    background: linear-gradient(to right, rgba(43, 8, 8, 0), #d92626);
    -webkit-animation: 2s animateBottom linear infinite;
    animation: 2s animateBottom linear infinite;
}

@keyframes animateBottom {
    0% {
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%);
    }

    100% {
        -webkit-transform: translateX(100%);
        transform: translateX(100%);
    }
}

.animated-button1 span:nth-child(4) {
    top: 0px;
    left: 0px;
    height: 100%;
    width: 2px;
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(43, 8, 8, 0)), to(#d92626));
    background: linear-gradient(to bottom, rgba(43, 8, 8, 0), #d92626);
    -webkit-animation: 2s animateLeft linear -1s infinite;
    animation: 2s animateLeft linear -1s infinite;
}

@keyframes animateLeft {
    0% {
        -webkit-transform: translateY(-100%);
        transform: translateY(-100%);
    }

    100% {
        -webkit-transform: translateY(100%);
        transform: translateY(100%);
    }
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    display: flex;
    gap: 40px;
}

.title {
    font-size: 40px;
    width: 80%;
    color: rgb(237, 12, 12);
}

.image_1 {
    width: 50%;
    height: 50%;
}

/* Стили слайдера */
.slider-section {
    flex: 1;
    position: relative;
}

.slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dot.active {
    background: #4a6ee0;
}

/* Стили описания */
.description-section {
    flex: 1;
    padding: 20px 0;
}

.description h2 {
    font-size: 30px;
    margin-bottom: 20px;
    color: #333;
}

.description p {
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

.title-about {
    display: flex;
    justify-content: space-between;
}

.title {
    margin-bottom: 50px;
}

.descr {
    width: 50%;
}

/* Стили кнопки и модального окна */
.book-btn {
    background: #d90909;
    color: white;
    border: none;
    padding: 14px 35px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.book-btn:hover {
    background: #ef5d5d;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal h2 {
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.close-btn {
    float: right;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}

.close-btn:hover {
    color: #000;
}

.submit-btn {
    background: #4a6ee0;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #3a5ecc;
}

.icons {
    display: grid;
    gap: 50px;
}

.icons-h3 {
    padding: 20px 0 10px 0;
}

.feedback {
    display: flex;
}

.feedback_p {
    margin-bottom: 535px;
}

.contacts-feedback {
    display: grid;
}

.feedback-form {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border-top: 5px solid rgb(237, 12, 12);
    margin-left: 150px;
}

.form-title {
    color: #d32f2f;
    text-align: center;
    margin-bottom: 25px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

input,
select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus,
select:focus {
    outline: none;
    border-color: rgb(237, 12, 12);
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.2);
}

.submit-btn {
    background-color: rgb(237, 12, 12);
    ;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 14px 20px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: rgb(237, 12, 12);
    ;
}

.required {
    color: rgb(237, 12, 12);
    ;
}

.form-note {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider {
    width: 100%;
    overflow: hidden;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slide {
    min-width: 100%;
    height: 400px;
    /* Настройте по необходимости */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-dot.active {
    background-color: #333;
}

.slider {
    overflow: hidden;
    /* Скрывает невидимые слайды */
}

.slides {
    display: flex;
    /* Выстраивает слайды в ряд */
    /* Transition управляется JS, но можно добавить и здесь */
}

.slide {
    flex-shrink: 0;
    /* Важно: запрещает слайду сжиматься */
    width: 100%;
    /* Занимает 100% ширины видимой области */
}

.logo_2 {
    width: 25%;
}

.footer-elements {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.docs {
    width: 50%;
    margin-left: 50%;
    color: #3a5ecc;
}

.oliviia_design {
    margin-left: 35%;
}

.btn {
    color: #fff;
}

/* 1. Обёртка карты: обеспечивает адаптивность и позиционирование */
.map-wrapper {
    flex-grow: 1; 
    min-width: 300px;
    
    /* Ключ к адаптивности: поддерживает соотношение сторон 16:9 */
    padding-bottom: 56.25%; /* 9 / 16 * 100% */
    height: 0;
    overflow: hidden;
    
    /* Стилизация */
    position: relative;
    border-radius: 8px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd; /* Добавим тонкую рамку для ясности */
}

/* 2. iframe: растягиваем на 100% обёртки */
.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none; 
}

/* 3. Ссылки Yandex: делаем их видимыми и менее заметными */
.map-wrapper a {
    color: #444 !important; 
    font-size: 11px !important;
    position: absolute; /* Важно: они должны быть абсолютно позиционированы */
    z-index: 10; /* Чтобы быть поверх карты */
    padding: 2px 5px;
    background-color: rgba(255, 255, 255, 0.7); /* Легкий фон для лучшей читаемости */
    border-radius: 3px;
    text-decoration: none;
    line-height: 1.2;
}

/* Точное позиционирование ссылок */
.map-wrapper a:nth-child(1) { /* Ссылка "Искра" */
    top: 5px;
    left: 5px;
}

.map-wrapper a:nth-child(2) { /* Ссылка "Гостиница" */
    top: 25px;
    left: 5px;
}