/* Страница «История фармации» — стили из дизайн-макета (PagesDesign/Pharmnews - История фармации.html),
   scoped под .history-page. Контейнер main для этой страницы прозрачный (см. низ файла). */

.history-page{--slate:#495568;--gold:#b98a2e;--wa:#25d366}

/* HERO */
.history-page .hero{margin-top:16px;border-radius:20px;overflow:hidden;position:relative;color:#fff;background:linear-gradient(135deg,#2c3442,#495568 70%,#0f766e 150%);padding:54px 50px}
.history-page .hero::before{content:"";position:absolute;inset:0;opacity:.4;background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);background-size:34px 34px}
.history-page .hero::after{content:"";position:absolute;right:-90px;top:-90px;width:340px;height:340px;border-radius:50%;background:rgba(74,204,212,.12)}
.history-page .hero-in{position:relative;max-width:760px}
.history-page .hero .kick{font-size:12.5px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#8de3da;margin-bottom:14px}
.history-page .hero h1{font-family:"Source Serif 4",serif;font-size:46px;font-weight:700;line-height:1.06;letter-spacing:-.025em;color:#fff}
.history-page .hero .lead{font-size:19px;color:rgba(255,255,255,.9);margin-top:14px;font-weight:500;text-align:left}
.history-page .hero p.desc{font-size:15px;color:rgba(255,255,255,.78);margin-top:14px;line-height:1.65;max-width:64ch;text-align:left}
.history-page .hero-stats{display:flex;gap:34px;margin-top:28px;flex-wrap:wrap}
.history-page .hero-stats .hs b{font-family:"Source Serif 4",serif;font-size:30px;font-weight:700;color:#fff}
.history-page .hero-stats .hs span{display:block;font-size:12.5px;color:rgba(255,255,255,.66);margin-top:2px}

/* section shell */
.history-page .sec{margin-top:30px}
.history-page .sec-head{display:flex;align-items:center;gap:14px;margin-bottom:20px}
.history-page .sec-bar{width:6px;height:34px;border-radius:3px;background:var(--cyan)}
.history-page .sec-head h2{font-family:"Kanyon","Source Serif 4",serif;font-size:30px;font-weight:700;text-transform:uppercase;letter-spacing:.01em;color:var(--slate);margin:0}
.history-page .sec-head .sl{margin-left:auto;font-size:14px;font-weight:600;color:var(--primary);display:inline-flex;align-items:center;gap:6px}
.history-page .sec-head .sl svg{width:15px;height:15px}

/* READ STORIES */
.history-page .stories{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.history-page .story{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:.18s;cursor:pointer;color:inherit;text-decoration:none}
.history-page .story:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg,0 24px 60px -28px rgba(16,30,38,.4));border-color:var(--primary);text-decoration:none}
.history-page .story-media{height:196px;position:relative;overflow:hidden;background:linear-gradient(135deg,var(--primary-tint,#e4f1ef),var(--surface-2))}
.history-page .story-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:.5s;margin:0;border-radius:0}
.history-page .story:hover .story-media img{transform:scale(1.05)}
.history-page .story-media .chip{position:absolute;top:13px;left:13px;background:rgba(73,85,104,.86);color:#fff;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;padding:5px 11px;border-radius:999px}
.history-page .story-body{padding:18px 20px 20px;display:flex;flex-direction:column;flex:1}
.history-page .story-body .sd{font-size:12px;color:var(--faint,#93a2ab);font-weight:500;margin-bottom:8px}
.history-page .story-body h3{font-family:"Source Serif 4",serif;font-size:20px;font-weight:600;line-height:1.24;color:var(--ink);letter-spacing:-.01em;margin:0}
.history-page .story:hover h3{color:var(--primary)}
.history-page .story-body p{font-size:13.5px;color:var(--muted);margin:9px 0 0;flex:1;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-align:left}

/* two-col: hero form + partner */
.history-page .duo{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:30px}
.history-page .panel{background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden}
.history-page .panel-head{padding:22px 28px;color:#fff;display:flex;align-items:center;gap:14px}
.history-page .panel-head.teal{background:linear-gradient(135deg,#0a534d,#0f766e)}
.history-page .panel-head.slate{background:linear-gradient(135deg,#3a4453,#495568)}
.history-page .panel-head .ph-i{width:46px;height:46px;border-radius:12px;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.22);display:grid;place-items:center;flex:none}
.history-page .panel-head .ph-i svg{width:24px;height:24px;color:#8de3da}
.history-page .panel-head h2{font-family:"Source Serif 4",serif;font-size:23px;font-weight:700;line-height:1.15;color:#fff;margin:0}
.history-page .panel-head p{font-size:13px;color:rgba(255,255,255,.82);margin:3px 0 0;text-align:left}
.history-page .panel-body{padding:24px 28px 28px}
/* form */
.history-page .fld{margin-bottom:14px}
.history-page .fld label{display:block;font-size:12.5px;font-weight:600;color:var(--ink-soft);margin-bottom:6px}
.history-page .fld label .req{color:var(--accent)}
.history-page .fld input,.history-page .fld textarea{width:100%;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);padding:0 14px;font-family:inherit;font-size:14px;color:var(--ink)}
.history-page .fld input{height:46px}
.history-page .fld textarea{padding:11px 14px;min-height:88px;resize:vertical;line-height:1.5}
.history-page .fld input:focus,.history-page .fld textarea:focus{outline:none;border-color:var(--primary);background:var(--surface);box-shadow:0 0 0 4px var(--primary-tint,#e4f1ef)}
.history-page .fld-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.history-page .submit{width:100%;height:50px;border:none;border-radius:11px;background:var(--slate);color:#fff;font-family:inherit;font-weight:700;font-size:15px;cursor:pointer;margin-top:4px;display:inline-flex;align-items:center;justify-content:center;gap:9px}
.history-page .submit:hover{background:#3a4453}
.history-page .submit svg{width:17px;height:17px}
.history-page .consent-row{display:flex;align-items:flex-start;gap:8px;margin:2px 0 12px;font-size:12.5px;color:var(--muted)}
.history-page .consent-row input{width:15px;height:15px;margin-top:2px;flex:none;accent-color:var(--primary)}
.history-page .form-msg{background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;padding:10px 14px;border-radius:10px;margin-bottom:14px;font-size:14px}
.history-page .form-ok{text-align:center;padding:20px 10px}
.history-page .form-ok .oi{width:60px;height:60px;border-radius:50%;background:var(--primary-tint,#e4f1ef);color:var(--primary);display:grid;place-items:center;margin:0 auto 14px}
.history-page .form-ok .oi svg{width:32px;height:32px}
.history-page .form-ok h3{font-family:"Source Serif 4",serif;font-size:20px;font-weight:700;margin:0}
.history-page .form-ok p{font-size:14px;color:var(--muted);margin:7px 0 0}

/* partner */
.history-page .partner-body p.lead{font-size:14.5px;color:var(--ink-soft);margin:0 0 16px;text-align:left}
.history-page .benefits{list-style:none;margin:0 0 20px;padding:0}
.history-page .benefits li{position:relative;padding:8px 0 8px 30px;font-size:14px;color:var(--ink-soft);border-bottom:1px solid var(--line-2)}
.history-page .benefits li:last-child{border-bottom:none}
.history-page .benefits li svg{position:absolute;left:0;top:9px;width:19px;height:19px;color:var(--primary)}
.history-page .sales{background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:18px 20px}
.history-page .sales .st{font-size:11.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--faint,#93a2ab);margin-bottom:12px}
.history-page .sales-row{display:flex;align-items:center;gap:12px;padding:7px 0}
.history-page .sales-row .sr-i{width:36px;height:36px;border-radius:10px;background:var(--primary-tint,#e4f1ef);color:var(--primary);display:grid;place-items:center;flex:none}
.history-page .sales-row .sr-i svg{width:18px;height:18px}
.history-page .sales-row b{font-size:15px;color:var(--ink);display:block}
.history-page .sales-row span{font-size:12px;color:var(--muted)}

/* HEROES (секция «Гордость казахстанской фармации» — в стиле дизайна) */
.history-page .heroes-sec .leaders-grid{margin-top:0}
/* карточка героя — ссылка на страницу с полной биографией (вместо всплывающей подсказки) */
.history-page .leader-card{display:block;color:inherit;cursor:pointer;transition:.18s}
.history-page .leader-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg,0 24px 60px -28px rgba(16,30,38,.4));border-color:var(--primary)}
.history-page .leader-card .leader-tip{display:none}
.history-page .leader-more{display:inline-flex;align-items:center;gap:5px;margin-top:8px;font-size:12.5px;font-weight:600;color:var(--primary)}
.history-page .leader-more::after{content:"→"}

/* СТРАНИЦА ГЕРОЯ: фото + полная биография */
.history-page .hero-detail{margin-top:16px;background:var(--surface);border:1px solid var(--line);border-radius:20px;overflow:hidden;display:grid;grid-template-columns:300px 1fr;gap:34px;padding:34px 38px}
.history-page .hd-photo img{width:100%;border-radius:16px;object-fit:cover;box-shadow:var(--shadow)}
.history-page .hd-initials{display:grid;place-items:center;width:100%;aspect-ratio:3/4;border-radius:16px;background:linear-gradient(135deg,var(--primary-tint,#e4f1ef),#f6f8f8);color:var(--primary);font-family:"Source Serif 4",serif;font-size:72px;font-weight:700}
.history-page .hd-kick{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);margin-bottom:10px}
.history-page .hd-body h1{font-family:"Source Serif 4",serif;font-size:34px;font-weight:700;line-height:1.12;letter-spacing:-.015em;color:var(--ink);margin:0}
.history-page .hd-pos{font-size:15px;color:var(--muted);margin-top:8px}
.history-page .hd-exp{display:inline-block;margin-top:12px;background:var(--primary-tint,#e4f1ef);color:var(--primary-deep,#0a534d);font-size:12.5px;font-weight:600;padding:5px 12px;border-radius:999px}
.history-page .hd-bio{margin-top:18px;font-size:15.5px;line-height:1.7;color:var(--ink-soft)}
.history-page .hd-bio p{margin:0 0 12px;text-align:justify}
.history-page .hd-bio img{max-width:100%;height:auto;border-radius:10px;margin:12px 0}
.history-page .hd-bio blockquote{border-left:4px solid var(--cyan);margin:12px 0;padding:4px 0 4px 16px;color:#555}
.history-page .hd-bio table{border-collapse:collapse}
.history-page .hd-bio table td,.history-page .hd-bio table th{border:1px solid #d7dede;padding:6px 10px}
.history-page .hd-bio a{color:var(--primary)}
.history-page .hd-back{display:inline-block;margin-top:16px;font-size:14px;font-weight:600;color:var(--primary)}
@media(max-width:760px){
  .history-page .hero-detail{grid-template-columns:1fr;padding:22px;gap:20px}
  .history-page .hd-photo img,.history-page .hd-initials{max-width:260px}
  .history-page .hd-body h1{font-size:27px}
}

/* BOOK */
.history-page .book{margin-top:30px;background:var(--surface);border:1px solid var(--line);border-radius:20px;overflow:hidden;display:grid;grid-template-columns:340px 1fr}
.history-page .book-cover{position:relative;background:linear-gradient(150deg,#0a534d,#0f766e 60%,#13897e);display:flex;align-items:center;justify-content:center;padding:40px;overflow:hidden}
.history-page .book-cover::before{content:"";position:absolute;inset:0;opacity:.4;background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);background-size:26px 26px}
.history-page .book-cover img{position:relative;width:248px;border-radius:6px 12px 12px 6px;box-shadow:0 26px 50px -18px rgba(0,0,0,.5);margin:0}
/* видео-обложка заполняет всю область (без зелёной рамки .book-cover) */
.history-page .book-cover.has-video{padding:0;aspect-ratio:540/1100}
.history-page .book-cover.has-video::before{display:none}
.history-page .book-cover.has-video video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:0;box-shadow:none;margin:0;background:#0a534d}
/* плейсхолдер обложки, когда фото книги не задано */
.history-page .book-obj{position:relative;width:210px;aspect-ratio:3/4;border-radius:6px 12px 12px 6px;background:linear-gradient(135deg,#fff,#eef3f2);box-shadow:0 26px 50px -18px rgba(0,0,0,.5),inset 7px 0 0 rgba(0,0,0,.06);padding:26px 22px;display:flex;flex-direction:column;overflow:hidden}
.history-page .book-obj .bo-k{font-size:9.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--accent)}
.history-page .book-obj h3{font-family:"Source Serif 4",serif;font-size:21px;font-weight:700;line-height:1.16;color:var(--ink);margin:8px 0 0}
.history-page .book-obj .bo-sub{font-size:11px;color:var(--muted);margin-top:auto}
.history-page .book-obj .bo-logo{margin-top:8px;font-family:"Source Serif 4",serif;font-weight:700;font-size:13px;color:var(--primary)}
.history-page .book-info{padding:34px 38px}
.history-page .book-info .bi-k{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);margin-bottom:10px}
.history-page .book-info h2{font-family:"Source Serif 4",serif;font-size:30px;font-weight:700;line-height:1.12;letter-spacing:-.015em;color:var(--ink);margin:0}
.history-page .book-info .bdesc{font-size:15px;color:var(--ink-soft);margin:14px 0 0;line-height:1.65;text-align:left}
.history-page .book-info .bfeat{list-style:none;margin:18px 0;padding:0}
.history-page .book-info .bfeat li{position:relative;padding:6px 0 6px 26px;font-size:14px;color:var(--ink-soft)}
.history-page .book-info .bfeat li svg{position:absolute;left:0;top:8px;width:18px;height:18px;color:var(--primary)}
/* price tiers */
.history-page .tiers{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}
.history-page .tier{border:1px solid var(--line);border-radius:12px;padding:16px;text-align:center;position:relative}
.history-page .tier.feat{border-color:var(--primary);box-shadow:0 0 0 1px var(--primary)}
.history-page .tier .badge{position:absolute;top:-9px;left:50%;transform:translateX(-50%);font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#fff;background:var(--primary);padding:3px 10px;border-radius:999px}
.history-page .tier .tn{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.history-page .tier .tp{font-family:"Source Serif 4",serif;font-size:24px;font-weight:700;color:var(--ink);margin:6px 0 2px}
.history-page .tier .tp small{font-size:13px;color:var(--muted);font-weight:400}
.history-page .tier .td{font-size:11.5px;color:var(--faint,#93a2ab)}
/* buy buttons */
.history-page .buy-row{display:flex;gap:12px;flex-wrap:wrap}
.history-page .buy{flex:1;min-width:200px;height:54px;border-radius:12px;font-family:inherit;font-weight:700;font-size:15px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:10px;border:none;transition:.16s}
.history-page .buy svg{width:18px;height:18px}
.history-page .buy.print{background:var(--slate);color:#fff}
.history-page .buy.print:hover{background:#3a4453}
.history-page .buy.digital{background:var(--surface);color:var(--slate);border:1.5px solid var(--line)}
.history-page .buy.digital:hover{border-color:var(--primary);color:var(--primary)}
.history-page .buy-note{margin-top:12px;font-size:12.5px;color:var(--muted);display:flex;align-items:center;gap:7px}
.history-page .buy-note svg{width:15px;height:15px;color:var(--wa)}

/* whatsapp modal */
.history-page .wa-overlay{position:fixed;inset:0;z-index:200;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(16,30,38,.55);backdrop-filter:blur(3px)}
.history-page .wa-overlay.open{display:flex}
.history-page .wa-modal{width:100%;max-width:440px;background:var(--surface);border-radius:18px;overflow:hidden;box-shadow:var(--shadow-lg,0 24px 60px -28px rgba(16,30,38,.4))}
.history-page .wa-head{background:var(--wa);color:#fff;padding:22px 26px;display:flex;align-items:center;gap:13px;position:relative}
.history-page .wa-head .wi{width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.2);display:grid;place-items:center;flex:none}
.history-page .wa-head .wi svg{width:24px;height:24px}
.history-page .wa-head h3{font-size:18px;font-weight:700;color:#fff;margin:0}
.history-page .wa-head p{font-size:12.5px;opacity:.9;margin:0;text-align:left}
.history-page .wa-close{position:absolute;top:16px;right:16px;width:32px;height:32px;border-radius:8px;border:none;background:rgba(255,255,255,.2);color:#fff;cursor:pointer;display:grid;place-items:center}
.history-page .wa-close svg{width:17px;height:17px}
.history-page .wa-body{padding:22px 26px 26px}
.history-page .wa-body .wb-q{font-size:14px;color:var(--ink-soft);margin:0 0 16px;text-align:left}
.history-page .wa-body .wb-q b{color:var(--ink)}
.history-page .wa-go{width:100%;height:52px;border-radius:12px;background:var(--wa);color:#fff;font-family:inherit;font-weight:700;font-size:15.5px;border:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:10px;text-decoration:none}
.history-page .wa-go:hover{background:#1eb858;text-decoration:none;color:#fff}
.history-page .wa-go svg{width:19px;height:19px}
.history-page .wa-phone{text-align:center;font-size:13px;color:var(--muted);margin-top:12px}
.history-page .wa-phone b{color:var(--ink)}

/* main-обёртка сайта для этой страницы — без белой карточки, как в дизайне */
main:has(.history-page){background:transparent;border:none;box-shadow:none;padding:0}

@media(max-width:980px){
  .history-page .stories{grid-template-columns:1fr 1fr}
  .history-page .duo{grid-template-columns:1fr}
  .history-page .book{grid-template-columns:1fr}
  .history-page .book-cover{padding:34px}
}
@media(max-width:760px){
  .history-page .hero{padding:32px 22px}
  .history-page .hero h1{font-size:32px}
  .history-page .sec-head h2{font-size:24px}
  .history-page .stories{grid-template-columns:1fr}
  .history-page .book-info{padding:26px 22px}
  .history-page .tiers{grid-template-columns:1fr}
  .history-page .fld-row{grid-template-columns:1fr}
}
