/* ═══════════ 서브페이지 공용 (services / packages / quote) ═══════════ */

.page-hero {
  padding: clamp(3.5rem, 2.5rem + 4vw, 6.5rem) 24px clamp(2.5rem, 2rem + 2vw, 4rem);
  background:
    radial-gradient(600px 320px at 90% 0%, var(--brand-100), transparent 65%),
    var(--bg);
}
.page-hero h1 {
  font-size: var(--text-h2);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.page-hero .section-sub b { color: var(--brand-600); }
.page-hero h1 em { font-style: normal; color: var(--brand); }

/* 페이지 히어로 바로 다음 섹션은 위 여백을 줄인다 */
.page-hero + .section,
.page-hero + .strip + .section { padding-top: 1.5rem; }

/* CTA 밴드 */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 4vw, 40px);
}
.cta-band h2 {
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.cta-band p {
  margin-top: 8px;
  font-size: var(--text-sm);
  color: var(--ink-sub);
}
.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* 패키지 카드: 일 트래픽 볼륨 표시 */
.package-volume {
  margin-top: 14px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--brand-600);
  background: var(--brand-50);
  border-radius: 10px;
  padding: 9px 14px;
}
.package-volume b { font-weight: 900; }
.is-highlight .package-volume {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

/* 견적 계산기: 상품 그룹 구분 */
.calc-group + .calc-group {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 2px dashed var(--line);
}
.calc-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.0625rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.calc-group-no {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 900;
}
.calc-group-title small {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-mute);
  width: 100%;
  padding-left: 36px;
}
.calc-period {
  margin: 10px 0 0;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--brand-600);
  background: var(--brand-50);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
}
.calc-group .calc-items { margin-top: 16px; }
.calc-subitem { margin-left: 18px; background: var(--brand-50); }

/* 블로그 예상 작업일 달력 */
.blog-cal {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
}
.blog-cal-title {
  font-size: var(--text-sm);
  font-weight: 900;
  margin-bottom: 12px;
}
.blog-cal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}
.bcal-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  background: #fff;
}
.bcal-date {
  display: block;
  background: var(--brand);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 6px 4px;
  white-space: nowrap;
}
.bcal-card b {
  display: block;
  padding: 8px 4px;
  font-size: var(--text-sm);
  font-weight: 900;
}
.bcal-more .bcal-date { background: var(--ink-mute); }
.bcal-summary {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--brand-700);
  background: var(--brand-50);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
}
.blog-cal-hint {
  margin-top: 10px;
  font-size: var(--text-xs);
  color: var(--ink-mute);
}

/* 견적 계산기: 최소 볼륨 경고 */
.calc-warn {
  margin-top: 14px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: #b25309;
  background: #fdf3e7;
  border: 1px solid #f5ddc0;
  border-radius: 10px;
  padding: 10px 14px;
}

/* 서비스 카드 아이콘 (Lucide) */
.service-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-50);
  color: var(--brand);
  margin-bottom: 4px;
}
.service-icon svg { width: 21px; height: 21px; }

/* 본문 링크 */
.fine-print a {
  color: var(--brand-600);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ═══════════ 멤버십 예고 밴드 (홈·도구·가이드 공용) ═══════════ */
.member-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface);
  border: 1.5px solid var(--brand-300);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 4vw, 40px);
}
.member-copy { max-width: 640px; }
.member-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brand-600);
  background: var(--brand-100);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 12px;
}
.member-band h2 {
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.65rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.member-band p { margin-top: 10px; font-size: var(--text-sm); color: var(--ink-sub); }
.member-band .btn { flex-shrink: 0; }

/* 밝은 아웃라인 버튼 (어두운 배경용) */
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); }

/* ═══════════ 추천 조합 카드 (services) ═══════════ */
.combo-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.combo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal) ease;
}
.combo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.combo-tag {
  align-self: flex-start;
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--brand-600);
  background: var(--brand-50);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
}
.combo-card h3 { font-size: var(--text-h3); font-weight: 800; letter-spacing: -0.01em; }
.combo-card > p { margin-top: 8px; font-size: var(--text-sm); color: var(--ink-sub); flex: 1; }
.combo-items {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 8px;
}
.combo-items li {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
}
.combo-items .label { color: var(--ink-sub); }
.combo-items .amount { font-weight: 800; }
.combo-cta { margin-top: 18px; width: 100%; padding: 12px; border-radius: 12px; }

