/* ========================================
   铭太科技 - 企业官网样式表
   主色调: 深蓝系
   ======================================== */

/* --- CSS Variables --- */
:root {
  --primary-dark: #031634;
  --primary: #0a1628;
  --primary-light: #0f2240;
  --secondary: #152d58;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.3);
  --accent-tip: #0c2fdd;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --text: #1e293b;
  --text-light: #64748b;
  --text-on-dark: #e2e8f0;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.15);
  --transition: all 0.3s ease;
  --max-width: clamp(1024px, 75%, 3840px);
  --header-height: clamp(56px, 3vw, 125px);

  /* 字体 —— 流体缩放，以 1920px 为设计基准，覆盖 1366px~3840px(4K) */
  --font-sm: clamp(12px, 0.73vw, 36px);
  --font-md: clamp(13px, 0.83vw, 42px);
  --font-lg: clamp(14px, 0.94vw, 48px);
  --font-xl: clamp(15px, 1.04vw, 52px);
  --font-2xl: clamp(16px, 1.15vw, 58px);
  --font-3xl: clamp(17px, 1.25vw, 64px);
  --font-4xl: clamp(18px, 1.35vw, 68px);
  --font-5xl: clamp(19px, 1.46vw, 72px);
  --font-6xl: clamp(20px, 1.56vw, 78px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--font-md);
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  padding-top: var(--header-height);
}

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

a:hover {
  color: var(--accent-light);
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 2vw, 48px);
}

/* --- Typography --- */
.section-label {
  display: inline-block;
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(26px, 2vw, 72px);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: clamp(4px, 0.5vw, 14px);
  line-height: 1.3;
}
/* 间隔线 */
.section-solid {
  margin: auto;
  width: clamp(50px, 4vw, 100px);
  height: clamp(3px, 0.25vw, 6px);
  margin-bottom: clamp(4px, 0.5vw, 14px);
  border-radius: 2px;
  background-color: var(--accent-tip);
}

.section-subtitle {
  font-size: var(--font-lg);
  color: var(--text-light);
  max-width: clamp(500px, 35vw, 1100px);
  margin-bottom: clamp(12px, 1.5vw, 36px);
  text-align: center;
  line-height: 1.7;
}

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

.text-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: clamp(4px, 0.5vw, 12px);
  padding: clamp(8px, 0.8vw, 18px) clamp(18px, 1.8vw, 44px);
  font-size: var(--font-md);
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: var(--white);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

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

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-lg {
  padding: clamp(10px, 0.9vw, 20px) clamp(24px, 2.2vw, 52px);
  font-size: var(--font-md);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--primary-dark);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: var(--header-height);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 60px);
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 2vw, 48px);
}

.logo {
  display: flex;
  align-items: center;
  color: var(--white);
}

.logo-img {
  height: clamp(32px, 1.5vw, 64px);
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.3vw, 8px);
  height: 58vh;
}

