:root {
  --sage: #7fa88a;
  --sage-deep: #62846d;
  --sage-pale: #eaf3ec;
  --ivory: #f8f5ef;
  --paper: #fffdf8;
  --charcoal: #252b27;
  --muted: #6f766f;
  --clay: #c79a74;
  --line: #ded6c8;
  --glass: rgba(255, 253, 248, 0.66);
  --shadow: 0 28px 80px rgba(52, 56, 48, 0.16);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--charcoal);
  background:
    linear-gradient(rgba(248, 245, 239, 0.84), rgba(248, 245, 239, 0.9)),
    url("./assets/botanical-pattern.png") center top / 760px auto repeat,
    var(--ivory);
  font-family: "Aptos", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.18;
  background-image:
    radial-gradient(ellipse at 88% 12%, rgba(127, 168, 138, 0.12), transparent 38%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(160px, 230px) 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 86px;
  padding: 16px clamp(18px, 4vw, 56px);
  background:
    linear-gradient(135deg, rgba(127, 168, 138, 0.26), rgba(248, 245, 239, 0.9)),
    rgba(248, 245, 239, 0.88);
  border-bottom: 1px solid rgba(127, 168, 138, 0.28);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.brand-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-wordmark {
  display: block;
  width: min(210px, 42vw);
  height: auto;
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 30px);
  font-size: 14px;
  color: var(--muted);
}

.nav a {
  padding: 8px 0;
}

.nav a:hover {
  color: var(--sage-deep);
}

.lang-toggle,
.category-choice,
.quote-button,
.primary-button,
.secondary-button,
.admin-buttons button {
  border: 0;
  cursor: pointer;
}

.lang-toggle {
  width: 44px;
  height: 36px;
  color: var(--sage-deep);
  background: rgba(255, 253, 248, 0.76);
  border: 1px solid rgba(127, 168, 138, 0.36);
  border-radius: 999px;
}

.section-band {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(46px, 7vw, 92px) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(460px, 1.2fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 86px);
  padding-top: clamp(40px, 5vw, 70px);
}

.hero-copy {
  padding: clamp(26px, 4vw, 42px);
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.64), rgba(255, 253, 248, 0.34));
  border: 1px solid rgba(255, 253, 248, 0.66);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(63, 76, 61, 0.08);
  backdrop-filter: blur(16px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sage-deep);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Aptos", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-weight: 700;
  line-height: 1.18;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1 {
  max-width: 620px;
  margin-bottom: 24px;
  font-size: 52px;
}

h2 {
  margin-bottom: 18px;
  font-size: 42px;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.3;
}

.lead,
.split p,
.work-card p,
.faq p {
  color: var(--muted);
  line-height: 1.75;
}

.lead {
  max-width: 680px;
  margin-bottom: 32px;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.secondary-button,
.quote-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--sage), var(--sage-deep));
  box-shadow: 0 14px 30px rgba(98, 132, 109, 0.24);
}

.secondary-button {
  color: var(--sage-deep);
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid rgba(127, 168, 138, 0.42);
}

.hero-gallery {
  display: grid;
  grid-template-columns: 1.18fr 0.7fr;
  grid-template-rows: 390px 260px;
  gap: 18px;
}

.hero-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 10px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(234, 243, 236, 0.62));
  border: 1px solid rgba(127, 168, 138, 0.18);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero-photo::before,
.work-card::before,
.match-showcase::before,
.modal-image-wrap::before {
  position: absolute;
  inset: 10px;
  z-index: 1;
  content: "";
  border: 1px solid rgba(255, 253, 248, 0.72);
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(127, 168, 138, 0.08);
  pointer-events: none;
}

.hero-photo::after,
.work-card::after,
.match-showcase::after {
  position: absolute;
  inset: 10px;
  z-index: 1;
  content: "";
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 38%);
  border-radius: inherit;
  pointer-events: none;
}

.hero-photo img,
.work-card img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  object-fit: cover;
}

.hero-photo.large {
  grid-row: span 2;
}

.hero-photo.tall img {
  object-fit: contain;
  background: var(--paper);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1180px, calc(100% - 36px));
  margin: -24px auto 22px;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid rgba(255, 253, 248, 0.68);
  border-radius: 24px;
  box-shadow: 0 16px 50px rgba(52, 56, 48, 0.08);
  backdrop-filter: blur(14px);
}

