:root {
    --primary-bg: #457E53;
    --secondary-bg: #73985C;
    --accent: #D07218;
    --header-footer: #EABC38;
    --text: #EABC37;
    --menu-text: #626A1D;
}

* {
    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;
    }
}

       .footer-switcher-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.footer-switcher {
  position: relative;
  margin-top: 25px;
    margin-bottom: 20px;
  
}

.footer-switcher-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #1f2430;
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
}

.footer-switcher-btn::after {
  content: '';
  display: inline-block;
  margin-left: 8px;
  width: 8px;
  height: 8px;
  border-style: solid;
  border-width: 2px 2px 0 0;
  border-color: #fff;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.footer-switcher.open .footer-switcher-btn::after {
  transform: rotate(-135deg);
}

.footer-switcher-menu {
  position: absolute;
  bottom: 100%;
  left: 0;
  min-width: 280px;
  margin-bottom: 8px;
  padding: 6px 0;
  background: #2a2f3a;
  border-radius: 14px;
  display: none;
  list-style: none; 
   margin-bottom: 16px;
}

.footer-switcher.open .footer-switcher-menu {
  display: block;
}

.footer-switcher-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-switcher-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
}

.footer-switcher-menu a:hover {
  background: rgba(255,255,255,.12);
}

.footer-switcher img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
}