.nav a {
  display: block;
  padding: clamp(6px, 0.5vw, 14px) clamp(12px, 1vw, 28px);
  font-size: var(--font-md);
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(28px, 2vw, 52px);
  height: clamp(2px, 0.15vw, 4px);
  background: var(--accent);
  border-radius: 2px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: var(--font-3xl);
  cursor: pointer;
  padding: 8px;
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary) 40%,
    var(--secondary) 100%
  );
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 80% 50% at 20% 50%,
      rgba(59, 130, 246, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 60% 50% at 80% 20%,
      rgba(96, 165, 250, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse 40% 40% at 60% 80%,
      rgba(59, 130, 246, 0.06) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Homepage hero */
.hero-main {
  position: relative;
  /* padding: 100px 0 120px; */
  min-height: clamp(550px, 43vw, 1550px);
  /* display: flex;
    align-items: center; */
  background-image: url('../images/1.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-main::before {
  content: '';
  position: absolute;
  inset: 0;
  /* background: rgba(6, 15, 30, 0.55); */
  pointer-events: none;
}

.hero-main .container {
  position: relative;
  z-index: 2;
  margin-top: 5%;
}

.hero-top-text {
  font-size: clamp(32px, 3.2vw, 120px);
  font-weight: 600;
  /* color: rgba(255,255,255,0.8); */
  margin-bottom: clamp(10px, 1vw, 24px);
  letter-spacing: 3px;
}

.hero-main-title {
  font-size: var(--font-2xl);
  /* font-weight: 600; */
  line-height: 1.5;
  max-width: clamp(600px, 44vw, 1620px);
  margin-bottom: clamp(24px, 2.5vw, 56px);
  letter-spacing: 2px;
  color: var(--white);
}

/* Banner button with background image */
.hero-banner-btn {
  display: inline-block;
  width: clamp(140px, 10.4vw, 380px);
  height: clamp(38px, 2.7vw, 96px);
  background-image: url('../images/bannerBtn.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  cursor: pointer;
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--white);
  text-align: center;
  line-height: clamp(38px, 2.7vw, 96px);
  transition: var(--transition);
  text-decoration: none;
  border-radius: 2px;
}

.hero-banner-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Inner page hero (shorter) */
.hero-inner {
  padding: clamp(40px, 5vw, 120px) 0 clamp(50px, 6vw, 140px);
  text-align: center;
}

.hero-inner .container {
  position: relative;
  z-index: 1;
}

.hero-inner h1 {
  font-size: clamp(28px, 2.8vw, 80px);
  font-weight: 800;
  margin-bottom: 12px;
}

.hero-inner .hero-subtitle {
  font-size: var(--font-lg);
  color: var(--gray-400);
  max-width: clamp(480px, 34vw, 1100px);
  margin: 0 auto;
}

/* Hero decoration particles (CSS only) */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-main .hero-tip {
  width: 100%;
  position: absolute;
  bottom: 10%;
  font-size: var(--font-lg);
  color: #333;
  letter-spacing: 0.6px;
}

.hero-main .hero-tip div {
  display: inline-block;
  width: 33%;
  text-align: center;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.15;
  animation: float-up 8s infinite ease-in;
}

.particle:nth-child(1) {
  width: 4px;
  height: 4px;
  left: 10%;
  top: 60%;
  animation-delay: 0s;
}
.particle:nth-child(2) {
  width: 3px;
  height: 3px;
  left: 25%;
  top: 40%;
  animation-delay: 2s;
}
.particle:nth-child(3) {
  width: 5px;
  height: 5px;
  left: 40%;
  top: 70%;
  animation-delay: 4s;
}
.particle:nth-child(4) {
  width: 3px;
  height: 3px;
  left: 55%;
  top: 30%;
  animation-delay: 1s;
}
.particle:nth-child(5) {
  width: 4px;
  height: 4px;
  left: 70%;
  top: 65%;
  animation-delay: 3s;
}
.particle:nth-child(6) {
  width: 5px;
  height: 5px;
  left: 85%;
  top: 45%;
  animation-delay: 5s;
}
.particle:nth-child(7) {
  width: 3px;
  height: 3px;
  left: 90%;
  top: 75%;
  animation-delay: 6s;
}
.particle:nth-child(8) {
  width: 4px;
  height: 4px;
  left: 15%;
  top: 85%;
  animation-delay: 7s;
}

@keyframes float-up {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.15;
  }
  50% {
    transform: translateY(-40px) scale(1.8);
    opacity: 0.35;
  }
  100% {
    transform: translateY(-80px) scale(1);
    opacity: 0.05;
  }
}

/* ============================================
   SECTION SPACING
   ============================================ */
.section {
  padding: 0px 0;
}

.section-dark {
  background: var(--gray-50);
}

p {
  text-align: justify;
}

/* ============================================
   CARD GRID (2-column 产品展示)
   ============================================ */
#productsSwiper {
  width: 100%;
  height: clamp(430px, 32vw, 1230px);
}

.products {
  width: 100%;
  height: 100%;
  padding-left: 60%;
  /* background-image: url('../images/2.png'); */
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.products-wrap {
  position: relative;
  width: 70%;
  margin: auto;
  height: 100%;
  color: var(--white);
}

.products-wrap .products-inner {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-68%);
}

.products-wrap h3 {
  font-size: var(--font-3xl);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
  /* color: var(--primary-dark); */
}

.products-wrap h4 {
  margin-top: 10%;
  font-size: var(--font-2xl);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
  /* color: var(--primary-dark); */
}

.products-wrap p {
  /* color: var(--text-light); */
  font-size: var(--font-md);
  line-height: 1.75;
  letter-spacing: 1px;
}

#productsSwiper .swiper-pagination {
  bottom: 8%;
  text-align: right;
}

