/* ==========================================================================
   MU Studio — Landing page dịch vụ cài đặt Server MU Online
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --primary: #fdb819;
  --primary-hover: #f0a800;
  --primary-ink: #c98a00;      /* vàng đậm cho chữ trên nền sáng */
  --primary-soft: #fff4d6;
  --secondary: #37373f;
  --dark: #1f1f24;
  --text: #212529;
  --muted: #6c757d;
  --border: #e6e6e9;
  --bg: #ffffff;
  --bg-alt: #eeeeee;

  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(31, 31, 36, .08);
  --shadow-lg: 0 20px 50px rgba(31, 31, 36, .14);
  --header-h: 72px;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

/* Chặn tràn ngang do hiệu ứng reveal trượt trái/phải */
main { overflow-x: hidden; overflow-x: clip; }

img { display: block; max-width: 100%; height: auto; }

a { color: var(--primary-ink); text-decoration: none; transition: color .25s; }
a:hover { color: var(--secondary); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--secondary);
}

p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}

.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -.125em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 13px 30px;
  border: 2px solid transparent;
  border-radius: 50px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s;
}

.btn-primary {
  background: var(--primary);
  color: var(--dark);
  box-shadow: 0 8px 20px rgba(253, 184, 25, .35);
}
.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(253, 184, 25, .45);
}

.btn-outline { border-color: var(--primary); color: var(--secondary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--dark); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--secondary); }
.btn-light:hover { background: var(--primary-soft); color: var(--dark); transform: translateY(-2px); }

.btn-sm { padding: 9px 22px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, .08); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary);
}
.logo:hover { color: var(--secondary); }

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 46px;
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  clip-path: polygon(50% 0, 100% 16%, 94% 68%, 50% 100%, 6% 68%, 0 16%);
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}
.logo-text b { font-weight: 800; color: var(--primary-ink); }
.logo-text small {
  margin-top: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { margin-inline: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  position: relative;
  display: block;
  padding: 8px 14px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 500;
  color: var(--secondary);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--dark); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 26px;
  color: var(--secondary);
}
.nav-toggle .i-close { display: none; }
body.nav-open .nav-toggle .i-open { display: none; }
body.nav-open .nav-toggle .i-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(100vh, 780px);
  padding: calc(var(--header-h) + 50px) 0 70px;
  background: var(--bg-alt);
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 720px;
  height: 720px;
  right: -180px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(253, 184, 25, .28), transparent 65%);
}
.hero::after {
  width: 320px;
  height: 320px;
  left: -120px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(55, 55, 63, .08), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px 16px;
  border-radius: 50px;
  background: #fff;
  box-shadow: var(--shadow);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
}
.hero-badge .icon { color: var(--primary); }

.hero h1 {
  margin-bottom: 14px;
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
}
.hero h1 span { color: var(--primary); white-space: nowrap; text-shadow: 0 2px 0 rgba(201, 138, 0, .35); }

.hero-lead {
  margin-bottom: 12px;
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--secondary);
}
.hero-text { max-width: 540px; color: var(--muted); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin: 30px 0 32px;
}

.btn-video {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--secondary);
  transition: color .3s;
}
.btn-video:hover { color: var(--primary-ink); }

.play-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 18px;
  color: var(--primary-ink);
}
.play-icon .icon { margin-left: 3px; }
.play-icon::before,
.play-btn::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  animation: pulse-ring 2s ease-out infinite;
}

.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary);
}
.hero-points .icon {
  width: 20px;
  height: 20px;
  padding: 4px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--dark);
}

.hero-visual img {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 30px 40px rgba(31, 31, 36, .15));
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
  max-width: 780px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--primary);
}
.section-title {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
.section-title span { color: var(--primary-ink); white-space: nowrap; }
.section-sub { margin: 0; color: var(--muted); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.services-grid > div { display: flex; }

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 44px 30px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  text-align: center;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin-bottom: 24px;
  border-radius: 22px;
  background: var(--primary-soft);
  font-size: 34px;
  color: var(--primary-ink);
  transition: background .35s, color .35s, transform .35s var(--ease);
}
.service-card:hover .service-icon {
  background: var(--primary);
  color: var(--dark);
  transform: rotate(-6deg) scale(1.05);
}

.service-card h3 { font-size: 22px; font-weight: 700; }
.service-card p { flex: 1; font-size: 15px; color: var(--muted); }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary);
}
.service-link .icon { transition: transform .3s var(--ease); }
.service-link:hover { color: var(--primary-ink); }
.service-link:hover .icon { transform: translateX(4px); }

