/* Общие стили сайта «Гайды бабушек» (пс33.рф). Аудитория 55+, поэтому крупный
   шрифт, высокий контраст, без мелких элементов интерфейса. */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'PT Serif', Georgia, 'Times New Roman', serif;
  background: var(--bg, #FBF3E7);
  color: var(--text, #2B2420);
  line-height: 1.55;
  font-size: 19px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка */
.site-header {
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.back-link {
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 7px 16px;
  opacity: 0.85;
}
.back-link:hover { opacity: 1; }

/* Герой персонажа / каталога */
.hero {
  padding: 48px 0 40px;
  background: var(--hero-bg, #2B3B23);
  color: var(--hero-text, #FBF3E7);
}
.hero .wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero-avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  border: 4px solid var(--accent, #E3A73B);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-copy { flex: 1; min-width: 240px; }
.hero-kicker {
  display: inline-block;
  background: var(--accent, #E3A73B);
  color: #2B2420;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.15;
}
.hero p.lead {
  margin: 0;
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 46ch;
}

/* Каталог: карточки персонажей */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  padding: 40px 0 56px;
}
.char-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(43,36,32,0.10);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.char-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(43,36,32,0.16); }
.char-card-top {
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.char-card-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.char-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.char-card-body { padding: 18px 22px 24px; }
.char-card-body h3 { margin: 0 0 6px; font-size: 1.25rem; }
.char-card-body p { margin: 0 0 10px; font-size: 0.95rem; color: #5C544C; }
.char-card-count {
  display: block;
  font-size: 0.85rem;
  color: #8a7f74;
  margin: 0 0 12px;
}
.char-card-cta {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Секция продуктов */
.products {
  padding: 44px 0 60px;
}
.products h2 {
  font-size: 1.5rem;
  margin: 0 0 22px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.product {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(43,36,32,0.10);
  display: flex;
  flex-direction: column;
}
.product-cover { aspect-ratio: 3/4; overflow: hidden; background: #eee; }
.product-cover img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body h3 { margin: 0; font-size: 1.15rem; }
.product-body p { margin: 0; font-size: 0.95rem; color: #5C544C; }
.product-golos {
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 3px solid var(--accent, #E3A73B);
  font-size: 0.95rem;
  font-style: italic;
  color: #4a4038;
}
.product-meta {
  font-size: 0.85rem;
  color: #8a7f74;
  letter-spacing: 0.02em;
  margin-top: auto;
}
.product-price {
  font-size: 1.25rem;
  font-weight: 700;
}
.btn-buy, .btn-download {
  display: inline-block;
  text-align: center;
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 1.02rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  background: var(--accent, #E3A73B);
  color: #2B2420;
}
.btn-buy:hover, .btn-download:hover { filter: brightness(1.06); }
.btn-buy:disabled { opacity: 0.7; cursor: default; }
.btn-download { background: #5A8A62; color: #fff; }
.product.is-paid .product-cover { position: relative; }
.product-note { font-size: 0.85rem; color: #8a8178; }

/* Заглушка "скоро" */
.soon-box {
  background: #fff;
  border-radius: 18px;
  padding: 30px 26px;
  box-shadow: 0 6px 20px rgba(43,36,32,0.10);
  text-align: center;
}
.soon-box .soon-badge {
  display: inline-block;
  background: var(--accent, #E3A73B);
  color: #2B2420;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.soon-box h3 { margin: 0 0 10px; font-size: 1.3rem; }
.soon-box p { margin: 0; color: #5C544C; max-width: 46ch; margin-left: auto; margin-right: auto; }

/* Баннер об ошибке/задержке оплаты */
.pay-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  max-width: 520px;
  width: calc(100% - 32px);
  background: #fff;
  border: 1px solid #E3D5C8;
  border-left: 4px solid #C7714E;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  padding: 16px 20px;
  font-size: 0.95rem;
  z-index: 9999;
}
.pay-banner p { margin: 6px 0 12px; color: #5C544C; }
.pay-banner button {
  border: 0; border-radius: 10px; padding: 10px 16px;
  background: #5A8A62; color: #fff; font-weight: 600; cursor: pointer;
}

/* Подвал */

/* 30.09.2026: пометка «ИИ-персонаж» вместо блока «Скоро» (совет юриста) */
.ii-note { margin: 8px 0 0; padding: 14px 18px; border-radius: 12px; background: rgba(0,0,0,.04); color: #6b625a; font-size: .92rem; line-height: 1.5; }
.more-link { text-align: center; font-size: .95rem; color: #8a5a1f; }

/* 30.09.2026: единый подвал (скрипт _podval.py) */
.site-footer { background: #2B2420; color: #E9DCC8; padding: 44px 0 26px; margin-top: 30px;
  font-size: .95rem; text-align: left; line-height: 1.5; }
.site-footer a { color: #E9DCC8; text-decoration: none; }
.site-footer a:hover { color: #E3A73B; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col h4 { margin: 0 0 4px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #E3A73B;
  font-family: system-ui, sans-serif; }
.foot-logo { font-size: 1.15rem; font-weight: 700; }
.foot-brand p { margin: 0; }
.foot-small { font-size: .82rem; opacity: .7; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: space-between; margin-top: 32px;
  padding-top: 18px; border-top: 1px solid rgba(233,220,200,.18); font-size: .8rem; opacity: .75; }
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 440px) { .foot-grid { grid-template-columns: 1fr; } }
