:root {
    --red: #dc2626;
    --red-dark: #991b1b;
    --red-soft: #fee2e2;
    --ink: #2c2420;
    --muted: #6b5f57;
    --line: #f1d9d2;
    --paper: #ffffff;
    --bg: #fdf6f2;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

h1, h2, h3, .navbar-brand, .public-footer h2 {
    font-family: 'Fira Sans', 'Roboto', -apple-system, 'Segoe UI', Arial, sans-serif;
}

.public-nav {
    background: #fff;
    margin: 20px auto 0;
    max-width: 1220px;
    border-radius: 999px;
    padding: 6px 10px;
    box-shadow: 0 10px 30px -16px rgba(60, 30, 20, .25);
}

.public-nav .navbar-brand,
.public-nav .nav-link {
    color: var(--ink);
}

.public-nav .navbar-brand {
    color: var(--red-dark);
    font-weight: 800;
    font-size: 1.2rem;
    padding-left: .75rem;
}

.public-nav .nav-link {
    font-weight: 700;
    border-radius: 999px;
    padding: .55rem 1.1rem;
    margin: 0 .1rem;
}

.public-nav .nav-link:hover {
    background: var(--red-soft);
    color: var(--red-dark);
}

.public-nav .nav-login {
    background: var(--red);
    color: #fff !important;
    border: none;
    border-radius: 999px;
    padding: .6rem 1.4rem;
    margin-left: .35rem;
}

.public-nav .nav-login:hover {
    background: var(--red-dark);
}

.public-hero {
    min-height: 480px;
    display: flex;
    align-items: center;
    color: var(--ink);
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.public-hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -90px;
    top: -70px;
    background: var(--red-soft);
    border-radius: 48% 52% 55% 45% / 50% 45% 55% 50%;
    z-index: 0;
}

.public-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: 140px;
    bottom: -90px;
    background: var(--red);
    opacity: .85;
    border-radius: 50%;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: 4.5rem 0;
}

.hero-inner h1 {
    color: var(--red-dark);
    font-weight: 800;
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1.08;
    margin: 0 0 1rem;
}

.hero-inner p {
    max-width: 620px;
    font-size: 1.15rem;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2rem;
}

.hero-actions .btn,
.public-main .btn,
.public-form .btn {
    border-radius: 999px;
    font-weight: 800;
    padding: .85rem 1.75rem;
    border: none;
}

.hero-actions .btn-light {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 10px 24px -14px rgba(60, 30, 20, .3);
}

.hero-actions .btn-outline-light {
    background: var(--red-soft);
    color: var(--red-dark);
}

.hero-actions .btn:hover {
    filter: brightness(.96);
}

.public-main {
    padding: 3.5rem 0;
}

.public-main.narrow {
    max-width: 900px;
}

.public-main section {
    margin-bottom: 3.5rem;
}

.section-title span {
    color: var(--red);
    font-weight: 800;
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .05em;
}

.section-title h2,
.public-main h1,
.public-main h2 {
    color: var(--red-dark);
    font-weight: 700;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.public-card {
    background: var(--paper);
    border: none;
    border-top: 4px solid var(--red-soft);
    border-radius: 20px;
    padding: 1.5rem;
    min-height: 180px;
    box-shadow: 0 14px 30px -20px rgba(60, 30, 20, .25);
}

.public-card h3 {
    color: var(--red-dark);
    font-size: 1.2rem;
    font-weight: 700;
}

.public-card a {
    color: var(--red-dark);
    font-weight: 700;
}

.media-card {
    padding: 0;
    overflow: hidden;
    border-top: none;
}

.media-card img,
.detail-cover,
.gallery-block img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--red-soft);
}

.media-card div {
    padding: 1.25rem;
}

.page-text {
    white-space: pre-wrap;
    line-height: 1.75;
}

.muted-panel,
.contact-strip,
.list-panel {
    background: #fff;
    border: none;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 14px 30px -20px rgba(60, 30, 20, .2);
}

.list-panel a,
.public-footer a {
    display: block;
    color: inherit;
    text-decoration: none;
    margin-bottom: .5rem;
}

.list-panel a {
    color: var(--red-dark);
    font-weight: 700;
}

.list-panel span {
    color: var(--muted);
    font-weight: 400;
}

.gallery-block {
    background: #fff;
    border: none;
    border-radius: 20px;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0 14px 30px -20px rgba(60, 30, 20, .2);
}

.public-form {
    background: #fff;
    border: none;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 14px 30px -20px rgba(60, 30, 20, .2);
}

.public-form label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 700;
}

.check-line {
    display: flex !important;
    gap: .5rem;
    align-items: center;
}

.public-footer {
    background: var(--red-dark);
    color: #fff;
    padding: 3rem 0 2.5rem;
    border-radius: 48px 48px 0 0;
    margin-top: 2rem;
}

.public-footer h2 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
}

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 1050;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    background: #fff;
    color: var(--ink);
    border-radius: 999px;
    padding: .85rem 1.5rem;
    box-shadow: 0 14px 34px -18px rgba(60, 30, 20, .35);
}

.cookie-banner a {
    color: var(--red-dark);
    font-weight: 700;
    margin-right: .75rem;
}

.cookie-banner .btn-light {
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    border: none;
}

@media (max-width: 768px) {
    .public-hero {
        min-height: 420px;
    }

    .public-nav {
        margin: 12px 12px 0;
        border-radius: 28px;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        border-radius: 24px;
    }
}
