﻿/* ========== TOKENS ========== */
:root {
  --red: #E31937;
  --red-dark: #B91430;
  --red-light: #FF2D4B;
  --dark: #0D0D0D;
  --dark-900: #1A1A1E;
  --dark-800: #222228;
  --dark-700: #2C2C34;
  --gray-900: #333338;
  --gray-700: #555560;
  --gray-500: #888890;
  --gray-300: #BBBBC0;
  --gray-100: #EEEEF0;
  --white: #FAFAFA;
  --green: #00A86B;
  --green-dark: #008F5B;

  --font: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --header-h: 72px;
}

/* ========== RESET ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); font-size: 16px; }
body { font-family: var(--font); color: var(--gray-900); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* ========== HEADER ========== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background 0.4s, box-shadow 0.4s;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}
.header-inner { max-width: 1400px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { height: 42px; width: auto; flex-shrink: 0; object-fit: contain; border-radius: 4px; }
.logo-text { font-size: 18px; font-weight: 700; color: var(--dark); letter-spacing: -0.02em; line-height: 1.2; display: flex; flex-direction: column; }
.logo-sub { font-size: 9px; font-weight: 500; letter-spacing: 0.18em; color: var(--gray-500); text-transform: uppercase; }

.main-nav { display: flex; gap: 6px; position: absolute; left: 50%; transform: translateX(-50%);
}.nav-link {
  padding: 8px 16px; font-size: 14px; font-weight: 500;
  color: var(--gray-700); border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav-link:hover { color: var(--red); background: rgba(227,25,55,0.06); }
.nav-link.active { color: var(--red); font-weight: 600; }
.nav-link.active::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 18px; height: 2px; background: var(--red); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.search-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 10px; color: var(--gray-700);
  transition: background 0.2s, color 0.2s;
}
.search-btn:hover { background: var(--gray-100); color: var(--red); }
.lang-switch {
  padding: 6px 14px; font-size: 12px; font-weight: 600;
  border: 1.5px solid var(--gray-300); border-radius: 20px;
  letter-spacing: 0.06em; color: var(--gray-700);
  transition: border-color 0.2s, color 0.2s;
}
.lang-switch:hover { border-color: var(--red); color: var(--red); }

.mobile-toggle { display: none; width: 38px; height: 38px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.mobile-toggle span { width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== HERO ========== */
.hero {
  position: relative; height: 100vh; min-height: 600px; max-height: 900px;
  overflow: hidden; margin-top: var(--header-h);
}
.hero-track { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute; inset: 0;
  background: var(--bg);
  display: flex; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-content {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px);
  width: 100%;
}
.hero-tag {
  display: inline-block; padding: 6px 18px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  backdrop-filter: blur(8px);
  margin-bottom: 24px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.7s var(--ease-out) 0.3s forwards;
}
.hero-slide h1 {
  font-size: clamp(40px, 7vw, 80px); font-weight: 900;
  color: #fff; line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 20px;
  opacity: 0; transform: translateY(30px);
  animation: fadeUp 0.8s var(--ease-out) 0.45s forwards;
}
.hero-slide p {
  font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,0.7);
  max-width: 520px; margin-bottom: 36px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.7s var(--ease-out) 0.6s forwards;
}
.hero-slide .btn-primary {
  opacity: 0; transform: translateY(20px);
  animation: fadeUp 0.7s var(--ease-out) 0.75s forwards;
}

