:root {
  --bg: #06090d;
  --bg-soft: #0b1118;
  --text: #f2f4f8;
  --muted: #a0acb8;
  --line: #1b2633;
  --accent: #34f5be;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Outfit", sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(6, 9, 13, 0.9);
  backdrop-filter: blur(8px);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.logo-mark {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  color: var(--muted);
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.download-btn {
  background: var(--accent);
  color: #04110f;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.65rem 1rem;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 8px;
  width: 42px;
  height: 38px;
  font-size: 1.2rem;
}

.hero {
  padding: 3.8rem 0 2.4rem;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.8rem;
  align-items: center;
}

.eyebrow {
  color: var(--accent);
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 0.8rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
}

.hero-copy p {
  max-width: 540px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.primary-btn {
  display: inline-block;
  margin-top: 0.7rem;
  background: var(--accent);
  color: #04110f;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.78rem 1.15rem;
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.glow {
  position: absolute;
  inset: 24% auto auto 8%;
  width: 260px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(52, 245, 190, 0.2);
  filter: blur(10px);
}

.person-card {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(90%, 420px);
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 35%),
    radial-gradient(circle at 65% 18%, rgba(52, 245, 190, 0.33), rgba(52, 245, 190, 0) 58%),
    linear-gradient(160deg, #202831 0%, #0f1319 45%, #080b10 100%);
}

.review-badge {
  position: absolute;
  top: 1.3rem;
  left: -1rem;
  display: grid;
  background: #111923;
  border: 1px solid #2a3544;
  border-radius: 999px;
  padding: 0.65rem 1rem;
}

.review-badge strong {
  font-size: 1.1rem;
}

.review-badge span {
  font-size: 0.8rem;
  color: var(--muted);
}

.stats {
  padding: 1.1rem 0 2.3rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.stat-grid article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  padding: 0.95rem;
}

.stat-grid strong {
  display: block;
  font-size: 1.7rem;
  margin-bottom: 0.15rem;
}

.stat-grid span {
  color: var(--muted);
  font-size: 0.93rem;
}

.section {
  padding: 3rem 0;
}

.about {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.4rem;
  align-items: center;
}

.about h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  line-height: 1.15;
}

.muted {
  color: var(--muted);
  line-height: 1.75;
}

.check-list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
}

.check-list li::before {
  content: "✓";
  color: var(--accent);
  margin-right: 0.5rem;
}

.about-image-wrap {
  position: relative;
}

.about-image {
  min-height: 470px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 55% 20%, rgba(52, 245, 190, 0.6), rgba(52, 245, 190, 0) 42%),
    linear-gradient(145deg, #1f2a35 0%, #10161d 52%, #080b10 100%);
}

.exp-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  background: #0e1620;
  border: 1px solid #243243;
  border-radius: 999px;
  padding: 0.58rem 0.8rem;
}

.exp-badge strong {
  font-size: 1.25rem;
}

.exp-badge span {
  color: var(--muted);
  font-size: 0.85rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
  padding: 1.2rem;
}

.service-card h3 {
  margin-top: 0;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.footer {
  padding: 1.3rem 0 2.1rem;
  border-top: 1px solid var(--line);
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.hero-simple {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-imgs {
  position: relative;
  line-height: 0;
}

.hb {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.8s ease;
}

.hb-2 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.hero-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 29, 44, 0.82) 0%, rgba(13, 29, 44, 0.55) 40%, rgba(13, 29, 44, 0.1) 72%, transparent 100%);
  z-index: 1;
}

.hero-simple.is-alt .hb-1 {
  opacity: 0;
}

.hero-simple.is-alt .hb-2 {
  opacity: 1;
}

.hero-text-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  padding: 2.8rem 0;
}

.hero-simple h1 {
  margin: 0;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  line-height: 1.15;
}

.yt-section {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

.yt-heading {
  margin: 0.2rem 0 1.5rem;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.yt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.yt-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  transition: transform 0.2s, border-color 0.2s;
  text-decoration: none;
}

.yt-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.yt-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.yt-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.2s;
}

