:root {
  color-scheme: light;

  --bg: #ffffff;
  --text: #000000;
  --gray: #f2f2f2;
  --muted: #555555;
  --line: #000000;

  --font-display: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-ko: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-meta: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  /* Type scale: steps of √2 — logo : h1 : lead = 4 : 2 : 1 */
  --fs-display: clamp(48px, 5.6vw, 80px);
  --fs-display-s: 56px;
  --fs-h1: clamp(28px, 2.8vw, 40px);
  --fs-h2: clamp(22px, 2vw, 28px);
  --fs-lead: clamp(16px, 1.4vw, 20px);
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-micro: 12px;

  --lh-body: 1.8;
  --lh-tight: 1.2;
  --ls-meta: 0.1em;

  --width: min(1180px, calc(100% - 40px));
  --gutter: 20px;
  --card-pad: 40px;
  --section: clamp(72px, 6.7vw, 96px);
  --scroll-pad: 96px;
  --bar-h: 52px;
  --slide: 0.23s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-pad);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ko);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.container {
  width: var(--width);
  margin: 0 auto;
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.15;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.25;
}

h3 {
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 600;
}

.section {
  padding: var(--section) 0;
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 680px;
  margin: 0 auto clamp(48px, 6vw, 72px);
  text-align: center;
}

.section-head p {
  font-size: var(--fs-lead);
  line-height: 1.65;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Links & buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--text);
  font-family: var(--font-ko);
  font-size: var(--fs-body);
  font-weight: 500;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.btn-solid {
  background: var(--text);
  color: var(--bg);
}

.btn-solid:hover {
  background: var(--bg);
  color: var(--text);
}

.btn-line {
  background: var(--bg);
  color: var(--text);
}

.btn-line:hover {
  background: var(--text);
  color: var(--bg);
}

.text-link {
  padding: 2px 0;
  border-bottom: 2px solid var(--text);
  font-weight: 600;
  line-height: 1.4;
  transition: border-color 0.2s ease;
}

.text-link:hover {
  border-bottom-color: transparent;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 30;
  background: var(--bg);
}

.header-inner {
  width: var(--width);
  margin: 0 auto;
  padding-top: 28px;
}

.header-util,
.menu-util {
  display: flex;
  gap: 14px;
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.4;
}

.header-util {
  justify-content: flex-end;
}

.header-util a,
.menu-util a {
  border-bottom: 1px solid var(--text);
  transition: border-color 0.2s ease;
}

.header-main {
  display: flex;
  align-items: center;
  gap: 44px;
  margin-top: 36px;
}

.brand-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 1 77%;
  min-width: 0;
  max-width: 878px;
  padding: clamp(10px, 1.1vw, 14px) clamp(20px, 2.5vw, 36px);
  border: 3px solid var(--line);
  background: var(--bg);
}

