/* ======== Xinkeyang Hardware Factory (鑫科扬五金厂) — style.css ======== */
:root {
  /* 需求文档 4.2 配色：工业蓝 #1A5276 + 深灰 #2C3E50 + 白；浅灰 #ECF0F1、金属银 #BDC3C7 */
  --primary: #1a5276;
  --primary-dark: #133c56;
  --dark: #2c3e50;
  --ink: #34495e;
  --muted: #5d6d7e;
  --line: #e3e8ec;
  --bg-soft: #ecf0f1;
  --bg-blue: #f4f7f9;
  --metal: #bdc3c7;
  --accent: #1a5276;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(16, 42, 84, .10);
  --shadow-hover: 0 14px 40px rgba(16, 42, 84, .18);
  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Open Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  line-height: 1.7;
  background: #fff;
}
h1, h2, h3, h4, h5 {
  font-family: "Roboto", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 6px; font-weight: 600; font-size: 15px;
  transition: all .25s ease; white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline { border: 2px solid var(--primary); color: var(--primary); background: #fff; }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { border: 2px solid rgba(255,255,255,.75); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.14); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--lg { padding: 15px 34px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar { background: var(--dark); color: #cfd6df; font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; flex-wrap: wrap; gap: 4px; }
.topbar__left, .topbar__right { display: flex; gap: 22px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; }
a.topbar__item:hover { color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 200; background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.header__logo { display: flex; align-items: center; gap: 11px; }
.logo__mark {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  object-fit: cover; box-shadow: 0 3px 10px rgba(13,32,64,.28);
}
.logo__text { display: flex; flex-direction: column; line-height: 1.25; }
.logo__text strong { font-size: 19px; font-weight: 800; color: var(--dark); letter-spacing: .2px; }
.logo__text em { font-style: normal; font-size: 12.5px; color: var(--muted); letter-spacing: 1px; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link {
  display: flex; align-items: center; gap: 4px;
  padding: 26px 14px; font-size: 15px; font-weight: 600; color: var(--ink);
  transition: color .2s;
}
.nav__link:hover, .nav__item:hover > .nav__link { color: var(--primary); }
.caret { font-size: 11px; color: var(--muted); }
.has-sub { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 270px;
  background: #fff; border-top: 3px solid var(--primary);
  box-shadow: var(--shadow-hover); border-radius: 0 0 8px 8px;
  padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .25s ease;
}
.has-sub:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 10px 20px; font-size: 14px; color: var(--ink);
  transition: all .2s;
}
.dropdown a:hover { background: var(--bg-blue); color: var(--primary); padding-left: 26px; }
.header__actions { display: flex; align-items: center; gap: 14px; }

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

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 620px; display: flex; align-items: center; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  animation: heroZoom 14s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,20,35,.86) 0%, rgba(8,20,35,.62) 48%, rgba(8,20,35,.25) 100%);
}
.hero__content { position: relative; z-index: 2; color: #fff; padding-top: 40px; padding-bottom: 40px; }
.hero__eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: #bcd7ff; border: 1px solid rgba(188,215,255,.4); padding: 6px 16px; border-radius: 30px;
  margin-bottom: 22px; background: rgba(24,99,220,.18);
}
.hero__title { font-size: clamp(38px, 6vw, 62px); line-height: 1.12; font-weight: 800; margin-bottom: 14px; }
.hero__subtitle { font-size: clamp(17px, 2.1vw, 21px); font-weight: 400; color: #d7e2ea; margin-bottom: 16px; }
.hero__desc { max-width: 620px; font-size: 17px; color: #dbe4ef; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero__stats { display: flex; gap: 46px; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 30px; font-weight: 800; color: #fff; }
.hero__stats span { font-size: 13px; color: #b8c6d8; letter-spacing: .5px; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.kicker {
  color: var(--primary); font-weight: 700; font-size: 13px;
  letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 10px;
}
.section-title { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.25; font-weight: 800; color: var(--dark); margin-bottom: 18px; }
.section-sub { color: var(--muted); font-size: 16px; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 54px; }
.section-head--light .section-title, .section-head--light .section-sub { color: #fff; }
.section-head--light .section-sub { color: #b8c6d8; }

/* ---------- About ---------- */
.about { background: #fff; }
.about__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about__extra { margin-top: 70px; display: grid; gap: 46px; }
.about__sub {
  font-size: 20px; color: var(--dark); margin-bottom: 22px; text-align: center;
  position: relative; padding-bottom: 12px;
}
.about__sub::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 54px; height: 3px; background: var(--metal); border-radius: 2px;
}
.checklist { margin-top: 18px; }
.checklist li {
  position: relative; padding-left: 32px; margin-bottom: 11px; color: var(--ink);
}
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Products ---------- */
.products { background: var(--bg-soft); }
.products__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 3px 14px rgba(0,0,0,.06);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.product-card__media { overflow: hidden; aspect-ratio: 1 / 1; background: #f7f7f7; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-card__media img { transform: scale(1.07); }
.product-card__body { padding: 20px 20px 24px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.product-card__name {
  font-size: 15.5px; font-weight: 700; color: var(--dark); line-height: 1.45;
  min-height: 3em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__style { font-size: 13px; color: var(--muted); }
.product-card__price { font-size: 15px; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.product-card__body .btn { margin-top: auto; }
.products__cta { text-align: center; margin-top: 50px; }

/* ---------- Why ---------- */
.why { background: var(--bg-blue); }
.why__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.why__media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.why__points { margin: 26px 0 30px; display: grid; gap: 18px; }
.why__point { display: flex; gap: 18px; align-items: flex-start; }
.why__num {
  flex: none; width: 46px; height: 46px; border-radius: 8px;
  background: var(--primary); color: #fff; font-weight: 800; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.why__point h4 { font-size: 16px; color: var(--dark); margin-bottom: 2px; }
.why__point p { font-size: 14px; color: var(--muted); }

/* ---------- Services ---------- */
.services { background: #fff; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0 0 26px;
  overflow: hidden; transition: transform .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.service-card__media { aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 22px; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card__media--icon {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eef2f5 0%, var(--metal) 100%);
  color: var(--primary);
}
.service-card:hover .service-card__media img { transform: scale(1.06); }
.service-card h3 { font-size: 18px; color: var(--dark); padding: 0 24px; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--ink); padding: 0 24px; }
.service-card__sub { color: var(--muted) !important; margin-top: 8px; font-size: 13.5px !important; }

/* ---------- Process ---------- */
.process { background: linear-gradient(135deg, #2c3e50 0%, #1a5276 100%); }
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.process-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 34px 26px; position: relative;
  transition: transform .3s, background .3s;
}
.process-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.11); }
.process-card__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 22px; font-weight: 800;
  margin-bottom: 18px; box-shadow: 0 0 0 6px rgba(24,99,220,.22);
}
.process-card h3 { color: #fff; font-size: 17px; margin-bottom: 10px; }
.process-card p { color: #b8c6d8; font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-soft); }
.accordion { display: grid; gap: 14px; }
.accordion__item {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.accordion__head {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 20px 24px; text-align: left;
  font-weight: 700; font-size: 16px; color: var(--dark);
}
.accordion__head:hover { color: var(--primary); }
.accordion__icon {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-blue); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 600; transition: all .3s;
}
.accordion__item.open .accordion__icon { background: var(--primary); color: #fff; transform: rotate(45deg); }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.accordion__panel p { padding: 0 24px 22px; color: var(--muted); font-size: 15px; }
.accordion__item.open .accordion__panel { max-height: 400px; }

/* ---------- Contact ---------- */
.contact { background: #fff; }
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: start; }
.contact__note { color: var(--muted); font-size: 14px; margin-top: 10px; }
.contact__info { margin-top: 24px; display: grid; gap: 8px; color: var(--ink); }
.contact__form {
  background: var(--bg-blue); border: 1px solid #e2ecfa;
  border-radius: var(--radius); padding: 34px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--dark); margin-bottom: 7px; }
.form-field input[type="text"], .form-field input[type="email"],
.form-field textarea, .form-field input[type="file"] {
  width: 100%; padding: 12px 14px; border: 1px solid #d5dee9; border-radius: 6px;
  font: inherit; font-size: 15px; color: var(--ink); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form-field textarea { resize: vertical; }
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(24,99,220,.14);
}
.form-status { margin-top: 14px; padding: 12px 16px; border-radius: 6px; font-size: 14px; }
.form-status.ok { background: #e6f7ec; color: #14743a; border: 1px solid #b7e4c7; }
.form-status.err { background: #fdeceb; color: #b02a26; border: 1px solid #f5c6c4; }

/* ---------- Footer ---------- */
.footer { background: #1b262f; color: #9aa9b5; font-size: 14px; }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
  gap: 40px; padding: 70px 20px 50px;
}
.footer__logo {
  width: 120px; height: 120px; object-fit: cover;
  border-radius: 18px; margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.footer__brand p { line-height: 1.8; }
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; transition: all .25s;
}
.footer__social a.s-fb:hover { background: #1877f2; }
.footer__social a.s-in:hover { background: #0a66c2; }
.footer__social a.s-ig:hover { background: #e1306c; }
.footer__social a.s-wa:hover { background: #25d366; }
.footer__social a:hover { transform: translateY(-3px); }
.footer__col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul a { transition: color .2s, padding-left .2s; }
.footer__col ul a:hover { color: #fff; padding-left: 6px; }
.footer__form { display: flex; gap: 8px; margin-top: 14px; }
.footer__form input {
  flex: 1; padding: 11px 14px; border-radius: 6px; border: 1px solid #33373d;
  background: #212429; color: #fff; font: inherit; font-size: 14px;
}
.footer__form input:focus { outline: none; border-color: var(--primary); }
.footer__form .btn { padding: 11px 20px; }
.footer__bottom { border-top: 1px solid #26292f; padding: 20px 0; font-size: 13px; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer__bottom ul { display: flex; gap: 22px; }
.footer__bottom a:hover { color: #fff; }

/* ---------- Footer brand block ---------- */
.footer__name { display: block; color: #fff; font-size: 20px; font-weight: 800; margin-bottom: 2px; }
.footer__cn { color: var(--primary); font-size: 14px; margin-bottom: 14px; }
.footer__contact { display: grid; gap: 12px; margin: 18px 0 0; }
.footer__contact strong {
  display: block; color: #6f7883; font-size: 11.5px;
  letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 2px;
}
.footer__contact a { color: #cfd6df; }
.footer__contact a:hover { color: #fff; }
.footer__form { flex-wrap: wrap; }
.footer__form .form-status { width: 100%; font-size: 13px; }

/* ---------- Floating contact buttons ---------- */
.float-group {
  position: fixed; right: 22px; bottom: 22px; z-index: 300;
  display: flex; flex-direction: column; gap: 14px; align-items: flex-end;
}
.wa-float {
  position: relative; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  animation: waPulse 2.4s ease-in-out infinite;
  transition: transform .25s;
}
.wa-float--mail {
  background: var(--primary);
  box-shadow: 0 8px 24px rgba(24,99,220,.45);
  animation: none;
}
.wa-float:hover { transform: scale(1.08); }
.float-tip {
  position: absolute; right: 68px; top: 50%; transform: translateY(-50%);
  background: var(--dark); color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 20px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.wa-float:hover .float-tip { opacity: 1; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.4); }
  50% { box-shadow: 0 8px 24px rgba(37,211,102,.45), 0 0 0 14px rgba(37,211,102,0); }
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 500; display: none; }
.modal.show { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10,18,30,.6); backdrop-filter: blur(3px); }
.modal__box {
  position: relative; z-index: 2; max-width: 520px; margin: 6vh auto;
  background: #fff; border-radius: 14px; padding: 36px;
  max-height: 88vh; overflow-y: auto;
  animation: modalIn .3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: 12px; right: 16px; font-size: 30px; color: var(--muted);
  line-height: 1; transition: color .2s;
}
.modal__close:hover { color: var(--dark); }
.modal__box h3 { font-size: 24px; color: var(--dark); margin-bottom: 8px; }
.modal__sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

/* ---------- Product category tabs ---------- */
.p-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.p-tab {
  padding: 11px 24px; border: 2px solid var(--line); border-radius: 30px;
  background: #fff; font-weight: 700; font-size: 14px; color: var(--ink);
  transition: all .25s ease;
}
.p-tab:hover { border-color: var(--metal); color: var(--primary); }
.p-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.p-panel { display: none; }
.p-panel.active { display: block; }

/* ---------- Capability placeholder card ---------- */
.cap-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; text-align: center; height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: transform .3s, box-shadow .3s;
}
.cap-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.cap-card__icon {
  width: 80px; height: 80px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #eef2f5 0%, var(--metal) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); font-size: 30px; margin-bottom: 6px;
}
.cap-card h3 { font-size: 17px; color: var(--dark); }
.cap-card p { font-size: 14px; color: var(--muted); }
.cap-card .btn { margin-top: auto; }
.cap-note {
  text-align: center; color: var(--muted); font-size: 14px; margin-top: 28px;
}

/* ---------- Certifications & equipment ---------- */
.badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.badge {
  border: 1px dashed var(--metal); border-radius: 8px; padding: 9px 20px;
  font-weight: 700; color: var(--primary); background: #fff; font-size: 14px;
  letter-spacing: .5px;
}
.certs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 14px; margin: 20px 0 12px;
}
.cert {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 10px 12px; text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.cert:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(44,62,80,.10); }
.cert img {
  height: 58px; width: auto; max-width: 100%; object-fit: contain;
  margin: 0 auto 12px; display: block;
}
.cert figcaption strong { display: block; font-size: 13px; color: var(--dark); letter-spacing: .3px; }
.cert figcaption span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.equip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.equip figure { margin: 0; }
.equip img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px;
  box-shadow: 0 3px 12px rgba(44,62,80,.12);
}
.equip figcaption {
  font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .products__grid { grid-template-columns: repeat(3, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .about__grid, .why__grid, .contact__grid { grid-template-columns: 1fr; gap: 36px; }
  .why__media { order: -1; }
  .section { padding: 64px 0; }
  .nav {
    position: fixed; top: 0; right: -320px; width: 300px; height: 100vh;
    background: #fff; z-index: 400; padding: 90px 24px 30px;
    box-shadow: -8px 0 30px rgba(0,0,0,.15);
    transition: right .35s ease; overflow-y: auto;
  }
  .nav.open { right: 0; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border-top: none; padding: 0 0 8px 16px; display: none;
  }
  .has-sub.open .dropdown { display: block; }
  .burger { display: flex; position: relative; z-index: 500; }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .products__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 540px; }
  .hero__stats { gap: 26px; }
  .topbar__right { display: none; }
  .modal__box { margin: 4vh 14px; padding: 26px 20px; }
}
