
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fff;
  color: #000;
}




/* --- TOP BAR --- */
.top-bar {
  background: #fff;
  padding: 10px 40px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
}

.top-bar .socials {
  display: flex;
  gap: 15px;
}

.top-bar .socials a {
  color: #6bb8e7;
  font-size: 20px;
  transition: color 0.3s ease;
}

.top-bar .socials a:hover {
  color: #3d9fd3;
}

/* --- NAVBAR --- */
.navbar {
  background: #f5f5f5;
  padding: 15px 40px;
  border-bottom: 1px solid #ddd;
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 60px;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column; /* вместо горизонтального ряда */
    gap: 20px; /* меньше расстояние между пунктами */
  }
}


.navbar a {
  text-decoration: none;
  color: black;
  font-size: 18px;
  font-family: 'Georgia', serif;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #3d9fd3;
}

/* --- BANNER --- */
.banner {
  width: 100%;
  height: 300px;
  background: url("images/banner.jpg") center/cover no-repeat;
}



@media (max-width: 768px) {
  .banner {
    min-height: 150px;            /* поменьше на телефонах */
  }
}


/* --- SECTION BASE --- */
section {
  padding: 20px 20px 60px;
  text-align: center;
}

@media (max-width: 768px) {
  section {
    padding: 15px 15px 30px; /* меньше отступов сверху/снизу на телефоне */
  }
}



section h2 {
  display: block;
  background: #f5f5f5;
  padding: 15px 0;
  margin: 0 auto 20px auto;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 1px;
  text-align: center;
  border-radius: 6px;
}

/* --- OUR BRANDS --- */
.slider {
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.slide-track {
  display: flex;
  animation: scroll 20s linear infinite;
  width: max-content; /* ширина подстраивается автоматически */
}

.slide {
  flex: 0 0 auto; /* ширина зависит от содержимого */
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide img {
  max-height: 100px;
  width: auto;
  object-fit: contain;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- TEAM SECTION --- */
.team-member {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.team-photo {
  flex: 0 0 300px;
}

@media (max-width: 768px) {
  .team-member {
    flex-direction: column;      /* вместо горизонтали – вертикаль */
    align-items: center;         /* выравнивание по центру */
    text-align: center;
  }
  .team-photo {
    flex: 0 0 auto;              /* убираем фиксированную ширину */
    width: 80%;                  /* фото сжимается под экран */
    max-width: 250px;
  }
  .team-text {
    max-width: 100%;
  }
}


.team-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.team-text {
  flex: 1;
  max-width: 700px;
}

/* Карточка как Talent */
.team-text {
  flex: 1;
  max-width: 100%;
  display: flex;
  align-items: center;   /* карточка выравнена по центру по высоте */
}

.team-card {
  background: #fff;
  border-radius: 16px;
  padding: 25px 35px;        /* меньше внутренние отступы */
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid #eee;
  width: 100%;               /* растягивается по ширине */
  margin: 0;
  text-align: justify;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.team-card:hover {
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.team-card h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #000;
}

.team-card p {
  font-size: 17px;
  line-height: 1.5;          /* меньше межстрочный интервал */
  color: #333;
}



/* --- STORIES --- */
.stories-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.story-card {
  text-align: left;
}

.story-card img {
  max-width: 100%;
  border-radius: 10px;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: #cce7f7;
  border-radius: 20px;
  text-decoration: none;
  color: #000;
  font-weight: bold;
}

.btn:hover {
  background: #add7f0;
}

@media (max-width: 992px) {
  .stories-row { grid-template-columns: 1fr; text-align: center; }
  .story-card img { margin: 0 auto; }
}

@media (max-width: 768px) {
  .story-card { text-align: center; }
}


/* --- WHY US --- */
.why-us {
  background: white;
  padding: 2px 20px 60px;
}

.why-us .why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 60px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 768px) {
  .why-us .why-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .why-us .why-grid { grid-template-columns: 1fr; }
}

.why-us .why-grid div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.why-us i {
  color: #6bb8e7;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.why-us i:hover { color: #3d9fd3; }

.why-us p {
  font-size: 16px;
  margin: 0;
}

/* --- FOOTER --- */
footer {
  background: #f9f9f9;
  padding: 40px 20px;
  border-top: 1px solid #ddd;
}

footer a {
  color: black;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover { color: #3d9fd3; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.footer-logo img {
  width: 100px;
  margin-bottom: 10px;
}

.footer-logo p { font-size: 14px; line-height: 1.4; }
.footer-logo span { font-size: 12px; color: #555; }

.footer-grid h4 {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: bold;
}

.footer-contacts {
  text-align: right;
}

@media (max-width: 768px) {
  .footer-contacts {
    text-align: center;
    position: static;
  }
}


.footer-contacts p { margin-bottom: 15px; line-height: 1.5; }
.footer-contacts b { font-weight: bold; }

.footer-contacts .socials {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.footer-contacts .socials a {
  color: #6bb8e7;
  font-size: 20px;
  transition: color 0.3s ease;
}

.footer-contacts .socials a:hover { color: #3d9fd3; }

@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; text-align: center; }
  .footer-contacts .socials { justify-content: center; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

/* --- MODAL --- */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  text-align: left;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover { color: #000; }
