/* Мама, я гуляю - editorial build with local images */
:root {
  --bg: #FAF7F0; --bg-2: #F2EDE0; --card: #FFFFFF; --text: #1E1E1E; --muted: #6F6A63;
  --border: #E8E0D5; --green: #F3A6A0; --green-dark: #E86F92; --yellow: #F2C66D; --pink: #F3A6A0;
  --green-soft: #FBE8E6; --yellow-soft: #FBF1DA; --pink-soft: #FBE8E6; --blue-soft: #E0EAF2; --sand: #EADFCB;
  --radius: 22px; --shadow: 0 18px 50px rgba(54, 43, 29, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text);
  background: radial-gradient(circle at 12% 4%, rgba(127,167,123,.16), transparent 28%),
              radial-gradient(circle at 90% 0%, rgba(242,198,109,.18), transparent 24%), var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px; line-height: 1.62; -webkit-font-smoothing: antialiased;
}
a { color: inherit; } img { display: block; max-width: 100%; }
h1,h2,h3,h4 { margin: 0; letter-spacing: -.035em; line-height: 1.05; } p { margin: 0; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 56px 0; } section[id] { scroll-margin-top: 92px; }

.promo { padding: 10px 24px; text-align: center; background: var(--sand); font-size: 15px; color: var(--muted); }
.promo a { color: var(--text); font-weight: 800; text-underline-offset: 3px; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(250,247,240,.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.header-inner { max-width: 1120px; margin: 0 auto; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 850; font-size: 18px; text-decoration: none; }
.logo-mark { width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center; background: var(--green); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 15px; }
.nav a:hover { background: var(--bg-2); color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; border-radius: 999px; border: 1px solid var(--border); background: var(--card); padding: 13px 20px; font-weight: 800; line-height: 1.15; cursor: pointer; }
.btn-primary { background: var(--text); color: #fff; border-color: var(--text); }
.btn-green { background: var(--green); color: #fff; border-color: var(--green); }
.btn:hover { transform: translateY(-1px); }

.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 16px; }
.hl { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; background: var(--green); color: #fff; font-size: 14px; font-weight: 850; letter-spacing: 0; }
.tag-row, .meta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag, .mark { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.64); border: 1px solid var(--border); color: var(--muted); font-size: 14px; text-decoration: none; }
.tag:hover, a.mark:hover { color: var(--text); background: #fff; }

/* Home */
.home-hero { padding: 76px 0 34px; }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr); gap: 42px; align-items: center; }
.home-hero h1 { font-size: clamp(52px, 8vw, 92px); max-width: 9ch; margin-bottom: 22px; }
.home-hero .lead { font-size: clamp(19px, 2.3vw, 25px); line-height: 1.34; max-width: 660px; margin-bottom: 14px; }
.home-hero .sub { color: var(--muted); max-width: 620px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.editorial-collage { min-height: 430px; position: relative; }
.collage-card { position: absolute; overflow: hidden; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); border: 1px solid rgba(232,224,213,.85); }
.collage-card img { width: 100%; height: 100%; object-fit: cover; }
.collage-main { inset: 30px 30px 52px 38px; }
.collage-book { width: 136px; height: 190px; left: 0; bottom: 0; transform: rotate(-5deg); }
.collage-clock {
  width: 112px;
  height: 112px;
  right: 18px;
  top: 12px;
  padding: 14px;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--yellow-soft);
  border-radius: 28px;
}
.collage-clock b {
  font-size: 34px;
  line-height: .92;
  letter-spacing: -.045em;
  white-space: normal;
}
.collage-clock span {
  display: none;
}
.collage-thermos { width: 146px; height: 160px; right: 6px; bottom: 4px; background: var(--pink-soft); padding: 0; }
.collage-thermos img { object-fit: cover; }

.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); }
.feature-card-image { height: 420px; position: relative; overflow: hidden; }
.feature-card-image img { width: 100%; height: 100%; object-fit: cover; }
.feature-card-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.56), transparent 58%); }
.feature-card-badge { position: absolute; left: 24px; bottom: 22px; z-index: 2; color: #fff; }
.feature-card-badge .hl { background: rgba(127,167,123,.95); }
.feature-card-body { padding: 30px; }
.feature-card h2 { font-size: clamp(30px, 5vw, 54px); max-width: 900px; margin: 12px 0 16px; }
.feature-card p { color: var(--muted); max-width: 760px; font-size: 18px; }
.feature-card .tag-row { margin: 22px 0 26px; }
.issue-teasers { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.teaser { padding: 22px; border-radius: 24px; background: var(--card); border: 1px solid var(--border); }
.teaser .ic { font-size: 26px; display: block; margin-bottom: 12px; }
.teaser h3 { font-size: 20px; margin-bottom: 8px; }
.teaser p { color: var(--muted); font-size: 15px; }

/* Article */
.article-hero { padding: 34px 0 28px; }
.back-link { margin-bottom: 22px; }
.article-cover { border-radius: 34px; overflow: hidden; position: relative; min-height: 520px; background: #111; display: grid; align-items: end; box-shadow: var(--shadow); }
.article-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.article-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.70), rgba(0,0,0,.10) 58%, rgba(0,0,0,.42)); }
.article-title-box { position: relative; z-index: 2; color: #fff; padding: 38px; max-width: 850px; }
.article-title-box h1 { font-size: clamp(38px, 6vw, 76px); margin: 18px 0 20px; }
.article-title-box p { font-size: 19px; color: rgba(255,255,255,.86); max-width: 720px; }
.credit { font-size: 12px; color: rgba(255,255,255,.68); margin-top: 18px; }
.article-intro { padding: 30px; background: var(--card); border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow); margin-top: 20px; }
.article-intro p + p { margin-top: 16px; }
.article-intro p { font-size: 19px; }

