:root {
    --primary-bg: #FFFFFF;
    --secondary-bg: #FAFAFA;
    --accent: #C53501;
    --header-footer: #FAFAFA;
    --text: #171717;
    --menu-text: #171717;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-color: var(--primary-bg);
    color: var(--text);
}

/* Обертка, фиксирует футер внизу */
.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 60px; /* под баннер */
}

/* Оснной контент тянтя */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Центровка */
.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Шапка и фуер */
header, footer {
    padding: 1rem;
    background-color: var(--header-footer);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header img {
    height: 40px;
}

nav a,
footer a {
    margin-left: 1rem;
    text-decoration: none;
    color: var(--menu-text);
}

/* Контент */
h1 {
    text-align: center;
    margin: 2rem 0 1rem;
}

h2 {
    margin-top: 2rem;
}

.offers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.offer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--secondary-bg);
    border-radius: 8px;
    padding: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.offer img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background-color: white;
}

.offer-info {
    flex-grow: 1;
    min-width: 200px;
}

.offer-button {
    flex-shrink: 0;
}

.offer-button a {
    background-color: var(--accent);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    white-space: nowrap;
}

.content {
    padding: 1rem;
    background: var(--secondary-bg);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.content ul, .content ol {
    margin-left: 1.5rem;
}

/* Футр */
footer {
    justify-content: center;
    margin-top: auto;
    color: var(--menu-text);
}

footer a {
    margin: 0 1rem;
    text-decoration: none;
    color: var(--menu-text);
}

/* FAQ */
.faq {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.faq-item {
    background-color: var(--secondary-bg);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.faq-item h3 {
    margin: 0 0 0.5rem;
    color: var(--text);
}

.faq-item p {
    margin: 0;
}

/* Sticky banner */
.sticky-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: var(--header-footer);
    color: var(--menu-text);
    text-align: center;
    padding: 0.75rem 1rem;
    z-index: 1000;
}

.sticky-banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.sticky-banner a.btn {
    background-color: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

/* Mobile */
@media (max-width: 600px) {
    .offer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .offer-info {
        min-width: auto;
    }

    .offer-button {
        width: 100%;
    }

    .offer-button a {
        display: block;
        width: 100%;
    }
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: auto; /* <-- вот это и приклет вправо */
}

/* Мобильная версия */
@media (max-width: 768px) {
    header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between; /* важно */
    }

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--header-footer);
        margin-top: 1rem;
    }

    nav.open {
        display: flex;
    }

    nav a {
        margin: 0.5rem 0;
        padding: 0.5rem 1rem;
    }
}


