/* Homepage — full-width showcase for 3 МКСД (v8: tighter radius, readable hero) */

.home{
  --h-ink:var(--ink,#1e1a16);
  --h-muted:var(--muted,#6a6258);
  --h-line:var(--line,rgba(122,70,20,.14));
  --h-paper:var(--surface,#fffdf8);
  --h-soft:var(--soft,#f3ebe0);
  --h-radius:var(--radius,2px);
  --h-radius-sm:var(--radius-sm,2px);
  --h-shadow:var(--tile-shadow,0 4px 14px rgba(40,24,8,.08));
  width:100%;
  max-width:none;
  margin:0;
  color:var(--h-ink);
}

/* —— Shared —— */
.home-sec{ margin:0 0 1.65rem; }
.home-sec__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:1rem;
  margin:0 0 0.85rem;
  min-height:3.35rem;
}
.home-sec__head h2{
  margin:0 0 0.15rem;
  font-family:var(--font-display);
  font-size:var(--fs-h2);
  font-weight:700;
  letter-spacing:.02em;
  color:var(--brand-red-dark,#4c0000);
}
.home-sec__head p{
  margin:0;
  max-width:36rem;
  font-size:var(--fs-md);
  line-height:1.4;
  color:var(--h-muted);
}
.home-sec__more{
  flex-shrink:0;
  color:var(--accent-dark,#7a0000);
  font-weight:600;
  font-size:var(--fs-md);
  text-decoration:none;
  white-space:nowrap;
}
.home-sec__more:hover{ text-decoration:underline; }

.home-pill{
  display:inline-block;
  margin-bottom:0.3rem;
  padding:0.18rem 0.45rem;
  border-radius:2px;
  background:var(--accent-dark,#7a0000);
  color:#fff !important;
  font-family:var(--font-display);
  font-size:var(--fs-xs);
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  line-height:1.2;
}

/* —— Hero —— */
.home-hero{
  display:grid;
  grid-template-columns:minmax(0,1.7fr) minmax(240px,0.85fr);
  gap:10px;
  margin:0.25rem 0 1.35rem;
  align-items:stretch;
}
.home-hero__feature{
  position:relative;
  display:block;
  min-height:420px;
  overflow:hidden;
  border-radius:var(--h-radius);
  background:#1a1410;
  text-decoration:none !important;
  color:#fff !important;
}
.home-hero__feature img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .45s ease;
}
.home-hero__feature:hover img{ transform:scale(1.03); }
.home-hero__shade{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(8,3,0,.45) 0%,transparent 55%),
    linear-gradient(180deg,transparent 35%,rgba(8,3,0,.92) 100%);
  pointer-events:none;
}
.home-hero__caption{
  position:absolute;
  left:0; right:0; bottom:0;
  z-index:1;
  padding:1.5rem 1.4rem 1.35rem;
  max-width:42rem;
  background:linear-gradient(90deg,rgba(8,3,0,.72) 0%,rgba(8,3,0,.45) 65%,transparent 100%);
}
.home-hero__title{
  display:block;
  font-family:var(--font-display);
  font-size:var(--fs-feature);
  font-weight:700;
  line-height:1.15;
  color:#fff !important;
  text-shadow:0 1px 2px rgba(0,0,0,.8), 0 2px 16px rgba(0,0,0,.55);
}
.home-hero__feature:hover .home-hero__title{ text-decoration:underline; }
.home-hero__lead{
  display:block;
  margin-top:0.4rem;
  max-width:34rem;
  font-size:var(--fs-lead);
  line-height:1.45;
  color:rgba(255,255,255,.95) !important;
  text-shadow:0 1px 2px rgba(0,0,0,.75);
}

/* Side rail — same visual language as feature */
.home-hero__rail{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:420px;
}
.home-hero__tile{
  position:relative;
  flex:1 1 0;
  display:block;
  min-height:0;
  overflow:hidden;
  border-radius:var(--h-radius);
  background:#1a1410;
  text-decoration:none !important;
  color:#fff !important;
}
.home-hero__tile > img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .35s ease;
}
.home-hero__tile:hover > img{ transform:scale(1.04); }
.home-hero__tile-shade{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 20%,rgba(8,3,0,.82) 100%);
  pointer-events:none;
}
.home-hero__tile-cap{
  position:absolute;
  left:0; right:0; bottom:0;
  z-index:1;
  padding:0.7rem 0.85rem 0.8rem;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:0.15rem;
}
.home-hero__tile-cap strong{
  font-family:var(--font-display);
  font-size:var(--fs-base);
  font-weight:600;
  line-height:1.25;
  color:#fff !important;
  text-shadow:0 1px 8px rgba(0,0,0,.5);
}

/* —— Memory book —— */
.home-memory{
  padding:1.1rem 1.15rem 1.2rem;
  border-radius:var(--h-radius);
  background:var(--h-soft);
  border:1px solid var(--h-line);
}
.home-portraits{
  display:grid;
  grid-template-columns:repeat(8,minmax(0,1fr));
  gap:8px;
  margin:0 0 1rem;
}
.home-portrait{
  display:flex;
  flex-direction:column;
  gap:0.35rem;
  text-decoration:none !important;
  color:inherit;
  min-width:0;
}
.home-portrait img{
  display:block;
  width:100%;
  aspect-ratio:3/4;
  object-fit:cover;
  border-radius:var(--h-radius-sm);
  background:#e8dfd0;
  transition:opacity .15s ease;
}
.home-portrait:hover img{ opacity:.92; }
.home-portrait span{
  font-size:var(--fs-xs);
  line-height:1.3;
  color:var(--accent-dark,#7a0000);
  font-weight:600;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.home-search{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.home-search .search-input{
  flex:1 1 240px;
  min-height:42px;
  border-radius:var(--h-radius) !important;
  padding-left:0.9rem !important;
  padding-right:0.9rem !important;
  font:inherit;
}
.home-search .search-submit{
  min-height:42px;
  border-radius:var(--h-radius) !important;
  padding:0 1.15rem !important;
  font:inherit;
}

/* —— Combat path —— */
.home-path__track{
  display:grid;
  grid-template-columns:repeat(9,minmax(0,1fr));
  gap:6px;
  margin:0 0 0.75rem;
}
.home-path__step{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:0.3rem;
  min-width:0;
  padding:0.7rem 0.65rem;
  border:1px solid var(--h-line);
  border-radius:var(--h-radius);
  background:var(--h-paper);
  text-align:left;
  cursor:pointer;
  color:inherit;
  font:inherit;
  transition:border-color .15s ease, background .15s ease;
}
.home-path__step em{
  font-family:var(--font-display);
  font-style:normal;
  font-weight:700;
  font-size:var(--fs-sm);
  line-height:1.2;
  color:var(--accent-dark,#7a0000);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.home-path__step-title{
  font-size:var(--fs-xs);
  line-height:1.3;
  color:var(--h-muted);
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.home-path__step:hover{ border-color:rgba(122,0,0,.3); }
.home-path__step.is-active{
  background:#f8efe4;
  border-color:rgba(122,0,0,.45);
}
.home-path__step.is-active em{ color:var(--brand-red-dark,#4c0000); }

.home-path__panel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.1rem;
  padding:1rem 1.15rem;
  border-radius:var(--h-radius);
  background:var(--h-paper);
  border:1px solid var(--h-line);
}
.home-path__panel-text{ min-width:0; }
.home-path__panel-text strong{
  display:block;
  font-family:var(--font-display);
  font-size:var(--fs-sm);
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--accent-dark,#7a0000);
  margin-bottom:0.2rem;
}
.home-path__panel-text h3{
  margin:0 0 0.35rem;
  font-family:var(--font-display);
  font-size:var(--fs-h3);
  font-weight:700;
  line-height:1.25;
  color:var(--brand-red-dark,#4c0000);
}
.home-path__panel-text p{
  margin:0;
  font-size:var(--fs-md);
  line-height:1.5;
  color:var(--h-muted);
}
.home-path__go{
  flex-shrink:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:0 1.05rem;
  border-radius:var(--h-radius);
  background:var(--accent-dark,#7a0000);
  color:#fff !important;
  font-weight:700;
  text-decoration:none !important;
  white-space:nowrap;
}
.home-path__go:hover{ background:var(--brand-red-dark,#4c0000); }

/* —— Video + photo: aligned twin columns —— */
.home-media{
  display:grid;
  grid-template-columns:1fr 1fr;
  grid-template-rows:auto 1fr;
  column-gap:1.25rem;
  row-gap:0.85rem;
  margin:0 0 1.5rem;
  align-items:start;
}
.home-media__head{
  margin:0;
  min-height:3.5rem;
  align-self:end;
}
.home-tiles{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  min-width:0;
}
.home-tile{
  position:relative;
  display:block;
  overflow:hidden;
  border-radius:var(--h-radius);
  background:#1a1410;
  text-decoration:none !important;
  color:#fff !important;
  aspect-ratio:16/10;
}
.home-tile img,
.home-tile__ph{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .3s ease;
}
.home-tile__ph{ background:linear-gradient(135deg,#3a2218,#1a100c); }
.home-tile:hover img{ transform:scale(1.03); }
.home-tile__play{
  position:absolute;
  left:50%; top:42%;
  width:40px; height:40px;
  margin:-20px 0 0 -20px;
  border-radius:50%;
  background:rgba(255,255,255,.93);
  box-shadow:0 3px 10px rgba(0,0,0,.28);
  pointer-events:none;
}
.home-tile__play::after{
  content:"";
  position:absolute;
  left:15px; top:12px;
  border-style:solid;
  border-width:8px 0 8px 12px;
  border-color:transparent transparent transparent var(--accent-dark,#7a0000);
}
.home-tile__cap{
  position:absolute;
  left:0; right:0; bottom:0;
  padding:1.35rem 0.7rem 0.6rem;
  background:linear-gradient(transparent,rgba(0,0,0,.8));
  font-size:var(--fs-sm);
  font-weight:600;
  line-height:1.3;
  color:#fff !important;
  display:flex;
  flex-direction:column;
  gap:0.1rem;
}
.home-tile__cap strong{
  color:#fff !important;
  font-size:var(--fs-sm);
  font-weight:700;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.home-tile__cap em{
  font-style:normal;
  font-size:var(--fs-xs);
  font-weight:500;
  color:rgba(255,255,255,.8);
}
.home-tile--video .home-tile__cap{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* —— Gazeta showcase: feature + list —— */
.home-gazeta-sec{ margin-bottom:1.65rem; }
.home-gazeta{
  display:grid;
  grid-template-columns:minmax(0,0.95fr) minmax(0,1.15fr);
  gap:1.15rem 1.5rem;
  padding:1.05rem 1.15rem 1.15rem;
  background:linear-gradient(165deg,#f7f1e6 0%,#fffdf8 55%);
  border:1px solid var(--h-line);
  border-radius:var(--h-radius);
  align-items:stretch;
}
.home-gazeta__feature{
  display:grid;
  grid-template-columns:minmax(120px,42%) minmax(0,1fr);
  gap:0.95rem 1.1rem;
  align-items:center;
  min-width:0;
  padding:0.35rem;
  text-decoration:none !important;
  color:inherit;
}
.home-gazeta__cover{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0.55rem;
  background:#fff;
  border:1px solid rgba(122,70,20,.16);
  box-shadow:0 8px 20px rgba(40,24,8,.1);
}
.home-gazeta__cover img{
  display:block;
  width:100%;
  height:auto;
  max-height:320px;
  object-fit:contain;
  object-position:top center;
}
.home-gazeta__feature:hover .home-gazeta__cover{
  border-color:rgba(122,0,0,.28);
  box-shadow:0 10px 24px rgba(40,24,8,.14);
}
.home-gazeta__feature-text{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:0.35rem;
  min-width:0;
}
.home-gazeta__series{
  font-family:var(--font-display);
  font-size:var(--fs-h2);
  font-weight:700;
  line-height:1.2;
  color:var(--brand-red-dark,#4c0000) !important;
}
.home-gazeta__issue{
  font-family:var(--font-display);
  font-size:var(--fs-lead);
  font-weight:600;
  color:var(--accent-dark,#7a0000);
}
.home-gazeta__date{
  font-size:var(--fs-md);
  color:var(--h-muted);
}
.home-gazeta__cta{
  margin-top:0.45rem;
  font-weight:700;
  color:var(--accent-dark,#7a0000);
  font-size:var(--fs-md);
}
.home-gazeta__feature:hover .home-gazeta__cta{ text-decoration:underline; }

.home-gazeta__list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:0;
  border-left:1px solid var(--h-line);
  padding-left:1.15rem;
  min-width:0;
}
.home-gazeta__row{
  display:grid;
  grid-template-columns:56px minmax(0,1fr);
  gap:0.75rem;
  align-items:center;
  padding:0.65rem 0.35rem;
  border-bottom:1px solid var(--h-line);
  text-decoration:none !important;
  color:inherit;
}
.home-gazeta__list li:first-child .home-gazeta__row{ padding-top:0.15rem; }
.home-gazeta__row:hover{ background:rgba(122,0,0,.035); }
.home-gazeta__row.is-current{
  background:rgba(122,0,0,.05);
}
.home-gazeta__thumb{
  display:flex;
  align-items:center;
  justify-content:center;
  width:56px;
  height:76px;
  background:#fff;
  border:1px solid var(--h-line);
  overflow:hidden;
}
.home-gazeta__thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top center;
}
.home-gazeta__row-body{
  display:flex;
  flex-direction:column;
  gap:0.15rem;
  min-width:0;
}
.home-gazeta__row-body strong{
  font-family:var(--font-display);
  font-size:var(--fs-base);
  font-weight:600;
  color:var(--accent-dark,#7a0000);
  line-height:1.25;
}
.home-gazeta__row:hover .home-gazeta__row-body strong{ text-decoration:underline; }
.home-gazeta__row-body span{
  font-size:var(--fs-md);
  color:var(--h-muted);
  line-height:1.3;
}
.home-gazeta__more-li{ margin-top:0.35rem; }
.home-gazeta__more{
  display:inline-flex;
  padding:0.55rem 0.2rem;
  font-weight:700;
  color:var(--accent-dark,#7a0000);
  text-decoration:none;
  font-size:var(--fs-md);
}
.home-gazeta__more:hover{ text-decoration:underline; }

/* —— Bottom —— */
.home-bottom{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(230px,0.85fr);
  gap:1.35rem 1.5rem;
  align-items:start;
  margin-top:0.25rem;
}
.home-latest{
  list-style:none;
  margin:0;
  padding:0;
  border-radius:var(--h-radius);
  background:var(--h-paper);
  border:1px solid var(--h-line);
  overflow:hidden;
}
.home-latest li{ border-bottom:1px solid var(--h-line); }
.home-latest li:last-child{ border-bottom:0; }
.home-latest a{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:1rem;
  padding:0.75rem 0.9rem;
  text-decoration:none;
  color:inherit;
}
.home-latest a:hover{ background:rgba(122,0,0,.035); }
.home-latest span{
  font-weight:650;
  color:var(--accent-dark,#7a0000);
  line-height:1.35;
}
.home-latest a:hover span{ text-decoration:underline; }
.home-latest time{
  flex-shrink:0;
  font-size:var(--fs-sm);
  color:var(--h-muted);
}

.home-aside__title{
  margin:0 0 0.65rem;
  font-family:var(--font-display);
  font-size:var(--fs-h3);
  color:var(--brand-red-dark,#4c0000);
}
.home-chips{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:0 0 1rem;
}
.home-chip{
  display:inline-flex;
  align-items:center;
  padding:0.35rem 0.65rem;
  border-radius:var(--h-radius-sm);
  background:var(--h-soft);
  border:1px solid var(--h-line);
  color:var(--h-ink);
  font-size:var(--fs-sm);
  font-weight:600;
  text-decoration:none !important;
}
.home-chip:hover{
  background:#efe4d4;
  border-color:rgba(122,0,0,.25);
}
.home-chip--accent{
  background:rgba(122,0,0,.08);
  border-color:rgba(122,0,0,.18);
  color:var(--accent-dark,#7a0000);
}

.home-cta{
  padding:1rem 1.05rem 1.1rem;
  border-radius:var(--h-radius);
  background:var(--brand-red-dark,#4c0000);
  color:#fff;
}
.home-cta h3{
  margin:0 0 0.3rem;
  font-family:var(--font-display);
  font-size:var(--fs-lead);
  color:var(--brass,#d4af37);
}
.home-cta p{
  margin:0 0 0.75rem;
  font-size:var(--fs-md);
  line-height:1.45;
  color:rgba(255,255,255,.88);
}
.home-cta a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 1rem;
  border-radius:var(--h-radius);
  background:var(--brass,#d4af37);
  color:#2e2e2e !important;
  font-weight:700;
  text-decoration:none !important;
}
.home-cta a:hover{
  background:var(--gold-dark,#b8932e);
  color:#fff !important;
}

/* —— Responsive —— */
@media (max-width:1200px){
  .home-path__track{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:1100px){
  .home-portraits{ grid-template-columns:repeat(4,minmax(0,1fr)); }
  .home-media{
    grid-template-columns:1fr;
    grid-template-rows:auto;
  }
  .home-media__head{ align-self:stretch; }
}
@media (max-width:980px){
  .home-hero{ grid-template-columns:1fr; }
  .home-hero__feature{ min-height:280px; }
  .home-hero__rail{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    min-height:0;
  }
  .home-hero__tile{ min-height:140px; }
  .home-bottom{ grid-template-columns:1fr; }
  .home-path__panel{ flex-direction:column; align-items:flex-start; }
  .home-path__track{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  .home-gazeta{
    grid-template-columns:1fr;
  }
  .home-gazeta__list{
    border-left:0;
    padding-left:0;
    border-top:1px solid var(--h-line);
    padding-top:0.65rem;
  }
}
@media (max-width:640px){
  .home-hero__rail{ grid-template-columns:1fr; }
  .home-hero__tile{ min-height:110px; }
  .home-hero__feature{ min-height:220px; }
  .home-portraits{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .home-tiles{ grid-template-columns:1fr 1fr; }
  .home-memory{ padding:0.9rem; }
  .home-gazeta__feature{ grid-template-columns:110px minmax(0,1fr); }
  .home-gazeta__cover{ padding:0.35rem; }
  .home-gazeta__cover img{ max-height:180px; }
  .home-latest a{ flex-direction:column; align-items:flex-start; gap:0.2rem; }
  /* На узких экранах — только периоды, без горизонтального скролла */
  .home-path__track{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
  .home-path__step{ padding:0.55rem 0.45rem; align-items:center; text-align:center; }
  .home-path__step-title{ display:none; }
  .home-path__step em{
    font-size:var(--fs-xs);
    -webkit-line-clamp:3;
  }
}
