:root {
  --primary-blue: #1a4b8c;
  --secondary-blue: #2a6fdb;
  --light-blue: #e6f0fa;
  --dark-blue: #0d2b56;
  --accent-blue: #4a90e2;
  --white: #ffffff;
  --black: #333333;
  --gray: #f5f5f5;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
  overflow-x: hidden;
}


h1, h2, h3, h4 {
  margin-bottom: 1rem;
  color: var(--primary-blue);
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--secondary-blue);
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--secondary-blue);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-blue);
}


.section-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.section-intro {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: var(--dark-blue);
}

.navbar {
  background-color: #0056b3;
  padding: 10px;
}

.nav-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 18px;
  cursor: pointer;
  margin-bottom: 10px;
  border-radius: 4px;
  display: none;
}

.nav-container {
  flex-direction: column;
  gap: 10px;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.3s;
}

.nav-link:hover {
  background-color: #0062cc;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .nav-button {
    display: block;
  }

  .nav-container {
    display: none;
  }

  .nav-container:not(.hidden) {
    display: flex;
  }
}

/* Большие экраны (пк/ноутбук) */
@media (min-width: 769px) {
  .nav-button {
    display: none;
  }

  .nav-container {
    display: flex !important;
    flex-direction: row;
    gap: 15px;
  }
}

.navbar {
  background-color: var(--primary-blue);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.nav-link {
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: var(--transition);
  font-weight: 500;
}

.nav-link:hover {
  background-color: var(--secondary-blue);
  color: var(--white);
}


.hero {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: var(--white);
  padding: 8rem 1rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://www.un.org/sites/un2.un.org/files/2020/03/un-emblem.png') center/contain no-repeat;
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.title {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fadeInDown 1s ease;
  color: var(--white);
}

.subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.3s both;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background-color: var(--white);
  color: var(--primary-blue);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  animation: fadeIn 1s ease 0.6s both;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background-color: var(--light-blue);
}


.card {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.blue-section {
  background-color: var(--light-blue);
  position: relative;
}

.blue-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://www.un.org/sites/un2.un.org/files/2020/03/un-pattern.png') repeat;
  opacity: 0.05;
}


.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.about-item {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.about-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.icon-large {
  font-size: 2.5rem;
  color: var(--secondary-blue);
  margin-bottom: 1rem;
}

.styled-list {
  list-style-type: none;
}

.styled-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.styled-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary-blue);
  font-weight: bold;
}


.responsive-map {
  padding: 2rem 0;
}

.map-container {
  position: relative;
  width: 100%;
  height: 500px;
  background-color: var(--light-blue);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}
.map-container img{
  height: 100%;
  width: 100%;
}

.map-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-tooltip {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  box-shadow: var(--shadow);
  z-index: 10;
  font-weight: 500;
  color: var(--primary-blue);
}

.country-info-box {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: var(--transition);
}

.country-info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.info-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--light-blue);
  padding-bottom: 1rem;
}

.country-flag {
  width: 60px;
  height: 40px;
  margin-left: 1rem;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.country-details {
  margin-top: 1.5rem;
}

.detail-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--light-blue);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-item h4 {
  color: var(--secondary-blue);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.detail-item h4 i {
  margin-right: 0.5rem;
}


.flag-france {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.flag-germany {
  background-image: url('https://flagcdn.com/w80/de.png');
}

.flag-ukraine {
  background-image: url('https://flagcdn.com/w80/ua.png');
}

.flag-usa {
  background-image: url('https://flagcdn.com/w80/us.png');
}

.flag-china {
  background-image: url('https://flagcdn.com/w80/cn.png');
}

.flag-russia {
  background-image: url('https://flagcdn.com/w80/ru.png');
}

.flag-uk {
  background-image: url('https://flagcdn.com/w80/gb.png');
}

.flag-brazil {
  background-image: url('https://flagcdn.com/w80/br.png');
}

.flag-india {
  background-image: url('https://flagcdn.com/w80/in.png');
}

.flag-safrica {
  background-image: url('https://flagcdn.com/w80/za.png');
}

.flag-czech {
  background-image: url('https://flagcdn.com/w80/cz.png');
}

.flag-japan {
  background-image: url('https://flagcdn.com/w80/jp.png');
}


.timeline-section {
  position: relative;
  padding: 4rem 0;
  background-color: var(--white);
}

.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--secondary-blue);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-event {
  position: relative;
  width: 46%;
  padding: 1.5rem;
  margin-bottom: 2rem;
  background: var(--light-blue);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  z-index: 2;
}

.timeline-event:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  background: var(--white);
}

.timeline-event:nth-child(odd) {
  left: 0;
}

.timeline-event:nth-child(even) {
  left: 54%;
}

.event-date {
  position: absolute;
  top: -20px;
  width: 60px;
  height: 60px;
  line-height: 60px;
  text-align: center;
  background: var(--primary-blue);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  box-shadow: 0 0 0 4px var(--white), var(--shadow);
}

.timeline-event:nth-child(odd) .event-date {
  right: -80px;
}

.timeline-event:nth-child(even) .event-date {
  left: -80px;
}

.event-content {
  padding: 0 1rem;
}

.event-content h3 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.event-content p {
  color: var(--dark-blue);
}

.event-details-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: modalFadeIn 0.3s ease;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-blue);
}


.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.history-card {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--secondary-blue);
}

.history-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.history-card h3 {
  color: var(--secondary-blue);
  margin-bottom: 1rem;
}

.members-section {
  padding: 4rem 0;
  background-color: var(--light-blue);
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.member-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.member-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.member-flag {
  height: 150px;
  width: 100px;
}

.member-card h3 {
  color: var(--primary-blue);
  margin: 1rem 1rem 0.5rem;
}

.member-card p {
  padding: 0 1rem 1.5rem;
  color: var(--dark-blue);
}


.member-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.member-flag {
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.member-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.member-card h3 {
  color: var(--primary-blue);
  margin: 1rem 1rem 0.5rem;
  font-size: 1.2rem;
}

.member-card p {
  padding: 0 1rem 1.5rem;
  color: var(--dark-blue);
  font-size: 0.95rem;
}


















.footer {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 3rem 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-section {
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary-blue);
}

.footer-section p {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.footer-section i {
  margin-right: 0.5rem;
  color: var(--secondary-blue);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--secondary-blue);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--dark-blue);
  margin-top: 2rem;
}


@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

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

.animated-text {
  animation: fadeInDown 1s ease;
}


@media (max-width: 992px) {
  .timeline-event {
    width: 90%;
    left: 5% !important;
  }

  .timeline-event:nth-child(odd) .event-date,
  .timeline-event:nth-child(even) .event-date {
    left: 50%;
    transform: translateX(-50%);
    top: -30px;
  }

  .timeline-line {
    left: 30px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    padding: 0.5rem;
  }

  .nav-link {
    margin: 0.2rem 0;
  }

  .hero {
    padding: 6rem 1rem 3rem;
  }

  .title {
    font-size: 2.2rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .section-content {
    padding: 1.5rem 1rem;
  }

  .map-container {
    height: 400px;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .hero {
    padding: 5rem 1rem 2rem;
  }

  .title {
    font-size: 1.8rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .cta-button {
    padding: 0.6rem 1.5rem;
  }

  .members-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}