/* ============================================
   ВСП — Контакты (contacts.css)
   ============================================ */

/* ========================
   БЛОК 1: ГЕРОЙ
   ======================== */
.ct-hero {
    padding: calc(var(--header-h) + 64px) 0 80px;
    background: var(--c-bg-alt);
    position: relative;
    overflow: hidden;
}

.ct-hero__bg-word {
    position: absolute;
    top: 50%;
    left: -40px;
    transform: translateY(-50%);
    font-family: var(--f-heading);
    font-size: clamp(160px, 22vw, 320px);
    font-weight: 900;
    color: var(--c-primary);
    opacity: 0.04;
    line-height: 1;
    letter-spacing: -0.04em;
    pointer-events: none;
    user-select: none;
}

.ct-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: clamp(40px, 6vw, 100px);
    align-items: center;
}

.ct-hero__title {
    font-family: var(--f-heading);
    font-size: clamp(48px, 7vw, 100px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin: 0 0 24px;
}

.ct-hero__title em {
    font-style: italic;
    font-weight: 800;
    opacity: 0.4;
}

.ct-hero__sub {
    font-size: clamp(15px, 1.2vw, 18px);
    color: var(--c-text-secondary);
    line-height: 1.6;
    margin: 0 0 28px;
    max-width: 340px;
    opacity: 0.78;
}

.ct-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ct-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--r-full);
    font-family: var(--f-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--c-text);
}

/* Карточки способов связи */
.ct-hero__cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ct-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 26px;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    text-decoration: none;
    color: var(--c-text);
    transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
    position: relative;
    overflow: hidden;
}

.ct-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    border-radius: 2px 0 0 2px;
    transition: width var(--t-fast);
}

.ct-card--phone::before   { background: var(--c-primary); }
.ct-card--telegram::before { background: #29A8E2; }
.ct-card--email::before    { background: #F7C948; }

.ct-card:hover {
    transform: translateX(6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
    border-color: transparent;
}

.ct-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--t-fast);
}

.ct-card:hover .ct-card__icon {
    transform: scale(1.1);
}

.ct-card--phone   .ct-card__icon { background: rgba(255,107,53,0.10); color: var(--c-primary); }
.ct-card--telegram .ct-card__icon { background: rgba(41,168,226,0.10); color: #29A8E2; }
.ct-card--email   .ct-card__icon { background: rgba(247,201,72,0.15); color: #B45309; }

.ct-card__icon svg { width: 26px; height: 26px; }

.ct-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ct-card__label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--c-text-secondary);
    opacity: 0.6;
}

.ct-card__value {
    font-family: var(--f-heading);
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 900;
    color: var(--c-text);
    line-height: 1.1;
}

.ct-card__hint {
    font-size: 13px;
    color: var(--c-text-secondary);
    opacity: 0.65;
}

.ct-card__arrow {
    font-size: 20px;
    color: var(--c-primary);
    font-weight: 700;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity var(--t-fast), transform var(--t-fast);
}

.ct-card:hover .ct-card__arrow {
    opacity: 1;
    transform: translateX(0);
}


/* ========================
   БЛОК 2: ФОРМА + ЧАТ
   ======================== */
.ct-form {
    padding: var(--section-py) 0;
    background: var(--c-text);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.ct-form::before {
    content: "";
    position: absolute;
    width: 600px; height: 600px;
    top: -200px; right: -200px;
    background: radial-gradient(circle, rgba(255,107,53,0.12), transparent 65%);
    pointer-events: none;
}

.ct-form__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
    position: relative;
    z-index: 1;
}

/* Чат-имитация */
.ct-chat {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--r-xl);
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.ct-chat__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
}

