:root {
  --quartz: #f4f8fc;
  --quartz-deep: #e7eef6;
  --silver: #f7fbff;
  --ink: #1c2430;
  --ink-soft: #3d4a5c;
  --emerald: #10b981;
  --emerald-deep: #047857;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --line: rgba(28, 36, 48, 0.12);
  --glass: rgba(247, 251, 255, 0.62);
  --radius: 22px;
  --font: "IBM Plex Sans Thai", "Sarabun", sans-serif;
  --display: "Outfit", "IBM Plex Sans Thai", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.7;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(34, 211, 238, 0.28), transparent 55%),
    radial-gradient(700px 480px at 92% 0%, rgba(139, 92, 246, 0.22), transparent 50%),
    radial-gradient(600px 500px at 70% 110%, rgba(16, 185, 129, 0.18), transparent 45%),
    linear-gradient(180deg, var(--quartz) 0%, var(--silver) 48%, var(--quartz-deep) 100%);
  min-height: 100vh;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--emerald-deep); }
a:hover { color: #065f46; }
h1, h2, h3 { font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
p { margin: 0 0 1rem; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus { left: 12px; background: #fff; padding: 8px 12px; z-index: 20; }

.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 8;
  backdrop-filter: blur(16px);
  background: rgba(244, 248, 252, 0.72);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 28px;
  height: 28px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(135deg, var(--emerald), var(--cyan), var(--violet));
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.55);
}
.brand-name { font-family: var(--display); font-weight: 600; letter-spacing: 0.02em; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--glass);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
}
.site-nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav a { text-decoration: none; color: var(--ink-soft); font-weight: 500; }
.site-nav a:hover { color: var(--ink); }

.crystal {
  background: linear-gradient(160deg, rgba(255,255,255,0.78), rgba(255,255,255,0.38));
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow:
    0 18px 40px rgba(28, 36, 48, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
  border-radius: var(--radius);
}
.aurora-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}
.aurora-frame::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 55%;
  background: linear-gradient(90deg, rgba(16,185,129,0.35), rgba(34,211,238,0.25), rgba(139,92,246,0.4));
  filter: blur(18px);
  animation: aurora-shift 12s ease-in-out infinite;
  pointer-events: none;
}
@keyframes aurora-shift {
  0%, 100% { transform: translateX(-8%); opacity: 0.7; }
  50% { transform: translateX(8%); opacity: 1; }
}

.hero-editorial { padding: 28px 0 12px; }
.kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald-deep);
  font-size: 0.92rem;
  font-weight: 600;
}
.hero-photo {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 28px;
}
.hero-caption {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  margin-top: -72px;
  position: relative;
  z-index: 1;
  padding: 0 12px 8px;
}
.hero-plaque {
  padding: 28px;
}
.hero-meta {
  padding: 24px;
  align-self: end;
}
.hero-meta p { margin-bottom: 0.4rem; color: var(--ink-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #34d399, #22d3ee 45%, #a78bfa);
  color: #06201a;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn, .btn:hover { color: #06201a; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.65), transparent);
  transform: translateX(-120%);
}
.btn:hover::before { animation: crystal-pulse 0.9s ease; }
.btn:hover { animation: glow-fade 1.1s ease; }
@keyframes crystal-pulse {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}
@keyframes glow-fade {
  0% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.55), 0 0 18px rgba(16, 185, 129, 0.45); }
  100% { box-shadow: 0 0 0 16px rgba(167, 139, 250, 0), 0 0 0 rgba(16, 185, 129, 0); }
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { color: var(--ink); }

.section { padding: 56px 0; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 62ch; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}
.primary-block img { border-radius: 24px; max-height: 360px; object-fit: cover; width: 100%; }

.offer-list { display: grid; gap: 18px; }
.offer-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 16px;
  padding: 14px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.offer-row img { width: 160px; height: 110px; object-fit: cover; border-radius: 14px; }
.offer-row h3 { margin: 0 0 6px; font-size: 1.15rem; }
.offer-row p { margin: 0; color: var(--ink-soft); }

.quotes { display: grid; gap: 16px; }
.quote {
  padding: 22px 24px;
  border-left: 3px solid var(--violet);
}
.quote p { font-size: 1.05rem; }
.quote cite { color: var(--ink-soft); font-style: normal; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.card img { height: 180px; width: 100%; object-fit: cover; }
.card-body { padding: 18px 18px 22px; }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.portrait { width: 100%; height: 260px; object-fit: cover; border-radius: 24px 24px 8px 8px; }

.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.price-table th { font-weight: 600; }

.form {
  display: grid;
  gap: 14px;
  padding: 24px;
}
label { font-weight: 600; display: block; margin-bottom: 6px; }
input, textarea, select {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.8);
}
.field-error, .form-status { color: #9f1239; font-size: 0.92rem; min-height: 1.2em; }
.form-status.ok { color: var(--emerald-deep); }
.form-actions { display: flex; gap: 12px; align-items: center; }

.prose { max-width: 70ch; }
.prose h2 { margin-top: 2rem; }
.list-plain { padding-left: 1.1rem; }

.site-footer {
  margin-top: 40px;
  padding: 40px 0 24px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.35);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; gap: 24px; }
.footer-label { font-weight: 700; margin-bottom: 8px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.fineprint { color: var(--ink-soft); font-size: 0.9rem; }

.cookie-banner {
  position: sticky;
  bottom: 0;
  z-index: 9;
  background: rgba(247, 251, 255, 0.92);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 40px rgba(139, 92, 246, 0.12);
}
.cookie-inner { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 16px 0; align-items: center; }
.cookie-actions { display: flex; gap: 8px; }

.page-hero img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 24px; margin-bottom: 18px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; right: 16px; top: 72px; background: var(--silver); border: 1px solid var(--line); border-radius: 16px; padding: 12px 18px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 10px; }
  .hero-caption, .split, .cards, .team-grid, .footer-grid, .cookie-inner, .offer-row {
    grid-template-columns: 1fr;
  }
  .hero-caption { margin-top: 16px; padding: 0; }
  .offer-row img { width: 100%; height: 180px; }
}
