:root {
    --ink: #1b2528;
    --muted: #667273;
    --navy: #24323f;
    --sage: #7e8d82;
    --gold: #b19768;
    --paper: #f7f4ee;
    --ivory: #fffaf1;
    --line: #e5dfd3;
    --white: #fff;
    --shadow: 0 18px 50px rgba(24, 32, 36, .12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
    background-color: #fbfaf7;
    background-image:
        linear-gradient(rgba(251,250,247,.92), rgba(251,250,247,.92)),
        url("../img/generated/texture-paper.png");
    background-size: auto, 1600px auto;
    background-attachment: scroll, fixed;
    line-height: 1.7;
}

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

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

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

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    z-index: 30;
    padding: 8px 12px;
    background: var(--ink);
    color: var(--white);
}

.skip-link:focus {
    left: 8px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.topbar {
    background: var(--navy);
    color: rgba(255,255,255,.86);
    font-size: 14px;
}

.topbar__inner {
    min-height: 38px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.topbar a {
    color: var(--ivory);
    font-weight: 700;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255,250,241,.94);
    border-bottom: 1px solid rgba(36,50,63,.1);
    backdrop-filter: blur(16px);
    transition: box-shadow .28s ease, background-color .28s ease;
}

.site-header.is-scrolled {
    background: rgba(255,250,241,.98);
    box-shadow: 0 12px 34px rgba(24,32,36,.08);
}

.nav-shell {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    min-width: 176px;
}

.brand__logo {
    width: auto;
    height: 64px;
    object-fit: contain;
    filter: brightness(.76) saturate(1.34) contrast(1.42) drop-shadow(0 1px 0 rgba(36,50,63,.18));
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 700;
}

.nav-group {
    position: relative;
}

.nav-group__button,
.nav-group__link {
    appearance: none;
    border: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    border-radius: 4px;
    background: transparent;
    color: #2f3d41;
    font: inherit;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .22s ease, color .22s ease, transform .22s ease;
}

.nav-group__button::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: .62;
    transition: transform .2s ease;
}

.nav-group.is-open .nav-group__button::after {
    transform: rotate(225deg) translateY(-1px);
}

.nav-group__button:hover,
.nav-group__button:focus-visible,
.nav-group__link:hover,
.nav-group__link:focus-visible,
.nav-group.is-active > .nav-group__button,
.nav-group__link.is-active {
    background: rgba(126,141,130,.14);
    color: var(--navy);
}

.nav-group__button:hover,
.nav-group__link:hover {
    transform: translateY(-1px);
}

.nav-group__menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    z-index: 30;
    min-width: 176px;
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,250,241,.98);
    box-shadow: 0 20px 46px rgba(24,32,36,.12);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -6px);
    transition: opacity .18s ease, transform .18s ease;
}

.nav-group__menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 5px;
    color: #2f3d41;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease;
}

.nav-group__menu a:hover,
.nav-group__menu a:focus-visible,
.nav-group__menu a.is-active {
    background: rgba(126,141,130,.14);
    color: var(--navy);
}

.nav-group.is-open .nav-group__menu {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--ink);
}

.hero {
    position: relative;
    min-height: 680px;
    display: grid;
    align-items: center;
    overflow: hidden;
    background: var(--ink);
}

.hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0) 42%),
        radial-gradient(ellipse at center, rgba(255,250,241,.07), transparent 56%);
    mix-blend-mode: screen;
}

.hero__image {
    position: absolute;
    inset: 0;
}

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

.hero__image::after,
.page-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(18,28,32,.82), rgba(18,28,32,.44) 46%, rgba(18,28,32,.12));
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 92px 0 112px;
    color: var(--white);
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    color: var(--gold);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

h1,
h2,
h3 {
    line-height: 1.22;
    margin: 0;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(42px, 6vw, 72px);
}

.hero p,
.page-hero p {
    margin: 22px 0 0;
    font-size: 20px;
    color: rgba(255,255,255,.88);
    max-width: 640px;
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid var(--navy);
    border-radius: 4px;
    background: var(--navy);
    color: var(--white);
    font-weight: 800;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, border-color .22s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(24,32,36,.14);
}

.btn--light {
    background: var(--ivory);
    border-color: var(--ivory);
    color: var(--ink);
}

.btn--ghost {
    background: transparent;
    color: var(--navy);
}

.btn--danger {
    background: #8f332b;
    border-color: #8f332b;
}

.home-quick {
    position: relative;
    z-index: 3;
    margin-top: -58px;
    padding-bottom: 30px;
}

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

