/* ============================================================
   TECO247 - Thiết bị giám sát chất lượng cao
   CSS chính - gọn nhẹ, không phụ thuộc framework
   ============================================================ */

:root {
  --dark: #14161a;
  --dark-2: #1d1e20;
  --gray: #727586;
  --gray-light: #f2f3f6;
  --accent: #357df9;
  --accent-hover: #2564d6;
  --border: #e4e6eb;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(20, 22, 26, 0.08);
  --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: none; margin: 0 auto; padding: 0 24px; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 74px;
  gap: 16px;
  padding-right: 56px;
}
.logo img { height: 52px; width: auto; }
.main-nav ul { display: flex; gap: 32px; }
.header-actions { position: absolute; right: 40px; }
.main-nav ul { display: flex; gap: 32px; }
.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: #14161a;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--accent); }
.main-nav a.active { color: var(--accent); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--dark); border: 1.5px solid var(--dark); }
.btn-outline:hover { background: var(--dark); color: #fff; }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { background: #e8eaf0; }
.btn-lg { padding: 14px 30px; font-size: 15px; }

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 24px; height: 2.5px;
  background: var(--dark);
  border-radius: 2px;
  transition: 0.25s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ HERO SLIDER ============ */
.hero {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: var(--dark);
}
.hero-slides { position: relative; height: 100%; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,12,16,0.82) 0%, rgba(10,12,16,0.45) 55%, rgba(10,12,16,0.15) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 700px;
  color: #fff;
}
.hero-content .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #9db8ef;
  margin-bottom: 18px;
}
.hero-content .kicker::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.hero-content h1 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.12;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero-content h1 span { color: var(--accent); }
.hero-content p {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 560px;
}
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: 0.25s;
}
.hero-dots button.active { background: #fff; width: 28px; border-radius: 6px; }

/* ============ SECTION CHUNG ============ */
.section { padding: 90px 0; }
.section-alt { background: var(--gray-light); }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-head .kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.2;
}
.section-head p { color: var(--gray); margin-top: 12px; font-size: 16px; }

/* ============ GIẢI PHÁP ============ */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.solution-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 26px;
  transition: all 0.25s;
}
.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.solution-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: #eaf1ff;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}
.solution-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.solution-card p { color: var(--gray); font-size: 14.5px; }

/* ============ SẢN PHẨM ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f7f8fa;
  position: relative;
}
.product-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.product-body p { font-size: 13.5px; color: var(--gray); flex: 1; }
.product-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--accent);
  margin: 10px 0 2px;
}
.product-body .btn { margin-top: 14px; width: 100%; }

/* ============ BĂNG CTA ============ */
.cta-band {
  background: linear-gradient(120deg, #10141d 0%, #1c2b4d 100%);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 30px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ TRANG NỘI DUNG ============ */
.page-hero {
  background: var(--dark);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.7); max-width: 620px; margin: 0 auto; }

/* ============ VỀ CHÚNG TÔI ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-grid h3 { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.about-grid p { color: var(--gray); margin-bottom: 16px; }
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  font-size: 15px;
}
.feature-list .check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #eaf1ff;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 2px;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.stat-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
}
.stat-box .num { font-size: 30px; font-weight: 800; color: var(--accent); }
.stat-box .label { font-size: 13.5px; color: var(--gray); margin-top: 4px; }

/* ============ DOWNLOAD ============ */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.download-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  transition: all 0.25s;
}
.download-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.download-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: #eaf1ff;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 18px;
}
.download-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.download-card p { font-size: 14px; color: var(--gray); margin-bottom: 18px; }

