/* ==========================================================================
   Math2Play: website giới thiệu
   Ngôn ngữ hình ảnh: "Lớp học bằng giấy" (docs/design/redesign-2026-paper-school)
   Token màu lấy nguyên từ App/Sources/Views/PaperDesign.swift
   ========================================================================== */

@font-face {
  font-family: "Baloo 2";
  src: url("/assets/fonts/Baloo2-vi.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* PaperPalette */
  --ink: #2f1b3b;
  --body: #50415b;
  --muted: #6f6178;
  --canvas: #fbf4e8;
  --paper: #fffaf0;
  --sky: #e8f4f3;
  --rule: #9bc9c4;
  --border: #d8c9b8;
  --coral: #f16641;
  --coral-action: #c84424;
  --coral-soft: #fce1d6;
  --teal: #147c7d;
  --teal-soft: #d9eeea;
  --mustard: #d59a28;
  --mustard-soft: #f8e8bc;
  --shadow: rgba(88, 67, 61, 0.18);
  --shadow-hard: rgba(88, 67, 61, 0.22);

  /* PaperRadius */
  --r-slip: 8px;
  --r-field: 12px;
  --r-control: 16px;
  --r-card: 20px;
  --r-hero: 28px;

  /* Vân giấy: nhiễu xám rất nhạt, lát lặp. Không dùng lớp phủ position:fixed +
     mix-blend-mode vì layer cố định có blend làm trình duyệt bỏ repaint khi cuộn. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 9vw, 128px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background-color: var(--canvas);
  background-image: var(--grain);
  color: var(--body);
  font-family: "Baloo 2", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: clamp(17px, 1.05vw + 14px, 19px);
  line-height: 1.65;
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Chữ
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 5.4vw, 3.9rem);
}

h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
}

h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.42rem);
  line-height: 1.25;
}

p {
  margin: 0 0 1.1em;
  max-width: 68ch;
}

a {
  color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--coral-action);
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

strong,
b {
  font-weight: 700;
  color: var(--ink);
}

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  background: var(--mustard-soft);
  padding: 0.1em 0.4em;
  border-radius: 5px;
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-field) 0;
  z-index: 99;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.lede {
  font-size: clamp(1.08rem, 1.2vw + 0.8rem, 1.32rem);
  color: var(--body);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-head p {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Giấy: mép xé, bóng cứng lệch xuống–phải
   Bộ lọc chạy trên lớp nền ::before nên chữ bên trong không bị displace.
   -------------------------------------------------------------------------- */

.paper {
  position: relative;
  isolation: isolate;
  padding: clamp(24px, 3vw, 38px);
}

.paper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper);
  border-radius: var(--r-card);
  filter: url("#m2p-torn") drop-shadow(5px 7px 0 var(--shadow));
}

/* Thẻ giấy kẻ dòng: dòng teal + lề coral + ba lỗ bấm */
.paper--ruled {
  padding-left: clamp(48px, 6vw, 74px);
}

.paper--ruled::before {
  background-image: repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 33px,
      color-mix(in srgb, var(--rule) 55%, transparent) 33px,
      color-mix(in srgb, var(--rule) 55%, transparent) 34px
    ),
    linear-gradient(var(--paper), var(--paper));
  background-position: 0 18px, 0 0;
}

.paper--ruled::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: clamp(30px, 4vw, 46px);
  width: 2px;
  background: color-mix(in srgb, var(--coral) 70%, transparent);
  z-index: -1;
}

.holes {
  position: absolute;
  left: clamp(9px, 1.4vw, 15px);
  top: 16%;
  bottom: 16%;
  width: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 0;
}

.holes span {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--canvas);
  box-shadow: inset 1px 1px 2px var(--shadow);
}

/* Băng dính washi */
.tape {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 96px;
  height: 26px;
  transform: translateX(-50%) rotate(-2.4deg);
  background: color-mix(in srgb, var(--teal-soft) 88%, transparent);
  border-left: 2px dashed color-mix(in srgb, var(--teal) 40%, transparent);
  border-right: 2px dashed color-mix(in srgb, var(--teal) 40%, transparent);
  opacity: 0.95;
  z-index: 2;
}

.tape--coral {
  background: color-mix(in srgb, var(--coral-soft) 92%, transparent);
  border-color: color-mix(in srgb, var(--coral) 38%, transparent);
}

/* --------------------------------------------------------------------------
   Nút
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--coral-action);
  --btn-fg: #fff;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--btn-fg);
  text-decoration: none;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform 0.16s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-bg);
  border-radius: var(--r-control);
  filter: url("#m2p-torn") drop-shadow(4px 5px 0 var(--shadow-hard));
}

.btn:hover {
  transform: translate(-1px, -2px);
  color: var(--btn-fg);
}

.btn:active {
  transform: translate(1px, 2px);
}

.btn--ghost {
  --btn-bg: var(--paper);
  --btn-fg: var(--teal);
  border: 0;
}

.btn--ghost::before {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--teal) 35%, transparent);
  border-radius: var(--r-control);
}

/* Huy hiệu trạng thái phát hành */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: var(--r-control);
  background: var(--mustard-soft);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--mustard) 55%, transparent);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
}