/* ---------- About ---------- */
.about { padding-top: 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.about-media-wrap {
  position: relative;
  isolation: isolate;
  padding: 0 20px 20px 0;
}
.about-media-wrap::before {
  content: "";
  position: absolute;
  inset: 24px 0 0 24px;
  z-index: -1;
  border: 3px solid var(--primary);
  border-radius: var(--radius-lg);
}

.about-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.play-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  font-size: 28px;
  color: var(--dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  transition: transform .3s var(--ease);
}
.play-btn .icon { margin-left: 4px; }
.play-btn:hover { transform: scale(1.08); }

.about-content h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 800; }
.about-lead { font-size: 17px; font-style: italic; color: var(--muted); }

.check-list { margin: 22px 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.check-list .icon { margin-top: 2px; font-size: 22px; color: var(--primary-ink); }

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
}

.why-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 34px;
  border-radius: var(--radius-lg);
  background: var(--primary);
  background-image: radial-gradient(circle at 100% 0, rgba(255, 255, 255, .35), transparent 50%);
  color: var(--dark);
}
.why-box h2 { font-size: clamp(1.7rem, 3vw, 2.1rem); font-weight: 800; color: var(--dark); }
.why-box p { color: rgba(31, 31, 36, .85); }

.why-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: 8px;
  padding: 11px 28px;
  border: 2px solid var(--dark);
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--dark);
  transition: background .3s, color .3s;
}
.why-btn .icon { transition: transform .3s var(--ease); }
.why-btn:hover { background: var(--dark); color: var(--primary); }
.why-btn:hover .icon { transform: translateX(4px); }

.why-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-items > div { display: flex; }

.why-item {
  width: 100%;
  padding: 38px 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.why-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.why-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  border: 2px dashed var(--primary);
  border-radius: 50%;
  font-size: 32px;
  color: var(--primary-ink);
  transition: background .35s, color .35s, border-color .35s;
}
.why-item:hover .why-icon { border-color: var(--primary); background: var(--primary); color: var(--dark); }

.why-item h3 { font-size: 19px; font-weight: 700; }
.why-item p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ---------- Stats ---------- */
.stats {
  position: relative;
  padding: 72px 0;
  color: #fff;
  background:
    radial-gradient(circle at 12% 50%, rgba(253, 184, 25, .2), transparent 40%),
    radial-gradient(circle at 88% 20%, rgba(253, 184, 25, .14), transparent 35%),
    linear-gradient(135deg, var(--dark), var(--secondary));
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 14px);
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.stat { padding: 10px 16px; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .12); }

.stat-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: rgba(253, 184, 25, .14);
  font-size: 24px;
  color: var(--primary);
}
.stat-value {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-value b { color: var(--primary); }
.stat p {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 28px;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 32px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.price-card.featured {
  border: 2px solid var(--primary);
  box-shadow: 0 20px 50px rgba(253, 184, 25, .22);
}
.price-card.featured::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 120px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(180deg, var(--primary-soft), transparent);
  pointer-events: none;
}
.price-card > * { position: relative; }

.price-ribbon {
  position: absolute;
  top: 22px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 50px;
  background: #e5383b;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  color: #fff;
  box-shadow: 0 6px 14px rgba(229, 56, 59, .35);
}

.price-name {
  margin-bottom: 4px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.price-desc { margin-bottom: 20px; font-size: 14px; color: var(--muted); }

.price {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-family: var(--font-head);
  color: var(--secondary);
}
.price .amount { font-size: clamp(2.1rem, 3.2vw, 2.6rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.price .currency { font-size: 20px; font-weight: 700; color: var(--primary-ink); }

.period {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin: 14px 0 24px;
  padding: 5px 14px;
  border-radius: 50px;
  background: var(--primary-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
}
.period .icon { color: var(--primary-ink); }

.features { padding-top: 20px; border-top: 1px dashed #d9d9de; }
.features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 15px;
}
.features .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  padding: 3px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-ink);
}

.features-toggle {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 0;
  border: 0;
  background: none;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-ink);
}
.features-toggle:hover { color: var(--secondary); }
.features-toggle .icon { transition: transform .3s; }
.features-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.price-note { margin: 14px 0 24px; font-size: 13.5px; font-style: italic; color: var(--muted); }

/* ---------- Testimonials slider ---------- */
.slider { --per-view: 1; --gap: 24px; position: relative; }

.slider-viewport {
  margin: -16px -12px -24px;
  padding: 16px 12px 24px;
  overflow: hidden;
}
.slider-track {
  position: relative;
  display: flex;
  gap: var(--gap);
  touch-action: pan-y;
  transition: transform .6s var(--ease);
  cursor: grab;
}
.slider-track.dragging { cursor: grabbing; transition: none; }

.testimonial {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  margin: 0;
  padding: 32px 28px 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  user-select: none;
}
.quote-icon {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 44px;
  color: var(--primary);
  opacity: .3;
}
.stars { display: flex; gap: 3px; margin-bottom: 14px; font-size: 16px; color: var(--primary); }

.testimonial blockquote {
  flex: 1;
  margin: 0 0 22px;
  font-style: italic;
  color: var(--text);
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--secondary);
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 800;
  color: var(--primary);
}
.testimonial figcaption strong { display: block; font-family: var(--font-head); color: var(--secondary); }
.testimonial figcaption small { font-size: 13px; color: var(--muted); }

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 36px;
}
.slider-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid #d4d4d8;
  border-radius: 50%;
  background: #fff;
  font-size: 20px;
  color: var(--secondary);
  transition: background .3s, border-color .3s;
}
.slider-btn:hover { border-color: var(--primary); background: var(--primary); color: var(--dark); }

