:root {
  --bg: #f0eae5; --bg-tint: #e7dfd7; --brown: #51443b; --dark: #1c1814; --line: #d3c7bb; --line-strong: #ad9e90; --accent: #a8754a; --white: #fffdfb;
  --head: "Cormorant SC", Georgia, serif; --body: "Montserrat", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font: 400 14px/1.5 var(--body); color: var(--dark); background: var(--bg); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; }
h1, h3, h4 { font-family: var(--head); text-transform: uppercase; letter-spacing: .03em; line-height: 1.1; }
.eyebrow { font: 500 11px/1.4 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.link { background: none; border: 0; text-decoration: underline; font-size: 12px; opacity: .75; }
.link:hover { opacity: 1; }

.btn { display: inline-block; text-align: center; text-decoration: none; font: 500 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; padding: 15px 22px; background: var(--brown); color: var(--bg); border: 1px solid var(--brown); border-radius: 16px; transition: background .2s, color .2s; width: 100%; }
.btn:hover { background: var(--dark); border-color: var(--dark); }

/* ---------- вход ---------- */
.gate { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; z-index: 200;
  background: radial-gradient(900px 500px at 85% -10%, rgba(65, 125, 151, .55), transparent 60%), radial-gradient(700px 500px at -10% 110%, rgba(214, 170, 130, .4), transparent 60%), #3a2f28; }
.gate__box { background: rgba(246, 241, 236, .97); border-radius: 34px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45); padding: 44px 38px; width: min(380px, 100%); display: grid; gap: 16px; text-align: center; }
.gate__box h1 { font-size: 42px; }
.gate__logo { width: 60px; height: 60px; border-radius: 20px; background: var(--brown); color: #f6f1ec; display: grid; place-items: center; margin: 0 auto 4px; }
.gate__logo .ic { width: 30px; height: 30px; }
.gate__hint { font-size: 13px; opacity: .8; }
.gate input { font: 500 18px var(--body); text-align: left; padding: 14px 16px; border: 1px solid var(--line-strong); background: var(--white); outline: none; border-radius: 16px; }
.gate input:focus { border-color: var(--accent); }
.gate__err { color: #a4523d; font-size: 13px; }
@media (max-width: 420px) { .gate { padding: 16px; } .gate__box { padding: 32px 22px; } }

/* ---------- приложение ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top__brand { display: flex; flex-direction: column; }
.top__brand em { font: 600 20px var(--head); text-transform: none; font-style: normal; }
.top__brand span { font-size: 11.5px; color: #6b6258; }
.wrap { max-width: 640px; margin: 0 auto; padding: 20px 16px 60px; display: grid; gap: 16px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.panel h3 { font-size: 20px; margin-bottom: 10px; }
.panel__sub { font-size: 12.5px; color: #6b6258; margin-bottom: 10px; }
.hint { font-size: 13px; color: #6b6258; }

.visitcard { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--bg-tint); margin-bottom: 8px; }
.visitcard:last-child { margin-bottom: 0; }
.visitcard b { font-size: 13.5px; }
.visitcard span { font-size: 13px; color: #4a423b; }
.visitcard--past { opacity: .8; }
.visitcard .st { font-style: normal; opacity: .7; }

.stage { margin-bottom: 14px; } .stage:last-child { margin-bottom: 0; }
.stage h4 { font-size: 15px; margin-bottom: 6px; color: var(--brown); }
.planlist li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.planlist li:last-child { border-bottom: 0; }
.planlist li span { min-width: 0; overflow-wrap: break-word; }
.planlist li b { white-space: nowrap; flex: none; }
.planlist li.is-done { opacity: .55; text-decoration: line-through; }

.foot-note { font-size: 11.5px; color: #8a8177; text-align: center; padding: 6px 8px; }

/* ---------- зубная формула (только просмотр) ---------- */
.teeth__wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; padding: 8px 6px; background: radial-gradient(ellipse at 50% 48%, #ffffff 0%, #fbf7f2 62%, #f3ebe2 100%); }
.teeth__svg { width: 100%; min-width: 640px; height: auto; display: block; user-select: none; }
.teeth__svg .seg-l text { font: 500 26px "Cormorant Garamond", Georgia, serif; fill: #1f7ea8; }
.teeth__svg .side { font: 600 34px "Cormorant Garamond", Georgia, serif; fill: #1f7ea8; }
.teeth__svg .ml { stroke: #d63a3a; stroke-width: 2; }
.tt-root { fill: url(#tg-root); stroke: #8e8175; stroke-width: 1.2; stroke-linejoin: round; }
.tt-crown { fill: url(#tg-crown); stroke: #8e8175; stroke-width: 1.4; stroke-linejoin: round; }
.tt-shine { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; opacity: .9; }
.tt-n { font: 700 13.5px var(--body); fill: #3a2f28; pointer-events: none; paint-order: stroke; stroke: rgba(255, 255, 255, .9); stroke-width: 3px; stroke-linejoin: round; }
.tt.ex .tt-crown, .tt.ex .tt-root { fill: #5c5f64; stroke: #46484c; }
.tt.ex .tt-shine { opacity: .14; }
.tt.ex .tt-n { fill: #f3f1ee; stroke: rgba(35, 35, 38, .6); }
.tt-impl-collar { fill: #b6bcc3; stroke: #857464; stroke-width: 1.2; stroke-linejoin: round; }
.tt-impl-shaft { fill: url(#tg-metal); stroke: #857464; stroke-width: 1.3; stroke-linejoin: round; }
.tt-thread { stroke: #5f6369; stroke-width: 1.1; opacity: .75; }
.mk-x path { fill: none; stroke: #e5262a; stroke-width: 4.6; stroke-linecap: round; }
.gp-dot { fill: #f39c34; stroke: #fff; stroke-width: 2; filter: drop-shadow(0 1px 1px rgba(150, 90, 20, .35)); }
.teeth__legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lg-i { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 8px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); font: 600 11.5px var(--body); color: var(--dark); }
.lg-i i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.lg-x { color: #e5262a; font-size: 13px; line-height: 1; }

/* поле пароля на входе: «Показать / Скрыть» и подсказка о Caps Lock (assets/gate.js) */
.pw { position: relative; display: grid; }
.pw input { width: 100%; padding-right: 100px !important; }
.pw__eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; border-radius: 999px; padding: 8px 12px; background: #efe7df; color: #5d544c; font: 600 12px var(--body); cursor: pointer; transition: background .2s, color .2s; }
.pw__eye:hover, .pw__eye:focus-visible { background: #51443b; color: #f6f1ec; }
.pw__caps { margin: -6px 0 0; padding: 8px 12px; border-radius: 12px; background: #fff2c2; color: #7a5d00; font-size: 12.5px; text-align: left; }

/* напоминания в Telegram */
.rmd__lead { font-size: 14px; line-height: 1.5; margin-bottom: 12px; }
.rmd__chk { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: #4a423b; margin-bottom: 14px; cursor: pointer; }
.rmd__chk input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--accent); }
.rmd__go { border-radius: 999px; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; padding: 14px 22px; background: #2a8bc9; border-color: #2a8bc9; color: #fff; }
.rmd__go:hover { background: #1f74ab; border-color: #1f74ab; }
.rmd__go:disabled { opacity: .45; cursor: not-allowed; }
.rmd__ok, .rmd__wait { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; margin-bottom: 12px; font-size: 13.5px; line-height: 1.45; }
.rmd__ok { background: #eaf5ec; color: #23502c; } .rmd__wait { background: #fff6e0; color: #5c4510; }
.rmd__ok b, .rmd__wait b { font-size: 15px; }
.rmd .link { display: inline-block; margin-top: 12px; margin-left: 4px; font-size: 13px; }
.rmd__err { color: #a4523d; margin-top: 8px; }

/* ---------- демо: врач, календарь, фото ---------- */
.btn--sm { width: auto; padding: 11px 16px; font-size: 12px; letter-spacing: .04em; text-transform: none; border-radius: 999px; }
.btn--ghost { background: transparent; color: var(--brown); } .btn--ghost:hover { color: var(--bg); }
.doc { display: flex; align-items: center; gap: 14px; }
.doc__av { width: 56px; height: 56px; flex: none; border-radius: 18px; display: grid; place-items: center; background: var(--brown); color: #f6f1ec; font: 600 22px var(--head); }
.doc__t { display: grid; gap: 2px; } .doc__t b { font-size: 15.5px; } .doc__t span { font-size: 12.5px; color: #6b6258; }
.doc__about { font-size: 13.5px; margin-top: 12px; line-height: 1.5; } .doc__edu { font-size: 12px; color: #6b6258; margin-top: 6px; }
.doc__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pc__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; } .pc__top h3 { margin: 0; }
.pc__nav { display: flex; align-items: center; gap: 8px; } .pc__nav b { min-width: 120px; text-align: center; font-size: 13.5px; text-transform: capitalize; }
.pc__nav button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--white); font-size: 18px; line-height: 1; }
.pc { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.pc__h { font-size: 11px; text-align: center; color: #8a8177; padding: 2px 0; }
.pc__c { aspect-ratio: 1; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--bg); font: 600 13px var(--body); color: var(--dark); padding: 0; }
.pc__c:disabled { cursor: default; color: #a69d94; background: transparent; } .pc__c.is-out { background: transparent; }
.pc__c.is-today { box-shadow: inset 0 0 0 2px var(--accent); }
.pc__c.has-up { background: var(--accent); color: #fff; } .pc__c.has-past { background: var(--line); color: var(--dark); }
.pc__lg { font-size: 11.5px; color: #6b6258; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.pc__lg span { display: inline-flex; align-items: center; gap: 6px; } .pc__dot { width: 10px; height: 10px; border-radius: 3px; background: var(--line); display: inline-block; } .pc__dot--up { background: var(--accent); }
.photo-box { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: #eef5f8; margin-bottom: 12px; } .photo-box small { font-size: 11.5px; color: #5d6b72; }
.photo-a { font: 600 13px var(--body); color: var(--accent); text-decoration: none; } .photo-a:hover { text-decoration: underline; }
.stage .photo-a { display: inline-block; margin: 0 0 6px; font-size: 12px; }
.wrap > * { min-width: 0; }                      /* формула скроллится внутри своей рамки, а не растягивает страницу */
.pc__c { aspect-ratio: auto; height: 42px; }

/* ===== тема «Стоматология»: та же палитра, что в кабинете врача ===== */
:root {
  --bg: #efe5d8; --bg-tint: #ece0d1; --brown: #8a5d3b; --dark: #3b2f26; --line: #e8dccd; --line-strong: #d9c6b1; --accent: #b0773f; --white: #ffffff;
  --head: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, Arial, sans-serif;
}
body { background: radial-gradient(40% 30% at 100% 0%, rgba(176, 119, 63, .12), transparent 70%), radial-gradient(40% 30% at 0% 100%, rgba(201, 154, 104, .1), transparent 70%), var(--bg); background-attachment: fixed; }
h1, h3, h4 { font-family: var(--head); text-transform: none; letter-spacing: -.02em; font-weight: 700; }
.panel h3 { font-size: 19px; } .stage h4 { font-size: 15px; color: var(--brown); }
.eyebrow { letter-spacing: .08em; }
.top { background: rgba(255, 255, 255, .95); border-bottom: 1px solid var(--line); }
.top__brand em { font: 700 19px var(--head); }
.panel { border-radius: 18px; border-color: var(--line); box-shadow: 0 1px 2px rgba(70, 48, 30, .04), 0 10px 28px -18px rgba(70, 48, 30, .22); }
.visitcard { background: #f8efe4; border-radius: 14px; } .visitcard--past { background: #f6efe6; }
.btn { background: var(--brown); border-color: var(--brown); border-radius: 999px; text-transform: none; letter-spacing: 0; font-weight: 600; }
.btn:hover { background: #6f4a2e; border-color: #6f4a2e; }
.btn--ghost { background: #fffaf4; color: var(--brown); border-color: var(--line-strong); }
.btn--ghost:hover { background: #f4e8da; color: var(--brown); }
.gate { background: radial-gradient(900px 520px at 85% -10%, rgba(210, 154, 99, .55), transparent 60%), radial-gradient(700px 500px at -10% 110%, rgba(201, 154, 104, .35), transparent 60%), #3b2a1f; }
.gate__box { background: #fffaf4; border-radius: 26px; }
.gate__logo { background: linear-gradient(140deg, #d29a63, #8a5d3b); }
.gate input { border-radius: 14px; } .gate input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(176, 119, 63, .16); }
.doc__av { background: linear-gradient(140deg, #c99a68, #b0773f 55%, #8a5d3b); font-family: var(--head); font-weight: 700; font-size: 20px; }
.pc__c { background: #f6eee3; } .pc__c.has-up { background: var(--accent); } .pc__c.has-past { background: #e8dccd; } .pc__c.is-today { box-shadow: inset 0 0 0 2px var(--accent); }
.pc__dot--up { background: var(--accent); } .pc__dot { background: #e8dccd; }
.photo-box { background: #f4e8da; }
.teeth__wrap { border-color: var(--line); background: radial-gradient(ellipse at 50% 48%, #ffffff 0%, #fbf6ef 62%, #efe4d6 100%); }
.lg-i { border-color: var(--line-strong); }
/* поле пароля на входе: кнопка «Показать» в палитре темы */
.pw__eye { background: var(--aqua-soft, #f4e8da) !important; color: var(--brown, #8a5d3b) !important; }
.pw__eye:hover, .pw__eye:focus-visible { background: var(--brown, #8a5d3b) !important; color: #fff !important; }

/* рекомендации врача (памятки) */
.memo { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin-bottom: 8px; background: #fbf6ef; }
.memo summary { cursor: pointer; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; list-style: none; }
.memo summary::-webkit-details-marker { display: none; }
.memo summary b { font-size: 14.5px; color: var(--brown); } .memo summary small { font-size: 12px; color: #6b6258; white-space: nowrap; }
.memo__text { font-size: 14px; line-height: 1.6; margin: 10px 0 6px; }/* сметы от врача */
.est-vs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 10px 0; }
.est-v { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: #fbf6ef; box-shadow: inset 0 0 0 1px #e8dccd; }
.est-v.is-rec { box-shadow: inset 0 0 0 2px #b0773f; background: #f8efe4; }
.est-v span { font-weight: 700; } .est-v b { font-size: 20px; color: #8a5d3b; } .est-v small { font-size: 12px; color: #7d6b5c; }
/* отзыв о враче и рекомендация; фирменный цвет врача (--brand) */
.prv-pick { display: flex; gap: 4px; margin: 10px 0; } .prv-pick button { border: 0; background: none; font-size: 34px; line-height: 1; color: #ebe0d2; cursor: pointer; transition: transform .15s, color .15s; }
.prv-pick button:hover { transform: scale(1.12); } .prv-pick .is-on { color: #f2b01e; }
#rvText { width: 100%; min-height: 96px; padding: 12px 14px; border: 0; border-radius: 12px; background: #fbf6ef; box-shadow: inset 0 0 0 1px #d9c6b1; font: inherit; margin-bottom: 10px; }
.prv-done { display: grid; gap: 6px; } .prv-stars { font-size: 22px; color: #f2b01e; } .prv-stars span { color: #ebe0d2; }
.prv-reply { padding: 10px 12px; border-radius: 12px; background: #f4e8da; } .prv-reply b { font-size: 12px; color: #8a5d3b; }
.prv-share { margin-top: 14px; padding: 14px; border-radius: 14px; background: #f8efe4; } .prv-share p { font-size: 13px; color: #7d6b5c; margin: 2px 0 8px; }
.prv-share__btns { display: flex; flex-wrap: wrap; gap: 8px; }
:root { --brand: #8a5d3b; }
.btn:not(.btn--ghost):not(.link) { background: var(--brand) !important; border-color: var(--brand) !important; }
h3 { color: var(--brand); }
.pwa-tip { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(140deg, #f6ebdd, #efe2d2); box-shadow: inset 0 0 0 1px #e8dccd; }
.pwa-tip__ic { font-size: 24px; } .pwa-tip div { flex: 1; display: grid; } .pwa-tip small { font-size: 12.5px; color: #7d6b5c; }
.pwa-tip .link { font-size: 22px; line-height: 1; color: #7d6b5c; background: none; border: 0; cursor: pointer; }
.pwa-tip[hidden] { display: none; }

/* ===== тёплое стекло (2026-11), как в кабинете врача: фон с пятнами света, карточки полупрозрачные с размытием ===== */
body { background:
  radial-gradient(42% 38% at 6% 2%, rgba(255, 250, 242, .95), transparent 70%),
  radial-gradient(34% 32% at 94% 8%, rgba(240, 190, 140, .5), transparent 72%),
  radial-gradient(38% 36% at 80% 64%, rgba(222, 178, 160, .38), transparent 72%),
  radial-gradient(40% 40% at 10% 90%, rgba(205, 212, 178, .45), transparent 72%),
  linear-gradient(160deg, #f4ebdf 0%, #ecdfcf 55%, #e8dac8 100%); background-attachment: fixed; }
.panel { background: linear-gradient(150deg, rgba(255, 252, 247, .80), rgba(251, 243, 233, .60)); border-color: rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 1px 2px rgba(70, 48, 30, .05), 0 16px 40px -24px rgba(70, 48, 30, .36); }
.top { background: rgba(255, 250, 244, .9); }

/* рекомендации врача и следующий визит */
.care__next { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 18px; background: linear-gradient(150deg, #fff6ea, #f6e3cc); box-shadow: inset 0 0 0 1px rgba(201, 154, 104, .4); }
.care__next > div { flex: 1 1 200px; display: grid; gap: 2px; } .care__next b { font-size: 16px; } .care__next small { color: #7d6b5c; }
.care__ic { font-size: 24px; }
.care__advice { margin-top: 12px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 252, 248, .85); box-shadow: inset 3px 0 0 #c99a68, inset 0 0 0 1px #ead9c6; line-height: 1.6; }
/* ===== СТЕКЛО 2.0 (2026-11-03): как в кабинете врача — глубже фон, «жидкое стекло», читаемее текст ===== */
:root { --dark: #261b14; --ink2: #64503e; }
body { color: var(--dark); font-size: 15px; background:
    radial-gradient(46% 40% at 4% 0%, rgba(255, 251, 244, .98), transparent 68%),
    radial-gradient(36% 34% at 96% 6%, rgba(244, 178, 118, .62), transparent 70%),
    radial-gradient(34% 36% at 76% 58%, rgba(226, 160, 142, .46), transparent 70%),
    radial-gradient(42% 42% at 8% 92%, rgba(190, 204, 160, .55), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .24 0 0 0 0 .15 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(160deg, #f5ece0 0%, #ecdccb 52%, #e5d3be 100%); background-attachment: fixed; }
.panel { border: 0; border-radius: 24px;
  background: radial-gradient(130% 90% at 0% 0%, rgba(255, 255, 255, .68), rgba(255, 255, 255, 0) 52%), linear-gradient(158deg, rgba(255, 253, 250, .82) 0%, rgba(253, 247, 240, .64) 55%, rgba(250, 240, 228, .58) 100%);
  -webkit-backdrop-filter: blur(28px) saturate(190%); backdrop-filter: blur(28px) saturate(190%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .5), inset 0 -1px 0 rgba(120, 80, 48, .07), 0 1px 2px rgba(58, 38, 22, .05), 0 20px 46px -28px rgba(58, 38, 22, .45); }
.panel h3 { font-size: 20px; font-weight: 750; }
.panel__sub, .hint, .top__brand span { color: var(--ink2); font-size: 13.5px; }
.visitcard, .memo, .stage, .est-v, .care__advice, .prv-share, .photo-box { background: rgba(255, 253, 250, .86) !important; box-shadow: inset 0 0 0 1px rgba(138, 93, 59, .12); border-color: transparent !important; border-radius: 16px; }
.care__next { background: linear-gradient(150deg, rgba(255, 246, 232, .95), rgba(246, 227, 204, .9)); }
.top { background: linear-gradient(180deg, rgba(255, 252, 247, .84), rgba(255, 250, 244, .72)); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); border-bottom: 0; box-shadow: inset 0 -1px 0 rgba(138, 93, 59, .12); }
.btn:not(.btn--ghost):not(.link) { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 88%, #fff), var(--brand)) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 22px -12px color-mix(in srgb, var(--brand) 85%, #000); }
.btn--ghost { background: rgba(255, 255, 255, .62); border-color: rgba(138, 93, 59, .26); }
input:not([type=checkbox]), textarea, select { background: rgba(255, 255, 255, .9); }
.gate__box { background: radial-gradient(120% 70% at 0% 0%, rgba(255, 255, 255, .8), transparent 55%), linear-gradient(158deg, rgba(255, 253, 250, .94), rgba(250, 242, 232, .88)); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 40px 90px -30px rgba(0, 0, 0, .6); }
.care__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: rgba(255, 255, 255, .7); color: #8a5d3b; }
.care__ic svg { width: 22px; height: 22px; }
/* ---------- мой профиль пациента, фото врача ---------- */
.doc__av--img { object-fit: cover; padding: 0; }
.me__top { display: flex; gap: 14px; align-items: center; }
.me__top > div { flex: 1; min-width: 0; } .me__top b { display: block; } .me__top small { color: #6b6258; font-size: 13px; }
.me__av { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.me__av--ph { display: grid; place-items: center; background: var(--brown); color: #f6f1ec; font: 600 24px var(--head); }
.me__dl { display: grid; grid-template-columns: minmax(140px, auto) 1fr; gap: 6px 14px; margin: 14px 0 0; font-size: 14px; }
.me__dl dt { color: #6b6258; } .me__dl dd { margin: 0; overflow-wrap: anywhere; }
.me__form { display: grid; gap: 12px; }
.me__form label { display: grid; gap: 5px; font: 600 13px var(--body); color: #51443b; }
.me__form input, .me__form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 400 15px var(--body); color: var(--dark); }
.me__form input:focus, .me__form textarea:focus { outline: none; border-color: var(--accent); }
.me__photo { display: flex; gap: 14px; align-items: center; } .me__photo label { cursor: pointer; display: inline-flex; }
.me__photo .link { margin-left: 10px; }
.me__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.me__btns { display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 560px) { .me__grid, .me__dl { grid-template-columns: 1fr; } .me__dl dt { margin-top: 6px; } }
/* ---------- ближайший приём, статистика, таймер чистки ---------- */
.mystats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 2px 4px; }
.mystats:empty { display: none; }
.mystats span { padding: 6px 12px; border-radius: 999px; background: rgba(255,253,251,.8); border: 1px solid var(--line); font-size: 13px; color: #51443b; }
.nexthero { display: grid; gap: 12px; padding: 18px; margin-bottom: 10px; border-radius: 20px; color: #fff;
  background: radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.22), rgba(255,255,255,0) 55%), linear-gradient(140deg, var(--brand, #a8754a), #5e4130); box-shadow: 0 16px 34px -18px rgba(60,35,20,.6); }
.nexthero__when small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.nexthero__when b { display: block; font: 600 34px/1.1 var(--head); margin: 4px 0 2px; }
.nexthero__when span { font-size: 15px; opacity: .95; }
.nexthero__what b { display: block; font-size: 15px; } .nexthero__what span { font-size: 13px; opacity: .85; }
.nexthero__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.nexthero .btn { background: #fff; color: #4a3326; border-color: #fff; }
.nexthero .btn--ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
.visitcard__cal { display: block; margin-top: 4px; font-size: 12.5px; } .visitcard__cal a, .visitcard__cal .link { color: var(--accent); font-size: 12.5px; }
.brush { position: relative; width: 170px; height: 170px; margin: 6px auto 10px; }
.brush__ring { width: 100%; height: 100%; }
.brush__bg { fill: none; stroke: var(--bg-tint); stroke-width: 10; }
.brush__fg { fill: none; stroke: var(--brand, var(--accent)); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.brush__mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.brush__mid b { font: 600 36px var(--head); color: var(--dark); } .brush__mid span { font-size: 12.5px; color: #6b6258; max-width: 120px; }
.brush__zones { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-width: 320px; margin: 0 auto 12px; }
.brush__zones span { text-align: center; padding: 7px; border-radius: 12px; background: var(--bg-tint); font-size: 13px; color: #6b6258; transition: all .3s; }
.brush__zones span.is-on { background: var(--brand, var(--accent)); color: #fff; transform: scale(1.04); }
.brush__zones span.is-done { background: #e3efe0; color: #4f7a46; }
#brushBox { text-align: center; }