/* Базовий CSS reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  text-rendering: optimizeSpeed;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

ul, ol {
  list-style: none;
}

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

table {
  border-collapse: collapse;
  border-spacing: 0;
}
/* ----------- */


/* ПОДКЛЮЧЕНИЕ GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

body {
  /* ============ Цвета и шрифты ============ */
  --primary-color:   #0A2342;
  --accent-color:    #D8232A;
  --highlight-color: #F4D35E;
  --bg-color:        #F8F9FA;
  --text-color:      #343A40;
  --heading-color:   #212529;

  /* ============ Базовые стили ============ */
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--heading-color);
  margin: 0 0 1rem 0;
}

/* Ссылки */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Кнопки (общий стиль) */
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 0.375rem;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.button--primary {
  background-color: var(--primary-color);
  color: #fff;
}
.button--primary:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

/* Контейнеры и обёртки */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Очистка списков */
ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Изображения */
img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* ========== Header ========== */
.header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.header__logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}
.header__nav {}
.header__list {
  display: flex;
  gap: 1.5rem;
}
.header__item {}
.header__link {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-color);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}
.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}
.header__link:hover {
  color: var(--primary-color);
}
.header__link:hover::after {
  width: 100%;
}

/* Адаптив без бургер-меню */
@media (max-width: 768px) {
  .header__container {
    flex-direction: column;
    row-gap: 0.75rem;
  }
  .header__list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}
/* ========== Hero (Главная) ========== */
.hero {
  position: relative;
  background: url("../img/hero.png") center/cover no-repeat;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__overlay {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(10, 35, 66, 0.5); /* полупрозрачный primary */
  z-index: 0;
}

.hero__container {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1.5rem;
}

.hero__title {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
  animation-delay: 0.3s;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: #F8F9FA;
  margin-bottom: 2rem;
  line-height: 1.4;
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
  animation-delay: 0.6s;
}

.hero__btn {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
  animation-delay: 0.9s;
}

/* Переиспользуем общие .button--primary */
.button--primary {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Анимация появления */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптив для мобильных */
@media (max-width: 600px) {
  .hero__title {
    font-size: 2.25rem;
  }
  .hero__subtitle {
    font-size: 1rem;
  }
}

/* ========== About Alternative ========== */
.about-alt {
  position: relative;
  padding: 4rem 0;
  background-color: var(--bg-color);
  overflow: hidden;
}
/* Полупрозрачный круг на фоне */
.about-alt::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  background-color: var(--accent-color);
  opacity: 0.1;
  border-radius: 50%;
  z-index: 0;
}

/* Интро */
.about-alt__intro {
  position: relative;
  text-align: center;
  margin-bottom: 3rem;
  z-index: 1;
}
.about-alt__title {
  font-size: 2.25rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
.about-alt__subtitle {
  font-size: 1rem;
  color: var(--text-color);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Фичи */
.about-alt__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}
.feature-card {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}
.feature-card__icon {
  font-size: 2.5rem;
  color: var(--highlight-color);
  margin-bottom: 1rem;
}
.feature-card__title {
  font-size: 1.25rem;
  color: var(--heading-color);
  margin-bottom: 0.75rem;
}
.feature-card__text {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.5;
}

/* Статистика */
.about-alt__stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}
.stat-card {
  text-align: center;
}
.stat-card__number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}
.stat-card__label {
  font-size: 0.9rem;
  color: var(--text-color);
}