.home-quick__card {
    position: relative;
    min-height: 210px;
    display: grid;
    align-content: end;
    gap: 10px;
    overflow: hidden;
    padding: 30px;
    border: 1px solid rgba(255,255,255,.46);
    border-radius: 8px;
    color: var(--white);
    background: var(--navy);
    box-shadow: 0 24px 64px rgba(24,32,36,.16);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.home-quick__card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(120deg, rgba(27,37,40,.92), rgba(27,37,40,.58)),
        var(--quick-image);
    background-size: cover;
    background-position: center;
    transition: transform .75s ease, filter .32s ease;
}

.home-quick__card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.2));
}

.home-quick__card:hover {
    transform: translateY(-6px);
    border-color: rgba(177,151,104,.68);
    box-shadow: 0 30px 76px rgba(24,32,36,.2);
}

.home-quick__card:hover::before {
    transform: scale(1.035);
    filter: saturate(1.05);
}

.home-quick__card > * {
    position: relative;
    z-index: 1;
}

.home-quick__card--consult {
    --quick-image: url("../img/generated/inquiry-desk.png");
}

.home-quick__card--product {
    --quick-image: url("../img/generated/service-hall.png");
}

.home-quick__label {
    color: var(--gold);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-quick__card strong {
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.18;
}

.home-quick__card p {
    max-width: 520px;
    margin: 0;
    color: rgba(255,255,255,.82);
}

.home-quick__link {
    display: inline-flex;
    width: fit-content;
    margin-top: 8px;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(255,255,255,.72);
    font-weight: 800;
}

.section {
    position: relative;
    padding: 92px 0;
    overflow: hidden;
}

.section--paper {
    background:
        linear-gradient(rgba(247,244,238,.9), rgba(247,244,238,.9)),
        url("../img/generated/texture-paper.png");
    background-size: auto, 1500px auto;
}

.section::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: min(1180px, calc(100% - 40px));
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(177,151,104,.32), transparent);
    pointer-events: none;
}

.section > .container {
    position: relative;
    z-index: 1;
}

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

.section-head h2 {
    font-size: clamp(28px, 4vw, 42px);
}

.section-head p {
    margin: 12px 0 0;
    color: var(--muted);
    max-width: 620px;
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 10px 32px rgba(35,45,48,.06);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background-color .28s ease;
}

.card:hover,
.board-item:hover,
.product-card:hover,
.gallery-card:hover,
.process li:hover {
    transform: translateY(-6px);
    border-color: rgba(177,151,104,.45);
    box-shadow: 0 22px 54px rgba(24,32,36,.12);
}

.card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

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

.number {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: rgba(177,151,104,.18);
    color: #7c6439;
    font-weight: 900;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    gap: 56px;
    align-items: center;
}

.split__image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform .32s ease, box-shadow .32s ease;
}

.split__image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .75s ease;
}

.split__image:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 70px rgba(24,32,36,.16);
}

.split__image:hover img,
.gallery-card:hover img {
    transform: scale(1.035);
}

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

.feature-list li {
    padding-left: 18px;
    border-left: 3px solid var(--gold);
    color: #3d4749;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 22px;
}

.product-showcase-section,
.plan-comparison-section {
    background:
        linear-gradient(180deg, rgba(251,250,247,.76), rgba(251,250,247,.9));
}

.product-showcase-section::before,
.plan-comparison-section::before {
    z-index: 2;
}

.product-showcase-section::after,
.plan-comparison-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 18% 24%, rgba(177,151,104,.16), transparent 34%),
        radial-gradient(circle at 82% 20%, rgba(126,141,130,.12), transparent 36%),
        linear-gradient(90deg, rgba(251,250,247,.9) 0%, rgba(251,250,247,.58) 48%, rgba(251,250,247,.88) 100%),
        url("../img/generated/product-section-bg.png");
    background-size: auto, auto, auto, cover;
    background-position: center;
    opacity: .76;
    filter: saturate(.94) contrast(.98);
    pointer-events: none;
    transform: scale(1.015);
}

.plan-comparison-section::after {
    opacity: .58;
    background-position: center top;
}

.product-card {
    display: grid;
    gap: 20px;
    background: rgba(255,255,255,.88);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 32px rgba(35,45,48,.06);
    backdrop-filter: blur(4px);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.product-card__head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
}

.product-card h3 {
    font-size: 26px;
    margin-bottom: 6px;
}

.product-card p {
    margin: 0;
    color: var(--muted);
}

.price-note {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(177,151,104,.16);
    color: #735c32;
    font-weight: 900;
    white-space: nowrap;
}

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

.product-features li {
    position: relative;
    padding-left: 18px;
    color: #3d4749;
}

.product-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .75em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

.detail-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 18px 50px rgba(35,45,48,.08);
}

.detail-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.55;
}

.detail-table th,
.detail-table td {
    padding: 13px 14px;
    border: 1px solid #ded7ca;
    text-align: center;
    vertical-align: middle;
}

.detail-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f1eadf;
    color: var(--ink);
    font-weight: 900;
}

