/* ==========================================================================
   더베스트방충망 — thebestscreen.co.kr
   모바일 퍼스트 정적 스타일시트
   ========================================================================== */

:root{
  --navy:#123a5a;
  --navy-deep:#0b2a44;
  --navy-soft:#1d4f75;
  --ink:#17222e;
  --muted:#5b6b7a;
  --line:#e3e8ee;
  --line-strong:#cfd8e2;
  --bg:#ffffff;
  --bg-soft:#f4f8fb;
  --bg-tint:#eaf2f8;
  --accent:#0e8a8f;
  --accent-soft:#e3f4f4;
  --sun:#ffd400;
  --sun-deep:#f5c400;
  --warm:#e8622a;
  --radius:18px;
  --radius-sm:12px;
  --shadow:0 10px 30px rgba(16,45,70,.08);
  --shadow-lg:0 18px 44px rgba(16,45,70,.14);
  --header-h:64px;
  --max:1120px;
}

*,*::before,*::after{box-sizing:border-box}

html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  scroll-padding-top:calc(var(--header-h) + 12px);
}

body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic","Noto Sans KR","Helvetica Neue",Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
  font-size:16px;
  line-height:1.72;
  letter-spacing:-.01em;
  word-break:keep-all;
  overflow-wrap:break-word;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;height:auto;display:block}
