:root {
    --bg: #f3ecdf;
    --panel: rgba(255, 255, 255, 0.84);
    --panel-strong: #ffffff;
    --line: rgba(31, 26, 20, 0.08);
    --line-strong: rgba(31, 26, 20, 0.12);
    --ink: #1e1914;
    --muted: #72685f;
    --muted-soft: #8e8379;
    --accent: #f56b1d;
    --accent-deep: #8b4117;
    --soft: #fff5df;
    --shadow: 0 24px 70px rgba(88, 55, 28, 0.14);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(255, 239, 211, 0.8), transparent 28%),
        linear-gradient(180deg, #f7f1e6 0%, #efe5d6 100%);
}

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

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 20px auto 48px;
}

.site-header,
.site-footer,
.section-block,
.hero-section,
.detail-layout {
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.site-header,
.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 18px 22px;
    border-radius: 26px;
    background: rgba(255, 252, 247, 0.75);
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-badge {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.brand-mark small,
.site-footer p,
.product-card p,
.promo-card p,
.detail-copy .lead,
.description-box,
.category-card span {
    color: var(--muted);
}

.site-nav,
.footer-actions,
.cta-row,
.chip-row,
.search-row,
.section-header,
.hero-metrics,
.price-stack {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-nav a,
.footer-link,
.section-header a,
.chip {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
}

.flash-messages {
    margin: 18px 0;
}

.flash-message {
    padding: 14px 16px;
    border-radius: 16px;
    background: #ecfff3;
    color: #0b6d3b;
}

.hero-section,
.section-block,
.detail-layout {
    margin-top: 20px;
    border-radius: var(--radius-xl);
    background: var(--panel);
}

.hero-slider {
    position: relative;
    margin-top: 20px;
}

.hero-track {
    position: relative;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 32px;
    padding: 42px;
    align-items: stretch;
}

.hero-slide {
    margin-top: 0;
}

.hero-slide:not(.is-active) {
    display: none;
}

.hero-copy h1,
.section-header h2,
.section-header h1,
.promo-card h3,
.detail-copy h1,
.inquiry-card h2 {
    margin: 0;
    font-family: "Sora", "Segoe UI", sans-serif;
    letter-spacing: -0.05em;
}

.hero-copy h1 {
    font-size: clamp(2.3rem, 4vw, 4.5rem);
    line-height: 0.95;
}

.hero-copy p {
    max-width: 620px;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(245, 107, 29, 0.12);
    color: var(--accent-deep);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.search-row {
    margin-top: 24px;
    flex-wrap: nowrap;
    align-items: stretch;
}

.search-row input,
.inquiry-form input,
.inquiry-form textarea {
    min-height: 56px;
    width: 100%;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    font: inherit;
}

.inquiry-form textarea {
    width: 100%;
    min-height: 120px;
    padding-top: 14px;
    resize: vertical;
}

.search-row button,
.primary-button,
.secondary-button,
.promo-cta {
    min-height: 56px;
    padding: 0 24px;
    border-radius: 18px;
    border: none;
    font: inherit;
    font-weight: 700;
    white-space: nowrap;
}

.search-row button,
.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.secondary-button {
    background: rgba(255, 255, 255, 0.78);
}

.hero-visual {
    min-height: 420px;
    display: block;
    position: relative;
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.9), transparent 26%),
        linear-gradient(160deg, #dfd2bf, #c5aa89);
    overflow: hidden;
    padding: 28px;
}

.visual-stage {
    position: relative;
    min-height: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.hero-device,
.hero-device-shadow {
    position: absolute;
}

.hero-product-image {
    position: relative;
    z-index: 2;
    max-width: min(100%, 320px);
    max-height: 340px;
    object-fit: contain;
    filter: drop-shadow(0 24px 28px rgba(33, 23, 13, 0.18));
}

.hero-device {
    bottom: 34px;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(61, 60, 67, 0.98), rgba(28, 28, 34, 0.98));
    box-shadow: 0 26px 34px rgba(22, 18, 14, 0.22);
}

.hero-device::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 18px;
    width: 10px;
    height: 64px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
}

.device-front {
    right: 72px;
    bottom: 28px;
    width: 248px;
    height: 352px;
}

.hero-device-shadow {
    right: 54px;
    bottom: 10px;
    width: 286px;
    height: 34px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(110, 84, 56, 0.26), transparent 70%);
}

.hero-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 22px;
}

.hero-point {
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(31, 26, 20, 0.06);
    display: grid;
    gap: 4px;
}

.hero-point strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.hero-point span {
    color: var(--muted);
    line-height: 1.55;
    font-size: 0.94rem;
}

