/* ═══════════════════════════════════════════════════════════
   Добавки к главной поверх d_style.css: плашка-анонс, карточки
   возможностей, архив сезонов. Цвета — из переменных d_style.css,
   поэтому светлая/тёмная тема подхватываются сами.
   ═══════════════════════════════════════════════════════════ */

:root {
  --card-bg: #ffffff;
  --card-text: #3a2540;
  --card-muted: #7a6580;
  --card-shadow: 0 18px 40px -22px rgba(120, 20, 60, 0.45);
  --icon-bg: linear-gradient(135deg, #ff9a8b 0%, #ff6b88 60%, #ff98ab 100%);
  --polaroid-bg: #fffaf3;
  --polaroid-text: #2a1d3d;
  --polaroid-muted: #8b7aa8;
  --tape: rgba(255, 233, 92, 0.85);
}
@media (prefers-color-scheme: dark) {
  :root {
    --card-bg: #1e1e20;
    --card-text: #ece9f6;
    --card-muted: rgba(236, 233, 246, 0.6);
    --card-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.8);
    --icon-bg: linear-gradient(135deg, #da85f3 0%, #9b6cf7 100%);
    --polaroid-bg: #f7f2ff;
    --polaroid-text: #221735;
    --polaroid-muted: #7d6b9a;
    --tape: rgba(218, 133, 243, 0.7);
  }
}

/* ── Раскладка: было абсолютное центрирование на один экран, теперь обычный поток ── */
main {
  position: relative !important;   /* relative без смещений = обычный поток, но с z-index */
  top: auto !important;
  left: auto !important;
  transform: none !important;
  z-index: 1;
  width: 100%;
  padding: 0 18px;
  box-sizing: border-box;
}
/* Канвас сезонных эффектов раньше прятался под абсолютным main и занимал место в потоке */
#heartCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 6px 0 26px;
}
/* Аватары: без рамки, на фоне страницы, с мягкой тенью-«землёй» под ногами */
.hero-art {
  position: relative;
  width: min(520px, 92vw);
  margin: 0 auto;
  animation: art-in .8s cubic-bezier(.2,.8,.2,1) both;
}
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(40, 0, 30, 0.35));
}
.hero-art::after {
  content: "";
  position: absolute;
  left: 8%; right: 8%; bottom: -4px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.28), rgba(0,0,0,0) 70%);
  z-index: -1;
}
@keyframes art-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-color-scheme: dark) {
  .hero-art img { filter: drop-shadow(0 18px 28px rgba(218, 133, 243, 0.25)); }
}
.hero-block > p { font-size: 1rem !important; max-width: 34rem; margin: 6px 0 0 !important; }
.hero-block > p br { display: none; }  /* перенос из оригинала ломает строку при узкой колонке */
main .main_btn { margin-top: 14px !important; padding: 0.95rem 2.8rem !important; }
main .main_btn span, main .main_btn #buttonText { font-size: 1.6rem !important; }
.site-footer {
  position: static !important;
  margin-top: 20px;
}

/* ── Плашка-анонс: по ширине баннера, сразу под ним ── */
.announce {
  width: auto;
  max-width: min(600px, 90vw);
  margin: 0 auto 12px;
  padding: 7px 10px;
  border-radius: 14px;
  background: var(--btn-bg);
  box-shadow: var(--btn-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  box-sizing: border-box;
  animation: announce-in .6s cubic-bezier(.2,.8,.2,1) both;
}
.announce[hidden] { display: none; }
@keyframes announce-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.announce-tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--btn-text-gradient);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
.announce-text {
  background: var(--btn-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.announce-link {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--btn-text-gradient);
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  transition: transform .2s, filter .2s;
}
.announce-link:hover { transform: translateY(-1px); filter: brightness(1.06); }
.announce-close {
  margin-left: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  color: var(--card-muted);
  font-size: 0.85rem;
  line-height: 1;
  transition: background .2s, color .2s;
}
.announce-close:hover { background: rgba(128,128,128,0.12); color: var(--card-text); }

/* ── Карточки возможностей ── */
.features {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: left;
}
.feature {
  background: var(--card-bg);
  color: var(--card-text);
  border-radius: 22px;
  padding: 22px 20px 24px;
  box-shadow: var(--card-shadow);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s;
}
.feature:hover { transform: translateY(-4px); }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--icon-bg);
  color: #fff;
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: var(--btn-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.feature p {
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--card-muted) !important;
  text-align: left !important;
  margin: 0 !important;
}

/* ── Архив сезонов: компактная лента полароидов ── */
.seasons {
  max-width: 1120px;
  margin: 46px auto 0;
  text-align: left;
}
.seasons-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 6px; }
.seasons-head h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.seasons-head h2 .tag {
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--btn-text-gradient);
  color: #fff;
  font-size: 0.55em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}
.seasons-head p {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: var(--footer-text) !important;
  text-align: left !important;
  margin: 0 !important;
  max-width: 30rem;
}
.film {
  display: flex;
  gap: 18px;
  padding: 22px 12px 26px;
  margin: 0 -12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.film::-webkit-scrollbar { display: none; }
.polaroid {
  flex: 0 0 auto;
  width: 210px;
  padding: 8px 8px 30px;
  background: var(--polaroid-bg);
  color: var(--polaroid-text);
  border-radius: 5px;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.55);
  scroll-snap-align: center;
  position: relative;
  transform: rotate(var(--r, 0deg));
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.polaroid:nth-child(odd)  { --r: -2deg; }
.polaroid:nth-child(even) { --r: 1.8deg; margin-top: 10px; }
.polaroid:hover { transform: rotate(0) scale(1.05) translateY(-5px); z-index: 2; }
.polaroid img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; }
.polaroid figcaption {
  position: absolute; left: 10px; right: 10px; bottom: 8px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 6px;
  font-weight: 800; font-size: 0.78rem;
}
.polaroid figcaption small { font-weight: 700; font-size: 0.6rem; color: var(--polaroid-muted); letter-spacing: .05em; white-space: nowrap; }
.polaroid::before {
  content: "";
  position: absolute; top: -9px; left: 50%; width: 60px; height: 18px;
  transform: translateX(-50%) rotate(var(--tr, -4deg));
  background: var(--tape);
  box-shadow: 0 2px 5px rgba(0,0,0,.15);
}
.polaroid:nth-child(even)::before { --tr: 5deg; }

/* ── Адаптив ── */
@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
}
@media (max-width: 900px) {
  .hero-block { padding-top: 14px; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 600px) {
  .announce { white-space: normal; font-size: 0.78rem; gap: 6px 8px; }
  .hero-block > p { font-size: 0.9rem !important; }
  .polaroid { width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .announce, .feature, .polaroid, .hero-art { animation: none !important; transition: none !important; }
}