/* ============ DANH SÁCH DOWNLOAD ============ */
.dl-list {
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.dl-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.dl-item:last-child { border-bottom: none; }
.dl-item:hover { background: #fafbfd; }
.dl-icon {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 13px;
  background: #eaf1ff;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.dl-info { flex: 1; min-width: 0; }
.dl-info h3 { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.dl-info p { font-size: 13.5px; color: var(--gray); }
.dl-badge {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.dl-badge.windows { background: #e8f0fe; color: #1a73e8; }
.dl-badge.android { background: #e6f7ee; color: #0f9d58; }
.dl-btn {
  flex-shrink: 0;
  padding: 9px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.2s;
}
.dl-btn:hover { background: var(--accent-hover); }
@media (max-width: 640px) {
  .dl-item { flex-wrap: wrap; padding: 16px; }
  .dl-badge { order: 3; }
  .dl-btn { width: 100%; text-align: center; }
}

/* ============ LIÊN HỆ ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: #eaf1ff;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.contact-info-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.contact-info-item p { font-size: 14px; color: var(--gray); }
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.2s;
  background: #fbfbfd;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.map-box {
  margin-top: 56px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 340px;
  background: #eef0f4;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--dark-2);
  color: #aeb3bd;
  padding: 64px 0 0;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand img { height: 34px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 300px; line-height: 1.7; }
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: 0.2s;
}
.footer-social a:hover { background: var(--accent); color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13.5px;
}
.footer-bottom a { color: #7f86ff; }

/* ============ CỬA SỔ CHI TIẾT (MODAL) ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.65);
  backdrop-filter: blur(3px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 16px;
  max-width: 760px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  border: none;
  border-radius: 50%;
  background: #f2f3f6;
  color: #14161a;
  font-size: 15px;
  cursor: pointer;
  z-index: 5;
  transition: .2s;
}
.modal-close:hover { background: #e2e4ea; transform: rotate(90deg); }
.modal-body { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; }
.modal-img {
  background: #f7f8fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-img img { width: 100%; height: 100%; object-fit: contain; max-height: 420px; }
.modal-info { padding: 28px 28px 24px; }
.modal-info h2 { font-size: 21px; font-weight: 800; line-height: 1.3; margin-bottom: 8px; padding-right: 30px; }
.modal-price { font-size: 22px; font-weight: 800; color: var(--accent); margin-bottom: 6px; }
.modal-cat {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  background: #eaf1ff;
  color: #2564d6;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.modal-specs {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-bottom: 18px;
}
.modal-specs .spec-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #727586;
  margin-bottom: 10px;
}
.modal-specs pre {
  font-family: inherit;
  font-size: 14px;
  line-height: 1.75;
  color: #2c2f36;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-intro {
  font-size: 14.5px;
  color: #4a4e57;
  line-height: 1.6;
  background: #f8f9fb;
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 18px;
}
.modal-steps { list-style: none; margin: 0 0 20px; }
.modal-steps li {
  position: relative;
  padding: 12px 0 12px 44px;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
  line-height: 1.65;
  color: #2c2f36;
}
.modal-steps li:last-child { border-bottom: none; }
.modal-steps .step-num {
  position: absolute;
  left: 0; top: 12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #eaf1ff;
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-steps b { color: var(--accent); }
.modal-contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #fff8e2;
  border: 1px solid #f0d88a;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: #7a5b00;
  margin-bottom: 16px;
}
@media (max-width: 640px) {
  .modal-body { grid-template-columns: 1fr; }
  .modal-img { padding: 16px; }
  .modal-img img { max-height: 220px; }
  .modal-info { padding: 20px 18px 18px; }
}

/* ============ GIẢI PHÁP (thẻ ảnh) ============ */
.solutions-img-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.solution-img-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 4px 20px rgba(20,22,26,.12);
}
.solution-img-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.solution-img-card:hover img { transform: scale(1.06); }
.solution-img-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,12,16,.78) 0%, rgba(10,12,16,.15) 55%, transparent 100%);
}
.solution-img-card h3 {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0;
}
@media (max-width: 900px) { .solutions-img-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .solutions-img-grid { grid-template-columns: 1fr; } }

/* ============ KHỐI DỊCH VỤ (giống trang DDNS cũ) ============ */
.services-wrap {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.service-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .25s;
}
.service-block:hover { box-shadow: var(--shadow); }
.service-head {
  background: linear-gradient(120deg, #10141d 0%, #1c2b4d 100%);
  color: #fff;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.service-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.service-head h3 { font-size: 17px; font-weight: 800; letter-spacing: .5px; }
.service-head p { font-size: 12.5px; color: rgba(255,255,255,.75); margin-top: 3px; line-height: 1.5; }
.service-guide { padding: 22px 24px 24px; }
.service-guide h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}
.service-steps { list-style: none; margin: 0; }
.service-steps li {
  position: relative;
  padding: 12px 0 16px;
  font-size: 14px;
  line-height: 1.65;
  color: #2c2f36;
  border-bottom: 1px dashed var(--border);
}
.service-steps li:last-child { border-bottom: none; }
.step-head { display: flex; gap: 14px; align-items: flex-start; }
.service-steps .step-num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #eaf1ff;
  color: var(--accent);
  font-weight: 800;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-steps .step-img {
  display: block;
  width: 100%;
  max-width: 680px;
  height: auto;
  margin: 12px auto 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  cursor: zoom-in;
  transition: transform .15s;
}
.service-steps .step-img:hover { transform: scale(1.01); }
.service-steps .step-img.small {
  max-width: 220px;
  margin-left: 44px;
}
.service-steps .step-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.service-steps .step-imgs img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
@media (max-width: 520px) {
  .service-steps .step-imgs { grid-template-columns: 1fr; }
}
.service-steps b { color: var(--accent); }
.service-contact {
  margin-top: 16px;
  background: #fff8e2;
  border: 1px solid #f0d88a;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: #7a5b00;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.service-contact a { color: #2564d6; font-weight: 700; }
@media (max-width: 900px) {
  .services-wrap { grid-template-columns: 1fr; }
}

/* ============ CHẾ ĐỘ CHỈNH SỬA TRỰC TIẾP ============ */
.edit-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  background: #14161a;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  transition: .2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.edit-fab:hover { transform: translateY(-2px); background: #357df9; }
.edit-fab.active { background: #357df9; }

body.editmode .editable { outline: 2px dashed #357df9; outline-offset: 3px; cursor: text; border-radius: 4px; transition: background .2s; }
body.editmode .editable:hover { background: rgba(53,125,249,.07); }
body.editmode .editable:focus { outline: 2px solid #357df9; background: rgba(53,125,249,.1); }
body.editmode .step-img { outline: 2px dashed #0f9d58; outline-offset: 2px; cursor: copy; }
body.editmode .step-img.img-over { outline: 3px solid #0f9d58; background: #e6f7ee; }

.edit-controls {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
body.editmode .edit-controls { display: flex; }
.edit-btn {
  border: 1px solid #d5d8de;
  background: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  color: #14161a;
  transition: .15s;
}
.edit-btn:hover { border-color: #357df9; color: #357df9; }
.edit-btn.danger:hover { border-color: #c62828; color: #c62828; }
.edit-btn.green { background: #e6f7ee; border-color: #b7e5cc; color: #0f7a43; }
.edit-btn.green:hover { background: #cdeeda; }

.edit-toolbar {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 150;
  background: #14161a;
  color: #fff;
  border-radius: 50px;
  padding: 10px 14px;
  gap: 10px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  font-size: 13.5px;
}
body.editmode .edit-toolbar { display: flex; }
.edit-toolbar .btn { padding: 9px 20px; }
.edit-toolbar .btn:disabled { opacity: .5; cursor: not-allowed; }
.edit-toolbar .hint { color: rgba(255,255,255,.7); }
@media (max-width: 640px) {
  .edit-toolbar { width: 92%; justify-content: center; flex-wrap: wrap; }
  .edit-toolbar .hint { display: none; }
}

/* ============ LIGHTBOX XEM ẢNH ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 14, 0.9);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 94vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lb-close {
  position: absolute;
  top: 16px;
  right: 22px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: .2s;
}
.lb-close:hover { background: rgba(255,255,255,.3); transform: rotate(90deg); }
.lb-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  font-size: 13px;
}

/* ============ RESPONSIVE ============ */
/* Màn hình rộng: tự tăng số cột cho vừa màn hình */
@media (min-width: 1600px) {
  .products-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 2200px) {
  .products-grid { grid-template-columns: repeat(8, 1fr); }
}
@media (max-width: 1024px) {
  .solutions-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .menu-toggle { display: flex; position: absolute; right: 0; }
  .main-nav {
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav ul { flex-direction: column; padding: 16px; gap: 4px; }
  .main-nav a { display: block; padding: 12px 8px; font-size: 16px; }
  .header-actions .btn { display: none; }
  .hero { height: 520px; }
  .section { padding: 60px 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 520px) {
  .solutions-grid, .products-grid, .download-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}

/* ============ LOGO VE ME TRAI (them 26/09/2026) ============ */
.logo { position: absolute; left: 40px; }
@media (max-width: 1024px) {
  .logo { position: static; }
}