.hero-commerce {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.hero-slider-controls {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

.hero-arrow {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 30px rgba(88, 55, 28, 0.12);
}

.hero-arrow:hover,
.hero-dot:hover {
    transform: translateY(-1px);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border-radius: 999px;
    background: rgba(139, 65, 23, 0.2);
}

.hero-dot.is-active {
    width: 34px;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.section-block {
    padding: 28px;
}

.compact-top {
    padding-top: 22px;
}

.section-header {
    justify-content: space-between;
    margin-bottom: 18px;
}

.countdown-pill,
.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--soft);
    color: #ab6a12;
    font-weight: 700;
}

.category-grid,
.product-grid,
.promo-grid {
    display: grid;
    gap: 18px;
}

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

.category-card,
.product-card,
.promo-card,
.empty-card,
.inquiry-card {
    border-radius: var(--radius-lg);
    background: var(--panel-strong);
    border: 1px solid var(--line-strong);
}

.category-card,
.product-card {
    padding: 20px;
}

.category-card {
    min-height: 154px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-image {
    width: min(100%, 180px);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 14px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.category-card strong,
.product-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.15rem;
    line-height: 1.25;
}

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

.product-art,
.detail-visual {
    border-radius: 22px;
    background:
        radial-gradient(circle at 72% 24%, rgba(255, 193, 136, 0.75), transparent 24%),
        linear-gradient(145deg, #dce8f3, #fdf6ec 52%, #d8c0a6);
}

.product-art {
    width: min(100%, 220px);
    aspect-ratio: 1 / 1;
    margin-bottom: 16px;
    margin-left: auto;
    margin-right: auto;
}

.image-frame {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(145deg, #fffaf3, #f0e3d1);
}

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

.product-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover,
.category-card:hover,
.promo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 34px rgba(68, 47, 27, 0.12);
    border-color: rgba(245, 107, 29, 0.16);
}

.product-body {
    display: grid;
    gap: 8px;
    flex: 1;
}

.product-body p {
    margin: 0;
    line-height: 1.55;
}

.product-meta {
    color: var(--muted-soft);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.product-footer {
    display: grid;
    gap: 12px;
    align-content: end;
}

.product-art.alt {
    background:
        radial-gradient(circle at 72% 24%, rgba(114, 222, 255, 0.55), transparent 24%),
        linear-gradient(145deg, #f7ede6, #eef8ff 52%, #c9dae8);
}

.price-stack {
    flex-wrap: wrap;
    margin-top: 12px;
    gap: 10px;
}

.hero-metrics {
    gap: 16px;
    flex-wrap: wrap;
}

.hero-metrics .price-new {
    font-size: clamp(1.8rem, 2vw, 2.35rem);
}

.hero-metrics .price-old {
    font-size: 1rem;
}

.cta-row {
    flex-wrap: wrap;
}

.cta-row .primary-button,
.cta-row .secondary-button {
    min-width: 190px;
    justify-content: center;
    display: inline-flex;
    align-items: center;
}

.price-stack.large .price-new {
    font-size: 2rem;
}

.price-new {
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 800;
}

.price-old {
    color: rgba(30, 25, 20, 0.38);
    text-decoration: line-through;
}

.promo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 20px;
}

.promo-card {
    min-height: 220px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.promo-copy {
    max-width: 82%;
}

.promo-card.soft {
    background: linear-gradient(145deg, #fffaf1, #f4efe7);
}

.promo-card.warm {
    color: #fff;
    background: linear-gradient(145deg, #8a6748, #b49473);
}

.promo-card.dark {
    color: #fff;
    background: linear-gradient(145deg, #1d232b, #3b4a5d);
}

.promo-card.warm p,
.promo-card.dark p {
    color: rgba(255, 255, 255, 0.8);
}

.promo-cta {
    width: fit-content;
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
}

.chip-row {
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.chip.active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) 360px;
    gap: 24px;
    padding: 28px;
}

.detail-main {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.detail-visual {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    min-height: 0;
    justify-self: start;
}

.detail-image-frame {
    padding: 24px;
}

.detail-image-frame img {
    object-fit: contain;
}

.description-box {
    margin-top: 20px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(243, 236, 223, 0.72);
    line-height: 1.8;
}

.inquiry-card {
    padding: 22px;
}

.inquiry-form {
    display: grid;
    gap: 14px;
}

.inquiry-form label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

.empty-card {
    padding: 28px;
    color: var(--muted);
}

@media (max-width: 980px) {
    .hero-section,
    .detail-layout,
    .detail-main {
        grid-template-columns: 1fr;
    }

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

    .site-header,
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-copy h1 {
        max-width: 12ch;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 16px, 100%);
    }

    .hero-section,
    .section-block,
    .detail-layout {
        padding: 20px;
    }

    .search-row {
        flex-wrap: wrap;
    }

    .search-row button,
    .cta-row .primary-button,
    .cta-row .secondary-button {
        width: 100%;
    }

    .hero-copy h1 {
        max-width: none;
    }

    .hero-visual {
        min-height: 420px;
        padding: 18px;
    }

    .hero-slider-controls {
        gap: 10px;
    }

    .hero-arrow {
        width: 42px;
        height: 42px;
    }

    .detail-visual {
        max-width: none;
    }

    .device-front {
        right: 22px;
        width: 176px;
        height: 268px;
    }

    .hero-device-shadow {
        right: 8px;
        width: 200px;
    }

    .promo-copy {
        max-width: 100%;
    }

    .product-grid,
    .category-grid,
    .promo-grid {
        grid-template-columns: 1fr;
    }

    .site-nav {
        flex-wrap: wrap;
    }
}
