#contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin: 8rem auto;
    max-width: 1200px;
}

#contact.section-padded {
    padding: 2rem;
}

#contact section h3 {
    text-align: center;
    margin-top: 1rem;
}

#contact section p {
    text-indent: 2rem;
}

/* Стилизация списков и адреса */
#contact address {
    font-style: normal;
    margin-top: 20px;
}

#contact ul {
    list-style: none;
    padding: 0;
    text-indent: 1rem;
}

#contact li {
    margin-bottom: 15px;
}

#contact li strong {
    color: rgb(36, 128, 76);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Стилизация таблицы времени работы */
#contact .table {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 2rem;
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
}

#contact th, #contact td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

#contact th {
    background: #f0f0f0;
    font-size: 0.9rem;
}

/* Стилизация формы */
.section-padded-response {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #fcfcfc;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #eee;
    margin-top: 1rem;
}

.section-padded-response input, 
.section-padded-response textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.section-padded-response .privacy-policy {
    display: flex;          /* Включаем flexbox */
    justify-content: center; /* Центрируем содержимое по горизонтали */
    align-items: center;     /* Центрируем чекбокс и текст по вертикали друг относительно друга */
    gap: 10px;              /* Расстояние между галочкой и текстом */
    text-align: center;      /* На всякий случай для многострочного текста */
}

/* Чтобы чекбокс не сжимался, если текст длинный */
.section-padded-response .privacy-policy input[type="checkbox"] {
    flex-shrink: 0;
    cursor: pointer;
}

/* Для удобства нажатия */
.section-padded-response .privacy-policy label {
    cursor: pointer;
    user-select: none; /* Чтобы текст не выделялся синим при случайном двойном клике */
}

.section-padded-response button {
    background: rgb(36, 128, 76);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.section-padded-response button:hover {
    background: #1e6b40;
    transform: translateY(-2px);
}
