/* ===== Global page wrapper ===== */
.page-index {
  --brand-red: #C91F17;
  --brand-red-light: #E53935;
  --bg-deep: #B71C1C;
  --card-bg: #D32F2F;
  --text-main: #FFF5E1;
  --border-gold: #F2B544;
  --gold-light: #F4D34D;
  --glow: #FFCC66;
  --deep-red: #7A0E0E;
  color: #333333;
  background: #ffffff;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
}

/* ===== HERO ===== */
.page-index__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 0;
  margin-top: 0;
  background: var(--deep-red);
}
.page-index__hero-carousel {
  position: relative;
  width: 100%;
}
.page-index__hero-slide {
  display: none;
  width: 100%;
}
.page-index__hero-slide.is-active {
  display: block;
}
.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.page-index__hero-prev,
.page-index__hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(122, 14, 14, 0.75);
  color: var(--text-main);
  border: 2px solid var(--border-gold);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: background 0.2s ease;
}
.page-index__hero-prev:hover,
.page-index__hero-next:hover {
  background: var(--brand-red);
}
.page-index__hero-prev {
  left: 12px;
}
.page-index__hero-next {
  right: 12px;
}
.page-index__hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.page-index__hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--border-gold);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.page-index__hero-dots button.is-active {
  background: var(--gold-light);
}

/* ===== BANNER THUMBS ===== */
.page-index__banner-section {
  max-width: 1200px;
  margin: 16px auto;
  padding: 0 16px;
  box-sizing: border-box;
}
.page-index__banner-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.page-index__banner-thumbs a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--border-gold);
  transition: transform 0.2s ease;
}
.page-index__banner-thumbs a:hover {
  transform: scale(1.03);
}
.page-index__banner-thumbs img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* ===== INTRO ===== */
.page-index__intro-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 16px;
  box-sizing: border-box;
  background: #ffffff;
}
.page-index__intro-section h1 {
  color: var(--brand-red);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  line-height: 1.3;
  margin: 0 0 16px;
  font-weight: 800;
}
.page-index__intro-lead {
  font-size: 1.05rem;
  color: #4a4a4a;
  margin: 0 0 24px;
  padding: 16px;
  border-left: 4px solid var(--brand-red);
  background: #fff8f3;
  border-radius: 0 8px 8px 0;
}
.page-index__offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 24px;
}
.page-index__offer-card {
  background: var(--card-bg);
  border: 2px solid var(--border-gold);
  border-radius: 12px;
  padding: 18px 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.15);
}
.page-index__offer-number {
  color: var(--gold-light);
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 6px;
  letter-spacing: 0.3px;
}
.page-index__offer-label {
  color: var(--text-main);
  font-size: 0.95rem;
  margin: 0;
}
.page-index__category-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.page-index__category-list li a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 24px;
  background: #fff;
  color: var(--brand-red);
  border: 2px solid var(--brand-red);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.page-index__category-list li a:hover {
  background: var(--brand-red);
  color: #ffffff;
}
.page-index__intro-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 32px;
}
.page-index__btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.page-index__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.page-index__btn--register {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #4a1500;
  border: 2px solid var(--border-gold);
}
.page-index__btn--login {
  background: var(--brand-red);
  color: #ffffff;
  border: 2px solid var(--gold-light);
}
.page-index__intro-content h2 {
  color: var(--brand-red);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  margin: 28px 0 12px;
  font-weight: 700;
}
.page-index__intro-content p {
  margin: 0 0 14px;
  color: #3f3f3f;
}
.page-index__intro-content a {
  color: var(--brand-red);
  font-weight: 600;
  text-decoration: underline;
}

