/* ===== Михаил Шутов — official site ===== */
:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --ink: #14181d;
  --muted: #5c6672;
  --line: #e4e1da;
  --brand: #123e73;
  --brand-dark: #0c2c54;
  --accent: #0b7a5c;
  --amber: #b97a12;
  --danger: #b3372b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 24, 29, .05), 0 8px 28px rgba(20, 24, 29, .07);
  --font: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---- topbar ---- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 246, 243, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 17px; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .5px;
}
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--ink); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--brand); }
.nav-cta {
  background: var(--brand); color: #fff !important;
  padding: 9px 18px; border-radius: 99px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--brand-dark); }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; }
.themer { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.themer select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 99px; padding: 6px 14px; font-family: var(--font);
  font-size: 13px; font-weight: 500; cursor: pointer;
}
.themer select:hover { border-color: var(--brand); color: var(--brand); }
.burger span { display: block; height: 2px; background: var(--ink); margin: 5px 8px; border-radius: 2px; }

/* ---- live bar ---- */
.live { background: var(--ink); color: #cdd6e0; font-size: 13px; }
.live-in { display: flex; align-items: center; gap: 22px; padding: 8px 24px; flex-wrap: wrap; }
.live-badge {
  display: inline-flex; align-items: center; gap: 7px;
  color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 11.5px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #e5484d;
  animation: liveBlink 1.6s ease-in-out infinite;
}
@keyframes liveBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.live-item b { color: #fff; font-weight: 700; }
.live-news { color: #9fc1ec; margin-left: auto; }
.live-item.pulse { animation: livePulse 1s ease-out; border-radius: 6px; }
@keyframes livePulse { 0% { background: rgba(159, 193, 236, .35); } 100% { background: transparent; } }
@media (max-width: 760px) {
  .live-news { display: none; }
  .live-in { padding: 6px 16px; gap: 2px 14px; font-size: 12px; }
  .live-badge { font-size: 10.5px; }
}

/* ---- hero ---- */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.overline {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); font-weight: 600; margin-bottom: 18px;
  padding-left: 14px; border-left: 3px solid var(--brand);
}
.hero h1 { font-size: clamp(44px, 7vw, 76px); line-height: 1.02; font-weight: 800; letter-spacing: -.02em; }
.tagline { font-size: clamp(19px, 2.4vw, 24px); color: var(--muted); margin: 22px 0 26px; max-width: 30ch; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.hero-facts span {
  font-size: 14px; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 99px; padding: 7px 15px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 12px; font-weight: 600; font-size: 16px;
  border: 1px solid transparent; transition: .18s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 9px; }

.hero-photo { position: relative; }
.photo-frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 4.6;
}
.photo-frame::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 6px;
  background: linear-gradient(90deg, var(--brand) 0 60%, var(--accent) 60% 80%, var(--danger) 80% 100%);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.04); }

