/* ========================================
   江苏旭盛鑫电子科技 - 全站样式表
   参考: tai-tech.com.tw 设计风格
   ======================================== */

/* --- CSS Variables --- */
:root {
  --primary: #1B5BA0;
  --primary-dark: #14477D;
  --primary-light: #2A6FBE;
  --footer-bg: #D3E5FF;
  --text-dark: #212529;
  --text-body: #495057;
  --text-muted: #6C757D;
  --accent: #DC3545;
  --white: #FFFFFF;
  --bg-light: #F8F9FA;
  --border: #DEE2E6;
  --shadow: 0 2px 8px rgba(0,0,0,.08);
  --shadow-hover: 0 8px 24px rgba(0,0,0,.12);
  --radius: 6px;
  --transition: all .3s ease;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "微软雅黑", sans-serif;
  --max-width: 1200px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text-body); line-height: 1.6; background: var(--white); }
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ========================================
   Top Bar (顶部信息栏)
   ======================================== */
.top-bar {
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  padding: 6px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar__info { display: flex; gap: 24px; align-items: center; }
.top-bar__info span { display: flex; align-items: center; gap: 6px; opacity: .9; }
.top-bar__info svg { width: 14px; height: 14px; flex-shrink: 0; }

/* --- Language Switcher --- */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  color: var(--white); font-size: 13px;
  padding: 4px 10px; border-radius: 4px;
  transition: var(--transition);
}
.lang-btn:hover { background: rgba(255,255,255,.15); }
.lang-btn svg { flex-shrink: 0; }
.lang-arrow { transition: transform .2s; }
.lang-btn[aria-expanded="true"] .lang-arrow { transform: rotate(180deg); }
.lang-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-hover); padding: 4px;
  min-width: 130px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: all .2s; z-index: 210;
}
.lang-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown li a {
  display: block; padding: 8px 14px; color: var(--text-body);
  font-size: 13px; border-radius: 4px; transition: var(--transition);
}
.lang-dropdown li a:hover,
.lang-dropdown li a.active { background: var(--bg-light); color: var(--primary); }

/* ========================================
   Header / Navbar (导航栏)
   ======================================== */
.site-header {
  background: var(--white);
  position: sticky; top: 0; z-index: 100;
  transition: var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,.1); }
.navbar { padding: 0; }
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
  height: 72px;
}
.navbar__logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.navbar__logo img { height: 42px; width: auto; }
.navbar__logo-text {
  font-size: 20px; font-weight: 700; color: var(--primary);
  white-space: nowrap;
}
.navbar__logo-text small { display: block; font-size: 11px; font-weight: 400; color: var(--text-muted); letter-spacing: 1px; }

/* --- Menu --- */
.navbar__menu {
  display: flex; gap: 0; align-items: center;
}
.navbar__menu > li { position: relative; }
.navbar__menu > li > a {
  display: block; padding: 24px 18px;
  font-size: 15px; font-weight: 500; color: var(--text-dark);
  transition: var(--transition); position: relative;
}
.navbar__menu > li > a::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 3px; background: var(--primary); border-radius: 2px;
  transition: width .3s;
}
.navbar__menu > li:hover > a,
.navbar__menu > li.active > a { color: var(--primary); }
.navbar__menu > li:hover > a::after,
.navbar__menu > li.active > a::after { width: 60%; }

/* --- Dropdown --- */
.navbar__menu .dropdown-menu {
  position: absolute; top: 100%; left: 0;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-hover); min-width: 180px;
  padding: 8px 0; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all .25s; z-index: 200;
}
.navbar__menu li:hover > .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block; padding: 10px 20px; font-size: 14px;
  color: var(--text-body); transition: var(--transition);
}
.dropdown-menu a:hover { background: var(--bg-light); color: var(--primary); padding-left: 24px; }

/* --- Hamburger --- */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; z-index: 120;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-dark); border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========================================
   Banner (轮播区)
   ======================================== */