.trust-strip div {
  padding: 22px;
  border-right: 1px solid rgba(199, 154, 116, 0.18);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 6px;
  color: var(--sage-deep);
}

.trust-strip span {
  color: var(--muted);
  font-size: 14px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 26px;
}

.catalog-carousel {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 16px;
  align-items: center;
  margin-bottom: 34px;
}

.carousel-arrow {
  width: 52px;
  height: 52px;
  color: var(--sage-deep);
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid rgba(127, 168, 138, 0.26);
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(52, 56, 48, 0.1);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.category-selector {
  display: flex;
  min-height: 315px;
  gap: 12px;
  align-items: stretch;
  overflow: hidden;
}

.category-choice {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 245px;
  align-self: center;
  overflow: hidden;
  padding: 0;
  color: white;
  background: var(--sage-pale);
  border: 1px solid rgba(255, 253, 248, 0.74);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(52, 56, 48, 0.11);
  opacity: 0.72;
  transform: scale(0.94);
  transition: flex 260ms ease, height 260ms ease, transform 260ms ease, opacity 260ms ease, box-shadow 260ms ease;
}

.category-choice:hover,
.category-choice:focus-visible,
.category-choice.active {
  z-index: 2;
  flex-grow: 1.55;
  height: 315px;
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 28px 74px rgba(52, 56, 48, 0.18);
}

.category-choice:not(.active):hover,
.category-choice:not(.active):focus-visible {
  height: 270px;
  transform: scale(0.98);
}

.category-choice img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.92);
}

.category-choice::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(29, 45, 33, 0.08), rgba(29, 45, 33, 0.58));
}

.choice-glass {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 16px;
  background: rgba(36, 51, 40, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  backdrop-filter: blur(14px);
}

.choice-glass strong {
  font-size: 22px;
  white-space: nowrap;
}

.choice-glass small {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.catalog-shell {
  display: grid;
  gap: 38px;
}

.category-group {
  display: grid;
  gap: 16px;
}

.category-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 0 4px;
}

.category-title h3 {
  margin: 0;
  font-size: 24px;
  word-break: keep-all;
}

.category-gallery-button {
  color: var(--sage-deep);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.gallery-modal[hidden] {
  display: none;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(10px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(290px, 0.58fr);
  gap: 20px;
  width: min(1240px, 100%);
  max-height: min(820px, calc(100vh - 56px));
  padding: 22px;
  overflow: hidden;
  background: rgba(15, 18, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 34px;
  box-shadow: 0 32px 110px rgba(10, 18, 12, 0.3);
  color: white;
}

.modal-image-wrap {
  position: relative;
  min-height: 620px;
  margin: 0;
  overflow: hidden;
  padding: 12px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.14), rgba(127, 168, 138, 0.12)),
    rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 253, 248, 0.2);
  border-radius: 26px;
}

.modal-image-wrap img {
  width: 100%;
  height: 100%;
  max-height: 760px;
  border-radius: 18px;
  object-fit: contain;
}

.modal-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
  padding: 28px;
}

.modal-copy h2 {
  margin-bottom: 16px;
}

.modal-copy p {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.75;
}

.modal-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.modal-thumbs button {
  overflow: hidden;
  height: 76px;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  opacity: 0.72;
}

.modal-thumbs button.active {
  border-color: var(--sage);
  opacity: 1;
}

.modal-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.modal-close,
.modal-arrow {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(52, 56, 48, 0.14);
  cursor: pointer;
}

.modal-close {
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  font-size: 24px;
  line-height: 1;
}

.modal-arrow {
  top: 50%;
  width: 48px;
  height: 48px;
  font-size: 34px;
}

.modal-prev {
  left: 18px;
}

.modal-next {
  right: 18px;
}

.work-card {
  position: relative;
  display: grid;
  grid-template-rows: 300px 1fr;
  min-height: 520px;
  overflow: hidden;
  padding: 10px 10px 0;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.9), rgba(234, 243, 236, 0.48));
  border: 1px solid rgba(127, 168, 138, 0.16);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(52, 56, 48, 0.1);
  backdrop-filter: blur(12px);
}

.work-card::before,
.work-card::after {
  bottom: auto;
  height: 300px;
}

