* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.site-body {
    font-family: 'Noto Sans KR', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #222;
    --content-width: min(1080px, 92vw);
    --order-scroll-duration: 240s;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: #fff;
    border-bottom: 1px solid #e5e8eb;
}

.site-header__inner {
    width: var(--content-width);
    margin: 0 auto;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    color: inherit;
    min-width: 0;
}

.site-brand__text {
    font-size: 18px;
    font-weight: 700;
}

.site-logo {
    display: block;
    width: auto;
    height: var(--logo-h-web, 40px);
    max-width: 100%;
    object-fit: contain;
}

.btn-hamburger {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 8px;
    transition: background .15s;
}

.btn-hamburger:hover {
    background: #f3f4f6;
}

.btn-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #222;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

.btn-hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.btn-hamburger.is-open span:nth-child(2) {
    opacity: 0;
}

.btn-hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(15, 23, 42, 0.4);
}

.site-nav-overlay[hidden] {
    display: none !important;
}

.site-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    width: min(320px, 86vw);
    height: 100vh;
    background: #fff;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    animation: nav-slide-in .22s ease;
}

.site-nav[hidden] {
    display: none !important;
}

@keyframes nav-slide-in {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.site-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #e5e8eb;
}

.site-nav__head strong {
    font-size: 15px;
}

.site-nav__close {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0 4px;
}

.site-nav__list {
    list-style: none;
    padding: 12px 8px;
    margin: 0;
}

.site-nav__placeholder {
    display: block;
    padding: 14px 12px;
    color: #888;
    font-size: 14px;
}

.site-main {
    flex: 1;
    width: var(--content-width);
    margin: 0 auto;
    padding: 24px 0;
}

.site-footer {
    background: #2f3542;
    color: rgba(255, 255, 255, 0.88);
}

.site-footer__inner {
    width: var(--content-width);
    margin: 0 auto;
    padding: 28px 0 22px;
    font-size: 13px;
    line-height: 1.6;
}

.site-footer__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0 0 14px;
}

.site-footer__list li {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.site-footer__label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
}

.site-footer__list a:hover {
    text-decoration: underline;
}

.site-footer__copy {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.home-gallery {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.home-gallery__empty {
    text-align: center;
    color: #888;
    padding: 60px 16px;
}

.home-gallery__item {
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    background: #fff;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s ease, transform .55s ease;
    line-height: 0;
}

.home-gallery__item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.home-gallery__item img {
    display: block;
    width: 100%;
    height: auto;
}

.consult-cta {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

.consult-cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 64px;
    padding: 18px 20px;
    border: 0;
    border-radius: 0;
    background: #1f7a3a;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
    line-height: 1.2;
    cursor: pointer;
    font-family: inherit;
    animation: consult-soft-blink 2.4s ease-in-out infinite;
}

.consult-cta__btn:hover {
    background: #196433;
}

@keyframes consult-soft-blink {
    0%, 100% {
        opacity: 1;
        filter: brightness(1);
    }
    50% {
        opacity: 0.78;
        filter: brightness(1.08);
    }
}

.order-ticker {
    width: 100%;
    margin: 0;
    padding: 28px 0 32px;
    background: #fff;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s ease, transform .55s ease;
}

.order-ticker.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.order-ticker__head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}

.order-ticker__live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
    animation: order-live-pulse 1.6s ease infinite;
}

.order-ticker__title {
    margin: 0;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1f2933;
}

.order-ticker__viewport {
    position: relative;
    height: 540px;
    overflow: hidden;
    border: 1px solid #eceff3;
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfcfd 0%, #fff 40%, #fff 60%, #fbfcfd 100%);
}

.order-ticker__viewport::before,
.order-ticker__viewport::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 36px;
    z-index: 2;
    pointer-events: none;
}