.banner {
  position: relative; overflow: hidden;
  background: #0a1628;
}
.banner__track {
  display: flex; transition: transform .8s cubic-bezier(.4,0,.2,1);
}
.banner__slide {
  min-width: 100%; position: relative;
  display: flex; align-items: center;
  min-height: 600px; padding: 80px 0;
  background-size: cover; background-position: center;
}
.banner__slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,42,94,.82) 0%, rgba(27,91,160,.55) 50%, rgba(0,0,0,.25) 100%);
  z-index: 1;
}
.banner__content {
  position: relative; z-index: 2;
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
  width: 100%;
}
.banner__text { max-width: 620px; color: var(--white); }
.banner__text h2 {
  font-size: 44px; font-weight: 700; line-height: 1.2; margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.banner__text p { font-size: 18px; opacity: .92; margin-bottom: 32px; line-height: 1.8; text-shadow: 0 1px 4px rgba(0,0,0,.2); }
.banner__btn {
  display: inline-block; padding: 14px 36px;
  background: var(--accent); color: var(--white);
  border-radius: var(--radius); font-size: 15px; font-weight: 600;
  transition: var(--transition);
}
.banner__btn:hover { background: #c82333; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(220,53,69,.4); }

/* Banner Pagination */
.banner__dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3;
}
.banner__dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,.4); border: 2px solid rgba(255,255,255,.6);
  transition: var(--transition); cursor: pointer;
}
.banner__dot.active { background: var(--white); border-color: var(--white); transform: scale(1.2); }

/* Banner Arrows */
.banner__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3; width: 48px; height: 48px;
  background: rgba(255,255,255,.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 20px;
  transition: var(--transition); backdrop-filter: blur(4px);
}
.banner__arrow:hover { background: rgba(255,255,255,.3); }
.banner__arrow--prev { left: 24px; }
.banner__arrow--next { right: 24px; }

/* ========================================
   Section Common (通用区块)
   ======================================== */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-light); }
.section__header { text-align: center; margin-bottom: 48px; }
.section__title {
  font-size: 32px; font-weight: 700; color: var(--text-dark);
  margin-bottom: 8px;
}
.section__title span { color: var(--primary); }
.section__subtitle {
  font-size: 14px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 2px;
}
.section__line {
  width: 60px; height: 3px; background: var(--primary);
  margin: 16px auto 0; border-radius: 2px;
}

/* ========================================
   Products (产品卡片)
   ======================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: var(--transition);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.product-card__img {
  height: 200px; overflow: hidden;
  background: linear-gradient(135deg, #f0f4f8, #e2e8f0);
  display: flex; align-items: center; justify-content: center;
}
.product-card__img img { width: 80%; height: 80%; object-fit: contain; transition: transform .4s; }
.product-card:hover .product-card__img img { transform: scale(1.08); }
.product-card__body { padding: 20px; }
.product-card__name {
  font-size: 16px; font-weight: 600; color: var(--text-dark);
  margin-bottom: 8px;
}
.product-card__desc { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.product-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--primary);
}
.product-card__link:hover { gap: 10px; }

/* ========================================
   About Section (关于我们)
   ======================================== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
}
.about__image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-hover); }
.about__image img { width: 100%; height: 400px; object-fit: cover; }
.about__text h3 { font-size: 26px; color: var(--text-dark); margin-bottom: 16px; }
.about__text p { margin-bottom: 16px; line-height: 1.8; }
.about__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px;
}
.stat-item {
  text-align: center; padding: 20px 10px;
  background: var(--bg-light); border-radius: var(--radius);
}
.stat-item__number { font-size: 36px; font-weight: 700; color: var(--primary); line-height: 1; }
.stat-item__label { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* ========================================
   News Section (新闻)
   ======================================== */
.news-tabs {
  display: flex; gap: 0; justify-content: center; margin-bottom: 36px;
  border-bottom: 2px solid var(--border);
}
.news-tab {
  padding: 12px 28px; font-size: 15px; font-weight: 500;
  color: var(--text-muted); border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: var(--transition); cursor: pointer;
}
.news-tab:hover { color: var(--primary); }
.news-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.news-list { max-width: 800px; margin: 0 auto; }
.news-item {
  display: flex; gap: 20px; padding: 20px 0;
  border-bottom: 1px solid var(--border); transition: var(--transition);
}
.news-item:hover { padding-left: 8px; }
.news-item__date {
  flex-shrink: 0; text-align: center; padding: 8px 16px;
  background: var(--primary); color: var(--white); border-radius: var(--radius);
  min-width: 80px;
}
.news-item__day { font-size: 28px; font-weight: 700; line-height: 1; }
.news-item__month { font-size: 12px; opacity: .8; }
.news-item__title { font-size: 16px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.news-item__excerpt { font-size: 14px; color: var(--text-muted); }

/* ========================================
   Applications (产品应用)
   ======================================== */
.app-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px;
}
.app-card {
  text-align: center; padding: 36px 20px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: var(--transition);
  border: 2px solid transparent;
}
.app-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.app-card__icon {
  width: 80px; height: 80px; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.app-card__icon svg { width: 36px; height: 36px; fill: var(--white); }
.app-card__img {
  width: 80px; height: 80px; margin: 0 auto 16px;
  border-radius: 50%; overflow: hidden;
  border: 3px solid var(--primary);
}
.app-card__img img {
  width: 100%; height: 100%; object-fit: cover;
}
.app-card__name { font-size: 16px; font-weight: 600; color: var(--text-dark); }
.app-card__en { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Equipment Cards (设备卡片) */
.equip-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: var(--transition);
}
.equip-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-hover);
}
.equip-card img {
  width: 100%; height: 200px; object-fit: cover;
}
.equip-card h4 {
  padding: 12px 16px 4px; font-size: 15px; color: var(--text-dark);
}
.equip-card p {
  padding: 0 16px 16px; font-size: 13px; color: var(--text-muted); line-height: 1.5;
}

