/* ============================================================
   VisionCraft Media - Design System & Global Styles
   ============================================================ */

/* ── CSS Variables ── */
:root {
  /* Colors */
  --primary: #e8342a;
  --primary-hover: #c92520;
  --text-main: #1a1a1a;
  --text-secondary: #666666;
  --text-light: #999999;
  --bg-dark: #111111;
  --bg-dark2: #1a1a1a;
  --bg-section: #f5f5f5;
  --bg-light: #ffffff;
  --border-color: #e0e0e0;
  --overlay: rgba(0, 0, 0, 0.6);

  /* Typography */
  --font-main: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-en: 'Oswald', 'Arial Narrow', sans-serif;

  /* Font Sizes */
  --fs-h1: clamp(36px, 5vw, 72px);
  --fs-h2: clamp(28px, 3vw, 42px);
  --fs-h3: clamp(18px, 2vw, 24px);
  --fs-body: 15px;
  --fs-small: 13px;
  --fs-xs: 12px;

  /* Spacing */
  --section-py: 80px;
  --container-max: 1320px;
  --container-px: 40px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.18);

  /* Transitions */
  --transition: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

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

body {
  font-family: var(--font-main);
  font-size: var(--fs-body);
  color: var(--text-main);
  background: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { text-decoration: none; color: inherit; }

ul, ol { list-style: none; }

/* ── Container ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ── Section Label ── */
.section-label {
  display: block;
  font-family: var(--font-en);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ── Section Title ── */
.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-title.white { color: #fff; }

.section-desc {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  line-height: 1.7;
}

.section-desc.white { color: rgba(255,255,255,0.7); }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  font-size: var(--fs-body);
  font-weight: 600;
  border-radius: 30px;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: #fff;
  font-size: var(--fs-body);
  font-weight: 600;
  border-radius: 30px;
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.btn-outline.dark {
  color: var(--text-main);
  border-color: var(--text-main);
}

.btn-outline.dark:hover {
  background: var(--text-main);
  color: #fff;
}

/* ── Arrow Icon ── */
.arrow-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
  flex-shrink: 0;
}

/* ── Card Base ── */
.card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card-hover:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* ============================================================
   HEADER
   ============================================================ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition);
}

#header.scrolled {
  background: rgba(17,17,17,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 var(--container-px);
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-en {
  font-family: var(--font-en);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

.logo-cn {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.15em;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-link {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  transform: scaleX(1);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 30px;
  transition: background var(--transition);
}

.header-cta:hover { background: var(--primary-hover); }

.header-cta svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   HERO BANNER
   ============================================================ */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  background: #0d0d0d;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to right, rgba(10,10,10,0.92) 40%, rgba(10,10,10,0.3) 100%),
    url('https://images.unsplash.com/photo-1601506521793-dc748fc80b67?w=1920&q=80') center/cover no-repeat;
  z-index: 0;
}

/* Dark cinematic gradient overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  padding-top: 70px;
}

.hero-content {
  flex: 0 0 55%;
  max-width: 55%;
}

.hero-label {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(40px, 5.5vw, 78px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-title .line { display: block; }

.hero-subtitle {
  font-size: clamp(14px, 1.2vw, 17px);
  color: rgba(255,255,255,0.65);
  margin-bottom: 44px;
  letter-spacing: 0.05em;
}

.hero-subtitle span { margin: 0 6px; opacity: 0.5; }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 30px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
  background: transparent;
}

.hero-cta:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.hero-cta-icon {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* Hero right image area */
.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 52%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

/* Pagination dots */
.hero-pagination {
  position: absolute;
  right: var(--container-px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
}

.hero-page-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity var(--transition);
}

.hero-page-item.active { opacity: 1; }

.hero-page-num {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

.hero-page-item.active .hero-page-num { color: var(--primary); }

.hero-page-bar {
  width: 20px;
  height: 2px;
  background: rgba(255,255,255,0.4);
  border-radius: 1px;
}

.hero-page-item.active .hero-page-bar { background: var(--primary); width: 30px; }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.hero-scroll-mouse {
  width: 24px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: #fff;
  border-radius: 2px;
  animation: scrollDot 1.8s ease infinite;
}

@keyframes scrollDot {
  0% { top: 6px; opacity: 1; }
  100% { top: 20px; opacity: 0; }
}

.hero-scroll-text {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.15em;
  writing-mode: horizontal-tb;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
#services {
  padding: var(--section-py) 0;
  background: var(--bg-section);
}

.services-header {
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-light);
  padding: 36px 24px 32px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
  border-color: transparent;
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--primary);
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.service-icon svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.service-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.service-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   WORKS SECTION
   ============================================================ */
#works {
  padding: var(--section-py) 0;
  background: var(--bg-dark);
}

.works-inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.works-left {
  flex: 0 0 220px;
  padding-top: 10px;
}

.works-left .section-label { color: var(--primary); }
.works-left .section-title { color: #fff; }
.works-left .section-desc { color: rgba(255,255,255,0.55); margin-bottom: 36px; font-size: 14px; }

.btn-works-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border: 2px solid var(--primary);
  border-radius: 30px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-works-more:hover {
  background: var(--primary);
  color: #fff;
}

.works-gallery {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  position: relative;
}

.work-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 9/11;
  background: #222;
  cursor: pointer;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-item:hover img { transform: scale(1.08); }

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px 16px;
}

.work-item:hover .work-overlay { opacity: 1; }

.work-info {}

.work-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.work-category {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

/* Play button overlay for video works */
.work-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transition: opacity var(--transition);
}

.work-item:hover .work-play { opacity: 1; }

/* Works nav arrows */
.works-nav {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.works-nav-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 14px;
}

.works-nav-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================================================
   NEWS SECTION
   ============================================================ */
#news {
  padding: var(--section-py) 0;
  background: var(--bg-light);
}

