/* ============================================================
   ORDUS ACADEMY — HOME PAGE STYLES
   ============================================================ */

/* ── HERO — EDITORIAL BENTO ── */
.hero { background: var(--bg-warm); border-bottom: 1px solid var(--border); overflow: hidden; position: relative; }
.hero-bg-accent { position: absolute; top: -140px; right: -100px; width: 560px; height: 560px; background: radial-gradient(circle, rgba(201,161,91,0.10) 0%, transparent 70%); pointer-events: none; }
.hero-inner { max-width: 1280px; margin: 0 auto; padding: 5.5rem 2.5rem 4rem; }
.hero-top { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4.5rem; align-items: center; }

/* ── LEFT COLUMN ── */
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 2rem; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink); padding: 9px 16px; border: 1px solid var(--border); border-radius: 100px; background: var(--bg); transition: border-color var(--trans), color var(--trans); cursor: default; }
.hero-tag i { font-size: 9px; color: var(--gold); transition: transform var(--trans); }
.hero-tag:hover { border-color: var(--gold); color: var(--gold); }
.hero-tag:hover i { transform: translateX(3px); }

.hero-kicker { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 300; letter-spacing: 0.42em; color: var(--gold); text-transform: uppercase; margin-bottom: 1.4rem; }

.hero h1 { font-family: 'Montserrat', sans-serif; font-size: clamp(38px, 5vw, 66px); font-weight: 900; letter-spacing: -0.01em; line-height: 0.98; color: var(--black); margin-bottom: 1.6rem; }
.hero h1 .accent { color: var(--gold); }
.hero h1 em { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 500; color: var(--red); letter-spacing: 0; }

.hero-desc { font-size: 16px; font-weight: 300; color: var(--ink-mid); line-height: 1.75; max-width: 450px; margin-bottom: 2.4rem; }
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-phone { display: inline-flex; align-items: center; gap: 7px; font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink); text-decoration: none; transition: color var(--trans); }
.hero-phone i { color: #25d366; font-size: 16px; }
.hero-phone:hover { color: var(--gold); }

/* ── RIGHT COLUMN: SCATTERED SPECIALIST COLLAGE ── */
.hero-collage { position: relative; width: 100%; height: 600px; }
.collage-card { position: absolute; aspect-ratio: 4/5; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); background: var(--bg-soft); transition: transform var(--trans), box-shadow var(--trans); }
.collage-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; z-index: 1; }
.collage-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(140deg, #f0ede8 0%, var(--gold-pale) 100%); }
.collage-initials { width: 56px; height: 56px; border-radius: 50%; background: var(--bg); display: flex; align-items: center; justify-content: center; border: 2px solid var(--border-gold); font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 18px; color: var(--gold); }
/* Name + discipline caption — always rendered over the photo (or the initials
   placeholder) so a viewer can tell WHO each hero card is without hovering
   (project_brief.md §15.1: hero card = photo + name + discipline). */
.collage-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 28px 12px 10px; background: linear-gradient(to top, rgba(20,20,20,0.78) 0%, rgba(20,20,20,0) 100%); }
.collage-name { font-family: 'Montserrat', sans-serif; font-size: 12.5px; font-weight: 700; color: #fff; letter-spacing: 0.02em; line-height: 1.25; }
.collage-tag { font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.05em; color: #fff; background: rgba(255,255,255,0.16); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); padding: 4px 10px; border-radius: 100px; border: 1px solid rgba(201,161,91,0.5); }
.collage-card:hover { transform: rotate(0deg) scale(1.045) !important; box-shadow: var(--shadow-hover); z-index: 20 !important; }

/* deliberate scatter */
.collage-card:nth-child(1) { top: 0;    left: 1%;  width: 39%; transform: rotate(-3deg);   z-index: 2; }
.collage-card:nth-child(2) { top: 4%;   left: 52%; width: 41%; transform: rotate(3deg);    z-index: 1; }
.collage-card:nth-child(3) { top: 31%;  left: 23%; width: 45%; transform: rotate(-1.5deg); z-index: 4; }
.collage-card:nth-child(4) { top: 57%;  left: 0;   width: 38%; transform: rotate(2.5deg);  z-index: 3; }
.collage-card:nth-child(5) { top: 56%;  left: 53%; width: 40%; transform: rotate(-2.5deg); z-index: 2; }

/* ── BOTTOM STATS BAR ── */
/* 3-column grid (up to 9 admin-added stats per row-set) — was a single flex row that
   overflowed once more than ~4 HomepageStat rows were added in the admin. */
.hero-stats-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.25rem; margin-top: 4rem; padding-top: 2.25rem; border-top: 1px solid var(--border); }
.hstat { padding: 0 2.25rem 0 0; border-left: 1px solid var(--border); }
.hstat:nth-child(3n+1) { padding-left: 0; border-left: none; }
.hstat strong { display: block; font-family: 'Montserrat', sans-serif; font-size: clamp(30px, 3.4vw, 40px); font-weight: 900; color: var(--gold); line-height: 1; letter-spacing: -0.02em; }
.hstat span { display: block; margin-top: 9px; font-size: 12px; font-weight: 300; letter-spacing: 0.04em; color: var(--ink-mid); text-transform: uppercase; line-height: 1.4; }

/* ================================================================
   PREMIUM CAROUSEL (SLIDER) FOR DISCIPLINES
   ================================================================ */
.disciplines { background: var(--bg-soft); overflow: hidden; }

.slider-controls {
  position: absolute;
  right: 0;
  bottom: 10px;
  display: flex;
  gap: 12px;
}
.slider-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--trans);
  box-shadow: var(--shadow-sm);
  z-index: 10;
}
.slider-btn:hover {
  border-color: var(--gold);
  background: var(--black);
  color: var(--gold);
}

