/* ================= СБРОС И ОБЩИЕ НАСТРОЙКИ ================= */

@font-face {
    font-family: "Open Sans";
    src: url("https://netology-code.github.io/html-2-diploma/sources/fonts/OpenSans-Regular.woff")
      format("woff");
    font-weight: 400;
  }
  
  @font-face {
    font-family: "Open Sans";
    src: url("https://netology-code.github.io/html-2-diploma/sources/fonts/OpenSans-Bold.woff")
      format("woff");
    font-weight: 700;
  }

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Фоновый и основной цвет для текста */
body {
   margin: 0; 
  background-color: #ffffff;
  color: #000000;
  line-height: 1.6;
  font-size: 16px;
}
  .content-wrapper {
    display: grid;
    grid-template-columns: 30% 1fr; /* 30% для sidebar-left и остальное (1fr) для main-content */
    gap: 20px; /* Расстояние между колонками */
  }

  .sidebar-left {
    background-color: #f0f0f0;
  }

  .main-content {
    background-color: #fff;
    padding: 10px;
    font-style: italic;
    font-size: 16px;
    color: #14693c;
    line-height: 1.5;
  }

  .fig {
    padding: 15px 5px;
    width: 80%;
  }

/* Ссылки без подчеркивания по умолчанию */
a {
  text-decoration: none;
  color: inherit;
}
a:hover {
  text-decoration: underline;
}

/* Списки без маркеров */
ul {
  list-style-type: none;
}

/* ================ СТИЛИ ШАПКИ ================ */
.header {
  width: 100%;
  position: relative;
  overflow: hidden; /* чтобы ::before/::after не вылезали */
  height: 140px;   /* фиксированная высота шапки */
}

/* Верхняя декоративная «полоса» (зелёная) */
.header-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background-color: #14693c; /* зелёный */
  z-index: -1;
}

/* Нижняя декоративная «полоса» (красная) */
.header-top::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background-color: #e31e24; /* красный */
  z-index: -1;
}

/* Контейнер внутри шапки, по центру */
.header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: relative;
}

/* Логотип */
.logo {
  display: block;
  max-height: 100px; /* чтобы поместился в шапку 140px */
  width: auto;
}

/* ================ БЛОК ПРИВЕТСТВИЯ ================ */
.intro {
  max-width: 800px;
  margin: 30px auto 20px; /* сверху 30px, снизу 20px */
  padding: 0 15px;
  text-align: center;
  color: #14693c; /* зелёный */
  font-style: italic;
}
.intro__title {
  margin-top: 10px;
  font-size: 24px;
  color: #14693c;
}

/* ================ БЛОК VK-ВИДЖЕТА (MAIN) ================ */
.vk-container {
  max-width: 900px;
  margin: 0 auto 60px; /* снизу 60px до футера */
  padding: 0 15px;
}

/* Немного фона и бордера для области виджета, чтобы визуально не перепадало */
.vk-widget {
  width: 100%;
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
}

/* ================ ФУТЕР САЙТА ================ */
.footer {
  background-color: #14693c; /* зелёный */
  color: #ffffff;
  padding: 20px 15px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-text {
  font-style: italic;
  margin-bottom: 15px;
}

/* Кнопки «Скачать» в футере */
.button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.download-button {
  display: inline-block;
  margin: 5px;
  padding: 10px 20px;
  background-color: #ffffff;
  color: #14693c;
  border-radius: 20px;
  font-size: 14px;
  transition: background-color 0.3s ease;
}
.download-button:hover {
  background-color: #f2f2f2;
}

/* ================ СТРАНИЦА COOKIE-ПОЛИТИКИ ================ */
/* Если позже создадите файл cookie-policy.html, эти стили подхватятся автоматически */
.policy-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 15px;
}
.policy-content h1 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #14693c;
}
.policy-content h2 {
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #e31e24;
}
.policy-content p,
.policy-content ul {
  margin-bottom: 15px;
  font-size: 16px;
}
.policy-content ul li {
  margin-left: 20px;
}

/* ================ БАННЕР «COOKIE» ================ */
/* Фиксируется внизу экрана, поверх футера */
.cookie-banner {
  position: fixed;           /* Приклеен к низу окна */
  bottom: 0;
  left: 0;
  width: 100%;               /* На всю ширину экрана */
  background-color: #ffffff; /* Сплошной белый фон */
  border-top: 2px solid #14693c; /* Зелёная полоска сверху */
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  z-index: 9999;             /* Поверх всего остального контента */
  padding: 15px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Внутренний контейнер (ограничивает максимальную ширину) */
.cookie-banner__inner {
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;           /* При узких экранах элементы переносятся */
}

/* Текст уведомления */
.cookie-banner__text {
  flex: 1 1 70%;   /* Занимает примерно 70% ширины внутреннего контейнера */
  margin-right: 20px;
  font-size: 14px;
  color: #000000;  /* Тёмно-чёрный текст на белом фоне */
  line-height: 1.4;
}

/* Ссылка «Политика обработки файлов cookie» */
.cookie-banner__link {
  color: #e31e24;  /* Красная, в тон сайту */
  text-decoration: underline;
}

/* Кнопка «Принять» */
.cookie-banner__button {
  flex: 0 0 auto;           /* Занимает ровно необходимое место */
  background-color: #14693c; /* Зелёный фон */
  color: #ffffff;            /* Белый текст */
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* При наведении кнопка чуть темнеет */
.cookie-banner__button:hover {
  background-color: #125634; /* Более тёмный зелёный */
}

/* Адаптив для мобильных устройств (ширина до 600px) */
@media (max-width: 600px) {
  .cookie-banner {
    padding: 10px 15px;
  }
  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-banner__text {
    flex: 1 1 100%;
    margin-right: 0;
    margin-bottom: 10px;
    font-size: 13px;
  }
  .cookie-banner__button {
    width: 100%;
    text-align: center;
  }
}