/* ═══════════ 패키지 비교 테이블 (packages) ═══════════ */
.compare-wrap { margin-top: 44px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: var(--text-sm);
}
.compare th, .compare td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.compare thead th { background: var(--bg); font-weight: 800; }
.compare thead th.is-highlight { background: var(--brand); color: #fff; }
.compare tbody th {
  text-align: left;
  font-weight: 700;
  color: var(--ink-sub);
  background: var(--bg);
  white-space: nowrap;
}
.compare td.is-highlight { background: var(--brand-50); font-weight: 700; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .price { font-weight: 900; color: var(--brand-600); }
.compare .none { color: var(--ink-mute); }

/* ═══════════ 가이드 페이지 ═══════════ */
.guide-list { margin-top: 44px; display: grid; gap: 12px; }
.guide-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--duration-fast) ease;
}
.guide-item[open] { border-color: var(--brand-300); }
.guide-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.guide-item summary::-webkit-details-marker { display: none; }
.guide-no {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand-100);
  color: var(--brand-600);
  font-weight: 900;
}
.guide-head { flex: 1; }
.guide-head b { display: block; font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.01em; }
.guide-head span { font-size: var(--text-xs); color: var(--ink-mute); font-weight: 600; }
.guide-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--ink-mute);
  transition: transform var(--duration-normal) var(--ease-out-expo);
}
.guide-item[open] summary::after { transform: rotate(45deg); color: var(--brand); }
.guide-body { padding: 0 22px 22px; }
.guide-body p { font-size: var(--text-sm); color: var(--ink-sub); }
.guide-steps { margin-top: 14px; display: grid; gap: 10px; }
.guide-steps li {
  position: relative;
  padding: 12px 14px 12px 38px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}
.guide-steps li::before {
  content: '✓';
  position: absolute;
  left: 14px;
  color: var(--brand);
  font-weight: 900;
}
.guide-steps b { font-weight: 800; }
.guide-link {
  display: inline-block;
  margin-top: 14px;
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--brand-600);
}
.guide-link:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1023px) {
  .combo-grid { grid-template-columns: 1fr; }
}

/* ═══════════ 소식(공지) 페이지 ═══════════ */
.news-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.news-chip {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-sub);
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
}
.news-chip:hover { border-color: var(--brand-300); color: var(--brand-600); }
.news-chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

.news-list { display: grid; gap: 12px; }
.news-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  transition: transform var(--duration-normal) var(--ease-out-expo),
    box-shadow var(--duration-normal) ease, border-color var(--duration-normal) ease;
}
.news-card:hover { transform: translateY(-3px); border-color: var(--brand-300); box-shadow: var(--shadow-card); }
.news-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.news-card-head time { margin-left: auto; font-size: var(--text-xs); color: var(--ink-mute); font-weight: 600; }
.news-card > b { display: block; font-size: 1.125rem; font-weight: 800; letter-spacing: -0.01em; }
.news-card > p { margin-top: 6px; font-size: var(--text-sm); color: var(--ink-sub); }
/* .btn의 display가 UA [hidden] 규칙을 이기므로 명시적으로 숨긴다 */
#writeBtn[hidden] { display: none; }

.news-empty { color: var(--ink-mute); font-size: var(--text-sm); padding: 32px 0; text-align: center; }

.news-badge {
  font-size: 0.6875rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 11px;
  background: var(--brand-100);
  color: var(--brand-600);
}
.news-badge-소식 { background: #e7f4ec; color: #1b7a3d; }
.news-badge-팁 { background: #fdf3e7; color: #b25309; }
.news-pin {
  font-size: 0.6875rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 11px;
  background: var(--ink);
  color: #fff;
}

/* 상세 뷰 */
.news-detail .news-back {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--brand-600);
  margin-bottom: 24px;
}
.news-detail-head { display: flex; align-items: center; gap: 10px; }
.news-detail-head time { font-size: var(--text-sm); color: var(--ink-mute); font-weight: 600; }
.news-detail h1 {
  margin-top: 14px;
  font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.25rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.03em;
}
.news-body { margin-top: 28px; display: grid; gap: 18px; }
.news-body p { font-size: var(--text-base); line-height: 1.85; color: var(--ink-sub); }
.news-detail-foot {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.news-detail-foot .btn { padding: 13px 24px; border-radius: 12px; }

/* ═══════════ 커뮤니티 게시판 ═══════════ */
.bd-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.bd-toolbar .news-filter { margin-bottom: 0; }
.bd-toolbar .btn { padding: 10px 22px; border-radius: 11px; flex-shrink: 0; }

.bd-badge-공지 { background: #fdeef0; color: var(--up); }
.bd-badge-정보 { background: var(--brand-100); color: var(--brand-600); }
.bd-badge-노하우 { background: #e7f4ec; color: #1b7a3d; }

.bd-write-title {
  margin-top: 20px;
  font-size: var(--text-h2);
  font-weight: 900;
  letter-spacing: -0.03em;
}
.bd-form { margin-top: 24px; display: grid; gap: 18px; }
.bd-field { display: grid; gap: 8px; }
.bd-field > span { font-size: var(--text-sm); font-weight: 800; }
.bd-field input,
.bd-field select,
.bd-field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--text-base);
  padding: 13px 15px;
}
.bd-field textarea { resize: vertical; line-height: 1.7; }
.bd-field input:focus, .bd-field select:focus, .bd-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-100);
}
.bd-form-actions { display: flex; gap: 12px; }

