/* Блог бронировалка.рф/blog/ — вариант «Журнал» + выжимка карточками. Токены — как у лендинга. */
:root{
  --bg:#ffffff;--ink:#16151d;--muted:#6a6b7e;--line:#e4e4ee;--card:#f4f4f9;--bar:#ffffff;
  --accent:#5645d4;--accent-ink:#4a39c8;--accent-soft:#ebe8fc;--sun:#f9e79f;--sun-ink:#4d3d00;
  --violet:#5645d4;--violet-soft:#ebe8fc;--violet-ink:#4a39c8;
  --orange:#c2410c;--orange-soft:#fdeadf;--orange-ink:#9a3412;
  --teal:#0f766e;--teal-soft:#dcf3ef;--teal-ink:#0f5f58;
  --sunc:#f9e79f;--sun-soft:#fbf3cf;--sunc-ink:#4d3d00;
  --f-display:"TikTok Sans","Golos Text",system-ui,sans-serif;
  --f-body:"Golos Text",system-ui,-apple-system,"Segoe UI",sans-serif;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#0e1016;--ink:#eef0f6;--muted:#9598ab;--line:#2c303d;--card:#1d2029;--bar:#0e1016;
  --accent:#5f4fe2;--accent-ink:#ada3f8;--accent-soft:#29244a;
  --violet-soft:#29244a;--violet-ink:#ada3f8;--orange-soft:#3a1d0f;--orange-ink:#fb923c;
  --teal-soft:#0f2f2b;--teal-ink:#2dd4bf;--sun-soft:#3a3214;--sunc-ink:#f3df8a;color-scheme:dark;
}}
/* Тема, выбранная кнопкой (общий с лендингом ключ localStorage «bron-theme»), сильнее системной. */
:root[data-theme="dark"]{
  --bg:#0e1016;--ink:#eef0f6;--muted:#9598ab;--line:#2c303d;--card:#1d2029;--bar:#0e1016;
  --accent:#5f4fe2;--accent-ink:#ada3f8;--accent-soft:#29244a;
  --violet-soft:#29244a;--violet-ink:#ada3f8;--orange-soft:#3a1d0f;--orange-ink:#fb923c;
  --teal-soft:#0f2f2b;--teal-ink:#2dd4bf;--sun-soft:#3a3214;--sunc-ink:#f3df8a;color-scheme:dark;
}
:root[data-theme="light"]{color-scheme:light}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:120px}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}
h1,h2,h3,p{margin:0}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
a:focus-visible,button:focus-visible{outline:3px solid var(--accent-ink);outline-offset:2px;border-radius:6px}
.wrap{max-width:1120px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}

