:root {
  --brand: #c8102e;
  --brand-dark: #8f0a20;
  --brand-light: #fdecef;
  --brand-glow: rgba(200, 16, 46, 0.28);
  --ink: #1f2329;
  --ink-2: #4a5058;
  --ink-3: #767c85;
  --line: #e6e8eb;
  --bg: #ffffff;
  --bg-2: #f7f8fa;
  --bg-3: #f0f2f5;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.6);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 6px 24px rgba(31, 35, 41, 0.08);
  --shadow-lg: 0 18px 48px rgba(31, 35, 41, 0.14);
  --max: 1180px;
  --header-h: 68px;
}

html[data-theme="dark"] {
  --brand: #ff5a75;
  --brand-dark: #ff8095;
  --brand-light: #2a1218;
  --brand-glow: rgba(255, 90, 117, 0.3);
  --ink: #eef0f3;
  --ink-2: #c3c8d0;
  --ink-3: #8f96a1;
  --line: #2b3038;
  --bg: #12151a;
  --bg-2: #181c22;
  --bg-3: #1f242c;
  --glass: rgba(24, 28, 34, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  transition: background .3s, color .3s;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  line-height: 1.35;
  margin: 0 0 .6em;
  color: var(--ink);
  font-weight: 700;
}

h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
}

h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
}

h3 {
  font-size: clamp(1.1rem, 1.9vw, 1.35rem);
}

h4 {
  font-size: 1.02rem;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

li {
  margin: .35em 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  z-index: 9999;
  border-radius: 0 0 8px 0;
}

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

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, background .3s;
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--ink);
  white-space: nowrap;
}

.logo:hover {
  text-decoration: none;
}

.logo svg {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}

.logo:hover svg {
  transform: rotate(-8deg) scale(1.08);
}

.logo .logo-sub {
  display: block;
  font-size: .68rem;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: .5px;
}

.main-nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 8px 11px;
  border-radius: 9px;
  color: var(--ink-2);
  font-size: .9rem;
  font-weight: 500;
  transition: .2s;
  position: relative;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--brand-light);
  color: var(--brand);
  text-decoration: none;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-2);
  border-radius: 10px;
  cursor: pointer;
  transition: .25s;
}

.icon-btn:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--brand-light);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 0;
  opacity: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  height: 40px;
  background: var(--bg);
  color: var(--ink);
  transition: width .3s, opacity .3s, padding .3s;
  font-size: .9rem;
}

.search-box.open input {
  width: 200px;
  opacity: 1;
  padding: 0 12px;
  margin-right: 6px;
}

.search-box input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 10px 20px 18px;
}

.mobile-nav.open {
  display: block;
  animation: slideDown .3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.mobile-nav a {
  display: block;
  padding: 11px 8px;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 500;
}

.mobile-nav a:hover {
  background: var(--brand-light);
  color: var(--brand);
  text-decoration: none;
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: .86rem;
  color: var(--ink-3);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
}

.breadcrumb li::after {
  content: "›";
  margin-left: 6px;
  color: var(--ink-3);
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb a {
  color: var(--ink-2);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 520px at 12% -10%, var(--brand-glow), transparent 60%),
    radial-gradient(900px 480px at 92% 8%, rgba(255, 122, 144, 0.22), transparent 62%),
    linear-gradient(135deg, var(--brand-light), var(--bg-2) 55%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, var(--brand-glow) 0, transparent 3px),
    radial-gradient(circle at 70% 60%, var(--brand-glow) 0, transparent 2px),
    radial-gradient(circle at 45% 80%, var(--brand-glow) 0, transparent 2px);
  background-size: 220px 220px, 180px 180px, 260px 260px;
  opacity: .5;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
  padding: 60px 0;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--brand);
  font-weight: 600;
  font-size: .82rem;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin-bottom: 16px;
}

.hero h1 .hl {
  color: var(--brand);
  background: linear-gradient(120deg, var(--brand), #ff7a90 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--ink-2);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 11px;
  font-weight: 600;
  font-size: .96rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .25s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 8px 20px var(--brand-glow);
}

.btn-primary:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px var(--brand-glow);
}

.btn-primary svg {
  transition: transform .25s;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-ghost {
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 26px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.stat b {
  display: block;
  font-size: 1.7rem;
  color: var(--brand);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: .84rem;
  color: var(--ink-3);
}

.hero-visual {
  position: relative;
}

.hero-visual svg {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  animation: floatY 6s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============ Carousel ============ */
.carousel {
  position: relative;
  margin-top: 34px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.carousel-track {
  display: flex;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}

.carousel-slide {
  min-width: 100%;
  padding: 30px 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}

.carousel-slide svg {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
}

.carousel-slide h3 {
  margin-bottom: 6px;
}

.carousel-slide p {
  margin: 0;
  color: var(--ink-2);
  font-size: .94rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0 0 16px;
}

.carousel-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  padding: 0;
  transition: .25s;
}

.carousel-dots button.active {
  background: var(--brand);
  width: 24px;
  border-radius: 5px;
}

/* ============ Sections ============ */
.section {
  padding: 64px 0;
  position: relative;
}

.section.alt {
  background: var(--bg-2);
}

.section-head {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-head .tag {
  display: inline-block;
  color: var(--brand);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-light);
}

.section-head h2 {
  margin-bottom: 10px;
}

.section-head p {
  color: var(--ink-2);
  margin: 0;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ============ Cards ============ */
.card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .3s cubic-bezier(.34, 1.3, .64, 1), box-shadow .3s, border-color .3s;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--brand-glow), transparent 55%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: var(--brand);
}

.card:hover::after {
  opacity: .55;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--ink-2);
  font-size: .94rem;
  margin: 0;
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-light), var(--bg-2));
  color: var(--brand);
  margin-bottom: 14px;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}