.hero-visual {
  position: absolute; right: 0; top: 0; bottom: 0; width: 50%;
  pointer-events: none; overflow: hidden;
}
.hero-shape {
  position: absolute; border-radius: 50%;
  opacity: 0.12;
}
.shape-1 { width: 500px; height: 500px; background: var(--red); right: -80px; top: -60px; animation: float 12s ease-in-out infinite; }
.shape-2 { width: 300px; height: 300px; background: #fff; right: 200px; bottom: -40px; animation: float 10s ease-in-out 2s infinite; }
.shape-3 { width: 450px; height: 450px; background: #7c3aed; right: -60px; top: 10%; animation: float 14s ease-in-out infinite; }
.shape-4 { width: 200px; height: 200px; background: #e879f9; right: 260px; bottom: 20%; animation: float 11s ease-in-out 1s infinite; }
.shape-5 { width: 600px; height: 600px; background: var(--red); right: -150px; top: -100px; animation: float 16s ease-in-out infinite; }

.hero-nav {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 10;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: width 0.4s var(--ease-out), background 0.4s;
}
.hero-dot.active { width: 32px; border-radius: 10px; background: var(--red); }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  color: #fff; font-size: 24px;
  display: grid; place-items: center;
  transition: background 0.3s;
  border: 1px solid rgba(255,255,255,0.15);
}
.hero-arrow:hover { background: rgba(255,255,255,0.2); }
.hero-prev { left: 24px; }
.hero-next { right: 24px; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -30px); }
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px; font-size: 15px; font-weight: 600;
  background: var(--red); color: #fff; border-radius: 8px;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 16px rgba(227,25,55,0.25);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(227,25,55,0.35);
}

/* ========== SECTION COMMON ========== */
.section { padding: 40px 0; }
.section-header { text-align: center; margin-bottom: 30px; }
.section-tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800;
  color: var(--dark); letter-spacing: -0.02em; line-height: 1.2;
}
.section-line {
  width: 48px; height: 3px; background: var(--red);
  margin: 20px auto 0; border-radius: 3px;
}
.section-header.light .section-tag { color: rgba(255,255,255,0.7); }
.section-header.light .section-title { color: #fff; }
.section-header.light .section-line { background: rgba(255,255,255,0.5); }

/* ========== ABOUT ========== */
.about-section { background: var(--white); }
.about-grid { display: flex; justify-content: center; gap: 60px; align-items: center; }
.about-text .lead { font-size: 17px; font-weight: 400; text-align: center; color: var(--dark); margin-bottom: 16px; line-height: 1.8; }
.about-text p { color: var(--gray-600); margin-bottom: 20px; text-align: center; line-height: 2; font-size: 15px; }
.about-text strong { color: var(--dark); font-weight: 600; }

.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-card {
  background: var(--dark);
  border-radius: 16px; padding: 32px 28px;
  text-align: center;
  transition: transform 0.4s var(--ease-out);
}
.stat-card:hover { transform: translateY(-4px); }
.stat-number {
  font-size: 42px; font-weight: 900; color: #fff;
  line-height: 1; letter-spacing: -0.03em;
}
.stat-suffix { font-size: 28px; font-weight: 700; color: var(--red); }
.stat-label {
  display: block; margin-top: 10px;
  font-size: 13px; color: var(--gray-500); letter-spacing: 0.04em;
}

/* ========== PRODUCTS ========== */
.products-section { background: var(--white); }
.products-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.product-card {
  background: #fff;
  border-radius: 16px; padding: 40px 32px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
  border: 1px solid rgba(0,0,0,0.04);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.product-icon {
  width: 56px; height: 56px;
  color: var(--red);
}
.product-icon svg { width: 100%; height: 100%; }
.product-card h3 { font-size: 20px; font-weight: 700; color: var(--dark); }
.product-card p { font-size: 14px; color: var(--gray-700); flex: 1; }
.product-link {
  font-size: 14px; font-weight: 600; color: var(--red);
  transition: gap 0.3s;
}

/* ========== GREEN ========== */
.green-section {
  position: relative;
  background: var(--white);
  overflow: hidden;
}
.green-bg {
  position: absolute; inset: 0;
  background: transparent;
}
.green-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; position: relative; z-index: 1; }
.green-card { background: #fff; border: 1px solid var(--gray-100); border-radius: 16px; padding: 40px 36px;
  transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease-out);
}
.green-card:hover { background: var(--gray-100); border-color: var(--gray-300);
  transform: translateY(-4px);
}
.green-card-num {
  font-size: 48px; font-weight: 900; color: var(--gray-100);
  line-height: 1; margin-bottom: 12px;
  letter-spacing: -0.04em;
}
.green-card h3 { color: var(--dark); margin-bottom: 12px; }
.green-card p { color: var(--gray-700); line-height: 1.8; }

