/* ==========================================================================
   HAMAC — main stylesheet
   Palette inherited from www.hamacchina.com : navy #041e42 / gold #f8c300
   ========================================================================== */

:root {
  --navy: #041e42;
  --navy-2: #0b2c5c;
  --navy-3: #123a72;
  --blue: #386396;
  --blue-soft: #99aec5;
  --gold: #f8c300;
  --gold-dark: #e1b306;
  --ink: #1c3856;
  --text: #353535;
  --muted: #5c5c5c;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-deep: #f0f3f8;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 6px 24px rgba(4, 30, 66, .08);
  --shadow-lg: 0 18px 48px rgba(4, 30, 66, .16);
  --wrap: 1400px;
  --head-h: 78px;
  --trans: .38s cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: var(--navy-3); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--gold-dark); }
h1, h2, h3, h4, h5 { color: var(--navy); line-height: 1.28; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.32rem; }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1.05em; }
ul, ol { padding-left: 1.15em; margin: 0 0 1.05em; }
li { margin-bottom: .4em; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95rem; }
th, td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
th { background: var(--navy); color: #fff; font-weight: 600; }
tbody tr:nth-child(even) { background: #fafcff; }
strong { color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.mt { margin-top: 34px; }
.text-center { text-align: center; }

/* ---------- utility ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px; border-radius: 40px; font-weight: 700;
  background: var(--gold); color: var(--navy);
  box-shadow: 0 8px 20px rgba(248, 195, 0, .32);
  transition: var(--trans); border: 0; cursor: pointer; font-size: .95rem;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(248, 195, 0, .45); color: var(--navy); }
.btn.ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .6); box-shadow: none; }
.btn.ghost:hover { background: #fff; color: var(--navy); }
.btn.line { background: transparent; color: var(--navy); border: 2px solid var(--navy); box-shadow: none; }
.btn.line:hover { background: var(--navy); color: #fff; }

.eyebrow {
  display: inline-block; color: var(--gold-dark); font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; font-size: .74rem; margin-bottom: 12px;
}
.section { padding: 74px 0; }
.section.soft { background: var(--bg-soft); }
.section.deep { background: var(--bg-deep); }
.section-head { max-width: 860px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* headline divider */
.h-deco { width: 74px; height: 4px; background: var(--gold); border-radius: 3px; margin: 16px auto 0; }
.h-deco.left { margin-left: 0; }

/* ==========================================================================
   Top bar + header
   ========================================================================== */
.topbar {
  background: var(--navy); color: rgba(255, 255, 255, .82);
  font-size: .84rem; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.topbar .wrap { display: flex; align-items: center; justify-content: flex-end; gap: 22px; min-height: 42px; flex-wrap: wrap; }
.topbar a { color: rgba(255, 255, 255, .82); }
.topbar a:hover { color: var(--gold); }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar .tb-sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .22); }
.topbar svg { width: 15px; height: 15px; fill: var(--gold); flex: none; }

.langsel { position: relative; }
.langsel > button {
  background: transparent; border: 0; color: rgba(255, 255, 255, .82); cursor: pointer;
  font: inherit; display: inline-flex; align-items: center; gap: 7px; padding: 4px 0;
}
.langsel > button:hover { color: var(--gold); }
.langsel ul {
  position: absolute; right: 0; top: 100%; margin: 0; padding: 8px 0; list-style: none;
  background: #fff; min-width: 178px; border-radius: 10px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: var(--trans); z-index: 90;
}
.langsel:hover ul { opacity: 1; visibility: visible; transform: translateY(0); }
.langsel ul li a { display: flex; align-items: center; gap: 9px; padding: 8px 16px; color: var(--text); font-size: .87rem; }
.langsel ul li a:hover { background: var(--bg-soft); color: var(--navy); }
.langsel ul li a .flag { font-size: 1.05rem; line-height: 1; }
.langsel ul li a.active { color: var(--gold-dark); font-weight: 700; }

.site-header {
  position: sticky; top: 0; z-index: 80; background: #fff;
  box-shadow: 0 2px 14px rgba(4, 30, 66, .07);
  transition: box-shadow var(--trans), background var(--trans);
}
.site-header.stuck { box-shadow: 0 6px 26px rgba(4, 30, 66, .13); }
.site-header .wrap { display: flex; align-items: center; gap: 26px; min-height: var(--head-h); }

.logo img { height: 46px; width: auto; transition: height var(--trans); }
.site-header.stuck .logo img { height: 38px; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block; padding: 26px 15px; font-weight: 600; font-size: .93rem;
  color: var(--navy); position: relative; white-space: nowrap;
}
.main-nav > ul > li > a::after {
  content: ''; position: absolute; left: 50%; bottom: 18px; width: 0; height: 3px;
  background: var(--gold); transform: translateX(-50%); transition: width var(--trans);
}
.main-nav > ul > li > a:hover::after, .main-nav > ul > li > a.active::after { width: 26px; }
.main-nav > ul > li > a.active { color: var(--gold-dark); }

/* mega dropdown */
.has-mega > .mega {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%) translateY(12px);
  background: #fff; min-width: 900px; max-width: 1160px; padding: 30px;
  box-shadow: var(--shadow-lg); border-radius: var(--radius-lg); border-top: 4px solid var(--gold);
  opacity: 0; visibility: hidden; transition: var(--trans); z-index: 85;
}
.has-mega:hover > .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 34px; }
.mega h4 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega ul li { margin-bottom: 5px; }
.mega ul a { font-size: .9rem; color: var(--text); }
.mega ul a:hover { color: var(--gold-dark); padding-left: 4px; }
.mega-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.mega-foot p { margin: 0; font-size: .88rem; color: var(--muted); }