.preview-ribbon{background:var(--sun);color:var(--sun-ink);text-align:center;font-size:14px;font-weight:600;padding:8px 16px}
.top{position:sticky;top:0;z-index:5;background:var(--bar);border-bottom:1px solid var(--line)}
.bar{display:flex;align-items:center;gap:10px;height:60px}
.brand{display:flex;align-items:center;gap:10px;font-weight:600;flex:1;min-width:0}
.brand .logo{width:36px;height:36px;flex-shrink:0}
.brand small{font-family:var(--f-display);font-size:13px;color:var(--accent-ink);background:var(--accent-soft);border-radius:8px;padding:2px 8px}
.theme-btn{width:40px;height:40px;border-radius:12px;border:1px solid var(--line);background:transparent;color:var(--ink);display:grid;place-items:center;cursor:pointer;flex-shrink:0;padding:0}
.theme-btn:hover{background:var(--card)}
.theme-btn svg{width:19px;height:19px;display:block}
.theme-btn .sun,.theme-btn[hidden],.theme-link[hidden]{display:none}
/* В шапке телефона кнопке нет места — там тему меняют ссылкой в подвале. */
@media(max-width:519px){.bar .theme-btn{display:none}}
.theme-link{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer}
.theme-link:hover{color:var(--ink);text-decoration:underline}
:root[data-theme="dark"] .theme-btn .sun{display:block}
:root[data-theme="dark"] .theme-btn .moon{display:none}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .theme-btn .sun{display:block}:root:not([data-theme="light"]) .theme-btn .moon{display:none}}
.theming,.theming *,.theming *::before,.theming *::after{transition:background-color .35s ease,color .35s ease,border-color .35s ease,fill .35s ease!important}
.wide-only{display:none}
@media(min-width:560px){.wide-only{display:inline}}
.btn{display:inline-flex;align-items:center;justify-content:center;background:var(--accent);color:#fff;font-weight:600;font-size:15px;border-radius:12px;padding:10px 16px;min-height:44px;white-space:nowrap}
.btn:hover{background:var(--accent-ink)}
.btn.lg{font-size:17px;padding:14px 22px;border-radius:14px}
.tabs{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;border-top:1px solid var(--line)}
.tabs::-webkit-scrollbar{display:none}
.tabs a{flex-shrink:0;padding:11px 12px;font-size:15px;font-weight:500;color:var(--muted);border-bottom:2px solid transparent;min-height:44px}
.tabs a:hover{color:var(--ink)}
.tabs a.on{color:var(--ink);border-color:var(--ink)}

.tag{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;border-radius:999px;padding:4px 10px;white-space:nowrap}
.tag i{width:7px;height:7px;border-radius:50%;display:block;background:currentColor}
.t-violet{background:var(--violet-soft);color:var(--violet-ink)}
.t-orange{background:var(--orange-soft);color:var(--orange-ink)}
.t-teal{background:var(--teal-soft);color:var(--teal-ink)}
.t-sun{background:var(--sun-soft);color:var(--sunc-ink)}
.meta{font-size:14px;color:var(--muted)}
.crumbs{font-size:14px;color:var(--muted);margin-bottom:12px}
.crumbs a:hover{color:var(--ink);text-decoration:underline}

.hero{padding:28px 0 8px}
.hero h1{font-family:var(--f-display);font-weight:700;font-size:clamp(28px,5vw,52px);line-height:1.06;letter-spacing:-.035em;max-width:18ch;text-wrap:balance}
.hero p{color:var(--muted);font-size:clamp(16px,2vw,18px);margin-top:10px;max-width:48ch}

.cover{border-radius:20px;aspect-ratio:1200/630;display:flex;align-items:flex-end;padding:18px;position:relative;overflow:hidden;color:#fff}
.cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cover span{font-family:var(--f-display);font-weight:700;font-size:clamp(16px,2vw,22px);letter-spacing:-.02em;position:relative}
.cover em{position:absolute;left:20px;bottom:8px;font-family:var(--f-display);font-style:normal;font-weight:700;font-size:clamp(72px,9vw,120px);line-height:1;opacity:.9}
.cover:not(:has(img))::before{content:"";position:absolute;right:-40px;top:-40px;width:200px;height:200px;border-radius:50%;background:rgba(255,255,255,.14)}
.cover:not(:has(img))::after{content:"";position:absolute;right:50px;top:70px;width:90px;height:90px;border-radius:24px;background:rgba(255,255,255,.12);transform:rotate(14deg)}
.c-violet{background:var(--violet)}.c-orange{background:var(--orange)}.c-teal{background:var(--teal)}.c-sun{background:var(--sunc);color:#4d3d00}

.feat{display:grid;gap:16px;margin:20px 0 28px;align-items:center}
.feat h2{font-family:var(--f-display);font-weight:700;font-size:clamp(22px,3vw,32px);line-height:1.15;letter-spacing:-.02em;margin:12px 0 8px;text-wrap:balance}
.feat h2 a:hover,.card h3 a:hover{color:var(--accent-ink)}
.feat p{color:var(--muted);font-size:17px;margin-bottom:12px}
.grid{display:grid;gap:28px 24px;padding:24px 0 36px;border-top:1px solid var(--line)}
.card{display:flex;flex-direction:column;gap:8px;min-width:0}
.card .cover{border-radius:14px;aspect-ratio:16/9}
.card .cover span{font-size:16px}
.card .cover em{font-size:72px}
.card h3{font-size:19px;line-height:1.3}
.card p{color:var(--muted);font-size:15px}
.empty{color:var(--muted);padding:24px 0 40px}
.pager{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:32px;color:var(--muted);font-size:15px}
.pager a{color:var(--accent-ink);font-weight:600;padding:10px 0}

.band{background:var(--accent);color:#fff;border-radius:24px;padding:24px;display:flex;flex-direction:column;gap:14px;margin:8px 0 40px}
.band b{font-family:var(--f-display);font-size:clamp(20px,3vw,26px);line-height:1.15;display:block}
.band p{opacity:.88;margin-top:6px;max-width:46ch}
.band .btn{background:#fff;color:#4a39c8;align-self:flex-start}
.band .btn:hover{background:#ebe8fc}
@media(min-width:760px){
  .feat{grid-template-columns:1.2fr 1fr;gap:32px}
  .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .band{flex-direction:row;align-items:center;justify-content:space-between;padding:32px 40px}
}
@media(min-width:560px) and (max-width:759px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* продающий блок в середине статьи: квадратная карточка, значки-ачивки (1 → 10 → 100 записей) — акцент */
.promo{position:relative;clip-path:inset(0 round 24px);isolation:isolate;margin:8px auto 30px;max-width:420px;aspect-ratio:1/1;border-radius:24px;padding:16px 20px 18px;color:#fff;
  background:radial-gradient(120% 70% at 50% 0%,#7a6af0 0%,rgba(122,106,240,0) 65%),linear-gradient(160deg,#5645d4 0%,#3b2db0 100%);
  display:flex;flex-direction:column;justify-content:space-between;gap:6px;}
.promo-art{position:relative;flex:1 0 88px}
.promo-rays{position:absolute;left:50%;top:50%;width:260px;height:260px;margin:-130px 0 0 -130px;border-radius:50%;z-index:-1;
  background:repeating-conic-gradient(from 0deg,rgba(255,255,255,.13) 0 8deg,rgba(255,255,255,0) 8deg 22deg);
  -webkit-mask:radial-gradient(closest-side,#000 25%,transparent 100%);mask:radial-gradient(closest-side,#000 25%,transparent 100%)}
.promo-badge{position:absolute;top:50%;left:50%;display:block;line-height:0;filter:drop-shadow(0 6px 10px rgba(20,10,80,.45))}
.promo-badge svg{width:100%;height:auto;overflow:visible}
.promo-badge .glare{opacity:.3;transform:translateX(-40px) skewX(-20deg)}
.b1{width:56px;margin:-24px 0 0 -92px;transform:rotate(-10deg)}
.b2{width:66px;margin:-42px 0 0 -33px;z-index:1}
.b3{width:58px;margin:-22px 0 0 36px;transform:rotate(9deg)}
@media(min-width:600px){.b1{width:70px;margin:-30px 0 0 -112px}.b2{width:84px;margin:-54px 0 0 -42px}.b3{width:72px;margin:-28px 0 0 42px}}
.spark{position:absolute;width:10px;height:10px;background:#fff;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);opacity:.85}
.s1{left:12%;top:10%}.s2{right:14%;top:4%;width:8px;height:8px}.s3{right:8%;bottom:10%;width:8px;height:8px}
.promo-text{display:flex;flex-direction:column;gap:7px;min-width:0}
.promo-kicker{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:#dad5ff}
.promo-text b{font-family:var(--f-display);font-weight:700;font-size:20px;line-height:1.12;letter-spacing:-.02em;text-wrap:balance}
.promo-text p{color:#e6e2ff;font-size:14px;line-height:1.4;margin:0}
.promo-steps{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 16px}
.promo-steps li{font-size:12px;font-weight:600;background:rgba(255,255,255,.14);border-radius:999px;padding:4px 10px;position:relative}
.promo-steps li+li::before{content:"→";position:absolute;left:-13px;top:4px;font-size:11px;opacity:.6}
.promo .btn{background:#fff;color:#4a39c8;min-height:44px;padding:10px 16px;font-size:15px;margin-top:4px;text-decoration:none}
.promo .btn:hover{background:#ebe8fc}
.promo small{font-size:12px;color:#cfc8ff;text-align:center}
@media (prefers-reduced-motion:no-preference){
  .promo-badge{animation:pfloat 4s ease-in-out infinite}
  .b2{animation-delay:-1.3s}.b3{animation-delay:-2.6s}
  .promo-badge .glare{animation:psweep 7s ease-in-out infinite}
  .b2 .glare{animation-delay:1.2s}.b3 .glare{animation-delay:2.4s}
  .promo-rays{animation:pspin 60s linear infinite}
  .spark{animation:ptwinkle 2.4s ease-in-out infinite}.s2{animation-delay:.8s}.s3{animation-delay:1.6s}
}
@supports not (aspect-ratio:1/1){.promo{min-height:380px}}
@keyframes pfloat{50%{translate:0 -3px}}
@keyframes psweep{0%,30%{transform:translateX(-40px) skewX(-20deg)}75%,100%{transform:translateX(140px) skewX(-20deg)}}
@keyframes pspin{to{transform:rotate(360deg)}}
@keyframes ptwinkle{0%,100%{opacity:0;transform:scale(.3) rotate(0)}50%{opacity:.9;transform:scale(1) rotate(45deg)}}

/* статья */
.art{display:grid;gap:24px;padding:24px 0 32px}
.art header h1{font-family:var(--f-display);font-weight:700;font-size:clamp(26px,4.4vw,46px);line-height:1.08;letter-spacing:-.03em;margin-bottom:14px;max-width:22ch;text-wrap:balance}
.art header .meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.text{min-width:0;max-width:680px}
.art-cover{margin:0 0 24px}
.art-cover img{border-radius:18px;width:100%}
.short{margin-bottom:28px}
.short b{display:block;font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin-bottom:10px}
.cards{list-style:none;margin:0 -16px;padding:0 16px 4px;display:grid;grid-auto-flow:column;grid-auto-columns:72%;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.cards::-webkit-scrollbar{display:none}
.cards li{scroll-snap-align:start;background:var(--card);border-radius:18px;padding:16px;min-height:170px;display:flex;flex-direction:column;justify-content:space-between;gap:16px}
.cards span{font-family:var(--f-display);font-weight:700;font-size:26px;color:var(--accent-ink)}
.cards p{font-size:16px;font-weight:500;line-height:1.4}
@media(min-width:760px){.cards{margin:0;padding:0;grid-auto-flow:row;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}}
.prose{font-size:18px;line-height:1.65;overflow-wrap:break-word}
.prose>*{margin:0 0 18px}
.prose h2{font-family:var(--f-display);font-weight:700;font-size:24px;line-height:1.2;letter-spacing:-.02em;margin:36px 0 12px}
.prose h3{font-size:20px;line-height:1.3;margin:28px 0 10px}
.prose a{color:var(--accent-ink);text-decoration:underline;text-underline-offset:3px}
.prose ul,.prose ol{padding-left:24px}
.prose li+li{margin-top:6px}
.prose blockquote{padding:4px 0 4px 18px;border-left:4px solid var(--accent);font-size:20px;font-weight:500}
.prose blockquote p{margin:0}
.prose table{border-collapse:collapse;width:100%;font-size:16px;display:block;overflow-x:auto}
.prose th,.prose td{border-bottom:1px solid var(--line);padding:8px 10px;text-align:left}
.prose img{border-radius:14px}
.prose figure{margin:28px 0;text-align:center}
.prose figure img{margin:0 auto;width:auto;max-height:620px;box-shadow:0 0 0 1px var(--line)}
.prose figcaption{margin-top:10px;font-size:15px;line-height:1.4;color:var(--muted)}
@media(max-width:519px){.prose figure img{max-height:460px}}
.toc{display:none}
.side{display:none}
.toc b{display:block;font-size:14px;color:var(--muted);margin-bottom:10px}
.toc ol{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:8px;font-size:15px;color:var(--muted)}
.toc a:hover{color:var(--ink)}
.box{background:var(--card);border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:10px}
.box b{font-family:var(--f-display);font-size:18px;line-height:1.2}
.box p{color:var(--muted);font-size:15px}
.more h2{font-family:var(--f-display);font-size:22px;letter-spacing:-.02em;margin-bottom:16px}
@media(min-width:1000px){
  .art{grid-template-columns:200px minmax(0,680px) 260px;gap:40px}
  .art header{grid-column:1/-1}
  .toc{display:block;position:sticky;top:130px;align-self:start}
  .side{display:block;position:sticky;top:130px;align-self:start}
  .text{grid-column:2}
  .side{grid-column:3}
}

.foot{border-top:1px solid var(--line);padding:24px 0 calc(24px + env(safe-area-inset-bottom,0px));color:var(--muted);font-size:14px}
.foot .wrap{display:flex;flex-wrap:wrap;gap:8px 20px;justify-content:space-between}
.foot nav{display:flex;flex-wrap:wrap;gap:8px 16px}
.foot a{padding:4px 0}
.foot a:hover{color:var(--ink)}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
