/* ==========================================================================
   KNS Care — 케이앤에스케어 공식 홈페이지
   Brand: 띵동 레미큐 (Ddingdong Remicu)
   ========================================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css');

:root {
  /* Brand — 로고 버건디 */
  --brand:        #7f3e54;
  --brand-deep:   #5c2a3c;
  --brand-soft:   #f6eef1;
  --brand-line:   #e3cdd5;

  /* Accent — 제품 핑크 */
  --pink:         #f2a0be;
  --pink-soft:    #fdf1f6;

  /* Trust — 공공/정책 */
  --navy:         #1b3a63;
  --navy-soft:    #eef3f9;

  /* Ink & surface */
  --ink:          #1a1d24;
  --ink-2:        #454b57;
  --ink-3:        #6e7683;
  --line:         #e5e7eb;
  --line-2:       #f0f1f3;
  --bg:           #ffffff;
  --bg-2:         #fafafb;
  --bg-3:         #f5f6f8;

  --radius:       14px;
  --radius-lg:    22px;
  --shadow:       0 1px 2px rgba(16,24,40,.04), 0 8px 24px -8px rgba(16,24,40,.10);
  --shadow-lg:    0 24px 60px -20px rgba(16,24,40,.22);

  --wrap:         1180px;
  --header-h:     72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
               'Malgun Gothic', 'Apple SD Gothic Neo', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
/* height:auto 가 없으면 <img width height> 속성이 그대로 적용돼 이미지가 눌린다. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.32; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--gray { background: var(--bg-2); }
.section--soft { background: var(--brand-soft); }
.section--navy { background: var(--navy); color: #fff; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  color: var(--brand); text-transform: uppercase;
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--pink); }

.h-xl { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.035em; }
.h-lg { font-size: clamp(27px, 3.1vw, 38px); letter-spacing: -.03em; }
.h-md { font-size: clamp(21px, 2vw, 25px); }
.h-sm { font-size: 18px; }

.lead  { font-size: clamp(16px, 1.3vw, 19px); color: var(--ink-2); line-height: 1.8; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; line-height: 1.7; }
.tiny  { font-size: 13px; line-height: 1.65; color: var(--ink-3); }

.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head p { margin-top: 16px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px;
  border-radius: 10px; border: 1px solid transparent;
  font-size: 16px; font-weight: 600; letter-spacing: -.01em;
  cursor: pointer; transition: .18s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-deep); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.btn--light:hover { background: rgba(255,255,255,.2); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-2);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { height: 38px; width: auto; }
.brand__name { font-weight: 800; font-size: 18px; letter-spacing: -.03em; color: var(--ink); }
.brand__sub  { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; color: var(--ink-3); margin-top: -2px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 15px; border-radius: 8px;
  font-size: 15.5px; font-weight: 600; color: var(--ink-2);
  transition: .15s;
}
.nav a:hover { color: var(--brand); background: var(--brand-soft); }
.nav a.is-active { color: var(--brand); }
.header__cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: 9px; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

/* ---------- 제품 브랜드 락업 (띵동 레미큐) ---------- */
.plock { display: inline-flex; align-items: center; gap: 14px; }
.plock img { width: 60px; height: auto; flex: none; }
.plock__text { text-align: left; }
.plock__name {
  display: block;
  font-size: 26px; font-weight: 800; letter-spacing: -.03em;
  color: var(--brand-deep); line-height: 1.2;
}
.plock__sub {
  display: block;
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
  color: var(--ink-3); margin-top: 2px;
}
@media (max-width: 1024px) { .plock { justify-content: center; } }
@media (max-width: 520px) {
  .plock img { width: 48px; }
  .plock__name { font-size: 22px; }
}