.ct-chat__avatar {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--c-gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.ct-chat__online {
    position: absolute;
    bottom: 2px; right: 2px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #34D399;
    border: 2px solid var(--c-text);
}

.ct-chat__name {
    font-family: var(--f-heading);
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    display: block;
    margin-bottom: 2px;
}

.ct-chat__status {
    font-size: 12px;
    color: #34D399;
    font-weight: 600;
}

.ct-chat__messages {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 260px;
}

.ct-msg {
    display: flex;
    flex-direction: column;
    max-width: 78%;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.ct-msg--visible {
    opacity: 1;
    transform: translateY(0);
}

.ct-msg--in { align-self: flex-start; }
.ct-msg--out { align-self: flex-end; }

.ct-msg p {
    margin: 0;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.ct-msg--in p {
    background: rgba(255,255,255,0.10);
    color: #fff;
    border-bottom-left-radius: 4px;
}

.ct-msg--out p {
    background: var(--c-primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.ct-msg__time {
    font-size: 11px;
    opacity: 0.45;
    margin-top: 4px;
    padding: 0 4px;
}

.ct-msg--out .ct-msg__time { text-align: right; }

/* Точки "печатает" */
.ct-chat__typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.10);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    width: fit-content;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ct-chat__typing--visible { opacity: 1; }

.ct-chat__typing span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    animation: ct-typing-dot 1.4s ease-in-out infinite;
}

.ct-chat__typing span:nth-child(2) { animation-delay: 0.2s; }
.ct-chat__typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes ct-typing-dot {
    0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
    40%           { transform: scale(1.0); opacity: 1; }
}

.ct-chat__stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.ct-chat__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 12px;
    border-right: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}

.ct-chat__stat:last-child { border-right: none; }

.ct-chat__stat strong {
    font-family: var(--f-heading);
    font-size: 20px;
    font-weight: 900;
    color: var(--c-primary);
    line-height: 1;
}

.ct-chat__stat span {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    line-height: 1.3;
}

/* Форма */
.ct-form__box {
    padding: 40px;
    background: #fff;
    border-radius: var(--r-xl);
    color: var(--c-text);
}

.ct-form__title {
    font-family: var(--f-heading);
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 900;
    margin: 0 0 8px;
}

.ct-form__desc {
    font-size: 14px;
    color: var(--c-text-secondary);
    opacity: 0.7;
    margin: 0 0 28px;
    line-height: 1.5;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form__label {
    display: block;
    font-family: var(--f-heading);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--c-text-secondary);
    margin-bottom: 8px;
    opacity: 0.7;
}

.form__select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}


/* ========================
   БЛОК 3: ИНФО + РЕКВИЗИТЫ
   ======================== */
.ct-info {
    padding: var(--section-py) 0;
    background: var(--c-bg);
}

.ct-info__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: clamp(40px, 5vw, 80px);
    align-items: end;
    margin-bottom: 56px;
}

.ct-info__title {
    font-family: var(--f-heading);
    font-size: clamp(38px, 5.5vw, 72px);
    font-weight: 900;
    line-height: 0.97;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
}

.ct-info__title em {
    font-style: italic;
    color: var(--c-primary);
    opacity: 0.8;
}

.ct-info__desc {
    font-size: 16px;
    color: var(--c-text-secondary);
    line-height: 1.65;
    max-width: 380px;
    opacity: 0.75;
    margin: 0;
}

.ct-info__nums {
    display: flex;
    gap: 40px;
    align-items: flex-end;
    justify-content: flex-end;
}

.ct-info__num {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    position: relative;
}

.ct-info__num::after {
    content: "";
    position: absolute;
    top: 0; right: -20px;
    width: 1px; height: 100%;
    background: var(--c-border);
}

.ct-info__num:last-child::after { display: none; }

.ct-info__num-val {
    font-family: var(--f-heading);
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 900;
    color: var(--c-text);
    line-height: 1;
    letter-spacing: -0.02em;
}

.ct-info__num-unit {
    font-family: var(--f-heading);
    font-size: 0.45em;
    font-weight: 900;
    color: var(--c-primary);
    margin-left: 4px;
    position: relative;
    top: -6px;
}

.ct-info__num-label {
    font-size: 12px;
    color: var(--c-text-secondary);
    opacity: 0.6;
    text-align: center;
    line-height: 1.3;
}

/* Сетка карточек */
.ct-info__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

.ct-info__card {
    background: var(--c-bg-alt);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.ct-info__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.07);
}

.ct-info__card--large {
    grid-column: span 1;
}

.ct-info__card--accent {
    background: var(--c-text);
    border-color: transparent;
    color: #fff;
}

