* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #e67e22;
    --secondary-color: #3498db;
    --highlight-color: #e67e22;
    --background-color: #f4f4f4;
    --text-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    text-align: center;
    line-height: 1.6;
}

/* Основной контейнер с отступами */
.main-container {
    padding: 0 5%;
}

/* Parallax Header с эффектом при прокрутке */
.parallax {
    height: 45vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    background-image: url('images/background.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.parallax::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Затемнение */
    z-index: 0;
}

.parallax > * {
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6); /* Тень для текста */
}

/* Контентные блоки с легкими анимациями */
.contact-info, 
.text-block, 
.services, 
.contact-buttons, 
.map, 
.footer {
    margin: 20px auto;
    padding: 20px;
    background: rgba(77, 77, 77, 0.7);
    border-radius: 20px;
    box-shadow: 0px 10px 20px var(--shadow-color);
    width: 100%;
    max-width: 100%;
    transition: transform 0.3s ease, background 0.3s ease;
}

.contact-info:hover,
.text-block:hover,
.services:hover,
.contact-buttons:hover,
.map:hover,
.footer:hover {
    transform: translateY(-10px); /* Эффект поднятия блоков */
    background: rgba(77, 77, 77, 0.9); /* Углубление фона */
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-buttons button {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    background: #e67e22;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

.contact-buttons button:hover {
    background: #3498db;
    transform: scale(1.05); /* Легкое увеличение кнопки */
}

.contact-buttons button:active {
    transform: scale(1); /* Отмена эффекта при нажатии */
}

/* Карта с округлыми углами */
.map {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    margin: 20px auto;
    border-radius: 20px;
    box-shadow: 0px 5px 15px var(--shadow-color);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.map:hover {
    transform: scale(1.02); /* Легкое увеличение карты при наведении */
}

.map iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Ссылки с градиентом */
a {
    color: #e67e22;
    text-decoration: none;
    background-image: linear-gradient(to right, #e67e22, #3498db);
    background-size: 0 2px;
    background-position: bottom left;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease, color 0.3s ease;
}

a:hover {
    background-size: 100% 2px;
    color: var(--highlight-color);
}

/* Таблица с визуальными улучшениями */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 15px;
    text-align: center;
    background-color: #333;
    color: white;
}

th {
    background-color: #e67e22;
    color: white;
}

td {
    background-color: #444;
}

/* Размещение блоков на больших экранах */
@media (min-width: 769px) {
    .contact-map-wrapper {
        display: flex;
        justify-content: space-between;
        gap: 30px;
    }

    .contact-buttons {
        flex: 1;
    }

    .map {
        flex: 1;
    }

    .contact-buttons button {
        padding: 20px;
        font-size: 1.4rem;
    }
}

/* Мобильная версия */
@media (max-width: 768px) {
    .contact-map-wrapper {
        display: block;
    }

    .contact-buttons,
    .map {
        width: 100%;
    }
}