.news-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.news-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.news-more:hover { color: var(--primary); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.news-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  transition: all var(--transition);
  cursor: pointer;
}

.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}

.news-img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: #ddd;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-img img { transform: scale(1.06); }

.news-body {
  padding: 20px 18px 22px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.news-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  padding: 2px 8px;
  border: 1px solid var(--primary);
  border-radius: 20px;
}

.news-date {
  font-size: 12px;
  color: var(--text-light);
}

.news-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   STATS SECTION
   ============================================================ */
#stats {
  padding: var(--section-py) 0;
  background: var(--bg-section);
}

.stats-header { margin-bottom: 56px; }

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

.stat-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 40px;
  border-right: 1px solid var(--border-color);
}

.stat-item:last-child { border-right: none; }

.stat-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.2;
}

.stat-content {}

.stat-number {
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-count {
  font-family: var(--font-en);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}

.stat-suffix {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-secondary);
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ============================================================
   CLIENTS SECTION
   ============================================================ */
#clients {
  padding: var(--section-py) 0;
  background: var(--bg-dark);
}

.clients-inner {
  display: flex;
  gap: 60px;
  align-items: center;
}

.clients-left {
  flex: 0 0 220px;
}

.clients-left .section-label { color: var(--primary); }
.clients-left .section-title { color: #fff; }
.clients-left .section-desc { color: rgba(255,255,255,0.55); font-size: 14px; }

.clients-logos {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.client-item {
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  filter: grayscale(100%) brightness(0.5);
  transition: filter var(--transition);
  cursor: pointer;
}

.client-item:hover {
  filter: grayscale(0%) brightness(1);
  background: rgba(255,255,255,0.06);
}

.client-item .client-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.03em;
  text-align: center;
  font-family: var(--font-en);
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  background: #0d0d0d;
}

.footer-top {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  padding: 60px var(--container-px);
  max-width: var(--container-max);
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand .logo { margin-bottom: 20px; }

.footer-about {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--primary); }

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.footer-contact-item .icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--primary);
  font-style: normal;
  margin-top: 1px;
}

.footer-bottom {
  text-align: center;
  padding: 22px var(--container-px);
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  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; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* 1440px */
@media (max-width: 1440px) {
  :root { --container-px: 32px; }
  .services-grid { gap: 16px; }
}

/* 1280px */
@media (max-width: 1280px) {
  :root { --container-px: 28px; }
  .hero-content { flex: 0 0 60%; max-width: 60%; }
  .works-nav { right: -44px; }
  .stats-grid { gap: 0; }
  .stat-item { padding: 20px 28px; }
}

/* 1024px */
@media (max-width: 1024px) {
  :root {
    --section-py: 64px;
    --container-px: 24px;
  }

  .nav { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(17,17,17,0.98);
    padding: 24px 0;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  }

  .nav.open .nav-link {
    padding: 14px 24px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav.open .nav-link::after { display: none; }

  .hero-content { flex: 0 0 70%; max-width: 70%; }

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

  .works-inner { flex-direction: column; gap: 30px; }
  .works-left { flex: none; }
  .works-gallery { grid-template-columns: repeat(4, 1fr); }
  .works-nav { display: none; }

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

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--border-color); border-top: 1px solid var(--border-color); }
  .stat-item:nth-child(4) { border-right: none; border-top: 1px solid var(--border-color); }

  .clients-inner { flex-direction: column; gap: 40px; }
  .clients-left { flex: none; }
  .clients-logos { grid-template-columns: repeat(5, 1fr); }

  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-links-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 768px */
@media (max-width: 768px) {
  :root { --section-py: 56px; }

  .hero-title { font-size: clamp(32px, 8vw, 52px); }
  .hero-pagination { display: none; }

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

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

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

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

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

  .footer-links-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

/* 430px */
@media (max-width: 430px) {
  :root { --section-py: 48px; --container-px: 16px; }

  .hero-content { flex: 0 0 100%; max-width: 100%; }
  .hero-title { font-size: clamp(28px, 8vw, 42px); }
  .hero-subtitle { font-size: 13px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .service-card { padding: 24px 16px 20px; }

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

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

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 16px 20px; gap: 12px; }
  .stat-count { font-size: 36px; }

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

  .footer-links-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  .news-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* 375px */
@media (max-width: 375px) {
  .services-grid { grid-template-columns: 1fr; }
  .works-gallery { grid-template-columns: 1fr 1fr; }
}