* {
    box-sizing: border-box;
}

:root {
    --gold: #d8b66a;
    --gold-bright: #f3dc9a;
    --rose: #9b001c;
    --ink: #070504;
    --paper: #fff7e3;
    --panel: rgba(7, 5, 4, 0.72);
    --line: rgba(216, 182, 106, 0.38);
}

html {
    min-height: 100%;
}

body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    color: var(--paper);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.6;
    background: var(--ink);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: url("../Assets/Background.webp") center 72px / min(92vw, 980px) auto no-repeat;
    content: "";
}

body::after {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.66));
    content: "";
}

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

header,
main,
footer {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 0;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    color: var(--gold-bright);
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 500;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.75);
}

nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

nav a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.42);
    color: var(--gold-bright);
}

nav a:hover,
nav a:focus-visible {
    border-color: var(--gold-bright);
    background: rgba(155, 0, 28, 0.38);
    outline: none;
}

nav a.active {
    border-color: var(--gold-bright);
    background: rgba(216, 182, 106, 0.18);
    box-shadow: inset 0 -2px 0 var(--gold-bright);
}

main {
    display: grid;
    gap: 24px;
    padding: 36px 0 48px;
}

section {
    padding: clamp(24px, 4vw, 48px);
    border: 1px solid var(--line);
    background: rgba(7, 5, 4, 0.58);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
}

.page-section,
.page-section[hidden] {
    display: none !important;
    animation: sectionFade 220ms ease-out;
}

.page-section.active {
    display: block !important;
}

.hero {
    min-height: 48vh;
    align-content: end;
    background: linear-gradient(rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.52));
}

.hero.active {
    display: grid !important;
}

.hero h2 {
    max-width: 720px;
    color: var(--gold-bright);
    font-size: clamp(2.3rem, 6vw, 5.6rem);
    font-weight: 500;
    line-height: 1;
    text-shadow: 0 5px 28px rgba(0, 0, 0, 0.82);
}

.hero p,
section > p {
    max-width: 680px;
    margin-bottom: 0;
    font-size: 1.12rem;
}

section h2 {
    color: var(--gold-bright);
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 500;
}

.product-list {
    min-height: 120px;
    border: 1px dashed var(--line);
    background: rgba(255, 247, 227, 0.06);
}

form {
    display: grid;
    gap: 12px;
    max-width: 620px;
}

label {
    color: var(--gold-bright);
}

input,
textarea,
button {
    width: 100%;
    border: 1px solid var(--line);
    font: inherit;
}

input,
textarea {
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.46);
    color: var(--paper);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

button {
    min-height: 46px;
    margin-top: 8px;
    background: var(--gold);
    color: #120c05;
    cursor: pointer;
}

button:hover,
button:focus-visible {
    background: var(--gold-bright);
    outline: none;
}

.form-status {
    min-height: 28px;
    margin: 4px 0 0;
    color: var(--gold-bright);
}

@keyframes sectionFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    padding: 22px 0 32px;
    color: rgba(255, 247, 227, 0.78);
    text-align: center;
}

footer p {
    margin-bottom: 0;
}

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

    body::before {
        background-position: center 96px;
        background-size: min(108vw, 720px) auto;
    }

    header {
        align-items: flex-start;
        flex-direction: column;
    }

    nav ul {
        justify-content: flex-start;
    }

    nav a {
        padding-inline: 12px;
    }

    section {
        padding: 22px;
    }
}