/* ========================================
   Product Category Cards (产品分类入口)
   ======================================== */
.category-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.category-card {
  position: relative; border-radius: 12px; overflow: hidden;
  height: 320px; box-shadow: var(--shadow); transition: var(--transition);
}
.category-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.category-card__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .6s;
}
.category-card:hover .category-card__bg { transform: scale(1.05); }
.category-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(27,91,160,.9) 0%, rgba(27,91,160,.3) 100%);
}
.category-card__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px; color: var(--white);
}
.category-card__content h3 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.category-card__content p { font-size: 14px; opacity: .85; margin-bottom: 16px; }
.category-card__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; background: var(--white); color: var(--primary);
  border-radius: var(--radius); font-size: 14px; font-weight: 600;
  transition: var(--transition); width: fit-content;
}
.category-card__btn:hover { background: var(--primary); color: var(--white); }

/* ========================================
   Product Detail Pages (产品详情页)
   ======================================== */
.product-sidebar {
  display: grid; grid-template-columns: 260px 1fr; gap: 32px;
}
.sidebar__nav { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.sidebar__title {
  padding: 16px 20px; background: var(--primary); color: var(--white);
  font-size: 16px; font-weight: 600;
}
.sidebar__list a {
  display: block; padding: 12px 20px; font-size: 14px;
  color: var(--text-body); border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.sidebar__list a:hover,
.sidebar__list a.active {
  background: var(--bg-light); color: var(--primary);
  padding-left: 24px; border-left: 3px solid var(--primary);
}

/* ========================================
   About Page (关于页面)
   ======================================== */
.about-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 36px; }
.about-tab {
  padding: 14px 32px; font-size: 16px; font-weight: 500;
  color: var(--text-muted); border-bottom: 2px solid transparent;
  margin-bottom: -2px; cursor: pointer; transition: var(--transition);
}
.about-tab:hover { color: var(--primary); }
.about-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Timeline */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 15px; top: 0; bottom: 0;
  width: 2px; background: var(--primary);
}
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item::before {
  content: ''; position: absolute; left: -33px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary); border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-item__year { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.timeline-item__desc { font-size: 15px; color: var(--text-body); line-height: 1.7; }

/* ========================================
   Contact Page (联系我们)
   ======================================== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.contact-info__item {
  display: flex; gap: 16px; margin-bottom: 28px;
}
.contact-info__icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.contact-info__icon svg { width: 22px; height: 22px; fill: var(--white); }
.contact-info__label { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.contact-info__value { font-size: 16px; color: var(--text-dark); font-weight: 500; }
.contact-form { background: var(--bg-light); padding: 36px; border-radius: var(--radius); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; color: var(--text-dark); margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px; transition: var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,91,160,.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit {
  display: inline-block; padding: 14px 48px;
  background: var(--primary); color: var(--white);
  border: none; border-radius: var(--radius);
  font-size: 16px; font-weight: 600; cursor: pointer;
  transition: var(--transition);
}
.form-submit:hover { background: var(--primary-dark); transform: translateY(-2px); }
.contact-visual { display: flex; flex-direction: column; gap: 12px; }
.contact-visual__main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.contact-visual__main img { width: 100%; height: 220px; object-fit: cover; display: block; }
.contact-visual__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-visual__row img { width: 100%; height: 140px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.contact-visual__cta {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, #0a2a5e, #1B5BA0);
  padding: 20px 24px; border-radius: var(--radius);
  color: var(--white);
}
.contact-visual__cta svg { flex-shrink: 0; stroke: rgba(255,255,255,.8); }
.contact-visual__cta strong { display: block; font-size: 16px; margin-bottom: 4px; }
.contact-visual__cta span { font-size: 13px; opacity: .85; }

/* ========================================
   Footer (页脚)
   ======================================== */
.footer-info-bar {
  background: var(--primary); color: var(--white); padding: 20px 0;
}
.footer-info-bar .container {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-info-item {
  display: flex; align-items: center; gap: 10px; font-size: 14px;
}
.footer-info-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .8; }

.site-footer {
  background: var(--footer-bg); padding: 48px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px;
  padding-bottom: 36px;
}
.footer-col h4 {
  font-size: 16px; font-weight: 600; color: var(--text-dark);
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 14px; color: var(--text-body); }
.footer-col ul a:hover { color: var(--primary); padding-left: 4px; }
.footer-col p { font-size: 14px; color: var(--text-body); margin-bottom: 8px; line-height: 1.7; }
.footer-logo { height: 48px; width: auto; margin-bottom: 12px; border-radius: 6px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--primary-dark); transform: translateY(-2px); }
.footer-social a svg { width: 16px; height: 16px; fill: currentColor; }
.footer-copyright {
  border-top: 1px solid rgba(27,91,160,.2);
  padding: 16px 0; text-align: center;
  font-size: 13px; color: var(--text-muted);
}

