/* ============================================================
   page_dms_kids.css — Детский оздоровительный отдых через ДМС
   Подключать после custom.css сайта
   ============================================================ */

:root {
    --dms-accent:     #771469;
    --dms-accent-h:   #5e0f52;
    --dms-grey-bg:    #f7f7f7;
    --dms-border:     #e5e5e5;
    --dms-text:       #333;
    --dms-text-light: #666;
    --dms-green:      #2e7d32;
    --dms-red:        #c62828;
    --dms-radius:     4px;
}

/* ─── Вводный блок с фото ───────────────────────────────── */
.dms-intro {
    display: flex;
    align-items: center;
    gap: 40px;
}
.dms-intro__text {
    flex: 1 1 0;
}
.dms-intro__img {
    flex-shrink: 0;
    width: 380px;
}
.dms-intro__img img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

/* ─── Вводный абзац ─────────────────────────────────────── */
.dms-lead {
    font-size: 18px; font-weight: 600;
    color: var(--dms-text); line-height: 1.5; margin-bottom: 20px;
}

/* ─── Секции ────────────────────────────────────────────── */
.dms-section           { padding: 55px 0; }
.dms-section--grey     { background: var(--dms-grey-bg); padding: 55px 0; }
.dms-section h2,
.dms-section--grey h2  { margin-bottom: 10px; }

/* ─── Метрики (Trust Bar) ───────────────────────────────── */
.dms-metric__value {
    font-size: 36px; font-weight: 800;
    color: var(--dms-accent); line-height: 1;
}
.dms-metric__label {
    font-size: 13px; color: var(--dms-text-light);
    margin-top: 6px; line-height: 1.4;
}

