/* ==========================================================================
   Служба контроля качества / Горячая линия ФЦБ (/claim/)
   ========================================================================== */

.hotline-page {
    --hl-green: #42ae45;
    --hl-green-dark: #348a38;
    --hl-green-light: #d2edd3;
    --hl-green-bg: #eaf6eb;
    --hl-dark: #282828;
    --hl-gray-text: #6b7280;
    --hl-gray-bg: #f7f7f7;
    --hl-border: #e5e7eb;
    --hl-red: #e74c3c;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--hl-dark);
    line-height: 1.4;
    margin-bottom: 60px;
    overflow-x: clip;
}

.hotline-page *,
.hotline-page *::before,
.hotline-page *::after {
    box-sizing: border-box;
}

/* ---------------- 1. Hero блок (в точности как на детальной странице услуг) ---------------- */
.hotline-hero {
    background-color: var(--hl-green-light);
    padding: 60px 40px 0 40px;
    border-radius: 24px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.hotline-hero__badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ffffff;
    color: #1e7e24;
    padding: 8px 22px;
    border-radius: 0 24px 0 20px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    z-index: 2;
}

.hotline-hero__content {
    flex: 1;
    min-width: 300px;
    padding-bottom: 60px;
}

.hotline-hero__title {
    font-size: 40px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.2;
    font-family: 'Geometria', sans-serif;
    color: var(--hl-dark);
}

.hotline-hero__desc {
    font-size: 18px;
    line-height: 1.55;
    color: #374151;
    margin: 0 0 28px 0;
}

.hotline-hero__action {
    display: inline-flex;
}

.hotline-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--hl-green);
    color: #ffffff !important;
    font-family: 'Geologica', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 32px;
    border-radius: 14px;
    text-decoration: none;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 14px rgba(66, 174, 69, 0.28);
    cursor: pointer;
    border: none;
}

.hotline-hero__btn:hover {
    background-color: var(--hl-green-dark);
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(52, 138, 56, 0.35);
}

.hotline-hero__photo {
    flex: 0 0 540px;
    align-self: flex-end;
}

.hotline-hero__photo-img {
    overflow: hidden;
}

.hotline-hero__photo-img img {
    width: 100%;
    height: auto;
    max-height: 540px;
    object-fit: cover;
    object-position: bottom center;
    display: block;
}

/* ==========================================================================
   2. БЛОК С ПРИВЯЗАННЫМ ПРОФИЛЕМ СОТРУДНИКА (ПО ОБРАЗЦУ СТРАНИЦЫ УСЛУГ)
   Точная стилистика .service-conditions / .service-section:
   - Фон карточки: серый (.hotline-section--gray, #f7f7f7)
   - Фото слева, текст справа
   - Вертикальная фотокарточка 340px x 510px с плавающей подписью снизу
   ========================================================================== */

.hotline-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 36px 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.hotline-section--gray {
    background: var(--hl-gray-bg);
}

.hotline-conditions {
    display: grid;
    /* Фото слева (340px), текст справа (1fr) */
    grid-template-columns: 340px 1fr;
    gap: 48px;
    align-items: center;
}

/* Фото сотрудника (один в один с .service-conditions__photo) */
.hotline-conditions__photo {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    width: 340px;
    height: 510px;
    background: #f4f6f7;
    justify-self: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.hotline-conditions__photo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    position: absolute;
    top: 0;
    left: 0;
}