.nav-cta { display: flex; align-items: center; gap: 12px; margin-left: 14px; }
.nav-cta .btn { padding: 11px 22px; font-size: .88rem; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: var(--trans); }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* mobile drawer: hidden by default, only revealed by the burger under 900px */
.nav-drawer { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 45%, var(--navy-3) 100%);
  padding: 96px 0 92px;
}
.hero.slim { padding: 58px 0 52px; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(1100px 480px at 82% 12%, rgba(248, 195, 0, .22), transparent 62%);
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px;
  background: #fff; clip-path: ellipse(78% 100% at 50% 100%);
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: center; }
.hero h1 { color: #fff; font-size: 3rem; margin-bottom: 18px; }
.hero h1 .accent { color: var(--gold); }
.hero p.lead { font-size: 1.12rem; color: rgba(255, 255, 255, .88); max-width: 620px; }
.hero .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-figure { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: rgba(255, 255, 255, .06); }
.hero-figure img { width: 100%; height: 320px; object-fit: cover; transition: transform 1.1s ease; }
.hero-figure:hover img { transform: scale(1.06); }

/* hero stats */
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; position: relative; z-index: 3; }
.hero-stats .stat {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius); padding: 20px 18px; text-align: center; backdrop-filter: blur(6px);
  transition: var(--trans);
}
.hero-stats .stat:hover { background: rgba(248, 195, 0, .16); transform: translateY(-5px); }
.hero-stats .num { font-size: 2rem; font-weight: 800; color: var(--gold); line-height: 1.1; }
.hero-stats .lbl { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .75); }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid { display: grid; gap: 26px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: var(--trans); display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .thumb { position: relative; overflow: hidden; background: var(--bg-soft); aspect-ratio: 4 / 3; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.card:hover .thumb img { transform: scale(1.08); }
.card .thumb .tagpos {
  position: absolute; left: 14px; top: 14px; background: var(--gold); color: var(--navy);
  font-size: .72rem; font-weight: 700; padding: 5px 11px; border-radius: 20px; letter-spacing: .04em;
}
.card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card .body h3 { font-size: 1.06rem; margin-bottom: 10px; }
.card .body h3 a { color: inherit; }
.card .body h3 a:hover { color: var(--gold-dark); }
.card .body p { color: var(--muted); font-size: .93rem; flex: 1; }
.card .more { font-weight: 700; font-size: .87rem; color: var(--navy-3); display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; }
.card .more::after { content: '\2192'; transition: transform var(--trans); }
.card:hover .more::after { transform: translateX(5px); }

.more-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); }
.more-link:hover { color: var(--gold-dark); gap: 12px; }

/* icon list */
.iconbox { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: var(--trans); height: 100%; }
.iconbox:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.iconbox .ic {
  flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
}
.iconbox .ic svg { width: 24px; height: 24px; fill: var(--gold); }
.iconbox h4 { margin-bottom: 4px; font-size: 1.02rem; }
.iconbox p { margin: 0; font-size: .91rem; color: var(--muted); }

/* content / article area */
.content-main { max-width: 100%; }
.prose { font-size: 1.02rem; }
.prose h2 { margin-top: 46px; }
.prose h3 { margin-top: 30px; }
.prose ul li::marker { color: var(--gold-dark); }
.prose img { border-radius: var(--radius); margin: 24px 0; box-shadow: var(--shadow); }
.prose a { text-decoration: underline; text-decoration-color: rgba(248, 195, 0, .8); text-underline-offset: 3px; }