/* ─── Карточки «Для кого» ───────────────────────────────── */
.dms-feature-item          { padding: 24px 20px; margin-bottom: 24px; }
.dms-feature-icon          { font-size: 28px; color: var(--dms-accent); margin-bottom: 12px; }
.dms-feature-item h3       { font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.dms-feature-item p        { font-size: 14px; color: var(--dms-text-light); margin: 0 0 8px; line-height: 1.5; }
.dms-feature-result        { font-size: 13px !important; font-weight: 700 !important; color: var(--dms-green) !important; }

/* ─── Бейдж ─────────────────────────────────────────────── */
.dms-badge {
    display: inline-block;
    background: var(--dms-accent); color: #fff;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    padding: 3px 10px; border-radius: 3px; margin-bottom: 10px;
}

/* ─── Таймлайн кейса ────────────────────────────────────── */
.dms-timeline            { margin: 16px 0; }
.dms-timeline-item       { margin-bottom: 20px; }
.dms-timeline-marker {
    display: inline-block;
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    padding: 3px 10px; border-radius: 3px; margin-bottom: 8px; color: #fff;
}
.dms-timeline-marker--problem  { background: var(--dms-red); }
.dms-timeline-marker--solution { background: #1565c0; }
.dms-timeline-marker--result   { background: var(--dms-green); }
.dms-timeline-item p           { margin: 0; color: var(--dms-text-light); line-height: 1.6; font-size: 14px; }

/* ─── Результаты кейса ──────────────────────────────────── */
.dms-case-results { display: flex; gap: 16px; flex-wrap: wrap; margin: 12px 0; }
.dms-case-result {
    flex: 1 1 110px;
    background: #fff; border: 1px solid var(--dms-border);
    border-top: 3px solid var(--dms-accent);
    border-radius: var(--dms-radius); padding: 12px 14px; text-align: center;
}
.dms-case-result__value { font-size: 22px; font-weight: 800; color: var(--dms-accent); line-height: 1.1; }
.dms-case-result__label { font-size: 11px; color: var(--dms-text-light); margin-top: 5px; line-height: 1.4; }

.dms-quote {
    border-left: 4px solid var(--dms-accent); padding: 14px 20px;
    margin: 20px 0 0; background: #fdf5fc; font-style: italic;
    border-radius: 0 4px 4px 0; line-height: 1.6; color: var(--dms-text);
}

/* ─── Сетка туров ───────────────────────────────────────── */
.tours-grid      { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 30px; }
.tours-grid-item { flex: 1 1 280px; min-width: 260px; max-width: 380px; }

.dms-img-placeholder {
    width: 100%; height: 200px; background: #e8e0e7;
    display: flex; align-items: center; justify-content: center;
    color: var(--dms-accent); font-size: 13px; font-weight: 600;
    text-align: center; padding: 10px; box-sizing: border-box;
}
.dms-img-placeholder--tall { height: 250px; width: 100%; }

/* ─── Безопасность ──────────────────────────────────────── */
.dms-safety-item   { padding: 24px 10px; text-align: center; margin-bottom: 24px; }
.dms-icon-circle {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--dms-accent); color: #fff;
    font-size: 22px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.dms-safety-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.dms-safety-item p  { font-size: 14px; color: var(--dms-text-light); line-height: 1.5; margin: 0; }

/* ─── FAQ / Возражения ──────────────────────────────────── */
.dms-faq            { margin-top: 30px; }
.dms-faq-item       { border-bottom: 1px solid var(--dms-border); }
.dms-faq-item:first-child { border-top: 1px solid var(--dms-border); }
.dms-faq-question {
    padding: 18px 44px 18px 0; font-size: 15px; font-weight: 600;
    cursor: pointer; position: relative; color: var(--dms-text);
    user-select: none; line-height: 1.4;
}
.dms-faq-question::after {
    content: '+'; position: absolute; right: 0; top: 50%;
    transform: translateY(-50%); font-size: 24px; font-weight: 300;
    color: var(--dms-accent); line-height: 1;
}
.dms-faq-item.is-open .dms-faq-question::after { content: '−'; }
.dms-faq-question:hover         { color: var(--dms-accent); }
.dms-faq-answer {
    display: none; padding: 0 44px 20px 0;
    color: var(--dms-text-light); line-height: 1.6;
}
.dms-faq-answer p               { margin: 0; }
.dms-faq-item.is-open .dms-faq-answer { display: block; }

.dms-faq-icon        { font-size: 13px; margin-right: 6px; }
.dms-faq-icon--no    { color: var(--dms-red); }
.dms-faq-icon--yes   { color: var(--dms-green); }

/* ─── Сравнение ─────────────────────────────────────────── */
.dms-comparison { display: flex; gap: 0; margin-top: 30px; border: 1px solid var(--dms-border); border-radius: var(--dms-radius); overflow: hidden; }
.dms-comparison__col { flex: 1; }
.dms-comparison__col--no  { background: #fafafa; }
.dms-comparison__col--yes { background: #f0fdf4; }
.dms-comparison__head {
    padding: 14px 20px; font-size: 14px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 2px solid var(--dms-border);
}
.dms-comparison__col--no  .dms-comparison__head { color: var(--dms-red); border-color: var(--dms-red); }
.dms-comparison__col--yes .dms-comparison__head { color: var(--dms-green); border-color: var(--dms-green); }
.dms-comparison__list { list-style: none; margin: 0; padding: 0; }
.dms-comparison__list li {
    padding: 12px 20px; font-size: 14px; line-height: 1.5;
    color: var(--dms-text-light); border-bottom: 1px solid var(--dms-border);
}
.dms-comparison__list li:last-child { border-bottom: none; }
.dms-cmp-icon       { margin-right: 8px; font-size: 13px; font-weight: 700; }
.dms-cmp-icon--no   { color: var(--dms-red); }
.dms-cmp-icon--yes  { color: var(--dms-green); }

/* ─── Чеклист в CTA ─────────────────────────────────────── */
.dms-checklist { list-style: none; margin: 16px 0; padding: 0; }
.dms-checklist li {
    padding: 6px 0 6px 24px; position: relative;
    font-size: 14px; color: var(--dms-text-light);
}
.dms-checklist li::before {
    content: '✓'; position: absolute; left: 0;
    color: var(--dms-green); font-weight: 700;
}

/* ─── CTA контакты ──────────────────────────────────────── */
.dms-cta-contacts { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--dms-border); font-size: 14px; color: var(--dms-text-light); }
.dms-cta-contacts p { margin: 4px 0; }
.dms-cta-contacts a { color: var(--dms-accent); }

/* ─── Адаптив ───────────────────────────────────────────── */
@media (max-width: 991px) {
    .dms-section, .dms-section--grey { padding: 40px 0; }
    .tours-grid-item { flex: 1 1 45%; }
    .dms-comparison { flex-direction: column; }
    .dms-intro__img { width: 280px; }
}
@media (max-width: 767px) {
    .dms-intro { flex-direction: column !important; }
    .dms-intro__img { width: 100% !important; flex-shrink: unset !important; }
    .dms-section, .dms-section--grey { padding: 30px 0; }
    .dms-metric__value { font-size: 28px; }
    .tours-grid-item { flex: 1 1 100%; max-width: 100%; }
    .dms-case-results { flex-direction: column; }
    .dms-case-result { flex: unset; }
    .dms-section--grey .item.clearfix > .image,
    #cta .item.clearfix > .image {
        float: none !important; width: 100% !important; margin-right: 0 !important; margin-bottom: 20px;
    }
    .dms-img-placeholder--tall { height: 180px; }
    .dms-safety-item { text-align: left; display: flex; gap: 16px; align-items: flex-start; }
    .dms-icon-circle { flex-shrink: 0; margin: 0; }
}

/* ─── Обёртка трека (обрезает контент, но не кнопки) ────── */
.dms-slider-viewport {
    overflow: hidden;
    width: 100%;
}

/* ─── Слайдер (общий) ───────────────────────────────────── */
.dms-camps-slider,
.dms-reviews-slider {
    position: relative;
    overflow: visible;
    padding: 0 52px 40px;
    box-sizing: border-box;
}
/* Обрезаем только трек, но не кнопки */
.dms-camps-track,
.dms-reviews-track {
    /* overflow через .dms-slider-viewport */
}
.dms-camps-track,
.dms-reviews-track {
    display: flex;
    transition: transform 0.4s ease;
}

/* ─── Кнопки слайдера ───────────────────────────────────── */
.dms-slider-btn {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #fff;
    color: var(--dms-accent);
    border: 1px solid var(--dms-border);
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: opacity .2s, background .2s, color .2s;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.dms-slider-btn:hover { background: var(--dms-grey-bg); color: var(--dms-accent-h); }
.dms-slider-btn--prev { left: 0; }
.dms-slider-btn--next { right: 0; }

/* ─── Dots ──────────────────────────────────────────────── */
.dms-slider-dots {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    display: flex; justify-content: center; gap: 8px;
}
.dms-slider-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--dms-border);
    cursor: pointer;
    transition: background .2s;
}
.dms-slider-dot.is-active { background: var(--dms-accent); }

/* ─── Карточка лагеря ───────────────────────────────────── */
.dms-camp-card {
    box-sizing: border-box;
    padding: 0 12px;
}
.dms-camp-img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 6px 6px 0 0;
    height: 220px;
}
.dms-camp-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.dms-camp-badge {
    position: absolute;
    top: 10px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    padding: 3px 9px; border-radius: 3px; color: #fff;
}
.dms-camp-badge--sea      { background: #0891b2; left: 10px; }
.dms-camp-badge--mountain { background: #2e7d32; left: 10px; }
.dms-camp-badge--regional { background: #e65100; left: 10px; }
.dms-camp-badge--lang     { background: #6a1b9a; left: 10px; }
.dms-camp-badge--age      { background: rgba(0,0,0,.45); right: 10px; }

.dms-camp-body {
    border: 1px solid var(--dms-border);
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 16px;
    background: #fff;
}
.dms-camp-title    { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.dms-camp-location { font-size: 13px; color: var(--dms-text-light); margin: 0 0 8px; }
.dms-camp-desc     { font-size: 13px; color: var(--dms-text-light); line-height: 1.5; margin: 0 0 12px; }
.dms-camp-price    { font-size: 16px; font-weight: 800; color: var(--dms-accent); margin-bottom: 12px; }
.dms-camp-price span { font-size: 13px; font-weight: 400; color: var(--dms-text-light); }
.dms-camp-btn      { font-size: 13px !important; padding: 6px 16px !important; }

/* ─── Карточка отзыва ───────────────────────────────────── */
.dms-review-card {
    box-sizing: border-box;
    padding: 0 12px;
}
.dms-review-inner {
    border: 1px solid var(--dms-border);
    border-radius: 6px;
    background: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}
.dms-review-header {
    border-bottom: 1px solid var(--dms-border);
    padding-bottom: 12px;
    margin-bottom: 14px;
}
.dms-review-camp   { font-size: 12px; font-weight: 700; color: var(--dms-accent); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.dms-review-author { font-size: 14px; font-weight: 700; color: var(--dms-text); margin: 0; }
.dms-review-text   {
    font-size: 14px; color: var(--dms-text-light); line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin-bottom: 12px;
}
.dms-review-more {
    font-size: 13px; color: var(--dms-accent);
    background: none; border: none; padding: 0;
    cursor: pointer; text-decoration: underline;
    align-self: flex-start;
    margin-top: auto;
}
.dms-review-more:hover { color: var(--dms-accent-h); }

/* ─── Модальное окно ────────────────────────────────────── */
.dms-modal {
    display: none;
    position: fixed; inset: 0; z-index: 9999;
    align-items: center; justify-content: center;
}
.dms-modal.is-open { display: flex; }
.dms-modal__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.5);
}
.dms-modal__box {
    position: relative; z-index: 1;
    background: #fff; border-radius: 8px;
    padding: 32px; max-width: 600px; width: 90%;
    max-height: 80vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.dms-modal__close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: none;
    font-size: 20px; cursor: pointer; color: var(--dms-text-light);
}
.dms-modal__close:hover { color: var(--dms-text); }