.hotline-conditions__photo-caption {
    position: absolute;
    bottom: 20px;
    left: 16px;
    right: 16px;
    background: rgba(244, 246, 247, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(206, 206, 206, 0.3);
    border-radius: 8px;
    padding: 14px 18px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.hotline-conditions__photo-caption-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}

.hotline-conditions__photo-caption-name {
    font-weight: 600;
    font-size: 18px;
    color: #231f20;
    font-family: 'Geometria', sans-serif;
}

.hotline-conditions__photo-caption-text {
    margin: 0;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    color: #404040;
}

/* Правая колонка с текстом */
.hotline-conditions__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hotline-conditions__speech {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hotline-conditions__title {
    font-family: 'Geometria', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--hl-dark);
    margin: 0;
}

.hotline-conditions__quote {
    margin: 0;
    padding: 0;
    border: none;
    position: relative;
}

.hotline-conditions__quote-text {
    margin: 0;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.5;
    color: #231f20;
    padding-left: 24px;
    border-left: 4px solid var(--hl-green);
}

.hotline-conditions__subtext {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px 28px;
    border: 1px solid var(--hl-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.hotline-conditions__subtext p {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: #4b5563;
}

/* ---------------- 3. Форма жалобы ---------------- */
.hotline-form-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--hl-border);
    scroll-margin-top: 85px;
    margin-bottom: 24px;
}

.hotline-form-section__title {
    font-family: 'Geometria', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--hl-dark);
    margin: 0 0 10px 0;
}

.hotline-form-section__subtitle {
    font-size: 16px;
    color: var(--hl-gray-text);
    margin: 0 0 32px 0;
    line-height: 1.5;
}

.hotline-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.hotline-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.hotline-field__label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.hotline-field__req {
    color: var(--hl-red);
}

.hotline-input,
.hotline-select,
.hotline-textarea {
    width: 100%;
    background-color: #ffffff;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 13px 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--hl-dark);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.hotline-input:focus,
.hotline-select:focus,
.hotline-textarea:focus {
    border-color: var(--hl-green);
    box-shadow: 0 0 0 3px rgba(66, 174, 69, 0.15);
    background-color: #ffffff;
}

.hotline-input::placeholder,
.hotline-textarea::placeholder {
    color: #9ca3af;
}

.hotline-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hotline-textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.5;
}

.hotline-char-count {
    font-size: 12.5px;
    color: var(--hl-gray-text);
    text-align: right;
    margin-top: 4px;
}

.hotline-char-count.is-limit {
    color: var(--hl-red);
    font-weight: 600;
}

/* Branch autocomplete dropdown (styled after site city-selector) */
.branch-autocomplete {
    position: relative;
}

.branch-autocomplete__input {
    width: 100%;
}

.branch-autocomplete__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    z-index: 50;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
}

.branch-autocomplete__dropdown.is-open {
    display: block;
}

.branch-autocomplete__item {
    padding: 11px 16px;
    font-size: 14px;
    color: #1f1f1f;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.4;
    transition: background-color 0.15s, color 0.15s;
}

.branch-autocomplete__item:last-child {
    border-bottom: none;
}

.branch-autocomplete__item:hover,
.branch-autocomplete__item.is-highlighted {
    background-color: var(--hl-green-bg);
    color: var(--hl-green-dark);
}

.branch-autocomplete__empty {
    padding: 14px 16px;
    font-size: 14px;
    color: #9ca3af;
    text-align: center;
}

/* Файлы */
.hotline-file-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background-color: #f8fafc;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.hotline-file-dropzone:hover,
.hotline-file-dropzone.is-dragover {
    border-color: var(--hl-green);
    background-color: #f2faf3;
}

.hotline-file-dropzone__input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.hotline-file-dropzone__icon {
    margin-bottom: 8px;
    color: #64748b;
}

.hotline-file-dropzone__icon svg {
    width: 32px;
    height: 32px;
}

.hotline-file-dropzone__text {
    font-size: 14.5px;
    color: #334155;
    font-weight: 500;
    margin-bottom: 4px;
}

.hotline-file-dropzone__text strong {
    color: #1e7e24;
    text-decoration: underline;
}

.hotline-file-dropzone__hint {
    font-size: 12.5px;
    color: #94a3b8;
}

.hotline-file-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hotline-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13.5px;
    color: #334155;
}

