* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  color: #001f3f;
  background: #fff;
  scroll-behavior: smooth;
}
h1,h2,h3 { font-weight: 700; }
section { padding: 70px 20px; }

/* Header */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(0,31,63,0.95);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90px;           /* фиксированная высота */
  padding: 0 40px;
  z-index: 1000;
  overflow: hidden;       /* лишнее обрезаем */
}

header .logo {
  position: absolute;
  left: 40px;
  height: 100%;           /* по высоте хедера */
  display: flex;
  align-items: center;
}

header .logo img {
  height: 70px;           /* чуть меньше, чем высота хедера */
  width: 70px;
  border-radius: 50%;
  object-fit: cover;
}



header nav a {
  color: #fff;
  margin: 0 15px;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s;
}
header nav a:hover { color: #66ccff; }
header .lang {
  position: absolute;
  right: 40px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
}

/* Мобильная версия */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    padding: 10px 15px;
  }
  header .logo {
    position: static;
    margin-bottom: 10px;
    text-align: center;
  }
  header .logo img {
    height: 60px;
    margin: auto;
  }
  header nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  header nav a {
    margin: 6px 8px;
    font-size: 14px;
  }
  header .lang {
    position: static;
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.8;
  }
}



/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInZoom {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.fade-in { opacity: 0; }
.fade-in.visible { animation: fadeInUp 1s ease forwards; }

/* Hero */
.hero {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url("../images/hero.jpg") center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 280px 20px;
}
.hero h1 { font-size: 50px; margin-bottom: 20px; }
.hero .slogan {
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 1px;
  margin-top: 25px;
  opacity: 0;
  animation: fadeInZoom 2s ease forwards;
}
.hero p { font-size: 22px; opacity: 0.9; margin-top: 15px; }

/* About */
.about {
  max-width: 1200px;
  margin: auto;
  padding-top: 60px;
  text-align: center;
}

.about h2 {
  font-size: 34px;
  margin-bottom: 40px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;

  /* ключ для выравнивания */
  align-items: center;
}

.about-text {
  text-align: left;
}

.about-text p {
  font-size: 18px;
  line-height: 1.8;
}

.about-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
  margin: auto;
}

/* Адаптив */
@media (max-width: 900px) {
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-text { text-align: center; }
}


/* Goals & Tasks */
.goals h2, .tasks h2 { 
  text-align: center; 
  font-size: 34px; 
  margin-bottom: 40px; 
}
.cards, .tasks-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}
.card, .task {
  background: #fff;
  color: #001f3f;
  border-radius: 16px;
  padding: 35px 25px;
  text-align: center;
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover, .task:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.card i, .task i {
  font-size: 28px;
  color: #fff;
  background: #0099ff;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 15px auto;
  transition: background 0.3s, transform 0.3s;
}
.card:hover i, .task:hover i {
  background: #007acc;
  transform: scale(1.1);
}
.card h3, .task h3 { font-size: 20px; margin-bottom: 10px; font-weight: 700; }
.card p, .task p { font-size: 16px; line-height: 1.5; }

/* Subject */
.subject {
  background: #f5faff;
  text-align: center;
}
.subject h2 { font-size: 30px; margin-bottom: 20px; }
.subject p { max-width: 900px; margin: auto; font-size: 18px; }

/* News */
.news h2 { text-align: center; font-size: 34px; margin-bottom: 40px; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
  gap: 25px;
  max-width: 1200px;
  margin: auto;
}
.news-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  overflow: hidden;
  transition: transform 0.3s;
}
.news-card:hover { transform: translateY(-5px); }
.news-card img {
  width: 100%; height: 180px; object-fit: cover;
}
.news-card-content { padding: 20px; }
.news-card h3 { margin-bottom: 10px; font-size: 20px; }
.news-card .date { color: #666; font-size: 14px; margin-bottom: 12px; }
.news-card p { font-size: 16px; margin-bottom: 15px; }
/* Кнопка пока скрыта
.news-card a {
  display: inline-block;
  padding: 8px 14px;
  background: #0099ff;
  color: #fff; border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}
.news-card a:hover { background: #007acc; } */

/* Partners */
.partners { text-align: center; overflow: hidden; padding: 60px 20px; }
.partners h2 { font-size: 34px; margin-bottom: 30px; }
.partners-line {
  display: flex;
  gap: 60px;
  animation: scroll 23s linear infinite;
  width: max-content;
}
.partners-line img {
  height: 150px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: transform 0.3s, filter 0.3s;
}
.partners-line img:hover { filter: none; transform: scale(1.1); }
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Team */
.team h2 { text-align: center; margin-bottom: 35px; font-size: 34px; }
.members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 25px;
  max-width: 1000px;
  margin: auto;
}
.member {
  text-align: center;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.member:hover { transform: translateY(-5px); }
.member img {
  width: 160px; height: 160px;
  border-radius: 50%; object-fit: cover;
  margin-bottom: 15px;
  background: #ddd;
}

/* Contacts + Map */
.contacts {
  background: #001f3f;
  color: #fff;
  padding: 60px 20px;
}
.contacts-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
  align-items: center;
}
.contacts iframe {
  width: 100%; height: 350px; border: 0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.contacts-info h2 { margin-bottom: 20px; font-size: 28px; }
.contacts-info p { margin-bottom: 10px; font-size: 16px; }
.contacts-info a { color: #66ccff; text-decoration: none; }
.contacts-info a:hover { text-decoration: underline; }

/* Copyright */
.copyright {
  text-align: center;
  padding: 15px;
  background: #001530;
  font-size: 14px;
  color: #ccc;
}

header .lang {
  position: absolute;
  right: 40px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}


/* ==== АДАПТИВ ==== */
@media (max-width: 900px) {
  header { flex-direction: column; padding: 10px 20px; text-align: center; }
  header nav { margin-top: 10px; flex-wrap: wrap; justify-content: center; }
  header nav a { margin: 5px 10px; font-size: 14px; }
  header .logo img { height: 60px; max-height: 60px;}


  .hero { padding: 180px 20px; }
  .hero h1 { font-size: 32px; }
  .hero .slogan { font-size: 20px; }
  .hero p { font-size: 18px; }

  .card, .task { padding: 25px 15px; }
  .card h3, .task h3 { font-size: 18px; }
  .card p, .task p { font-size: 15px; }

  .news-card img { height: 160px; }
  .news-card h3 { font-size: 18px; }

  .member img { width: 140px; height: 140px; }
  .member h3 { font-size: 18px; }

  .contacts-container { grid-template-columns: 1fr; text-align: center; }
  .contacts-info h2 { font-size: 24px; }
}
@media (max-width: 600px) {
    header {
    flex-direction: column;
    padding: 15px;
  }
  header .logo {
    position: static;
    margin-bottom: 12px;
    text-align: center;
  }
  header .logo img {
    height: 70px;   /* немного меньше для телефонов */
    width: 70px;
  }


  .hero { padding: 140px 15px; }
  .hero h1 { font-size: 26px; }
  .hero .slogan { font-size: 18px; }

  .card, .task { padding: 20px 12px; }
  .card h3, .task h3 { font-size: 16px; }
  .card p, .task p { font-size: 14px; }

  .news-card img { height: 140px; }
  .news-card p { font-size: 14px; }

  .member img { width: 120px; height: 120px; }
  .member h3 { font-size: 16px; }

  .contacts-info p { font-size: 14px; }
}