.toc { padding: 26px; background: var(--card); border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow); }
.toc h2 { font-size: 26px; margin-bottom: 16px; }
.toc-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.toc a { text-decoration: none; border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px; background: var(--bg); color: var(--text); font-weight: 800; }
.toc a span { display: block; color: var(--muted); font-size: 13px; font-weight: 700; margin-top: 4px; }

.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: 28px; align-items: start; }
.article-side { position: sticky; top: 92px; display: grid; gap: 14px; }
.side-card { padding: 18px; border-radius: 22px; background: var(--card); border: 1px solid var(--border); }
.side-card h3 { font-size: 18px; margin-bottom: 10px; }
.side-card p { color: var(--muted); font-size: 14px; }

.article-block { background: var(--card); border: 1px solid var(--border); border-radius: 34px; padding: clamp(22px,4vw,42px); box-shadow: var(--shadow); margin-bottom: 24px; }
.block-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(190px,300px); gap: 26px; align-items: start; margin-bottom: 26px; }
.block-title h2 { font-size: clamp(30px,4.2vw,48px); margin: 8px 0 16px; }
.block-media { border-radius: 24px; overflow: hidden; background: var(--bg); border: 1px solid var(--border); }
.block-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.block-media.portrait img { aspect-ratio: 3/4; }
.caption { padding: 10px 12px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--border); background: rgba(250,247,240,.72); }
.prose { max-width: 740px; }
.prose p { margin: 0 0 18px; font-size: 18px; }
.prose h3 { font-size: 25px; margin: 34px 0 14px; }
.prose ul { padding-left: 1.2em; margin: 0 0 22px; }
.prose li { margin: 8px 0; }
.callout { padding: 20px; border-radius: 22px; border: 1px solid var(--border); background: var(--yellow-soft); margin: 24px 0; }
.callout.green { background: var(--green-soft); } .callout.pink { background: var(--pink-soft); }
.callout strong { display: block; margin-bottom: 8px; }

.link-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 22px 0; }
.link-card { text-decoration: none; padding: 15px 16px; border-radius: 18px; border: 1px solid var(--border); background: var(--bg); }
.link-card b { display: block; }
.link-card span { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.task-card { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; }
.task-card .kicker, .task-card .mark { color: rgba(255,255,255,.84); }
.task-card .mark { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.12); }
.task-card p { color: rgba(255,255,255,.92); }