.ct-info__card--accent h3 { color: #fff; }
.ct-info__card--accent p { color: rgba(255,255,255,0.65); }

.ct-info__card-icon {
    font-size: 32px;
    line-height: 1;
}

.ct-info__card h3 {
    font-family: var(--f-heading);
    font-size: 17px;
    font-weight: 900;
    margin: 0;
    line-height: 1.2;
}

.ct-info__card p {
    font-size: 14px;
    color: var(--c-text-secondary);
    line-height: 1.55;
    opacity: 0.78;
    margin: 0;
    flex: 1;
}

/* Карта-заглушка */
.ct-info__card-map {
    flex: 1;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-info__map-placeholder {
    width: 100%;
    height: 100px;
    background:
        radial-gradient(circle at 50% 50%, rgba(255,107,53,0.12) 0%, transparent 65%),
        var(--c-bg);
    border-radius: var(--r-lg);
    border: 1px dashed rgba(255,107,53,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-family: var(--f-heading);
    font-size: 48px;
    font-weight: 900;
    color: var(--c-primary);
    opacity: 0.15;
}

.ct-info__map-pin {
    position: absolute;
    font-size: 28px;
    opacity: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ct-pin-bounce 2s ease-in-out infinite;
}

.ct-info__map-pulse {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 50px; height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255,107,53,0.4);
    animation: ct-pin-pulse 2s ease-out infinite;
}

@keyframes ct-pin-bounce {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50%       { transform: translate(-50%, -50%) translateY(-6px); }
}

@keyframes ct-pin-pulse {
    0%   { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

/* Расписание */
.ct-info__schedule {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.ct-info__schedule li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    font-size: 13px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--c-border);
}

.ct-info__schedule li:last-child { border-bottom: none; padding-bottom: 0; }
.ct-info__schedule span { color: var(--c-text-secondary); opacity: 0.7; }
.ct-info__schedule strong { font-family: var(--f-heading); font-weight: 800; font-size: 13px; text-align: right; }

/* Реквизиты */
.ct-info__requisites {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.ct-info__requisites li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    font-size: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--c-border);
}

.ct-info__requisites li:last-child { border-bottom: none; padding-bottom: 0; }
.ct-info__requisites span { color: var(--c-text-secondary); opacity: 0.6; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.ct-info__requisites strong { font-family: var(--f-heading); font-weight: 800; font-size: 11px; text-align: right; word-break: break-all; }

.ct-info__dl {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--c-primary);
    text-decoration: none;
    margin-top: auto;
}

.ct-info__dl:hover { text-decoration: underline; }


/* ========================
   АДАПТИВ
   ======================== */
@media (max-width: 1100px) {
    .ct-info__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 960px) {
    .ct-hero__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .ct-form__inner {
        grid-template-columns: 1fr;
    }

    .ct-info__top {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .ct-info__nums {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .ct-hero__title { font-size: clamp(42px, 13vw, 64px); }

    .ct-form__box { padding: 24px 20px; }

    .form__row { grid-template-columns: 1fr; }

    .ct-info__grid {
        grid-template-columns: 1fr;
    }

    .ct-info__nums {
        gap: 24px;
    }

    .ct-chat__stat-row {
        grid-template-columns: 1fr;
    }

    .ct-chat__stat {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .ct-chat__stat:last-child { border-bottom: none; }
}

/* ========================
   БЛОК 3: ПРОЦЕСС ПОСЛЕ ЗАЯВКИ
   ======================== */
.ct-process {
    padding: var(--section-py) 0;
    background: var(--c-bg-alt);
    position: relative;
    overflow: hidden;
}

.ct-process__track {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-top: 56px;
}

.ct-process__step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.ct-process__num {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--c-gradient-1);
    color: #fff;
    font-family: var(--f-heading);
    font-size: 20px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px var(--c-primary-glow);
    flex-shrink: 0;
    margin-bottom: 24px;
}

.ct-process__step--accent .ct-process__num {
    background: #111;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.ct-process__body {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: 28px 24px 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: box-shadow var(--t-fast), border-color var(--t-fast);
}

.ct-process__step--accent .ct-process__body {
    background: #111;
    border-color: transparent;
    color: #fff;
}

.ct-process__step--accent .ct-process__desc {
    color: rgba(255,255,255,0.7);
}

.ct-process__body:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border-color: var(--c-border-hover);
}

.ct-process__icon {
    font-size: 36px;
    line-height: 1;
}

.ct-process__title {
    font-family: var(--f-heading);
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}

.ct-process__desc {
    font-size: 14px;
    color: var(--c-text-secondary);
    line-height: 1.65;
    margin: 0;
}

.ct-process__badge {
    display: inline-block;
    margin-top: 4px;
    padding: 7px 20px;
    background: rgba(255,107,53,0.1);
    border-radius: var(--r-full);
    font-family: var(--f-heading);
    font-size: 11px;
    font-weight: 800;
    color: var(--c-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ct-process__badge--accent {
    background: var(--c-gradient-1);
    color: #fff;
}

.ct-process__connector {
    flex-shrink: 0;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-primary);
    opacity: 0.5;
    padding-top: 32px;
}

.ct-process__connector svg {
    width: 40px;
    height: 16px;
}

/* ========================
   БЛОК 4: FAQ
   ======================== */
.ct-faq {
    padding: var(--section-py) 0;
    background: var(--c-bg);
}

.ct-faq__inner {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 80px;
    align-items: start;
}

.ct-faq__header {
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.ct-faq__sub {
    font-size: 16px;
    color: var(--c-text-secondary);
    line-height: 1.7;
    margin: 16px 0 32px;
}

.ct-faq__cta {
    display: inline-flex;
}

.ct-faq__list {
    border-top: 1px solid var(--c-border);
}

/* Адаптив */
@media (max-width: 900px) {
    .ct-process__track {
        flex-direction: column;
        gap: 0;
    }

    .ct-process__connector {
        transform: rotate(90deg);
        padding: 0;
        width: 100%;
        height: 40px;
    }

    .ct-process__step {
        width: 100%;
    }

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

    .ct-faq__header {
        position: static;
    }
}

@media (max-width: 600px) {
    .ct-process__body {
        padding: 20px 16px 18px;
    }
}
