/* История Ильдара — Белая стоматология. Колонка-«блог»: серый фон, белая страница, плашка-вывод, кнопка-таблетка. Палитра — бренд Белой. */
:root{--accent:#87623a;--accent-dark:#6e4c28;--accent-soft:#f7f1e8;--accent-line:#c79b69;--ink:#292622;--muted:#8a847c;--bg:#f5f4f2;--line:#d9d4cc;--teal:#4fb7a4}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body.story-site{margin:0;min-height:100vh;background:var(--bg);border-top:3px solid var(--accent);color:var(--ink);font-family:Arial,Helvetica,sans-serif}
.story-column{width:min(760px,calc(100% - 60px));margin:0 auto;padding:78px 0 42px}
.story-column.is-first{padding-top:94px}
.story-back{display:inline-flex;align-items:center;gap:9px;margin:0 0 30px;color:#9a948b;text-decoration:none;font-size:15px}
.story-back:hover{color:var(--accent)}
.story-back svg{width:16px;height:16px}
.story-paper{background:#fff;border-radius:3px;padding:50px;box-shadow:0 2px 12px rgba(0,0,0,.03)}
.story-paper-head{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding-bottom:20px}
.story-author{display:flex;align-items:center;gap:15px;min-width:0}
.story-avatar{flex:none;width:61px;height:61px;overflow:hidden;border-radius:4px;background:#e6ddd0}
.story-avatar img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 20%}
.story-author>span{display:grid;gap:4px}
.story-author strong{font-size:15px}
.story-author small,.story-read{font-size:13px;color:var(--muted)}
.story-read{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.story-read svg{width:16px;height:16px}
.story-categories{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:18px 0 20px;color:#aaa49b;font-size:13px}
.story-categories span{background:#f0eee9;border-radius:14px;padding:5px 10px;color:#7a746b}
.story-progress{display:flex;gap:6px;margin:0 0 26px}
.story-progress i{flex:1;height:4px;border-radius:2px;background:#ece8e1}
.story-progress i.is-done{background:var(--accent-line)}
.story-article h1{font-size:42px;line-height:1.16;letter-spacing:-.025em;margin:0 0 29px;font-weight:700}
.story-article h2{font-size:29px;line-height:1.22;margin:38px 0 19px;letter-spacing:-.02em}
.story-article p{font-size:20px;line-height:1.37;margin:0 0 26px}
.story-article .story-lede{font-weight:700}
.story-article ul,.story-article ol{margin:0 0 28px;padding-left:1.3em;font-size:20px;line-height:1.37}
.story-article li{margin:0 0 12px}
.story-article ol li::marker{color:var(--accent);font-weight:700}
.story-note{background:var(--accent-soft);border-left:4px solid var(--accent);margin:32px 0;padding:22px 25px;font-size:19px;line-height:1.42}
.story-note b{display:block;margin-bottom:4px}
.story-article .story-note p{font-size:inherit;line-height:inherit;margin:0}
.story-image{width:calc(100% + 100px);margin:38px -50px}
.story-image>img{display:block;width:100%;height:auto;background:#e9e3d9}
.story-card{position:relative;container-type:inline-size}
.story-card-face{position:absolute;left:47.1%;top:25.4%;width:28.4%;height:25.1%;display:flex;flex-direction:column;justify-content:space-between;padding:2.3cqw 2.3cqw 2cqw;color:#4a3a28;pointer-events:none;transform:rotate(0deg)}
.story-card-face img{display:block;width:62%;height:auto}
.story-card-face span{font-size:1.9cqw;font-weight:700;line-height:1.15;color:#4a3a28}
.story-card-face small{font-size:1.5cqw;line-height:1.2;color:#6f5c45;border-top:1px solid #cdbfa9;padding-top:.8cqw}
.story-quote{border:3px solid #ececec;margin:35px 0;padding:25px 28px;color:#555;font-size:20px;line-height:1.38;font-style:italic}
.story-rating{display:flex;align-items:center;gap:10px;margin:0 0 30px;padding:14px 18px;background:#f7f4ef;border-radius:3px;font-size:16px;color:#5b554d}
.story-rating svg{width:24px;height:24px;flex:none}
.story-rating b{font-size:22px;color:#292622}
.sm-perks{list-style:none;margin:0 0 18px;padding:0;display:grid;gap:9px}
.sm-perks li{display:grid;gap:2px;padding:11px 14px;border-left:4px solid var(--accent);background:var(--accent-soft);font-size:15px;line-height:1.3}
.sm-perks b{font-size:16px}
.sm-perks span{color:#6b655d;font-size:14px}
.story-image figcaption{padding:8px 50px 0;color:#9a948b;font-size:12px}
.story-estimate{width:calc(100% + 100px);margin:38px -50px;background:#efe8dc;padding:26px}
.story-estimate-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.story-plan-sheet{min-width:560px;margin:auto;padding:30px 32px 24px;background:#fff;box-shadow:0 2px 10px rgba(60,40,10,.14);color:#2a2622;font:13px/1.4 Arial,Helvetica,sans-serif}
.story-plan-sheet h3{margin:0 0 6px;text-align:center;font-size:22px;line-height:1.15}
.story-article .story-plan-sub{margin:0 0 16px;text-align:center;color:#7a746b;font-size:12px;line-height:1.4}
.story-plan-meta{display:grid;gap:6px;margin-bottom:12px;font-size:12px}
.story-plan-meta>div{display:grid;grid-template-columns:96px 1fr;gap:12px}
.story-plan-meta b{color:#4a443c}
.story-arch{display:block;width:100%;height:auto;max-height:190px;margin:0 auto 6px}
.story-plan-stage{padding:6px 9px;margin:12px 0 0;background:#ece6dc;color:#3b352d;font-size:13px;font-weight:700}
.story-plan-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px}
.story-plan-table th,.story-plan-table td{border:1px solid #cfc7ba;padding:6px 7px;vertical-align:top;text-align:left}
.story-plan-table th{background:#f6f2ea;font-weight:700}
.story-plan-table th:first-child,.story-plan-table td:first-child{width:56%}
.story-plan-table th:nth-child(2),.story-plan-table td:nth-child(2){width:11%;text-align:center}
.story-plan-table td:last-child,.story-plan-table th:last-child{width:33%;text-align:right;white-space:nowrap}
.story-plan-table td small{display:block;color:#7a746b;font-size:11px;margin-top:2px}
.story-plan-total{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:11px 3px 10px;border-bottom:1px solid #cfc7ba;font-size:12px}
.story-plan-total strong{font-size:17px;white-space:nowrap}
.story-article .story-plan-note{margin:10px 0 0;color:#6f695f;font-size:11px;line-height:1.45}
.story-doctors{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:24px 0 34px}
.story-doctor{display:grid;align-content:start;border:1px solid #e4dfd6;border-radius:3px;overflow:hidden;background:#fff}
.story-doctor img{display:block;width:100%;aspect-ratio:3/4;object-fit:cover;object-position:center 8%;background:linear-gradient(180deg,#efe7da,#e4d8c6)}
.story-doctor div{display:grid;gap:6px;padding:14px 14px 16px}
.story-doctor strong{font-size:17px;line-height:1.2}
.story-doctor span{font-size:14px;color:#5b554d;line-height:1.3}
.story-doctor small{font-size:13px;color:#7a746b;line-height:1.35}
.story-address{padding:19px 22px;background:#f7f4ef;font-size:17px;line-height:1.55;border-radius:3px;margin:0 0 28px}
.story-address strong{display:block;font-size:19px;margin-bottom:4px}
.story-address a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.story-action{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;min-height:70px;border:0;border-radius:45px;background:var(--accent);color:#fff;padding:10px 14px 10px 31px;text-align:left;text-decoration:none;font:700 20px/1.2 Arial,Helvetica,sans-serif;cursor:pointer;transition:background .2s ease,transform .2s ease}
.story-action:hover{background:var(--accent-dark);transform:translateY(-2px)}
.story-action:focus-visible{outline:3px solid #2b6ca3;outline-offset:3px}
.story-action-arrow{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:50%;background:#fff;color:var(--accent)}
.story-action-arrow svg{width:23px;height:23px}
.story-next{margin-top:43px}
.story-after-action{font-size:16px!important;color:#8a847c;margin:14px 0 0!important}
.story-footer{text-align:center;color:#9a948b;font-size:11px;line-height:1.55;padding:25px 0 50px}
.story-footer p{margin:0 0 10px}
.story-footer .story-warn{font-size:14px;letter-spacing:.02em}
.story-footer a{color:inherit}
/* плавающая кнопка «Перезвонить нам» */
.story-callback{position:fixed;right:38px;bottom:32px;z-index:60;display:flex;align-items:center;gap:12px;border:0;padding:0;background:none;cursor:pointer;font-family:inherit}
.story-callback-label{background:#33291d;color:#fff;border-radius:22px;padding:11px 17px;font-size:14px;font-weight:700;box-shadow:0 4px 14px rgba(0,0,0,.22);white-space:nowrap}
.story-callback-circle{position:relative;flex:none;width:66px;height:66px;border:3px solid var(--accent);border-radius:50%;background:#e9dfcf;box-shadow:0 4px 14px rgba(0,0,0,.22)}
.story-callback-circle img{display:block;width:100%;height:100%;border-radius:50%;object-fit:cover;object-position:center 12%}
.story-callback-phone{position:absolute;right:-4px;bottom:-4px;display:grid;place-items:center;width:27px;height:27px;border:2px solid #fff;border-radius:50%;background:var(--teal)}
.story-callback-phone svg{width:14px;height:14px}
.story-callback:focus-visible{outline:3px solid #2b6ca3;outline-offset:4px;border-radius:40px}
/* cookie */
.story-cookies{position:fixed;left:14px;bottom:14px;z-index:70;display:flex;align-items:center;gap:10px;max-width:340px;padding:11px 13px;background:#fff;border-radius:10px;box-shadow:0 4px 18px rgba(0,0,0,.18);font-size:12px;line-height:1.35;color:#5b554d}
.story-cookies[hidden]{display:none}
.story-cookies a{color:var(--accent)}
.story-cookies button{flex:none;border:0;border-radius:6px;background:#6f6a63;color:#fff;padding:7px 13px;font:700 13px Arial,sans-serif;cursor:pointer}
/* окна: квиз и обратный звонок */
.sm{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(30,22,12,.55)}
.sm[hidden]{display:none}
.sm-box{position:relative;width:min(520px,100%);max-height:calc(100vh - 32px);overflow:auto;background:#fff;border-radius:12px;padding:30px 30px 26px;box-shadow:0 18px 50px rgba(0,0,0,.3)}
.sm-close{position:absolute;right:10px;top:8px;width:40px;height:40px;border:0;background:none;color:#8a847c;font-size:30px;line-height:1;cursor:pointer}
.sm-kicker{margin:0 0 6px;color:var(--accent);font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.sm-title{margin:0 40px 6px 0;font-size:24px;line-height:1.2}
.sm-text{margin:0 0 18px;color:#6b655d;font-size:15px;line-height:1.4}
.sm-bar{height:5px;border-radius:3px;background:#eee9e1;margin:0 0 20px;overflow:hidden}
.sm-bar i{display:block;height:100%;width:0;background:var(--accent-line);transition:width .25s ease}
.sm fieldset{margin:0;padding:0;border:0;min-width:0}
.sm legend{padding:0;margin:0 0 14px;font-size:19px;font-weight:700;line-height:1.25}
.sm-opt{display:flex;align-items:center;gap:12px;margin:0 0 9px;padding:13px 15px;border:1px solid #d9d2c7;border-radius:9px;cursor:pointer;font-size:16px;line-height:1.25}
.sm-opt:hover{border-color:var(--accent-line);background:#fbf8f3}
.sm-opt input{flex:none;width:19px;height:19px;accent-color:var(--accent)}
.sm-opt:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}
.sm-field{display:block;margin:0 0 12px}
.sm-field span{display:block;margin:0 0 6px;font-size:14px;color:#6b655d}
.sm-field input[type=tel]{width:100%;height:52px;border:1px solid #8c7b68;border-radius:9px;padding:0 14px;font-size:19px;font-family:inherit}
.sm-field input[type=tel]:focus-visible{outline:3px solid #2b6ca3;outline-offset:1px}
.sm-consent{display:flex;align-items:flex-start;gap:10px;margin:0 0 14px;font-size:13px;line-height:1.4;color:#6b655d}
.sm-consent input{flex:none;width:19px;height:19px;margin-top:1px;accent-color:var(--accent)}
.sm-consent a{color:var(--accent)}
.sm-actions{display:flex;gap:10px;margin-top:6px}
.sm-btn{flex:1;min-height:52px;border:0;border-radius:30px;background:var(--accent);color:#fff;font:700 17px Arial,sans-serif;cursor:pointer;transition:background .2s}
.sm-btn:hover{background:var(--accent-dark)}
.sm-btn[disabled]{opacity:.6;cursor:wait}
.sm-btn.is-ghost{flex:0 0 auto;padding:0 20px;background:#efebe4;color:#4a443c}
.sm-btn.is-ghost:hover{background:#e5dfd5}
.sm-status{min-height:20px;margin:10px 0 0;font-size:14px;line-height:1.35;color:#6b655d}
.sm-status.error{color:#b3261e}
.sm-success{margin:0;padding:8px 0 4px;font-size:19px;line-height:1.4;font-weight:700}
.sm-phone-line{margin:14px 0 0;font-size:14px;color:#6b655d}
.sm-phone-line a{color:var(--accent);font-weight:700;text-decoration:none}
@media (max-width:820px){
  .story-column{width:calc(100% - 24px);padding:50px 0 30px}
  .story-column.is-first{padding-top:44px}
  .story-paper{padding:24px 22px 30px}
  .story-paper-head{padding-bottom:16px}
  .story-article h1{font-size:30px;margin-bottom:22px}
  .story-article h2{font-size:24px;margin:30px 0 16px}
  .story-article p,.story-article ul,.story-article ol{font-size:18px;line-height:1.42}
  .story-note{font-size:17px;padding:18px 18px;margin:26px 0}
  .story-quote{font-size:17px;padding:18px 18px;margin:26px 0}
  .story-image{width:calc(100% + 44px);margin:28px -22px}
  .story-image figcaption{padding:8px 22px 0}
  .story-estimate{width:calc(100% + 44px);margin:28px -22px;padding:16px 12px}
  .story-plan-sheet{min-width:0;padding:22px 14px 18px}
  .story-plan-sheet h3{font-size:18px}
  .story-plan-table{font-size:11.5px}
  .story-plan-meta{grid-template-columns:1fr}
  .story-doctors{grid-template-columns:1fr}
  .story-doctor{grid-template-columns:130px 1fr}
  .story-doctor img{height:100%;aspect-ratio:auto}
  .story-action{font-size:17px;min-height:64px;padding-left:24px}
  .story-callback{right:12px;bottom:14px}
  .story-callback-label{font-size:13px;padding:9px 13px}
  .story-callback-circle{width:56px;height:56px}
  .story-cookies{left:10px;right:10px;bottom:84px;max-width:none}
  .sm-box{padding:24px 20px 20px}
  .sm-title{font-size:21px}
}
@media (max-width:380px){.story-callback-label{display:none}.story-read{display:none}}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* 15.11.2026: журнальная подача. Юридический низ и плавающая кнопка звонка — только на последней странице (глава 5), как в исходном клипе. */
body:not([data-chapter="5"]) .story-footer{display:none}
body:not([data-chapter="5"]) .story-callback{display:none}
body:not([data-chapter="5"]) .story-next{margin-bottom:64px}
/* кнопка «дальше» с крючком: текст в 2–3 строки, без обрыва слов */
.story-next>span:first-child{flex:1;min-width:0;text-wrap:balance}
/* вопрос квиза без картинок (вопрос 4) */
#quiz .sm-opt.sm-opt-plain{min-height:0;padding:16px 16px}
/* cookie-плашка на главах 1–4: без плавающей кнопки звонка поднимать её не нужно, иначе закрывает кнопку «дальше» */
body:not([data-chapter="5"]) .story-cookies{bottom:14px}

/* 15.11.2026 (2): платёж вместо суммы в главе 3 и карточка одного врача в главе 4 */
.story-article .story-plan-pay{margin:8px 0 0;font-size:12.5px;line-height:1.45;color:#4a443c}
.story-plan-total strong{white-space:nowrap;text-align:right}
.story-expert{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);margin:26px 0 22px;border:1px solid #e4dfd6;border-radius:6px;overflow:hidden;background:#fff}
.story-expert-photo{display:flex;align-items:flex-end;justify-content:center;background:linear-gradient(180deg,#f3ecdf,#e4d8c6)}
.story-expert-photo img{display:block;width:100%;height:auto}
.story-expert-body{display:grid;gap:7px;align-content:center;padding:22px 24px}
.story-expert-kicker{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--accent)}
.story-expert-body strong{font-size:24px;line-height:1.2}
.story-expert-role{font-size:16px;line-height:1.3;color:#5b554d}
.story-expert-exp{font-size:16px;color:#5b554d}
.story-expert-exp b{margin-right:6px;font-size:36px;line-height:1.1;color:#292622}
.story-article .story-expert-body p{margin:6px 0 0;font-size:16px;line-height:1.45;color:#3b352d}
@media (max-width:760px){
  .story-expert{grid-template-columns:1fr}
  .story-expert-photo img{height:340px;object-fit:cover;object-position:center top}
  .story-expert-body{padding:18px 18px 20px}
  .story-expert-body strong{font-size:22px}
  .story-article .story-expert-body p{font-size:16px}
}
@media (max-width:760px){.story-plan-total{align-items:center}.story-plan-total strong{font-size:15px}.story-article .story-plan-pay{font-size:12px}}