.hotline-file-item__name {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hotline-file-item__del {
    color: #ef4444;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 16px;
    line-height: 1;
    padding: 0 4px;
}

/* 4 чекбокса адресации (в 2 столбца) */
.hotline-checkboxes-card {
    background-color: #f8fafc;
    border: 1px solid var(--hl-border);
    border-radius: 12px;
    padding: 24px;
}

.hotline-checkboxes-card--grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 28px;
}

.hotline-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.hotline-checkbox input[type="checkbox"] {
    width: 19px;
    height: 19px;
    border-radius: 4px;
    border: 1.5px solid #94a3b8;
    accent-color: var(--hl-green);
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}

.hotline-checkbox__label {
    font-size: 14.5px;
    color: #1f2937;
    line-height: 1.4;
    font-weight: 400; /* обычное начертание для всех */
}

/* Нижний ряд: Согласие слева и кнопка справа (в 2 столбца) */
.hotline-bottom-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    margin-top: 8px;
    padding-top: 12px;
}

.hotline-consent .hotline-checkbox__label {
    font-size: 12.5px;
    color: var(--hl-gray-text);
    line-height: 1.45;
}

.hotline-consent a {
    color: #16a34a;
    text-decoration: underline;
}

.hotline-consent a:hover {
    color: var(--hl-green-dark);
}

.hotline-submit-wrap {
    display: flex;
    justify-content: flex-end;
}

.hotline-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--hl-green);
    color: #ffffff !important;
    font-family: 'Geologica', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 15px 44px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: background-color 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 14px rgba(66, 174, 69, 0.25);
    white-space: nowrap;
}

.hotline-submit-btn:hover {
    background-color: var(--hl-green-dark);
    box-shadow: 0 6px 18px rgba(52, 138, 56, 0.32);
}

/* Уведомление об отправке */
.hotline-notice {
    display: none;
    padding: 16px 20px;
    background: #effaf0;
    border: 1px solid #86efac;
    border-radius: 12px;
    color: #166534;
    font-size: 15px;
    line-height: 1.5;
    margin-top: 16px;
}

.hotline-notice--error {
    background: #fef2f2;
    border-color: #f87171;
    color: #991b1b;
}

/* ---------------- 4. Блок "Что будет после отправки жалобы" ---------------- */
.hotline-steps-section {
    margin-top: 10px;
    margin-bottom: 36px;
}

.hotline-steps-section__title {
    font-family: 'Geometria', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--hl-dark);
    margin: 0 0 24px 0;
}

.hotline-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.hotline-step-card {
    background: #ffffff;
    border: 1px solid var(--hl-border);
    border-radius: 16px;
    padding: 26px 22px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.hotline-step-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.hotline-step-card__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--hl-green-bg);
    color: var(--hl-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotline-step-card__icon svg {
    width: 20px;
    height: 20px;
}

.hotline-step-card__num {
    font-family: 'Geometria', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 4px 9px;
    border-radius: 8px;
    letter-spacing: 0.05em;
}

.hotline-step-card__title {
    font-family: 'Geometria', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--hl-dark);
    margin: 0 0 10px 0;
    line-height: 1.35;
}

.hotline-step-card__text {
    font-size: 14.5px;
    line-height: 1.55;
    color: #4b5563;
    margin: 0;
}

/* ---------------- Ссылка "Что поможет при проверке?" ---------------- */
.hotline-tips-link {
    color: var(--hl-green);
    text-decoration: none;
    border-bottom: 1px dotted var(--hl-green);
    cursor: pointer;
    font-weight: 500;
    transition: color 0.15s ease, border-bottom-color 0.15s ease;
    background: none;
    padding: 0;
    display: inline;
}

.hotline-tips-link:hover,
.hotline-tips-link:focus {
    color: var(--hl-green-dark);
    border-bottom-color: var(--hl-green-dark);
    outline: none;
}

/* ---------------- 5. Модальное окно "Что поможет при проверке" ---------------- */
body.hotline-modal-open {
    overflow: hidden;
}

.hotline-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.hotline-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.hotline-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.hotline-modal__dialog {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    max-width: 540px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 32px 28px 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 1;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s ease;
}

