:root {
  --brand: #ef3f2f;
  --brand-dark: #d52f22;
  --brand-soft: #fff1ef;
  --ink: #171717;
  --muted: #6b7280;
  --line: #e5e7eb;
  --surface: #ffffff;
  --background: #f6f7f9;
  --success: #137a4f;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.09);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 4% 0%, rgba(239, 63, 47, 0.09), transparent 30%),
    var(--background);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  line-height: 1.5;
}

button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.page-header {
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(239, 63, 47, 0.25);
}

.header-tel {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}

.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 66px 0 34px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 8px 13px;
  border: 1px solid rgba(239, 63, 47, 0.18);
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 13px;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.hero p {
  margin: 18px auto 0;
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  letter-spacing: -0.02em;
}

.layout {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 24px;
  align-items: start;
}

.calculator,
.result-card {
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.calculator { padding: clamp(24px, 4vw, 42px); }

.section + .section {
  margin-top: 34px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.step {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.section-heading h2 {
  margin: 1px 0 2px;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.options {
  display: grid;
  gap: 12px;
}

.options.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.options.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.options.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.option { position: relative; }

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option label {
  min-height: 62px;
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.025em;
  transition: 160ms ease;
  user-select: none;
}

.option label:hover {
  border-color: #babfc8;
  transform: translateY(-1px);
}

.option input:focus-visible + label {
  outline: 3px solid rgba(239, 63, 47, 0.2);
  outline-offset: 2px;
}

.option input:checked + label {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.option input:checked + label::before {
  content: "✓";
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.care-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.care-card label {
  min-height: 152px;
  padding: 20px;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  text-align: left;
}

.care-card input:checked + label::before { display: none; }

.care-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 850;
}

.recommended {
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-size: 11px;
  font-weight: 800;
}

.care-card ul {
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.care-card li + li { margin-top: 4px; }

.select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field-label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.field-label select {
  width: 100%;
  min-height: 58px;
  padding: 0 42px 0 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  background:
    linear-gradient(45deg, transparent 50%, #6b7280 50%) calc(100% - 20px) 25px / 6px 6px no-repeat,
    linear-gradient(135deg, #6b7280 50%, transparent 50%) calc(100% - 14px) 25px / 6px 6px no-repeat,
    #fff;
  font-weight: 800;
  appearance: none;
  outline: none;
  transition: 160ms ease;
}

.field-label select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(239, 63, 47, 0.14);
}

.card-info {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid #fde3df;
  border-radius: var(--radius-md);
  color: #75453f;
  background: #fff8f7;
  font-size: 12px;
  line-height: 1.65;
}

.card-info strong { color: var(--brand-dark); }

.is-hidden { display: none !important; }

.result-wrap {
  position: sticky;
  top: 96px;
}

.result-card { overflow: hidden; }

.result-top {
  padding: 30px;
  color: #fff;
  background: linear-gradient(145deg, #171717 0%, #2c2c2c 100%);
}

.result-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 700;
}

.original-price {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  font-weight: 750;
  text-decoration: line-through;
}

.price-line {
  margin-top: 7px;
  display: flex;
  align-items: baseline;
  gap: 5px;
  letter-spacing: -0.05em;
}

.price {
  font-size: clamp(42px, 6vw, 58px);
  font-weight: 900;
  line-height: 1;
}

.price-unit {
  font-size: 20px;
  font-weight: 800;
}

.result-caption {
  margin-top: 13px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  line-height: 1.55;
}

.result-body { padding: 26px 30px 30px; }

.summary { margin: 0; display: grid; gap: 13px; }

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}

.summary-row dt { color: var(--muted); }
.summary-row dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.price-breakdown {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}

.price-breakdown .summary-row + .summary-row { margin-top: 10px; }

.total-row {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.total-row dt,
.total-row dd { color: var(--ink); font-weight: 900; }

.cta {
  width: 100%;
  min-height: 56px;
  margin-top: 24px;
  border: 0;
  border-radius: var(--radius-md);
  color: #fff;
  background: var(--brand);
  font-weight: 850;
  box-shadow: 0 12px 26px rgba(239, 63, 47, 0.25);
  transition: 160ms ease;
}

.cta:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.notice {
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.benefit-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: #f7f8fa;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.65;
}

.benefit-box strong {
  display: block;
  margin-bottom: 4px;
  color: var(--success);
  font-size: 13px;
}

.footer {
  padding: 0 20px 45px;
  color: #9ca3af;
  text-align: center;
  font-size: 12px;
}

.pulse { animation: pricePulse 240ms ease; }

@keyframes pricePulse {
  0% { opacity: 0.45; transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .result-wrap { position: static; }
  .options.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .header-inner,
  .hero,
  .layout { width: min(100% - 28px, 1180px); }

  .header-inner { min-height: 62px; }
  .header-tel { font-size: 12px; }
  .hero { padding-top: 45px; }
  .calculator { padding: 23px 18px; }
  .options.three,
  .options.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .care-options,
  .select-grid { grid-template-columns: 1fr; }
  .care-card label { min-height: 132px; }
  .result-top,
  .result-body { padding-left: 24px; padding-right: 24px; }
}
