*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --cream: #fdf6ee;
    --brown: #5c3d2e;
    --rose: #c8896a;
    --light: #fff9f4;
    --text: #2e1f14;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}

/* ── Nav ── */
header {
    background: var(--light);
    border-bottom: 1px solid #e8ddd4;
    position: sticky;
    top: 0;
    z-index: 10;
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--brown);
    letter-spacing: 0.05em;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--brown);
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav a:hover { color: var(--rose); }

/* скрываем десктопное меню и бургер на разных брейкпоинтах */
.burger { display: none; }

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, var(--brown) 0%, #8b5e4a 100%);
    color: white;
    padding: clamp(4rem, 10vw, 8rem) 1.25rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(1.6rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Button ── */
.btn {
    display: inline-block;
    background: var(--rose);
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 2px;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.05em;
    transition: background 0.2s;
    word-break: break-all;
}

.btn:hover { background: #b5785a; }

/* ── Sections ── */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 5rem) 1.25rem;
}

.section-alt {
    max-width: 100%;
    background: var(--light);
}

.section-alt .section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 5rem) 1.25rem;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--brown);
    margin-bottom: 1.25rem;
}

/* ── Grid ── */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.card {
    background: white;
    padding: 1.5rem;
    border-top: 3px solid var(--rose);
}

.card h3 {
    color: var(--brown);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

/* ── Footer ── */
footer {
    background: var(--brown);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 2rem 1.25rem;
    font-size: 0.9rem;
}

/* ── FAB меню (мобайл, снизу справа) ── */
.fab {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--brown);
    color: white;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transition: background 0.2s;
    align-items: center;
    justify-content: center;
}

.fab:hover { background: var(--rose); }

.fab-icon { line-height: 1; }

.fab-menu {
    display: none;
    position: fixed;
    bottom: 5rem;
    right: 1.5rem;
    z-index: 99;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s, transform 0.2s;
}

.fab-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.fab-link {
    background: var(--brown);
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.2s;
    white-space: nowrap;
}

.fab-link:hover { background: var(--rose); }

/* ── Tablet 600px+ ── */
@media (min-width: 600px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Desktop 768px+ ── */
@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* десктопное меню — показываем */
    nav ul { display: flex; }
    .burger { display: none; }

    /* FAB — скрываем */
    .fab { display: none !important; }
    .fab-menu { display: none !important; }
}

/* ── Mobile: скрываем десктопное меню, показываем FAB ── */
@media (max-width: 767px) {
    nav ul { display: none; }

    .fab {
        display: flex;
    }

    .fab-menu {
        display: flex;
    }
}
