/* === Общий сброс стилей === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 1170px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* === Шапка (Header) === */
.header {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1em 0;
}

.logo {
    display: block;
    margin: 0 auto 10px;
    width: 250px;
    height: auto;
}

.nav-menu {
    list-style-type: none;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.nav-link a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: #007BFF;
    color: white;
}

/* === Основные секции === */
.section {
    padding: 50px 0;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* === Логистические услуги === */
.services-overview {
    padding: 50px 0;
    background-color: #fafafa;
}

.service {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: start; /* Выравнивание по верху */
}

.service i {
    font-size: 36px;
    margin-bottom: 10px;
}

.service h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.service p {
    font-size: 1rem;
    color: #666;
    text-align: justify;
}

/* === Типы грузов === */
.cargoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Адаптивная сетка */
    gap: 20px;
    margin-top: 20px;
}

.cargo-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.cargo-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.cargo-card:hover {
    transform: scale(1.05);
}

.cargo-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.cargo-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* === Кнопки === */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007BFF;
}

.btn-success {
    background-color: #28a745;
}

.btn-warning {
    background-color: #ffc107;
}

.btn-danger {
    background-color: #dc3545;
}

.btn:hover {
    opacity: 0.9;
}

/* === Отзывы пользователей === */
.reviews {
    padding: 50px 0;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.review-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.review-item {
    width: calc(33% - 20px); /* Три колонки с отступами */
    margin-bottom: 20px;
    background-color: #fafafa;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    align-items: center;
}

.review-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%; /* Круглая фотография */
    margin-right: 20px;
}

.review-body h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.rating {
    font-size: 0.9rem;
    color: #ffb300; /* Цвет звездочек */
    margin-bottom: 10px;
}

.review-body p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* === Часто задаваемые вопросы === */
.faq details summary {
    cursor: pointer;
    font-weight: bold;
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

.faq details > p {
    padding-left: 10px;
    margin-bottom: 10px;
}

.faq details::marker {
    color: #007BFF;
}

.faq details[open] > summary {
    outline: none;
}

.faq p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

/* === Адаптация для мобильных устройств === */
@media screen and (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        align-items: center;
    }

    .nav-link {
        margin-bottom: 10px;
    }

    .col-md-4, .col-sm-6 {
        flex-basis: 100%;
    }

    .contact-methods {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-method {
        margin-bottom: 20px;
    }

    .review-item {
        width: 100%;
    }
}

/* === Дополнительные стили для страницы поддержки === */
.support-form form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-group textarea {
    resize: vertical;
}

.support-form button {
    width: 100%;
    margin-top: 15px;
}

.contact-support {
    text-align: center;
    margin-top: 30px;
}

/* === Стиль для поля комментариев с символом карандаша === */
.form-group i {
    color: #007BFF;
    margin-right: 5px;
}

.textarea-with-icon {
    position: relative;
}

.textarea-with-icon textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    resize: vertical;
}

.textarea-with-icon textarea:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* === Отдел "Наши сотрудники" === */
.team-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 20px;
}

.member {
    text-align: center;
    margin-bottom: 20px;
    width: calc(25% - 20px); /* четыре столбца с промежутком */
    background-color: #fafafa;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.member-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%; /* делаем фотографию круглой */
    margin-bottom: 10px;
}

.member h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.member p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Мобильная адаптация */
@media screen and (max-width: 768px) {
    .member {
        width: calc(50% - 20px); /* два столбца на планшетах */
    }
}

@media screen and (max-width: 480px) {
    .member {
        width: 100%; /* один столбец на телефонах */
    }
}

/* === Модальные окна === */
.modal {
    display: none; /* По умолчанию скрытые */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
}

.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: red;
    text-decoration: none;
    cursor: pointer;
}

.hidden {
    display: none;
}

.show {
    display: block;
}

/* Поля форм */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-group input:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #007BFF;
}

.btn-success {
    background-color: #28a745;
}

.btn:hover {
    opacity: 0.9;
}

.warning {
    background-color: #ffebcc; /* Светло-желтый фон для привлечения внимания */
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #777;
}
