:root {
    --bg: #fbf7ef;
    --surface: #ffffff;
    --surface-dark: #27211b;
    --text: #2c241d;
    --muted: #74695f;
    --accent: #d58a18;
    --accent-dark: #a96508;
    --border: #eadfce;
    --shadow: 0 14px 40px rgba(54, 37, 19, 0.10);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

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

.container {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(251, 247, 239, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
}

.nav nav {
    display: flex;
    gap: 24px;
    color: var(--muted);
}

.nav nav a:hover {
    color: var(--accent-dark);
}

.hero {
    padding: 90px 0 80px;
    background:
        radial-gradient(circle at 80% 20%, rgba(213, 138, 24, 0.20), transparent 28%),
        linear-gradient(135deg, #fffaf0, #f4ead9);
}

.hero-content {
    min-height: 520px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 70px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent-dark);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

h1 {
    max-width: 700px;
    margin-bottom: 22px;
    font-size: clamp(2.7rem, 6vw, 5.2rem);
    line-height: 1.02;
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.hero-text {
    max-width: 620px;
    color: var(--muted);
    font-size: 1.12rem;
}

.button {
    display: inline-block;
    margin-top: 18px;
    padding: 12px 20px;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.button:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.beer-card {
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 30px;
    background: linear-gradient(145deg, #5d3820, #24160d);
    box-shadow: var(--shadow);
    color: #fff;
    font-size: 1.2rem;
    transform: rotate(3deg);
}

.foam {
    font-size: 3rem;
    margin-bottom: -20px;
}

.glass {
    font-size: 9rem;
    filter: drop-shadow(0 12px 12px rgba(0,0,0,0.3));
}

.section {
    padding: 100px 0;
}

.section-alt {
    background: #2c241d;
    color: #fff;
}

.section-heading {
    margin-bottom: 36px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.style-card {
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.style-card p {
    color: var(--muted);
}

.learn-more {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent-dark);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.fact {
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
}

.fact strong {
    display: block;
    margin-bottom: 8px;
    font-size: 3rem;
    color: #f0b64c;
}

.fact span {
    color: #d6ccc1;
}

.finder {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.finder-controls {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.finder-controls label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.result {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    background: #f5ecdf;
    color: var(--text);
}

.footer {
    padding: 26px 0;
    border-top: 1px solid var(--border);
    background: #fff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(31, 24, 19, 0.62);
}

.hidden {
    display: none;
}

.modal-window {
    position: relative;
    width: min(560px, 100%);
    padding: 36px;
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 2rem;
    cursor: pointer;
}

@media (max-width: 850px) {
    .hero-content,
    .finder {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .facts-grid {
        grid-template-columns: 1fr;
    }

    .beer-card {
        min-height: 260px;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1100px);
    }

    .nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 15px 0;
    }

    .nav nav {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        font-size: 0.9rem;
    }

    .section {
        padding: 70px 0;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 8px;
    }
}