.brand-name {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Logo + two-line tag read as one unit: the tag's last line sits on the logo's baseline */
.brand-line {
  display: flex;
  flex: 1 1 auto;
  align-items: last baseline;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.brand-tag {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  white-space: nowrap;
}

.brand-tag-main {
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.35;
}

.brand-tag-sub {
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.site-nav,
.menu-nav {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(3, auto);
  font-weight: 500;
  line-height: 1.4;
}

.site-nav {
  flex: none;
  align-self: center;
  column-gap: 36px;
  row-gap: 12px;
  font-size: var(--fs-small);
}

.site-nav a,
.menu-nav a {
  justify-self: start;
  border-bottom: 2px solid var(--text);
  transition: border-color 0.2s ease;
}

.header-util a:hover,
.menu-util a:hover,
.site-nav a:hover,
.menu-nav a:hover {
  border-bottom-color: transparent;
}

.menu-toggle {
  display: none;
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  margin-right: -11px;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.menu-toggle span:nth-child(1) {
  top: 15px;
}

.menu-toggle span:nth-child(2) {
  top: 21px;
}

.menu-toggle span:nth-child(3) {
  top: 27px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Compact box: fixed, slides down on scroll-up */

.header-compact {
  position: fixed;
  top: 13px;
  left: 0;
  right: 0;
  z-index: 60;
  width: var(--width);
  margin: 0 auto;
  pointer-events: none;
  transform: translateY(calc(-100% - 20px));
  transition: transform var(--slide);
}

.header-compact.is-visible {
  transform: none;
}

.brand-box--compact {
  width: min(768px, 67%);
  max-width: none;
  height: 64px;
  padding: 0 20px 0 24px;
  border-width: 2px;
  pointer-events: auto;
}

.brand-box--compact .brand-name {
  font-size: 40px;
}

.brand-box--compact .menu-toggle {
  display: block;
}

/* Menu panel: sits right under whichever box opened it */

.menu-panel {
  position: absolute;
  z-index: 70;
  display: grid;
  gap: 24px;
  padding: 28px 36px;
  border: 2px solid var(--line);
  background: var(--bg);
}

.menu-panel[hidden] {
  display: none;
}

.menu-panel[data-variant="main"] {
  border-width: 3px;
}

.menu-sub {
  display: none;
  color: var(--muted);
  font-size: var(--fs-small);
}

.menu-util {
  font-size: var(--fs-small);
  gap: 20px;
}

.menu-nav {
  justify-content: start;
  column-gap: 48px;
  row-gap: 14px;
  font-size: var(--fs-body);
}

/* ---------- Hero ---------- */

.hero {
  width: var(--width);
  margin: 0 auto;
  padding-top: 40px;
}

.hero-photo {
  display: flex;
  justify-content: center;
}

.hero-photo img {
  width: auto;
  max-width: 100%;
  animation: hero-fade 1.2s ease both;
}

@keyframes hero-fade {
  from {
    opacity: 0;
  }
}

.hero-title {
  display: flex;
  flex-direction: column;
}

.hero-title h1 {
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.3;
}

.hero-intro {
  margin-top: 20px;
  font-size: var(--fs-lead);
  line-height: 1.7;
}

.hero-cta {
  margin-top: 32px;
}

.cta-row,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.6;
}

/* PC: photo and text side by side, both inside the first screen */
@media (min-width: 1025px) {
  .hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: clamp(48px, 5.6vw, 80px);
  }

  .hero-photo img {
    max-width: none;
    height: max(360px, min(640px, calc(100svh - var(--header-h, 200px) - 88px)));
  }

  .hero-title {
    align-items: flex-start;
    max-width: 30em;
  }
}

.portfolio {
  padding-top: 72px;
}

.contact-cta {
  display: grid;
  justify-items: center;
  margin-top: 8px;
}

.contact-actions {
  justify-content: center;
}

/* ---------- Story ---------- */

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.story-copy {
  display: grid;
  gap: 20px;
  max-width: 540px;
}

.story-photo {
  display: flex;
  justify-content: center;
}

/* Cap the portrait photo at 640px tall (80svh on short screens). Sized by width so the
   box is reserved from the width/height attributes before the lazy image loads.
   435px and 54.4svh = 640px and 80svh × (612 / 900). */
.story-photo img {
  width: min(100%, 435px, 54.4svh);
  height: auto;
}

.promises {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.promises li {
  display: grid;
  gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.promises strong {
  font-weight: 600;
}

.promises span {
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.6;
}

/* ---------- Portfolio ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  column-gap: var(--gutter);
  row-gap: var(--card-pad);
}

.gallery-item {
  display: block;
  padding: var(--card-pad);
  text-align: center;
  transition: background-color 0.3s ease;
}

.gallery-item:hover {
  background: var(--gray);
}

.gallery-item img {
  width: 100%;
}

.caption {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.caption-title {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}

.caption-meta,
.lightbox-count {
  font-family: var(--font-meta);
  font-size: var(--fs-micro);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: var(--ls-meta);
  text-transform: uppercase;
}

.caption-meta {
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
}

.gallery:not(.is-expanded) .is-extra {
  display: none;
}

.gallery-more {
  margin-top: 48px;
  text-align: center;
}

.gallery.is-expanded + .gallery-more {
  display: none;
}

/* ---------- Service ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter) clamp(32px, 4vw, 56px);
}

.plan {
  display: grid;
  align-content: start;
  gap: 4px;
  padding-top: 20px;
  border-top: 2px solid var(--line);
}

.plan-name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}

.plan-badge {
  padding: 2px 0;
  border-bottom: 2px solid var(--text);
  font-family: var(--font-ko);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.3;
}

.plan-price {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.35;
}

.plan ul {
  display: grid;
  gap: 2px;
  margin-top: 16px;
}

.plans-included {
  display: grid;
  gap: 4px;
  max-width: 680px;
  margin: 56px auto 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.plans-included span {
  color: var(--muted);
  font-size: var(--fs-small);
}

.plans-included strong {
  font-weight: 600;
}

.plans-notes {
  display: grid;
  gap: 2px;
  max-width: 680px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.6;
  text-align: center;
}

.plans-options {
  max-width: 680px;
  margin: 28px auto 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.plans-options summary,
.faq-list summary {
  position: relative;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.plans-options summary {
  padding: 16px 40px 16px 0;
}

.plans-options summary::-webkit-details-marker,
.faq-list summary::-webkit-details-marker {
  display: none;
}

.plans-options summary::after,
.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 4px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
  transform: translateY(-50%);
  content: "+";
}

.plans-options[open] summary::after,
.faq-list details[open] summary::after {
  content: "\2013";
}

.plans-options ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  padding-bottom: 16px;
}

.plans-options li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray);
  font-size: var(--fs-small);
}

/* ---------- Process ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--card-pad) var(--gutter);
}

.steps li {
  display: grid;
  align-content: start;
  gap: 8px;
}

.step-num {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1;
}

.steps h3 {
  margin-top: 8px;
}

.steps p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- FAQ ---------- */

.faq-inner {
  max-width: 780px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  padding: 22px 48px 22px 0;
  font-size: var(--fs-body);
}

.faq-list details p {
  padding: 0 48px 24px 0;
  color: var(--muted);
}

/* ---------- Contact ---------- */

.contact {
  border-top: 1px solid var(--line);
}

.contact-inner {
  display: grid;
  justify-items: center;
  gap: 20px;
  text-align: center;
}

.contact h2 {
  font-size: var(--fs-h2);
  line-height: 1.35;
}

.contact-lead {
  max-width: 600px;
  font-size: var(--fs-lead);
  line-height: 1.65;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 12px max(20px, calc((100% - 1140px) / 2));
  background: var(--gray);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-transform: uppercase;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
}

.mobile-cta {
  display: none;
}

/* ---------- Contact dialogs (phone number, KakaoTalk QR) ---------- */

.contact-dialog {
  width: min(360px, calc(100% - 40px));
  max-width: none;
  max-height: calc(100svh - 40px);
  padding: 28px;
  border: 2px solid var(--line);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  box-shadow: none;
}

.contact-dialog::backdrop {
  background: rgba(255, 255, 255, 0.85);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -12px -12px 0 0;
}

.dialog-title {
  font-family: var(--font-ko);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}

.dialog-close {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
}

.dialog-close span {
  position: absolute;
  top: 21px;
  left: 12px;
  width: 20px;
  height: 2px;
  background: var(--text);
  transform: rotate(45deg);
}

.dialog-close span:last-child {
  transform: rotate(-45deg);
}

.dialog-close:hover {
  background: var(--gray);
}

.dialog-number {
  margin-top: 12px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.dialog-actions .btn {
  flex: 1 1 auto;
}

/* .btn sets display, which would otherwise override the hidden attribute (전화 걸기 on PC) */
.dialog-actions [hidden] {
  display: none;
}

.dialog-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.dialog-qr {
  display: block;
  width: 160px;
  height: 160px;
  margin: 20px auto 0;
}

.contact-dialog--kakao .dialog-note {
  text-align: center;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  background: var(--bg);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.lightbox-image {
  max-width: 100%;
  max-height: calc(100svh - 120px);
  width: auto;
  object-fit: contain;
}

.lightbox-btn {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1;
}

.lightbox-btn:hover {
  background: var(--gray);
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transition: none;
  }

  .hero-photo img {
    animation: none;
  }

  .header-compact,
  .site-header {
    transition: none;
  }
}

/* ---------- Header: tablet (769–1024px) ---------- */

@media (max-width: 1024px) {
  .site-nav {
    display: none;
  }

  .header-main {
    margin-top: 24px;
  }

  .site-header .brand-box {
    flex: 1 1 auto;
    max-width: none;
    padding: 12px 16px 12px 24px;
  }

  .site-header .brand-name {
    font-size: var(--fs-display-s);
  }

  .brand-tag-main {
    font-size: var(--fs-body);
  }

  .brand-tag-sub {
    display: none;
  }

  .hero-photo img {
    height: min(64svh, 720px);
  }

  .hero-title {
    align-items: center;
    max-width: 640px;
    margin: 48px auto 0;
    text-align: center;
  }

  .cta-row {
    justify-content: center;
  }

  .site-header .menu-toggle {
    display: block;
  }
}

/* ---------- Header: mobile (≤768px) — fixed top bar instead of the box ---------- */

@media (max-width: 768px) {
  :root {
    --scroll-pad: 68px;
  }

  body {
    padding-top: var(--bar-h);
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    border-bottom: 1px solid var(--line);
    transition: transform var(--slide);
  }

  .site-header.is-hidden {
    transform: translateY(-100%);
  }

  .header-inner {
    padding-top: 0;
  }

  .header-util,
  .header-compact {
    display: none;
  }

  .header-main {
    margin-top: 0;
  }

  .site-header .brand-box {
    height: var(--bar-h);
    padding: 0;
    border: 0;
  }

  .site-header .brand-name {
    font-size: 28px;
  }

  /* 서른여섯(28) + tag(14) side by side on one baseline, 2 : 1 */
  .site-header .brand-line {
    flex: 0 1 auto;
    align-items: baseline;
    justify-content: flex-start;
    gap: 10px;
  }

  .brand-tag-main {
    color: var(--muted);
    font-size: var(--fs-small);
    font-weight: 400;
  }

  .site-header .menu-toggle {
    margin-left: auto;
  }

  .menu-panel[data-variant="bar"] {
    gap: 20px;
    padding: 16px 20px 24px;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .menu-panel[data-variant="bar"] .menu-sub {
    display: block;
  }

  .menu-panel[data-variant="bar"] .menu-util,
  .menu-panel[data-variant="bar"] .menu-nav {
    font-size: 16px;
  }

  .menu-panel[data-variant="bar"] .menu-nav {
    row-gap: 0;
    column-gap: 40px;
  }

  /* 44px touch targets; underline stays on the text */
  .menu-panel[data-variant="bar"] a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    border-bottom: 0;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
  }

  .menu-panel[data-variant="bar"] .menu-util a {
    text-decoration-thickness: 1px;
  }

  /* Mobile first screen: photo → h1 → contact buttons → intro */
  .hero {
    padding-top: 20px;
  }

  .hero-photo img {
    height: auto;
    max-height: 56svh;
  }

  .hero-title {
    align-items: stretch;
    margin-top: 24px;
  }

  .hero-title h1 {
    order: 1;
  }

  .hero-cta {
    order: 2;
    margin-top: 20px;
  }

  .hero-note {
    order: 3;
  }

  .hero-intro {
    order: 4;
  }

  .cta-row {
    flex-direction: column;
  }

  .cta-row .btn {
    width: 100%;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .story-grid {
    grid-template-columns: 1fr;
  }

  .plans {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .plans-options ul {
    grid-template-columns: 1fr;
  }

  .lightbox {
    grid-template-columns: 1fr;
  }

  .lightbox-figure {
    padding: 0 12px;
  }

  .lightbox-prev,
  .lightbox-next {
    position: absolute;
    bottom: 16px;
  }

  .lightbox-prev {
    left: 20px;
  }

  .lightbox-next {
    right: 20px;
  }

  .lightbox-image {
    max-height: calc(100svh - 160px);
  }

  .site-footer {
    padding-bottom: 76px;
  }

  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--text);
    color: var(--bg);
    font-size: 0.95rem;
    font-weight: 600;
    transition:
      transform 0.25s ease,
      visibility 0.25s;
  }

  .mobile-cta.is-hidden {
    visibility: hidden;
    pointer-events: none;
    transform: translateY(100%);
  }
}

@media (max-width: 640px) {
  :root {
    --card-pad: 20px;
  }

  .gallery {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .gallery-item {
    padding: 0;
  }

  .gallery-item:hover {
    background: none;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .contact-cta,
  .contact-actions {
    width: 100%;
  }

  .contact-actions {
    flex-direction: column;
  }

  .contact-actions .btn {
    width: 100%;
  }
}
