/* =========================================================
   상조365 — main.css
   디자인 토큰
   ========================================================= */
:root {
	--navy-900: #1f2c47;
	--navy-700: #2d3e5f;   /* 주 색상 */
	--navy-600: #34496b;
	--navy-050: #eceef4;   /* 연한 라벤더 섹션 */
	--blue-accent: #3d5a80;
	--cream: #e9e6df;      /* 히어로 배경 */
	--gray-head: #7c7f87;  /* 선불제 카드 헤더 */
	--red: #d9524a;
	--gold: #f5b921;

	--text: #26292f;
	--muted: #667085;
	--line: #e3e6ec;
	--white: #ffffff;

	--radius: 16px;
	--radius-sm: 10px;
	--radius-pill: 999px;
	--shadow-card: 0 10px 30px rgba(31, 44, 71, .08);
	--shadow-soft: 0 4px 14px rgba(31, 44, 71, .06);

	--container: 1180px;
	--header-h: 76px;

	--font: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", sans-serif;
}

/* =========================================================
   기본 리셋
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	color: var(--text);
	line-height: 1.65;
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	word-break: keep-all;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--blue-accent); }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 900; color: var(--navy-900); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 24px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px,1px,1px,1px);
	white-space: nowrap;
}
.skip-link {
	position: absolute; left: -999px; top: 0; z-index: 999;
	background: var(--navy-700); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--blue-accent); outline-offset: 2px; border-radius: 4px; }

/* =========================================================
   버튼
   ========================================================= */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	gap: 8px;
	font-weight: 700; font-size: 15px;
	padding: 12px 24px;
	border: 2px solid transparent;
	border-radius: var(--radius-sm);
	transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
	cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--navy-700); color: #fff; }
.btn--primary:hover { background: var(--navy-900); color: #fff; }
.btn--outline { background: transparent; color: var(--navy-700); border-color: var(--navy-700); }
.btn--outline:hover { background: var(--navy-700); color: #fff; }
.btn--pill { border-radius: var(--radius-pill); }
.btn--lg { padding: 15px 34px; font-size: 16px; }
.btn--sm { padding: 8px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* =========================================================
   헤더 / 네비게이션
   ========================================================= */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.96);
	backdrop-filter: saturate(180%) blur(8px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(31,44,71,.08); }
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	min-height: var(--header-h);
	gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-700); }
