body {
  font-family: "Alice", serif;
  color: #000000;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f0f0f0;
}

.top-block {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url("img/glav.svg");
  background-size: cover;
  background-position: center;
  min-height: 95vh; /* Высота на весь экран */
  color: #ffffff;
  overflow: visible !important; /* Разрешаем элементам выходить за границы секции */
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Прижимает карточку к нижнему краю фото */
  padding-bottom: 0;
  justify-content: space-between; /* Шапка прилипнет к верху, а карточка к низу */
}

header {
  display: flex;
  flex-direction: column; /* Элементы (меню и линия) встанут друг под другом */
  align-items: center; /* Центрируем всё по горизонтали */
  padding: 15px 0; /* Общий отступ шапки сверху */
  width: 100%;
  position: relative;
  z-index: 20;
}

/* Обертка для ссылок, чтобы они шли в ряд */
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  width: 100%;
  margin-bottom: 15px; /* ВОТ ТВОЙ ОТСТУП в 15 пикселей до палки */
}

.thin-white-line {
  border: none;
  background-color: #ffffff;
  height: 2px;
  width: 90%; /* Сделаем её резиновой, чтобы не ломала экран */
  max-width: 1800px; /* Но не шире твоего идеала */
  margin: 0 auto; /* Центрируем */
  opacity: 0.8; /* Можно сделать чуть прозрачной для стиля */
}

header a {
  text-decoration: none;
  font-family: "Alice", serif;
  color: #ffffff;
  font-size: 24px;
  text-transform: uppercase;
}

.logo-main {
  font-size: 32px;
  margin: 0 500px;
  align-items: center;
  color: #ffffff;
}

.hero-card {
  /* Белый фон с легкой прозрачностью */
  background-color: #ffffff;
  padding: 20px 40px;
  width: 1200px;
  text-align: center;
  border-radius: 30px;
  margin: auto;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  position: relative; /* Позволяет управлять слоями */
  z-index: 10; /* Выводит карточку на передний план */
  margin: 0 auto -160px; /* Центрирует и выносит вниз на 80px за пределы фото */
}
.text {
  justify-content: center;
  text-align: center;
  color: #000000;
  font-family: "Alice", serif;
  font-size: 24px;
  max-width: 800px;
  padding: 0px 200px;
}
.textcard {
  color: #000000;
  font-family: "Alice", serif;
  font-size: 32px;
  justify-content: center;
  padding: 0px 100px;
  font-weight: bold;
}

.order-btn {
  /* Базовые настройки */
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
  font-family: "Alice", serif;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.3s ease; /* Плавный переход цветов */

  /* СОСТОЯНИЕ ОБЫЧНОЕ: цвет 9BA8AD, текст белый */
  background-color: #9ba8ad;
  color: #ffffff;
  border: 2px solid #9ba8ad; /* Каемочка того же цвета */
  padding: 16px 35px;
  border-radius: 25px;
}

/* СОСТОЯНИЕ ПРИ НАВЕДЕНИИ: кнопка белая, каемочка 9BA8AD, текст черный */
.order-btn:hover {
  background-color: #ffffff;
  border-color: #9ba8ad; /* Каемочка остается того же цвета */
  color: #000000; /* Текст становится черным */
}

.hero-card1 {
  padding: 60px 40px;
  max-width: 600px;
  text-align: center;
  margin: 0 auto -130px;
  position: relative;
  z-index: 10;
  font-family: "Alice", serif;
  color: #ffffff;
}

.subtitle {
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: -40px;
  color: #ffffff; /* Салон красоты  */
}

.main-title {
  font-size: 100px; /* Оскар  */
  font-family: "Alice", serif;
  margin: 0 0 10px 0;
  color: #ffffff;
}

.description {
  font-size: 32px;
  line-height: 1.6;
  margin-bottom: 35px;
  color: #ffffff;
  margin: 0 0 60px 0;
  max-width: 400px;
}

.about-section {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center; /* Это выравнивает текст по центру высоты */
  overflow: hidden;
  padding: 100px 0;
  margin-top: 25vh;
}

