/* =========================================================================
 * ton_page.css — 5톤·6톤·7.5톤·10톤 보관이사 요금 페이지 공용 모양
 * PC·휴대폰 겸용: 화면이 좁으면(760px 미만) 자동으로 한 줄씩 쌓임
 * 색 이름표(변수)만 바꾸면 4개 페이지 색이 한 번에 바뀜
 * ========================================================================= */
:root {
    --ink: #0f172a;
    --sub: #64748b;
    --line: #e2e8f0;
    --soft: #f8fafc;
    --bg: #f1f5f9;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-soft: #eff6ff;
    --red: #dc2626;
    --amber: #fcd34d;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    font-family: 'Pretendard Variable', Pretendard, -apple-system,
                 BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background: var(--bg);
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* ---------- PC 헤더 (휴대폰에서는 m_shell 메뉴바가 대신) ---------- */
.pc-head { background: #fff; border-bottom: 1px solid var(--line); }
.pc-head-in { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.pc-brand { font-size: 20px; font-weight: 900; }
.pc-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 700; }
.pc-nav a { color: #475569; }
.pc-nav a:hover { color: var(--ink); }
.pc-nav .pc-cta { background: var(--ink); color: #fff; padding: 9px 14px; border-radius: 10px; }
body.has-m-shell .pc-head { display: none; }

main.wrap { padding-top: 20px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 16px; }

/* ---------- 톤수 탭 ---------- */
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tab {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    min-height: 56px; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.tab b { font-size: 15px; font-weight: 900; }
.tab small { font-size: 12px; color: var(--sub); }
.tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab.on small { color: var(--amber); }

/* ---------- 핵심 요금 ---------- */
.hero { background: var(--ink); color: #fff; border-radius: 22px; padding: 26px 24px; }
.kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--amber); }
.hero h1 { margin: 0; font-size: 30px; line-height: 1.25; font-weight: 900; }
.hero h1 em { font-style: normal; color: var(--amber); }
.lead { margin: 10px 0 18px; font-size: 14px; color: #cbd5e1; }
.lead b { color: #fff; }
.split { display: flex; align-items: stretch; gap: 8px; }
.split .cell {
    flex: 1; background: #1e293b; border-radius: 14px; padding: 12px 14px;
    display: flex; flex-direction: column; gap: 2px;
}
.split small { font-size: 12px; color: #94a3b8; }
.split strong { font-size: 20px; font-weight: 900; }
.split span { font-size: 12px; color: #cbd5e1; }
.split .daily strong { color: #fca5a5; }
.plus { display: flex; align-items: center; font-size: 20px; font-weight: 900; color: #64748b; }

/* ---------- 카드 ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.card h2 { margin: 0 0 12px; font-size: 17px; font-weight: 900; }
.card h2 small { font-size: 12px; font-weight: 500; color: var(--sub); }
.note { margin: 10px 0 0; font-size: 12px; color: var(--sub); }

.facts { list-style: none; margin: 0; padding: 0; }
.facts li {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px;
}
.facts li span { color: var(--sub); flex: none; }
.facts li b { text-align: right; }

.calc-label { font-size: 13px; font-weight: 700; color: var(--sub); }
.calc-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.calc-row input {
    width: 110px; height: 44px; border: 1.5px solid var(--line); border-radius: 12px;
    padding: 0 12px; font: inherit; font-size: 16px; font-weight: 700;
}
.calc-row input:focus { outline: none; border-color: var(--blue); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.quick button {
    height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line);
    background: var(--soft); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.quick button:hover { background: var(--blue-soft); border-color: var(--blue); }
.calc-out { margin: 0; }
.calc-out div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.calc-out dt { color: var(--sub); }
.calc-out dd { margin: 0; font-weight: 700; }
.calc-out .sum { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; }
.calc-out .sum dt { color: var(--ink); font-weight: 900; }
.calc-out .sum dd { color: var(--blue-dark); font-size: 20px; font-weight: 900; }

.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 26px; font-size: 14px; }
.checks li::before {
    content: ''; position: absolute; left: 4px; top: 5px; width: 12px; height: 7px;
    border-left: 2.5px solid #16a34a; border-bottom: 2.5px solid #16a34a;
    transform: rotate(-45deg);
}
.compare {
    margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--blue-soft);
    display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px;
}
.compare strong { font-size: 18px; color: var(--blue-dark); font-weight: 900; white-space: nowrap; }

.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #f1f5f9; }
thead th { background: var(--soft); font-size: 13px; color: var(--sub); }
thead th:last-child { text-align: right; }
tbody th { font-weight: 700; }
tbody td { text-align: right; font-weight: 700; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }

/* ---------- 다음 행동 ---------- */
.cta-box { background: #fff; border: 2px solid var(--blue); border-radius: 22px; padding: 22px; text-align: center; }
.cta-box h2 { margin: 0 0 6px; font-size: 20px; font-weight: 900; }
.cta-box p { margin: 0 0 16px; font-size: 14px; color: var(--sub); }
.cta-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.btn {
    min-height: 50px; padding: 0 18px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700;
}
.btn.ai { background: var(--blue); color: #fff; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.line { border: 1.5px solid var(--ink); }

.foot { padding: 24px 0 32px; font-size: 12px; color: var(--sub); text-align: center; line-height: 1.7; }


/* ---------- [추가] 핵심 요금 + 영상 2칸 ---------- */
.hero-grid { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: center; }
.hero-grid.tall { grid-template-columns: 1fr 240px; }        /* 세로 영상(5·6톤) */
.hero-text .split { flex-wrap: wrap; }
.hero-media { margin: 0; }
.hero-media video {
    width: 100%; display: block; border-radius: 16px; background: #1e293b;
    aspect-ratio: 16 / 9; object-fit: cover;
}
.hero-grid.tall .hero-media video { aspect-ratio: 9 / 16; max-height: 420px; }
.hero-media figcaption { margin-top: 6px; font-size: 12px; color: #94a3b8; text-align: center; }

/* ---------- [추가] 현장 사진·영상 ---------- */
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.m-item { margin: 0; }
.m-item img, .m-item video {
    width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block;
    border-radius: 14px; background: var(--soft);
}
.m-item figcaption { margin-top: 8px; font-size: 12px; color: var(--sub); line-height: 1.45; }
.m-item figcaption b { display: block; font-size: 14px; color: var(--ink); }

/* ---------- [추가] 실제 작업 후기 ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.blog-card {
    display: flex; flex-direction: column; gap: 8px;
    border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff;
}
.blog-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--soft); }
.blog-card span {
    padding: 0 12px 12px; font-size: 13px; font-weight: 700; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
a.blog-card:hover { border-color: var(--blue); }
.blog-grid > .note { grid-column: 1 / -1; }

@media (max-width: 900px) {
    .media-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .hero-grid, .hero-grid.tall { grid-template-columns: 1fr; }
    .hero-grid.tall .hero-media video { max-height: 360px; aspect-ratio: 9 / 16; width: auto;
                                        margin: 0 auto; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .m-item figcaption { font-size: 11px; }
}

/* ---------- 휴대폰 (760px 미만) ---------- */
@media (max-width: 760px) {
    .wrap { padding: 0 14px; }
    main.wrap { padding-top: 14px; gap: 12px; }
    .hero { padding: 20px 18px; border-radius: 18px; }
    .hero h1 { font-size: 24px; }
    .split { flex-direction: column; }
    .plus { justify-content: center; font-size: 16px; line-height: 1; }
    .split .cell { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; }
    .split .cell span { width: 100%; }
    .grid2 { grid-template-columns: 1fr; gap: 12px; }
    .card { padding: 16px; border-radius: 16px; }
    .cta-row .btn { flex: 1 1 100%; }
    .foot { padding-bottom: 20px; }
}