/* ========== NEWS ========== */
.news-section { background: var(--white); }
.news-grid {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 24px;
}
.news-card {
  background: #fff; border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.08); }
.news-featured { grid-row: 1 / 3; }
.news-img {
  height: 200px;
  background: linear-gradient(135deg, hsl(var(--hue), 60%, 25%), hsl(var(--hue), 50%, 45%));
  flex-shrink: 0;
}
.news-featured .news-img { height: 300px; }
.news-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.news-date { font-size: 12px; color: var(--gray-500); margin-bottom: 6px; }
.news-cat {
  display: inline-block; font-size: 11px; font-weight: 600;
  color: var(--red); background: rgba(227,25,55,0.08);
  padding: 3px 10px; border-radius: 4px;
  margin-bottom: 12px; width: fit-content;
}
.news-body h3 {
  font-size: 17px; font-weight: 700; color: var(--dark);
  line-height: 1.5; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-featured .news-body h3 { font-size: 22px; -webkit-line-clamp: 3; }
.news-body p {
  font-size: 14px; color: var(--gray-700); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ========== CTA ========== */
.cta-section {
  background: var(--dark);
  padding: clamp(60px, 8vw, 100px) 0;
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  flex-wrap: wrap;
}
.cta-text h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.cta-text p { font-size: 15px; color: var(--gray-500); margin-top: 8px; }
.cta-form {
  display: flex; gap: 12px;
  background: var(--dark-800); padding: 6px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  min-width: 380px;
}
.cta-form input {
  flex: 1; background: none; border: none; outline: none;
  padding: 12px 18px; font-size: 14px; color: #fff;
  font-family: var(--font);
}
.cta-form input::placeholder { color: var(--gray-500); }
.cta-form .btn-primary { padding: 12px 28px; font-size: 14px; border-radius: 8px; }
.cta-form.submitted .btn-primary { background: var(--green); }
.cta-form.submitted .btn-primary::after { content: ' ✓'; }

/* ========== CONTACT ========== */
.contact-section { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-item {
  background: #fff; border-radius: 16px; padding: 40px 32px; text-align: center;
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.contact-item:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.06); }
.contact-icon {
  width: 56px; height: 56px; margin: 0 auto 20px;
  display: grid; place-items: center;
  background: rgba(227,25,55,0.06); border-radius: 14px;
  color: var(--red);
}
.contact-item h3 { font-size: 15px; font-weight: 600; color: var(--gray-700); margin-bottom: 10px; }
.contact-value { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.contact-note { font-size: 13px; color: var(--gray-500); }

/* ========== FOOTER ========== */
.site-footer { background: var(--white); color: var(--gray-700);
  padding: 64px 0 0;
}
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; border-bottom: 1px solid var(--gray-100); padding-bottom: 48px; }
.footer-brand .logo-text { color: #fff; }
.footer-desc { font-size: 14px; margin-top: 16px; line-height: 1.7; }
.footer-links { text-align: center; }
.footer-links h4 { color: var(--dark);
  margin-bottom: 20px; letter-spacing: 0.02em;
}
.footer-links a { color: var(--gray-700); transition: color 0.2s;
}
.footer-links a:hover { color: var(--red-light); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0; font-size: 12px;
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom a { color: var(--gray-500); transition: color 0.2s; }
.footer-bottom a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 10px; color: var(--gray-500);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.footer-social a:hover { color: #fff; background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); }

/* ========== ANIMATIONS (scroll reveal) ========== */
.reveal { opacity: 1; transform: translateY(0);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger { transition-delay: calc(var(--i, 0) * 80ms); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .about-grid { flex-direction: column; gap: 40px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .green-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-featured { grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column; padding: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transform: translateY(-100%); opacity: 0;
    transition: transform 0.4s var(--ease-out), opacity 0.4s;
    pointer-events: none;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .mobile-toggle { display: flex; }

  .products-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-form { min-width: 0; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-arrow { display: none; }

  .about-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .cta-form { flex-direction: column; }
  .cta-form .btn-primary { width: 100%; justify-content: center; }
  .about-stats { grid-template-columns: 1fr; }
}
