﻿@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#24352f;--muted:#65746d;--green:#527b64;--pale:#edf4ed;--cream:#fbf8f1;--line:#e2e9e1;--coral:#e7a48e}*{box-sizing:border-box}body{margin:0;background:#fffdf9;color:var(--ink);font-family:Rubik,system-ui,sans-serif;line-height:1.6}.top{display:flex;align-items:center;justify-content:space-between;padding:18px max(5vw,22px);border-bottom:1px solid var(--line);background:#fffdf9}.brand{font-weight:800;text-decoration:none;color:var(--ink);font-size:18px;display:inline-flex;align-items:baseline;gap:7px} .brand small.brand-note{font-size:11px;font-weight:400;color:var(--muted)}.top nav{display:flex;gap:20px;align-items:center}.top a,main a,footer a{color:var(--green);text-decoration:none}.top nav a{font-size:14px;font-weight:700}.navcta{padding:10px 15px;border-radius:12px;background:var(--pale)}.linkbtn{background:none;border:0;color:var(--green);font:inherit;cursor:pointer}.inline{display:inline}.hero{padding:70px max(7vw,24px) 64px;display:grid;grid-template-columns:1.2fr .8fr;gap:45px;align-items:start;background:linear-gradient(120deg,#f5f7ee,#fffaf1)}.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.7px;color:var(--green)}h1{font-size:clamp(27px,3vw,38px);line-height:1.13;letter-spacing:-1.8px;margin:12px 0 20px}h1 span{color:var(--green)}.lead{font-size:18px;color:var(--muted);max-width:620px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}.button{display:inline-block;border:0;border-radius:12px;background:var(--green);color:white!important;padding:12px 19px;font:inherit;font-size:14px;font-weight:800;text-align:center;cursor:pointer;text-decoration:none}.button:hover{filter:brightness(.96)}.secondary{background:var(--pale);color:var(--green)!important}.full{width:100%;margin:7px 0}.small{padding:8px 13px;font-size:12px}.hero-art{min-height:300px;position:relative;border-radius:32px;background:#e5eddf;display:flex;align-items:center;justify-content:center;overflow:hidden}.note{position:absolute;bottom:0;left:22px;right:22px;background:#fffdf5;padding:10px 17px;border-radius:15px;text-align:center;font-size:14px;font-weight:700}.softbox{background:var(--cream);padding:24px;border-radius:20px}.monthcard p,.packagecard p{color:var(--muted);font-size:14px}.disclaimer{background:#f7f4eb;border-radius:14px;padding:16px 20px;color:#6d746d;font-size:12px;margin:24px 0}main{max-width:1120px;margin:0 auto;padding:28px 24px 60px;min-height:65vh}.pagehead{margin:12px 0 28px}.pagehead h1{font-size:38px}.pagehead p{color:var(--muted)}.monthgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.monthcard{position:relative;display:block;background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;color:var(--ink)!important;transition:.15s}.monthcard:hover{border-color:#a9c3ad;transform:translateY(-2px)}.monthcard.active{background:var(--pale);border-color:#bdd1bf}.monthnum{font-size:12px;color:var(--green);font-weight:800}.monthcard h3{margin:5px 0}.monthcard p{margin:0}.arrow{position:absolute;right:17px;top:17px;color:var(--green)}.softbox{margin:28px 0}.twocol{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(250px,.7fr);gap:22px;align-items:start}.contentcard,.sidecard,.formcard,.skillcard,.packagecard{border:1px solid var(--line);border-radius:20px;background:#fff;padding:24px}.sidecard{background:var(--cream);position:sticky;top:15px}.textsection{padding:10px 0 18px;border-bottom:1px solid var(--line);white-space:normal}.textsection:last-of-type{border:0}.textsection div{overflow-wrap:break-word;hyphens:auto}.sidecard a:not(.button){display:inline-block;margin:9px 0}.sidecard hr{border:0;border-top:1px solid var(--line);margin:20px 0}.formcard{max-width:560px;margin:20px auto}.formcard.wide{max-width:760px}.formcard label{display:block;margin:18px 0;font-weight:700;font-size:14px}.formcard input,.formcard textarea,.formcard select,.skillcard input[name=note]{display:block;width:100%;padding:12px;border:1px solid #d5dfd5;border-radius:10px;margin-top:7px;font:inherit}.formcard input[type=checkbox]{display:inline;width:auto}.formcard ul.errorlist{color:#a63d30}.formcard p{color:var(--muted)}.diarylist{display:grid;gap:15px}.skillcard h3{margin-top:0;font-size:17px}.statusgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:16px 0}.status{position:relative}.status input{position:absolute;opacity:0}.status span{display:block;border:1px solid var(--line);border-radius:10px;padding:9px 7px;font-size:12px;text-align:center;height:100%;cursor:pointer}.status input:checked+span{border-color:var(--green);background:var(--pale);font-weight:800}.skillcard .button{margin-top:12px}.recordlist{display:grid;gap:10px}.packagegrid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.packagecard{padding:26px}.tag{font-size:10px;letter-spacing:1px;color:var(--green);font-weight:800}.packagecard h2{margin-bottom:8px}.price{font-weight:800;color:var(--ink)!important}.muted{color:var(--muted);font-size:13px;margin-top:20px}.success{padding:12px;background:var(--pale);border-radius:10px}.messages{background:#f3f6ed;padding:8px 16px;border-radius:12px;margin-bottom:20px}.messages p{margin:4px 0}footer{border-top:1px solid var(--line);padding:22px 5vw;display:flex;justify-content:space-between;gap:15px;color:var(--muted);font-size:12px}footer p{margin:0}@media(max-width:750px){.top{align-items:flex-start;gap:12px}.top nav{gap:10px;flex-wrap:wrap;justify-content:flex-end}.hero{grid-template-columns:1fr;padding-top:42px}.hero-art{min-height:230px}.monthgrid{grid-template-columns:repeat(2,1fr)}.twocol{grid-template-columns:1fr}.sidecard{position:static}.statusgrid{grid-template-columns:repeat(2,1fr)}.packagegrid{grid-template-columns:1fr}.record{align-items:flex-start;flex-direction:column}main{padding:20px 15px 40px}footer{flex-direction:column}}
/* Цвета сохранённых отметок в дневнике */
.skillcard.s-green {
    background: #edf7ed;
    border: 2px solid #8fbd91;
}

