/* Основные стили */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px; /* учитывает высоту фиксированного header */
}

:root {
  --primary-color: #1976d2;
  --primary-dark: #1565c0;
  --primary-light: #bbdefb;
  --accent-color: #f08c0a;
  --text-primary: #212121;
  --text-light: #ffffff;
  --text-secondary: #757575;
  --divider-color: #bdbdbd;
  --background: #f5f5f5;
  --surface: #ffffff;
  --success: #4caf50;
  --error: #f44336;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --secondary-color: #10b981;
}

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

.demo-notification {
    background-color: var(--secondary-color); /* Зеленый фон */
    color: white; /* Белый текст */
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--text-primary);
  background-color: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

a:hover,
a:focus {
  color: #1a73e8);
  text-decoration: underline;
  outline: none;
}

button,
.btn {
  cursor: pointer;
  border: none;
  border-radius: 4px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
}

.text-white {
  color:white;
}

.bg-white {
  background: #fff;
}

.dot-list {
  list-style: none;
  padding-left: 0;
  color: var(--text-light);
}
.dot-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}
.dot-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-light);
}

.btn--primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow);
}

.btn--primary:hover,
.btn--primary:focus {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
  color: white;
}

.btn--accent {
  background-color: var(--accent-color);
  color: white;
}

.btn--accent:hover,
.btn--accent:focus {
  background-color: #f57c00;
  transform: translateY(-2px);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section__title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 30px;
  position: relative;
}

.section__title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.section__subtitle {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align:center;
}

/* Волнообразный разделитель */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: -1px 0; /* Перекрываем границы секций */
}

.wave-divider svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 100px;
}

.wave-divider--top {
  transform: rotate(180deg);
}

.wave-divider--bottom {
  transform: rotate(0);
}

/* Шапка сайта */
.top-bar {
  background-color: var(--primary-dark);
  color: white;
  padding: 10px 0;
  font-size: 0.9rem;
}

.top-bar__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar__contacts {
  display: flex;
  gap: 20px;
}

.top-bar__contact {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.top-bar__social-link {
  color: white;
  font-size: 1.2rem;
}

.top-bar__social-link:hover,
.top-bar__social-link:focus {
  color: var(--primary-light);
  transform: translateY(-2px);
}

.header {
  background-color: var(--surface);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__image {
  height: 80px;
}

.logo__text {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.search {
  flex-grow: 1;
  max-width: 400px;
  margin: 0 30px;
  position: relative;
}

.search__input {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid var(--divider-color);
  border-radius: 30px;
  font-size: 1rem;
  transition: var(--transition);
}

.search__input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-light);
  outline: none;
}

.search__button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
}

/* Навигация */
.nav {
  background-color: var(--primary-color);
}

.nav__list {
  display: flex;
  list-style: none;
  justify-content: center;
}

.nav__item {
  position: relative;
}

.nav__link {
  display: block;
  padding: 16px 20px;
  color: white;
  font-weight: 500;
  transition: var(--transition);
}

.nav__link:hover,
.nav__link:focus,
.nav__link--active {
  background-color: var(--primary-dark);
  color: var(--primary-light);
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transition: var(--transition);
}

.nav__link:hover::after,
.nav__link:focus::after,
.nav__link--active::after {
  transform: scaleX(1);
}

/* Герой-слайдер */
.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
}

.hero__slide--active {
  opacity: 1;
  z-index: 1;
}

.hero__content {
  max-width: 600px;
  padding: 40px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 8px;
  margin-left: 10%;
  animation: fadeInUp 1s ease;
}

.hero__title {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: white;
  line-height: normal;
}

.hero__text {
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.hero__buttons {
  display: flex;
  gap: 15px;
}

.hero__controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero__control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0; /* Предотвращаем сжатие */
  padding: 0;
}

.hero__control--active {
  background-color: white;
  transform: scale(1.2);
}

.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.3s ease;
  margin-left: 10px;
  margin-right: 10px;
}

