/* Общие стили страниц статей — те же токены, что на главной */
@font-face {
  font-family: 'Mazzard H';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('https://db.onlinewebfonts.com/t/eb5b5ee332420add9a40ee988cb6ac37.woff2') format('woff2'),
       url('https://db.onlinewebfonts.com/t/eb5b5ee332420add9a40ee988cb6ac37.woff') format('woff');
}
@font-face {
  font-family: 'Mazzard H';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('https://db.onlinewebfonts.com/t/875fffdfa62169a0f131e90f37f1faf4.woff2') format('woff2'),
       url('https://db.onlinewebfonts.com/t/875fffdfa62169a0f131e90f37f1faf4.woff') format('woff');
}
:root {
  --bg: #ffffff;
  --soft: rgb(249, 249, 249);
  --ink: rgb(26, 11, 84);
  --muted: #6e6590;
  --g1: rgb(43, 167, 255);
  --g2: rgb(202, 69, 255);
  --g3: rgb(254, 136, 27);
  --grad: linear-gradient(90deg, var(--g1), var(--g2) 50%, var(--g3));
  --grad-deep: linear-gradient(90deg, #1a6fc4, #9a2ad6 50%, #c45a08);
  --shadow: 0 3px 9.1px #3f4a7e0d, 0 1px 29px #3f4a7e1a;
  --font: 'Mazzard H', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }

.grad-text {
  background-image: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-bottom: .12em;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.pill i { width: 12px; height: 12px; border-radius: 50%; background: var(--grad); }

nav {
  margin: 24px auto 0;
  width: min(100% - 32px, 900px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 16px; color: var(--ink); text-decoration: none; }
.brand i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; }
.nav-cta { padding: 11px 18px; border-radius: 11px; background: var(--grad-deep); color: #fff; font-size: 14px; font-weight: 500; text-decoration: none; }

.article { width: min(100% - 32px, 760px); margin: clamp(40px, 6vw, 80px) auto 0; }
.back { color: var(--muted); font-size: 14px; text-decoration: none; }
.back:hover { color: var(--ink); }
.article header { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 24px; }
.article h1 { font-weight: 500; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.15; }
.article .sub { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--muted); }
.article .meta { font-size: 14px; color: var(--muted); }
.cover { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; border-radius: 24px; margin: 32px 0 8px; box-shadow: var(--shadow); }

.body { font-size: 17px; line-height: 1.75; color: #3b3360; }
.body > * + * { margin-top: 18px; }
.body h2 { margin-top: 44px; font-weight: 500; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; color: var(--ink); }
.body ul { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.body li { position: relative; padding-left: 26px; }
.body li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); }
.body blockquote {
  margin-top: 32px;
  padding: 22px 26px;
  border-radius: 18px;
  background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
  border: 2px solid transparent;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
}
.note { margin-top: 36px; padding: 16px 20px; border-radius: 14px; background: var(--soft); font-size: 14px; line-height: 1.6; color: var(--muted); }

.cta {
  margin-top: 48px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.cta h2 { font-weight: 500; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; }
.cta p { color: var(--muted); line-height: 1.6; max-width: 32rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; margin-top: 6px; padding: 16px 28px; border-radius: 14px; background: var(--grad-deep); color: #fff; font-size: 16px; font-weight: 500; text-decoration: none; }

.more { width: min(100% - 32px, 1100px); margin: clamp(56px, 7vw, 96px) auto 0; }
.more h2 { font-weight: 500; font-size: clamp(24px, 2.8vw, 34px); margin-bottom: 24px; text-align: center; }
.more ul { list-style: none; display: grid; gap: 16px; }
.more a { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; font-weight: 500; line-height: 1.35; }
.more img { width: 84px; height: 64px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
@media (min-width: 900px) { .more ul { grid-template-columns: repeat(2, 1fr); } }


/* ── Футер ── */
.site-footer { margin-top: 0; padding: clamp(40px, 5vw, 64px) clamp(16px, 4vw, 60px) 32px; border-top: 1px solid rgba(26, 11, 84, .08); background: var(--soft); color: var(--muted); font-size: 14px; }
.f-cols { max-width: 1100px; margin: 0 auto; display: grid; gap: 32px; }
.f-brand p { margin-top: 14px; line-height: 1.6; max-width: 22rem; }
.site-footer h4 { margin-bottom: 14px; font-size: 15px; font-weight: 500; color: var(--ink); }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer ul a { color: var(--muted); text-decoration: none; transition: color .2s; }
.site-footer ul a:hover { color: var(--ink); }
.f-link { display: inline-flex; align-items: center; gap: 10px; }
.f-link svg { width: 22px; height: 22px; flex-shrink: 0; }
.f-articles a { line-height: 1.4; }
.f-bottom { max-width: 1100px; margin: 36px auto 0; padding-top: 22px; border-top: 1px solid rgba(26, 11, 84, .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; }
.disclaimer { flex-basis: 100%; margin-top: 8px; text-align: center; font-size: 12px; line-height: 1.7; }
@media (min-width: 640px) { .f-cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .f-cols { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.site-footer { margin-top: 80px; }


/* ── Блик по фото ── */
.flash { position: relative; display: block; overflow: hidden; isolation: isolate; }
.flash > img { display: block; }
.flash::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .6) 50%, transparent 60%) 100% 0 / 300% 100% no-repeat;
  opacity: 0;
}
.flash.is-on::after { animation: flash 1.1s ease-in-out; }
.flash.cut::after { -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; }
@keyframes flash {
  0% { background-position: 100% 0; opacity: 1; }
  100% { background-position: 0 0; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .flash.is-on::after { animation: none; } }

/* иконки на кнопках */
.ico { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; }
.nav-cta .ico { width: 18px; height: 18px; }
.btn { gap: 10px; }
.btn .ico { width: 22px; height: 22px; }