#productsSwiper .swiper-pagination-bullet {
  width: clamp(24px, 2vw, 50px);
  height: clamp(5px, 0.5vw, 12px);
  border-radius: 6px;
  background: var(--white);
}

#productsSwiper .swiper-pagination-bullet:last-child {
  margin-right: 16%;
}

/* ============================================
   CARD GRID (3-column 解决方案)
   ============================================ */
#solutionsSwiper {
  width: 73.8%;
  height: clamp(430px, 32vw, 1200px);
}

#solutionsSwiper .swiper-slide {
  /* width: 100%; */
  height: 100%;
  /* margin: 0 auto; */
}

#solutionsSwiper .swiper-slide .solutions-card {
  margin: 1.5% 6.6%;
  height: 100%;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius);
  padding-top: clamp(160px, 13vw, 520px);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  color: var(--white);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

#solutionsSwiper .swiper-slide .solutions-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  opacity: 0;
  transition: var(--transition);
}

#solutionsSwiper .swiper-slide .solutions-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  transform: translateY(-4px);
}

#solutionsSwiper .swiper-slide .solutions-card:hover::before {
  opacity: 1;
}

#solutionsSwiper .solutions-wrap {
  position: relative;
  width: 70%;
  margin: auto;
  height: 100%;
  color: var(--white);
}

/* #solutionsSwiper .solutions-wrap .solutions-inner {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-60%);
} */

#solutionsSwiper .swiper-slide .solutions-card h3 {
  font-size: var(--font-2xl);
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 1px;
  /* color: var(--primary-dark); */
}

#solutionsSwiper .swiper-slide .solutions-card p {
  /* color: var(--text-light); */
  font-size: var(--font-md);
  line-height: 1.75;
  letter-spacing: 1px;
}


.solutionsPrevBtn .swiper-button-prev {
  left: 7.6%;
  transform: scale(0.8);
}

.solutionsNextBtn .swiper-button-next {
  right: 7.6%;
  transform: scale(0.8);
}

#solutionsSwiper .swiper-pagination-bullet {
  width: clamp(24px, 2vw, 50px);
  height: clamp(5px, 0.5vw, 12px);
  border-radius: 6px;
  background: var(--white);
}

/* ============================================
   CARD GRID (4-column 成功案例)
   ============================================ */
.cases {
  width: 100%;
  height: clamp(430px, 32vw, 1200px);
  padding-right: 40%;
  background-image: url('../images/6.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.cases-wrap {
  padding: 9% 0 0 26%;
  width: 100%;
  height: 100%;
}

.cases-wrap h3 {
  font-size: var(--font-3xl);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
  color: var(--accent-tip);
}

.cases-wrap h4 {
  margin-top: 6%;
  font-size: var(--font-2xl);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 1px;
  color: var(--text);
}

.cases-wrap p {
  color: var(--gray-700);
  font-size: var(--font-md);
  line-height: 1.75;
  letter-spacing: 1px;
}

/* ============================================
   CARD GRID (5-column 新闻资讯)
   ============================================ */
.news-wrap .card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(30px, 1vw, 100px);
}

.news-wrap .card {
  /* width: 103%; */
  height: clamp(350px, 26vw, 1000px);
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius);
  padding: 12% 12% 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.news-wrap .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  /* background: linear-gradient(90deg, var(--accent), var(--accent-light)); */
  opacity: 0;
  transition: var(--transition);
}

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

.news-wrap .card:hover::before {
  opacity: 1;
}

.news-wrap .card-date {
  font-size: var(--font-3xl);
  color: var(--gray-400);
  margin-bottom: 20px;
}