.detail-table__category {
    width: 96px;
    background: #f7f2ea;
    color: #3b474a;
    font-weight: 900;
}

.detail-table__item {
    width: 190px;
    background: #fffaf3;
    color: #2f3d41;
    font-weight: 800;
}

.detail-table td {
    min-width: 190px;
}

.plan-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.plan-detail-card {
    overflow: hidden;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 44px rgba(24,32,36,.08);
    backdrop-filter: blur(4px);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.plan-detail-card:hover {
    transform: translateY(-5px);
    border-color: rgba(177,151,104,.48);
    box-shadow: 0 28px 68px rgba(24,32,36,.13);
}

.plan-detail-card--featured {
    border-color: rgba(177,151,104,.58);
}

.plan-detail-card__head {
    min-height: 178px;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(36,50,63,.94), rgba(54,68,70,.9)),
        url("../img/generated/texture-paper.png");
    background-size: auto, 900px auto;
    color: var(--white);
}

.plan-detail-card--featured .plan-detail-card__head {
    background:
        linear-gradient(135deg, rgba(177,151,104,.96), rgba(73,86,78,.9)),
        url("../img/generated/texture-paper.png");
    background-size: auto, 900px auto;
}

.plan-detail-card__head span {
    display: inline-flex;
    margin-bottom: 10px;
    color: rgba(255,255,255,.72);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.plan-detail-card__head h3 {
    margin: 0 0 8px;
    color: var(--white);
    font-size: 34px;
    line-height: 1.12;
}

.plan-detail-card__head p {
    margin: 0;
    color: rgba(255,255,255,.78);
}

.plan-detail-card__body {
    display: grid;
    gap: 0;
}

.plan-detail-group {
    padding: 22px 24px;
    border-top: 1px solid var(--line);
}

.plan-detail-group h4 {
    margin: 0 0 14px;
    color: #273438;
    font-size: 18px;
}

.plan-detail-group dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.plan-detail-group dl > div {
    display: grid;
    gap: 4px;
}

.plan-detail-group dt {
    color: #2f3d41;
    font-weight: 900;
}

.plan-detail-group dd {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.comparison-table-toggle {
    margin-top: 24px;
}

.comparison-table-toggle summary {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    color: var(--navy);
    font-weight: 900;
    cursor: pointer;
    transition: background-color .22s ease, border-color .22s ease;
}

.comparison-table-toggle summary:hover {
    background: rgba(126,141,130,.12);
    border-color: rgba(126,141,130,.28);
}

.comparison-table-toggle .detail-table-wrap {
    margin-top: 16px;
}

.page-hero {
    position: relative;
    min-height: 420px;
    display: grid;
    align-items: end;
    overflow: hidden;
    background: var(--ink);
}

.page-hero__media {
    position: absolute;
    inset: 0;
}

.page-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero__content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 94px 0 78px;
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 56px);
}

.process {
    counter-reset: step;
    display: grid;
    gap: 14px;
}

.process li {
    list-style: none;
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 18px;
    align-items: start;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.process li::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: var(--white);
    border-radius: 50%;
    font-weight: 900;
}

.process h3 {
    font-size: 20px;
    margin-bottom: 4px;
}

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

.form-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 34px;
    box-shadow: var(--shadow);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.field {
    display: grid;
    gap: 8px;
}

.field--full {
    grid-column: 1 / -1;
}

.field label {
    font-weight: 800;
    color: #344044;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid #d8d2c7;
    border-radius: 4px;
    background: #fffdf8;
    padding: 12px 14px;
    color: var(--ink);
}

.field textarea {
    min-height: 160px;
    resize: vertical;
}

.checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
}

.text-link {
    appearance: none;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: var(--navy);
    font-weight: 900;
    cursor: pointer;
}

.text-link:hover,
.text-link:focus-visible {
    color: #7c6439;
}

body.is-layer-open {
    overflow: hidden;
}

.terms-layer[hidden] {
    display: none;
}

.terms-layer {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
}

.terms-layer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12,18,20,.52);
    backdrop-filter: blur(8px);
}

.terms-layer__panel {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    padding: 42px;
    border: 0;
    border-radius: 10px;
    background:
        linear-gradient(rgba(255,250,241,.96), rgba(255,250,241,.96)),
        url("../img/generated/texture-paper.png");
    background-size: auto, 1200px auto;
    box-shadow: 0 34px 90px rgba(4,18,20,.28);
    outline: 0;
}

.terms-layer__panel h2 {
    font-size: clamp(28px, 4vw, 40px);
}

.terms-layer__body {
    margin-top: 24px;
    color: #3d4749;
    white-space: pre-line;
}