.badge svg {
  flex: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 2px dashed color-mix(in srgb, var(--border) 90%, transparent);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 70px;
  padding-block: 10px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 2px 3px 0 var(--shadow);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--body);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--coral-action);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

/* Nút chuyển ngôn ngữ */
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--border);
}

.lang-switch button {
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 13px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--teal);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-block: clamp(46px, 7vw, 92px) clamp(56px, 8vw, 108px);
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  }
}

.hero h1 {
  margin-bottom: 0.42em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  font-size: 0.96rem;
  color: var(--muted);
  font-weight: 600;
}

.hero-note img {
  width: 30px;
  height: auto;
}

/* Cụm ảnh chụp màn hình */
.shots {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 24px);
  align-items: start;
}

.shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 0 1px 0 1px var(--border), 8px 12px 0 var(--shadow);
}

.shot--lift {
  transform: rotate(-1.6deg);
}

.shot--drop {
  transform: rotate(1.4deg) translateY(clamp(18px, 3vw, 40px));
}

.hero-mascot {
  position: absolute;
  width: clamp(96px, 13vw, 148px);
  left: -6%;
  bottom: -6%;
  transform: rotate(-8deg);
  filter: drop-shadow(4px 6px 0 var(--shadow));
  animation: bob 5.5s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: rotate(-8deg) translateY(0);
  }
  50% {
    transform: rotate(-6deg) translateY(-9px);
  }
}

/* --------------------------------------------------------------------------
   Dải nội dung
   -------------------------------------------------------------------------- */

.band {
  padding-block: var(--section-y);
}

.band--sky {
  background-color: var(--sky);
  background-image: var(--grain);
  border-block: 2px dashed color-mix(in srgb, var(--rule) 70%, transparent);
}

.band--mustard {
  background-color: var(--mustard-soft);
  background-image: var(--grain);
  border-block: 2px dashed color-mix(in srgb, var(--mustard) 45%, transparent);
}

.band--teal {
  background-color: var(--teal-soft);
  background-image: var(--grain);
  border-block: 2px dashed color-mix(in srgb, var(--teal) 30%, transparent);
}

/* Ba chặng */
.steps {
  display: grid;
  gap: clamp(24px, 3.4vw, 40px);
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  display: flex;
}

.step > .paper {
  flex: 1;
}

.step:nth-child(1) .paper::before {
  transform: rotate(-0.7deg);
}

.step:nth-child(3) .paper::before {
  transform: rotate(0.6deg);
}

.step-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-weight: 800;
  font-size: 1.32rem;
  box-shadow: 3px 4px 0 var(--shadow);
}

.step h3 {
  margin-bottom: 0.35em;
}

.step p {
  margin-bottom: 0;
  color: var(--body);
}

/* Lưới tính năng */
.grid {
  display: grid;
  gap: clamp(20px, 2.6vw, 30px);
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature h3 {
  display: flex;
  align-items: center;
  gap: 11px;
}

.feature h3 svg {
  flex: none;
  color: var(--teal);
}

.feature p {
  margin-bottom: 0;
  font-size: 0.99rem;
}

/* Khối chương trình học */
.split {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 880px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .split--flip > :first-child {
    order: 2;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.2vw, 26px);
  margin-top: 8px;
}

.stat {
  padding: 20px 22px;
  border-radius: var(--r-field);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--mustard) 40%, transparent);
}

.stat b {
  display: block;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  line-height: 1.05;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  font-size: 0.93rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.35;
}

.split-figure {
  position: relative;
  text-align: center;
}

.split-figure img.screen {
  width: min(300px, 78%);
  height: auto;
  border-radius: 26px;
  box-shadow: 0 1px 0 1px var(--border), 8px 12px 0 var(--shadow);
  transform: rotate(-1.2deg);
}


/* Danh sách dấu tick */
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.5;
}

.checks li svg {
  flex: none;
  margin-top: 5px;
  color: var(--teal);
}

/* Khối riêng tư */
.privacy-callout {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 860px) {
  .privacy-callout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

/* Bảng giá / dùng thử */
.plan-note {
  font-size: 0.93rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* Câu hỏi thường gặp */
.faq {
  display: grid;
  gap: 14px;
  max-width: 60rem;
}

details.qa {
  position: relative;
  isolation: isolate;
  border-radius: var(--r-field);
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--border), 4px 5px 0 var(--shadow);
  padding: 4px 22px;
}

details.qa summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 34px 16px 0;
  font-weight: 700;
  color: var(--ink);
  position: relative;
}

details.qa summary::-webkit-details-marker {
  display: none;
}

details.qa summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