.bd-author { font-size: var(--text-sm); font-weight: 800; }
.bd-post-actions { margin-top: 20px; display: flex; justify-content: flex-end; }
.bd-delete {
  border: 0;
  background: transparent;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--ink-mute);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.bd-delete:hover { color: var(--up); }

.bd-comments {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.bd-comments-title { font-size: var(--text-h3); font-weight: 900; margin-bottom: 16px; }
.bd-comments-title span { color: var(--brand-600); }
.bd-comment {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 10px;
}
.bd-comment-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: var(--text-xs);
}
.bd-comment-head b { font-weight: 800; font-size: var(--text-sm); }
.bd-comment-head time { color: var(--ink-mute); }
.bd-comment-head .bd-delete { margin-left: auto; }
.bd-comment p { font-size: var(--text-sm); color: var(--ink-sub); line-height: 1.7; }

.bd-comment-form { display: flex; gap: 10px; margin-top: 16px; align-items: stretch; }
.bd-comment-form textarea {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: var(--text-sm);
  padding: 12px 14px;
  resize: vertical;
}
.bd-comment-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.bd-comment-form .btn { border-radius: 12px; padding: 0 22px; }
.bd-login-ask {
  margin-top: 16px;
  font-size: var(--text-sm);
  color: var(--ink-sub);
  background: var(--brand-50);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.bd-login-ask a { color: var(--brand-600); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 767px) {
  .bd-toolbar { flex-direction: column; }
  .bd-toolbar .btn { width: 100%; }
}

/* ═══════════ 홈 공지 배너 ═══════════ */
.notice-bar {
  display: flex;
  justify-content: center;
  background: var(--brand-50);
  border-bottom: 1px solid var(--brand-100);
}
.notice-bar a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 1120px;
  width: 100%;
  padding: 11px 24px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-sub);
}
.notice-bar a:hover .notice-title { text-decoration: underline; text-underline-offset: 3px; }
.notice-bar .news-badge { flex-shrink: 0; }
.notice-bar .notice-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notice-bar .notice-go { margin-left: auto; flex-shrink: 0; color: var(--brand-600); font-weight: 800; }

/* ═══════════ 사용 방법 3단계 (도구 공통) ═══════════ */
.howto {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 880px;
}
.howto li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 13px 15px;
  font-size: var(--text-sm);
  color: var(--ink-sub);
  word-break: keep-all;
}
.howto-no {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--brand-100);
  color: var(--brand-600);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 900;
}
@media (max-width: 767px) {
  .howto { grid-template-columns: 1fr; }
}

/* ═══════════ 로그인 / 마이페이지 ═══════════ */
.nav-auth {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-sub);
  padding: 8px 12px;
  border-radius: 10px;
  transition: color var(--duration-fast) ease, background var(--duration-fast) ease;
}
.nav-auth:hover { color: var(--brand); background: var(--brand-50); }
.nav-admin-link { color: var(--brand-600); font-weight: 800; }