/* ===== POSTS ===== */
.page-index__posts-section {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;
  box-sizing: border-box;
}
.page-index__posts-section h2 {
  color: var(--brand-red);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  margin: 0 0 20px;
}
.page-index__posts-viewport {
  overflow: hidden;
}
.page-index__posts-track {
  display: flex;
  gap: 16px;
  transition: transform 0.35s ease;
}
.page-index__post-card {
  flex: 0 0 calc(25% - 12px);
  background: #ffffff;
  border: 1px solid #f0d7b0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(201, 31, 23, 0.08);
}
.page-index__post-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.page-index__post-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
}
.page-index__post-date {
  display: block;
  font-size: 0.82rem;
  color: #7a7a7a;
  padding: 10px 12px 0;
}
.page-index__post-card h3 {
  color: #222222;
  font-size: 0.98rem;
  margin: 6px 12px 8px;
  line-height: 1.4;
  font-weight: 700;
}
.page-index__post-more {
  display: inline-block;
  color: var(--brand-red);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0 12px 14px;
}
.page-index__posts-prev,
.page-index__posts-next {
  position: absolute;
  top: 55%;
  transform: translateY(-50%);
  background: var(--brand-red);
  color: #ffffff;
  border: 2px solid var(--border-gold);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.page-index__posts-prev {
  left: 4px;
}
.page-index__posts-next {
  right: 4px;
}

/* ===== PROMO ===== */
.page-index__promo-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 16px;
  box-sizing: border-box;
  text-align: center;
  background: #fff8f3;
  border-radius: 16px;
}
.page-index__promo-section h2 {
  color: var(--brand-red);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  margin: 0 0 10px;
}
.page-index__promo-section p {
  color: #4a4a4a;
  margin: 0 0 20px;
}
.page-index__promo-section a {
  display: block;
  max-width: 560px;
  margin: 0 auto;
}
.page-index__promo-section img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  border: 3px solid var(--border-gold);
}

/* ===== LIST ===== */
.page-index__list-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 16px;
  box-sizing: border-box;
}
.page-index__list-section h2 {
  color: var(--brand-red);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  margin: 0 0 20px;
}
.page-index__list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.page-index__list-item {
  background: #ffffff;
  border: 1px solid #f0d7b0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(201, 31, 23, 0.08);
}
.page-index__list-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}
.page-index__list-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.page-index__list-item h3 {
  color: #222222;
  font-size: 1rem;
  margin: 12px 14px 8px;
  line-height: 1.4;
}
.page-index__list-item p {
  color: #555555;
  font-size: 0.9rem;
  margin: 0 14px 16px;
}

/* ===== FAQ ===== */
.page-index__faq-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 16px;
  box-sizing: border-box;
}
.page-index__faq-section h2 {
  color: var(--brand-red);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  margin: 0 0 20px;
}
.page-index__faq-item {
  background: #ffffff;
  border: 1px solid #f0d7b0;
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 14px 18px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}
.page-index__faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: #222222;
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.page-index__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-index__faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 1.3rem;
  color: var(--brand-red);
}
.page-index__faq-item[open] summary::after {
  content: "−";
}
.page-index__faq-item p {
  margin: 10px 0 0;
  color: #444444;
  font-size: 0.95rem;
}

/* ===== OVERLAY ===== */
.page-index__overlay-section {
  position: relative;
  width: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.page-index__overlay-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
}
.page-index__overlay-mask {
  position: absolute;
  inset: 0;
  background: rgba(122, 14, 14, 0.72);
  z-index: 1;
}
.page-index__overlay-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 800px;
}
.page-index__overlay-content h2 {
  color: #ffffff;
  font-size: clamp(1.3rem, 3vw, 2rem);
  margin: 0 0 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.page-index__overlay-content p {
  color: #FFF5E1;
  font-size: 1rem;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* ===== CTA ===== */
.page-index__cta-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.page-index__cta-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  display: block;
}
.page-index__cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 32px 20px;
  max-width: 700px;
}
.page-index__cta-content h2 {
  color: #ffffff;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  margin: 0 0 20px;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}
.page-index__cta-section .page-index__btn--register {
  font-size: 1.05rem;
  padding: 16px 32px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .page-index {
    max-width: 100%;
    overflow-x: hidden;
  }
  .page-index img {
    max-width: 100% !important;
    height: auto !important;
  }
  .page-index__hero-prev,
  .page-index__hero-next {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
  .page-index__banner-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-index__offer-grid {
    grid-template-columns: 1fr;
  }
  .page-index__intro-cta {
    flex-direction: column;
  }
  .page-index__btn {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
  }
  .page-index__post-card {
    flex: 0 0 85%;
  }
  .page-index__posts-prev,
  .page-index__posts-next {
    top: 50%;
  }
  .page-index__list-grid {
    grid-template-columns: 1fr;
  }
  .page-index__overlay-content,
  .page-index__cta-content {
    padding: 28px 16px;
  }
}