:root {
  --black: #07080b;
  --panel: #11131a;
  --panel-2: #181b24;
  --text: #f8f8f8;
  --muted: #a8adba;
  --red: #ef233c;
  --red-dark: #bd1730;
  --yellow: #ffb703;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--black);
  font-family: "Kumbh Sans", Arial, sans-serif;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { color: var(--muted); line-height: 1.75; }
h1, h2, h3 { margin: 0; font-family: "Kanit", Arial, sans-serif; line-height: 1.02; text-transform: uppercase; }

.topbar {
  display: flex;
  justify-content: center;
  gap: 34px;
  padding: 10px 18px;
  color: #d9dbe2;
  background: #0d0f15;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.topbar a { color: var(--yellow); font-weight: 800; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 76px);
  background: rgba(7, 8, 11, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.logo img { width: 170px; }
.nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 34px);
  font-family: "Kanit", Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}
.nav a { position: relative; padding: 18px 0; }
.nav a::after {
  position: absolute;
  left: 0;
  bottom: 11px;
  width: 0;
  height: 3px;
  background: var(--red);
  content: "";
  transition: width .2s ease;
}
.nav a:hover::after { width: 100%; }

.header-cta, .btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 0;
  font-family: "Kanit", Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}
.header-cta, .btn-primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 16px 32px rgba(239, 35, 60, .28);
}
.btn-ghost { border: 1px solid var(--line); color: #fff; background: rgba(255,255,255,.06); }
.btn:hover, .header-cta:hover { transform: translateY(-2px); }
.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

.hero {
  position: relative;
  min-height: calc(100vh - 112px);
  display: grid;
  align-items: center;
  padding: 90px clamp(18px, 6vw, 92px);
  overflow: hidden;
  background: url("../img/hero.webp") center right/cover no-repeat;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,8,11,.98) 0%, rgba(7,8,11,.78) 47%, rgba(7,8,11,.22) 100%),
    radial-gradient(circle at 20% 28%, rgba(239,35,60,.35), transparent 28%);
}
.hero__content, .hero__metrics { position: relative; z-index: 1; }
.kicker, .section-kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-family: "Kanit", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1 { max-width: 760px; font-size: clamp(46px, 7vw, 104px); }
h2 { font-size: clamp(34px, 5vw, 64px); }
.hero p:not(.kicker) { max-width: 590px; font-size: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__metrics {
  position: absolute;
  right: clamp(18px, 6vw, 92px);
  bottom: 42px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  box-shadow: var(--shadow);
}
.hero__metrics div { min-width: 150px; padding: 20px; background: rgba(17,19,26,.88); }
.hero__metrics strong { display: block; color: var(--yellow); font-family: "Kanit"; font-size: 34px; }
.hero__metrics span { color: var(--muted); font-weight: 700; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}
.features article {
  padding: 42px clamp(18px, 4vw, 62px);
  background: var(--panel);
}
.features span { color: var(--red); font-family: "Kanit"; font-size: 40px; font-weight: 800; opacity: .8; }
.features h3 { margin-top: 10px; font-size: 26px; }

.section, .section-dark { padding: 92px clamp(18px, 5vw, 76px); }
.section { background: #fff; color: #101015; }
.section p { color: #5f6470; }
.section-dark { background: var(--black); }
.section-title { max-width: 780px; margin: 0 auto 46px; text-align: center; }

.about {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(34px, 6vw, 86px);
}
.about__media {
  position: relative;
  overflow: hidden;
  background: #11131a;
  box-shadow: var(--shadow);
}
.about__media::before {
  display: none;
  content: "";
}
.about__media img {
  position: relative;
  width: calc(100% + 40px);
  max-width: none;
  margin: -20px;
}
.about__call {
  display: inline-grid;
  gap: 4px;
  margin-top: 24px;
  padding: 20px 24px;
  color: #fff;
  background: #101015;
}
.about__call a { color: var(--yellow); font-family: "Kanit"; font-size: 28px; }

.service-grid, .team-grid, .pricing-grid, .blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.service-grid article, .team-grid article, .pricing-grid article, .blog-grid article {
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.service-grid img { width: 54px; height: 54px; object-fit: contain; margin-bottom: 22px; }
.service-grid a, .blog-grid time { color: var(--red); font-weight: 800; }

.why {
  display: grid;
  grid-template-columns: .9fr 1fr;
  gap: clamp(28px, 5vw, 70px);
  background: linear-gradient(rgba(7,8,11,.86), rgba(7,8,11,.86)), url("../img/hero-mobile.webp") center/cover;
  color: #fff;
}
.why p { color: #d5d8df; }
details {
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
}
summary {
  cursor: pointer;
  padding: 20px;
  font-family: "Kanit";
  font-size: 20px;
  font-weight: 700;
}
details p { margin: 0; padding: 0 20px 20px; }

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.program-grid div { position: relative; min-height: 280px; overflow: hidden; background: #111; }
.program-grid img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.72); transition: transform .3s ease; }
.program-grid strong { position: absolute; left: 20px; right: 20px; bottom: 20px; color: #fff; font-family: "Kanit"; font-size: 24px; text-transform: uppercase; }
.program-grid div:hover img { transform: scale(1.06); }

.team-grid article { padding: 0 0 22px; text-align: center; }
.team-grid img { width: 100%; height: 310px; object-fit: cover; }
.team-grid h3 { margin-top: 20px; }
.team-grid p { margin: 4px 0 0; color: var(--red); font-weight: 800; }

.pricing-grid { grid-template-columns: repeat(3, 1fr); }
.pricing-grid article { position: relative; overflow: hidden; background: #f7f7f7; color: #101015; border: 0; }
.pricing-grid article::before { position: absolute; inset: 0; background: linear-gradient(145deg, rgba(239,35,60,.08), transparent); content: ""; }
.pricing-grid article > * { position: relative; }
.pricing-grid img { width: 72px; height: 72px; margin-bottom: 22px; object-fit: contain; }
.pricing-grid strong { display: block; margin: 14px 0; color: var(--red); font-family: "Kanit"; font-size: 38px; }
.pricing-grid .featured { background: #101015; color: #fff; transform: translateY(-14px); }
.pricing-grid .featured p { color: #d7d9df; }

.blog-grid { grid-template-columns: repeat(3, 1fr); }
.blog-grid article { padding: 0 0 24px; background: #fff; color: #101015; border: 1px solid #ececf0; }
.blog-grid img { width: 100%; height: 250px; object-fit: cover; }
.blog-grid time, .blog-grid h3, .blog-grid p { margin-left: 24px; margin-right: 24px; }
.blog-grid time { display: block; margin-top: 22px; }

.footer {
  background: linear-gradient(rgba(7,8,11,.94), rgba(7,8,11,.94)), url("../img/gallery-2.webp") center/cover;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr .7fr 1fr;
  gap: 34px;
  padding: 80px clamp(18px, 5vw, 76px);
}
.footer-grid img { width: 170px; margin-bottom: 18px; }
.footer h3 { margin-bottom: 18px; font-size: 24px; }
.footer a { color: #e5e7ee; display: block; margin-bottom: 12px; }
.footer-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.footer-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0; }
.copyright { margin: 0; padding: 24px; text-align: center; background: #040509; color: #cfd2dc; }
.copyright a { display: inline; color: var(--yellow); }

.top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border: 0;
  color: #fff;
  background: var(--red);
  font-size: 22px;
  opacity: 0;
  transform: translateY(14px);
  transition: .2s ease;
}
.top.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .topbar { display: none; }
  .site-header { grid-template-columns: auto auto; }
  .menu-button { display: block; justify-self: end; }
  .nav, .header-cta { display: none; }
  .nav.is-open {
    grid-column: 1 / -1;
    display: grid;
    gap: 0;
    padding: 10px 0;
  }
  .nav.is-open a { border-top: 1px solid var(--line); padding: 14px 0; }
  .hero { min-height: 760px; }
  .hero__metrics { left: 18px; right: 18px; grid-template-columns: repeat(3, 1fr); }
  .about, .why { grid-template-columns: 1fr; }
  .service-grid, .team-grid, .program-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1101px) and (max-width: 1350px) {
  .about {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
    gap: 52px;
  }

  .about__media img {
    max-height: 560px;
    object-fit: cover;
  }
}

@media (max-width: 720px) {
  .site-header { padding: 12px 16px; }
  .logo img { width: 142px; }
  h1 { font-size: clamp(38px, 13vw, 56px); }
  h2 { font-size: clamp(30px, 10vw, 44px); }
  h3 { font-size: 22px; }
  p { line-height: 1.65; }
  .hero {
    min-height: 690px;
    padding: 44px 18px 196px;
    background-image: url("../img/hero-mobile.webp");
    background-position: center;
  }
  .hero p:not(.kicker) {
    max-width: 100%;
    font-size: 16px;
  }
  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 260px;
  }
  .hero__shade { background: linear-gradient(180deg, rgba(7,8,11,.92), rgba(7,8,11,.62)); }
  .hero__metrics { grid-template-columns: 1fr; bottom: 22px; }
  .hero__metrics div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    padding: 10px 14px;
  }
  .hero__metrics strong { font-size: 28px; }
  .section, .section-dark { padding: 70px 18px; }
  .features, .service-grid, .team-grid, .program-grid, .pricing-grid, .blog-grid, .footer-grid { grid-template-columns: 1fr; }
  .features article { padding: 30px 18px; }
  .about__media img {
    width: calc(100% + 28px);
    margin: -14px;
  }
  .about__call {
    width: 100%;
  }
  .about__call a {
    font-size: 24px;
  }
  .service-grid article,
  .pricing-grid article {
    padding: 24px;
  }
  .program-grid div {
    min-height: 220px;
  }
  .pricing-grid .featured { transform: none; }
  .team-grid img, .blog-grid img { height: 260px; }
  .footer-grid {
    gap: 22px;
    padding-top: 62px;
    padding-bottom: 62px;
  }
  .footer-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 430px) {
  .site-header {
    padding-left: 12px;
    padding-right: 12px;
  }

  .logo img {
    width: 132px;
  }

  .menu-button {
    width: 42px;
    height: 42px;
  }

  .hero {
    min-height: 710px;
  }

  .kicker,
  .section-kicker {
    font-size: 13px;
    letter-spacing: .09em;
  }

  .btn,
  .header-cta {
    min-height: 46px;
    padding: 11px 18px;
  }

  .features h3 {
    font-size: 23px;
  }

  summary {
    font-size: 18px;
  }

  .pricing-grid strong {
    font-size: 32px;
  }

  .copyright {
    padding-left: 14px;
    padding-right: 14px;
    font-size: 14px;
  }
}