.slider-dots { display: flex; align-items: center; gap: 4px; }
.slider-dots button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
}
.slider-dots button::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 10px;
  background: #c4c4c9;
  transition: width .3s var(--ease), background .3s;
}
.slider-dots button.active { width: 36px; }
.slider-dots button.active::before { width: 28px; background: var(--primary); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: #ddd;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: rgba(31, 31, 36, .6);
  opacity: 0;
  transition: opacity .35s;
}
.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay { opacity: 1; }

.gallery-zoom {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  font-size: 22px;
  color: var(--dark);
  transform: scale(.6);
  transition: transform .35s var(--ease);
}
.gallery-item:hover .gallery-zoom { transform: scale(1); }
.gallery-caption { font-family: var(--font-head); font-size: 14px; font-weight: 600; color: #fff; text-align: center; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.contact-grid > div { display: flex; }

.info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 26px 22px;
  border-radius: var(--radius-lg);
  background: #fff;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s;
}
a.info-item:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.info-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  font-size: 22px;
  color: var(--dark);
}
.info-title { display: block; margin-bottom: 2px; font-family: var(--font-head); font-weight: 700; color: var(--secondary); }
.info-text { display: block; font-size: 14.5px; color: var(--muted); overflow-wrap: anywhere; }

.cta-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 48px;
  padding: 46px 50px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--dark), var(--secondary));
  overflow: hidden;
}
.cta-banner::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 184, 25, .35), transparent 70%);
  pointer-events: none;
}
.cta-text, .cta-actions { position: relative; z-index: 1; }
.cta-text h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; color: #fff; }
.cta-text h3 span { color: var(--primary); }
.cta-text p { margin: 0; color: rgba(255, 255, 255, .75); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

/* ---------- Footer ---------- */
.footer {
  padding-top: 72px;
  background: var(--dark);
  font-size: 14.5px;
  color: rgba(255, 255, 255, .7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 52px;
}
.footer .logo, .footer .logo:hover { color: #fff; }
.footer .logo-text small { color: rgba(255, 255, 255, .5); }
.footer-brand p { margin: 18px 0 20px; max-width: 320px; }

.footer h4 {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 10px;
  font-size: 16px;
  color: #fff;
}
.footer h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--primary);
}
.footer a { color: rgba(255, 255, 255, .82); }
.footer a:hover { color: var(--primary); }
.footer-links li { margin-bottom: 10px; }

.socials { display: flex; gap: 10px; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  font-size: 17px;
  transition: background .3s, border-color .3s, color .3s;
}
.socials a:hover { border-color: var(--primary); background: var(--primary); color: var(--dark); }

.footer-bottom {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13.5px;
  text-align: center;
}
.footer-bottom strong { color: #fff; }

/* ---------- Floating buttons ---------- */
.float-contact {
  position: fixed;
  left: 16px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.float-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
  transition: transform .25s var(--ease);
}
.float-btn:hover { color: #fff; transform: scale(1.1); }
.float-zalo { background: #0068ff; font-family: var(--font-head); font-size: 13px; font-weight: 800; }
.float-messenger { background: linear-gradient(45deg, #0099ff, #a033ff 60%, #ff5280); }
.float-phone { background: #22a06b; }
.float-phone::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22a06b;
  z-index: -1;
  animation: pulse-fill 1.8s ease-out infinite;
}
.float-phone .icon { animation: ring 1.8s ease-in-out infinite; }

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary);
  font-size: 20px;
  color: var(--dark);
  box-shadow: 0 6px 16px rgba(253, 184, 25, .4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s var(--ease), background .3s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--primary-hover); color: var(--dark); }

/* ---------- Overlays (lightbox + video) ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 80px;
  background: rgba(15, 15, 18, .92);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.overlay.is-open { opacity: 1; visibility: visible; }

.ov-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  font-size: 22px;
  color: #fff;
  transition: background .3s, color .3s;
}
.ov-btn:hover { background: var(--primary); color: var(--dark); }
.ov-close { top: 16px; right: 16px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

.lb-counter {
  position: absolute;
  top: 28px;
  left: 24px;
  font-family: var(--font-head);
  font-size: 14px;
  color: rgba(255, 255, 255, .7);
}

.lb-figure {
  margin: 0;
  text-align: center;
  transform: scale(.96);
  transition: transform .3s var(--ease);
  touch-action: pan-y;
}
.overlay.is-open .lb-figure { transform: none; }
.lb-figure img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 170px);
  margin-inline: auto;
  border-radius: 10px;
}
.lb-figure figcaption {
  margin-top: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  color: #fff;
}

.video-frame {
  position: relative;
  width: min(960px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #000;
  overflow: hidden;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  color: rgba(255, 255, 255, .8);
  background: radial-gradient(circle, #2a2a31, #000);
}
.video-empty .icon { width: 56px; height: 56px; margin: 0 auto 12px; color: var(--primary); }
.video-empty p { margin: 0; font-family: var(--font-head); font-weight: 600; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal="up"] { transform: translateY(40px); }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="zoom"] { transform: scale(.9); }
.js [data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes pulse-ring {
  0% { transform: scale(.85); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes pulse-fill {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.7); opacity: 0; }
}
@keyframes ring {
  0%, 50%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(-15deg); }
  20%, 40% { transform: rotate(15deg); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 768px) {
  .container { padding-inline: 24px; }
}

@media (max-width: 1199px) {
  .nav a { padding-inline: 10px; }
  .nav a::after { left: 10px; right: 10px; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: grid; }
  .header-cta { margin-left: auto; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 16px 24px rgba(0, 0, 0, .08);
    transition: max-height .35s var(--ease);
  }
  body.nav-open .nav { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .nav ul { flex-direction: column; gap: 0; padding: 6px 16px 14px; }
  .nav a { padding: 13px 6px; border-bottom: 1px solid var(--border); font-size: 16px; }
  .nav li:last-child a { border-bottom: 0; }
  .nav a::after { display: none; }
  .nav a.active { color: var(--primary-ink); }

  .hero { min-height: 0; padding-top: calc(var(--header-h) + 30px); text-align: center; }
  .hero-inner { grid-template-columns: 1fr; gap: 10px; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 300px; }
  .hero-text { margin-inline: auto; }
  .hero-actions, .hero-points { justify-content: center; }

  .section { padding: 76px 0; }
  .about { padding-top: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media-wrap { max-width: 600px; width: 100%; margin-inline: auto; }

  .pricing-grid { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; }

  .gallery-grid { grid-template-columns: repeat(3, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .services-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .why-items { grid-template-columns: 1fr; }
  .why-box { padding: 36px 26px; text-align: center; }
  .why-btn { align-self: center; }

  .stats { padding: 56px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .stat + .stat { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .12); }

  .cta-banner { flex-direction: column; padding: 36px 24px; text-align: center; }
  .cta-actions { justify-content: center; }

  .overlay { padding: 70px 12px 90px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

@media (max-width: 575px) {
  .section { padding: 64px 0; }
  .about { padding-top: 0; }
  .section-header { margin-bottom: 36px; }
  .section-eyebrow::before, .section-eyebrow::after { width: 18px; }

  .logo-mark { width: 36px; height: 40px; font-size: 13px; }
  .logo-text { font-size: 19px; }
  .logo-text small { font-size: 9px; letter-spacing: .12em; }
  .header-cta { padding: 8px 16px; }

  .hero-actions { flex-direction: column; }
  .price-card { padding: 34px 22px 26px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .stat { padding-inline: 8px; }
  .stat p { font-size: 12.5px; letter-spacing: .03em; text-wrap: balance; }

  .float-btn { width: 46px; height: 46px; font-size: 21px; }
  .float-zalo { font-size: 12px; }
}

@media (max-width: 359px) {
  .header-cta { display: none; }
  .nav-toggle { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
