﻿:root {
  --primary: #881337;
  --primary-light: #9f1239;
  --accent: #f43f5e;
  --accent-light: #fecdd3;
  --text: #111827;
  --text-secondary: #4b5563;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --radius: 16px;
  --max-width: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--bg);
}

.container { width: min(var(--max-width), 92%); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo { font-size: 1.25rem; font-weight: 900; color: var(--primary); text-decoration: none; }
.logo span { color: var(--accent); }
.header-tel a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Hero */
.hero {
  padding: 64px 0 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.25; margin-bottom: 16px; }
.hero p { font-size: 1.05rem; color: rgba(255,255,255,0.9); margin-bottom: 24px; }
.hero-img img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  display: block;
  margin: 0 auto;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #1e293b; box-shadow: 0 8px 24px rgba(201,162,39,0.35); }
.btn-secondary { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); }

/* Section common */
.section { padding: 56px 0; }
.bg-light { background: var(--bg-light); }
.section-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--primary);
}
.section-sub { color: var(--text-secondary); margin-bottom: 28px; }

/* Image tiles */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tile {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tile:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,0.12); }
.tile img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}
.tile-body { padding: 18px; }
.tile-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(30,58,95,0.08);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.tile-title { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.tile-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }

/* Horizontal scroll variant */
.card-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 12px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.card-row::-webkit-scrollbar { display: none; }
.card-row .tile { flex: 0 0 220px; scroll-snap-align: start; }

/* Content */
.content h2 { font-size: 1.35rem; color: var(--primary); margin: 32px 0 12px; }
.content h3 { font-size: 1.1rem; color: var(--primary-light); margin: 22px 0 10px; }
.content p { margin-bottom: 14px; color: var(--text-secondary); }
.content ul, .content ol { margin: 0 0 16px 20px; color: var(--text-secondary); }
.content li { margin-bottom: 8px; }
.checklist { list-style: none; margin-left: 0; }
.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 900;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}
.data-table th, .data-table td {
  border: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
}
.data-table th { background: var(--primary); color: #fff; }
.data-table tr:nth-child(even) { background: var(--bg-light); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 700;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
.faq-q::after { content: "+"; font-size: 1.3rem; color: var(--accent); }
.faq-item.active .faq-q::after { content: "−"; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.active .faq-a { max-height: 600px; }
.faq-a-inner { padding: 0 20px 18px; color: var(--text-secondary); }

/* CTA */
.cta-section {
  padding: 56px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #0f172a 100%);
  color: #fff;
  text-align: center;
}
.cta-section h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 12px; }
.cta-section .phone { font-size: 2rem; font-weight: 900; color: var(--accent-light); margin-bottom: 20px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.site-footer {
  background: #0f172a;
  color: rgba(255,255,255,0.7);
  padding: 40px 0 24px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}
.footer-title { color: #fff; font-weight: 800; margin-bottom: 12px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-links a:hover { color: var(--accent-light); }
.footer-copy { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; }

/* Floating bar */
.float-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  gap: 10px;
  justify-content: center;
  z-index: 99;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.float-bar a { flex: 1; max-width: 180px; }
.float-bar .btn { width: 100%; justify-content: center; padding: 12px; }

/* Responsive */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-btns, .cta-btns { justify-content: center; }
  .tile-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .tile-body { padding: 14px; }
  .tile-title { font-size: 0.95rem; }
  .tile-desc { font-size: 0.82rem; }
  .section { padding: 44px 0; }
  body { padding-bottom: 70px; }
}
@media (max-width: 480px) {
  .tile-grid { grid-template-columns: 1fr; }
  .card-row .tile { flex: 0 0 170px; }
}
