/* ========================================
   劉鈞豪律師事務所 — Modern Minimalist v2
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;600;700;900&family=Noto+Serif+TC:wght@400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --text-primary: #111118;
  --text-secondary: #52525b;
  --text-muted: #94949e;
  --bg-white: #ffffff;
  --bg-soft: #fafafa;
  --bg-section: #f4f4f6;
  --bg-dark: #111118;
  --border: #e4e4e8;
  --border-light: #f0f0f3;
  --accent: #111118;
  --accent-subtle: #27272f;
  --gold: #b8975a;
  --gold-light: #d4b77a;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1140px;
  --font-sans: "Inter", "Noto Sans TC", -apple-system, sans-serif;
  --font-serif: "Noto Serif TC", Georgia, serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

/* --- Section System --- */
.section { padding: 120px 0; }

.section-header {
  text-align: center;
  margin-bottom: 72px;
}
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
  line-height: 1.3;
}
.section-line {
  width: 32px;
  height: 2px;
  background: var(--gold);
  margin: 20px auto 0;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0);
  backdrop-filter: blur(0px);
  transition: all 0.4s ease;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 3px;
  transition: var(--transition);
}
.navbar.scrolled .nav-logo { color: var(--text-primary); }

.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 1px;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: var(--transition);
  transform: translateX(-50%);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.navbar.scrolled .nav-links a { color: var(--text-secondary); }
.navbar.scrolled .nav-links a:hover { color: var(--text-primary); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; z-index: 1001; }
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: #fff; transition: var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--text-primary); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* ========== HERO ========== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  opacity: 0.3;
  filter: grayscale(40%);
  transform: scale(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,17,24,0.3) 0%, rgba(17,17,24,0.6) 100%);
}
.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}
.hero-content .hero-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 24px;
}
.hero-content h1 {
  font-family: var(--font-serif);
  font-size: 3.6rem;
  font-weight: 900;
  letter-spacing: 10px;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero-content .tagline {
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 48px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 44px;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 3px;
  transition: var(--transition);
}
.hero-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.3);
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.3), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* ========== ABOUT ========== */
.about { background: var(--bg-white); }
.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 72px;
  align-items: start;
}
.about-photo-wrap {
  position: relative;
}
.about-photo-wrap::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  opacity: 0.3;
}
.about-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-photo img { width: 100%; object-fit: cover; }

.about-info .about-name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.about-info .about-position {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 28px;
}
.about-info .about-text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 2;
  margin-bottom: 12px;
}
.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
}
.about-tags span {
  padding: 5px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.about-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 32px;
}
.credential-block h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 1px;
}
.credential-block li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 5px 0 5px 14px;
  position: relative;
  line-height: 1.6;
}
.credential-block li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

/* ========== SERVICES ========== */
.services { background: var(--bg-section); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--gold);
  transition: height 0.4s ease;
}
.service-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.service-card:hover::before { height: 100%; }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 24px;
  color: var(--gold);
}
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.service-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

/* ========== CASES CAROUSEL ========== */
.cases-preview { background: var(--bg-white); }
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  padding: 0 50px;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slide {
  flex: 0 0 33.333%;
  padding: 0 10px;
}
.case-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.case-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.case-card-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  padding: 20px;
  background: var(--bg-soft);
}
.case-card-body {
  padding: 16px 20px;
  text-align: center;
  border-top: 1px solid var(--border-light);
}
.case-card-body h4 {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Carousel Controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  font-size: 1.1rem;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}
.carousel-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 36px;
}
.carousel-dots .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.carousel-dots .dot.active {
  background: var(--gold);
  width: 20px;
  border-radius: 3px;
}

.see-more-wrap { text-align: center; margin-top: 52px; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 44px;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 2px;
  border-radius: var(--radius);
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(17,17,24,0.2);
}
.btn-primary:hover {
  background: var(--accent-subtle);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17,17,24,0.25);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 44px;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 2px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

/* ========== PRICING ========== */
.pricing { background: var(--bg-soft); }
.pricing-table-wrap {
  max-width: 760px;
  margin: 0 auto 72px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-white);
  box-shadow: var(--shadow-card);
}
.pricing-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}
.pricing-table-wrap th,
.pricing-table-wrap td {
  padding: 16px 28px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-light);
}
.pricing-table-wrap th {
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  letter-spacing: 1px;
  font-size: 0.8rem;
}
.pricing-table-wrap td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}
.pricing-table-wrap tr:last-child td { border-bottom: none; }
.pricing-table-wrap tbody tr:hover { background: var(--bg-soft); }

