/**
 * Лендинг LearnHouse · «Путь логиста»
 * Концепт-арт: dark hero + light sumi-e зоны (content/concept-art-brief.md)
 */

@import url("https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400&display=swap");

:root {
  --li-brand: #fd7857;
  --li-brand-dark: #e75d3a;
  --li-ink: #3b4248;
  --li-ink-muted: #5a6168;
  --li-surface: #f8f8f0;
  --li-surface-warm: #fff6f3;
  --li-hinomaru: #c41e3a;
  --li-sky: #57dcfd;
  --li-charcoal-deep: #1a3a4a;
  --li-font: "PT Sans", system-ui, sans-serif;
  --li-parchment: radial-gradient(
      ellipse 120% 80% at 8% 0%,
      rgba(196, 30, 58, 0.04),
      transparent 55%
    ),
    radial-gradient(
      ellipse 90% 60% at 92% 100%,
      rgba(59, 66, 72, 0.05),
      transparent 50%
    ),
    linear-gradient(180deg, #faf9f2 0%, #f8f8f0 50%, #f5f3ea 100%);
}

body {
  background: var(--li-surface) !important;
  font-family: var(--li-font) !important;
  color: var(--li-ink) !important;
}

/* ── Hero · dark zone ── */
.min-h-\[400px\].rounded-xl,
.min-h-\[500px\].rounded-xl {
  min-height: calc(100vh - 72px) !important;
  max-height: 900px;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  background: linear-gradient(
    135deg,
    #3b4248 0%,
    #252d35 50%,
    #1a3a4a 100%
  ) !important;
}

.min-h-\[400px\] h1,
.min-h-\[500px\] h1 {
  font-size: clamp(1.85rem, 4.5vw, 3rem) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  line-height: 1.12 !important;
  color: #fefefe !important;
  -webkit-text-fill-color: #fefefe !important;
}

.min-h-\[400px\] h2,
.min-h-\[500px\] h2 {
  font-size: clamp(1rem, 2vw, 1.15rem) !important;
  line-height: 1.65 !important;
  color: rgba(254, 254, 254, 0.88) !important;
  max-width: 34rem;
  white-space: pre-line;
}

.min-h-\[400px\] a.rounded-lg,
.min-h-\[500px\] a.rounded-lg {
  border-radius: 9999px !important;
  padding: 0.9rem 1.85rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.8rem !important;
  transition: transform 0.15s, box-shadow 0.15s;
}

.min-h-\[400px\] a.rounded-lg:hover,
.min-h-\[500px\] a.rounded-lg:hover {
  transform: translateY(-2px);
}

.min-h-\[400px\] a.rounded-lg[style*="background"],
.min-h-\[500px\] a.rounded-lg[style*="background"] {
  background-color: var(--li-brand) !important;
  color: #fff !important;
  box-shadow: 0 8px 28px rgba(253, 120, 87, 0.35);
}

.min-h-\[400px\] a.rounded-lg:not([style*="fd7857"]):not([style*="FD7857"]),
.min-h-\[500px\] a.rounded-lg:not([style*="fd7857"]):not([style*="FD7857"]) {
  background: transparent !important;
  color: #fefefe !important;
  border: 2px solid rgba(254, 254, 254, 0.45) !important;
  box-shadow: none !important;
}

.min-h-\[400px\] img,
.min-h-\[500px\] img {
  border-radius: 12px;
  max-height: min(440px, 52vh);
  width: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--li-parchment);
  padding: 14px;
  box-shadow: 0 0 48px rgba(87, 220, 253, 0.12),
    0 16px 48px rgba(0, 0, 0, 0.25);
}

/* ── Секции text-and-image · light zone ── */
.py-16.mx-2,
section.py-16 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

.py-16 > .flex,
.py-16 > div > .flex {
  background: #fefefe !important;
  border-radius: 14px !important;
  border: 1px solid rgba(59, 66, 72, 0.08) !important;
  box-shadow: 0 8px 32px rgba(59, 66, 72, 0.06) !important;
}

.py-16:nth-of-type(even) > .flex,
.py-16:nth-of-type(even) > div > .flex {
  background: var(--li-surface-warm) !important;
}

.py-16 h2 {
  color: var(--li-ink) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem) !important;
}

.py-16 h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--li-hinomaru);
  margin-bottom: 0.75rem;
  border-radius: 2px;
}