/* feature / detail layout */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.detail-grid .stack-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.detail-grid .stack-img img { width: 100%; }
.detail-grid .badge-box {
  position: absolute; left: -18px; bottom: -18px; background: var(--gold); color: var(--navy);
  padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-weight: 800;
}
.detail-grid .badge-box small { display: block; font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 17px 52px 17px 20px; font-weight: 700; color: var(--navy);
  list-style: none; position: relative; font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--gold-dark); font-weight: 700; transition: transform .3s ease;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item .answer { padding: 0 20px 18px; color: var(--muted); font-size: .96rem; }
.faq-item[open] { border-color: var(--gold); box-shadow: 0 4px 18px rgba(248, 195, 0, .16); }

/* ==========================================================================
   Breadcrumb + page head
   ========================================================================== */
.breadcrumb { font-size: .84rem; color: var(--muted); padding: 14px 0; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb li::after { content: '/'; margin-left: 8px; color: var(--line); }
.breadcrumb li:last-child::after { content: ''; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold-dark); }

/* ==========================================================================
   Sidebar (listing pages)
   ========================================================================== */
.layout-side { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.sidebar { position: sticky; top: 108px; }
.side-box { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; margin-bottom: 24px; }
.side-box > h4 { background: var(--navy); color: #fff; margin: 0; padding: 14px 18px; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.side-box ul { list-style: none; margin: 0; padding: 8px 0; }
.side-box ul a { display: block; padding: 9px 18px; font-size: .93rem; border-left: 3px solid transparent; }
.side-box ul a:hover, .side-box ul a.on { background: var(--bg-soft); border-left-color: var(--gold); color: var(--navy); }

/* enquiry form */
.form-card { background: #fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); border-top: 4px solid var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .84rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
  font: inherit; font-size: .94rem; transition: var(--trans); background: #fff; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(248, 195, 0, .16);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 12px; }
.form-status { display: none; margin-top: 14px; padding: 12px 16px; border-radius: 8px; font-size: .9rem; }
.form-status.ok { display: block; background: #eaf7ee; color: #1c7a37; border: 1px solid #b9e3c6; }
.form-status.err { display: block; background: #fdecea; color: #a63a2a; border: 1px solid #f4c3bb; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 55%, var(--blue) 100%);
  color: #fff; padding: 62px 0; position: relative; overflow: hidden;
}
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 300px at 88% 20%, rgba(248, 195, 0, .25), transparent 60%); }
.cta-band .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, .85); margin-bottom: 0; }
.cta-actions { display: flex; gap: 14px; justify-content: flex-end; flex-wrap: wrap; }

/* ==========================================================================
   Pagination
   ========================================================================== */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 34px; }