.card:hover .card-icon {
  transform: scale(1.1) rotate(-6deg);
}

.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-card .meta {
  font-size: .8rem;
  color: var(--ink-3);
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.article-card .excerpt {
  color: var(--ink-2);
  font-size: .92rem;
  flex: 1;
}

.article-card .more {
  margin-top: 14px;
  font-weight: 600;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .25s, color .25s;
}

.article-card:hover .more {
  gap: 9px;
}

/* ============ Reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .3, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============ FAQ ============ */
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
}

.faq-item:hover {
  border-color: var(--brand);
}

.faq-item.open {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-family: inherit;
  transition: color .2s;
}

.faq-q:hover {
  color: var(--brand);
}

.faq-q .arrow {
  transition: transform .3s, color .3s;
  flex: 0 0 auto;
  color: var(--brand);
}

.faq-item.open .faq-q .arrow {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}

.faq-a-inner {
  padding: 0 20px 18px;
  color: var(--ink-2);
  font-size: .94rem;
}

.faq-a-inner p:last-child {
  margin-bottom: 0;
}

/* ============ HowTo ============ */
.howto-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.howto-steps li {
  position: relative;
  padding-left: 56px;
  margin-bottom: 22px;
}

.howto-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 6px 16px var(--brand-glow);
}

.howto-steps h4 {
  margin-bottom: 4px;
}

.howto-steps p {
  margin: 0;
  color: var(--ink-2);
  font-size: .94rem;
}

/* ============ Table ============ */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  min-width: 560px;
  background: var(--bg);
}

th,
td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--bg-2);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr {
  transition: background .2s;
}

tbody tr:hover {
  background: var(--brand-light);
}

/* ============ Testimonial ============ */
.testimonial {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  margin: 0;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.testimonial::before {
  content: "“";
  position: absolute;
  top: 6px;
  right: 18px;
  font-size: 3.4rem;
  color: var(--brand-light);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

.testimonial p {
  color: var(--ink-2);
  font-size: .94rem;
  position: relative;
}

.testimonial .who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.testimonial .who svg {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.testimonial .who b {
  display: block;
  font-size: .92rem;
}

.testimonial .who span {
  font-size: .8rem;
  color: var(--ink-3);
}

/* ============ Case ============ */
.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  transition: box-shadow .3s, border-color .3s;
}

.case:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.case + .case {
  margin-top: 20px;
}

.case-body {
  padding: 28px;
}

.case-body h3 {
  margin-bottom: 10px;
}

.case-body p {
  color: var(--ink-2);
  font-size: .94rem;
  margin: 0;
}

.case-visual {
  background: linear-gradient(135deg, var(--brand-light), var(--bg-2));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.case-visual svg {
  width: 100%;
  max-width: 260px;
  height: auto;
  transition: transform .4s cubic-bezier(.34, 1.3, .64, 1);
}

.case:hover .case-visual svg {
  transform: scale(1.05);
}

.case:nth-child(even) .case-visual {
  order: -1;
}

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 30px;
}

.contact-info {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .94rem;
}

.contact-info li:last-child {
  border-bottom: none;
}

.contact-info li svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--brand);
  margin-top: 3px;
}

.contact-info li b {
  display: block;
  font-size: .82rem;
  color: var(--ink-3);
  font-weight: 600;
}

.map-placeholder {
  background: linear-gradient(135deg, var(--brand-light), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 260px;
}

.map-placeholder svg {
  width: 80px;
  height: 80px;
  color: var(--brand);
  margin-bottom: 14px;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 52px 0 24px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 34px;
}

.footer-col h4 {
  font-size: .95rem;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin: .5em 0;
}

.footer-col a {
  color: var(--ink-2);
  font-size: .9rem;
  transition: color .2s, padding-left .2s;
}

.footer-col a:hover {
  color: var(--brand);
  padding-left: 3px;
}

.footer-about p {
  color: var(--ink-2);
  font-size: .9rem;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .84rem;
  color: var(--ink-3);
}

.footer-bottom a {
  color: var(--ink-3);
}

/* ============ Back Top ============ */
.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.9);
  transition: .3s;
  z-index: 900;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px var(--brand-glow);
}

/* ============ Misc ============ */
.notice {
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: .9rem;
  color: var(--ink-2);
  margin: 18px 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
  margin: 0;
}

.tag-list li {
  margin: 0;
}

.tag-list a {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .84rem;
  transition: .22s;
}

.tag-list a:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .main-nav a {
    padding: 8px 8px;
    font-size: .86rem;
  }
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 42px 0;
  }

  .hero-visual {
    max-width: 520px;
    margin: 0 auto;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .case {
    grid-template-columns: 1fr;
  }

  .case:nth-child(even) .case-visual {
    order: 0;
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 18px;
  }

  .search-box.open input {
    width: 130px;
  }

  .section {
    padding: 44px 0;
  }

  .carousel-slide {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .card {
    padding: 20px;
  }

  .case-body {
    padding: 22px;
  }

  .back-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}