* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

header {
    background: #f9f9f9;
    color: white;
    padding: 1rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    max-height: 80px; /* Максимальная высота логотипа */
    height: auto; /* Сохраняем пропорции */
    width: auto; /* Автоматически рассчитываем ширину */
    margin-right: 15px; /* Отступ между логотипом и текстом */
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin: 0 0.5rem;
}

.nav-button {
    display: inline-block;
    background: #3498db;
    color: white !important;
    text-decoration: none !important;
    padding: 0.7rem 1.2rem;
    border-radius: 8px; /* Скруглённые углы */
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.nav-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.header-contacts {
    white-space: nowrap;
}

.email-button {
    display: inline-block;
    background: #3498db;
    color: white !important;
    text-decoration: none !important;
    padding: 0.7rem 1.5rem;
    border-radius: 8px; /* Скруглённые углы */
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.email-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

main {
    padding: 3rem 2rem;
    text-align: center;
}

/* Стили для блока «О компании» */
.about-company {
    text-align: justify;
    margin-bottom: 2.5rem;
}

.about-company h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
	text-align: center;
}

.about-company p {
    font-size: 1.1rem;
    color: #555;
    max-width: 1000px;
	margin: auto;
	margin-bottom: 1em;
	text-align: justify;
	text-indent: 50px;
}

.maintenance h2 {
    font-size: 2.5rem;
    color: #3498db;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Стили для подвала */
.site-footer {
    background: #3498db;
    color: white;
    margin: 3rem auto 2rem; /* Отступы сверху и снизу */
    max-width: 1100px; /* Ширина подвала */
    border-radius: 25px; /* Скруглённые края — создаём эффект большого квадрата со скруглёнными углами */
    overflow: hidden; /* Скрываем выходящие за границы элементы */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
}

.footer-container {
    padding: 2.5rem 3rem; /* Внутренние отступы */
    text-align: center;
}

.contacts p {
    margin-bottom: 0.8rem;
	line-height: 1;
    font-size: 1.1rem;
}

footer .contacts p:last-child {
    margin-bottom: 0; /* Убираем отступ у последнего элемента */
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px;
        gap: 1rem;
    }

    .logo {
        justify-content: center;
        width: 100%;
    }

    .logo-image {
        max-height: 60px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-button,
    .email-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    /* Адаптация подвала для мобильных устройств */
    .site-footer {
        margin: 2rem auto 1.5rem;
        max-width: 95%; /* Почти на всю ширину экрана */
        border-radius: 20px; /* Немного уменьшаем скругление */
    }

    .footer-container {
        padding: 2rem 1.5rem; /* Уменьшаем отступы на мобильных */
    }

    .maintenance h2 {
        font-size: 2rem;
    }
}