.plans-subtitle {
  text-align: center;
  margin-bottom: 40px;
}
.plans-subtitle h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.plans-subtitle p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.plan-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 44px 28px 36px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}
.plan-card.featured {
  border-color: var(--gold);
  box-shadow: 0 8px 30px rgba(184,151,90,0.12);
}
.plan-card.featured .plan-badge {
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 4px 16px;
  border-radius: 0 0 6px 6px;
}
.plan-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.plan-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}
.plan-card .price {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text-primary);
}
.plan-card .price-prefix {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}
.plan-card .price-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  display: block;
}
.plan-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0 0 20px;
}
.plan-features { text-align: left; }
.plan-features li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 7px 0 7px 22px;
  position: relative;
  line-height: 1.5;
}
.plan-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.75rem;
}
.pricing-note {
  text-align: center;
  margin-top: 36px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== NEWS ========== */
.news { background: var(--bg-white); }
.news-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: center;
}
.news-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.news-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.news-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 12px 0 12px 18px;
  position: relative;
  border-bottom: 1px solid var(--border-light);
}
.news-list li:last-child { border-bottom: none; }
.news-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 19px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-section);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-links a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ========== CONTACT ========== */
.contact {
  background: var(--bg-section);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input,
.contact-form textarea {
  padding: 15px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-family: inherit;
  background: var(--bg-white);
  transition: var(--transition);
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,151,90,0.1);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form button {
  padding: 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 2px;
  transition: var(--transition);
}
.contact-form button:hover { background: var(--accent-subtle); }

.contact-info h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 28px;
}
.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.contact-info-item .ci-label {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 44px;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
}
.contact-map {
  margin-top: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.contact-map iframe { width: 100%; height: 200px; border: 0; }

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.45);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer h4 {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.footer p { font-size: 0.82rem; line-height: 1.9; }
.footer-links a {
  display: block;
  padding: 4px 0;
  font-size: 0.82rem;
  transition: var(--transition);
}
.footer-links a:hover { color: rgba(255,255,255,0.9); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17,17,24,0.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}
.modal-close:hover {
  background: rgba(0,0,0,0.1);
}
.modal-img-wrap {
  background: var(--bg-section);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  position: relative;
  min-height: 220px;
}
.modal-img-wrap img {
  max-height: 160px;
  object-fit: contain;
}
.modal-body {
  padding: 32px;
}
.modal-body h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.modal-body .modal-category {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.modal-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 12px;
}
.modal-body .modal-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}
.modal-detail-item {
  display: flex;
  gap: 10px;
  font-size: 0.82rem;
  margin-bottom: 8px;
}
.modal-detail-item .md-label {
  color: var(--text-muted);
  min-width: 80px;
  font-weight: 500;
}
.modal-detail-item .md-value {
  color: var(--text-primary);
  font-weight: 500;
}

/* ========== CASES PAGE ========== */
.cases-page-header {
  padding: 140px 0 48px;
  text-align: center;
  background: var(--bg-section);
}
.cases-page-header .section-title { margin-bottom: 8px; }
.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 72px 0;
}

/* ========== ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ========== RWD: Tablet ========== */
@media (max-width: 1023px) {
  .container { padding: 0 24px; }
  .section { padding: 88px 0; }
  .nav-links { gap: 24px; }
  .nav-links a { font-size: 0.75rem; }
  .about-grid { grid-template-columns: 280px 1fr; gap: 48px; }
  .about-credentials { grid-template-columns: 1fr; gap: 20px; }
  .plans-grid { gap: 16px; }
  .plan-card { padding: 36px 20px 28px; }
  .news-grid { grid-template-columns: 200px 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cases-grid { grid-template-columns: repeat(3, 1fr); }
  .carousel-slide { flex: 0 0 50%; }
}

/* ========== RWD: Mobile ========== */
@media (max-width: 767px) {
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .section-header { margin-bottom: 48px; }
  .section-title { font-size: 1.8rem; }

  /* Navbar */
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(17,17,24,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 100px 32px 40px;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7) !important;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    letter-spacing: 2px;
  }
  .nav-links a:hover { color: #fff !important; }
  .nav-links a::after { display: none; }
  .hamburger.active span { background: #fff !important; }

  /* Hero */
  .hero { min-height: 100svh; }
  .hero-content h1 { font-size: 2.2rem; letter-spacing: 6px; }
  .hero-content .tagline { font-size: 0.8rem; letter-spacing: 3px; }
  .hero-scroll { display: none; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo-wrap { max-width: 280px; margin: 0 auto; }
  .about-photo-wrap::before { display: none; }
  .about-credentials { grid-template-columns: 1fr; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Carousel */
  .carousel-wrapper { padding: 0 40px; }
  .carousel-slide { flex: 0 0 100%; }

  /* Pricing */
  .plans-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .pricing-table-wrap th, .pricing-table-wrap td { padding: 12px 16px; font-size: 0.82rem; }

  /* News */
  .news-grid { grid-template-columns: 1fr; text-align: center; }
  .news-photo { max-width: 220px; margin: 0 auto; }
  .news-list li { text-align: left; }
  .social-links { justify-content: center; }

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

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Cases page */
  .cases-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cases-page-header { padding: 110px 0 36px; }

  /* Modal */
  .modal { margin: 16px; }
  .modal-img-wrap { padding: 28px; min-height: 160px; }
  .modal-body { padding: 24px; }
}