.py-16 .prose p,
.py-16 p.whitespace-pre-line {
  color: var(--li-ink-muted) !important;
  line-height: 1.7 !important;
  font-size: 1.02rem !important;
}

.py-16 a.rounded-xl {
  border-radius: 9999px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.8rem !important;
  padding: 0.75rem 1.5rem !important;
}

.py-16 a.rounded-xl[style*="background"] {
  box-shadow: 0 4px 16px rgba(253, 120, 87, 0.25);
}

/* Sumi-e иллюстрации: contain + пергамент */
.py-16 img.rounded-lg {
  border-radius: 10px !important;
  width: 100%;
  min-height: 200px;
  aspect-ratio: 4 / 3;
  object-fit: contain !important;
  object-position: center;
  background: var(--li-parchment);
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(59, 66, 72, 0.06),
    0 8px 24px rgba(59, 66, 72, 0.08);
}

/* Тёплые фото (доверие, наставник) */
.py-16 img.rounded-lg[alt*="Макс"],
.py-16 img.rounded-lg[alt*="Студенты"],
.py-16 img.rounded-lg[alt*="выпускники"] {
  object-fit: cover !important;
  padding: 0;
  background: var(--li-surface-warm);
}

/* ── Featured courses ── */
.py-16 h2.text-2xl + .grid,
.py-16 .grid {
  gap: 1.25rem !important;
}

/* ── Финальный CTA (последняя секция) ── */
.py-16:last-of-type > .flex,
.py-16:last-of-type > div > .flex {
  background: linear-gradient(
    135deg,
    var(--li-ink) 0%,
    var(--li-charcoal-deep) 100%
  ) !important;
  border: none !important;
}

.py-16:last-of-type h2,
.py-16:last-of-type .prose p,
.py-16:last-of-type p {
  color: #fefefe !important;
}

.py-16:last-of-type h2::before {
  background: var(--li-sky);
}

/* Whitelabel: hide upstream LearnHouse / Powered by / «Сделано с помощью» */
a[href*="learnhouse.app"],
a[href*="learnhouse.io"],
a[href*="learnhouse.com"],
a[href*="//learnhouse"],
a[href*="github.com/learnhouse"],
footer a[href*="learnhouse"],
a[aria-label*="LearnHouse" i],
a[aria-label*="Powered by" i],
a[aria-label*="Сделано" i],
a[title*="LearnHouse" i],
a[title*="Powered" i],
a[title*="Сделано" i],
img[alt*="LearnHouse" i],
img[src*="learnhouse"],
[class*="powered-by"],
[class*="PoweredBy"],
[class*="poweredBy"],
[class*="made-with"],
[class*="MadeWith"],
[class*="madeWith"],
[data-testid*="powered-by"],
[data-testid*="learnhouse"],
[data-testid*="made-with"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

footer p:has(a[href*="learnhouse"]),
footer span:has(a[href*="learnhouse"]),
footer div:has(> a[href*="learnhouse"]),
footer p:has(a[href*="github.com/learnhouse"]),
aside:has(a[href*="learnhouse.app"]),
div:has(> a[href*="learnhouse.app"]):not(main):not(nav):not(header),
/* Free-plan floating «Made with» chip */
div.fixed.bottom-8.right-8.z-50,
div.fixed.bottom-8.right-8:has(a[href*="learnhouse"]),
a[href*="source=in-app"][href*="learnhouse"],
img[src*="lrn-text"],
img[src*="lrn_text"],
/* Login: Terms/Privacy + topbar LearnHouse mark */
p:has(a[href*="learnhouse.io/terms"]),
p:has(a[href*="learnhouse.io/privacy"]),
.login-topbar,
.login-topbar a[href*="learnhouse"],
img[src="/lrn.svg"],
img[src*="/lrn.svg"],
a[href="https://learnhouse.app"],
a[href="https://www.learnhouse.app"],
a[href^="https://www.learnhouse.app/"],
a[href^="https://learnhouse.app/"],
[aria-label*="LearnHouse" i],
[aria-label*="Сделано с помощью" i],
[aria-label*="Made with" i],
button:has(img[src*="productlogos/googleg"]),
button:has(img[src*="googleg/v6"]),
button:has(img[src*="googleg"]) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

body:has(input[type="password"]) div.relative.my-6:has(span.px-3),
body:has(input[type="password"]) div.space-y-2.5:has(button img[src*="googleg"]) {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}