.card-date-left {
  font-size: var(--font-6xl);
  color: #222;
  font-weight: 600;
}

.news-wrap .card h3 {
  font-size: var(--font-2xl);
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 1px;
  color: var(--accent-tip);
}

.news-wrap .card p {
  color: var(--gray-700);
  font-size: var(--font-md);
  line-height: 1.75;
  letter-spacing: 1px;
}

/* ============================================
   CARD GRID (6-column 服务支持)
   ============================================ */
.support {
  width: 100%;
  height: clamp(460px, 34vw, 1300px);
  margin-top: -2.5%;
  /* padding-right: 40%; */
  background-image: url('../images/8.png');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.support-wrap {
  position: relative;
  /* padding: 9% 0 0 26%; */
  width: 100%;
  height: 100%;
}

.support-wrap .support-zc {
  width: clamp(190px, 14.4vw, 540px);
  position: absolute;
  top: 15%;
  left: 14.2%;
}

.support-wrap .support-dz {
  width: clamp(180px, 13.1vw, 500px);
  position: absolute;
  top: 32.7%;
  right: 10.6%;
}

.support-wrap .support-jf {
  width: clamp(180px, 13vw, 500px);
  position: absolute;
  bottom: 4.9%;
  right: 23.9%;
}

/* .support-wrap h3 {
    font-size: var(--font-3xl);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
    color: var(--accent-tip);
} */

.support-wrap h4 {
  /* margin-top: 6%; */
  font-size: var(--font-2xl);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
  color: var(--text);
}

.support-wrap p {
  color: var(--gray-700);
  font-size: var(--font-md);
  line-height: 1.75;
  letter-spacing: 1px;
}

/* @media only screen and (max-width: 1280px) {
  .support-wrap .support-zc {
    left: 9.2% !important;
  }

  .support-wrap .support-dz {
    right: 3.9% !important;
  }

  .support-wrap .support-jf {
    right: 17.2% !important;
  }
} */

/* @media only screen and (min-width: 1281px) and (max-width: 1919px) {
  .support-wrap .support-zc {
    left: 12.2% !important;
  }

  .support-wrap .support-dz {
    right: 7.9% !important;
  }

  .support-wrap .support-jf {
    right: 21.2% !important;
  }
}

@media only screen and (min-width: 2400px) {
  .support-wrap .support-zc {
    left: 16.2% !important;
  }

  .support-wrap .support-dz {
    right: 13.5% !important;
  }

  .support-wrap .support-jf {
    right: 26.2% !important;
  }
}

@media only screen and (min-width: 3820px) {
  .support-wrap .support-zc {
    left: 19.2% !important;
  }

  .support-wrap .support-dz {
    right: 17.5% !important;
  }

  .support-wrap .support-jf {
    right: 30.8% !important;
  }
} */

/* ============================================
   CARD GRID (7-column 关于我们)
   ============================================ */
.about {
  width: 100%;
  height: clamp(470px, 35vw, 1300px);
  margin-top: -5%;
  /* padding-right: 40%; */
  background-image: url('../images/9.png');
  background-size: contain;
  background-position: right;
  background-repeat: no-repeat;
}

.about-wrap {
  position: relative;
  /* padding: 9% 0 0 26%; */
  /* width: 45%; */
  height: 85%;
  /* z-index: -1; */
}

.about-wrap .about-zc {
  width: 48%;
  position: absolute;
  top: 23.5%;
  /* left: 26.5%; */
}

.about-wrap .about-dz {
  width: 48%;
  position: absolute;
  top: 43.2%;
  /* left: 26.5%; */
}

.about-wrap .about-jf {
  position: absolute;
  bottom: 0;
  /* left: 26.5%; */
}

/* .about-wrap h3 {
    font-size: var(--font-3xl);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
    color: var(--accent-tip);
} */

.about-wrap h4 {
  /* margin-top: 6%; */
  font-size: var(--font-2xl);
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 1px;
  color: var(--text);
}

.about-wrap p {
  color: var(--gray-700);
  font-size: var(--font-md);
  line-height: 1.75;
  letter-spacing: 1px;
}

.tip-list {
  margin-top: -2.8%;
  display: flex;
  flex-wrap: wrap;
}

.tip-list .tip-item {
  margin-right: clamp(6px, 0.6vw, 16px);
  margin-bottom: clamp(10px, 1vw, 24px);
  border: 1px solid var(--accent-tip);
  border-radius: 50px;
  padding: clamp(6px, 0.5vw, 14px) clamp(16px, 1.5vw, 40px);
  font-size: var(--font-md);
  font-weight: 500;
  color: var(--accent-tip);
  transition: var(--transition);
}

.tip-list .tip-item:hover {
  background: var(--accent-tip);
  color: var(--white);
}

@media only screen and (min-width: 2880px) {
  .about {
    margin-top: -2%;
  }

  .tip-list {
    margin-top: -1.8%;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--primary-dark);
  color: var(--gray-400);
  padding: clamp(20px, 2vw, 48px) 0 0;
  margin-top: clamp(30px, 3vw, 80px);
}

.footer-wrap {
  max-width: 100% !important;
}

.footer-grid {
  margin-left: 12.5%;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: clamp(24px, 3vw, 64px);
  padding-bottom: clamp(16px, 1.5vw, 36px);
}

.footer-about h3 {
  font-size: var(--font-2xl);
  color: var(--white);
  margin-bottom: clamp(8px, 0.8vw, 20px);
  letter-spacing: 1px;
}

.footer-about p {
  width: clamp(240px, 17vw, 600px);
  font-size: var(--font-sm);
  line-height: 1.8;
}

.footer-col h4 {
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--gray-400);
  font-size: var(--font-sm);
  padding: clamp(3px, 0.3vw, 8px) 0;
  transition: var(--transition);
  letter-spacing: 1px;
}