.work-card.hidden {
  display: none;
}

.work-card > div {
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.card-meta {
  margin-bottom: 8px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.price-chip {
  width: fit-content;
  margin: 10px 0 18px;
  padding: 8px 12px;
  color: var(--sage-deep);
  background: rgba(234, 243, 236, 0.86);
  border: 1px solid rgba(127, 168, 138, 0.2);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.quote-button {
  width: 100%;
  margin-top: auto;
  color: var(--sage-deep);
  background: rgba(234, 243, 236, 0.8);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
  gap: 42px;
  align-items: center;
}

.upload-panel {
  padding: 26px;
  background: rgba(255, 253, 248, 0.55);
  border: 1px solid rgba(255, 253, 248, 0.72);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.upload-panel label {
  display: block;
  margin-bottom: 12px;
  color: var(--sage-deep);
  font-weight: 700;
}

.upload-panel input {
  width: 100%;
  margin-bottom: 16px;
}

.preview-box {
  display: grid;
  place-items: center;
  min-height: 260px;
  overflow: hidden;
  color: var(--muted);
  padding: 10px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.95), rgba(234, 243, 236, 0.56));
  border: 1px dashed rgba(127, 168, 138, 0.5);
  border-radius: 18px;
}

.preview-box img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.reservation-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 26px;
  background: rgba(255, 253, 248, 0.62);
  border: 1px solid rgba(255, 253, 248, 0.72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.reservation-form label {
  display: grid;
  gap: 8px;
  color: var(--sage-deep);
  font-weight: 700;
}

.reservation-form .full {
  grid-column: 1 / -1;
}

.reservation-form input,
.reservation-form select,
.reservation-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--charcoal);
  background: white;
  border: 1px solid rgba(127, 168, 138, 0.3);
  border-radius: 16px;
  outline: none;
}

.reservation-form textarea {
  resize: vertical;
}

.reservation-form .consent-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 12px;
  padding: 14px 16px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid rgba(127, 168, 138, 0.22);
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.65;
}

.reservation-form .consent-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--sage);
}

.receipt {
  margin-top: 16px;
  padding: 18px;
  color: var(--sage-deep);
  background: var(--sage-pale);
  border-left: 4px solid var(--sage);
  line-height: 1.7;
}

.receipt a {
  color: var(--sage-deep);
  font-weight: 900;
  text-decoration: underline;
}

.opentalk-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  padding: 22px;
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid rgba(127, 168, 138, 0.18);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(52, 56, 48, 0.1);
  backdrop-filter: blur(14px);
}

.opentalk-panel h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 30px);
}

.opentalk-panel p {
  margin-bottom: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.opentalk-panel img {
  width: 160px;
  height: 160px;
  padding: 8px;
  object-fit: contain;
  background: white;
  border: 1px solid rgba(127, 168, 138, 0.18);
  border-radius: 18px;
}

.match-layout {
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
}

.match-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.match-notes span {
  padding: 10px 14px;
  color: var(--sage-deep);
  background: rgba(255, 253, 248, 0.68);
  border: 1px solid rgba(127, 168, 138, 0.2);
  border-radius: 999px;
}

.match-showcase {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: 12px;
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.94), rgba(234, 243, 236, 0.5));
  border: 1px solid rgba(127, 168, 138, 0.16);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.match-showcase img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border-radius: 24px;
  object-fit: cover;
}

