/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}
body {
  font-family: 'Open Sans', sans-serif;
 background: #f5f5f5;
  background-image: 
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 40px 40px; 
  color: #222;
  line-height: 1.6;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #e8f0fe, #f1f5ff); 
  color: #222;
  padding: 15px 30px;
  border-bottom: 1px solid #e0e0e0; 
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-title h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a237e; 
}

.logo-title i {
  font-size: 1.8rem;
  color: #3949ab; 
}

/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav a {
  color: #333; 
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover {
  color: #3949ab; 
}
main {
  flex: 1;
}
/* Hero section */
.hero {
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../assets/news-bg.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5); /* затемнение */
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  animation: fadeUp 1.2s ease-out;
}

/* Лейбл */
.hero-label {
  display: inline-block;
  background: #ff3d00;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: fadeUp 0.8s ease-out;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s forwards;
  animation-delay: 0.3s;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s forwards;
  animation-delay: 0.6s;
}

/* Кнопки */
.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s forwards;
  animation-delay: 0.9s;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  background: #3949ab;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: background 0.3s;
}

.btn:hover {
  background: #283593;
}

.btn-outline {
  background: transparent;
  border: 2px solid #fff;
}

.btn-outline:hover {
  background: #fff;
  color: #3949ab;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;            
  color: #ffffff;                 
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.9); 
  animation: bounce 1.5s infinite;
  cursor: pointer;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}

/* Анимация появления */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: #222;
  color: #fff;
  padding: 20px;
  transition: bottom 0.5s ease;
  z-index: 2000;
}

.cookie-banner.show {
  bottom: 0;
}

.cookie-buttons {
  margin-top: 10px;
}

.cookie-buttons button {
  margin-right: 10px;
  padding: 8px 15px;
  border: none;
  cursor: pointer;
  background: #f44336;
  color: white;
  border-radius: 5px;
  transition: background 0.3s;
}

.cookie-buttons button:hover {
  background: #d32f2f;
}
.articles-section {
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

.articles-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
}

