/* Базовые стили */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-container {
    width: 71.43vw;
    margin: 0 auto;
    background-color: #e0f7ff;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 100vh;
}

/* Контентная зона */
.page-content {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 20px;
}

/* Центрирующая обертка для блоков */
.content-wrapper {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

/* Хедер */
.site-header {
    background-color: #ccf5cc;
    border-bottom: 1px solid #ccc;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
}

.logo {
    height: 100px;
    width: auto;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.logo:active {
    transform: scale(0.95);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.logo:hover {
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

/* Гамбургер-меню */
.menu-icon {
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-icon div {
    background-color: #000;
    height: 6px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-icon.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Футер */
.site-footer {
    background-color: #ccf5cc;
    border-top: 1px solid #ccc;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

/* Боковое меню */
.side-menu {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    right: 0;
    background-color: #fff;
    overflow-x: hidden;
    transition: width 0.5s ease;
    padding-top: 60px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.3);
    z-index: 1000;
}

.side-menu a {
    padding: 12px 32px;
    text-decoration: none;
    font-size: 22px;
    color: #007BFF;
    display: block;
    transition: 0.3s;
}

.side-menu a:hover {
    background-color: #f1f1f1;
}

/* Центрированный текст */
.center-text {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

/* Блок с изображением и текстом */
.image-text-block {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 30px;
    flex-wrap: nowrap;
}

.image-text-block img {
    max-width: 450px;
    height: 450px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.image-text-block .text-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center; /* Центрирует текст по горизонтали */
    font-size: 25px;
    color: #333;
    max-width: calc(100% - 270px);
    line-height: 1.2;
    text-align: center;
}

.image-text-block .text-right h3 {
    margin-bottom: 10px; /* Было около 20px по умолчанию, теперь в 2 раза меньше */
}

/* Обертка для карты */
.map-wrapper {
    width: 100%;
    margin-top: 10px;
    position: relative;
    min-height: 428px;
    border: 2px solid #aaa;
    border-radius: 4px;
    box-sizing: border-box;
    overflow: hidden;
}

/* Плейсхолдер без рамки */
.map-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 428px;
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-size: 18px;
    font-style: italic;
    z-index: 1;
}

/* Карусель изображений */
.carousel-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 960px;
    display: flex;
    align-items: center;
}

.image-carousel {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 0;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track img {
    height: auto;
    width: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    scroll-snap-align: center;
}

/* Кнопки прокрутки */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 32px;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    transition: background-color 0.3s ease;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.carousel-btn.left {
    left: 10px;
}

.carousel-btn.right {
    right: 10px;
}

/* Кнопка "К контактам" */
.contact-button {
    display: inline-block;
    margin-top: -5px; /* Поднята на 25px выше (было 20px, стало -5px) */
    padding: 12px 24px;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    background-color: #007BFF;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.contact-button:active {
    background-color: #004080;
    transform: scale(0.98);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Слоган в хедере */
.header-slogan {
    flex: 1;
    text-align: center;
    font-style: italic;
    font-size: 22px;
    font-family: "Georgia", serif;
    color: #333;
    padding: 0 20px;
    word-break: break-word;
}

@media (max-width: 768px) {
    .header-slogan {
        font-size: 17px;
        padding: 0 10px;
    }
}