details.qa[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

details.qa > div {
  padding-bottom: 18px;
}

details.qa p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Trang tài liệu (hỗ trợ / riêng tư)
   -------------------------------------------------------------------------- */

.doc-hero {
  padding-block: clamp(40px, 6vw, 72px) clamp(24px, 3vw, 40px);
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
  font-size: 0.95rem;
  color: var(--muted);
}

.doc-meta b {
  color: var(--ink);
  font-weight: 700;
}

.doc-layout {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  grid-template-columns: 1fr;
  padding-bottom: var(--section-y);
}

@media (min-width: 940px) {
  .doc-layout {
    grid-template-columns: 232px minmax(0, 1fr);
  }
  .toc {
    position: sticky;
    top: 96px;
  }
}

.toc {
  font-size: 0.94rem;
}

.toc p {
  font-weight: 800;
  color: var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
  border-left: 2px dashed var(--border);
  display: grid;
  gap: 9px;
}

.toc a {
  color: var(--body);
  text-decoration: none;
  font-weight: 600;
}

.toc a:hover {
  color: var(--coral-action);
  text-decoration: underline;
}

.doc {
  max-width: 44rem;
}

.doc > section {
  scroll-margin-top: 96px;
  margin-bottom: clamp(34px, 4vw, 52px);
}

.doc h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  margin-bottom: 0.6em;
  padding-bottom: 0.32em;
  border-bottom: 2px dashed var(--border);
}

.doc h3 {
  font-size: 1.12rem;
  margin-top: 1.6em;
}

.doc ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.1em;
}

.doc li {
  margin-bottom: 0.55em;
  padding-left: 0.85em;
  border-left: 3px solid color-mix(in srgb, var(--teal) 35%, transparent);
}

.doc em {
  color: var(--ink);
  font-style: normal;
  font-weight: 600;
}

/* Hộp nhấn mạnh trong tài liệu */
.callout {
  position: relative;
  isolation: isolate;
  padding: 22px 26px;
  margin: 0 0 1.4em;
  border-radius: var(--r-field);
  background: var(--teal-soft);
  box-shadow: inset 3px 0 0 var(--teal);
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout--warn {
  background: var(--mustard-soft);
  box-shadow: inset 3px 0 0 var(--mustard);
}

/* Thẻ liên hệ */
.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
}

.contact-card img {
  width: 64px;
  height: auto;
  filter: drop-shadow(3px 4px 0 var(--shadow));
}

.contact-card div {
  min-width: 200px;
  flex: 1;
}

.contact-card p {
  margin-bottom: 4px;
}

.contact-card .mail {
  font-size: 1.16rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: clamp(40px, 5vw, 64px);
  border-top: 2px dashed var(--border);
  background: color-mix(in srgb, var(--paper) 55%, transparent);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 40px;
  align-items: flex-start;
  justify-content: space-between;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Song ngữ
   -------------------------------------------------------------------------- */

[data-lang="vi"] .en,
[data-lang="en"] .vi {
  display: none;
}

/* --------------------------------------------------------------------------
   In giấy: trang chính sách và hỗ trợ hay được in ra
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .site-footer,
  .toc,
  .lang-switch {
    display: none !important;
  }
  body {
    background: #fff;
    background-image: none;
    font-size: 11pt;
  }
  .doc-layout {
    display: block;
  }
  .paper::before,
  .btn::before {
    filter: none;
  }
  a {
    color: var(--ink);
  }
}

/* --------------------------------------------------------------------------
   Tiện ích nhỏ, thay cho inline style để giữ CSP style-src 'self'
   -------------------------------------------------------------------------- */

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.mb0 {
  margin-bottom: 0;
}

.mt-md {
  margin-top: 18px;
}

.mt-lg {
  margin-top: 28px;
}

.paper--center {
  text-align: center;
}

.paper--center p {
  margin-inline: auto;
}

.cta-mascot {
  width: clamp(120px, 16vw, 180px);
  height: auto;
  margin-bottom: 8px;
  filter: drop-shadow(4px 6px 0 var(--shadow));
}

/* --------------------------------------------------------------------------
   Màn hẹp
   -------------------------------------------------------------------------- */

@media (max-width: 720px) {
  /* Header không dính trên máy nhỏ: ba dòng dính sẽ ăn mất chiều cao màn hình */
  .site-header {
    position: static;
  }

  .site-header .wrap {
    row-gap: 10px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    gap: 16px;
    font-size: 0.95rem;
  }

  .lang-switch {
    order: 2;
  }

  .hero-note {
    align-items: flex-start;
  }

  .hero-note img {
    margin-top: 3px;
  }

  /* Một ảnh chụp đủ kể chuyện; hai ảnh cạnh nhau ở 390px thì quá nhỏ để đọc */
  .shots {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin-inline: auto;
  }

  .shot--drop {
    display: none;
  }

  .shot--lift {
    transform: rotate(-1.2deg);
  }

  .hero-mascot {
    left: -10%;
    bottom: 2%;
    width: 92px;
  }
}