.glass-note {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  display: grid;
  gap: 6px;
  padding: 20px;
  color: white;
  background: rgba(36, 51, 40, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  backdrop-filter: blur(16px);
}

.qa-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.qa-panel {
  padding: 24px;
  background: rgba(255, 253, 248, 0.62);
  border: 1px solid rgba(255, 253, 248, 0.72);
  border-radius: 26px;
  box-shadow: 0 18px 55px rgba(52, 56, 48, 0.08);
  backdrop-filter: blur(14px);
}

details {
  margin-top: 12px;
  padding: 20px;
  background: rgba(255, 253, 248, 0.62);
  border: 1px solid rgba(199, 154, 116, 0.2);
  border-radius: 18px;
}

summary {
  cursor: pointer;
  color: var(--sage-deep);
  font-weight: 800;
}

.rag-search,
.rag-answer {
  padding: 18px;
  background: rgba(234, 243, 236, 0.72);
  border: 1px solid rgba(127, 168, 138, 0.18);
  border-radius: 20px;
}

.rag-search {
  margin: 12px 0;
  color: var(--muted);
}

.rag-answer p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.reservation-list-section {
  width: min(1180px, calc(100% - 36px));
  margin: 24px auto 80px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(234, 243, 236, 0.76), rgba(255, 253, 248, 0.7));
  border: 1px solid rgba(255, 253, 248, 0.74);
  border-radius: 34px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.privacy-copy {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.reservation-table {
  max-height: 286px;
  overflow: auto;
  margin-top: 22px;
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(127, 168, 138, 0.18);
  border-radius: 22px;
}

.reservation-table [role="row"] {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 1fr 0.8fr 1fr;
  min-width: 760px;
}

.reservation-table span {
  padding: 14px;
  border-right: 1px solid rgba(127, 168, 138, 0.16);
  border-bottom: 1px solid rgba(127, 168, 138, 0.16);
}

.table-head span {
  color: var(--sage-deep);
  font-weight: 800;
  background: var(--sage-pale);
}

.certificates {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.certificates article {
  padding: 20px;
  background: rgba(255, 253, 248, 0.58);
  border: 1px solid rgba(255, 253, 248, 0.72);
  border-radius: 22px;
}

.certificates span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  color: white;
  background: var(--sage);
  border-radius: 50%;
}

.certificates strong,
.certificates p {
  display: block;
  margin: 0;
}

.certificates p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: 62px clamp(24px, 8vw, 120px) 70px;
  color: rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(135deg, rgba(83, 112, 91, 0.96), rgba(112, 145, 119, 0.92)),
    var(--sage-deep);
  border-top: 1px solid rgba(199, 154, 116, 0.22);
}

.footer-brand {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-self: start;
}

.footer-icon {
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.86;
}

.footer-wordmark {
  width: min(360px, 58vw);
  filter: brightness(0) invert(1);
  opacity: 0.86;
}

.company-info {
  display: grid;
  gap: 4px;
  text-align: left;
  justify-self: end;
}

.company-info p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 320px 220px;
  }

  .work-grid,
  .trust-strip,
  .qa-split,
  .certificates {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-selector {
    min-height: 290px;
  }

  .category-choice,
  .category-choice:hover,
  .category-choice:focus-visible,
  .category-choice.active {
    flex: 1 1 calc(50% - 8px);
    height: 260px;
    transform: scale(0.96);
  }

  .category-choice.active {
    height: 280px;
    flex-grow: 1.4;
    transform: scale(1);
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .opentalk-panel {
    grid-template-columns: 1fr;
  }

  .company-info {
    justify-self: start;
  }

  .modal-panel {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .modal-image-wrap {
    min-height: 360px;
  }

  .modal-copy {
    min-height: auto;
    padding: 18px 8px 8px;
  }
}

@media (max-width: 640px) {
  .section-band {
    width: min(100% - 24px, 1180px);
    padding: 42px 0;
  }

  .site-header {
    padding: 14px 12px;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
  }

  .brand-wordmark {
    width: 154px;
  }

  .hero {
    min-height: auto;
  }

  .hero-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 340px 260px 220px;
  }

  .hero-photo.large {
    grid-row: auto;
  }

  .category-selector {
    min-height: 0;
    flex-wrap: wrap;
  }

  .category-choice,
  .category-choice:hover,
  .category-choice:focus-visible,
  .category-choice.active {
    flex: 1 1 100%;
    height: 168px;
    transform: none;
  }

  .category-choice.active {
    height: 220px;
    transform: none;
  }

  .catalog-carousel {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .footer-brand {
    gap: 12px;
  }

  .footer-icon {
    width: 54px;
    height: 54px;
  }

  .gallery-modal {
    padding: 12px;
  }

  .modal-panel {
    max-height: calc(100vh - 24px);
    padding: 12px;
    border-radius: 24px;
  }

  .modal-image-wrap {
    min-height: 260px;
    border-radius: 18px;
  }

  .modal-copy h2 {
    font-size: 26px;
  }

  .modal-actions {
    display: grid;
  }

  .modal-arrow {
    top: 155px;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .trust-strip,
  .work-grid,
  .qa-split,
  .reservation-form,
  .certificates {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 30px;
  }
}
