/* ===== КОНТАКТЫ ===== */
:root {
    --bg-color: #FFF8F0;
    --card-bg: #ffffff;
    --title-color: #5d3a1a;
    --text-color: #6b4f34;
    --accent: #b87c4a;
    --accent-dark: #9e643c;
    --border: #e6d5c0;
    --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 30px -12px rgba(0, 0, 0, 0.15);
}

.contacts-page {
    background: var(--bg-color);
    background: linear-gradient(145deg, #fff9f2 0%, #fff5eb 100%);
    padding: 80px 20px 70px;
}

.contacts-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* маленький декоративный элемент — как украшение, без фанатизма */
.contacts-container::before {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto 35px;
    border-radius: 4px;
    opacity: 0.5;
}

.contacts-header {
    text-align: center;
    margin-bottom: 55px;
}

.section-tag {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(184, 124, 74, 0.08);
    display: inline-block;
    padding: 5px 18px;
    border-radius: 40px;
    font-weight: 500;
    margin-bottom: 15px;
}

.contacts-title {
    font-size: 52px;
    font-weight: 600;
    color: var(--title-color);
    margin-bottom: 18px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

@media (max-width: 550px) {
    .contacts-title {
        font-size: 38px;
    }
}

.contacts-description {
    max-width: 680px;
    margin: 0 auto;
    color: var(--text-color);
    line-height: 1.65;
    font-size: 1.05rem;
}

/* основная сетка — сделаем так чтобы блоки были одной высоты */
.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: stretch;
}

/* Карточки — чисто, симметрично, но с душой */
.contacts-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
    /* фиксируем высоту внутри — чтобы карточки были одинаковые */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: #d4c0aa;
}

.contact-card i {
    font-size: 36px;
    color: var(--accent);
    margin-bottom: 18px;
    display: inline-block;
    transition: transform 0.2s;
}

.contact-card:hover i {
    transform: scale(1.05);
}

.contact-card h3 {
    color: var(--title-color);
    margin-bottom: 10px;
    font-size: 1.25rem;
    font-weight: 600;
}

.contact-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    margin: 0;
}

/* Форма — теперь одной высоты с карточками */
.contact-form-block {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px 32px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    /* чтобы форма растягивалась на всю высоту */
    height: 100%;
}

.contact-form-block h2 {
    color: var(--title-color);
    margin-bottom: 24px;
    font-size: 26px;
    font-weight: 500;
    border-left: 4px solid var(--accent);
    padding-left: 16px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.contact-form input,
.contact-form textarea {
    background: #fefaf5;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 18px;
    color: #4a3520;
    font-size: 15px;
    transition: 0.2s;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 2px rgba(184, 124, 74, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form button {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 14px 22px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.contact-form button:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(184, 124, 74, 0.3);
}

.contact-form button:active {
    transform: translateY(1px);
}

/* Карта */
.contacts-map {
    margin-top: 20px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.contacts-map iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
}

/* ===== АДАПТИВ ===== */
@media screen and (max-width: 768px) {
    .contacts-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .contacts-info {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .contacts-title {
        font-size: 42px;
    }

    .contact-form-block {
        padding: 28px 24px;
    }
}

@media screen and (max-width: 550px) {
    .contacts-page {
        padding: 50px 16px 60px;
    }

    .contacts-info {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .contacts-title {
        font-size: 32px;
    }

    .contact-card {
        padding: 24px 16px;
    }

    .contact-form-block h2 {
        font-size: 24px;
    }

    .contacts-map iframe {
        height: 280px;
    }

    .section-tag {
        letter-spacing: 2px;
        font-size: 11px;
    }
}

/* легкая анимация */
@keyframes soft-appear {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-card,
.contact-form-block,
.contacts-map {
    animation: soft-appear 0.4s ease backwards;
}

.contact-card:nth-child(1) {
    animation-delay: 0.05s;
}

.contact-card:nth-child(2) {
    animation-delay: 0.1s;
}

.contact-card:nth-child(3) {
    animation-delay: 0.15s;
}

.contact-card:nth-child(4) {
    animation-delay: 0.2s;
}

.contact-form-block {
    animation-delay: 0.1s;
}

.contacts-map {
    animation-delay: 0.2s;
}