.auth-wrap {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: clamp(3rem, 2rem + 4vw, 6rem) 24px;
  background:
    radial-gradient(600px 320px at 85% 0%, var(--brand-100), transparent 65%),
    var(--bg);
}
.auth-card {
  width: min(100%, 460px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(28px, 5vw, 44px);
}
.auth-card h1 {
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.25rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.03em;
}
.auth-sub { margin-top: 12px; font-size: var(--text-base); color: var(--ink-sub); }

.btn-kakao-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 28px;
  padding: 16px;
  border: 0;
  border-radius: 14px;
  background: var(--kakao);
  color: var(--kakao-ink);
  font-size: 1.0625rem;
  font-weight: 800;
  transition: filter var(--duration-fast) ease, transform var(--duration-fast) ease;
}
.btn-kakao-login:hover { filter: brightness(0.96); }
.btn-kakao-login:active { transform: scale(0.98); }
.btn-kakao-login svg { width: 22px; height: 22px; }

.auth-perks { margin-top: 24px; display: grid; gap: 10px; }
.auth-perks li {
  position: relative;
  padding-left: 24px;
  font-size: var(--text-sm);
  color: var(--ink-sub);
}
.auth-perks li::before { content: '✓'; position: absolute; left: 0; color: var(--brand); font-weight: 900; }
.auth-perks b { color: var(--ink); }
.auth-fine { margin-top: 20px; font-size: var(--text-xs); color: var(--ink-mute); }

.my-info {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
}
.my-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
}
.my-row span { color: var(--ink-mute); font-weight: 600; }
.my-row b { font-weight: 800; }
.my-tier {
  background: var(--brand-100);
  color: var(--brand-600);
  border-radius: 999px;
  padding: 5px 14px;
}
.my-tier[data-tier='member'] { background: var(--brand); color: #fff; }
.my-tier[data-tier='partner'] { background: var(--ink); color: #fff; }
.my-tier-desc { margin-top: 16px; font-size: var(--text-sm); color: var(--ink-sub); }
.my-actions { margin-top: 24px; display: grid; gap: 10px; }
.my-actions .btn { width: 100%; }


/* ═══════════ 견적 계산기 (style.css에서 이전 — 계산기 사용 페이지는 모두 pages.css 로드) ═══════════ */
/* ═══════════ Calculator ═══════════ */
.calc {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: start;
}

.calc-controls {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.calc-days legend {
  font-size: var(--text-sm);
  font-weight: 800;
  margin-bottom: 12px;
}

.seg {
  display: inline-flex;
  background: var(--bg);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.seg-btn {
  border: 0;
  background: transparent;
  padding: 9px 22px;
  border-radius: 9px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink-mute);
  transition: background var(--duration-fast) ease, color var(--duration-fast) ease;
}
.seg-btn.is-active { background: var(--surface); color: var(--brand-600); box-shadow: 0 1px 4px rgba(25,31,40,0.1); }

.calc-items { margin-top: 24px; display: grid; gap: 8px; }

.calc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  background: var(--bg);
}
.calc-item-info { flex: 1; min-width: 0; }
.calc-item-info b { display: block; font-size: var(--text-sm); font-weight: 800; }
.calc-item-info span { font-size: var(--text-xs); color: var(--ink-mute); font-weight: 500; }

.stepper {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.stepper button {
  border: 0;
  background: transparent;
  width: 34px;
  height: 38px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-600);
  transition: background var(--duration-fast) ease;
}
.stepper button:hover { background: var(--brand-50); }
.stepper input {
  width: 64px;
  border: 0;
  text-align: center;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--ink);
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; }

.calc-summary {
  position: sticky;
  top: 84px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 26px;
}
.calc-summary h3 { font-size: var(--text-h3); font-weight: 900; margin-bottom: 16px; }

.calc-lines { display: grid; gap: 10px; min-height: 48px; }
.calc-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--text-sm);
}
.calc-lines .l-name { color: var(--ink-sub); font-weight: 500; }
.calc-lines .l-price { font-weight: 800; }
.calc-empty { color: var(--ink-mute); font-size: var(--text-sm); }

.calc-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}
.calc-total span { font-weight: 700; font-size: var(--text-sm); }
.calc-total small { color: var(--ink-mute); font-weight: 500; }
.calc-total strong {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--brand-600);
}

.calc-hint { margin-top: 12px; font-size: var(--text-xs); color: var(--ink-mute); }

@media (max-width: 1023px) {
  .calc { grid-template-columns: 1fr; }
  .calc-summary { position: static; }
}

@media (max-width: 480px) {
  .calc-item { flex-direction: column; align-items: stretch; gap: 10px; }
  .stepper { justify-content: space-between; }
  .stepper input { flex: 1; width: auto; }
  .seg { width: 100%; }
  .seg-btn { flex: 1; padding-inline: 0; }
}