.skillcard.s-yellow {
    background: #fff8df;
    border: 2px solid #e5cb72;
}

.skillcard.s-white {
    background: #f3f4f4;
    border: 2px solid #c9cece;
}

.skillcard.s-red {
    background: #fff0ef;
    border: 2px solid #dfa09b;
}

/* Карточки вопросов и ответов */
.question-card {
    background: #ffffff;
    border: 1px solid #eadfe8;
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
}

.question-card > p:first-child {
    color: #79627a;
    font-weight: 600;
}

.answer-box {
    background: #f5eef7;
    border-radius: 14px;
    padding: 18px;
    margin-top: 18px;
}

.answer-box h3 {
    color: #76577c;
    margin-top: 0;
}

/* Переписка */

/* Переписка как в мессенджере */
.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.message-bubble {
    max-width: 85%;
    width: fit-content;
    padding: 14px 18px;
    border-radius: 18px;
    margin: 6px 0;
    line-height: 1.6;
    overflow-wrap: break-word; hyphens: auto;
}

/* Специалист справа */
.message-specialist {
    background: #f0e7f7;
    margin-left: auto;
    margin-right: 0;
    border-bottom-right-radius: 5px;
}

/* Родитель слева */
.message-parent {
    background: #e6f2e5;
    margin-right: auto;
    margin-left: 0;
    border-bottom-left-radius: 5px;
}
.message-bubble p {
    margin: 5px 0;
}

.message-bubble small {
    display: block;
    color: #8a8290;
    font-size: 11px;
    margin-top: 8px;
}

/* Поле ответа */
.question-reply textarea {
    display: block !important;
    width: 100% !important;
    min-height: 180px !important;
    padding: 16px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
}

.question-reply input[type="file"] {
    display: block !important;
    width: 100% !important;
    font-size: 12px !important;
    padding: 6px !important;
    margin: 10px 0 18px !important;
    box-sizing: border-box !important;
}

.question-reply label {
    display: block !important;
    font-size: 13px !important;
    margin-top: 12px !important;
}

/* Область переписки */
.chat-messages {
    background: #fcf9fc;
    border: 1px solid #eee5ef;
    border-radius: 18px;
    padding: 18px;
    margin: 15px 0;
}

/* Сообщения */
.message-bubble {
    max-width: 80%;
    width: fit-content;
    padding: 13px 17px;
    border-radius: 18px;
    margin: 12px 0;
    line-height: 1.5;
    overflow-wrap: break-word; hyphens: auto;
    box-shadow: 0 2px 5px rgba(80, 50, 80, 0.05);
}

