:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-alt: #eef3ef;
  --text: #17201d;
  --muted: #5e6863;
  --line: #d9dfdb;
  --brand: #176f63;
  --brand-strong: #0e4f47;
  --accent: #c06748;
  --accent-soft: #f2e2d9;
  --shadow: 0 18px 42px rgba(22, 32, 29, 0.12);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

main {
  word-break: keep-all;
  overflow-wrap: break-word;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

select {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 20;
  border-radius: var(--radius);
  background: var(--brand-strong);
  color: #fff;
  padding: 10px 14px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 223, 219, 0.9);
  background: rgba(246, 247, 244, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-width: 0;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-size: 15px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  line-height: 1.1;
}

.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
}

.brand-english {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.site-nav a,
.site-nav-button {
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  padding: 8px 10px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav-button:hover,
.site-nav-button:focus {
  background: var(--surface-alt);
  color: var(--text);
}

.site-main {
  min-height: 70vh;
}

.section {
  padding: 72px 24px;
}

.section.alt {
  background: var(--surface);
}

.section-inner {
  width: 100%;
  min-width: 0;
  max-width: var(--max);
  margin: 0 auto;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-bottom: 28px;
}

#pricing .section-heading,
#principles .section-heading {
  max-width: none;
}

.eyebrow {
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
}

.section-heading h2,
.detail-block h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.section-heading p,
.detail-block p,
.lead {
  margin: 0;
  color: var(--muted);
}

.mobile-break-space {
  display: none;
}

.hero {
  padding: 56px 24px 44px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 44px;
  width: 100%;
  min-width: 0;
  max-width: var(--max);
  margin: 0 auto;
}

.hero-copy {
  display: grid;
  gap: 18px;
  width: 100%;
  min-width: 0;
}

.hero-copy > * {
  min-width: 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 800;
  padding: 6px 12px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: 44px;
  line-height: 1.18;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.text-highlight {
  color: var(--brand);
}

.hero p {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font: inherit;
  min-width: 0;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  padding: 11px 16px;
  text-align: center;
  overflow-wrap: anywhere;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--brand);
  color: #fff;
}

.button.primary:hover,
.button.primary:focus {
  background: var(--brand-strong);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.button.secondary:hover,
.button.secondary:focus {
  border-color: var(--brand);
}

.button.danger {
  border-color: #e2b2aa;
  background: #fff7f5;
  color: #a83528;
}

.button.danger:hover,
.button.danger:focus {
  border-color: #a83528;
  background: #fff0ed;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.hero-media {
  overflow: hidden;
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

[data-layout="media-left"] .hero-copy {
  order: 2;
}

[data-layout="media-left"] .hero-media {
  order: 1;
}

[data-layout="compact"] .section {
  padding-top: 52px;
  padding-bottom: 52px;
}

[data-layout="compact"] .hero {
  padding-top: 42px;
}

[data-layout="compact"] .hero-media img {
  height: 340px;
}

[data-layout="compact"] .card,
[data-layout="compact"] .service-card,
[data-layout="compact"] .stat-card,
[data-layout="compact"] .process-card,
[data-layout="compact"] .faq-card {
  padding: 18px;
}

[data-layout="spacious"] .section {
  padding-top: 92px;
  padding-bottom: 92px;
}

[data-layout="spacious"] .hero-inner {
  gap: 64px;
}

[data-layout="spacious"] .hero-media img {
  height: 480px;
}

[data-layout="proof-led"] .stat-card strong {
  font-size: 34px;
}

[data-layout="proof-led"] .card-grid {
  gap: 20px;
}

[data-layout="proof-led"] .card,
[data-layout="proof-led"] .stat-card {
  box-shadow: var(--shadow);
}

.stats-grid,
.service-grid,
.card-grid,
.process-grid,
.faq-grid {
  display: grid;
  gap: 16px;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#principles .card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-calculator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 20px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
}

.pricing-calculator-copy {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.pricing-calculator-copy h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.28;
  overflow-wrap: break-word;
}

.pricing-calculator-copy p,
.pricing-note {
  margin: 0;
  color: var(--muted);
}

.pricing-policy {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 1.18fr);
  gap: 18px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 22px;
}

.pricing-policy h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.pricing-policy p {
  margin: 8px 0 0;
  color: var(--muted);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.pricing-policy dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.pricing-policy dl div {
  display: grid;
  grid-template-columns: minmax(90px, 0.36fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.pricing-policy dt {
  color: var(--brand-strong);
  font-weight: 900;
}

.pricing-policy dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.pricing-table-wrap {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
}

.pricing-table-heading {
  display: grid;
  gap: 6px;
}

.pricing-table-heading h3,
.pricing-table-heading p {
  margin: 0;
}

.pricing-table-heading h3 {
  font-size: 22px;
  line-height: 1.25;
}

.pricing-table-heading p {
  color: var(--muted);
}

.pricing-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pricing-table {
  width: 100%;
  min-width: 760px;
  table-layout: fixed;
  border-collapse: collapse;
  background: var(--surface);
}

.pricing-table th,
.pricing-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.pricing-table thead th {
  background: var(--surface-alt);
  color: var(--brand-strong);
  font-size: 13px;
}

.pricing-table tbody th {
  width: 18%;
  font-weight: 900;
}

.pricing-table th:nth-child(2),
.pricing-table td:nth-child(2) {
  width: 25%;
}

.pricing-table th:nth-child(n + 3),
.pricing-table td:nth-child(n + 3) {
  width: 19%;
}

.pricing-price-heading {
  text-align: center !important;
}

.pricing-price-cell {
  vertical-align: middle !important;
}

.price-cell {
  min-width: 0;
}

.price-cell-amount {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.1em 3.5em;
  align-items: baseline;
  width: 100%;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.price-number {
  justify-self: end;
  text-align: right;
}

.price-unit {
  justify-self: start;
  text-align: left;
}

.price-qualifier {
  min-width: 0;
  margin-left: 0.2em;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}

.price-cell-text {
  display: block;
  text-align: center;
  white-space: nowrap;
}

.pricing-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pricing-controls label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-weight: 800;
}

.pricing-control-room {
  grid-column: 1;
  grid-row: 1;
}

.pricing-control-prepay {
  grid-column: 2;
  grid-row: 1;
}

.pricing-calculator-notes {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 2;
  gap: 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pricing-calculator-notes span {
  white-space: nowrap;
}

.pricing-controls input,
.pricing-controls select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  padding: 9px 12px;
}

.pricing-result {
  display: grid;
  gap: 10px;
}

.pricing-result p {
  display: grid;
  gap: 2px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.pricing-result strong {
  color: var(--brand-strong);
  font-size: 24px;
  line-height: 1.2;
}

.pricing-result span {
  color: var(--muted);
}

.card,
.service-card,
.stat-card,
.process-card,
.faq-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
}

.service-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.service-card h3,
.card h3,
.process-card h3,
.faq-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.32;
  overflow-wrap: break-word;
}

.service-card p,
.card p,
.process-card p,
.faq-card p {
  margin: 0;
  color: var(--muted);
}

.work-cases {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.work-cases-heading {
  max-width: 760px;
}

.work-cases-heading h3 {
  margin: 6px 0 8px;
  font-size: 25px;
  line-height: 1.3;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.work-cases-heading p,
.work-case-note,
.work-cases-note {
  margin: 0;
  color: var(--muted);
}

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

.work-case-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
}

.work-case-copy h4 {
  margin: 6px 0 8px;
  font-size: 19px;
  line-height: 1.32;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.work-case-copy p {
  margin: 0;
  color: var(--muted);
}

.work-case-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.work-case-image {
  position: relative;
  margin: 0;
  min-width: 0;
}

.work-case-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) - 2px);
  object-fit: cover;
  background: #e7edf0;
}

.work-case-image span {
  position: absolute;
  top: 8px;
  left: 8px;
  border-radius: 999px;
  background: rgba(13, 31, 37, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 6px 8px;
}

.notice-card {
  display: grid;
  align-content: start;
  gap: 8px;
}

.notice-meta {
  display: flex;
  min-height: 22px;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.notice-meta strong {
  color: var(--brand-strong);
}

@media (min-width: 641px) {
  .process-card.single-line p {
    font-size: 15px;
    white-space: nowrap;
  }

  .notice-card.single-line p,
  .faq-card.single-line p {
    font-size: 14px;
    white-space: nowrap;
  }
}

.service-link {
  display: inline-flex;
  width: fit-content;
  border-bottom: 2px solid var(--accent);
  color: var(--brand-strong);
  font-weight: 900;
}

.company-index-card {
  min-height: 300px;
}

.company-index-meta {
  display: grid;
  gap: 4px;
  margin: 14px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  list-style: none;
}

.company-index-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.company-index-links a:not(.service-link) {
  color: var(--muted);
  font-weight: 800;
}

.stat-card strong {
  display: block;
  color: var(--brand-strong);
  font-size: 28px;
  line-height: 1.2;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.about-layout,
.contact-layout,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 32px;
  align-items: start;
}

.contact-layout-single {
  grid-template-columns: 1fr;
}

#about .about-layout {
  grid-template-columns: 1fr;
  gap: 18px;
}

#about .section-heading {
  max-width: none;
}

.about-panel,
.contact-panel,
.detail-aside {
  border-left: 4px solid var(--brand);
  background: var(--surface-alt);
  padding: 24px;
}

.contact-meta {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.contact-panel .contact-meta {
  margin-top: 0;
  margin-bottom: 16px;
}

.contact-phone {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid rgba(18, 109, 99, 0.22);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.contact-phone,
.footer-phone {
  color: inherit;
  text-decoration: none;
}

.contact-phone span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.contact-phone strong {
  color: var(--brand-strong);
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: 0;
}

.contact-meta p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.contact-meta strong {
  color: var(--text);
}

.contact-meta span {
  color: var(--muted);
}

.list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 18px;
}

.list li::before {
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.detail-hero {
  background: var(--surface);
}

.detail-layout {
  align-items: stretch;
}

.detail-layout-wide {
  grid-template-columns: 1fr;
}

.detail-layout-wide .detail-aside .process-grid {
  grid-template-columns: 1fr;
}

.detail-layout-wide .single-line p,
.detail-layout-wide .single-line span {
  font-size: 14px;
  white-space: nowrap;
}

.detail-main {
  display: grid;
  gap: 18px;
}

.detail-block {
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
}

.detail-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-aside {
  display: grid;
  align-content: start;
  gap: 16px;
}

.detail-aside .detail-block {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.detail-aside .process-grid {
  grid-template-columns: 1fr;
}

.detail-aside img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  object-fit: cover;
}

.case-strip {
  display: grid;
  gap: 12px;
}

.case-item {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 16px;
}

.case-item strong {
  display: block;
  margin-bottom: 4px;
}

#contact .contact-layout {
  grid-template-columns: 1fr;
}

#contact .section-heading {
  max-width: none;
}

#contact .section-heading h2 {
  font-size: 28px;
  white-space: nowrap;
}

.legal-hero {
  background: var(--surface);
}

.legal-hero-inner {
  grid-template-columns: minmax(0, 820px);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 28px;
  align-items: start;
}

.legal-main {
  display: grid;
  gap: 18px;
}

.legal-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
}

.legal-block h2,
.legal-aside h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.32;
  overflow-wrap: break-word;
}