/* ========================================
   Back to Top (返回顶部)
   ======================================== */
#back-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  font-size: 18px; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-hover); opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: var(--transition); z-index: 90;
}
#back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#back-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ========================================
   Page Banner (内页顶部)
   ======================================== */
.page-banner {
  background: linear-gradient(135deg, #0a2a5e, #1B5BA0);
  padding: 60px 0; text-align: center; color: var(--white);
}
.page-banner h1 { font-size: 36px; font-weight: 700; margin-bottom: 8px; }
.page-banner .breadcrumb {
  font-size: 14px; opacity: .8;
}
.page-banner .breadcrumb a { opacity: .8; }
.page-banner .breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.page-banner .breadcrumb span { margin: 0 8px; }

/* ========================================
   Responsive (响应式)
   ======================================== */

/* --- Tablet (768-1199) --- */
@media (max-width: 1199px) {
  .navbar__menu > li > a { padding: 24px 12px; font-size: 14px; }
  .banner__slide { min-height: 420px; }
  .banner__text h2 { font-size: 32px; }
  .banner__image { max-width: 360px; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .app-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { gap: 36px; }
}

/* --- Mobile (<768) --- */
@media (max-width: 767px) {
  .top-bar__info { display: none; }
  .hamburger { display: flex; }
  .navbar__menu {
    position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
    background: var(--white); flex-direction: column; padding: 80px 0 24px;
    box-shadow: -4px 0 24px rgba(0,0,0,.15);
    transition: right .3s ease; z-index: 110; overflow-y: auto;
  }
  .navbar__menu.open { right: 0; }
  .navbar__menu > li > a { padding: 14px 24px; }
  .navbar__menu > li > a::after { display: none; }
  .navbar__menu .dropdown-menu {
    position: static; opacity: 0; visibility: hidden; height: 0; overflow: hidden;
    box-shadow: none; padding: 0; background: var(--bg-light);
    transform: none; transition: opacity .2s, height .2s;
  }
  .navbar__menu li.mobile-open > .dropdown-menu {
    opacity: 1; visibility: visible; height: auto; overflow: visible;
  }
  .dropdown-menu a { padding-left: 40px; }

  .banner__slide { min-height: 340px; padding: 40px 0; }
  .banner__content { flex-direction: column; text-align: center; }
  .banner__text h2 { font-size: 26px; }
  .banner__text p { font-size: 15px; }
  .banner__image { display: none; }
  .banner__arrow { display: none; }

  .section { padding: 48px 0; }
  .section__title { font-size: 24px; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product-card__img { height: 150px; }

  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about__image img { height: 260px; }
  .about__stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat-item__number { font-size: 28px; }

  .news-tabs { flex-wrap: wrap; }
  .news-tab { padding: 10px 18px; font-size: 14px; }

  .app-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .app-card { padding: 24px 16px; }
  .equip-card img { height: 160px; }

  .category-grid { grid-template-columns: 1fr; }
  .category-card { height: 240px; }

  .product-sidebar { grid-template-columns: 1fr; }
  .sidebar__nav { order: -1; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-visual__row { grid-template-columns: 1fr; }
  .contact-visual__main img { height: 180px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-info-bar .container { flex-direction: column; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-banner h1 { font-size: 26px; }
}

/* --- Small Mobile (<480) --- */
@media (max-width: 479px) {
  .products-grid { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: 1fr; }
}
