/* «Пришлите документы — врач оценит бесплатно» (partials/card/docs-review).
   Цвета и радиусы — как у карточек витрины (card.css): синий #033E8C,
   стеклянная карточка 20px, поля с голубой заливкой. Своё — только с
   префиксом dr-, чтобы не задеть чужие блоки. */

.dr { --dr-blue: #033E8C; --dr-blue2: #1D5FB5; --dr-ink: #1E1E1E; --dr-muted: #5A6478; --dr-line: #E3EAF5; --dr-field: #E9EEF6; --dr-green: #1B5E36; --dr-green-bg: #E4F6EA; }

/* Свои display у элементов не должны перебивать атрибут hidden. */
.dr [hidden] { display: none !important; }

.dr-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Плашка на странице */
.dr-teaser { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 20px 22px; border-radius: 20px; background: #EEF3FB; box-shadow: 0 6px 30px rgba(3, 62, 140, .06); }
.dr-teaser.is-sent { background: var(--dr-green-bg); }
/* Внутри карточки цен — продолжение строк «по запросу», без своей тени. */
.dr--inline { margin-top: 16px; }
.dr--inline .dr-teaser { box-shadow: none; border-radius: 16px; }
.dr-teaser__icon { width: 60px; height: 60px; border-radius: 16px; background: #fff; color: var(--dr-blue); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(3, 62, 140, .08); }
.dr-teaser.is-sent .dr-teaser__icon { color: var(--dr-green); }
.dr-teaser .dr-ico-ok, .dr-teaser.is-sent .dr-ico-doc { display: none; }
.dr-teaser.is-sent .dr-ico-ok { display: block; }
.dr-teaser__text { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dr-teaser__title { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 700; color: var(--dr-ink); }
.dr-teaser__sub { margin: 0; font-size: 14px; line-height: 1.5; color: #4A5468; }
.dr-ticks { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; font-weight: 600; color: var(--dr-blue); }
.dr-ticks li { display: flex; align-items: center; gap: 6px; }
.dr-teaser.is-resume .dr-ticks, .dr-teaser.is-sent .dr-ticks { display: none; }

/* Кнопки и поля */
.dr-btn { min-height: 48px; padding: 0 22px; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border: 0; text-decoration: none; }
.dr-btn--primary { color: #fff; background: linear-gradient(180deg, var(--dr-blue2) 0%, var(--dr-blue) 100%); box-shadow: 0 6px 18px rgba(3, 62, 140, .22); }
.dr-btn--primary[aria-disabled="true"] { background: #8FA6C6; box-shadow: none; }
.dr-btn--ghost { background: #fff; color: var(--dr-blue); border: 1px solid #C9D6EA; font-size: 14px; font-weight: 600; min-height: 44px; padding: 0 16px; }
.dr-teaser.is-sent .dr-teaser__btn { background: #fff; color: var(--dr-blue); border: 1px solid #C9D6EA; box-shadow: none; }
.dr-btn:focus-visible, .dr-pill:focus-visible, .dr-drop:focus-within, .dr-close:focus-visible, .dr-link-btn:focus-visible { outline: 3px solid #9DBBE6; outline-offset: 2px; }
.dr-grow { flex: 1; min-height: 52px; font-size: 16px; }
.dr-field { width: 100%; box-sizing: border-box; height: 48px; border: 1px solid transparent; border-radius: 12px; background: var(--dr-field); padding: 0 14px; font: inherit; font-size: 15px; color: var(--dr-ink); outline: none; }
.dr-field:focus { border-color: var(--dr-blue2); background: #fff; }
/* Телефон — та же разметка, что у форм сайта (phone-input + выбор страны
   с флагом из country-select.js), только в рамке полей этого окна. */
.dr .dr-phone { height: 48px; padding: 0 14px; border-radius: 12px; background: var(--dr-field); border: 1px solid transparent; gap: 10px; box-sizing: border-box; }
.dr .dr-phone:focus-within { border-color: var(--dr-blue2); background: #fff; }
.dr .dr-phone .ic-cc__btn { height: 100%; color: var(--dr-ink); }
.dr .dr-phone .phone-input__field { flex: 1; min-width: 0; height: 100%; font: inherit; font-size: 15px; color: var(--dr-ink); outline: none; background: transparent; }
/* Список стран открывается поверх окна (у окна z-index выше всей страницы). */
body .ic-cc__panel { z-index: 1000000001; }
.dr-area { height: auto; min-height: 64px; padding: 12px 14px; resize: vertical; }
.dr-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--dr-ink); }
.dr-muted { font-weight: 400; color: var(--dr-muted); }
.dr-note { font-size: 13px; color: var(--dr-muted); margin-top: 6px; }
.dr-row { display: flex; flex-wrap: wrap; gap: 8px; }
.dr-row > * { flex: 1 1 160px; }
.dr-fieldset { border: 0; margin: 0; padding: 0; }
.dr-fieldset legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; color: var(--dr-ink); }
.dr-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.dr-pill { min-height: 44px; padding: 0 16px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; background: #fff; color: var(--dr-blue); border: 1px solid #C9D6EA; cursor: pointer; }
.dr-pill[aria-pressed="true"] { background: var(--dr-blue); color: #fff; border-color: var(--dr-blue); }
.dr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dr-chips span { background: #fff; border: 1px solid var(--dr-line); color: var(--dr-blue); font-size: 13px; padding: 6px 10px; border-radius: 8px; }
.dr-link-btn { min-height: 44px; padding: 0 12px; border: 0; background: transparent; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; color: var(--dr-blue); cursor: pointer; }

/* Окно */
/* Выше всего на странице: у нижней полосы «Получить программу» z-index
   999999999, у меню разделов — 8990. Иначе они лежат поверх затемнения. */
.dr-overlay { font-family: 'Open Sans', system-ui, sans-serif; position: fixed; inset: 0; z-index: 1000000000; background: rgba(13, 27, 52, .48); display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px; box-sizing: border-box; }
.dr-overlay[hidden] { display: none; }
.dr-dialog { width: 100%; max-width: 620px; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); background: #fff; border-radius: 20px; box-shadow: 0 20px 60px rgba(13, 27, 52, .3); display: flex; flex-direction: column; color: var(--dr-ink); font-family: inherit; }
.dr-grip { display: none; }
.dr-head { padding: 20px 28px 16px; display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid #EEF2F8; flex: none; }
.dr-head__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dr-steplabel { font-size: 13px; font-weight: 600; color: var(--dr-muted); }
.dr-close { width: 44px; height: 44px; margin: -8px -8px -8px 0; border: 0; background: transparent; border-radius: 12px; color: var(--dr-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.dr-progress { display: flex; gap: 6px; }
.dr-progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--dr-line); }
.dr-progress span.is-on { background: var(--dr-blue); }
.dr-title { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 700; }
.dr-body { flex: 1; min-height: 0; overflow: auto; padding: 20px 28px; }
.dr-step { display: flex; flex-direction: column; gap: 16px; }
.dr-step > * { flex-shrink: 0; }
.dr-step[hidden] { display: none; }
.dr-intro { margin: 0; font-size: 15px; line-height: 1.55; color: #4A5468; }
.dr-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 2px dashed #9DBBE6; background: #F7F9FD; border-radius: 16px; padding: 24px 16px; text-align: center; cursor: pointer; position: relative; }
.dr-drop:hover, .dr-drop.is-over { background: #EEF3FB; }
.dr-drop__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--dr-field); color: var(--dr-blue); display: flex; align-items: center; justify-content: center; }
.dr-drop__text { font-weight: 600; font-size: 15px; }
.dr-drop__formats { font-size: 12px; color: var(--dr-muted); }
.dr-only-phone { display: none; }
.dr-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dr-files:empty { display: none; }
.dr-file { display: flex; align-items: center; gap: 12px; border: 1px solid var(--dr-line); border-radius: 12px; padding: 8px 6px 8px 12px; }
.dr-file__ext { width: 36px; height: 36px; border-radius: 10px; background: var(--dr-field); color: var(--dr-blue); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; text-transform: uppercase; }
.dr-file__main { flex: 1; min-width: 0; }
.dr-file__top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.dr-file__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-file__size { color: var(--dr-muted); flex: none; }
.dr-file__bar { margin-top: 6px; height: 6px; background: var(--dr-field); border-radius: 99px; overflow: hidden; }
.dr-file__bar i { display: block; height: 100%; width: 0; background: var(--dr-blue2); border-radius: 99px; transition: width .15s linear; }
.dr-file__state { margin-top: 2px; font-size: 13px; color: var(--dr-green); }
.dr-file.is-error .dr-file__state { color: #A32121; }
.dr-file__remove { width: 44px; height: 44px; flex: none; border: 0; background: transparent; border-radius: 10px; color: var(--dr-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.dr-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #4A5468; }
.dr-trust li { display: flex; gap: 8px; align-items: flex-start; }
.dr-trust svg { flex: none; margin-top: 1px; color: var(--dr-blue); }
.dr-summary { display: flex; align-items: center; gap: 12px; background: var(--dr-green-bg); color: var(--dr-green); border-radius: 12px; padding: 10px 6px 10px 14px; font-size: 14px; font-weight: 600; }
.dr-summary span { flex: 1; min-width: 0; }
.dr-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.dr-consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--dr-blue); flex: none; }
.dr-done-icon { width: 60px; height: 60px; border-radius: 50%; background: var(--dr-green-bg); color: var(--dr-green); display: flex; align-items: center; justify-content: center; }
.dr-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.dr-timeline li { display: flex; gap: 12px; }
.dr-timeline li > span { width: 28px; height: 28px; border-radius: 50%; background: #D5DFEE; color: var(--dr-blue); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.dr-timeline li:first-child > span { background: var(--dr-blue); color: #fff; }
.dr-timeline b { display: block; font-weight: 600; }
.dr-timeline small { font-size: 14px; color: var(--dr-muted); }
.dr-foot { flex: none; border-top: 1px solid #EEF2F8; padding: 16px 28px 20px; display: flex; flex-direction: column; gap: 8px; background: #fff; border-radius: 0 0 20px 20px; }
.dr-hint { font-size: 13px; color: var(--dr-muted); text-align: center; min-height: 18px; }
.dr-hint.is-error { color: #A32121; }
.dr-foot__row { display: flex; gap: 10px; }
.dr-foot__row [hidden] { display: none; }
html.dr-locked, html.dr-locked body { overflow: hidden; }

/* Планшет: кнопка плашки уходит под текст на всю ширину */
@media (max-width: 1023px) {
    .dr-teaser { grid-template-columns: auto minmax(0, 1fr); gap: 16px 18px; }
    .dr-teaser__btn { grid-column: 1 / -1; width: 100%; }
}

/* Телефон: компактная плашка, окно выезжает снизу */
@media (max-width: 599px) {
    .dr-teaser { grid-template-columns: auto minmax(0, 1fr); padding: 14px; gap: 12px; border-radius: 16px; }
    .dr-teaser__icon { width: 48px; height: 48px; border-radius: 12px; align-self: center; }
    .dr-teaser__icon svg { width: 26px; height: 26px; }
    .dr-teaser__title { font-size: 15px; }
    .dr-teaser__sub { grid-column: 1 / -1; font-size: 13px; }
    .dr-teaser__text { display: contents; }
    .dr-ticks { display: none; }
    .dr-overlay { align-items: flex-end; padding: 0; }
    .dr-dialog { max-width: none; height: 92vh; height: 92dvh; max-height: none; border-radius: 20px 20px 0 0; }
    .dr-grip { display: block; width: 44px; height: 5px; border-radius: 9px; background: #C9D6EA; margin: 8px auto 0; flex: none; }
    .dr-head { padding: 10px 16px 14px; }
    .dr-title { font-size: 20px; }
    .dr-body { padding: 16px; }
    .dr-foot { padding: 12px 16px 16px; border-radius: 0; }
    .dr-drop { padding: 18px 12px; }
    .dr-hide-phone { display: none; }
    .dr-only-phone { display: inline; }
}