/* 제품 브랜드 밴드 — 제품명을 각인시키는 섹션 */
.brandband {
  background: linear-gradient(135deg, #fdf2f6 0%, #fbf7f8 55%, #f7f9fb 100%);
  border-top: 1px solid var(--brand-line);
  border-bottom: 1px solid var(--brand-line);
  overflow: hidden;
}
.brandband__inner {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px;
  align-items: center; padding: 76px 0;
}
.brandband__mark { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.brandband__mark img { width: 78px; height: auto; }
.brandband__mark strong { font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -.035em; color: var(--brand-deep); }
.brandband__inner p { margin-top: 6px; }
.brandband__photo img { width: 100%; height: auto; filter: drop-shadow(0 26px 40px rgba(127,62,84,.16)); }
@media (max-width: 1024px) {
  .brandband__inner { grid-template-columns: 1fr; gap: 36px; text-align: center; padding: 60px 0; }
  .brandband__mark { justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(170deg, #fdf6f8 0%, #fbfbfc 55%, #fff 100%); }
.hero__inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding: 84px 0 96px;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -.04em; line-height: 1.22; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero__lead { margin-top: 24px; max-width: 500px; }
.hero__btns { margin-top: 34px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 13px;
  background: #fff; border: 1px solid var(--brand-line); border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--brand-deep);
}
.hero__visual { position: relative; }
.hero__visual img { width: 100%; filter: drop-shadow(0 40px 50px rgba(127,62,84,.16)); }
.hero__glow {
  position: absolute; inset: 12% -8% 12% 6%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(242,160,190,.34), transparent 72%);
  filter: blur(28px); z-index: 0;
}
.hero__visual img { position: relative; z-index: 1; }

/* ---------- Stat bar ---------- */
.statbar { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: #fff; }
.statbar__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 24px; text-align: center; border-left: 1px solid var(--line-2); }
.stat:first-child { border-left: 0; }
.stat__num { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; color: var(--brand); letter-spacing: -.03em; }
.stat__label { font-size: 14px; color: var(--ink-3); margin-top: 4px; font-weight: 500; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: .2s ease;
}
.card:hover { border-color: var(--brand-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card__icon svg { width: 23px; height: 23px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--ink-2); line-height: 1.75; }

.card--flat { background: var(--bg-2); border-color: transparent; }
.card--flat:hover { background: #fff; }

/* ---------- Feature (image + text alternating) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature--flip .feature__media { order: 2; }
.feature__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.feature__media--plain img { box-shadow: none; border: 1px solid var(--line); border-radius: var(--radius); }
.feature h2 { margin-bottom: 18px; }
.feature ul { margin-top: 24px; display: grid; gap: 12px; }
.feature ul li { position: relative; padding-left: 28px; font-size: 16px; color: var(--ink-2); }
.feature ul li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 4px var(--brand);
}
.feature ul li strong { color: var(--ink); font-weight: 700; }

/* ---------- Table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15.5px; }
thead th {
  background: var(--navy); color: #fff;
  padding: 16px 18px; text-align: left; font-weight: 600; font-size: 14.5px;
  letter-spacing: -.01em; white-space: nowrap;
}
tbody td { padding: 16px 18px; border-top: 1px solid var(--line-2); color: var(--ink-2); vertical-align: top; }
tbody tr:hover td { background: var(--bg-2); }
tbody td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
td .ok { color: var(--brand); font-weight: 800; }
td .no { color: #cbd0d8; }

/* ---------- Channel cards (도입 3채널) ---------- */
.channel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.channel__head { padding: 26px 28px 22px; background: var(--brand); color: #fff; }
.channel__head h3 { font-size: 20px; }
.channel__head p { font-size: 14px; opacity: .85; margin-top: 4px; }
.channel__body { padding: 26px 28px 30px; }
.channel__body ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
.channel__body li { counter-increment: step; position: relative; padding-left: 34px; font-size: 15.5px; color: var(--ink-2); }
.channel__body li::before {
  content: counter(step); position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  font-size: 12px; font-weight: 800; line-height: 22px; text-align: center;
}

/* ---------- Cert strip ---------- */
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cert {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-align: center; transition: .2s;
}
.cert:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cert img { width: 100%; border: 1px solid var(--line-2); border-radius: 6px; margin-bottom: 14px; }
.cert__label { font-size: 14px; font-weight: 700; color: var(--ink); }
.cert__no { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; font-variant-numeric: tabular-nums; }

/* ---------- Spec list ---------- */
.spec { border-top: 2px solid var(--ink); }
.spec__row { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.spec__row dt { font-weight: 700; font-size: 15.5px; }
.spec__row dd { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* ---------- Price card ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.price {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 32px 34px; background: #fff; position: relative;
}
.price--featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.price__tag {
  position: absolute; top: -13px; left: 32px;
  background: var(--brand); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
}
.price__name { font-size: 21px; font-weight: 700; }
.price__desc { font-size: 14.5px; color: var(--ink-3); margin-top: 4px; }
.price__amt { margin: 22px 0 6px; font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: var(--brand); }
.price__amt small { font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.price__soon { margin: 22px 0 6px; font-size: 26px; font-weight: 800; color: var(--ink-3); letter-spacing: -.02em; }
.price ul { margin: 24px 0 28px; display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.price ul li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--ink-2); }
.price ul li::before {
  content: ''; position: absolute; left: 2px; top: 9px; width: 12px; height: 7px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* ---------- 제품 컷 (여백 있는 흰 배경 박스) ---------- */
.shot {
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 20px;
}
.shot img { width: 100%; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery figure { margin: 0; }
/* 16:10 — 파노라마 사진(2.9:1)을 4:3 으로 담으면 지나치게 잘린다 */
.gallery img { border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: 13.5px; color: var(--ink-3); margin-top: 10px; text-align: center; }

/* 앱·게임 화면은 한 픽셀도 잘리면 안 되므로 여백 안에 전체를 담는다 */
.gallery--app img {
  object-fit: contain;
  background: #fff;
  padding: 12px;
  aspect-ratio: 4/3;
}
.gallery--app figcaption { font-weight: 600; color: var(--ink-2); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #fff; }
.cta__inner { text-align: center; padding: 88px 0; }
.cta h2 { font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.03em; }
.cta p { margin: 18px auto 34px; max-width: 620px; color: rgba(255,255,255,.86); font-size: 17px; }
.cta .btn-row { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.info-list { display: grid; gap: 4px; border-top: 2px solid var(--ink); }
.info-list__row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 17px 2px; border-bottom: 1px solid var(--line); }
.info-list__row dt { font-weight: 700; font-size: 15.5px; }
.info-list__row dd { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.info-list__row dd a:hover { color: var(--brand); text-decoration: underline; }

.form { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 32px 36px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14.5px; font-weight: 700; margin-bottom: 8px; }
.field label .req { color: var(--brand); margin-left: 3px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
  font-family: inherit; font-size: 15.5px; color: var(--ink);
  transition: .15s;
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(127,62,84,.1);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn { width: 100%; margin-top: 6px; }
.form__note { margin-top: 14px; text-align: center; }

/* ---------- Map card ---------- */
.map {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  min-height: 260px;
  background: linear-gradient(120deg, #fff 0%, var(--brand-soft) 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px 44px;
}
.map__body { position: relative; z-index: 1; max-width: 560px; }
.map__pin {
  position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
  width: 190px; height: 190px; color: var(--brand);
  opacity: .13; pointer-events: none;
}
.map__pin svg { width: 100%; height: 100%; }
@media (max-width: 820px) {
  .map { padding: 32px 24px; }
  .map__pin { right: -20px; width: 150px; height: 150px; opacity: .08; }
}

/* ---------- Downloads ---------- */
.dl { display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: .2s; }
.dl:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.dl__icon { flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.dl__icon svg { width: 20px; height: 20px; }
.dl__text strong { display: block; font-size: 16px; }
.dl__text span { font-size: 13.5px; color: var(--ink-3); }

/* ---------- Team ---------- */
.person { padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.person__role { font-size: 12.5px; font-weight: 700; color: var(--brand); letter-spacing: .04em; }
.person__name { font-size: 19px; font-weight: 700; margin: 4px 0 12px; }
.person ul { display: grid; gap: 6px; }
.person li { font-size: 14.5px; color: var(--ink-2); padding-left: 12px; position: relative; line-height: 1.6; }
.person li::before { content: ''; position: absolute; left: 0; top: 10px; width: 4px; height: 4px; border-radius: 50%; background: var(--brand-line); }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -30px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand-line);
}
.tl-item--now::before { border-color: var(--brand); background: var(--brand); }
.tl-year { font-size: 14px; font-weight: 800; color: var(--brand); letter-spacing: .02em; }
.tl-title { font-size: 18px; font-weight: 700; margin: 2px 0 8px; }
.tl-item p { font-size: 15px; color: var(--ink-2); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { background: var(--bg-2); border-bottom: 1px solid var(--line-2); padding: 72px 0 68px; }
.page-hero h1 { font-size: clamp(30px, 3.8vw, 44px); letter-spacing: -.035em; }
.page-hero p { margin-top: 16px; max-width: 660px; }
.crumb { font-size: 13.5px; color: var(--ink-3); margin-bottom: 14px; }
.crumb a:hover { color: var(--brand); }

/* ---------- Footer ---------- */
.footer { background: #14171d; color: #9aa1ac; padding: 64px 0 40px; font-size: 14.5px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid #262a32; }
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.footer__brand img { height: 40px; width: auto; }
.footer__brand strong { color: #fff; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.footer p { line-height: 1.85; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a:hover { color: #fff; }
.footer__bottom { padding-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13.5px; color: #6b727d; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 64px 0 72px; text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__btns, .hero__badges { justify-content: center; }
  .hero__visual { max-width: 560px; margin: 0 auto; }
  .feature, .feature--flip { grid-template-columns: 1fr; gap: 36px; }
  .feature--flip .feature__media { order: 0; }
  .feature + .feature { margin-top: 64px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px;
    box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: .2s ease;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 12px; border-radius: 8px; font-size: 16px; }
  .header__cta .btn { display: none; }
  .statbar__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .section-head { margin-bottom: 40px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .certs, .gallery { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .header__cta .btn { display: none; }
  .spec__row, .info-list__row { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