.hotline-modal.is-open .hotline-modal__dialog {
    transform: translateY(0) scale(1);
}

.hotline-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: background 0.2s ease, color 0.2s ease;
    padding: 0;
}

.hotline-modal__close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.hotline-modal__title {
    font-family: 'Geometria', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--hl-dark);
    margin: 0 0 24px 0;
    padding-right: 36px;
    line-height: 1.3;
}

.hotline-tips-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hotline-tips-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hotline-tips-item:not(:last-child) {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 16px;
}

.hotline-tips-item__title {
    font-family: 'Geometria', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--hl-dark);
    line-height: 1.35;
}

.hotline-tips-item__text {
    font-size: 15px;
    line-height: 1.5;
    color: #4b5563;
    margin: 0;
}

/* ---------------- Адаптивность ---------------- */
@media (max-width: 1024px) {
    .hotline-hero {
        padding: 44px 32px 0 32px;
    }
    .hotline-hero__title {
        font-size: 34px;
    }
    .hotline-hero__photo {
        flex: 0 0 420px;
    }
    .hotline-conditions {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hotline-conditions__photo {
        margin: 0 auto;
    }
    .hotline-form-section {
        padding: 32px;
    }
    .hotline-steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .hotline-step-card {
        padding: 22px 18px;
    }
}

@media (max-width: 768px) {
    .hotline-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 36px 20px 0 20px;
        border-radius: 18px;
        margin-bottom: 20px;
        gap: 20px;
    }
    .hotline-hero__badge {
        position: static;
        display: inline-block;
        border-radius: 8px;
        font-size: 11px;
        padding: 6px 14px;
        margin-bottom: 8px;
    }
    .hotline-hero__content {
        padding-bottom: 0;
    }
    .hotline-hero__title {
        font-size: 28px;
        margin-bottom: 14px;
    }
    .hotline-hero__desc {
        font-size: 15.5px;
        margin-bottom: 22px;
    }
    .hotline-hero__btn {
        width: 100%;
    }
    .hotline-hero__photo {
        flex: 0 0 auto;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    .hotline-section {
        padding: 24px 18px;
        border-radius: 12px;
        margin-bottom: 20px;
    }
    .hotline-conditions {
        gap: 24px;
    }
    .hotline-conditions__title {
        font-size: 24px;
    }
    .hotline-conditions__photo {
        width: 100%;
        max-width: 340px;
        height: auto;
        min-height: 400px;
        max-height: 510px;
    }
    .hotline-conditions__photo-caption {
        bottom: 14px;
        left: 12px;
        right: 12px;
        padding: 12px 14px;
    }
    .hotline-conditions__photo-caption-name {
        font-size: 16px;
    }
    .hotline-conditions__photo-caption-text {
        font-size: 13px;
    }
    .hotline-conditions__quote-text {
        font-size: 18px;
        padding-left: 16px;
    }
    .hotline-conditions__subtext {
        padding: 18px 20px;
    }
    .hotline-conditions__subtext p {
        font-size: 14.5px;
    }

    .hotline-form-section {
        padding: 24px 18px;
        border-radius: 12px;
    }
    .hotline-form-section__title {
        font-size: 24px;
    }
    .hotline-form-section__subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }
    .hotline-grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Мобильный вид чекбоксов и подвала формы */
    .hotline-checkboxes-card--grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px 16px;
    }

    .hotline-bottom-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hotline-submit-wrap {
        width: 100%;
    }

    .hotline-submit-btn {
        width: 100%;
    }

    .hotline-steps-section__title {
        font-size: 24px;
        margin-bottom: 18px;
    }

    .hotline-steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hotline-modal {
        padding: 16px;
    }

    .hotline-modal__dialog {
        padding: 24px 20px 20px 20px;
        border-radius: 16px;
    }

    .hotline-modal__title {
        font-size: 20px;
        margin-bottom: 18px;
    }
}