.slider-window {
  overflow: hidden;
  width: 100%;
  padding: 1.5rem 0;
}

.showcase-container {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.showcase-card {
  flex: 0 0 calc((100% - (24px * 3)) / 4);
  min-width: 280px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.8rem 2rem;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 1400px) {
  .showcase-card { flex: 0 0 calc((100% - (24px * 4)) / 5); }
}
@media (max-width: 1100px) {
  .showcase-card { flex: 0 0 calc((100% - (24px * 2)) / 3); }
}
@media (max-width: 768px) {
  .showcase-card { flex: 0 0 calc((100% - 24px) / 2); }
}
@media (max-width: 500px) {
  .showcase-card { flex: 0 0 100%; }
}

.showcase-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(201,161,91,0.05), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.showcase-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(201,161,91,0.1);
}
.showcase-card:hover::after { opacity: 1; }

.showcase-badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 1.5rem;
  transition: color 0.4s ease;
}
.showcase-card:hover .showcase-badge { color: var(--gold); }

.showcase-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 22px;
  margin-bottom: 1.8rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.showcase-card:hover .showcase-icon-wrap {
  background: var(--black);
  color: var(--gold);
  border-color: var(--black);
  transform: scale(1.05);
}

.showcase-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.showcase-desc {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.65;
  flex: 1;
}

.showcase-arrow {
  margin-top: 2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  font-size: 11px;
  transition: all 0.3s ease;
  align-self: flex-start;
}
.showcase-card:hover .showcase-arrow {
  background: var(--gold);
  color: #000;
  transform: translateX(6px);
}

/* ================================================================
   SPECIALISTS SECTION (§15.3: small featured teaser only — the full filter-bar +
   cat-filter-wrap + spec-grid live on the dedicated /specialists/ page now, see category.css)
   ================================================================ */
.specialists { background: var(--bg-soft); }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.specialists-cta { text-align: center; margin-top: 2.5rem; }

/* §15.4: "С чем могут помочь" — 6 featured RequestTopic cards, 2 rows × 3 columns */
.topics-help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.topic-help-card { display: flex; flex-direction: column; border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg); text-decoration: none; transition: all var(--trans); }
.topic-help-card:hover { border-color: var(--gold); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.topic-help-img { aspect-ratio: 16/10; background: var(--bg-soft); overflow: hidden; }
.topic-help-img img { width: 100%; height: 100%; object-fit: cover; }
.topic-help-img-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--gold-light); font-size: 32px; }
.topic-help-body { padding: 1.25rem 1.4rem 1.5rem; }
.topic-help-title { font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 700; color: var(--black); margin-bottom: 0.5rem; }
.topic-help-desc { font-size: 13px; line-height: 1.6; color: var(--ink-mid); margin: 0; }

/* ── HOME RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-top { grid-template-columns: 1fr; gap: 3rem; }
  .hero-inner { padding-top: 3.5rem; }
  .hero-collage { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 460px; }
  .collage-card { position: relative !important; top: auto !important; left: auto !important; width: auto !important; transform: rotate(0deg) !important; }
  .collage-card:nth-child(3) { grid-column: span 2; aspect-ratio: 16/9; }
}
@media (max-width: 900px) {
  .topics-help-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px) {
  .spec-grid { grid-template-columns: 1fr; }
  .topics-help-grid { grid-template-columns: 1fr; }
  .hero-stats-bar { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1.25rem; }
  .hstat { border-left: 1px solid var(--border); padding-left: 1.25rem; padding-right: 0; }
  .hstat:nth-child(2n+1) { padding-left: 0; border-left: none; }
}
@media (max-width: 520px) {
  .hero-collage { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .collage-card { aspect-ratio: 16/10 !important; }
  .collage-card:nth-child(3) { grid-column: auto; aspect-ratio: 16/10; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-input, .filter-select, .filter-checkbox, .filter-reset { flex: 1 1 auto; width: 100%; }
}

/* ================================================================
   §19: MINI-CMS — admin-added homepage blocks (includes/homepage_blocks.html)
   ================================================================ */
.cms-banner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.cms-banner-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-soft); }
.cms-banner-media img { width: 100%; height: 100%; object-fit: cover; }
.cms-banner-body .btn-gold { margin-top: 0.75rem; }
.cms-banner:has(.cms-banner-media:only-child) { grid-template-columns: 1fr; }

.cms-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.cms-card { border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg); transition: all var(--trans); }
.cms-card:hover { border-color: var(--gold); box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.cms-card-img { aspect-ratio: 16/10; background: var(--bg-soft); overflow: hidden; }
.cms-card-img img { width: 100%; height: 100%; object-fit: cover; }
.cms-card-title { font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 700; color: var(--black); padding: 1.1rem 1.25rem 0.4rem; }
.cms-card-text { font-size: 13px; line-height: 1.6; color: var(--ink-mid); padding: 0 1.25rem 1.25rem; margin: 0; }

.cms-quote-section { background: var(--bg-soft); }
.cms-quote { max-width: 760px; margin: 0 auto; text-align: center; border: none; }
.cms-quote-text { font-family: 'Playfair Display', serif; font-style: italic; font-size: clamp(20px, 2.4vw, 28px); font-weight: 500; color: var(--black); line-height: 1.5; margin-bottom: 1.5rem; }
.cms-quote-author { display: flex; align-items: center; justify-content: center; gap: 12px; }
.cms-quote-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.cms-quote-author strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 13px; color: var(--black); }
.cms-quote-author-title { display: block; font-size: 12px; color: var(--ink-muted); }

@media (max-width: 900px) {
  .cms-banner { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .cms-card-grid { grid-template-columns: 1fr; }
}