.yt-card:hover .yt-play {
  opacity: 1;
}

.yt-play svg {
  width: 44px;
  height: 44px;
  fill: #fff;
}

.yt-title {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.7rem 0.75rem;
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-more {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.yt-skeleton {
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  background: linear-gradient(90deg, var(--bg-soft) 25%, #0f1a24 50%, var(--bg-soft) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border: 1px solid var(--line);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.yt-card {
  animation: fadeUp 0.4s ease both;
}

/* PiP player */
.yt-pip {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 340px;
  border-radius: 14px;
  background: #070c12;
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
  z-index: 200;
  overflow: hidden;
  animation: pip-in 0.25s ease;
}

@keyframes pip-in {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.yt-pip-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #0d1620;
  border-bottom: 1px solid var(--line);
}

.yt-pip-title {
  font-size: 0.78rem;
  color: var(--muted);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-pip-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.15rem;
  transition: color 0.15s;
}

.yt-pip-close:hover {
  color: var(--text);
}

.yt-pip-frame {
  aspect-ratio: 16 / 9;
}

.yt-pip-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 400px) {
  .yt-pip {
    width: calc(100vw - 2rem);
    right: 1rem;
    bottom: 1rem;
  }
}

.lead {
  max-width: 800px;
  margin: 1rem 0 0;
}

.category-title {
  margin: 0.2rem 0 1rem;
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
}

.library-layout {
  display: block;
}

.doc-list {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.doc-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #0a1016;
  color: var(--muted);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  line-height: 1.45;
  cursor: pointer;
  font: inherit;
}

.doc-item:hover {
  border-color: #2d4058;
  color: var(--text);
}

.doc-item.is-active {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(52, 245, 190, 0.08);
}

.pdf-panel {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #0a1016;
}

.current-title {
  margin: 0;
  padding: 0.8rem 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.pdf-viewer {
  width: 100%;
  height: min(78vh, 980px);
  border: 0;
  display: block;
}

.pdf-fallback {
  padding: 1rem;
  color: var(--muted);
}

.pdf-fallback a {
  color: var(--accent);
}

.consult-section {
  border-top: 1px solid var(--line);
}

.consult-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.company-card,
.consult-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #0a1016;
  padding: 1.1rem;
}

.company-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.company-list li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 0.7rem;
  line-height: 1.5;
}

.company-list strong {
  color: var(--text);
}

.company-list span,
.company-list a {
  color: var(--muted);
}

.company-list a:hover {
  color: var(--accent);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.secondary-btn {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.78rem 1.15rem;
  color: var(--text);
}

.consult-card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.45rem;
}

.consult-form {
  display: grid;
  gap: 0.5rem;
}

.consult-form label {
  color: var(--muted);
  font-size: 0.92rem;
}

.consult-form input,
.consult-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #070c12;
  color: var(--text);
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.consult-form textarea {
  resize: vertical;
}

.submit-btn {
  margin-top: 0.5rem;
  border: 0;
  cursor: pointer;
}

.consult-status {
  margin: 0.2rem 0 0;
  min-height: 1.5em;
  color: var(--accent);
}

@media (max-width: 980px) {
  .yt-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 410px;
  }

  .person-card {
    width: 100%;
  }

  .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .library-layout {
    display: block;
  }

  .consult-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 78px;
    left: 1.2rem;
    right: 1.2rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #090e14;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .hero {
    padding-top: 2.3rem;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 15vw, 4.4rem);
  }

  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .check-list,
  .cards {
    grid-template-columns: 1fr;
  }

  .about-image {
    min-height: 360px;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .hb-1 {
    height: 260px;
    object-fit: cover;
    object-position: center;
  }

  .hb-2 {
    height: 260px;
  }

  .hero-grad {
    background: linear-gradient(180deg, rgba(13, 29, 44, 0.78) 0%, rgba(13, 29, 44, 0.45) 100%);
  }

  .hero-text-layer {
    padding: 1rem 0;
  }

  .yt-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pdf-viewer {
    height: 72vh;
  }

  .doc-item {
    font-size: 0.95rem;
  }

  .company-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