.terms-layer__close {
    appearance: none;
    position: absolute;
    top: 18px;
    right: 18px;
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 4px;
    background: var(--navy);
    color: var(--white);
    font-weight: 900;
    cursor: pointer;
}

.terms-layer__close:hover,
.terms-layer__close:focus-visible {
    background: #111b1f;
}

.alert {
    padding: 14px 16px;
    border-radius: 6px;
    margin-bottom: 18px;
}

.alert--success {
    background: #eef6ef;
    color: #255c32;
}

.alert--error {
    background: #fff0ed;
    color: #8f332b;
}

.board-list {
    display: grid;
    gap: 12px;
}

.board-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 22px 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background-color .28s ease;
}

.board-item h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.board-item p {
    margin: 0;
    color: var(--muted);
}

.board-meta {
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.gallery-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .75s ease;
}

.gallery-card__body {
    padding: 20px;
}

.gallery-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.gallery-card p {
    margin: 0;
    color: var(--muted);
}

.article {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 42px;
    box-shadow: 0 14px 44px rgba(35,45,48,.06);
}

.article h1 {
    color: var(--ink);
    font-size: clamp(30px, 4vw, 46px);
}

.article__meta {
    color: var(--muted);
    margin: 12px 0 30px;
}

.article__body {
    white-space: pre-line;
}

.article__image {
    margin: 26px 0;
    border-radius: 8px;
    overflow: hidden;
}

.article__image img {
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.site-footer {
    position: relative;
    background:
        linear-gradient(rgba(24,34,37,.96), rgba(24,34,37,.96)),
        url("../img/generated/texture-paper.png");
    background-size: auto, 1400px auto;
    color: rgba(255,255,255,.82);
    padding: 54px 0 28px;
}

.reveal {
    opacity: 1;
    transform: translateY(24px);
    transition:
        opacity .72s ease,
        transform .72s cubic-bezier(.2,.8,.2,1);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 28px;
}

.footer-grid strong {
    display: block;
    color: var(--white);
    font-size: 22px;
    margin-bottom: 8px;
}

.footer-grid span {
    display: block;
    color: var(--gold);
    font-weight: 800;
    margin-bottom: 8px;
}

.footer-grid a {
    display: block;
    margin: 4px 0;
}

.business-info {
    color: rgba(255,255,255,.62);
    font-size: 13px;
}

.footer-phone {
    color: var(--white);
    font-size: 24px;
    font-weight: 900;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.56);
    font-size: 13px;
}

.admin-login-link {
    opacity: .7;
}

@media (max-width: 980px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        left: 20px;
        right: 20px;
        top: 116px;
        display: none;
        grid-template-columns: repeat(2, 1fr);
        padding: 12px;
        background: var(--ivory);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

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

    .nav-group__button,
    .nav-group__link {
        width: 100%;
        justify-content: space-between;
        padding: 14px;
        white-space: normal;
    }

    .nav-group__menu {
        position: static;
        min-width: 0;
        max-height: 0;
        overflow: hidden;
        padding: 0 0 0 12px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        transition: max-height .24s ease, padding .24s ease;
    }

    .nav-group.is-open .nav-group__menu {
        transform: none;
    }

    .nav-group.is-open .nav-group__menu {
        max-height: 260px;
        padding: 2px 0 8px 12px;
    }

    .nav-group__menu a {
        padding: 9px 12px;
        color: #536062;
    }

    .hero {
        min-height: 620px;
    }

    .split,
    .home-quick__grid,
    .grid--3,
    .grid--2,
    .product-grid,
    .plan-detail-grid,
    .gallery-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        display: block;
    }
}

@media (max-width: 640px) {
    body {
        background-attachment: scroll;
    }

    .container {
        width: min(100% - 28px, 1180px);
    }

    .topbar__inner {
        justify-content: center;
    }

    .nav-shell {
        min-height: 70px;
    }

    .brand {
        min-width: 132px;
    }

    .brand__logo {
        width: auto;
        height: 48px;
    }

    .site-nav {
        top: 108px;
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 560px;
    }

    .hero__content {
        padding: 72px 0 82px;
    }

    .home-quick {
        margin-top: -34px;
        padding-bottom: 12px;
    }

    .home-quick__card {
        min-height: 190px;
        padding: 24px;
    }

    .hero p,
    .page-hero p {
        font-size: 17px;
    }

    .section {
        padding: 62px 0;
    }

    .form-grid,
    .board-item {
        grid-template-columns: 1fr;
    }

    .form-panel,
    .article {
        padding: 24px;
    }

    .terms-layer {
        padding: 14px;
    }

    .terms-layer__panel {
        max-height: calc(100vh - 28px);
        padding: 34px 22px 26px;
    }

    .terms-layer__close {
        top: 12px;
        right: 12px;
    }

    .footer-bottom {
        display: grid;
    }

}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
        filter: none;
    }
}