.tg-card { background: var(--green); border-radius: 30px; padding: 34px; color: #fff; }
.tg-card h2 { font-size: clamp(28px,4vw,42px); margin-bottom: 12px; }
.tg-card p { color: rgba(255,255,255,.9); max-width: 680px; margin-bottom: 22px; }
.tg-card .btn { background: #fff; color: var(--green-dark); border-color: #fff; }
.footer { padding: 44px 0 70px; border-top: 1px solid var(--border); color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a { color: inherit; margin-left: 16px; }

/* Floating mobile navigation */
.mobile-nav-toggle { display: none; }
.mobile-nav-panel { display: none; }

@media (max-width: 920px) {
  .home-hero-grid, .article-layout, .block-head { grid-template-columns: 1fr; }
  .article-side { display: none; }
  .editorial-collage { min-height: 360px; }
  .issue-teasers, .toc-grid { grid-template-columns: 1fr; }
  .block-media { max-width: 460px; }
  .mobile-nav-toggle {
    display: inline-flex; position: fixed; right: 16px; bottom: 16px; z-index: 100;
    border: 0; border-radius: 999px; padding: 14px 18px; background: var(--text); color: #fff;
    font-weight: 850; box-shadow: 0 14px 38px rgba(0,0,0,.20);
  }
  .mobile-nav-panel {
    position: fixed; inset: auto 12px 72px 12px; z-index: 99; padding: 14px;
    border-radius: 24px; background: rgba(255,255,255,.96); border: 1px solid var(--border);
    box-shadow: 0 18px 55px rgba(0,0,0,.18);
  }
  .mobile-nav-panel.open { display: block; }
  .mobile-nav-panel a { display: block; text-decoration: none; padding: 12px 14px; border-radius: 14px; color: var(--text); font-weight: 800; }
  .mobile-nav-panel a:hover { background: var(--bg); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  section { padding: 38px 0; }
  .header-inner { align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .home-hero { padding-top: 44px; }
  .editorial-collage { min-height: 300px; }
  .collage-main { inset: 28px 0 50px 32px; }
  .collage-book { width: 104px; height: 148px; }
  .collage-clock { width: 88px; height: 88px; right: 10px; top: 10px; padding: 10px; border-radius: 22px; }
  .collage-clock b { font-size: 27px; }
  .collage-thermos { width: 110px; height: 120px; }
  .feature-card-image { height: 300px; }
  .feature-card-body, .article-title-box, .article-intro, .article-block, .toc, .tg-card { padding: 22px; }
  .article-cover { min-height: 460px; border-radius: 24px; }
  .link-grid { grid-template-columns: 1fr; }
  .prose p { font-size: 17px; }
}


.share-card {
  margin-top: 24px;
  padding: 22px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.share-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.share-card p {
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 620px;
}
.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}
.share-btn:hover {
  background: #fff;
  transform: translateY(-1px);
}
.share-status {
  display: inline-flex;
  align-items: center;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 0;
}
.views-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.views-badge strong {
  color: var(--text);
  font-weight: 900;
}
.views-badge.loading {
  opacity: .72;
}


.floating-share-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: var(--text);
  color: #fff;
  font-family: inherit;
  font-weight: 900;
  box-shadow: 0 16px 44px rgba(0,0,0,.22);
  cursor: pointer;
}
.floating-share-panel {
  position: fixed;
  right: 16px;
  bottom: 76px;
  z-index: 119;
  display: none;
  width: min(340px, calc(100vw - 32px));
  padding: 14px;
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--border);
  box-shadow: 0 18px 55px rgba(0,0,0,.18);
  backdrop-filter: blur(10px);
}
.floating-share-panel.open {
  display: block;
}
.floating-share-title {
  font-size: 13px;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 2px 4px 10px;
}
.floating-share-panel .share-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.floating-share-panel .share-btn {
  width: 100%;
}
.floating-share-panel .share-status {
  grid-column: 1 / -1;
  padding: 4px 2px 0;
}

@media (max-width: 920px) {
  .mobile-nav-toggle {
    bottom: 76px;
  }
  .mobile-nav-panel {
    bottom: 132px;
  }
}


.source-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.prose .note-list {
  margin: 18px 0 24px;
  padding-left: 0;
  list-style: none;
}
.prose .note-list li {
  margin: 10px 0;
  padding-left: 0;
}
.article-block .prose a:not(.tag):not(.link-card) {
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}


.logo-mark-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .logo-mark-img {
    width: 30px;
    height: 30px;
  }
}




/* На мобильном прячем блоки-превью: "Что внутри" и "Рубрики проекта" */
@media (max-width: 760px) {
  #inside,
  #rubrics,
  #categories,
  .inside-section,
  .rubrics-section,
  .categories-section {
    display: none !important;
  }
}


/* На мобильном не показываем нижние обзорные блоки */
@media (max-width: 760px) {
  #inside,
  #rubrics,
  #categories,
  .inside-section,
  .rubrics-section,
  .categories-section {
    display: none !important;
  }
}


/* Hero: текст слева, карточка выпуска справа */
.hero .container {
  display: grid;
  grid-template-columns: minmax(320px, 560px) minmax(420px, 620px);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-issue-card {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 30px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
  align-self: center;
}

.hero-issue-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 70px rgba(0,0,0,.12);
}

.hero-issue-image {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.hero-issue-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.hero-issue-card:hover .hero-issue-image img {
  transform: scale(1.03);
}

.hero-issue-meta {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #fff;
  font-weight: 800;
  text-shadow: 0 1px 12px rgba(0,0,0,.35);
}

.hero-issue-meta .views-badge {
  background: rgba(255,255,255,.88);
  text-shadow: none;
}

.hero-issue-body {
  padding: 28px;
}

.hero-issue-body .kicker {
  margin-bottom: 14px;
}

.hero-issue-body h2 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

.hero-issue-body p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 18px;
}

.hero-issue-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.hero-issue-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-weight: 900;
}

/* На мобильном карточку hero вообще не показываем:
   ниже уже идёт обычный свежий дайджест */
@media (max-width: 920px) {
  .hero .container {
    display: block;
  }

  .hero-issue-card {
    display: none !important;
  }
}

/* На мобильном не показываем нижние обзорные блоки */
@media (max-width: 760px) {
  #inside,
  #rubrics,
  #categories,
  .inside-section,
  .rubrics-section,
  .categories-section {
    display: none !important;
  }
}
