/* Общие стили */
html {
  scroll-behavior: smooth;
}

/* Анимации для плавного появления */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

.stagger-children .fade-in {
  transition-delay: 0ms;
}

.stagger-children .fade-in:nth-child(1) { transition-delay: 100ms; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 200ms; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 300ms; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 400ms; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 500ms; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 600ms; }
body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: #1f2d55;
  background-color: #f9fafb;
  line-height: 1.5;
}
a {
  color: #006D75;
  text-decoration: none;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}
h1, h2, h3 {
  font-family: "Source Sans 3", sans-serif;
  margin: 0 0 20px;
  font-weight: 700;
}
p {
  margin: 0 0 20px;
  font-size: 18px;
  color: #4f566b;
}
button {
  background-color: #006D75;
  border: none;
  color: white;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  font-family: "Source Sans 3", sans-serif;
}
button:hover {
  opacity: 0.8;
}
.button {
  background-color: #006D75;
  border: none;
  color: white;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  font-family: "Source Sans 3", sans-serif;
}
.button:hover {
  opacity: 0.8;
}
/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 6px 0;
  transition: all 0.3s ease-in-out;
  z-index: 10000;
  background-color: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

header.scrolled {
  backdrop-filter: blur(7px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);

  background-color: rgba(0, 0, 0, 0.5); /* темный полупрозрачный фон */
  backdrop-filter: blur(7px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.logo {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #fff;
}
nav a {
  margin-left: 24px;
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}
nav a:hover {
  opacity: 0.6;
  outline: none;
}
nav a.active {
  color: #006D75;
  font-weight: 600;
  position: relative;
}

header .button {
  height: auto;
  background: #006d75bf;
  padding: 8px 16px;
  border-radius: 16px;
  /* height: 50px; */
  /* margin-left: 54px; */
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  transition: all 0.3s ease;
}
header .button:hover {
  opacity: 0.8;
  background: #006D75;
}
/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: white; /* чтобы текст был виден на видео */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
  object-fit: cover;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px 20px;
  background: rgba(0,0,0,0.4); /* полупрозрачный фон для читаемости */
  border-radius: 12px;
}

.hero-text h1 {
  font-size: 48px;
  margin-bottom: 16px;
  line-height: 1.1;
  color: #fff;
}
.hero-text p {
  font-size: 20px;
  margin-bottom: 32px;
  color: #f5f5f7;
}
.hero-buttons {
  display: flex;
  gap: 20px;
}
.hero-buttons button {
  margin-right: 20px;
  min-width: 160px;
    box-sizing: border-box;
}
.hero-buttons a {
  box-sizing: border-box;
}
.hero-image {
  width: 540px;
  height: 360px;
  background-color: #d9dde3;
  border-radius: 12px;
}
/* About */
section.about {
  box-sizing: border-box;
  background: white;
  padding: 100px 20px;
  margin: 0 auto;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  scroll-margin-top: 100px;
}
section.about h2 {
  font-size: 36px;
  margin-bottom: 24px;
}
section.about p {
  max-width: 720px;
  font-size: 18px;
  color: #4f566b;
}
.facts {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
  gap: 20px;
  max-width: 720px;
}
.fact {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #006D75;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Features */
section.features {
  padding: 100px 20px;
  box-sizing: border-box;
  background: #f0f3f8;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-margin-top: 100px;
}
.features h2 {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  font-size: 36px;
  color: #0f3760;
  margin-bottom: 24px;
}
.features p {
  margin-bottom: 48px;
  font-size: 18px;
  color: #4f566b;
  max-width: 720px;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 40px;
}

.feature-item {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 30px rgb(0 0 0 / 0.12);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}

.feature-item p {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #0f3760;
  text-align: center;
}
/* News */
section.news {
  padding: 100px 20px;
  box-sizing: border-box;
  background: #f0f3f8;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-margin-top: 100px;
}
.news h2 {
  font-size: 36px;
  margin-bottom: 24px;
  color: #0f3760;
}
.news p.section-subtitle {
  margin-bottom: 48px;
  font-size: 18px;
  color: #4f566b;
  max-width: 720px;
  text-align: center;
}
.news-grid {
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.news-card {
  position: relative;
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(31,45,85,0.06);
  overflow: hidden;
  cursor: pointer;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgb(0 0 0 / 0.12);
}
.news-card .badge {
  display: inline-block;
  background: #e6fffb;
  color: #006D75;
  font-weight: 600;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.news-card h3 {
  font-size: 22px;
  color: #0f3760;
  margin: 8px 0 12px;
}
.news-card p {
  margin: 0 0 16px;
}
.news-card a {
  color: #006D75;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.news-card a .arrow {
  transition: transform 0.2s ease;
}
.news-card a:hover .arrow {
  transform: translateX(2px);
}
/* FAQ */
section.faq {
  padding: 100px 20px;
  box-sizing: border-box;
  background: white;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  scroll-margin-top: 100px;
}
.faq h2 {
  font-size: 36px;
  margin-bottom: 24px;
  color: #0f3760;
}
.faq-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(31,45,85,0.08);
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.05);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgb(0 0 0 / 0.12);
}
.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 600;
  color: #0f3760;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.faq-question .chevron {
  width: 22px;
  height: 22px;
  display: inline-block;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: #006D75;
}
.faq-item.open .faq-question .chevron {
  transform: rotate(90deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px 24px;
}
/* Reviews */
section.reviews {
  box-sizing: border-box;
  background: white;
  padding: 100px 20px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  scroll-margin-top: 100px;
}
section.reviews h2 {
  font-size: 36px;
  margin-bottom: 40px;
  color: #0f3760;
}
.review {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #4f566b;
  max-width: 700px;
  margin-bottom: 32px;
  border-left: 4px solid #006D75;
  padding-left: 16px;
}
.review strong {
  display: block;
  margin-top: 8px;
  color: #0f3760;
  font-weight: 600;
}
/* Contacts */
section.contacts {
  padding: 100px 20px;
  background: #f0f3f8;
  min-height: 100vh;
  box-sizing: border-box;
  display: flex;
}

.contacts .container {
  display: flex;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.contacts-left {
  flex: 1;
}

.contacts-left h2 {
  font-size: 36px;
  color: #0f3760;
  margin-bottom: 12px;
}

.contacts-left .subtitle {
  font-size: 18px;
  color: #555;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: #0f3760;
  font-size: 18px;
}

.contact-item img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.contact-item a {
  text-decoration: none;
  color: inherit;
  color: #1f2d55;
}

.contacts-right {
  flex: 1;
}

.contact-form {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-form label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  color: #1f2d55;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 0;
  margin-bottom: 20px;
  border: none;
  border-bottom: 1px solid #006D75;
  background: transparent;
  font-size: 16px;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
  transition: all 0.3s ease;
}

.contact-form textarea {
  resize: vertical;
}

/* При фокусе */
form.contact-form input:focus,
form.contact-form textarea:focus,
form.contact-form input:hover,
form.contact-form textarea:hover {
  border-bottom-color: #006D75; /* другой акцентный цвет при фокусе */
  box-shadow: 0 4px 6px -4px rgba(0, 0, 0, 0.3); /* лёгкая тень */
}

.contact-form button {
  width: 100%;
  background: #006D75;
  color: white;
  border: none;
  padding: 14px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
}

.contact-form button:hover {
  opacity: 0.8;
}
/* Loader on submit button */
.contact-form button.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}
.contact-form button.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
/* Disabled look fallback */
.contact-form button:disabled {
  opacity: 0.7;
  cursor: default;
}
/* Footer */
footer {
  background-color: #f0f3f8;
  padding: 24px 20px;
  text-align: center;
  font-size: 14px;
  color: #7a7f8c;
  font-family: "Source Sans 3", sans-serif;
}
@media (max-width: 1024px) {
  section.about .container {
    flex-direction: column !important;
    text-align: center;
  }

  .facts {
    align-items: center;
    max-width: 100%;
  }
  .fact {
    justify-content: center;
  }
  .fade-in-right img {
    width: 100% !important;
    max-width: 700px;
    height: auto !important;
    margin-top: 0 !important;
    transform: none !important;
  }
  .fade-in-right img:last-child {
    display: none; /* Скрываем второе изображение на мобильных */
  }
}
@media (max-width: 768px) {
  /* Header */
  .header-inner {
    padding: 0 16px;
    flex-wrap: wrap;
    gap: 16px;
  }
  .logo img {
    width: 40px !important;
    height: 40px;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }
  nav a {
    margin-left: 0;
    font-size: 14px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
  }
  header .button {
    display: none; /* Скрываем кнопку в header на мобильных */
  }
  
  /* Hero */
  .hero {
    min-height: 100vh;
    text-align: center;
    justify-content: center;
  }
  .hero-text {
    max-width: 100%;
    padding: 30px 16px;
    margin: 0 16px;
  }
  .hero-text h1 {
    font-size: 32px;
    line-height: 1.2;
  }
  .hero-text p {
    font-size: 18px;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
  .hero-buttons .button,
  .hero-buttons button {
    width: 100%;
    margin-right: 0;
  }
  
  /* About */
  section.about {
    height: auto;
    padding: 60px 16px;
  }
  section.about .container {
    flex-direction: column !important;
    gap: 40px !important;
    text-align: center;
  }
  section.about h2 {
    font-size: 28px;
  }
  section.about p {
    font-size: 16px;
  }
  .facts {
    align-items: center;
    max-width: 100%;
  }
  .fact {
    font-size: 16px;
    justify-content: center;
  }
  .fade-in-right img {
    width: 100% !important;
    max-width: 400px;
    height: auto !important;
    margin-top: 0 !important;
    transform: none !important;
  }
  .fade-in-right img:last-child {
    display: none; /* Скрываем второе изображение на мобильных */
  }
  
  /* Features */
  section.features {
    padding: 60px 16px;
  }
  .features h2 {
    font-size: 28px;
    text-align: center;
  }
  .features p {
    font-size: 16px;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 400px;
  }
  .feature-item {
    padding: 20px;
  }
  .feature-item p {
    font-size: 16px;
  }
  /* News */
  section.news {
    padding: 60px 16px;
  }
  .news h2 {
    font-size: 28px;
    text-align: center;
  }
  .news p.section-subtitle {
    font-size: 16px;
  }
  
  /* Reviews */
  section.reviews {
    padding: 60px 16px;
  }
  section.reviews h2 {
    font-size: 28px;
    text-align: center;
  }
  .review {
    font-size: 16px;
    margin-bottom: 24px;
    padding-left: 12px;
  }
  
  /* Contacts */
  section.contacts {
    height: auto;
    min-height: auto;
    padding: 60px 16px;
  }
  section.contacts h2 {
    font-size: 28px;
    text-align: center;
  }
   /* section.contacts .container {
    gap: 32px !important;
  }
  .contact-info {
    text-align: center;
    font-size: 16px;
  }
  .contact-form {
    padding: 20px;
  } */
  .contacts .container {
    flex-direction: column;
  }
  .contacts-left, .contacts-right {
    width: 100%;
  }
  
  /* Анимации на мобильных */
  .fade-in-left, .fade-in-right {
    opacity: 0;
    transform: translateY(30px);
  }
  .fade-in-left.visible, .fade-in-right.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  /* Очень маленькие экраны */
  .header-inner {
    padding: 0 12px;
  }
  nav {
    gap: 8px;
  }
  nav a {
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .hero-text h1 {
    font-size: 28px;
  }
  .hero-text p {
    font-size: 16px;
  }
  
  section.about,
  section.features,
  section.reviews,
  section.contacts {
    padding: 40px 12px;
  }
  
  .features-grid {
    gap: 16px;
  }
  
  .feature-item {
    padding: 16px;
  }
}

@media (max-width: 1024px) {
  .header-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;

      flex-wrap: nowrap;           /* не переносим */
      overflow-x: auto;              /* горизонтальный скролл */
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;         /* скрыть скроллбар (Firefox) */
    
    }
    nav::-webkit-scrollbar { display: none; } /* скрыть скроллбар (WebKit) */

  .logo { flex-shrink: 0; }

  nav {
    flex: 1;
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
  }

  nav a {
    flex: 0 0 auto;
    margin-left: 0;
    padding: 8px 10px;
    font-size: 14px;
  }

  header .button {
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 14px;
  }
}