.footer-col a:hover {
  color: var(--accent-light);
  padding-left: clamp(3px, 0.3vw, 8px);
}

.footer-col p {
  padding: clamp(3px, 0.3vw, 8px) 0;
  font-size: var(--font-sm);
  /* line-height: 0; */
  letter-spacing: 1px;
}

.footer-bottom {
  padding: clamp(12px, 1.2vw, 28px) 0;
  text-align: center;
  font-size: var(--font-sm);
  color: var(--gray-500);
  line-height: 1.8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .card-grid,
  .patent-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .hero-main-title {
    font-size: var(--font-4xl);
  }

  .section-title {
    font-size: var(--font-5xl);
  }

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

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .header-inner {
    height: 60px;
  }

  /* Mobile nav */
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(16px);
    overflow-y: auto;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav a {
    padding: 14px 16px;
    font-size: var(--font-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
  }

  .menu-toggle {
    display: block;
  }

  /* Cards */
  .card-grid,
  .patent-grid,
  .service-grid,
  .scenario-grid {
    grid-template-columns: 1fr;
  }

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

  .logo-item {
    padding: 20px 12px;
    min-height: 80px;
    font-size: 13px;
  }

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

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

  .hero-main {
    padding: 60px 0 80px;
    min-height: auto;
  }

  .hero-main-title {
    font-size: var(--font-2xl);
  }

  .hero-inner {
    padding: 40px 0 50px;
  }

  .hero-inner h1 {
    font-size: var(--font-5xl);
  }

  .section-title {
    font-size: var(--font-3xl);
  }

  .section-subtitle {
    font-size: var(--font-md);
  }

  .section {
    padding: 50px 0;
  }

  .news-item {
    flex-direction: column;
    gap: 8px;
  }

  .news-date {
    width: auto;
    text-align: left;
  }

  .news-date .month-year {
    display: inline;
    margin-right: 8px;
  }

  .contact-block {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-col a:hover {
    padding-left: 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
  }

  .service-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .logo-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero-main-title {
    font-size: var(--font-xl);
  }

  .hero-inner h1 {
    font-size: var(--font-3xl);
  }

  .container {
    padding: 0 16px;
  }

  .card {
    padding: 24px 20px;
  }

  .contact-block {
    padding: 20px;
  }

  .cert-item {
    font-size: 12px;
    padding: 12px 10px;
  }
}