.brand__icon { color: var(--blue-accent); display: inline-flex; }
.brand__text strong { display: block; font-size: 26px; font-weight: 900; line-height: 1; letter-spacing: -.5px; }
.brand__text strong em { font-style: normal; color: var(--navy-700); }
.brand__text small { display: block; font-size: 11px; color: var(--blue-accent); font-weight: 500; margin-top: 2px; }
.custom-logo-link img { max-height: 56px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav .menu { display: flex; align-items: center; gap: 34px; }
.main-nav .menu a {
	font-weight: 700; font-size: 16px; color: var(--navy-900);
	padding: 6px 0; position: relative;
}
.main-nav .menu a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
	background: var(--navy-700); transform: scaleX(0); transition: transform .2s ease;
}
.main-nav .menu a:hover::after,
.main-nav .menu .current-menu-item > a::after { transform: scaleX(1); }
.nav-cta { padding: 10px 26px; font-size: 15px; background: var(--navy-700); color: #fff; }
.nav-cta:hover { background: var(--navy-900); color: #fff; }

.nav-toggle {
	display: none;
	width: 46px; height: 46px; border: 0; background: transparent; position: relative;
	cursor: pointer; border-radius: 10px;
	transition: transform .4s ease, background .2s ease;
	-webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { background: rgba(45,62,95,.06); }
.nav-toggle__bar,
.nav-toggle::before,
.nav-toggle::after {
	content: ""; position: absolute; left: 12px; right: 12px; height: 2.5px; border-radius: 3px;
	top: 50%; margin-top: -1.25px; background: var(--navy-900);
	transition: transform .3s ease, opacity .2s ease, background .2s ease;
}
.nav-toggle::before { transform: translateY(-8px); }
.nav-toggle::after  { transform: translateY(8px); }

/* 열림: 버튼이 90° 회전하며 세 줄이 X 로 변형 (돌아가는 애니메이션) */
.nav-toggle[aria-expanded="true"] { transform: rotate(90deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { opacity: 0; }
.nav-toggle[aria-expanded="true"]::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after  { transform: rotate(-45deg); }

/* =========================================================
   히어로
   ========================================================= */
/* --- 첫 화면 슬라이더 --- */
.hero-slider { position: relative; background: var(--cream); }
.hero-slider__viewport { position: relative; overflow: hidden; }
.hero-slider__track { position: relative; }

.hero-slide {
	position: absolute; inset: 0; opacity: 0; visibility: hidden;
	transition: opacity .6s ease; z-index: 1;
}
.hero-slide.is-active { position: relative; opacity: 1; visibility: visible; z-index: 2; }

/* 배경 이미지 (첨부 이미지 비율 유지) */
.hero-slide__media { position: absolute; inset: 0; z-index: 1; }
.hero-slide__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero-slide__blank { display: block; width: 100%; height: 100%; background: var(--cream); }

/* 밝은 이미지 위 텍스트 가독성용 좌측 그라디언트 */
.hero-slide::before {
	content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
	background: linear-gradient(100deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.78) 34%, rgba(255,255,255,.25) 56%, rgba(255,255,255,0) 72%);
}

/* 슬라이드 높이: 이미지 비율(≈2145/733)을 기준으로 하되 텍스트가 들어갈 최소 높이 확보 */
.hero-slide__inner {
	position: relative; z-index: 3;
	display: flex; align-items: center;
	min-height: min(46vw, 560px);
	padding-top: 40px; padding-bottom: 40px;
}
.hero-slide__content { max-width: 560px; }
.hero-slide__title {
	font-size: clamp(28px, 4vw, 46px);
	font-weight: 900; letter-spacing: -1px; line-height: 1.28; color: #1c2534;
	margin-bottom: 18px;
}
.hero-slide__subtitle { font-size: clamp(16px, 2vw, 21px); color: #34404f; font-weight: 500; margin-bottom: 28px; }
.hero-slide__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-slide__actions .btn { border-radius: var(--radius-pill); }

/* 좌우 화살표 */
.hero-slider__nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
	width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,.82); color: var(--navy-700);
	box-shadow: 0 4px 14px rgba(31,44,71,.18); transition: background .2s ease, transform .2s ease;
}
.hero-slider__nav:hover { background: #fff; }
.hero-slider__nav--prev { left: 18px; }
.hero-slider__nav--next { right: 18px; }
.hero-slider__nav:focus-visible { outline: 3px solid var(--navy-700); outline-offset: 2px; }

/* 하단 점 인디케이터 */
.hero-slider__dots {
	position: absolute; left: 0; right: 0; bottom: 16px; z-index: 5;
	display: flex; justify-content: center; gap: 9px;
}
.hero-slider__dot {
	width: 11px; height: 11px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
	background: rgba(31,44,71,.28); transition: background .2s ease, transform .2s ease;
}
.hero-slider__dot.is-active { background: var(--navy-700); transform: scale(1.15); }
.hero-slider__dot:focus-visible { outline: 3px solid var(--navy-700); outline-offset: 2px; }

.hero__bar { background: var(--navy-700); }
.hero__bar-inner {
	display: flex; align-items: center; justify-content: center; gap: 0;
	padding: 18px 24px; text-align: center;
}
.hero__bar-inner a {
	flex: 1; color: #fff; font-weight: 700; font-size: clamp(15px, 2vw, 18px);
	padding: 4px 12px;
}
.hero__bar-inner a:hover { color: #cfd8e8; }
.hero__bar-divider { width: 1px; height: 22px; background: rgba(255,255,255,.3); }

/* =========================================================
   섹션 공통
   ========================================================= */
.section { padding: 74px 0; }
.section--tight { padding: 54px 0; }
.section__title {
	text-align: center; font-size: clamp(26px, 3.4vw, 36px); font-weight: 900;
	margin-bottom: 46px; letter-spacing: -.5px;
}
/* 섹션 배경 교차 (섹션마다 구분) - 순서: why→support→mubinso→services→process→reviews→contact */
.why      { background: #ffffff; }
.support  { background: var(--navy-050); }
.mubinso  { background: #ffffff; }
.services { background: var(--navy-050); }
.process  { background: #ffffff; }
.reviews  { background: var(--navy-050); }
.contact  { background: #ffffff; }

/* 이미지형 섹션 공통 (인포그래픽 이미지) */
.section-figure,
.why__figure {
	margin: 0 auto; max-width: 1040px;
}
.section-figure img,
.why__figure img {
	width: 100%; height: auto; display: block;
	border-radius: var(--radius); box-shadow: var(--shadow-card);
}

/* =========================================================
   비교 카드 (왜 후불제인가)
   ========================================================= */
.compare {
	display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
	max-width: 760px; margin: 0 auto;
}
.compare-card {
	background: #fff; border-radius: var(--radius); overflow: hidden;
	box-shadow: var(--shadow-card);
}
.compare-card__head { padding: 20px 18px; text-align: center; color: #fff; }
.compare-card__head h3 { color: #fff; font-size: 22px; font-weight: 900; }
.compare-card__head span { display: block; font-size: 13px; font-weight: 500; opacity: .85; margin-top: 2px; }
.compare-card--con .compare-card__head { background: linear-gradient(180deg, #8b8e96, #71747c); }
.compare-card--pro .compare-card__head { background: linear-gradient(180deg, #34496b, #22314c); }

.compare-card__body { padding: 26px 22px 30px; }
.compare-card__icon { display: flex; justify-content: center; gap: 10px; margin-bottom: 22px; }

.compare-list { display: flex; flex-direction: column; gap: 12px; }
.compare-list li { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; color: #333; }
.ico-x, .ico-check {
	flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900;
}
.ico-x { background: #eceef1; color: #9aa0a8; }
.ico-check { background: #fdecea; color: var(--red); }

.why__footnote {
	text-align: center; margin: 40px auto 0; max-width: 640px;
	font-size: clamp(16px, 2vw, 19px); font-weight: 700; color: #3c4658; line-height: 1.7;
}

/* =========================================================
   서비스 안내
   ========================================================= */
.services { background: var(--navy-050); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 30px 26px; text-align: center;
	box-shadow: var(--shadow-soft);
	transition: transform .2s ease, box-shadow .2s ease;
	display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.service-card__name { font-size: 21px; color: var(--navy-700); margin-bottom: 16px; }
.service-card__icon { display: flex; justify-content: center; margin-bottom: 16px; min-height: 64px; align-items: center; }
.service-card__price { font-size: 20px; font-weight: 900; color: #1f2a3d; margin-bottom: 8px; }
.service-card__desc { color: var(--muted); font-size: 15px; margin-bottom: 22px; white-space: pre-line; }
.service-card .btn { margin-top: auto; letter-spacing: 1px; }

/* =========================================================
   장례 진행 절차
   ========================================================= */
.process { background: #ffffff; }
.process__list {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; position: relative;
	list-style: none; margin: 0; padding: 0;
}
.process-step { position: relative; text-align: center; padding: 0 10px; }
.process-step__icon {
	width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%;
	background: #fff; box-shadow: var(--shadow-soft);
	display: flex; align-items: center; justify-content: center;
}
.process-step__title { font-size: 18px; margin-bottom: 8px; }
.process-step__desc { color: var(--muted); font-size: 14px; white-space: pre-line; margin: 0; }
.process-step__arrow {
	position: absolute; top: 30px; right: -8px; font-size: 30px; color: #b3bccb; font-weight: 400; line-height: 1;
}

/* =========================================================
   이용후기
   ========================================================= */
.reviews { background: var(--navy-050); }
.reviews__head { text-align: center; }
.reviews__head .section__title { margin-bottom: 12px; }
.reviews__sub { margin: 0 auto 44px; color: #4a5362; font-size: 16px; }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card {
	background: #fff; border-radius: var(--radius); padding: 30px 28px; text-align: left;
	box-shadow: var(--shadow-card); display: flex; flex-direction: column;
	border: 1px solid #eef0f5;
}
.review-card__stars { display: flex; gap: 3px; margin-bottom: 16px; }
.review-card__text {
	margin: 0 0 22px; font-size: 15.5px; color: #3f4854; line-height: 1.75;
	font-style: normal; flex: 1;
}
.review-card__person { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid #eef0f5; }
.review-card__avatar { width: 46px; height: 46px; flex-shrink: 0; }
.review-card__avatar img,
.review-card__avatar-fallback {
	width: 46px; height: 46px; border-radius: 50%; object-fit: cover; display: block;
}
.review-card__name { font-weight: 700; font-size: 15px; color: #1f2a3d; margin: 0; }

/* =========================================================
   푸터
   ========================================================= */
.site-footer { background: var(--navy-900); color: #b9c1cf; }
.site-footer__inner {
	display: flex; justify-content: space-between; align-items: flex-start; gap: 30px;
	padding: 46px 24px;
}
.site-footer__info { font-size: 13.5px; line-height: 1.85; max-width: 60%; }
.footer-widgets { margin-top: 16px; }
.footer-widget__title { color: #fff; font-size: 15px; margin: 0 0 8px; }

.site-footer__contact { text-align: right; flex-shrink: 0; }
.footer-phone { display: block; color: #fff; margin-bottom: 16px; }
.footer-phone__label { display: block; font-size: 13px; color: #aeb8c8; font-weight: 500; margin-bottom: 2px; }
.footer-phone__num { display: block; font-size: clamp(22px, 3vw, 30px); font-weight: 900; letter-spacing: .5px; }
.footer-phone:hover .footer-phone__num { color: #cfd8e8; }

.social-links { display: flex; gap: 10px; justify-content: flex-end; }
.social-links__item {
	width: 36px; height: 36px; border-radius: 50%;
	background: rgba(255,255,255,.1); color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	transition: background .2s ease, transform .2s ease;
}
.social-links__item:hover { background: var(--blue-accent); color: #fff; transform: translateY(-2px); }

.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; }
.site-footer__bottom .container { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-menu { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-menu a { color: #aeb8c8; font-size: 13px; }
.footer-menu a:hover { color: #fff; }
.copyright { margin: 0; font-size: 12.5px; color: #8894a6; text-align: center; }

/* 플로팅 전화 버튼 (모바일) */
.floating-call {
	position: fixed; right: 18px; bottom: 18px; z-index: 90;
	display: none; align-items: center; gap: 8px;
	background: var(--navy-700); color: #fff; font-weight: 700;
	padding: 12px 18px; border-radius: var(--radius-pill);
	box-shadow: 0 8px 24px rgba(31,44,71,.28);
}
.floating-call:hover { color: #fff; background: var(--navy-900); }

/* =========================================================
   일반 콘텐츠 (page / single / index)
   ========================================================= */
.page-header { margin-bottom: 32px; }
.page-header__title { font-size: clamp(26px, 4vw, 38px); }
.page-header__meta { color: var(--muted); font-size: 14px; margin-top: 8px; }
.prose { max-width: 780px; margin-inline: auto; font-size: 16px; line-height: 1.85; }
.prose img { border-radius: var(--radius-sm); margin: 1.4em 0; }
.prose h2 { font-size: 26px; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 21px; margin: 1.4em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose blockquote {
	border-left: 4px solid var(--navy-700); background: var(--navy-050);
	margin: 1.4em 0; padding: 14px 20px; border-radius: 0 8px 8px 0; color: #3c4658;
}

.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; }
.post-card__thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.post-card__title { font-size: 19px; }
.post-card__title a { color: var(--navy-900); }
.post-card__meta { color: var(--muted); font-size: 13px; margin: 0; }
.post-card__excerpt { color: #48505d; font-size: 15px; }
.post-card .btn { align-self: flex-start; margin-top: 4px; }

.pagination, .navigation.pagination { margin-top: 40px; }
.pagination .nav-links, .navigation .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination a, .pagination span {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px;
	padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 700;
}
.pagination .current { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }

.error-404 { text-align: center; }
.error-404 .search-form { max-width: 460px; margin: 24px auto 0; }
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { flex: 1; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; }
.search-form input[type="submit"] { background: var(--navy-700); color: #fff; border: 0; padding: 0 20px; border-radius: 8px; font-weight: 700; cursor: pointer; }

/* =========================================================
   스크롤 등장 애니메이션
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   문의 폼 (폼메일)
   ========================================================= */
.contact { background: #ffffff; }
.contact__head { text-align: center; }
.contact__head .section__title { margin-bottom: 12px; }
.contact__sub {
	max-width: 640px; margin: 0 auto 40px; color: #4a5362;
	font-size: 16px; line-height: 1.7;
}

.form-alert {
	max-width: 760px; margin: 0 auto 24px; padding: 16px 20px; border-radius: var(--radius);
	font-weight: 600; font-size: 15px;
}
.form-alert--ok { background: #e8f3ec; color: #1c6b3e; border: 1px solid #bfe0cc; }
.form-alert--err { background: #fbe9e8; color: #a5352d; border: 1px solid #f0c6c2; }

.contact-form {
	max-width: 760px; margin: 0 auto; background: #fff;
	padding: 34px; border-radius: var(--radius); box-shadow: var(--shadow-card);
}
.contact-form__grid {
	display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px;
}
.cf-field { margin: 0; display: flex; flex-direction: column; }
.cf-field--full { grid-column: 1 / -1; }
.cf-field label { font-size: 14px; font-weight: 700; color: var(--navy-900); margin-bottom: 7px; }
.cf-req { color: var(--red); }
.contact-form input,
.contact-form select,
.contact-form textarea {
	width: 100%; padding: 12px 14px; font: inherit; color: #1f2c47;
	background: #fbfbfc; border: 1px solid #d5d9e2; border-radius: 10px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
	outline: none; border-color: var(--navy-700);
	box-shadow: 0 0 0 3px rgba(45,62,95,.12); background: #fff;
}
.contact-form textarea { resize: vertical; min-height: 120px; }

.cf-privacy { margin: 18px 0 0; font-size: 13px; color: #7c8492; line-height: 1.6; }

.cf-submit {
	display: flex; align-items: center; flex-wrap: wrap; gap: 16px 22px; margin-top: 22px;
}
.cf-submit .btn { border-radius: var(--radius-pill); }
.cf-call { font-size: 15px; color: #4a5362; }
.cf-call strong { color: var(--navy-700); font-size: 17px; margin-left: 4px; }

/* 허니팟(사람에게는 숨김) */
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 980px) {
	.hero-slide__inner { min-height: 440px; }
	.process__list { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
	.process-step:nth-child(2) .process-step__arrow { display: none; }
	.site-footer__info { max-width: 100%; }
}

@media (max-width: 860px) {
	:root { --header-h: 62px; }

	.site-header__inner { gap: 12px; padding-block: 6px; }
	.brand { gap: 8px; }
	.brand__icon svg { width: 26px; height: 26px; }
	.brand__text strong { font-size: 20px; }
	.brand__text small { font-size: 10px; margin-top: 1px; }
	.custom-logo-link img { max-height: 42px; }

	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
	.main-nav {
		position: fixed; inset: var(--header-h) 0 auto 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; border-bottom: 1px solid var(--line);
		padding: 12px 0; box-shadow: 0 12px 24px rgba(31,44,71,.12);
		transform: translateY(-120%); transition: transform .28s ease; max-height: calc(100vh - var(--header-h)); overflow: auto;
	}
	.main-nav.is-open { transform: translateY(0); }
	.main-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.main-nav .menu a { padding: 14px 24px; }
	.main-nav .menu a::after { display: none; }
	.nav-cta { margin: 12px 24px 4px; text-align: center; }
	body.nav-open { overflow: hidden; }

	.services__grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
	.reviews__grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
	.floating-call { display: inline-flex; }
	.site-footer__inner { flex-direction: column; }
	.site-footer__contact { text-align: left; }
	.social-links { justify-content: flex-start; }
}

@media (max-width: 560px) {
	.container { padding-inline: 18px; }
	.section { padding: 54px 0; }
	.section__title { margin-bottom: 34px; }
	.compare { grid-template-columns: 1fr; max-width: 380px; }
	.process__list { grid-template-columns: 1fr; }
	.process-step__arrow { display: none !important; }

	/* 슬라이더: 좁은 화면에서는 이미지를 아래에 두고 상단에 텍스트 스크림 강화 */
	.hero-slide__inner { min-height: 380px; align-items: flex-start; padding-top: 34px; }
	.hero-slide::before {
		background: linear-gradient(180deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.86) 42%, rgba(255,255,255,.35) 70%, rgba(255,255,255,.05) 100%);
	}
	.hero-slide__media img { object-position: center 70%; }
	.hero-slide__actions .btn { flex: 1; }
	.hero-slider__nav { width: 40px; height: 40px; }
	.hero-slider__nav--prev { left: 10px; }
	.hero-slider__nav--next { right: 10px; }

	.contact-form { padding: 22px 18px; }
	.contact-form__grid { grid-template-columns: 1fr; }
	.cf-submit .btn { width: 100%; }
	.cf-call { width: 100%; text-align: center; }
}

/* 동작 축소 설정 존중 */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
	.reveal { opacity: 1; transform: none; }
}