/* Анимация появления */
.about-alt__intro, .feature-card, .stat-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease-out forwards;
}
.about-alt__intro { animation-delay: 0.2s; }
.feature-card:nth-child(1) { animation-delay: 0.4s; }
.feature-card:nth-child(2) { animation-delay: 0.6s; }
.feature-card:nth-child(3) { animation-delay: 0.8s; }
.stat-card:nth-child(1) { animation-delay: 1s; }
.stat-card:nth-child(2) { animation-delay: 1.2s; }
.stat-card:nth-child(3) { animation-delay: 1.4s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Адаптив */
@media (max-width: 768px) {
  .about-alt__stats {
    flex-direction: column;
    gap: 1.5rem;
  }
}
/* ========== Services Alternative ========== */
.services-alt {
  position: relative;
  padding: 4rem 0;
  background-color: var(--bg-color);
  overflow: hidden;
}
/* Фоновой декоративный элемент */
.services-alt__decor {
  position: absolute;
  top: -150px;
  right: -150px;
  width: 400px;
  height: 400px;
  background-color: var(--accent-color);
  transform: rotate(45deg);
  opacity: 0.1;
  z-index: 0;
}

.services-alt__container {
  position: relative;
  z-index: 1;
  text-align: center;
}
.services-alt__title {
  font-size: 2.25rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.services-alt__subtitle {
  font-size: 1rem;
  color: var(--text-color);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.services-alt__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.service-card {
  position: relative;
  background: #fff;
  padding: 2rem 1.5rem;
  border-top: 4px solid var(--highlight-color);
  border-radius: 0.75rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.service-card__icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}
.service-card__title {
  font-size: 1.25rem;
  color: var(--heading-color);
  margin-bottom: 0.75rem;
}
.service-card__text {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.5;
}

/* Анимация появления */
.service-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease-out forwards;
}
.service-card:nth-child(1) { animation-delay: 0.3s; }
.service-card:nth-child(2) { animation-delay: 0.5s; }
.service-card:nth-child(3) { animation-delay: 0.7s; }
.service-card:nth-child(4) { animation-delay: 0.9s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Адаптив */
@media (max-width: 600px) {
  .services-alt__subtitle {
    padding: 0 1rem;
  }
}
/* ========== Blog Alternative ========== */
.blog-alt {
  position: relative;
  padding: 4rem 0;
  background-color: var(--bg-color);
  overflow: hidden;
}
/* Декоративный элемент */
.blog-alt__decor {
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background-color: var(--highlight-color);
  opacity: 0.1;
  border-radius: 50%;
  z-index: 0;
}

.blog-alt__container {
  position: relative;
  z-index: 1;
  text-align: center;
}
.blog-alt__title {
  font-size: 2.25rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.blog-alt__subtitle {
  font-size: 1rem;
  color: var(--text-color);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.blog-alt__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

/* Карточка блога */
.blog-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.blog-card__image img {
  width: 100%;
  display: block;
  height: 180px;
  object-fit: cover;
}

.blog-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__title {
  font-size: 1.25rem;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: #64748B;
  margin-bottom: 1rem;
}
.blog-card__icon {
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
  color: var(--accent-color);
}

.blog-card__excerpt {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.5;
  margin-bottom: auto;
}

.blog-card__btn {
  margin-top: 1.5rem;
  align-self: flex-start;
}

/* Анимация появления */
.blog-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease-out forwards;
}
.blog-card:nth-child(1) { animation-delay: 0.3s; }
.blog-card:nth-child(2) { animation-delay: 0.6s; }
.blog-card:nth-child(3) { animation-delay: 0.9s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Адаптив */
@media (max-width: 480px) {
  .blog-card__image img {
    height: 140px;
  }
}
/* ========== Contact Alternative ========== */
.contact-alt {
  padding: 4rem 0;
  background-color: #fff;
}
.contact-alt__title {
  font-size: 2.25rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 0.5rem;
}
.contact-alt__subtitle {
  font-size: 1rem;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.contact-alt__form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact-alt__group {
  display: flex;
  flex-direction: column;
}
.contact-alt__label {
  font-size: 0.9rem;
  color: var(--heading-color);
  margin-bottom: 0.25rem;
}
.contact-alt__input {
  padding: 0.75rem 1rem;
  border: 1px solid #CED4DA;
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
.contact-alt__input:focus {
  outline: none;
  border-color: var(--accent-color);
}
.contact-alt__btn {
  align-self: center;
  padding: 0.75rem 2rem;
  font-weight: 600;
}
.contact-alt__response {
  font-size: 0.95rem;
  text-align: center;
  min-height: 1.2em;
  margin-top: 0.5rem;
}

/* Адаптив */
@media (max-width: 600px) {
  .contact-alt__title {
    font-size: 1.875rem;
  }
  .contact-alt__subtitle {
    font-size: 0.95rem;
    padding: 0 1rem;
  }
}
/* ========== Footer Alternative (Updated) ========== */
.footer-alt {
  background-color: var(--primary-color);
  color: #F8F9FA;
  padding: 2.5rem 1.5rem;
}
.footer-alt__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}
.footer-alt__logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.footer-alt__nav-list,
.footer-alt__info-list,
.footer-alt__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-alt__nav-link,
.footer-alt__info-link,
.footer-alt__contact-link {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: #E9ECEF;
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-alt__nav-link:hover,
.footer-alt__info-link:hover,
.footer-alt__contact-link:hover {
  color: var(--highlight-color);
}
.footer-alt__contact-list li {
  line-height: 1.5;
}

/* Адаптив */
@media (max-width: 600px) {
  .footer-alt__container {
    text-align: center;
  }
}
/* ========== Cookie Popup ========== */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-color);
  color: var(--bg-color);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 10000;
}
.cookie-popup--visible {
  transform: translateY(0);
}
.cookie-popup__text {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}
.cookie-popup__link {
  color: var(--highlight-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}
.cookie-popup__link:hover {
  color: var(--accent-color);
}
.cookie-popup__btn {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--highlight-color);
  color: var(--heading-color);
  border: none;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.cookie-popup__btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
}

/* Адаптив */
@media (min-width: 600px) {
  .cookie-popup__btn {
    margin-top: 0;
  }
}
/* ========== Policy Pages Styling ========== */
.pages {
  background-color: var(--bg-color);
  padding: 4rem 1.5rem;
  color: var(--text-color);
}
.pages .container {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
  font-family: 'Open Sans', sans-serif;
}

/* Заголовки */
.pages h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.25rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}
.pages h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  color: var(--heading-color);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

/* Параграфы */
.pages p {
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

/* Списки */
.pages ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.pages ul li {
  margin-bottom: 0.75rem;
}

/* Выделенный текст */
.pages strong {
  color: var(--primary-color);
  font-weight: 600;
}

/* Ссылки */
.pages a {
  color: var(--accent-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}
.pages a:hover {
  color: var(--highlight-color);
}

/* Адаптив */
@media (max-width: 600px) {
  .pages {
    padding: 2rem 1rem;
  }
  .pages h1 {
    font-size: 1.875rem;
  }
  .pages h2 {
    font-size: 1.375rem;
  }
}