.legal-block p,
.legal-note {
  margin: 0;
  color: var(--muted);
}

.legal-aside {
  position: sticky;
  top: 96px;
  border-left: 4px solid var(--brand);
  background: var(--surface-alt);
  padding: 22px;
}

.legal-info {
  display: grid;
  gap: 10px;
  margin: 0;
}

.legal-info div {
  display: grid;
  gap: 2px;
}

.legal-info dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.legal-info dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.legal-note {
  margin-top: 16px;
  font-size: 13px;
}

.legal-table {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal-table > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(180px, 1.2fr) minmax(100px, 0.7fr);
}

.legal-table > div + div {
  border-top: 1px solid var(--line);
}

.legal-table strong,
.legal-table span {
  min-width: 0;
  padding: 10px 12px;
  overflow-wrap: anywhere;
}

.legal-table strong {
  background: var(--surface-alt);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--text);
  color: #f8faf8;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, auto);
  align-items: start;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 24px;
}

.footer-inner p {
  margin: 0;
  color: rgba(248, 250, 248, 0.72);
}

.footer-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 8px;
  color: rgba(248, 250, 248, 0.72);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
}

.footer-links a {
  color: #f8faf8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-note {
  margin-top: 8px !important;
  font-size: 13px;
}

.footer-address {
  margin-top: 7px !important;
  color: rgba(248, 250, 248, 0.72);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.footer-contact {
  display: grid;
  justify-items: end;
  gap: 10px;
  text-align: right;
}

.footer-contact p {
  margin: 0;
}

.footer-contact strong {
  color: #ffd84d;
  font-size: 51px;
  line-height: 1.05;
}

.footer-contact span {
  color: rgba(248, 250, 248, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.review-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: var(--brand-strong);
  color: #fff;
  box-shadow: 0 14px 32px rgba(22, 32, 29, 0.22);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 14px;
}

.review-panel {
  position: fixed;
  right: 18px;
  bottom: 70px;
  z-index: 80;
  display: none;
  gap: 4px;
  max-width: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(22, 32, 29, 0.18);
  color: var(--text);
  padding: 14px;
}

.review-panel strong {
  font-size: 14px;
}

.review-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

html.review-mode .review-panel {
  display: grid;
}

html.review-mode .review-target {
  position: relative;
  outline: 2px dashed rgba(192, 103, 72, 0.75);
  outline-offset: 4px;
}

.review-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 6;
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #c83d2f;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 0 6px;
  pointer-events: none;
  box-shadow: 0 8px 18px rgba(22, 32, 29, 0.22);
}

.loading-state,
.error-state {
  max-width: 720px;
  margin: 80px auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
}

.error-state strong {
  display: block;
  margin-bottom: 8px;
}

@media (max-width: 920px) {
  .desktop-break {
    display: none;
  }

  .mobile-break-space {
    display: inline;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 2px;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .hero-inner,
  .about-layout,
  .contact-layout,
  .detail-layout,
  .legal-layout,
  .pricing-policy {
    grid-template-columns: 1fr;
  }

  .legal-aside {
    position: static;
  }

  [data-layout="media-left"] .hero-copy,
  [data-layout="media-left"] .hero-media {
    order: initial;
  }

  .hero h1 {
    font-size: 36px;
  }

  .site-nav {
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 2px 4px;
    padding-bottom: 0;
  }

  .site-nav a {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 7px 8px;
  }

  .hero-media img {
    height: 320px;
  }

  [data-layout="spacious"] .hero-media img,
  [data-layout="compact"] .hero-media img {
    height: 300px;
  }

  .stats-grid,
  .service-grid,
  .card-grid,
  .process-grid,
  .faq-grid,
  .work-case-grid {
    grid-template-columns: 1fr 1fr;
  }

  #principles .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-layout-wide .single-line p,
  .detail-layout-wide .single-line span {
    font-size: inherit;
    white-space: normal;
  }

  #contact .section-heading h2 {
    font-size: 25px;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .section,
  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding-left: 18px;
    padding-right: 18px;
    gap: 10px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    grid-column: 2;
    grid-row: 1;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-top: 2px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    font-size: 15px;
    padding: 10px 8px;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.24;
    max-width: 100%;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.72;
    max-width: 100%;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .hero-media {
    max-width: 100%;
  }

  .section-heading h2,
  .detail-block h2 {
    font-size: 25px;
  }

  .hero-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .stats-grid,
  .service-grid,
  .card-grid,
  .process-grid,
  .faq-grid,
  .work-case-grid {
    grid-template-columns: 1fr;
  }

  #principles .card-grid {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand-name {
    font-size: 18px;
  }

  .contact-phone strong {
    font-size: 36px;
  }

  .pricing-calculator,
  .pricing-controls {
    grid-template-columns: 1fr;
  }

  .pricing-control-room,
  .pricing-control-prepay,
  .pricing-calculator-notes {
    grid-column: auto;
    grid-row: auto;
  }

  .pricing-control-room {
    order: 1;
  }

  .pricing-calculator-notes {
    order: 2;
  }

  .pricing-control-prepay {
    order: 3;
  }

  .pricing-calculator-notes span {
    white-space: normal;
  }

  .pricing-policy dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .legal-table,
  .legal-table > div {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .footer-address {
    text-align: left;
  }

  .footer-contact {
    justify-items: start;
    text-align: left;
  }

  .footer-contact strong {
    font-size: 44px;
  }

  .review-toggle {
    right: 14px;
    bottom: 14px;
  }

  .review-panel {
    right: 14px;
    bottom: 66px;
    left: 14px;
    max-width: none;
  }
}

.builder-page {
  background: #f4f6f3;
}

.builder-main {
  padding: 28px 24px 56px;
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
  align-items: start;
}

.builder-form {
  display: grid;
  gap: 16px;
}

.builder-section,
.builder-output-inner,
.builder-service {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.builder-section {
  padding: 22px;
}

.builder-section-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.builder-section-heading h1,
.builder-section-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.builder-section-heading p {
  margin: 0;
}

.builder-helper {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.question-card {
  border-left: 4px solid var(--brand);
}

.builder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.builder-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.builder-wide {
  grid-column: 1 / -1;
}

.builder-section label,
.builder-json-label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.builder-check {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.builder-check input {
  width: auto !important;
  margin-top: 4px;
}

.builder-section input,
.builder-section select,
.builder-section textarea,
.builder-json {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
  color: var(--text);
  padding: 10px 11px;
}

.builder-section textarea {
  min-height: 96px;
  resize: vertical;
}

.builder-services {
  display: grid;
  gap: 14px;
}

.builder-service {
  margin: 0;
  padding: 18px;
}

.builder-service legend {
  color: var(--brand-strong);
  font-weight: 900;
  padding: 0 8px;
}

.builder-output {
  position: sticky;
  top: 92px;
}

.builder-output-inner {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.builder-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.builder-status {
  display: grid;
  gap: 6px;
  border-left: 4px solid var(--brand);
  background: var(--surface-alt);
  padding: 12px;
  font-size: 14px;
}

.builder-status.ok {
  border-left-color: var(--brand);
}

.builder-status.warn {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

.builder-status.muted {
  border-left-color: var(--muted);
}

.builder-status strong {
  font-size: 16px;
}

.builder-status span,
.builder-status p {
  color: var(--muted);
  margin: 0;
}

.builder-status ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.builder-preview {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
  padding: 12px;
  font-size: 14px;
}

.builder-preview strong {
  font-size: 16px;
}

.builder-preview dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.builder-preview dl div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
}

.builder-preview dt {
  color: var(--muted);
  font-weight: 800;
}

.builder-preview dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.auto-summary {
  display: grid;
  gap: 8px;
}

.auto-summary b {
  font-size: 15px;
}

.auto-summary ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.auto-summary ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.auto-summary li {
  font-weight: 900;
}

.auto-summary li span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  margin-top: 2px;
}

.action-summary {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.action-summary p {
  color: var(--muted);
  margin: 0;
}

.builder-json-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
  padding: 12px;
}

.builder-json-panel summary {
  cursor: pointer;
  color: var(--brand-strong);
  font-weight: 900;
}

.builder-json-panel .builder-json-label {
  margin-top: 12px;
}

.builder-json {
  min-height: 520px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.45;
  resize: vertical;
}

@media (max-width: 1080px) {
  .builder-layout {
    grid-template-columns: 1fr;
  }

  .builder-output {
    position: static;
  }
}

@media (max-width: 720px) {
  .builder-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .builder-grid.two,
  .builder-actions {
    grid-template-columns: 1fr;
  }
}

.notice-manager[hidden] {
  display: none;
}

.notice-manager {
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.notice-manager-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.notice-manager-heading h1,
.notice-manager-heading h2,
.notice-editor-title-row h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
}

.notice-manager-heading p {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--muted);
}

.notice-manager-heading-actions,
.notice-item-actions,
.notice-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notice-manager-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.notice-list-panel,
.notice-editor-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
}

.notice-list-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 12px;
}

.notice-list-panel label,
.notice-editor-grid label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.notice-list-panel select,
.notice-editor-grid input,
.notice-editor-grid textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
  color: var(--text);
  padding: 10px 11px;
}

.notice-editor-grid textarea {
  min-height: 116px;
  resize: vertical;
}

.notice-list {
  display: grid;
  gap: 8px;
  max-height: 58vh;
  overflow-y: auto;
  padding-right: 2px;
}

.notice-list-item {
  display: grid;
  gap: 4px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
  color: var(--text);
  cursor: pointer;
  padding: 12px;
  text-align: left;
}

.notice-list-item:hover,
.notice-list-item:focus,
.notice-list-item.is-active {
  border-color: var(--brand);
  background: var(--surface-alt);
}

.notice-list-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.notice-list-meta .is-hidden {
  color: #a83528;
}

.notice-editor-panel {
  min-width: 0;
}

.notice-editor-empty {
  display: grid;
  gap: 4px;
  min-height: 320px;
  align-content: center;
  color: var(--muted);
}

.notice-editor-empty strong {
  color: var(--text);
  font-size: 18px;
}

.notice-editor-form {
  display: grid;
  gap: 18px;
}

.notice-editor-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.notice-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.notice-visible-toggle {
  align-self: end;
  min-height: 42px;
}

.notice-visible-toggle input {
  width: auto;
}

@media (max-width: 1080px) {
  .notice-manager-layout {
    grid-template-columns: 1fr;
  }

  .notice-list-panel {
    position: static;
  }

  .notice-list {
    max-height: 260px;
  }
}

@media (max-width: 720px) {
  .notice-manager-heading-actions,
  .notice-item-actions,
  .notice-editor-actions {
    width: 100%;
  }

  .notice-manager-heading-actions .button,
  .notice-editor-actions .button {
    flex: 1 1 148px;
  }

  .notice-editor-grid {
    grid-template-columns: 1fr;
  }

  .notice-editor-title-row h2,
  .notice-manager-heading h1 {
    font-size: 22px;
  }
}
