/* ============================================================
   contact.css — Контакти page
   Prefix: .ct-
   ============================================================ */


/* ── Page hero ───────────────────────────────────────────────────────────── */
.ct-hero {
    padding-top: 120px;
    padding-bottom: 0;
    background: #fff;
}

.ct-hero__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding-top: 60px;
}

.ct-hero__bar {
    width: 120px;
    height: 64px;
    background: var(--g-primary);
    flex-shrink: 0;
    margin-right: 32px;
}

.ct-hero__title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 700;
    color: var(--c-text-dark);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0;
}


/* ══════════════════════════════════════════════════════════════════════════
   SPLIT SECTION
   - display: block (non-negotiable — flex breaks bg height)
   - background-image set via <style> block in template (no quote conflict)
   - Form panel = left 50%, solid white
   - Right 50% transparent — bg image bleeds through
   - min-height ensures image always shows even if form is short
   ══════════════════════════════════════════════════════════════════════════ */
.ct-split {
    display: block;
    position: relative;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    min-height: 1559px;
}

.ct-split__form-side {
    display: block;
    width: 50%;
    padding: 72px 56px 80px var(--container-pad);
    background: #fff;
    min-height: 680px;
    box-sizing: border-box;
}

.ct-form-wrap {
    max-width: 460px;
    width: 100%;
}

.ct-form__accent {
    width: 48px;
    height: 5px;
    background: var(--g-primary);
    border-radius: 3px;
    margin-bottom: 20px;
}

.ct-form__heading {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    color: var(--c-text-dark);
    margin: 0 0 12px;
    line-height: 1.15;
}

.ct-form__subtext {
    font-family: var(--font-ui);
    font-size: 14px;
    color: #666;
    margin: 0 0 28px;
    line-height: 1.6;
}


/* ── Form fields ─────────────────────────────────────────────────────────── */
.ct-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ct-form__row {
    display: flex;
    gap: 12px;
}

.ct-form__row--2col .ct-form__field {
    flex: 1;
}

.ct-form__field {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ct-form__input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-ui);
    font-size: 14px;
    color: var(--c-text-dark);
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 3px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    box-sizing: border-box;
}

.ct-form__input::placeholder {
    color: #aaa;
}

.ct-form__input:focus {
    border-color: #C4161C;
    box-shadow: 0 0 0 3px rgba(196, 22, 28, 0.08);
}

.ct-form__textarea {
    resize: vertical;
    min-height: 120px;
}

.ct-form__submit {
    width: 100%;
    padding: 15px 24px;
    background: var(--g-primary);
    color: #fff;
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 4px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    letter-spacing: 0.02em;
}

.ct-form__submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.ct-form__submit:active {
    transform: translateY(0);
}

.ct-form__checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.ct-form__check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.ct-form__checkbox {
    margin-top: 3px;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #C4161C;
}

.ct-form__check-text {
    font-family: var(--font-ui);
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}

.ct-form__check-link {
    color: #C4161C;
    text-decoration: underline;
}

.ct-form__check-link:hover {
    opacity: 0.75;
}

.ct-form__messages {
    margin-top: 8px;
    margin-bottom: 4px;
}

.ct-form__message {
    font-family: var(--font-ui);
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 4px;
    margin: 0 0 8px;
}

.ct-form__message--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.ct-form__message--error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.ct-form__input--error {
    border-color: #C4161C !important;
    box-shadow: 0 0 0 2px rgba(196, 22, 28, 0.15);
}

.ct-form__field-error {
    display: block;
    font-family: var(--font-ui);
    font-size: 11px;
    color: #C4161C;
    margin-top: 4px;
    line-height: 1.4;
}


/* ══════════════════════════════════════════════════════════════════════════
   ОФИС ПРОДАЖБИ
   ══════════════════════════════════════════════════════════════════════════ */
.ct-office {
    padding: 72px 0 64px;
    background: #fff;
}

.ct-office__heading-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}

.ct-office__accent {
    width: 48px;
    height: 5px;
    background: var(--g-primary);
    border-radius: 3px;
}

.ct-office__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 400;
    color: var(--c-text-dark);
    margin: 0;
    text-align: center;
}

.ct-office__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

.ct-office__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.ct-office__icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: invert(19%) sepia(82%) saturate(2400%) hue-rotate(345deg) brightness(90%);
}

.ct-office__detail {
    font-family: var(--font-ui);
    font-size: 16px;
    color: var(--c-text-dark);
    text-decoration: none;
    line-height: 1.6;
    transition: color 0.18s ease;
}

.ct-office__detail:hover {
    color: #C4161C;
}


/* ══════════════════════════════════════════════════════════════════════════
   MAP
   ══════════════════════════════════════════════════════════════════════════ */
.ct-map {
    width: 100%;
    line-height: 0;
}

.ct-map__iframe {
    width: 100%;
    height: 480px;
    display: block;
    border: none;
}


/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */

/* ── 1024px tablet ── */
@media (max-width: 1024px) {
    /* Remove section bg — re-exposed as ::after strip below form */
    .ct-split {
        background-image: none !important;
        min-height: 0;
    }

    .ct-split__form-side {
        width: 100%;
        min-height: 0;
        padding: 56px var(--container-pad) 48px;
    }

    .ct-form-wrap {
        max-width: 600px;
    }

    /* Building image as strip below the form */
    .ct-split::after {
        content: '';
        display: block;
        width: 100%;
        height: 400px;
        background-image: var(--split-bg);
        background-size: cover;
        background-position: center 25%;
        background-repeat: no-repeat;
    }

    .ct-office__grid {
        gap: 20px;
    }
}

/* ── 768px mobile ── */
@media (max-width: 768px) {
    .ct-hero {
        padding-top: 80px;
    }

    .ct-hero__inner {
        padding-top: 40px;
    }

    .ct-hero__bar {
        width: 80px;
        height: 48px;
        margin-right: 20px;
    }

    .ct-split__form-side {
        padding: 40px var(--container-pad) 40px;
    }

    .ct-split::after {
        height: 280px;
        background-position: center 20%;
        display: none;
    }

    .ct-office {
        padding: 48px 0;
    }

    .ct-office__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ct-map__iframe {
        height: 300px;
    }
}

/* ── 480px small mobile ── */
@media (max-width: 480px) {
    .ct-hero__bar {
        width: 60px;
        height: 40px;
        margin-right: 16px;
    }

    .ct-form__row--2col {
        flex-direction: column;
    }

    .ct-split::after {
        display: none;
    }

    .ct-map__iframe {
        height: 240px;
    }
}

/* ── Apartment inquiry banner ─────────────────────────────── */
.ct-form__apt-banner {
    background: linear-gradient(135deg, rgba(196, 22, 28, 0.08), rgba(240, 81, 35, 0.08));
    border-left: 4px solid var(--c-primary-start, #C4161C);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-family: var(--font-ui, 'Poppins', sans-serif);
    font-size: 0.9rem;
    color: var(--c-text-dark, #242527);
    margin-bottom: 16px;
}

.ct-form__apt-banner strong {
    font-weight: 700;
    color: var(--c-primary-start, #C4161C);
}