/* shanaty.ru — front page only (hero, island, destinations, selected projects). Shared styles are in site.css. */

/* ---------- hero ---------- */
.hero { width: var(--shell); margin: 0 auto; min-height: min(100svh, 860px); padding: 96px 0 32px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px 40px; align-items: center; }
.hero-copy { min-width: 0; }
.status { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 8px 16px 8px 13px; border-radius: 999px; background: var(--pill-bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 500; line-height: 1.35; }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--y); box-shadow: 0 0 0 4px var(--dot-glow); }
.hero h1 { margin-top: 30px; font: 700 clamp(40px, 5.5vw, 92px) / 1 var(--head); letter-spacing: -0.05em; overflow-wrap: break-word; }
.lead { max-width: 44ch; margin-top: 28px; font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* One orchestrated moment on load: the island assembles, the text settles in. */
.status, .hero h1, .lead, .actions { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero h1 { animation-delay: 0.05s; }
.lead { animation-delay: 0.15s; }
.actions { animation-delay: 0.25s; }

/* ---------- the island ---------- */
.stage { position: relative; min-width: 0; aspect-ratio: 820 / 640; }
.stage svg { display: block; width: 100%; height: 100%; overflow: visible; }
.floor-top { fill: var(--floor-top); }
.floor-l { fill: var(--floor-side-l); }
.floor-r { fill: var(--floor-side-r); }
.floor-grid { stroke: var(--floor-line); fill: none; stroke-width: 1; }
.shadow { fill: var(--shadow); filter: blur(22px); }
.axis-x { stroke: var(--x); stroke-width: 2.6; stroke-linecap: round; }
.axis-z { stroke: var(--z); stroke-width: 2.6; stroke-linecap: round; }

.struct { cursor: pointer; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.struct:hover, .struct.on { transform: translateY(-10px); }
.cube { animation: drop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(0.2s + var(--n) * 8ms); }
@keyframes drop { from { opacity: 0; transform: translateY(-46px); } to { opacity: 1; transform: none; } }
.cube polygon { stroke: var(--cube-edge); stroke-width: 0.75; stroke-linejoin: round; }

.label { position: absolute; z-index: 2; transform: translate(-50%, -100%); padding: 7px 14px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 14px/1 var(--body); text-decoration: none; white-space: nowrap; box-shadow: 0 6px 18px var(--shadow); transition: background-color 0.2s, color 0.2s, translate 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 1.2s both; }
.label.on { background: var(--z); color: #fff; translate: 0 -10px; }

/* ---------- sections ---------- */

.dests { margin-top: clamp(28px, 4vw, 52px); }
.dest { display: grid; grid-template-columns: minmax(160px, 2fr) minmax(0, 4fr) auto; align-items: center; gap: 12px 40px; padding: 30px 0; border-top: 1px solid var(--line); text-decoration: none; }
.dest:last-child { border-bottom: 1px solid var(--line); }
.dest-title { font: 700 clamp(22px, 2.6vw, 34px) / 1.1 var(--head); letter-spacing: -0.04em; }
.dest-text { color: var(--ink-2); max-width: 56ch; }
.dest-go { padding: 10px 20px; border-radius: var(--radius-control); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: 15px; white-space: nowrap; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.dest:hover .dest-go { background: var(--ink); color: var(--paper); box-shadow: none; }

.picks { display: grid; gap: 48px 32px; margin-top: clamp(28px, 4vw, 52px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pick { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pick h3 { font: 700 clamp(20px, 2vw, 26px) / 1.15 var(--head); letter-spacing: -0.04em; }
.pick .kind { font-size: 15px; font-weight: 500; color: var(--muted); }
.pick .text { color: var(--ink-2); font-size: 16px; }
.pick .go { margin-top: auto; padding-top: 4px; font-weight: 600; font-size: 15px; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: var(--ink-line); }
.pick .go:hover { color: var(--z-text); text-decoration-color: currentColor; }

.now { display: grid; margin-top: clamp(28px, 4vw, 52px); }
.now li { border-top: 1px solid var(--line); }
.now li:last-child { border-bottom: 1px solid var(--line); }
.now-item { display: grid; grid-template-columns: minmax(120px, 2fr) minmax(0, 5fr) minmax(0, 3fr); align-items: baseline; gap: 6px 40px; padding: 22px 0; text-decoration: none; }
.now-date { color: var(--muted); font-size: 15px; }
.now-title { font: 700 clamp(18px, 1.8vw, 24px) / 1.25 var(--head); letter-spacing: -0.035em; overflow-wrap: anywhere; transition: color 0.2s; }
.now-repos { color: var(--ink-2); font-size: 15px; overflow-wrap: anywhere; }
.now-item:hover .now-title { color: var(--z-text); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 104px; }
  .hero h1 { font-size: clamp(44px, 12.5vw, 104px); }
  .stage { max-width: 720px; margin: 8px auto 0; }
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pick:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .pick:last-child:nth-child(odd) .plate { aspect-ratio: 16 / 9; }
}
@media (max-width: 720px) {
  .now-item { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 18px 0; }
  .dest { grid-template-columns: minmax(0, 1fr) auto; padding: 24px 0; }
  .dest-text { grid-column: 1 / -1; grid-row: 2; }
  .label { font-size: 12.5px; padding: 6px 11px; }
}
@media (max-width: 640px) {
  .hero { padding-bottom: 0; }
  .picks { grid-template-columns: minmax(0, 1fr); }
  .pick:last-child:nth-child(odd) .plate { aspect-ratio: 3 / 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}