/* ---- strip ---- */
.strip { background: var(--brand); color: #fff; padding: 34px 0; }
.strip-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.strip-item strong { display: block; font-size: 16px; margin-bottom: 5px; }
.strip-item span { font-size: 14px; opacity: .82; line-height: 1.5; display: block; }

/* ---- sections ---- */
.section { padding: 88px 0; }
.section-tint { background: #efede8; }
.kicker {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); font-weight: 600; margin-bottom: 12px;
}
.kicker-light { color: #9fc1ec; }
.section h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; letter-spacing: -.015em; line-height: 1.12; margin-bottom: 18px; }
.section-sub { color: var(--muted); max-width: 68ch; margin-bottom: 40px; }

/* ---- bio ---- */
.bio-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; margin-top: 34px; align-items: start; }
.lead { font-size: 20px; font-weight: 500; margin-bottom: 20px; }
.bio-more p { margin-bottom: 16px; color: #2c333b; }
.milestones { list-style: none; margin-top: 40px; border-left: 2px solid var(--line); }
.milestones li { display: flex; gap: 20px; padding: 10px 0 10px 22px; position: relative; }
.milestones li::before {
  content: ''; position: absolute; left: -6px; top: 20px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--brand);
  border: 2px solid var(--bg);
}
.ms-year { font-weight: 800; color: var(--brand); min-width: 52px; }
.ms-text { color: #2c333b; }
.bio-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---- pledges (signature feature) ---- */
.section-dark { background: var(--brand-dark); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark .section-sub { color: #b8c9de; }
.pledges-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.pledge {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .2s, transform .2s;
}
.pledge:hover { border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }
.pledge-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pledge-cat { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #9fc1ec; font-weight: 600; }
.status { font-size: 12.5px; font-weight: 600; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.st-declared { background: rgba(255,255,255,.14); color: #dbe6f2; }
.st-active { background: rgba(212, 160, 44, .18); color: #f2cf7c; }
.st-done { background: rgba(46, 170, 122, .18); color: #7fe0b8; }
.pledge h3 { font-size: 21px; line-height: 1.25; font-weight: 700; }
.pledge-body { color: #c3d2e3; font-size: 15.5px; flex: 1; }
.pledge-updates summary {
  cursor: pointer; font-size: 14px; font-weight: 600; color: #9fc1ec;
  list-style: none; display: flex; align-items: center; gap: 8px;
}
.pledge-updates summary::-webkit-details-marker { display: none; }
.pledge-updates summary::after { content: '▾'; transition: .2s; }
.pledge-updates[open] summary::after { transform: rotate(180deg); }
.count {
  background: rgba(255,255,255,.15); border-radius: 99px;
  font-size: 11.5px; padding: 1px 8px;
}
.timeline { list-style: none; margin-top: 14px; border-left: 1px solid rgba(255,255,255,.2); }
.timeline li { padding: 6px 0 6px 16px; }
.timeline time { font-size: 12.5px; color: #8fa6c0; display: block; }
.timeline p { font-size: 14.5px; color: #d5e0ec; }
.seal {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
}
.seal-info { display: flex; gap: 10px; align-items: center; min-width: 0; }
.seal-icon {
  color: #7fe0b8; display: inline-flex; flex: none;
  width: 34px; height: 34px; align-items: center; justify-content: center;
  background: rgba(46, 170, 122, .13); border-radius: 9px;
}
.seal-label { display: block; font-size: 11.5px; color: #8fa6c0; letter-spacing: .03em; }
.seal-hash { font-size: 12.5px; color: #b6e3cf; word-break: break-all; }
.verify-btn {
  background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff;
  border-radius: 9px; padding: 8px 15px; font-size: 13.5px; font-weight: 600;
  transition: .18s;
}
.verify-btn:hover { background: rgba(255,255,255,.1); }
.verify-btn.ok { border-color: #2eaa7a; background: rgba(46,170,122,.16); color: #7fe0b8; }
.verify-btn.fail { border-color: var(--danger); background: rgba(179,55,43,.2); color: #ffb1a6; }
.pledge-note { margin-top: 34px; font-size: 13.5px; color: #8fa6c0; max-width: 78ch; }

/* ---- posts ---- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 99px; padding: 8px 18px; font-size: 14px; font-weight: 500; transition: .15s;
}
.chip-filter:hover { border-color: var(--brand); color: var(--brand); }
.chip-filter.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-cat {
  font-size: 12px; padding: 3px 12px; background: #e9eef6; color: var(--brand);
  border: 0; font-weight: 600; cursor: default;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.tag {
  background: none; border: 0; color: var(--muted); font-size: 13.5px; padding: 2px 4px;
  border-radius: 6px; transition: .15s;
}
.tag:hover { color: var(--brand); }
.tag.active { background: var(--brand); color: #fff; }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.post {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(20,24,29,.04);
  transition: transform .2s, box-shadow .2s;
}
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-img { aspect-ratio: 16/9; overflow: hidden; background: #eceae5; }
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-content { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.post-meta time { font-size: 13px; color: var(--muted); }
.post h3 { font-size: 19px; line-height: 1.3; }
.post p { font-size: 15px; color: #3a424c; flex: 1; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.empty-note { color: var(--muted); margin-top: 24px; }

/* ---- gallery ---- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ph { border-radius: var(--radius); overflow: hidden; position: relative; cursor: zoom-in; background: #e7e4de; }
.ph img { width: 100%; height: 240px; object-fit: cover; transition: transform .3s; }
.ph:hover img { transform: scale(1.04); }
.ph figcaption {
  position: absolute; inset: auto 0 0 0; padding: 24px 14px 10px;
  background: linear-gradient(transparent, rgba(10,14,20,.75));
  color: #fff; font-size: 13px; opacity: 0; transition: .25s;
}
.ph:hover figcaption, .ph:focus figcaption { opacity: 1; }

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; margin-top: 10px; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.contact-list li span { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.contact-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow);
}
.contact-form label { font-size: 13.5px; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.contact-form input, .contact-form textarea {
  font-family: inherit; font-size: 16px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; background: var(--bg);
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }
.form-status { font-size: 14.5px; font-weight: 600; min-height: 1.2em; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: var(--danger); }

/* ---- subpage ---- */
.page-body { max-width: 74ch; margin-top: 26px; }
.page-body p { margin-bottom: 16px; color: #2c333b; }
.page-body h3 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; margin: 34px 0 12px; }
.page-body h4 { font-size: 20px; font-weight: 700; margin: 26px 0 10px; }
.page-body h5 { font-size: 17px; font-weight: 700; margin: 20px 0 8px; }
.page-body ul, .page-body ol { margin: 0 0 16px 22px; color: #2c333b; }
.page-body li { margin-bottom: 6px; }
.page-body img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 22px 0; }
.page-body blockquote {
  border-left: 3px solid var(--brand); padding: 4px 0 4px 18px; margin: 20px 0;
  color: var(--muted); font-size: 18px;
}
.page-body hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.page-body a { text-decoration: underline; text-underline-offset: 3px; }
.page-updated { margin-top: 40px; font-size: 13px; color: var(--muted); }

/* ---- footer ---- */
.footer { background: var(--ink); color: #9aa4b0; padding: 44px 0; font-size: 14px; }
.footer-in { display: flex; justify-content: space-between; gap: 30px; align-items: center; flex-wrap: wrap; }
.footer-in p { margin-top: 10px; }
.footer-note { max-width: 40ch; text-align: right; }

/* ---- lightbox ---- */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(10, 13, 18, .92);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px;
}
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 10px; }
.lightbox p { color: #cbd5df; margin-top: 14px; font-size: 15px; }
.lb-close {
  position: absolute; top: 18px; right: 26px; background: none; border: 0;
  color: #fff; font-size: 44px; line-height: 1;
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero-in, .bio-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 40px 0 40px; }
  .hero-photo { max-width: 420px; margin: 0 auto; width: 100%; }
  .strip-in { grid-template-columns: 1fr; gap: 20px; }
  .section { padding: 64px 0; }
  .footer-note { text-align: left; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 18px 24px; gap: 16px; align-items: flex-start;
  }
  .nav.open { display: flex; }
}