.pager a, .pager span {
  min-width: 42px; height: 42px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy);
  font-weight: 600; font-size: .92rem; transition: var(--trans);
}
.pager a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); transform: translateY(-2px); }
.pager .current { background: var(--navy); border-color: var(--navy); color: #fff; cursor: default; }
.pager .dots { border: 0; background: transparent; min-width: 24px; color: var(--muted); }
.pager-info { text-align: center; color: var(--muted); font-size: .9rem; margin-top: -6px; }

/* ==========================================================================
   Floating contact rail
   ========================================================================== */
.contact-rail { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 120; display: flex; flex-direction: column; gap: 10px; }
.rail-item { position: relative; display: flex; align-items: center; justify-content: flex-end; }
.rail-btn {
  width: 58px; height: 58px; border-radius: 50% 0 0 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; box-shadow: -4px 6px 18px rgba(4, 30, 66, .22);
  transition: transform var(--trans), box-shadow var(--trans);
}
.rail-btn.wa { background: linear-gradient(135deg, #25d366, #128c7e); }
.rail-btn.mail { background: linear-gradient(135deg, var(--navy-3), var(--navy)); }
.rail-btn.topb { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); }
.rail-btn svg { width: 27px; height: 27px; fill: #fff; }
.rail-btn.topb svg { fill: var(--navy); }
.rail-btn:hover { transform: translateX(-4px); box-shadow: -8px 10px 26px rgba(4, 30, 66, .3); }
.rail-panel {
  position: absolute; right: 64px; top: 50%; transform: translateY(-50%) translateX(14px);
  width: 258px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 18px; opacity: 0; visibility: hidden; transition: var(--trans); border-left: 4px solid var(--gold);
}
.rail-item:hover .rail-panel { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
.rail-panel h5 { margin: 0 0 6px; font-size: .95rem; color: var(--navy); }
.rail-panel p { margin: 0 0 12px; font-size: .84rem; color: var(--muted); }
.rail-panel .big { font-weight: 800; color: var(--navy); font-size: 1rem; word-break: break-all; }
.rail-panel .btn { padding: 9px 16px; font-size: .82rem; width: 100%; justify-content: center; }
.rail-item.top { opacity: 0; pointer-events: none; transition: opacity var(--trans); }
.rail-item.top.show { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .74); font-size: .92rem; }
.footer-main { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 38px; padding: 62px 0 46px; }
.site-footer h4 { color: #fff; font-size: .92rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul a { color: rgba(255, 255, 255, .72); font-size: .89rem; }
.site-footer ul a:hover { color: var(--gold); padding-left: 3px; }
.footer-brand img { height: 42px; margin-bottom: 16px; background: #fff; padding: 6px 10px; border-radius: 6px; }
.footer-brand p { color: rgba(255, 255, 255, .66); font-size: .88rem; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.footer-contact svg { width: 17px; height: 17px; fill: var(--gold); flex: none; margin-top: 4px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .1);
  display: grid; place-items: center; transition: var(--trans);
}
.footer-social a:hover { background: var(--gold); transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; fill: #fff; }
.footer-social a:hover svg { fill: var(--navy); }
.footer-bar { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; font-size: .84rem; color: rgba(255, 255, 255, .6); }
.footer-bar .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-bar a { color: rgba(255, 255, 255, .68); }

/* 404 */
.error-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 70px 20px; }
.error-page .code { font-size: 7rem; font-weight: 900; color: var(--navy); line-height: 1; letter-spacing: .04em; }
.error-page .code span { color: var(--gold); }

/* ==========================================================================
   Reveal animations
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }
[data-delay="4"] { transition-delay: .32s; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.floaty { animation: floaty 5s ease-in-out infinite; }

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.pulse { animation: pulse-ring 2.4s infinite; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  .footer-main { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .has-mega > .mega { min-width: 720px; }
  .mega-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1080px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { display: none; }
  .hero h1 { font-size: 2.3rem; }
  .layout-side { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .main-nav > ul > li > a { padding: 22px 11px; font-size: .88rem; }
}

@media (max-width: 900px) {
  .topbar .tb-hide { display: none; }
  .main-nav { display: none; }
  .nav-cta { margin-left: auto; }
  .burger { display: block; }
  .nav-drawer {
    display: block;
    position: fixed; inset: var(--head-h) 0 0 0; background: #fff; z-index: 79;
    overflow-y: auto; padding: 22px 22px 90px; transform: translateX(100%); transition: transform var(--trans);
  }
  .nav-drawer.open { transform: none; }
  .nav-drawer ul { list-style: none; margin: 0; padding: 0; }
  .nav-drawer > ul > li { border-bottom: 1px solid var(--line); }
  .nav-drawer > ul > li > a { display: block; padding: 15px 0; font-weight: 700; color: var(--navy); }
  .nav-drawer .sub { display: none; padding: 0 0 12px 12px; }
  .nav-drawer .sub.open { display: block; }
  .nav-drawer .sub a { display: block; padding: 9px 0; font-size: .91rem; color: var(--muted); }
  .hide-under .nav-subgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }

  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.55rem; }
  .section { padding: 52px 0; }
  .wrap { padding: 0 18px; }
  .g2, .g3, .g4, .detail-grid, .form-row, .cta-band .wrap { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .cta-actions { justify-content: flex-start; }
  .rail-btn { width: 50px; height: 50px; }
  .rail-btn svg { width: 23px; height: 23px; }
  .rail-panel { width: 214px; right: 56px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 26px; padding: 44px 0 32px; }
  .detail-grid .badge-box { left: 12px; bottom: 12px; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
}

@media (max-width: 560px) {
  .hero { padding: 62px 0 54px; }
  .hero h1 { font-size: 1.85rem; }
  .hero-stats { grid-template-columns: 1fr; gap: 12px; }
  .topbar .wrap { justify-content: center; gap: 14px; }
  .topbar .tb-sep { display: none; }
  .footer-main { grid-template-columns: 1fr; }
  .error-page .code { font-size: 4.6rem; }
  .form-card { padding: 22px; }
}