.order-ticker__viewport::before {
    top: 0;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.order-ticker__viewport::after {
    bottom: 0;
    background: linear-gradient(0deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.order-ticker__track {
    display: flex;
    flex-direction: column;
    will-change: transform;
    animation: order-scroll-up var(--order-scroll-duration) linear infinite;
}

.order-ticker__viewport:hover .order-ticker__track {
    animation-play-state: paused;
}

.order-ticker__list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.order-ticker__item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1.35fr) minmax(0, 1fr);
    column-gap: 36px;
    row-gap: 6px;
    align-items: center;
    padding: 14px 10px 14px 18px;
    border-bottom: 1px solid #f1f3f5;
    font-size: 20px;
    line-height: 1.35;
    color: #334155;
}

.order-ticker__item:nth-child(odd) {
    background: rgba(248, 250, 252, 0.7);
}

.order-ticker__name {
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.02em;
}

.order-ticker__region {
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-ticker__product {
    color: #166534;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes order-scroll-up {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

@keyframes order-live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@media (max-width: 768px) {
    body.site-body {
        --content-width: 99%;
        --order-scroll-duration: 280s;
    }

    .site-logo {
        height: var(--logo-h-mobile, 36px);
    }

    .site-footer__list {
        flex-direction: column;
        gap: 8px;
    }

    .order-ticker {
        padding: 22px 0 26px;
    }

    .order-ticker__title {
        font-size: 27px;
        font-weight: 800;
    }

    .consult-cta__btn {
        min-height: 56px;
        padding: 16px 16px;
        font-size: 18px;
    }

    .order-ticker__viewport {
        height: 420px;
        border-radius: 10px;
    }

    .order-ticker__item {
        grid-template-columns: 72px minmax(0, 1fr);
        grid-template-areas:
            "name product"
            "region region";
        column-gap: 20px;
        row-gap: 6px;
        padding: 13px 10px 13px 14px;
        font-size: 14px;
    }

    .order-ticker__name { grid-area: name; }
    .order-ticker__region {
        grid-area: region;
        grid-column: 1 / -1;
    }
    .order-ticker__product {
        grid-area: product;
        text-align: right;
    }
}

@media (max-width: 480px) {
    .order-ticker__viewport {
        height: 390px;
    }

    .order-ticker__product {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-gallery__item,
    .order-ticker {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .site-nav {
        animation: none;
    }

    .order-ticker__track,
    .order-ticker__live,
    .consult-cta__btn {
        animation: none;
    }
}

/* ===== Site modal (consult) ===== */
body.modal-open {
    overflow: hidden;
}

.site-modal {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px 14px;
}

.site-modal.is-open {
    display: flex;
}

.site-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.site-modal__panel {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    max-height: min(86vh, 720px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.site-modal__panel--sm {
    width: min(420px, 100%);
}

.site-modal__form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: inherit;
    flex: 1;
}

.site-modal__header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #e5e8eb;
}

.site-modal__title {
    margin: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 800;
}

.site-modal__x {
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0 2px;
}

.site-modal__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 18px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.site-modal__body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.site-modal__hint {
    margin: 0 0 12px;
    font-size: 13px;
    color: #64748b;
}

.site-modal__footer {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 18px;
    border-top: 1px solid #e5e8eb;
    background: #fafbfc;
}

.site-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.site-field:last-child {
    margin-bottom: 0;
}

.site-field__label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.site-field__label .req {
    color: #dc3545;
    font-style: normal;
    margin-left: 2px;
}

.site-field input[type="text"],
.site-field input[type="tel"] {
    width: 100%;
    height: 46px;
    border: 1px solid #e5e8eb;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
}

.site-phone {
    display: grid;
    grid-template-columns: 1fr auto 1.2fr auto 1.2fr;
    gap: 6px;
    align-items: center;
}

.site-phone input {
    width: 100%;
    height: 46px;
    border: 1px solid #e5e8eb;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 15px;
    font-family: inherit;
    text-align: center;
    outline: none;
}

.site-phone input:focus {
    border-color: #1f7a3a;
}

.site-phone__dash {
    color: #94a3b8;
    font-weight: 700;
}

.site-field__error {
    margin: 4px 0 0;
    font-size: 13px;
    color: #dc3545;
}

.site-field input:focus {
    border-color: #1f7a3a;
}

.site-field input::placeholder,
.site-phone input::placeholder {
    color: #c5ccd4;
    opacity: 1;
}

.site-field__picker {
    width: 100%;
    min-height: 46px;
    border: 1px solid #e5e8eb;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
    text-align: left;
    font-size: 15px;
    font-family: inherit;
    color: #c5ccd4;
    cursor: pointer;
}

.site-field__picker.is-filled {
    color: #111827;
    font-weight: 600;
}

.btn-site-secondary,
.btn-site-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.btn-site-secondary {
    border: 1px solid #e5e8eb;
    background: #fff;
    color: #334155;
}

.btn-site-primary {
    border: 0;
    background: #1f7a3a;
    color: #fff;
}

.cal__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.cal__month {
    font-size: 16px;
    font-weight: 800;
}

.cal__nav-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e5e8eb;
    border-radius: 8px;
    background: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.cal__week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 6px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}

.cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal__day {
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    color: #1f2937;
}

.cal__day.is-muted {
    color: #cbd5e1;
    pointer-events: none;
}

.cal__day.is-disabled {
    color: #cbd5e1;
    pointer-events: none;
}

.cal__day.is-today {
    box-shadow: inset 0 0 0 1px #1f7a3a;
}

.cal__day.is-selected,
.cal__day:hover:not(.is-muted):not(.is-disabled) {
    background: #1f7a3a;
    color: #fff;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.time-grid__btn {
    height: 42px;
    border: 1px solid #e5e8eb;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.time-grid__btn:hover,
.time-grid__btn.is-selected {
    border-color: #1f7a3a;
    background: #e8f5e9;
    color: #166534;
}

@media (max-width: 480px) {
    .time-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-modal__title {
        font-size: 16px;
    }
}
