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

html, body {
  scroll-behavior: smooth;
  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=Inter:wght@400;600&family=Playfair+Display:wght@700&display=swap');

body {
  /* Шрифти */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Кольорові змінні */
  --color-bg: #F4F7FA;
  --color-text: #2E3A45;
  --color-primary: #0A3D62;
  --color-secondary: #17A2B8;
  --color-accent: #FF6B6B;

  /* Загальні стилі */
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  scroll-behavior: smooth;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Приклад: глобальні стилі для посилань і кнопок */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--color-secondary);
}

/* Базова кнопка */
.button {
  display: inline-block;
  font-family: var(--font-heading);
  background-color: var(--color-accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ========================
   Хедер
   ======================== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 100;
}
.header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}
.header__logo:hover {
  color: var(--color-accent);
}
.header__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
}
.header__nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.header__nav-link {
  font-weight: 600;
  color: var(--color-text);
  transition: color 0.2s ease, transform 0.2s ease;
}
.header__nav-link:hover {
  color: var(--color-secondary);
  transform: translateY(-2px);
}

/* Адаптивная мобильная навигация */
@media (max-width: 768px) {
  .header__toggle {
    display: block;
  }
  .header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255,255,255,0.95);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  /* Когда меню активно – добавьте этот класс через JS */
  .header__nav--active {
    max-height: 300px; /* достаточная высота для пунктов */
  }
  .header__nav-list {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
}

/* Флаг рядом с логотипом */
.header__flag {
  margin-right: 0.5rem;
  color: var(--color-secondary);
  font-size: 1.25rem;
  vertical-align: middle;
  transition: color 0.3s ease;
}
.header__logo:hover .header__flag {
  color: var(--color-accent);
}

/* CTA-кнопка в хедере */
.header__cta {
  margin-left: auto;
}
.header__cta.button {
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
}
.header__cta.button:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Для мобильных: кнопку-CTA показываем только на десктопе */
@media (max-width: 768px) {
  .header__cta {
    display: none;
  }
}

/* ========================
   Футер
   ======================== */
.footer {
  background-color: var(--color-primary);
  color: #fff;
  padding: 3rem 1.5rem 2rem;
}
.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 1rem;
}

/* Навигация */
.footer__nav-list,
.footer__info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer__nav-link {
  display: block;
  margin-bottom: 0.5rem;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer__nav-link:hover {
  color: var(--color-accent);
}

/* Информация */
.footer__info-link {
  display: block;
  margin-bottom: 0.5rem;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer__info-link:hover {
  color: var(--color-accent);
}

/* Контакты */
.footer__contact-item {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.footer__contact-item a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer__contact-item a:hover {
  color: var(--color-accent);
}

/* Адаптив */
@media (max-width: 768px) {
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .footer__container {
    grid-template-columns: 1fr;
  }
}
/* ========================
   Hero-секция
   ======================== */
.hero {
  position: relative;
  padding: 6rem 1.5rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  color: #fff;
}
.hero__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
}
.hero__content {
  flex: 1;
  animation: fadeInUp 1s ease-out both;
}
.hero__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.hero__subtitle {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}
.hero__btn {
  font-size: 1rem;
}

/* Медиа: картинка и анимации */
.hero__media {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
  animation: fadeIn 1.2s ease-out both 0.5s;
}
.hero__image {
  max-width: 100%;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* Плавающие фигуры */
.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}
.hero__shape--1 {
  width: 120px; height: 120px;
  background-color: var(--color-accent);
  top: -40px; right: 10%;
  animation-delay: 0s;
}
.hero__shape--2 {
  width: 80px; height: 80px;
  background-color: #fff;
  bottom: 10%; left: 5%;
  animation-delay: 2s;
}

/* Анимации */
@keyframes float {
  0%,100%   { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-20px) rotate(45deg); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Адаптив */
@media (max-width: 992px) {
  .hero__container { flex-direction: column-reverse; text-align: center; }
  .hero__content { animation: fadeIn 1s ease-out both; }
}
/* ========================
   Секция «О нас»
   ======================== */
.about {
  padding: 5rem 1.5rem;
  background-color: #fff;
  color: var(--color-text);
}
.about__container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.about__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 3rem;
  position: relative;
}
.about__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--color-secondary);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.about__cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.about__card {
  background-color: var(--color-bg);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.about__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.about__icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  transition: transform 0.5s ease;
}
.about__card:hover .about__icon {
  transform: rotate(360deg) scale(1.2);
}

.about__card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.about__card-text {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.85;
}

/* Адаптив */
@media (max-width: 992px) {
  .about__cards {
    gap: 1.5rem;
  }
}
@media (max-width: 768px) {
  .about__cards {
    flex-direction: column;
    align-items: center;
  }
}
/* ========================
   Секция «Услуги»
   ======================== */
.services {
  padding: 5rem 1.5rem;
  background-color: var(--color-bg);
  color: var(--color-text);
}
.services__container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.services__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 3rem;
  position: relative;
}
.services__title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background-color: var(--color-accent);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.services__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.services__item {
  background-color: #fff;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  width: 260px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.services__item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.1);
}

.services__icon {
  font-size: 2.5rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
  transition: transform 0.5s ease, color 0.3s ease;
}
.services__item:hover .services__icon {
  transform: rotate(360deg) scale(1.2);
  color: var(--color-accent);
}