/* Специалист слева */
.message-specialist {
    background: #f0e7f7;
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

/* Родитель справа */
.message-parent {
    background: #e6f2e5;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

/* Время сообщений */
.message-bubble small {
    display: block;
    color: #8a8290;
    font-size: 11px;
    margin-top: 8px;
    text-align: right;
}

/* Принудительно меняем стороны сообщений */
.chat-messages .message-parent {
    margin-left: 0 !important;
    margin-right: auto !important;
    align-self: flex-start !important;
}

.chat-messages .message-specialist {
    margin-left: auto !important;
    margin-right: 0 !important;
    align-self: flex-end !important;
}
/* Форма ответа родителя */
.question-reply {
    background: #e6f2e5 !important;
    border: 1px solid #d5e8d2;
    border-radius: 18px;
    padding: 20px;
    margin: 18px 0;
}

.question-reply h3 {
    color: #557653;
}

.question-reply textarea {
    background: #ffffff !important;
    border: 1px solid #d5e8d2;
}

.question-reply input[type="file"] {
    background: transparent;
}

.question-reply button {
    margin-top: 12px;
}

/* Информация о времени работы чата */
.chat-info {
    background: #f2eafa;
    border: 1px solid #e5d8f0;
    border-radius: 14px;
    padding: 16px 20px;
    margin: 16px 0 22px;
    color: #665477;
    line-height: 1.6;
}

.chat-info strong {
    display: block;
    margin-bottom: 6px;
    color: #765b91;
    font-size: 16px;
}

.chat-info p {
    margin: 0;
    font-size: 14px;
}

/* Плавающая кнопка чата поддержки */
.support-button {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 1000;
    display: inline-block;
    padding: 15px 22px;
    background: #3b8d70;
    color: white !important;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.support-button:hover {
    background: #2d7058;
}

/* Окно чата поддержки */
.support-window {
    display: none;
    position: fixed;
    right: 25px;
    bottom: 90px;
    width: 360px;
    height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    z-index: 999;
    overflow: hidden;
    flex-direction: column;
}

.support-window.open {
    display: flex;
}

/* Верхняя панель чата */
.support-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #3b8d70;
    color: white;
    font-weight: bold;
}

/* Кнопка закрытия */
.support-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    padding: 0 5px;
}

.support-close:hover {
    color: #e0e0e0;
}

/* Область чата */
.support-window iframe {
    width: 100%;
    flex: 1;
    border: none;
}

/* Удобное отображение на телефоне */
@media (max-width: 480px) {
    .support-window {
        right: 10px;
        left: 10px;
        bottom: 85px;
        width: auto;
        height: 70vh;
    }
}

/* Специальные наблюдения: нейтральное оформление */
.skillcard.special-observation,
.skillcard.special-observation.s-green,
.skillcard.special-observation.s-yellow,
.skillcard.special-observation.s-white,
.skillcard.special-observation.s-red {
    background: #f3f4f2;
    border-color: #d8ded8;
}

/* Нейтральное выделение выбранного ответа */
.skillcard.special-observation .status input:checked + span {
    background: #e9ede9;
    border-color: #9ba69e;
    color: var(--ink);
}
/* ==== Вынесено из home.html: токены и карточки ==== */
:root{--heading:#526451;--accent-soft:#7B8C78;--body:#514D47;--lead:#716B63;--card-bg:#FAF8F4;--card-line:#D9DED4;--card-pro-bg:#F0F1E9}

.c-heading{color:var(--heading)}
.c-accent{color:var(--accent-soft)}
.c-body{color:var(--body)}
.lead-soft{color:var(--lead)}


.card-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:28px 0}
.card{background:var(--card-bg);border:1px solid var(--card-line);border-radius:14px;padding:24px}
.card--pro{background:var(--card-pro-bg)}
.card--narrow{max-width:800px;margin:32px auto 0}
.card p{color:var(--body)}
.card p:first-child{margin-top:0}
.card h2{color:var(--heading)}
.card-note{margin-bottom:0}

@media (max-width:750px){
.card-grid-2{grid-template-columns:1fr}
}

/* ==== Единая версия hero-иллюстрации (замена трёх конфликтных блоков) ==== */
.hero-art{width:100%;min-width:0;height:480px;min-height:480px;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;background:#edf4e9;border-radius:28px;box-sizing:border-box;margin-top:105px}
.hero-art img.hero-baby{width:100%;max-width:none;height:100%;min-height:0;object-fit:cover;object-position:center;display:block;margin:0 auto}

@media (max-width:750px){
.hero-art{height:360px;min-height:360px}
.hero-art img.hero-baby{height:250px}
}


/* ==== Перенесено из pro_summary.html ({% endblock %} стили) ==== */

.pro-report { max-width: 1080px; margin: 0 auto; }
.pro-hero { background: linear-gradient(135deg, #edf4ee, #f8faf7); border: 1px solid #dce8dd; border-radius: 18px; padding: 24px; margin-bottom: 18px; }
.pro-hero h1 { margin: 8px 0; }
.pro-eyebrow { color: #426a50; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pro-muted { color: #66736a; font-size: .94rem; }
.pro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.pro-metric { background: #fff; border: 1px solid #e1e8e1; border-radius: 14px; padding: 15px; }
.pro-metric strong { display: block; font-size: 1.7rem; color: #294c38; margin-bottom: 3px; }
.pro-metric span { color: #657168; font-size: .88rem; }

/* Кнопка входа/выхода: только на телефоне (на компе есть «Выйти» в шапке) */
.m-auth { display: none; }
.pwa-tip { display: none; }

/* ...поэтому текстовый бренд показываем только вне шапки телефона */
@media (min-width: 651px) {
    .brand-text, .brand-note { display: inline; }
}
@media (max-width: 650px) {
    .brand-text, .brand-note { display: none; }
    .brand-logo { display: block; }
}

/* Раздел «Вопросы к врачу»: каждая отметка — в красном квадратике,
   как красная карточка дневника (фон + рамка 2px) */
.pro-doctor-notes .pro-notes{background:#fff0ef;border:2px solid #dfa09b;border-radius:14px;padding:13px 15px;margin:11px 0}
.pro-doctor-notes .pro-notes p{margin:6px 0 0}
.pro-doctor-notes .pro-notes strong{color:#8c4a3a}

/* Шпаргалка «как читать сводку» — свёрнутая строка-лоадер */
.pro-loader{background:var(--cream);border:1px solid var(--line);border-radius:14px;padding:12px 16px;margin:14px 0;font-size:15px}
.pro-loader summary{cursor:pointer;font-weight:600;color:var(--green)}
.pro-loader ul{margin:10px 0 4px;padding-left:18px}
.pro-loader li{margin:5px 0}

/* Логотип шапки: на компе — текст, на телефоне — картинка */
.brand{display:inline-flex;align-items:baseline;text-decoration:none;color:var(--ink);font-weight:800;font-size:18px;gap:7px}
.brand-logo{display:none;height:44px;width:auto;border-radius:12px}
.brand-note{font-size:11px;font-weight:400;color:var(--muted)}

/* Главная на телефоне: шапка-минимум, кнопки под описанием, картинка наверх */
@media (max-width: 650px) {
    .nav-mobile-hide{display:none}
    .hero{grid-template-columns:1fr}
    .hero-art{order:-1;height:auto;min-height:0;width:auto;max-width:100%;margin:0 auto 10px;padding:6px;border-radius:12px}
    .hero-art img.hero-baby{width:auto;height:auto;max-width:100%;max-height:210px;object-fit:contain}
    /* фото шапок всех страниц — как на главной: целиком, до 210px */
    .actions{margin-top:16px}
}

/* Расширенная сводка: компактный вид на телефоне */
@media (max-width: 650px) {
    .pro-hero { padding: 14px; border-radius: 14px; }
    .pro-hero-layout { grid-template-columns: 1fr; gap: 10px; }
    .pro-hero-image { display: none; }
    .pro-hero h1 { font-size: 1.45rem; }
    .pro-card { padding: 13px; margin: 11px 0; border-radius: 13px; }
    .pro-card h2 { font-size: 1.22rem; margin: 8px 0 10px; }
    .pro-metric, .pro-status, .pro-month, .pro-detail, .pro-focus-card, .pro-home-card { padding: 10px; }
    .pro-recommendation { padding: 11px; margin: 9px 0; }
    .pro-attention-card { padding: 12px; margin: 9px 0; }
    .pro-detail-grid, .pro-focus-grid, .pro-home-grid, .pro-status-grid, .pro-month-grid { gap: 7px; }
    .pro-detail-grid { grid-template-columns: 1fr; }
    .pro-final-result { padding: 15px; margin-top: 16px; }
    .pro-pdf-action { margin: 12px 0 6px; }
    .pro-loader { padding: 10px 13px; margin: 10px 0; }
    .pro-section-icon { width: 30px; height: 30px; flex: 0 0 30px; font-size: 1rem; }
    .pro-notes { padding: 6px 10px; margin: 7px 0; }
}

.pro-card { background: #fff; border: 1px solid #e2e8e2; border-radius: 16px; padding: 20px; margin: 16px 0; }
.pro-card h2 { margin-top: 0; }
.pro-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.pro-status { border: 1px solid #e3e8e3; border-radius: 12px; padding: 14px; background: #fbfcfb; }
.pro-status strong { display: block; font-size: 1.55rem; margin: 4px 0; }
.pro-status .bar { height: 8px; border-radius: 20px; background: #edf0ed; overflow: hidden; margin: 9px 0; }
.pro-status .bar span { display: block; height: 100%; border-radius: inherit; }
.tone-green .bar span { background: #4d9566; }
.tone-yellow .bar span { background: #d4aa43; }
.tone-white .bar span { background: #aab2ad; }
.tone-red .bar span { background: #c76e6e; }
.tone-muted .bar span { background: #8c9690; }
.pro-status ul, .pro-list { margin: 8px 0 0; padding-left: 19px; }
.pro-status li, .pro-list li { margin: 4px 0; }
.pro-callout { padding: 13px 15px; border-left: 4px solid #6f9278; background: #f4f8f4; border-radius: 8px; margin: 10px 0; }
.pro-warning { border-left-color: #b88b3d; background: #fbf7ed; }
.pro-neutral { border-left-color: #8b9690; background: #f5f7f5; }
.pro-month-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.pro-month { background: #f8faf8; border: 1px solid #e4eae4; border-radius: 12px; padding: 13px; }
.pro-mini { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.domain-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 9px; margin-top: 12px; }
.domain-stat { min-width: 0; padding: 12px 10px; border: 1px solid #e1e8e1; border-radius: 12px; text-align: center; background: #f8faf8; }
.domain-stat strong { display: block; font-size: 1.65rem; line-height: 1.2; margin-bottom: 4px; }
.domain-stat span { display: block; font-size: .78rem; line-height: 1.3; }
.domain-stat--green { background: #e3f0e5; border-color: #c8dfcd; color: #28613a; }
.domain-stat--yellow { background: #fbf1d8; border-color: #eedda9; color: #795d19; }
.domain-stat--white { background: #eef0ee; border-color: #dce1dc; color: #5d6861; }
.domain-stat--red { background: #f7e5e5; border-color: #edcccc; color: #8d3e3e; }
.domain-stat--muted { background: #f1f3f1; border-color: #dfe4df; color: #5d6861; }
.domain-stat-note { margin: 10px 0 0; color: #66736a; font-size: .86rem; }
.pro-pdf-action { display: flex; justify-content: flex-start; margin: 18px 0 8px; }
.pro-pdf-action .button { display: inline-flex; width: auto; flex: 0 0 auto; align-items: center; }
.pro-chip { display: inline-block; font-size: .78rem; border-radius: 20px; padding: 4px 8px; background: #edf1ed; color: #435047; }
.pro-chip.green { background: #e3f0e5; color: #28613a; }
.pro-chip.yellow { background: #fbf1d8; color: #795d19; }
.pro-chip.white, .pro-chip.muted { background: #eef0ee; color: #5d6861; }
.pro-chip.red { background: #f7e5e5; color: #8d3e3e; }








.pro-recommendation { border: 1px solid #e2e8e2; border-radius: 12px; padding: 15px; margin: 12px 0; }
.pro-recommendation h3 { margin-top: 0; }
.pro-notes { border-left: 3px solid #d6dfd7; padding: 8px 12px; margin: 9px 0; background: #fafbfa; }
.pro-small { color: #6a756d; font-size: .86rem; }

.pro-final-result { border-width: 2px; padding: 24px; margin-top: 26px; }
.pro-final-result--success { border-color: #6e9a78; background: #f6faf6; }
.pro-final-result--warning { border-color: #c39b4d; background: #fffcf5; }
.pro-final-result--neutral { border-color: #9ca69f; background: #f8faf8; }
.pro-final-label { display: inline-block; padding: 6px 11px; border-radius: 18px; font-weight: 700; font-size: .88rem; background: #edf1ed; color: #435047; margin: 4px 0 10px; }
.pro-final-result--success .pro-final-label { background: #e3f0e5; color: #28613a; }
.pro-final-result--warning .pro-final-label { background: #fbf1d8; color: #795d19; }
.pro-final-item { padding: 11px 0; border-bottom: 1px solid #e3e9e3; }
.pro-final-item:last-child { border-bottom: 0; }
.pro-final-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.pro-final-item p { margin: 6px 0; }

.pro-hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; align-items: center; }
.pro-hero-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 15px; border: 1px solid #e1e8e1; }
.pro-section-kicker { display: flex; align-items: center; gap: 9px; color: #527b64; font-weight: 700; margin-bottom: 8px; }
.pro-section-icon { width: 34px; height: 34px; display: inline-grid; place-items: center; flex: 0 0 34px; border-radius: 11px; background: #e8f0e8; font-size: 1.1rem; }
.pro-focus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pro-focus-card { border: 1px solid #e0e8e0; border-radius: 14px; padding: 15px; background: #fbfcfb; }
.pro-focus-card h3 { margin: 0 0 7px; }
.pro-focus-counts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.pro-attention-card { border: 1px solid #e5e8e3; border-left: 4px solid #d4aa43; border-radius: 13px; padding: 15px; margin: 12px 0; background: #fffdfa; break-inside: avoid; }
.pro-attention-card.status-red { border-left-color: #c76e6e; background: #fffafa; }
.pro-attention-card.status-white { border-left-color: #aab2ad; background: #fbfcfb; }
.pro-attention-card h3 { margin: 0 0 8px; }
.pro-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 9px; margin-top: 10px; }
.pro-detail { background: #f7f9f7; border-radius: 10px; padding: 10px; }
.pro-detail strong { display: block; color: #52645a; font-size: .86rem; margin-bottom: 4px; }
.pro-home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.pro-home-card { background: #f8faf8; border: 1px solid #e2e9e2; border-radius: 13px; padding: 15px; }
.pro-home-card h3 { margin-top: 0; }
.pro-clinician-summary { background: #f2f6f2; border: 1px dashed #9db5a1; border-radius: 12px; padding: 15px; }
@media (max-width: 700px) { .pro-hero-layout { grid-template-columns: 1fr; } .pro-hero-image { max-height: 190px; } }

@media (max-width: 600px) { .pro-hero, .pro-card { padding: 16px; } .pro-hero h1 { font-size: 1.65rem; } }


/* ==== Перенесено из package_materials.html ({% endblock %} стили) ==== */

.pro-package-page {
    width: 100%;
    max-width: none !important;
    box-sizing: border-box;
    margin: 20px 0 40px;
    padding: 36px;
}
.pro-package-page .package-back {
    display: inline-block;
    margin-bottom: 24px;
}

.pro-package-page .eyebrow {
    margin-bottom: 10px;
}

.pro-package-page h1 {
    font-size: clamp(32px, 4vw, 46px);
    margin: 0 0 30px;
}

.pro-package-page .report-panel {
    padding: 28px 32px;
    margin-bottom: 38px;
    border-radius: 18px;
}

.pro-package-page .report-panel h2 {
    margin-top: 0;
}

.pro-package-page .materials-heading {
    margin-bottom: 22px;
    font-size: 26px;
}

.pro-package-page .materials-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.pro-package-page .material-card {
    padding: 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 190px;
    box-sizing: border-box;
}

.pro-package-page .material-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
}

.pro-package-page .material-card p {
    flex-grow: 1;
}

.pro-package-page .page-bottom {
    margin-top: 30px;
}

@media (max-width: 700px) {
    .pro-package-page {
        width: calc(100vw - 24px);
        padding: 22px 16px;
        margin-top: 10px;
    }

    .pro-package-page .materials-grid {
        grid-template-columns: 1fr;
    }

    .pro-package-page .report-panel {
        padding: 22px 18px;
    }

    .pro-package-page .material-card {
        min-height: auto;
    }
}


/* ==== Перенесено из pro_material.html ({% endblock %} стили) ==== */

.pro-material-page {
    width: 100%;
    max-width: none !important;
    margin: 20px 0 40px;
    padding: 36px;
    box-sizing: border-box;
}

.pro-material-page .back-link {
    display: inline-block;
    margin-bottom: 24px;
    font-weight: 700;
}

.pro-material-page .eyebrow {
    margin-bottom: 10px;
}

.pro-material-page h1 {
    font-size: clamp(32px, 4vw, 46px);
    margin: 0 0 12px;
}

.pro-material-page .section-title {
    font-size: clamp(23px, 3vw, 30px);
    margin: 0 0 30px;
    color: var(--green);
}

.pro-material-page .month-material {
    padding: 30px 34px;
    margin: 0 0 22px;
    border-radius: 18px;
    background: #fbf8f1;
    border: 1px solid var(--line);
}

.pro-material-page .month-material h3 {
    font-size: 21px;
    margin: 0 0 20px;
    color: var(--ink);
}

.pro-material-page .month-text {
    font-size: 16px;
    line-height: 1.85;
    color: var(--ink);
    overflow-wrap: break-word; hyphens: auto;
}

.pro-material-page .medical-disclaimer {
    background: #f3f6ed;
    border: 1px solid #dfe8d9;
    border-radius: 16px;
    padding: 22px 26px;
    margin: 32px 0;
    color: #59685c;
    font-size: 14px;
    line-height: 1.7;
}

.pro-material-page .page-bottom {
    margin-top: 28px;
}

@media (max-width: 700px) {
    .pro-material-page {
        padding: 22px 16px;
        margin-top: 10px;
    }

    .pro-material-page .month-material {
        padding: 22px 18px;
    }

    .pro-material-page .month-text {
        font-size: 15px;
        line-height: 1.75;
    }

    .pro-material-page .medical-disclaimer {
        padding: 18px;
    }
}

/* Тост fetch-сохранения дневника (app.js) */
.toast {
    position: fixed;
    left: 50%;
    bottom: 90px;
    transform: translate(-50%, 10px);
    max-width: min(90vw, 460px);
    padding: 12px 20px;
    border-radius: 14px;
    background: var(--pale);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
    z-index: 50;
}

.toast.toast-error {
    background: #fae7e3;
    border-color: #dfa09b;
}

.toast.toast-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* Фото-иллюстрация в шапках разделов (как на главной: малыши с игрушками) */
.pagehead { position: relative; }

.page-photo {
    position: absolute;
    right: 0;
    top: -10px;
    width: 280px;
    height: 190px;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 14px 30px rgba(82, 100, 81, .14);
    transform: rotate(1.5deg);
    animation: pop .5s ease both;
}

.pagehead { padding-right: 320px; min-height: 195px; }


/* Фото шапок на телефоне: НЕ absolute 280x190 с обрезкой, а целая
/* Фото страниц месяцев на телефоне: во всю ширину, высота как на компе (190px), углы 28px */
@media (max-width: 650px) {
    .monthhead { padding: 14px 16px 8px; }
    .pagehead .page-photo.month-photo {
        position: static;
        width: 100%;
        height: 300px;
        object-fit: cover;
        object-position: center 30%;
        border-radius: 28px;
        box-shadow: none;
        transform: none;
        animation: none;
        display: block;
        margin: 0 0 8px;
    }

    /* Кабинет: фотография над текстом, не наложение;
       размер тот же, что у картинmonths-карточки — 280×190 */
    .dash-page .pagehead { padding: 0 16px 8px; }
    .dash-page .page-photo {
        position: static;
        display: block;
        margin: 0 auto 10px;
        width: 280px;
        height: 190px;
        object-fit: cover;
        object-position: center 30%;
        border-radius: 28px;
        box-shadow: none;
        transform: none;
        animation: none;
    }

    /* Расширенная программа (список блоков): то же — фото над текстом */
    .packagegrid-page .pagehead { padding: 0 16px 8px; }
    .packagegrid-page .page-photo,
    /* Выписка из роддома: то же */
    .discharge-head .page-photo {
        position: static;
        display: block;
        margin: 0 auto 10px;
        width: 280px;
        height: 190px;
        object-fit: cover;
        object-position: center 30%;
        border-radius: 28px;
        box-shadow: none;
        transform: none;
        animation: none;
    }
    .discharge-head { padding: 0 16px 8px; }

    /* Все остальные страницы с шапкой-фото: то же правило —
       фото над текстом, без наложения (статьи, памятки, сводка, пакет) */
    .pagehead { padding: 0 16px 8px; }
    .pagehead .page-photo {
        position: static;
        display: block;
        margin: 0 auto 10px;
        width: 280px;
        height: 190px;
        object-fit: cover;
        object-position: center 30%;
        border-radius: 28px;
        box-shadow: none;
        transform: none;
        animation: none;
    }
}

@media (max-width: 900px) {
    .pagehead { padding-right: 0; }
}

/* Мягкое появление и лёгкая жизнь страницы */
@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pop {
    from { opacity: 0; transform: scale(.6); }
    to   { opacity: 1; transform: scale(1); }
}

main .skillcard, main .monthcard, main .packagecard, main .question-card,
main .contentcard, main .softbox, main .record, main .month-material {
    animation: rise .45s ease backwards;
}

/* «Я оплатил» на странице заявки «Второго мнения» */
.pay-notify{margin-top:8px}

/* Список заявок «Второго мнения» */
.my-consult-row{margin-bottom:16px}
.my-consult-row .cancel-consult{display:inline-block;margin-top:8px}

/* Чекбокс согласия с условиями (лендинг «Второго мнения») */
.consent-row{display:flex;gap:10px;align-items:flex-start;font-weight:400!important}
.consent-row input{width:auto;margin-top:4px}

/* Состав PRO-блока на странице блока: каждая группа — отдельная карточка */





@media(max-width:700px){.blockcontent-groups{grid-template-columns:1fr}}

/* Иллюстрации в памятках ортопеда */




/* Шаги «Как начать» на главной */
.start-steps{margin:10px 0 4px;padding-left:22px}
.start-steps li{margin:10px 0}
.start-steps a{font-weight:700}

/* Справочная информация (мелкий спокойный шрифт) */
.fineprint{font-size:12px;color:#8a857e;font-weight:400;margin-bottom:0;font-style:normal}

/* Ссылки в интро главной — чуть ярче общего зелёного, без жирности */
.lead-soft a{color:#1f915c;border-bottom:1px solid rgba(31,145,92,.4)}

/* Шрифтовой тест варианта 3 — только главная страница:
   заголовки Unbounded, текст Rubik; шапка/футер остаются Manrope */
.font-home h1,.font-home h2,.font-home h3,.font-home .c-heading{
    font-family:'Unbounded',sans-serif;font-weight:600;letter-spacing:-.3px}
.font-home p,.font-home li,.font-home a,.font-home .consent,
.font-home .consent-row .demo-tag,.font-home .price,.font-home .tag{
    font-family:'Rubik',sans-serif}
.font-home .lead{font-family:'Rubik',sans-serif;font-size:17px;line-height:1.65}
.font-home .c-heading{letter-spacing:-.3px}

/* Публичная оферта */
.offer h2{margin-top:26px}
.offer ul{padding-left:20px}
.offer li{margin:6px 0}

/* Лёгкая техническая подсказка (код восстановления и т.п.) — не раздел */
.security-note{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:14px 18px;margin-top:18px}
.security-note p{margin:0;font-size:13px;color:var(--muted)}
.security-note .button{flex:0 0 auto}

/* Заявки на оплату на странице оплаты */
.payreq-row{margin:8px 0}
.payreq-row .payreq-cancel{display:inline-block;margin-top:6px}

/* Метки демо-доступа в составе блока */
.demo-tag{display:inline-block;font-size:12px;padding:2px 8px;border-radius:999px;font-weight:700;white-space:nowrap}
.demo-open{background:#e3f0e5;color:#28613a}
.demo-locked{background:#fae7e3;color:#a63d30}

/* Подсветка карточек материалов под демо-доступом */
.material-card{position:relative;overflow:hidden}
.material-card .demo-tag{position:absolute;top:10px;right:10px}
.demo-open-card{border-color:#c8dfcd;box-shadow:inset 0 0 0 2px rgba(72,148,102,.25)}
.demo-locked-card{border-color:#e5b8b0;box-shadow:inset 0 0 0 2px rgba(166,61,48,.15)}

/* Основной способ оплаты — выделенная карточка */
.pay-primary{border:2px solid var(--green);box-shadow:0 0 0 4px rgba(31,145,92,.12)}
.pay-primary h3{color:var(--green)}

/* Демо: две колонки ссылок на странице блока */







@media(max-width:700px){.demo-links{grid-template-columns:1fr}}

/* Текст ссылок в карточках — тёмно-синий (кнопки остаются прежними) */
.card a:not(.button),.softbox a:not(.button),.formcard a:not(.button),.packagecard a:not(.button){color:#2c4a6e}


.diarylist > :nth-child(2), .monthgrid > :nth-child(2), .packagegrid > :nth-child(2), .recordlist > :nth-child(2), .materials-grid > :nth-child(2) { animation-delay: .05s; }
.diarylist > :nth-child(3), .monthgrid > :nth-child(3), .packagegrid > :nth-child(3), .recordlist > :nth-child(3), .materials-grid > :nth-child(3) { animation-delay: .1s; }
.diarylist > :nth-child(4), .monthgrid > :nth-child(4), .packagegrid > :nth-child(4), .recordlist > :nth-child(4), .materials-grid > :nth-child(4) { animation-delay: .15s; }
.diarylist > :nth-child(5), .monthgrid > :nth-child(5), .packagegrid > :nth-child(5), .recordlist > :nth-child(5), .materials-grid > :nth-child(5) { animation-delay: .2s; }
.diarylist > :nth-child(6), .monthgrid > :nth-child(6), .packagegrid > :nth-child(6), .recordlist > :nth-child(6), .materials-grid > :nth-child(6) { animation-delay: .25s; }
.diarylist > :nth-child(7), .monthgrid > :nth-child(7), .packagegrid > :nth-child(7), .recordlist > :nth-child(7), .materials-grid > :nth-child(7) { animation-delay: .3s; }
.diarylist > :nth-child(8), .monthgrid > :nth-child(8), .packagegrid > :nth-child(8), .recordlist > :nth-child(8), .materials-grid > :nth-child(8) { animation-delay: .35s; }
.diarylist > :nth-child(n+9), .monthgrid > :nth-child(n+9), .packagegrid > :nth-child(n+9), .recordlist > :nth-child(n+9), .materials-grid > :nth-child(n+9) { animation-delay: .4s; }

/* Герой: солнце и росток слегка живут */


@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Запас под плавающую кнопку чата (fixed, right 25px): без этого она
   перекрывает правые ссылки футера и конец страницы */
footer {
    padding-bottom: 95px;
}

@media (min-width: 751px) {
    footer {
        padding-right: 250px;
    }
}

/* Красные флаги месяца: выделенный цветом абзац */
.redflag-box {
    background: #fff0ef;
    border: 2px solid #dfa09b;
    border-radius: 14px;
    padding: 16px 20px;
    margin: 18px 0;
}

/* Сайдбар материалов месяца: кнопки-секции стекаются вертикально */
.sidecard .button {
    display: block;
    margin: 9px 0;
}

/* Код самовосстановления на странице выдачи */
/* Документы врача (дипломы/сертификаты) */
.doc-figure {
    margin: 14px 0;
}

.doc-figure .doc-img {
    max-width: 420px;
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: 0 8px 18px rgba(82, 100, 81, .1);
}

.doc-figure figcaption {
    margin-top: 8px;
    font-size: 12px;
}

/* Кнопка «показать пароль» рядом с полями пароля */
.pw-wrap {
    position: relative;
}

.formcard .pw-wrap input {
    padding-right: 96px;
    width: 100%;
}

.pw-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 4px;
}

/* Пара кнопок на карточке отметки: сохранить / снять */
.status-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}

/* Подсказка о принадлежности месяца к возрастному блоку PRO */
.block-badge{display:inline-block;background:var(--pale);border:1px solid var(--line);border-radius:10px;padding:6px 12px;font-size:13px;color:var(--ink);margin:6px 0 0}

/* Заметка к отметке: видна всегда; красный статус подсвечивает её */
.doctor-note input{width:100%}
.doctor-note-active input{border-color:#dfa09b;background:#fff7f5}

/* Явное согласие на обработку данных ребёнка в профиле */
.consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 18px 0;
}

.consent input[type="checkbox"] {
    margin-top: 4px;
    flex: none;
}




/* hero h1 — переносы разрешены (заголовок стал длинным) */



/* Чат поддержки на телефоне: компактнее и без наложения на карточки */
@media (max-width: 650px) {
    .support-button {
        right: 12px;
        bottom: 12px;
        padding: 8px 13px;
        font-size: 13px;
        border-radius: 18px;
    }
    .support-window {
        right: 10px;
        left: 10px;
        bottom: 54px;
        width: auto;
        height: 62vh;
    }
}

/* Кабинет (12 месяцев): компактный мобильный вид; комп — без изменений */
@media (max-width: 650px) {
    
    .dash-page .pagehead h1 { font-size: 1.4rem; }
    .dash-page .pagehead { margin-bottom: 14px; }
    .dash-page .current-month { padding: 10px 12px; font-size: .95rem; border-radius: 12px; }
    .dash-page .softbox { padding: 13px; margin: 11px 0; border-radius: 14px; }
    .dash-page .softbox h2 { font-size: 1.15rem; }
    .dash-page .monthgrid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .dash-page .monthcard { padding: 11px 12px; border-radius: 13px; }
    .dash-page .monthcard h3 { font-size: 1rem; margin: 4px 0; }
    .dash-page .monthcard p { font-size: .85rem; }
    .dash-page .chat-messages { padding: 10px 12px; }
    .dash-page .chat-info { padding: 10px 12px; }
    .dash-page p { margin: .45em 0; }
}
.ex-img{display:block;max-width:100%;width:520px;border-radius:14px;margin:10px 0 4px}
.ex-note{font-size:14px;color:#8A5A50;margin:0 0 6px}
.article-figure{margin:14px 0}
.article-figure img{display:block;max-width:100%;height:auto;border-radius:14px}
.article-figure figcaption{font-size:13px;color:var(--muted);margin-top:4px;line-height:1.35}