.article-list {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr; /* левая колонка широкая */
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Первая статья — большая */
.article-item:first-child {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.article-item:first-child img {
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

/* Остальные статьи (маленькие) */
.article-item:not(:first-child) img {
  height: 150px;
  object-fit: cover;
}

.article-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.article-item a {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.article-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.article-content {
  padding: 15px;
}

.article-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.article-content p {
  font-size: 0.95rem;
  color: #666;
}

/* Страница статьи */
.article-page {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.news-article {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  animation: fadeUp 0.6s ease-out;
}

.article-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.article-body {
  padding: 25px;
}

.article-body h1 {
  font-size: 2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #1a237e;
  margin-bottom: 15px;
}

.article-meta {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 20px;
  border-left: 4px solid #3949ab;
  padding-left: 10px;
}

.article-body p {
  margin-bottom: 18px;
  font-size: 1.05rem;
  color: #333;
}

.article-body strong {
  color: #3949ab;
}

/* Mission Section */
.mission-section {
  background: linear-gradient(135deg, #f8f9ff, #eef1ff);
  padding: 70px 20px;
  text-align: center;
}

.mission-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a237e;
  font-family: 'Montserrat', sans-serif;
  position: relative;
}

.mission-section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #3949ab;
  margin: 10px auto 0;
  border-radius: 2px;
}

.mission-content p {
  font-size: 1.15rem;
  color: #444;
  margin-bottom: 40px;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* Grid */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  justify-content: center;
}

/* Card */
.mission-card {
  background: #fff;
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
}

.mission-card:nth-child(1) { animation-delay: 0.2s; }
.mission-card:nth-child(2) { animation-delay: 0.4s; }
.mission-card:nth-child(3) { animation-delay: 0.6s; }
.mission-card:nth-child(4) { animation-delay: 0.8s; }

.mission-card i {
  font-size: 2.5rem;
  color: #3949ab;
  margin-bottom: 15px;
}

.mission-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
}

/* Hover */
.mission-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

/* Анимация */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-us {
  padding: 80px 20px;
   background: linear-gradient(135deg, #e8f0fe, #f1f5ff); 
}

.about-us .container {
  max-width: 1200px;
  margin: 0 auto;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap; /* чтобы на мобилке было вертикально */
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h2 {
  font-size: 2.2rem;
  color: #1a237e; /* синий оттенок, как в заголовках */
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 15px;
}

.about-text .btn-primary {
  display: inline-block;
  padding: 12px 24px;
  background-color: #3949ab;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.about-text .btn-primary:hover {
  background-color: #303f9f;
}

.about-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 80px auto;
  padding: 20px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #3949ab; /* центральная линия */
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 20px 40px;
  position: relative;
  width: 50%;
}

.timeline-item .content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.timeline-item .content:hover {
  transform: translateY(-5px);
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

/* === ИКОНКИ вместо кружков === */
.timeline .icon {
  position: absolute;
  top: 30px; /* на линии */
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: #3949ab;
  color: #fff;
  font-size: 18px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 2;
  transition: background 0.3s ease, transform 0.3s ease;
}

/* Иконка слева */
.timeline-item.left .icon {
  right: -20px; /* сидит на линии */
}

/* Иконка справа */
.timeline-item.right .icon {
  left: -20px; /* сидит на линии */
}

.timeline .icon:hover {
  background: #1e2a78;
  transform: scale(1.1);
}

/* 📱 Responsive */
@media screen and (max-width: 768px) {
  .timeline::after {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 25px;
  }
  .timeline-item.right {
    left: 0;
  }
  .timeline-item.left {
    text-align: left;
  }

  .timeline-item .icon {
    left: 0;
    right: auto;
  }
}

.comments-slider {
  text-align: center;
  padding: 40px 0;
  overflow: hidden;
  background: #f9f9f9;
}

.comments-slider h2 {
  margin-bottom: 20px;
  font-size: 24px;
}

.slider {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.slide-track {
  display: flex;
  gap: 20px;
  will-change: transform;
}

.slide {
  flex: 0 0 auto;
}

.comment-card {
  width: 320px;
  padding: 15px 20px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: left;
}

.comment-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.comment-user img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.comment-text {
  font-size: 14px;
  color: #333;
  margin: 0 0 10px;
}

.comment-actions {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #666;
}

.subscribe-section {
  text-align: center;
  padding: 70px 20px;
  background: linear-gradient(135deg, #e8f0fe, #f1f5ff); 

}

.subscribe-section h2 {
  font-size: 26px;
  margin-bottom: 10px;
  color: #222;
}

.subscribe-section p {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.subscribe-form {
  display: flex;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
  gap: 10px;
}

.subscribe-form input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
}

.subscribe-form button {
  padding: 12px 20px;
  background: #0073e6;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s;
}

.subscribe-form button:hover {
  background: #005bb5;
}

footer {
  background: #1f1f1f;
  color: #ccc;
  text-align: center;
  padding: 20px 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
footer a { color: #4dabf7; text-decoration: none; }
footer a:hover { color: #82cfff; }

/* Privacy Policy Section */
.privacy-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.privacy-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: #222;
}

.privacy-content h3 {
  font-size: 1.4rem;
  margin-top: 25px;
  margin-bottom: 10px;
  color: #333;
  border-left: 4px solid #007bff; 
  padding-left: 10px;
}

.privacy-content p {
  line-height: 1.6;
  color: #555;
  margin-bottom: 15px;
}

.privacy-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.privacy-content ul li {
  margin-bottom: 8px;
  color: #444;
}


.privacy-content a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.privacy-content a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Disclaimer Section */
.disclaimer-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.disclaimer-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: #222;
}

.disclaimer-content h3 {
  font-size: 1.4rem;
  margin-top: 25px;
  margin-bottom: 10px;
  color: #333;
  border-left: 4px solid #ff9800; 
  padding-left: 10px;
}

.disclaimer-content p {
  line-height: 1.6;
  color: #555;
  margin-bottom: 15px;
}

/* Ссылки без подчеркивания */
.disclaimer-content a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.disclaimer-content a:hover {
  color: #0056b3;
  text-decoration: underline; 
}

/* Cookies Section */
.cookies-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cookies-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
  color: #222;
}

.cookies-content h3 {
  font-size: 1.4rem;
  margin-top: 25px;
  margin-bottom: 10px;
  color: #333;
  border-left: 4px solid #4caf50; 
  padding-left: 10px;
}

.cookies-content p,
.cookies-content ul {
  line-height: 1.6;
  color: #555;
  margin-bottom: 15px;
}

.cookies-content ul {
  padding-left: 20px;
  list-style: disc;
}

.cookies-content a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.cookies-content a:hover {
  color: #0056b3;
  text-decoration: underline; 
}

/* ===== CONTACT PAGE ===== */
.contact-section {
  max-width: 1000px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-title {
  font-size: 2rem;
  text-align: center;
  font-weight: 700;
  margin-bottom: 10px;
  color: #222;
}

.contact-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 30px;
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}


.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #333;
  border-left: 4px solid #007bff;
  padding-left: 10px;
}

.contact-info p {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #555;
  display: flex;
  align-items: center;
}

.contact-info .icon {
  color: #007bff;
  margin-right: 10px;
}

/* Правая часть (форма) */
.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-form h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #333;
  border-left: 4px solid #28a745; 
  padding-left: 10px;
}

.input-group {
  margin-bottom: 15px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s;
  font-family: 'Open Sans', sans-serif;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: #007bff;
}

.textarea-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  background: #007bff;
  color: #fff;
  padding: 12px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: #0056b3;
}

.form-message {
  display: block;
  margin-top: 15px;
  font-size: 0.95rem;
  color: #28a745;
}
/* Notifications */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #333;
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}
.notification.show {
  opacity: 1;
  transform: translateY(0);
}
.notification.success { background: #28a745; }
.notification.error { background: #dc3545; }
@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}
@media (max-width:1024px){
  .article-list{grid-template-columns:repeat(2,1fr);}
  .article-item:first-child{grid-column:auto;grid-row:auto;}
  .article-item:first-child img{min-height:0;height:240px;}
}
@media (max-width:768px){
  header{flex-direction:column;gap:10px;align-items:flex-start;}
  nav ul{flex-wrap:wrap;gap:10px 16px;}
  .hero{height:60vh;}
  .hero h2{font-size:2rem;}
  .hero p{font-size:1rem;}
  .article-image{height:260px;}
}
@media (max-width:640px){
  .article-list{grid-template-columns:1fr;}
  .article-item img{height:200px;}
}
@media (max-width:520px){
  .subscribe-form{flex-direction:column;}
  .subscribe-form input,.subscribe-form button{width:100%;}
}
@media (max-width:480px){
  .hero{height:56vh;}
  .hero h2{font-size:1.6rem;}
  .hero p{font-size:.95rem;}
  .scroll-indicator{font-size:2.2rem;bottom:12px;}
  .article-image{height:220px;}
  .comment-card{width:260px;}
  .cookie-buttons{display:grid;grid-template-columns:1fr;gap:8px;}
  .cookie-buttons button{margin-right:0;width:100%;}
}

/* Accessibility */
a:focus-visible,button:focus-visible{
  outline:3px solid #3949ab;
  outline-offset:2px;
  border-radius:6px;
}

/* Reduce motion */
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important;}
}