a{color:var(--navy);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{margin:0 0 .5em;line-height:1.32;letter-spacing:-.03em;font-weight:800;color:var(--navy-deep)}
h1{font-size:clamp(1.65rem,5.6vw,2.6rem)}
h2{font-size:clamp(1.35rem,4.2vw,1.95rem)}
h3{font-size:clamp(1.08rem,3vw,1.28rem)}
p{margin:0 0 1em}
ul,ol{margin:0 0 1em;padding-left:1.2em}
li{margin:.25em 0}
strong{font-weight:800;color:var(--navy-deep)}
hr{border:0;border-top:1px solid var(--line);margin:2em 0}

.wrap{width:100%;max-width:var(--max);margin:0 auto;padding:0 20px}
.nb{white-space:nowrap}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:absolute;left:-9999px;top:0;background:#fff;color:var(--navy);padding:10px 16px;z-index:999;border-radius:0 0 10px 0}
.skip:focus{left:0}
:focus-visible{outline:3px solid #7cc4ff;outline-offset:2px;border-radius:6px}

/* ---------- header ---------- */
.header{
  position:sticky;top:0;z-index:60;
  background:rgba(255,255,255,.94);
  backdrop-filter:saturate(160%) blur(10px);
  border-bottom:1px solid var(--line);
}
.header__inner{
  max-width:var(--max);margin:0 auto;padding:0 16px;
  height:var(--header-h);display:flex;align-items:center;gap:10px;
}
.brand{display:flex;align-items:center;gap:9px;text-decoration:none;flex:0 0 auto}
.brand:hover{text-decoration:none}
.brand img{width:36px;height:36px;border-radius:9px}
.brand__text{display:flex;flex-direction:column;line-height:1.15}
.brand__name{font-weight:800;font-size:1rem;color:var(--navy-deep);letter-spacing:-.04em}
.brand__tag{font-size:.62rem;color:var(--muted);letter-spacing:-.02em}

.nav{display:none}
.nav a{
  display:inline-block;padding:8px 10px;font-size:.92rem;font-weight:700;color:#31465c;
  text-decoration:none;border-radius:8px;
}
.nav a:hover,.nav a[aria-current="page"]{color:var(--navy);background:var(--bg-tint);text-decoration:none}
.header__actions{margin-left:auto;display:flex;align-items:center;gap:8px}
.header__tel{
  display:inline-flex;align-items:center;gap:6px;
  background:var(--navy);color:#fff;font-weight:800;font-size:.86rem;
  padding:9px 14px;border-radius:999px;text-decoration:none;white-space:nowrap;
}
.header__tel:hover{background:var(--navy-deep);text-decoration:none;color:#fff}
.nav-toggle{
  display:inline-flex;align-items:center;justify-content:center;
  width:42px;height:42px;border:1px solid var(--line-strong);background:#fff;
  border-radius:10px;cursor:pointer;padding:0;
}
.nav-toggle span{display:block;width:18px;height:2px;background:var(--navy);position:relative}
.nav-toggle span::before,.nav-toggle span::after{
  content:"";position:absolute;left:0;width:18px;height:2px;background:var(--navy);
}
.nav-toggle span::before{top:-6px}
.nav-toggle span::after{top:6px}

.nav--open{
  display:block;position:fixed;left:0;right:0;top:var(--header-h);
  background:#fff;border-bottom:1px solid var(--line);
  padding:8px 16px 18px;box-shadow:var(--shadow);max-height:calc(100vh - var(--header-h));
  overflow:auto;
}
.nav--open a{display:block;padding:13px 4px;border-bottom:1px solid var(--line);font-size:1rem;border-radius:0}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-weight:800;font-size:1rem;line-height:1.2;
  padding:15px 22px;border-radius:999px;border:2px solid transparent;
  cursor:pointer;text-decoration:none;transition:transform .12s ease,background .15s ease,box-shadow .15s ease;
  text-align:center;
}
.btn:hover{text-decoration:none;transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn--primary{background:var(--navy);color:#fff;box-shadow:0 8px 20px rgba(18,58,90,.22)}
.btn--primary:hover{background:var(--navy-deep);color:#fff}
.btn--sun{background:var(--sun);color:#231f0a;box-shadow:0 8px 20px rgba(245,196,0,.28)}
.btn--sun:hover{background:var(--sun-deep);color:#231f0a}
.btn--ghost{background:#fff;color:var(--navy);border-color:var(--line-strong)}
.btn--ghost:hover{border-color:var(--navy);color:var(--navy)}
.btn--sm{padding:10px 16px;font-size:.88rem}
.btn--block{display:flex;width:100%}
.btn-row{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 0}
.btn-row .btn{flex:1 1 200px}

/* ---------- hero ---------- */
.hero{
  position:relative;overflow:hidden;
  background:
    radial-gradient(1100px 480px at 88% -12%, #dcecf6 0%, rgba(220,236,246,0) 62%),
    linear-gradient(180deg,#f6fafd 0%,#ffffff 72%);
  padding:30px 0 40px;
}
.hero__grid{display:grid;gap:26px}
.hero__eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  background:#fff;border:1px solid var(--line-strong);color:var(--navy);
  font-size:.78rem;font-weight:800;padding:6px 12px;border-radius:999px;margin-bottom:14px;
}
.hero__eyebrow i{width:7px;height:7px;border-radius:50%;background:var(--accent);display:inline-block}
.hero h1{margin-bottom:12px}
.hero h1 .hl{
  background:linear-gradient(transparent 62%, #ffe98a 62%);
  padding:0 2px;
}
.hero__lead{font-size:1.02rem;color:#3a4c5e;margin-bottom:6px}
.hero__facts{list-style:none;padding:0;margin:16px 0 0;display:grid;gap:8px;font-size:.95rem}
.hero__facts li{display:flex;gap:9px;align-items:flex-start;margin:0;color:#33475b}
.hero__facts svg{flex:0 0 18px;margin-top:4px}
.hero__media{position:relative}
.hero__photo{
  border-radius:22px;overflow:hidden;box-shadow:var(--shadow-lg);
  border:6px solid #fff;background:#fff;
}
.hero__photo img{width:100%;aspect-ratio:4/3;object-fit:cover}
.hero__stamp{
  position:absolute;left:14px;bottom:14px;right:14px;
  background:rgba(255,255,255,.96);border-radius:14px;padding:12px 14px;
  box-shadow:var(--shadow);display:flex;gap:12px;align-items:center;
}
.hero__stamp .big{font-weight:900;font-size:1.02rem;color:var(--navy-deep);line-height:1.3}
.hero__stamp .small{font-size:.76rem;color:var(--muted);line-height:1.4}
.hero__stamp .ico{
  width:42px;height:42px;flex:0 0 42px;border-radius:12px;background:var(--accent-soft);
  display:grid;place-items:center;color:#0b6b6f;font-weight:900;font-size:1.05rem;
}

/* ---------- trust strip ---------- */
.trust{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:#fff}
.trust__grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0}
.trust__item{
  padding:16px 12px;display:flex;gap:9px;align-items:flex-start;
  border-right:1px solid var(--line);border-bottom:1px solid var(--line);
}
.trust__item:nth-child(2n){border-right:0}
.trust__item:nth-last-child(-n+2){border-bottom:0}
.trust__item b{display:block;font-size:.9rem;color:var(--navy-deep);line-height:1.35}
.trust__item span{display:block;font-size:.74rem;color:var(--muted);line-height:1.4;margin-top:2px}
.trust__item .ico{
  width:26px;height:26px;flex:0 0 26px;border-radius:8px;background:var(--bg-tint);
  display:grid;place-items:center;font-size:.8rem;font-weight:900;color:var(--navy);
}

/* ---------- sections ---------- */
.section{padding:46px 0}
.section--soft{background:var(--bg-soft)}
.section--tint{background:linear-gradient(180deg,#eef6fb,#f7fbfd)}
.section__head{max-width:760px;margin-bottom:26px}
.section__head p{color:var(--muted);margin:8px 0 0}
.kicker{
  display:inline-block;font-size:.76rem;font-weight:900;letter-spacing:.08em;
  color:var(--accent);text-transform:uppercase;margin-bottom:8px;
}
.kicker--light{color:#8fd0d2}

/* ---------- calculator ---------- */
.quote-card{
  background:#fff;border:1px solid var(--line);border-radius:22px;
  box-shadow:var(--shadow);padding:20px;
}
.quote-card h3{margin-bottom:4px}
.quote-card .hint{font-size:.8rem;color:var(--muted);margin-bottom:14px}
.calc__fields{display:grid;gap:12px}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-size:.82rem;font-weight:800;color:#33475b}
.field input,.field select,.field textarea{
  width:100%;font:inherit;font-size:.95rem;color:var(--ink);
  padding:12px 13px;border:1.5px solid var(--line-strong);border-radius:var(--radius-sm);
  background:#fff;appearance:none;
}
.field textarea{min-height:92px;resize:vertical}
.field select{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23334b60' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  padding-right:38px;
}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--navy);outline:none;box-shadow:0 0 0 3px rgba(18,58,90,.12)}
.field .unit{font-size:.75rem;color:var(--muted)}
.field--check{flex-direction:row;align-items:flex-start;gap:8px}
.field--check input{width:18px;height:18px;margin-top:3px;flex:0 0 18px}
.field--check label{font-weight:600;font-size:.82rem;color:var(--muted);line-height:1.5}
/* 스팸 방지용 허니팟 필드 — 화면에는 보이지 않지만 자동입력 봇은 채운다 */
.hp-field{position:absolute!important;left:-9999px!important;top:auto;width:1px;height:1px;overflow:hidden}

/* ---------- 견적 신청 완료 카드 ---------- */
.quote-done{text-align:center;border-color:#bfe6e7;background:linear-gradient(180deg,#f4fcfc,#fff)}
.quote-done__badge{
  width:56px;height:56px;margin:4px auto 12px;border-radius:50%;
  display:grid;place-items:center;font-size:1.7rem;font-weight:900;color:#fff;
  background:linear-gradient(135deg,var(--accent),#12a9a0);
  box-shadow:0 10px 24px rgba(14,138,143,.28);
}
.quote-done h3{margin-bottom:6px}
.quote-done__lead{font-size:.92rem;color:var(--muted);margin-bottom:16px}
.quote-done__summary{
  margin:0 0 18px;padding:14px 16px;border-radius:14px;background:var(--bg-soft);
  text-align:left;font-size:.86rem;
}
.quote-done__summary>div{display:flex;gap:10px;padding:3px 0}
.quote-done__summary dt{flex:0 0 74px;color:var(--muted);font-weight:700;margin:0}
.quote-done__summary dd{margin:0;font-weight:700;color:var(--ink);min-width:0;overflow-wrap:anywhere}

/* ---------- 견적 신청 실패 안내(문자 fallback) ---------- */
.quote-fallback{
  margin-top:14px;padding:14px 16px;border-radius:14px;
  background:#fff8e6;border:1px solid #f0d79a;
}
.quote-fallback__title{margin:0 0 4px;font-weight:800;color:#8a6a00;font-size:.92rem}
.quote-fallback__text{margin:0 0 12px;font-size:.83rem;color:#6b5a26;line-height:1.6}
.quote-fallback .btn-row{margin-top:0}

/* 전송 중 버튼 */
form[data-quote] button[type="submit"][disabled]{opacity:.72;cursor:progress}
form[data-quote].is-busy{position:relative}

.calc__result{
  margin-top:16px;padding:16px;border-radius:16px;
  background:linear-gradient(135deg,#0f3350,#1c4f74);color:#fff;
}
.calc__result .label{font-size:.78rem;color:#bfd9ea;font-weight:700}
.calc__amount{font-size:clamp(1.5rem,7vw,2rem);font-weight:900;letter-spacing:-.03em;margin:2px 0 4px}
.calc__amount small{font-size:.5em;font-weight:700;margin-left:2px}
.calc__note{font-size:.75rem;color:#c9dfee;line-height:1.5;margin:0}
.calc__result--alt{background:linear-gradient(135deg,#0f3350,#26607f)}
.calc__range{display:flex;gap:16px;flex-wrap:wrap;margin-top:10px;font-size:.8rem;color:#d9ecf7}

/* ---------- price table ---------- */
.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:16px;background:#fff;-webkit-overflow-scrolling:touch}
table{width:100%;border-collapse:collapse;font-size:.92rem;min-width:520px}
th,td{padding:13px 14px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
thead th{background:var(--bg-tint);color:var(--navy-deep);font-size:.82rem;font-weight:800;white-space:nowrap}
tbody tr:last-child td{border-bottom:0}
td.price{font-weight:800;color:var(--navy);white-space:nowrap}
.tbl-note{font-size:.78rem;color:var(--muted);margin:10px 0 0}

/* ---------- cards ---------- */
.cards{display:grid;gap:14px}
.card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:20px;box-shadow:0 4px 14px rgba(16,45,70,.04);
}
.card h3{margin-bottom:6px;font-size:1.05rem}
.card p{font-size:.9rem;color:var(--muted);margin:0}
.card__ico{
  width:40px;height:40px;border-radius:12px;background:var(--bg-tint);
  display:grid;place-items:center;margin-bottom:12px;color:var(--navy);font-weight:900;
}
.card--free{border-color:#bfe6e7;background:linear-gradient(180deg,#f4fcfc,#fff)}
.card--free .card__ico{background:var(--accent-soft);color:#0b6b6f}
.tag{
  display:inline-block;font-size:.7rem;font-weight:900;padding:3px 9px;border-radius:999px;
  background:var(--accent-soft);color:#0b6b6f;margin-left:6px;vertical-align:middle;
}
.tag--sun{background:#fff5cc;color:#8a6a00}

/* ---------- mesh compare ---------- */
.mesh{display:grid;gap:12px}
.mesh__item{
  display:grid;grid-template-columns:56px 1fr;gap:14px;
  background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;
}
.mesh__swatch{
  width:56px;height:56px;border-radius:14px;border:1px solid var(--line);
  background-size:cover;background-position:center;
  display:grid;place-items:center;font-size:.62rem;font-weight:900;color:#fff;text-align:center;line-height:1.1;
}
.mesh__item h3{font-size:1rem;margin-bottom:2px}
.mesh__item p{font-size:.85rem;color:var(--muted);margin:0}
.mesh__meta{font-size:.74rem;color:var(--accent);font-weight:800;margin-top:6px}

/* ---------- why / timeline ---------- */
.timeline{display:grid;gap:14px;counter-reset:step}
.timeline__item{
  position:relative;background:#fff;border:1px solid var(--line);border-radius:16px;
  padding:18px 18px 18px 58px;
}
.timeline__item::before{
  counter-increment:step;content:counter(step);
  position:absolute;left:16px;top:18px;width:28px;height:28px;border-radius:50%;
  background:var(--navy);color:#fff;font-weight:900;font-size:.82rem;
  display:grid;place-items:center;
}
.timeline__item h3{font-size:1rem;margin-bottom:4px}
.timeline__item p{font-size:.88rem;color:var(--muted);margin:0}

/* ---------- gallery ---------- */
.gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.gallery--home{grid-template-columns:repeat(3,1fr)}
.gallery figure{margin:0;position:relative;border-radius:14px;overflow:hidden;background:var(--bg-tint)}
.gallery img{width:100%;height:100%;aspect-ratio:1;object-fit:cover;transition:transform .25s ease}
.gallery button{
  display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in;line-height:0;
}
.gallery button:hover img{transform:scale(1.04)}
.gallery figcaption{
  position:absolute;left:0;right:0;bottom:0;padding:22px 10px 8px;
  background:linear-gradient(transparent,rgba(9,30,48,.78));
  color:#fff;font-size:.72rem;font-weight:700;line-height:1.3;
}

.lightbox{
  position:fixed;inset:0;z-index:200;background:rgba(6,20,32,.94);
  display:none;align-items:center;justify-content:center;padding:18px;
}
.lightbox[open],.lightbox.is-open{display:flex}
.lightbox img{max-width:100%;max-height:82vh;border-radius:12px}
.lightbox__close{
  position:absolute;top:14px;right:14px;width:44px;height:44px;border-radius:50%;
  border:0;background:rgba(255,255,255,.16);color:#fff;font-size:1.4rem;cursor:pointer;
}
.lightbox__caption{position:absolute;bottom:20px;left:0;right:0;text-align:center;color:#dbe9f3;font-size:.85rem}

/* ---------- areas ---------- */
.areas{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.area-card{
  display:block;background:#fff;border:1px solid var(--line);border-radius:14px;
  padding:14px;text-decoration:none;transition:border-color .15s,box-shadow .15s;
}
.area-card:hover{border-color:var(--navy);box-shadow:var(--shadow);text-decoration:none}
.area-card b{display:block;font-size:1rem;color:var(--navy-deep)}
.area-card span{display:block;font-size:.72rem;color:var(--muted);margin-top:2px}

.dong-list{display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:0;list-style:none}
.dong-list li{margin:0}
.dong-list a{
  display:inline-block;background:#fff;border:1px solid var(--line-strong);
  border-radius:999px;padding:8px 14px;font-size:.86rem;font-weight:700;color:#31465c;
}
.dong-list a:hover{border-color:var(--navy);color:var(--navy);background:var(--bg-tint);text-decoration:none}

/* ---------- faq ---------- */
.faq{display:grid;gap:10px}
.faq details{
  background:#fff;border:1px solid var(--line);border-radius:14px;padding:0;
  overflow:hidden;
}
.faq summary{
  cursor:pointer;padding:16px 46px 16px 18px;font-weight:800;font-size:.96rem;
  color:var(--navy-deep);position:relative;list-style:none;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:"+";position:absolute;right:16px;top:50%;transform:translateY(-50%);
  font-size:1.25rem;font-weight:400;color:var(--navy);line-height:1;
}
.faq details[open] summary::after{content:"−"}
.faq .a{padding:0 18px 18px;font-size:.9rem;color:#3a4c5e}
.faq .a p:last-child{margin-bottom:0}

/* ---------- CTA band ---------- */
.cta-band{
  background:linear-gradient(135deg,#0d3050,#1b4f74 62%,#20618b);
  color:#fff;padding:44px 0;position:relative;overflow:hidden;
}
.cta-band::after{
  content:"";position:absolute;right:-60px;top:-60px;width:260px;height:260px;
  border-radius:50%;background:rgba(255,255,255,.05);
}
.cta-band h2{color:#fff;margin-bottom:8px}
.cta-band p{color:#c6dcec;margin-bottom:0}
.cta-band .btn-row{margin-top:20px}
.cta-band .btn--ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.5)}
.cta-band .btn--ghost:hover{background:rgba(255,255,255,.1);color:#fff}

/* ---------- page hero (sub pages) ---------- */
.page-hero{
  background:linear-gradient(180deg,#eef6fb,#fafdff);
  border-bottom:1px solid var(--line);
  padding:22px 0 30px;
}
.crumb{font-size:.76rem;color:var(--muted);margin-bottom:12px;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.crumb a{color:var(--muted);text-decoration:none}
.crumb a:hover{color:var(--navy);text-decoration:underline}
.crumb span{color:#a9b6c3}
.page-hero h1{margin-bottom:10px}
.page-hero .lead{color:#3a4c5e;margin:0;max-width:720px}
.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;padding:0;list-style:none}
.chips li{margin:0}
.chip{
  display:inline-block;background:#fff;border:1px solid var(--line-strong);border-radius:999px;
  padding:6px 12px;font-size:.78rem;font-weight:800;color:#31465c;
}

/* ---------- prose ---------- */
.prose{max-width:820px}
.prose h2{margin-top:1.6em}
.prose h2:first-child{margin-top:0}
.prose ul{padding-left:1.15em}
.prose li{margin:.35em 0}
.prose .lead{font-size:1.02rem;color:#3a4c5e}

/* ---------- notice ---------- */
.notice{
  border-left:4px solid var(--accent);background:var(--bg-soft);
  border-radius:0 12px 12px 0;padding:14px 16px;font-size:.86rem;color:#40536b;
}
.notice strong{color:var(--navy-deep)}

/* ---------- footer ---------- */
.footer{background:#0e2c46;color:#b9cede;padding:36px 0 28px;font-size:.85rem}
.footer a{color:#d7e6f1;text-decoration:none}
.footer a:hover{text-decoration:underline}
.footer__grid{display:grid;gap:24px}
.footer__brand{display:flex;gap:12px;align-items:flex-start}
.footer__brand img{width:44px;height:44px;border-radius:10px;background:#fff}
.footer__brand strong{display:block;color:#fff;font-size:1rem}
.footer__brand span{font-size:.76rem;color:#8fa9bd}
.footer h4{color:#fff;font-size:.85rem;margin-bottom:10px;letter-spacing:0}
.footer ul{list-style:none;padding:0;margin:0;display:grid;gap:7px}
.footer ul a{font-size:.82rem}
.footer__info{font-style:normal;line-height:1.8;font-size:.78rem;color:#9db6c8}
.footer__bottom{
  border-top:1px solid rgba(255,255,255,.12);margin-top:26px;padding-top:16px;
  font-size:.72rem;color:#7f9bb0;display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;
}

/* ---------- bottom action bar (mobile) ---------- */
.bottom-bar{
  position:fixed;left:0;right:0;bottom:0;z-index:70;
  background:rgba(255,255,255,.97);border-top:1px solid var(--line);
  box-shadow:0 -6px 20px rgba(16,45,70,.08);
  padding:8px 10px calc(8px + env(safe-area-inset-bottom));
  display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;
}
.bottom-bar a{
  display:flex;flex-direction:column;align-items:center;gap:3px;
  padding:9px 6px;border-radius:12px;font-size:.74rem;font-weight:800;
  text-decoration:none;color:var(--navy-deep);background:var(--bg-soft);
}
.bottom-bar a:first-child{background:var(--navy);color:#fff}
.bottom-bar button{
  display:flex;flex-direction:column;align-items:center;gap:3px;
  padding:9px 6px;border-radius:12px;font:inherit;font-size:.74rem;font-weight:800;
  border:0;background:var(--bg-soft);color:var(--navy-deep);cursor:pointer;font-family:inherit;
}
.bottom-bar a:nth-child(2){background:var(--sun);color:#231f0a}
.bottom-bar a:hover{text-decoration:none}
.bottom-bar .ico{font-size:1rem;line-height:1}
body{padding-bottom:76px}

/* ---------- toast ---------- */
.toast{
  position:fixed;left:50%;bottom:96px;transform:translate(-50%,14px);
  background:rgba(14,44,70,.96);color:#fff;padding:12px 18px;border-radius:999px;
  font-size:.85rem;font-weight:700;opacity:0;pointer-events:none;transition:.2s ease;z-index:300;
  max-width:88vw;text-align:center;
}
.toast.is-show{opacity:1;transform:translate(-50%,0)}

/* ---------- utility ---------- */
.mt0{margin-top:0}
.mb0{margin-bottom:0}
.muted{color:var(--muted)}
.center{text-align:center}
.stack-sm{display:grid;gap:10px}
.two-col{display:grid;gap:24px}
.stat-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0 0}
.stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 10px;text-align:center}
.stat b{display:block;font-size:1.15rem;color:var(--navy-deep);line-height:1.2}
.stat span{display:block;font-size:.7rem;color:var(--muted);margin-top:4px}
.stat b .nb{display:inline;font-size:inherit;color:inherit;margin-top:0;white-space:nowrap}
.quote-strip{
  display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;
  background:var(--bg-tint);border-radius:14px;padding:14px 16px;margin:22px 0;
}
.quote-strip p{margin:0;font-size:.9rem;color:#33475b}
.quote-strip .btn{flex:0 0 auto}

/* ---------- responsive ---------- */
@media (max-width:430px){
  .header__inner{gap:8px;padding:0 12px}
  .brand img{width:32px;height:32px;border-radius:8px}
  .brand__name{font-size:.94rem}
  .brand__tag{display:none}
  .header__tel{font-size:.76rem;padding:8px 10px;gap:4px}
  .nav-toggle{width:38px;height:38px}
}

@media (max-width:559px){
  .table-wrap{border:0;background:transparent;overflow:visible;border-radius:0}
  .table-wrap table{min-width:0;font-size:.95rem}
  .table-wrap thead{display:none}
  .table-wrap tbody tr{
    display:block;background:#fff;border:1px solid var(--line);
    border-radius:14px;padding:14px 16px;margin-bottom:10px;
  }
  .table-wrap tbody td{display:block;border:0;padding:0 0 6px}
  .table-wrap tbody td:first-child{font-weight:800;color:var(--navy-deep);font-size:1rem;line-height:1.4}
  .table-wrap tbody td.price{font-size:1.08rem;color:var(--navy);padding-bottom:6px}
  .table-wrap tbody td:last-child{font-size:.86rem;color:var(--muted);padding-bottom:0;line-height:1.55}
}

@media (min-width:560px){
  .cards{grid-template-columns:repeat(2,1fr)}
  .gallery{grid-template-columns:repeat(3,1fr)}
  .areas{grid-template-columns:repeat(3,1fr)}
  .mesh{grid-template-columns:repeat(2,1fr)}
  .trust__grid{grid-template-columns:repeat(4,1fr)}
  .trust__item{border-bottom:0}
  .trust__item:nth-child(2n){border-right:1px solid var(--line)}
  .trust__item:last-child{border-right:0}
}

@media (min-width:820px){
  body{padding-bottom:0;font-size:17px}
  .header__inner{padding:0 24px;height:74px}
  :root{--header-h:74px}
  .brand img{width:42px;height:42px}
  .brand__name{font-size:1.08rem}
  .brand__tag{font-size:.66rem}
  .nav{display:flex;align-items:center;gap:2px;margin-left:18px}
  .nav-toggle{display:none}
  .nav--open{position:static;display:flex;background:none;border:0;box-shadow:none;padding:0;max-height:none}
  .nav--open a{display:inline-block;padding:8px 10px;border:0;font-size:.92rem}
  .hero{padding:48px 0 56px}
  .hero__grid{grid-template-columns:1.05fr .95fr;align-items:center;gap:40px}
  .hero__photo img{aspect-ratio:5/4}
  .section{padding:64px 0}
  .cards{grid-template-columns:repeat(3,1fr)}
  .gallery{grid-template-columns:repeat(3,1fr)}
  .areas{grid-template-columns:repeat(3,1fr)}
  .mesh{grid-template-columns:repeat(2,1fr)}
  .timeline{grid-template-columns:repeat(2,1fr)}
  .two-col{grid-template-columns:1.1fr .9fr;gap:36px;align-items:start}
  .quote-card{padding:26px}
  .calc__fields{grid-template-columns:1fr 1fr}
  .calc__fields .field--full{grid-column:1/-1}
  .bottom-bar{display:none}
  .footer__grid{grid-template-columns:1.2fr 1fr 1fr 1.2fr}
  .page-hero{padding:32px 0 44px}
  .stat-row{grid-template-columns:repeat(3,1fr)}
  .stat b{font-size:1.3rem}
}

@media (min-width:1024px){
  .hero__grid{gap:56px}
  .gallery{grid-template-columns:repeat(5,1fr)}
  .gallery--home{grid-template-columns:repeat(3,1fr)}
  .gallery--home img{aspect-ratio:4/3}
  .mesh{grid-template-columns:repeat(2,1fr)}
  .mesh__item{grid-template-columns:64px 1fr}
}

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

@media print{
  .header,.bottom-bar,.cta-band,.quote-card,.toast{display:none!important}
  body{padding:0}
}