.hero__arrow:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.hero__arrow--prev {
  left: 0;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.hero__arrow--next {
  right: 0;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

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

/* О компании */
.about {
  background-color: var(--surface);
  position: relative;
}

.about__content {
  max-width: 900px;
  margin: 0 auto;
}

.about__text {
  margin-bottom: 20px;
  text-align: left;
}

.about__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.feature-card {
  background: var(--primary-dark);
  color: var(--text-light);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  /* border: 7px double var(--primary-light); */
  border-radius: 10px;
  hyphens: auto;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card__title {
  color: var(--text-light);
  margin-bottom: 10px;
  display: grid;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  text-align: center;
}

.feature-card__icon {
  color: var(--text-light);
  font-size: 1.5rem;
}

/* Статистика компании */
.stats {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.stat-card {
  background-color: rgba(255, 255, 255, 0.15); /* Немного прозрачный фон */
  border-radius: 10px;
  padding: 30px 20px;
  backdrop-filter: blur(5px); /* Эффект "запотевшего стекла" */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
}

.stat-card.animated {
  animation: fadeInUp 0.8s ease forwards;
}

.stat-card.delay-1 {
  animation-delay: 0.2s;
}

.stat-card.delay-2 {
  animation-delay: 0.4s;
}

.stat-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.stat-card__number {
  font-family: "Montserrat", sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-card__text {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0.9;
}

/* История */

.history {
    padding: 80px 0;
    background-color: var(--background);
}

.history__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.history__content {
    flex: 2;
    min-width: 320px;
    padding:10px;
}

.history__block {
  margin-bottom: 30px;
}

.history__block .section__subtitle {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.history__block .section__text {
  margin-bottom: 15px;
}

.history__image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    
}

.history__image img {
    width: auto;
    height: 100vh;
    object-fit: cover;
    transform: scale(1.05);
    transition: var(--transition);
}

.history__image:hover img {
    transform: scale(1.09);
}

/* Ценности компании */
.values {
  padding: 60px 0;
  background-color: var(--surface);
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.value-card {
  background-color: var(--background);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

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

.value-card__icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.value-card__title {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.value-card__text {
  color: var(--text-secondary);
}

/* Секция: Грамоты и сертификаты */

.diploma-section {
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #e3f0ff 0%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}
.diploma-carousel__wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.diploma-carousel {
  overflow: hidden;
  width: 100%;
  max-width: 900px;
  position: relative;
}
.diploma-carousel__track {
  display: flex;
  gap: 2rem;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.diploma-carousel__item {
  min-width: 220px;
  max-width: 220px;
  height: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(25, 118, 210, 0.08), 0 1.5px 6px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
}
.diploma-carousel__item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  transition: box-shadow 0.3s, transform 0.3s;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.07);
  background: #f3f6fb;
}
.diploma-carousel__item:hover img {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(25, 118, 210, 0.15);
}
.diploma-carousel__arrow {
  background: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.10);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  z-index: 2;
  outline: none;
}
.diploma-carousel__arrow:active {
  background: #e3f0ff;
}
.diploma-carousel__arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.diploma-carousel__arrow .material-icons {
  font-size: 2rem;
  color: #1976d2;
}

/* Модальное окно для диплома */
.diploma-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(33, 42, 62, 0.6);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}
.diploma-modal.open {
  display: flex;
}
.diploma-modal__content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(25, 118, 210, 0.18);
  padding: 2rem;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  animation: fadeInScale 0.3s;
}
.diploma-modal__img {
  max-width: 80vw;
  max-height: 70vh;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(25, 118, 210, 0.13);
  background: #f3f6fb;
}
.diploma-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}
.diploma-modal__close:hover {
  background: #dc2626;
}

@media (max-width: 900px) {
  .diploma-carousel__item {
    min-width: 160px;
    max-width: 160px;
    height: 200px;
  }
}
@media (max-width: 600px) {
  .diploma-section {
    padding: 3rem 0.5rem;
  }
  .diploma-carousel__item {
    min-width: 120px;
    max-width: 120px;
    height: 120px;
  }
  .diploma-modal__content {
    padding: 0.5rem;
  }
}

/* Команда */
.team {
  padding: 60px 0;
  background-color: var(--surface);
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.team-member {
  background-color: var(--background);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  text-align: center;
}

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

.team-member__image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: top; /* Фокусируем на верхней части изображения */
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.team-member__content {
  padding: 25px;
}

.team-member__name {
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.team-member__position {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.team-member__contacts {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.contact-link {
  color: var(--primary-color);
  font-size: 1.5rem;
  transition: var(--transition);
}

.contact-link:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

/* Партнеры */
.partners {
  padding: 60px 0;
  background-color: var(--background);
}

.partners__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 5px;
  justify-items: center;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.partner-logo {
  max-width: 120px;
  height: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
  border-radius: 20px;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* Услуги */
.services {
  background-color: var(--background);
  position: relative;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Изменяем на 3 колонки */
  gap: 30px; /* Увеличиваем отступ */
  max-width: 1200px; /* Добавляем максимальную ширину */
  margin: 0 auto; /* Центрируем сетку */
  padding: 0 20px; /* Добавляем отступы по бокам */
}

.service-card__home {
  background: white; /* Фон делаем белым */
  border-radius: 8px;
  /* overflow: hidden; */ /* Удаляем, так как это не нужно для нового стиля */
  box-shadow: var(--shadow);
  transition: var(--transition);
  padding: 25px; /* Отступы как у fleet-card */
  text-align: center; /* Центрируем текст */
  font-size: 14px;
}

.service-card__home:hover {  
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Тень как у fleet-card */
  transform: translateY(-5px); /* Анимация как у fleet-card */
}

/* Удаляем эти стили, так как icon и title будут напрямую в service-card */
/*
.service-card__header {
  background: var(--primary-color);
  color: white;
  padding: 20px;
}
*/

/* Home service card */
.service-card__home .service-card__icon {
  font-size: 3rem; /* Размер иконки как у fleet-card */
  color: var(--primary-color);
  margin-bottom: 15px; /* Отступ как у fleet-card */
}

.service-card__home .service-card__title {
  font-size: 18px;
  margin-bottom: 15px; /* Отступ как у fleet-card */
  color: var(--primary-dark); /* Цвет как у fleet-card */
}

.service-card__home p {
  color: var(--text-secondary); /* Цвет текста как у fleet-card */
  margin-bottom: 20px; /* Добавляем отступ для параграфа */
  font-size: 16px;
  color:#212121;
}


/* Флот */

.fleet {
  background: url(../assets/images/port/our-fleet.jpg) no-repeat center center;
  background-size: cover;
  position: relative; /* Добавляем позиционирование для оверлея */
  z-index: 1; /* Убеждаемся, что секция на переднем плане */
  padding:0;
}

.fleet__overlay {  
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(185, 207, 255, 0.7); /* Белый полупрозрачный фон */
  z-index: -1; /* Помещаем оверлей под содержимое карты */
  padding-bottom: 50px;
  margin-bottom: 60px;
}

.fleet__content {
  max-width: 900px;
  margin: 0 auto;
}

.fleet__desc {
    font-size: larger;
    background-color: #1976d2;
    color: white;
    padding: 10px;
    border-radius: 10px;
}

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

.fleet-card {
  background: var(--background);
  border-radius: 8px;
  padding: 25px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

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

.fleet-card__icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.fleet-card__title {
  color: var(--primary-dark);
  margin-bottom: 15px;
}

/* Галерея */
.gallery {
  background-color: var(--surface);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery__item {
  position: relative;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery__item:hover .gallery__image {
  transform: scale(1.1);
}

.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  opacity: 0;
  transition: var(--transition);
  transform: translateY(20px);
}

.gallery__item:hover .gallery__caption {
  opacity: 1;
  transform: translateY(0);
}

/* Блог и новости */
.blog {
  background-color: var(--background);
}

.blog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.blog__card {
  background-color: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.blog__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog__content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog__date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.blog__title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  flex-grow: 1;
}

.blog__excerpt {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Контакты */

.map {
  background: url(../assets/images/port/2000/port-1.jpg) no-repeat center center;
  background-size: cover;
  position: relative; /* Добавляем позиционирование для оверлея */
  z-index: 1; /* Убеждаемся, что секция на переднем плане */
}

.map__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7); /* Белый полупрозрачный фон */
  z-index: -1; /* Помещаем оверлей под содержимое карты */
}

.contact {
  background-color: var(--surface);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.contact__icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  min-width: 40px;
  text-align: center;
}

.contact__form {
  background-color: dodgerblue;
  color: white;
}

.contact__map {
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Форма обратной связи */
.form {
  background-color: var(--background);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--divider-color);
  border-radius: 4px;
  font-size: 1rem;
  transition: var(--transition);
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-light);
  outline: none;
}

.form__textarea {
  min-height: 120px;
  resize: vertical;
}

.form__submit {
  width: 100%;
}

/* Футер */
.footer {
  background-color: var(--primary-dark);
  color: white;
  padding: 60px 0 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer__title {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer__links {
  list-style: none;
}

.footer__link-item {
  margin-bottom: 10px;
}

.footer__link {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer__link:hover,
.footer__link:focus {
  color: white;
  padding-left: 5px;
}

.footer__social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  color:white;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  transition: var(--transition);
}

.footer__social-link:hover,
.footer__social-link:focus {  
  color:white    
}

a.footer__social-link:hover {
  text-decoration: none;
  border: 1px solid white;
}

.footer__copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Кнопка "Вверх" */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.scroll-top--visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover,
.scroll-top:focus {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}

/* Адаптивность */
@media (max-width: 992px) {
  .hero__content {
    margin-left: 5%;
    padding: 30px;
  }

  .hero__title {
    font-size: 2.3rem;
  }

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

@media (max-width: 768px) {
  .header__content {
    flex-wrap: wrap;
  }

  .search {
    order: 3;
    max-width: 100%;
    margin: 15px 0 0;
  }

  .nav__list {
    flex-wrap: wrap;
  }

  .hero {
    height: 500px;
  }

  .hero__content {
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
  }

  .hero__buttons {
    justify-content: center;    
  }

  .services__grid {
    grid-template-columns: 1fr;
  }
  
  .section__title {
    font-size: 2rem; /* Уменьшаем размер текста для мобильных */
  }

}

@media (max-width: 576px) {
  .top-bar__content {
    flex-direction: column;
    gap: 10px;
  }

  .top-bar__contacts  {
   flex-direction: column;
}

  .hero {
    height: 400px;
  }

  .hero__title {
    font-size: 1.5rem;
  }

  .hero__text {
    margin-bottom: 30px;
    font-size: 1rem;
}

  .hero__buttons {    
    flex-direction: column;
  }

  .hero__controls {
    display:none;
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .diploma-carousel__item {
    flex: 0 0 100%; /* На мобильных показываем 1 элемент */
  }
}

/* Анимации */
.fade-in {
  animation: fadeIn 1s ease forwards;
}

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

.slide-in-left {
  animation: slideInLeft 1s ease forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 1s ease forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