/* Фотография, которая прилипает к ЛЕВОМУ краю страницы */
.about-image-side-left {
  position: absolute;
  left: 0;
  top: 50%; /* Сдвигаем верхний край картинки на середину секции */
  transform: translateY(
    -50%
  ); /* Поднимаем её обратно на половину её собственной высоты */
  width: 48%;
  height: 100%;
  display: flex; /* Добавляем, чтобы внутреннее выравнивание работало */
  align-items: center;
}

.about-image-side-left img {
  width: 95%;
  height: 85%;
  object-fit: cover;
  border-radius: 0 30px 30px 0;
}

/* Контейнерная строка */
.about-row {
  display: flex;
  width: 100%;
}

/* Свободное место слева под картинку */
.empty-space {
  flex: 1;
}

/* Блок с текстом справа */
.about-content {
  flex: 1;
  color: #000000;
  padding-left: 130px; /* Отступ от картинки до текста */
  z-index: 2;
  font-family: "Alice", serif;
  margin-top: -17vh;
  max-width: 1200px; /* Текст не расползается шире этой границы */
  margin-left: 180px; /* отступ от текст вправо от картинки */
  margin-right: 0; /* Прижимаем к правому краю контейнера */
}

.about-text p {
  font-size: 24px;
  font-family: "Alice", serif;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.about-subtitle {
  font-size: 100px;
  font-family: "Alice", serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.services-section {
  padding: 80px 300px;
}

.section-title {
  font-family: "Alice", serif;
  font-size: 64px;
  color: #000;
  margin-bottom: 40px;
}

.services-grid {
  display: grid;
  /* Создаем 4 равные колонки */
  grid-template-columns: repeat(4, 1fr);
  /* Автоматическая высота строк */
  grid-auto-rows: 150px;
  gap: 15px; /* Расстояние между карточками */
}

.service-item {
  background-color: #d9d9d9; /* Серый цвет как на макете */
  border-radius: 15px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end; /* Текст внизу */
  padding: 20px;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.service-item span {
  font-family: "Alice", serif;
  font-size: 22px;
  color: #000;
  z-index: 2;
}

/* Эффект при наведении */
.service-item:hover {
  transform: scale(1.02);
}

/* Высокая карточка (занимает 2 строки в высоту) */
.service-item.tall {
  grid-row: span 2;
}

/* Широкая карточка (занимает 2 колонки в ширину) */
.service-item.wide {
  grid-column: span 2;
}

.service-item.all-services a {
  color: #000;
  text-decoration: none;
  font-family: "Alice", serif;
  font-size: 18px;
}

.promo-section {
  padding: 80px 300px;
}

.masters-section {
  padding: 80px 300px;
}

/* Карточки акций */
.promo-flex {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.promo-card {
  background: white;
  border-radius: 25px;
  overflow: hidden;
  color: #333;
  font-family: "Alice", serif;

  /* Делаем все карточки одной высоты */
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 450px; /* Фиксированная минимальная высота */

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.promo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.promo-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Заполняет пустоту, чтобы кнопка была внизу */
}

.promo-info h3 {
  font-size: 20px;
  margin: 0 0 10px;
  line-height: 1.2;
  min-height: 48px; /* Место под 2 строки заголовка */
}

/* Фикс текста: не более 3-х строк с троеточием */
.promo-info .short-text {
  font-size: 13px;
  color: #888;
  margin-bottom: 15px;
  line-height: 1.5;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.more-btn {
  margin-top: auto; /* Прижимает кнопку к низу карточки */
  background: none;
  border: none;
  color: #9ba8ad;
  padding: 0;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  text-align: left;
}

.more-btn {
  background: none;
  border: none;
  color: #9ba8ad;
  padding: 0;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

/* Контент внутри модального окна */
.modal-content {
  background: white;
  margin: 2% auto; /* Чуть выше от верхнего края */
  padding: 30px;
  width: 90%;
  max-width: 500px; /* Ограничиваем ширину */
  border-radius: 20px;
  position: relative;
  display: flex; /* Используем флекс, чтобы элементы шли друг за другом */
  flex-direction: column;
  gap: 15px; /* Расстояние между элементами */
  max-height: 90vh; /* Чтобы окно не уходило за пределы экрана */
  overflow-x: hidden;
}

/* Сама картинка в модальном окне */
#modal-img {
  width: 100%;
  max-height: 250px; /* Ограничиваем высоту картинки! */
  object-fit: cover; /* Чтобы картинка не сплющивалась, а красиво обрезалась */
  border-radius: 15px;
  display: block;
}

/* Заголовок в модальном окне */
#modal-title {
  font-family: "Alice", serif;
  font-size: 28px;
  margin: 0;
  color: #333;
}

/* Текст описания */
#modal-desc {
  font-size: 16px;
  line-height: 1.5;
  color: #666;
  margin: 0;

  /* ВОТ ЭТИ СТРОЧКИ ИСПРАВЯТ ПОЛЗУНОК: */
  white-space: pre-wrap; /* Сохраняет абзацы, которые ты пишешь в админке */
  word-wrap: break-word; /* Разрывает слишком длинные слова */
  overflow-wrap: break-word; /* Дополнительная защита от вылезания текста */
  text-align: left; /* Выравнивание по левому краю */
  width: 100%; /* Занимает всю ширину окна */
}

/* Срок действия */
.date-info {
  font-size: 14px;
  font-weight: bold;
  color: var(--main-color);
  margin-top: 10px;
}

/* Кнопка закрытия (крестик) */
.close-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 35px;
  cursor: pointer;
  color: #9ba8ad;
  z-index: 10; /* Чтобы крестик всегда был поверх картинки */
  line-height: 1;
}
.promo-swiper {
  position: relative; /* Очень важно для выноса стрелок */
  padding: 0 60px; /* Даем место по бокам для стрелок, чтобы они не наезжали на контент */
}

/* Каждая карточка теперь — это слайд */
.promo-card {
  height: auto; /* Чтобы подстраивалась под контент */
  user-select: none; /* Чтобы удобно было листать мышкой */
}

/* ЧИСТЫЕ СТРЕЛОЧКИ (БЕЗ КРУЖОЧКОВ) */
.swiper-button-next,
.swiper-button-prev {
  color: var(--main-color) !important;
  background: none !important; /* Убираем белый фон */
  box-shadow: none !important; /* Убираем тень */

  width: 10px !important;
}

.swiper-button-prev {
  left: 275px !important;
}
.swiper-button-next {
  right: 275px !important;
}

/* Делаем сами иконки стрелок чуть больше, чтобы их было видно без фона */
.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px !important;
  font-weight: bold;
}

/* Если акций 4 или меньше, скрываем стрелки на компах */
@media (min-width: 1025px) {
  .swiper-button-lock {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .promo-section .container {
    padding: 0 15px;
  }
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }
}

/* КАРТОЧКИ МАСТЕРОВ (как на референсе) */
#masters-grid {
  display: flex !important; /* Swiper работает только на флексах */
}
/* Позиционируем стрелки по бокам контейнера */
.masters-prev {
  left: -40px !important;
}

