:root {
    --paper: #f8f4ec;
    --ink: #25205c;
    --coral: #f25f51;
    --coral-dark: #d94c40;
    --apricot: #f6d4b8;
    --lavender: #e9e5f6;
    --charcoal: #37343f;
    --muted: #706b75;
    --border: #ded5ca;
    --white: #fffefa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: radial-gradient(circle at 12% 8%, rgba(246, 212, 184, .24), transparent 26rem), var(--paper);
    color: var(--charcoal);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.hidden, [hidden] { display: none !important; }

.site-header {
    width: min(1380px, calc(100% - 64px));
    height: 90px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 20;
}
.brand {
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.04em;
}
.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 12px;
    background: linear-gradient(145deg, var(--coral), #ff8b70 52%, var(--ink) 53%);
    box-shadow: 0 8px 18px rgba(242, 95, 81, .18);
}
.nav { display: flex; align-items: center; gap: 34px; }
.nav a, .nav button {
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 15px;
    font-weight: 650;
    padding: 12px 0;
    position: relative;
}
.nav .active::after {
    content: "";
    height: 2px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    background: var(--coral);
}
.nav .admin-link { border: 1px solid var(--ink); border-radius: 999px; padding: 9px 17px; }
.menu-button { display: none; }

.hero {
    width: min(1380px, calc(100% - 64px));
    min-height: 520px;
    margin: 32px auto 12px;
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    align-items: center;
    gap: 50px;
}
.eyebrow {
    display: block;
    color: var(--coral);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    margin-bottom: 18px;
}
.hero h1, .section-heading h2, .about-section h2, .app-modal h2 {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
}
.hero h1 {
    max-width: 660px;
    margin: 0;
    font-size: clamp(54px, 5.3vw, 80px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.055em;
}
.hero-copy > p {
    max-width: 590px;
    margin: 27px 0 30px;
    color: #56515c;
    font-size: 19px;
    line-height: 1.7;
}
.primary-button, .secondary-button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    border-radius: 10px;
    font-weight: 750;
    padding: 0 25px;
    transition: .2s ease;
}
.primary-button {
    border: 0;
    color: #fff;
    background: var(--coral);
    box-shadow: 0 12px 26px rgba(242, 95, 81, .18);
    cursor: pointer;
}
.primary-button:hover { background: var(--coral-dark); transform: translateY(-2px); }
.primary-button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.secondary-button { color: var(--ink); border: 1px solid var(--border); background: #fff; }
.hero-art {
    min-height: 470px;
    display: grid;
    place-items: center;
    position: relative;
}
.hero-art::before {
    content: "";
    width: 76%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--apricot);
    opacity: .54;
    position: absolute;
    z-index: -1;
}
.hero-art img { width: 100%; max-height: 500px; object-fit: contain; mix-blend-mode: multiply; }

.catalog { width: min(1380px, calc(100% - 64px)); margin: 25px auto 110px; }
.catalog-tools { display: grid; grid-template-columns: 1.2fr .95fr; gap: 30px; }
.search {
    height: 64px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 254, 250, .75);
    padding: 0 21px;
}
.search span { color: var(--ink); font-size: 32px; line-height: 0; transform: rotate(-18deg); }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search:focus-within { box-shadow: 0 0 0 3px rgba(37, 32, 92, .12); border-color: var(--ink); }
.filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.filters button {
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 254, 250, .65);
    cursor: pointer;
    font-weight: 700;
    transition: .2s ease;
}
.filters button.selected { background: var(--ink); color: #fff; border-color: var(--ink); }
.section-heading {
    margin: 74px 0 25px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2, .about-section h2, .app-modal h2 {
    font-size: 42px;
    line-height: 1.08;
    letter-spacing: -.035em;
    margin: 0;
}
.section-heading > p { color: var(--muted); }
.app-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.app-card {
    min-height: 265px;
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 28px;
    border: 1px solid rgba(222, 213, 202, .8);
    border-radius: 22px;
    background: rgba(255, 254, 250, .92);
    box-shadow: 0 15px 38px rgba(43, 35, 54, .07);
    padding: 25px;
    transition: .2s ease;
}
.app-card:hover { transform: translateY(-4px); box-shadow: 0 20px 45px rgba(43, 35, 54, .12); }
.app-icon { width: 190px; height: 190px; align-self: center; border-radius: 24px; object-fit: cover; background: var(--lavender); }
.app-card-copy { min-width: 0; display: flex; flex-direction: column; }
.card-topline {
    display: flex;
    justify-content: space-between;
    color: var(--coral);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}
.app-card h3 { color: var(--ink); font-size: 32px; letter-spacing: -.04em; margin: 18px 0 10px; }
.app-card p { color: var(--muted); line-height: 1.62; margin: 0; }
.app-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 20px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}
.app-meta button, .app-meta .details-button { border: 0; color: var(--coral); background: transparent; cursor: pointer; font-weight: 750; }
.empty-state { text-align: center; background: #fff; border-radius: 20px; padding: 60px; border: 1px dashed var(--border); }
.empty-state h3 { color: var(--ink); }
.about-section {
    width: min(1380px, calc(100% - 64px));
    margin: 0 auto 100px;
    border-radius: 28px;
    background: var(--ink);
    color: #fff;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: 80px;
    padding: 65px 70px;
}
.about-section h2 { color: #fff; max-width: 520px; }
.about-section > p { color: #d9d5ea; font-size: 18px; line-height: 1.8; }
footer {
    width: min(1380px, calc(100% - 64px));
    min-height: 150px;
    margin: auto;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 35px;
    color: var(--muted);
    font-size: 13px;
}
footer > div { display: flex; flex-direction: column; gap: 5px; color: var(--ink); }
footer > p { text-align: right; }
.footer-brand { font-size: 19px; }
.footer-brand .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    background: rgba(24, 20, 50, .68);
    backdrop-filter: blur(6px);
    padding: 22px;
}
.app-modal {
    width: min(650px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-radius: 26px;
    background: var(--white);
    box-shadow: 0 30px 100px rgba(0,0,0,.25);
    padding: 42px;
}
.app-modal > img { width: 110px; height: 110px; border-radius: 24px; object-fit: cover; margin-bottom: 27px; }
.app-modal > p { color: var(--muted); line-height: 1.75; font-size: 16px; }
.close-button { position: absolute; right: 24px; top: 19px; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 32px; }
.modal-meta { display: flex; gap: 12px; margin: 23px 0; flex-wrap: wrap; }
.modal-meta span { color: var(--ink); background: var(--lavender); border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 700; }
.modal-actions { display: flex; gap: 12px; }
.detail-page { width: min(1100px, calc(100% - 40px)); margin: 55px auto 110px; }
.detail-back { display: inline-block; color: var(--coral); font-weight: 750; margin-bottom: 28px; }
.detail-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--white);
    box-shadow: 0 22px 65px rgba(37,32,92,.1);
    padding: 45px;
}
.detail-icon { width: 260px; height: 260px; border-radius: 30px; object-fit: cover; background: var(--lavender); }
.detail-card h1 { color: var(--ink); font-family: Georgia, serif; font-size: 54px; line-height: 1; letter-spacing: -.05em; margin: 0 0 20px; }
.detail-description { color: var(--muted); font-size: 17px; line-height: 1.8; white-space: pre-line; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.detail-meta span { border-radius: 999px; color: var(--ink); background: var(--lavender); padding: 9px 13px; font-size: 12px; font-weight: 750; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@media (max-width: 1000px) {
    .site-header, .hero, .catalog, .about-section, footer { width: min(100% - 36px, 760px); }
    .menu-button { display: block; border: 0; background: transparent; color: var(--ink); font-size: 26px; cursor: pointer; }
    .nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 78px;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 18px;
        box-shadow: 0 15px 50px rgba(0,0,0,.1);
        flex-direction: column;
        gap: 4px;
    }
    .nav.open { display: flex; align-items: stretch; }
    .nav a, .nav button { text-align: left; padding: 12px; }
    .hero { min-height: 0; grid-template-columns: 1fr; margin-top: 32px; }
    .hero-copy { text-align: center; }
    .hero-copy > p { margin-left: auto; margin-right: auto; }
    .hero-art { min-height: 330px; }
    .hero-art img { max-height: 390px; }
    .catalog-tools, .app-grid, .about-section { grid-template-columns: 1fr; }
    .detail-card { grid-template-columns: 1fr; }
    .detail-icon { width: 190px; height: 190px; }
    .about-section { gap: 30px; padding: 45px; }
    footer { grid-template-columns: 1fr; padding: 40px 0; text-align: center; }
    footer > p { text-align: center; }
    footer > div, footer .brand { align-items: center; justify-content: center; }
}
@media (max-width: 620px) {
    .site-header { height: 76px; }
    .brand { font-size: 19px; }
    .brand-mark { width: 36px; height: 36px; }
    .hero { gap: 5px; }
    .hero h1 { font-size: 48px; }
    .hero-copy > p { font-size: 16px; }
    .hero-art { min-height: 270px; }
    .catalog { margin-top: 10px; }
    .filters { grid-template-columns: 1fr; }
    .filters button { min-height: 48px; }
    .section-heading { align-items: start; flex-direction: column; }
    .section-heading h2, .about-section h2 { font-size: 36px; }
    .app-card { grid-template-columns: 88px 1fr; min-height: 0; gap: 17px; padding: 16px; }
    .app-icon { width: 88px; height: 88px; border-radius: 17px; }
    .app-card h3 { margin-top: 12px; font-size: 25px; }
    .app-card p, .app-meta { grid-column: 1 / -1; }
    .about-section { padding: 35px 25px; }
    .app-modal { padding: 30px 23px; }
    .modal-actions { flex-direction: column; }
    .detail-card { padding: 24px; }
    .detail-card h1 { font-size: 42px; }
    .detail-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