.services__item-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.services__item-text {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.services__btn {
  margin-top: auto;
  font-size: 0.9rem;
}
.services__btn.button {
  padding: 0.5rem 1rem;
}
.services__btn.button:hover {
  transform: translateY(-2px);
}

/* Адаптив */
@media (max-width: 992px) {
  .services__list {
    gap: 1.5rem;
  }
}
@media (max-width: 768px) {
  .services__list {
    flex-direction: column;
    align-items: center;
  }
}
/* ========================
   Статистика (Stats)
   ======================== */
.stats {
  position: relative;
  padding: 6rem 1.5rem;
  background: linear-gradient(135deg, rgba(10,61,98,0.9), rgba(23,162,184,0.9));
  color: #fff;
  overflow: hidden;
}
.stats__container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.stats__title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  margin-bottom: 3rem;
  position: relative;
}
.stats__title::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background-color: var(--color-accent);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.stats__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
}
.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stats__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--color-accent);
  animation: iconPop 1s ease-out infinite alternate;
}
.stats__number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stats__label {
  font-size: 1rem;
  opacity: 0.85;
}

/* Фоновые фигуры */
.stats::before,
.stats::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  animation: floatSlow 8s ease-in-out infinite;
}
.stats::before {
  width: 300px; height: 300px;
  top: -50px; left: -50px;
}
.stats::after {
  width: 200px; height: 200px;
  bottom: -40px; right: -60px;
  animation-delay: 2s;
}

/* Анимации */
@keyframes iconPop {
  from { transform: scale(1); }
  to   { transform: scale(1.2); }
}
@keyframes floatSlow {
  0%,100%    { transform: translateY(0) rotate(0deg); }
  50%        { transform: translateY(-30px) rotate(45deg); }
}

/* Адаптив */
@media (max-width: 992px) {
  .stats__list { gap: 2.5rem; }
}
@media (max-width: 768px) {
  .stats__list {
    flex-direction: column;
    gap: 2rem;
  }
}

/* ========================
   Контакты
   ======================== */
.contact {
  padding: 5rem 1.5rem;
  background-color: var(--color-bg);
  color: var(--color-text);
}
.contact__container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.contact__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.contact__intro {
  font-size: 1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contact__row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.contact__group {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.contact__label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-align: left;
}
.contact__input,
.contact__textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact__input:focus,
.contact__textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(23,162,184,0.2);
}
.contact__captcha {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.contact__captcha-question {
  font-weight: 600;
  font-size: 1rem;
}
.contact__actions {
  text-align: center;
  margin-top: 1rem;
}
.contact__submit {
  padding: 0.75rem 1.5rem;
}
.contact__error {
  color: var(--color-accent);
  font-size: 0.9rem;
  display: none;
  margin-top: 0.5rem;
}
.contact__success {
  color: var(--color-secondary);
  font-size: 0.9rem;
  display: none;
  margin-top: 0.5rem;
}

/* ========================
   Cookie-popup
   ======================== */
.cookie-popup {
  --popup-bg: rgba(10, 61, 98, 0.95);
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem 1.5rem;
  background-color: var(--popup-bg);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  animation: slideUp 0.5s ease-out;
  z-index: 200;
}
.cookie-popup__message {
  margin: 0;
  flex: 1;
  line-height: 1.4;
}
.cookie-popup__link {
  color: var(--color-secondary);
  text-decoration: underline;
  transition: color 0.2s;
}
.cookie-popup__link:hover {
  color: var(--color-accent);
}
.cookie-popup__btn {
  white-space: nowrap;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}
/* Анимация появления */
@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
/* Анимация скрытия */
.cookie-popup--hide {
  animation: slideDown 0.4s ease-in forwards;
}
@keyframes slideDown {
  from { transform: translateY(0); }
  to   { transform: translateY(100%); }
}

/* Адаптив */
@media (max-width: 576px) {
  .cookie-popup {
    flex-direction: column;
    text-align: center;
  }
  .cookie-popup__btn {
    width: 100%;
  }
}


/* ========================
   Стили для страниц «Политики»
   ======================== */
.pages {
  padding: 4rem 1.5rem;
  background-color: #fff;
  color: var(--color-text);
  font-family: var(--font-body);
}
.pages .container {
  max-width: 800px;
  margin: 0 auto;
}
.pages h1,
.pages h2,
.pages h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.pages h1 {
  font-size: 2.25rem;
  border-bottom: 3px solid var(--color-secondary);
  padding-bottom: 0.5rem;
}
.pages h2 {
  font-size: 1.75rem;
}
.pages p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  opacity: 0.9;
}
.pages ul {
  list-style: disc inside;
  margin-left: 1rem;
  margin-bottom: 1.5rem;
}
.pages ul li {
  margin-bottom: 0.75rem;
}
.pages strong {
  color: var(--color-secondary);
}
.pages a {
  color: var(--color-secondary);
  text-decoration: underline;
  transition: color 0.2s ease;
}
.pages a:hover {
  color: var(--color-accent);
}
@media (max-width: 576px) {
  .pages {
    padding: 2rem 1rem;
  }
  .pages h1 {
    font-size: 1.75rem;
  }
  .pages h2 {
    font-size: 1.5rem;
  }
}