.masters-next {
  right: -40px !important;
}

/* На мобилках прячем стрелки, так как там удобнее листать пальцем */
@media (max-width: 768px) {
  .masters-prev,
  .masters-next {
    display: none !important;
  }

  .masters-section {
    padding: 40px 20px !important;
  }
}

.master-item {
  cursor: pointer;
  transition: 0.3s;
}

.master-photo-rect {
  width: 100%;
  aspect-ratio: 3 / 4; /* Делаем прямоугольными как на фото */
  background: #e0e0e0;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 10px;
}

.master-photo-rect img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-name {
  font-weight: bold;
  font-size: 18px;
  margin: 0;
}

.m-role {
  color: #9ba8ad;
  font-size: 14px;
}

/* МОДАЛКА МАСТЕРА (ШИРОКАЯ) */
.master-modal-wide {
  max-width: 800px !important;
  width: 95% !important;
}

.master-header {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

#master-modal-img {
  width: 200px;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
}

.master-info-text h2 {
  font-family: "Alice", serif;
  margin-top: 0;
}

.spec-label {
  font-weight: bold;
  margin-top: 20px;
  text-decoration: underline;
}

/* СЕТКА ПОРТФОЛИО */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.portfolio-item {
  aspect-ratio: 1 / 1;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  #masters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .master-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* форма*/
/* Основная секция */
.booking-section-large {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
}

.booking-wrapper-max {
  display: flex;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  max-width: 1200px;
  width: 100%;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
}

.booking-content-max {
  flex: 1.2;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Заголовки */
.booking-title-32 {
  font-family: serif;
  font-size: 32px;
  margin: 0 0 20px 0;
  line-height: 1.2;
  color: #1a1a1a;
  font-weight: 600;
}

.booking-subtitle-26 {
  font-size: 26px;
  color: #444;
  margin-bottom: 40px;
  line-height: 1.3;
  max-width: 550px;
}

/* Форма и поля */
.booking-form-grid {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Расстояние между всеми строчками */
}

/* Первый ряд: Имя и Фамилия */
.form-row-grid {
  display: flex;
  gap: 15px;
}

/* Общий стиль для всех инпутов */
.form-row-grid input,
.input-full {
  background-color: #f2f2f2;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 18px;
  width: 100%; /* Растягиваем на всю ширину контейнера */
  outline: none;
  transition: border 0.3s;
  box-sizing: border-box;
}

.form-row-grid input:focus,
.input-full:focus {
  border-color: #9eb1bb;
}

/* Кнопка */
.booking-submit-btn {
  background-color: #9eb1bb;
  color: white;
  border: none;
  border-radius: 30px;
  padding: 18px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  transition:
    transform 0.2s,
    background 0.3s;
}

.booking-submit-btn:hover {
  background-color: #8da0aa;
  transform: translateY(-2px);
}

/* Картинка */
.booking-image-max {
  flex: 0.8;
  min-width: 400px;
}

.booking-image-max img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Адаптивность */
@media (max-width: 1024px) {
  .booking-wrapper-max {
    flex-direction: column;
  }
  .booking-image-max {
    height: 300px;
    order: -1;
  }
}

@media (max-width: 600px) {
  .form-row-grid {
    flex-direction: column; /* На мобилках имя и фамилия тоже друг под другом */
  }
}

/* подвал */
.footer-main {
  background-color: #9eb1bb;
  padding: 50px 20px;
  color: white;
  font-family: sans-serif; /* Основной шрифт */
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-info {
  flex: 1;
}

.footer-title {
  font-family: serif; /* Заголовок с засечками */
  font-size: 42px;
  margin: 0 0 25px 0;
  font-weight: 400;
  color: white;
}

.contact-block {
  margin-bottom: 18px;
}

.contact-label {
  font-size: 13px;
  opacity: 0.8;
  margin: 0 0 2px 0;
}

.contact-value {
  font-size: 18px;
  color: white;
  text-decoration: none;
  display: block;
  line-height: 0.8;
  font-weight: 500;
}

/* Соцсети (кружки) */
.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.social-circle {
  width: 44px;
  height: 44px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  background-size: 22px;
  background-repeat: no-repeat;
  background-position: center;
}

.social-circle:hover {
  transform: translateY(-3px);
}

/* Прямые ссылки на иконки, чтобы работало сразу */
.social-circle.tg {
  background-image: url("https://cdn-icons-png.flaticon.com/512/2111/2111646.png");
}

.social-circle.vk {
  background-image: url("https://cdn-icons-png.flaticon.com/512/145/145813.png");
}

/* Карта */
.footer-map {
  flex: 1.3;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Адаптив для телефонов */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 30px;
  }
  .footer-map {
    width: 100%;
    height: 300px;
    order: -1; /* Карта сверху на мобилках */
  }
  .footer-title {
    font-size: 32px;
  }
}

.booking-modal-content {
  max-width: 450px !important;
  padding: 40px !important;
}

.advanced-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.advanced-form input,
.advanced-form select {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  font-size: 16px;
  outline: none;
}

.datetime-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.booking-submit-btn {
  margin-top: 10px;
}

/* Начальное состояние: элемент прозрачный и немного смещен вниз */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out; /* Скорость анимации */
}

/* Состояние после появления: элемент видимый и на своем месте */
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 15px;
}
.portfolio-item {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}
.portfolio-item:hover {
  transform: scale(1.05);
}
.master-modal-wide {
  max-width: 800px !important;
}
.spec-label {
  font-weight: bold;
  color: #9ba8ad;
  margin-top: 15px;
  display: block;
}

