/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    padding: 20px;
}

nav {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #4CAF50;
}

/* Заголовок */

.head {
    background-color: #4CAF50;
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* Раздел "О себе" */
.about {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    text-align: center;
}

/* Раздел "Сервисы" */
.models,
.services {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.service-item {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 5px solid #4CAF50;
}

/* Раздел "Контакты" */
.contacts {
    background-color: white; /* задний фон */
    border-radius: 12px; /* закругление углов */
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* тень */
    color: #333;
    text-align: center;
}

.contacts h2 {
    margin-bottom: 20px;
}

.contact-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    margin-top: 20px;
}

.contact-column {
    flex: 1;
    min-width: 250px;
}

.models-list {
    padding: 40px 20px;
    text-align: center;
}

.models-list h2 {
    margin-bottom: 30px;
    font-size: 2em;
    color: #333;
}

.models-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.model-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    width: 250px;
    transition: transform 0.3s ease;
}

.model-card:hover {
    transform: translateY(-5px);
}

.model-card h3 {
    margin-bottom: 10px;
    color: #4CAF50;
}

.model-card ul {
    list-style-type: none;
    padding-left: 20px;
    margin-top: 10px;
}

.model-card li {
    margin-bottom: 5px;
}


/* Адаптивность */
@media (max-width: 768px) {
    .contact-columns {
        flex-direction: column;
    }

    .contact-column {
        width: 100%;
    }
}
