/* ===================================================================
   contacts-page.css
   Отдельная страница контактов.
   =================================================================== */

.contacts-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 84px;
}

.contacts-inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ── MAP + INFO TOP ROW ── */
.contacts-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.contacts-top > * {
    min-width: 0;
}

/* ── MAP CARD ── */
.map-card {
    background: #fff;
    border-radius: var(--radius, 14px);
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
}

.map-wrap {
    position: relative;
}

.map-overlay-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #fff;
    border-radius: 50px;
    padding: 8px 14px 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.map-overlay-badge-dot {
    width: 10px;
    height: 10px;
    background: var(--green, #2a7d34);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(42, 125, 52, 0.25);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(42, 125, 52, 0.25);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(42, 125, 52, 0.12);
    }
}

.map-overlay-badge-text {
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--text, #1a1a1a);
    line-height: 1.2;
}

.map-overlay-badge-sub {
    font-size: 11px;
    color: var(--text-l, #888);
}

.map-footer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
}

.map-footer svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--green, #2a7d34);
    stroke-width: 2;
    stroke-linecap: round;
    flex-shrink: 0;
    margin-top: 2px;
}

.map-footer-text {
    font-size: 13px;
    color: var(--text-m, #555);
    line-height: 1.55;
}

/* ── INFO CARD ── */
.info-card {
    background: #fff;
    border-radius: var(--radius, 14px);
    padding: 28px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.info-divider {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 18px 0;
}

/* Часы работы */
.hours-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hours-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-l, #888);
}

.hours-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hours-day {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: var(--text, #1a1a1a);
}

.hours-day svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--green, #2a7d34);
    stroke-width: 2;
    stroke-linecap: round;
}

.hours-time {
    font-family: "Montserrat", sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--green, #2a7d34);
}

.hours-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f5e9;
    color: var(--green, #2a7d34);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    width: fit-content;
}

.hours-badge::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--green, #2a7d34);
    border-radius: 50%;
}

/* Описание */
.desc-block p {
    font-size: 14px;
    color: var(--text-m, #555);
    line-height: 1.65;
    margin: 0;
}

/* Кнопка действия */
.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 22px;
    border-radius: 50px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s;
    margin-top: 4px;
}

.action-btn-primary {
    background: var(--green, #2a7d34);
    color: #fff;
}

.action-btn-primary:hover {
    background: var(--green-d, #1a5223);
    box-shadow: 0 6px 22px rgba(42, 125, 52, 0.38);
    transform: translateY(-1px);
    color: #fff;
}

.action-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

/* Строки контактов */
.contact-row {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    padding: 8px 0;
    transition: opacity 0.2s;
}

.contact-row:hover {
    opacity: 0.75;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ci-phone {
    background: #e8f5e9;
}

.ci-email {
    background: #e3f2fd;
}

.contact-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

.ci-phone svg {
    stroke: var(--green, #2a7d34);
}

.ci-email svg {
    stroke: #1565c0;
}

.contact-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-l, #888);
    line-height: 1;
    margin-bottom: 3px;
}

.contact-value {
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text, #1a1a1a);
}
/* Кнопки мессенджеров */
.messenger-btns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.msg-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border-radius: 12px;
    text-decoration: none;
    transition:
        opacity 0.2s,
        transform 0.2s;
    color: #fff;
}

.msg-btn:hover {
    opacity: 0.88;
    transform: translateY(-4px);
}

.msg-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: #fff;
}

.msg-btn-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.msg-btn-label {
    font-weight: 700;
    font-size: 13px;
    color: #fff;
}

.msg-btn-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
}

/* Цвета */
.msg-wa {
    background: #25d366;
}
.msg-tg {
    background: #2aabee;
}
.msg-mx {
    background: linear-gradient(45deg, #4cf 0%, #53e 66%, #93d 100%);
}

/* ── СЕКЦИЯ ФОРМЫ ── */
.contacts-form-section {
    background: #fff;
    border-radius: var(--radius, 14px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Левая — промо */
.form-left {
    background: linear-gradient(145deg, #122e17 0%, #1e5c27 55%, #2f8a3b 100%);
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
}

.form-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 50px;
    width: fit-content;
    margin-bottom: 18px;
}

.form-tag svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.form-title {
    font-family: "Montserrat", sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 14px;
}

.form-title span {
    color: rgba(255, 255, 255, 0.55);
}

.form-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    margin: 0 0 32px;
}

.form-promise {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
}

.form-promise-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fp-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fp-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
}

.fp-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
    margin: 0;
}

.fp-text b {
    color: #fff;
}

/* Правая — форма */
.form-right {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
}

.form-right-title {
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--text, #1a1a1a);
    margin-bottom: 24px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.field-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text, #1a1a1a);
}

.field-label span {
    color: var(--green, #2a7d34);
}

.field-input {
    width: 100%;
    padding: 13px 18px;
    border: 1.5px solid var(--border, #e0e0e0);
    border-radius: 10px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    color: var(--text, #1a1a1a);
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    box-sizing: border-box;
    background: #fafafa;
    resize: none;
}

textarea.field-input {
    min-height: 90px;
    resize: vertical;
}

.field-input:focus {
    border-color: var(--green, #2a7d34);
    box-shadow: 0 0 0 3px rgba(42, 125, 52, 0.1);
    background: #fff;
}

/* Чекбокс */
.contacts-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 18px;
}

.contacts-checkbox-group input[type="checkbox"] {
    display: none;
}

.contacts-cb-box {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 5px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-top: 1px;
}

.contacts-cb-box svg {
    width: 10px;
    height: 10px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transition: opacity 0.15s;
}

.contacts-checkbox-group input:checked + .contacts-cb-box {
    background: var(--green, #2a7d34);
    border-color: var(--green, #2a7d34);
}

.contacts-checkbox-group input:checked + .contacts-cb-box svg {
    opacity: 1;
}

.contacts-cb-text {
    font-size: 12px;
    color: var(--text-l, #888);
    line-height: 1.55;
}

.contacts-cb-text a {
    color: var(--green, #2a7d34);
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    background: var(--green, #2a7d34);
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 15px;
    padding: 16px 22px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    margin-bottom: 14px;
}

.submit-btn:hover {
    background: var(--green-d, #1a5223);
    box-shadow: 0 8px 24px rgba(42, 125, 52, 0.38);
    transform: translateY(-1px);
}

.submit-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.form-note {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    color: var(--text-l, #aaa);
    margin: 0;
}

.form-note svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    flex-shrink: 0;
}

/* Успех */
.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success-icon {
    width: 64px;
    height: 64px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.form-success-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: var(--green, #2a7d34);
    stroke-width: 2.5;
    stroke-linecap: round;
}

.form-success h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: var(--text, #1a1a1a);
    margin: 0 0 10px;
}

.form-success p {
    font-size: 14px;
    color: var(--text-m, #666);
    line-height: 1.6;
    margin: 0;
}

/* Доп. контент */
.contacts-content {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-m, #444);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .contacts-top {
        grid-template-columns: 1fr;
    }

    .map-wrap iframe {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .form-layout {
        grid-template-columns: 1fr;
    }

    .form-left {
        padding: 36px 28px;
    }

    .form-right {
        padding: 36px 28px;
    }

    .form-title {
        font-size: 28px;
    }

    .msg-btn {
        gap: 8px;
        padding: 12px;
    }
}

@media (max-width: 500px) {
    .contacts-section {
        padding: 32px 16px 60px;
    }

    .form-left {
        padding: 28px 20px;
    }

    .form-right {
        padding: 28px 20px;
    }
}