/* --- ПОЛНЫЙ И ОКОНЧАТЕЛЬНЫЙ АДАПТИВ (ЧИСТОВАЯ ВЕРСИЯ) --- */

@media (max-width: 1024px) {
  .services-section,
  .promo-section,
  .masters-section {
    padding: 60px 20px !important;
  }
}

@media (max-width: 768px) {
  /* 1. ШАПКА И ЛОГОТИП */
  header {
    padding: 10px 0;
  }
  .nav-links {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  .logo-main {
    margin: 0 !important;
    width: 100%;
    text-align: center;
    order: -1;
  }
  header a {
    font-size: 16px;
  }

  /* 2. ПЕРВЫЙ ЭКРАН (HERO) */
  .top-block {
    min-height: auto;
    padding-top: 40px; /* Добавили места сверху */
    padding-bottom: 180px;
  }
  .subtitle {
    margin-bottom: 10px !important;
    font-size: 22px;
    display: block;
    text-align: center;
  }
  .main-title {
    font-size: 55px;
    line-height: 1.1;
    margin-bottom: 0px;
    text-align: center;
  }

  /* СКРЫВАЕМ НАДПИСЬ "МЕСТО, ГДЕ КРАСОТА..." */
  .description {
    display: none !important;
  }

  /* БЕЛАЯ КАРТОЧКА: опускаем пониже */
  .hero-card {
    width: calc(100% - 40px) !important;
    margin: 80px 20px -140px 20px !important;
    padding: 30px 20px;
    box-sizing: border-box;
    position: relative;
    left: 0;
  }
  .textcard {
    padding: 0;
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
  }
  .text {
    padding: 0;
    font-size: 16px;
    max-width: 100%;
    text-align: center;
  }

  /* 3. БЛОК "О НАС" */
  .about-section {
    flex-direction: column;
    margin-top: 180px;
    padding: 40px 20px;
  }
  .about-image-side-left {
    position: relative;
    width: 100%;
    height: auto;
    transform: none;
    top: 0;
    left: 0;
    margin-bottom: 25px;
  }
  .about-image-side-left img {
    width: 100%;
    height: auto;
    border-radius: 20px;
  }
  .about-content {
    margin: 0 !important;
    padding: 0 !important;
    text-align: left;
    width: 100%;
  }
  .about-subtitle {
    font-size: 48px;
    text-align: center;
    margin-bottom: 15px;
  }
  .empty-space {
    display: none;
  }

  /* 4. УСЛУГИ (Сетка 2х2) */
  .services-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-rows: 130px !important;
    gap: 10px !important;
  }
  .service-item.wide,
  .service-item.tall {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  /* 5. КРУТЫЕ АКЦИИ */
  .promo-section .container {
    padding: 0;
  }
  .promo-swiper {
    padding: 0 !important;
  }
  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }

  /* 6. МАСТЕРА (Сетка 2х2) */
  #masters-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }

  /* 7. ФОРМА И ПОДВАЛ */
  .booking-wrapper-max {
    flex-direction: column;
    margin: 0 10px;
  }
  .booking-content-max {
    padding: 30px 15px;
  }
  .booking-image-max {
    display: none;
  }
  .section-title {
    font-size: 32px;
    text-align: center;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-map {
    width: 100%;
    height: 300px;
    order: -1;
  }
}

@media (max-width: 480px) {
  .services-grid,
  #masters-grid {
    grid-template-columns: 1fr !important;
  }
  .main-title {
    font-size: 40px;
  }
}

.services-grid a {
  text-decoration: none;
  color: #000000; /* Или любой другой цвет, который тебе нравится */
}

/* Чтобы при наведении цвет не менялся обратно на синий */
.services-grid a:visited,
.services-grid a:hover,
.services-grid a:active {
  color: #000000;
}
