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

body {
    background-color: #ffffff;
    font-family: 'Times New Roman', Times, Georgia, serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    width: 100%;
    max-width: 650px;
    text-align: center;
}

/* Сетка 3x3 */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    width: 100%;
    margin-bottom: 35px;
}

.grid-item {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: #f2f2f2;
    text-decoration: none;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

.grid-item:hover img {
    transform: scale(1.05);
    opacity: 0.92;
}

/* Подписи и соцсети */
.title {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 4.3rem;
    font-weight: 400;
    color: #000000;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    line-height: 1;
}

.subtitle {
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 0.75rem;
    color: #888888;
    letter-spacing: 0.3px;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.social-links a {
    color: #888888;
    display: inline-block;
    transition: color 0.25s ease, transform 0.25s ease;
}

.social-links a:hover {
    color: #000000;
    transform: translateY(-2px);
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

/* --- Стили для отдельных страниц карточек --- */

.photo-page-container {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-size: 0.9rem;
    color: #888888;
    text-decoration: none;
    margin-bottom: 25px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #000000;
}

.photo-wrapper {
    width: 100%;
    margin-bottom: 30px;
    background-color: #f9f9f9;
}

.detail-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 80vh;
    object-fit: contain;
}

.photo-info {
    text-align: left;
}

.photo-title {
    font-size: 2.2rem;
    font-weight: 400;
    color: #000000;
    margin-bottom: 6px;
}

.photo-date {
    font-size: 0.85rem;
    color: #888888;
    margin-bottom: 20px;
}

.photo-description p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #222222;
    margin-bottom: 15px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    color: #2d3748;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.trainer-card {
    max-width: 640px;
    width: 100%;
}

h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 18px;
    letter-spacing: -0.3px;
}

.text-block {
    font-size: 16px;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 20px;
}

.certificates-box {
    background-color: #f1f2f4;
    border-radius: 20px;
    padding: 28px 32px;
    margin-top: 32px;
}

.certificates-box h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 18px;
}

.certificates-list {
    list-style: none;
}

.certificates-list li {
    font-size: 15px;
    color: #4a5568;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.certificates-list li:last-child {
    margin-bottom: 0;
}

.checkmark {
    color: #8c637a;
    font-weight: bold;
    margin-right: 12px;
    line-height: 1.4;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
    transition: all 0.3s ease;
    gap: 12px;
}

.whatsapp-btn:hover {
    background-color: #22bf5b;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.whatsapp-btn:active {
    transform: translateY(0);
}

.whatsapp-icon {
    width: 22px;
    height: 22px;
    fill: #ffffff;
    flex-shrink: 0;
}

/* Стили для секции направлений */
.services-section {
    margin-top: 36px;
    margin-bottom: 32px;
}

.services-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 колонки на широких экранах, на мобильных в столбик */
    }
}

.service-card {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.service-emoji {
    font-size: 22px;
}

.service-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.service-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #4a5568;
    margin-bottom: 16px;
}

.service-list {
    list-style: none;
    margin-bottom: 20px;
    padding: 0;
}

.service-list li {
    font-size: 13px;
    color: #4a5568;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.service-list li span {
    color: #8c637a;
    font-weight: bold;
}

.service-price {
    font-size: 18px;
    font-weight: 700;
    color: #2d3748;
    border-top: 1px solid #e2e8f0;
    padding-top: 14px;
    margin-top: auto;
}

.service-price small {
    font-size: 13px;
    font-weight: 400;
    color: #718096;
}

.footer-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #25D366;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

.footer-whatsapp-btn:hover {
    background-color: #22bf5b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* 1. Белый цвет иконки по умолчанию (перебивает общие стили сайта) */
.footer-whatsapp-btn .footer-whatsapp-icon {
    flex-shrink: 0;
    fill: #ffffff !important;
    transition: fill 0.2s ease;
}

/* 2. Черный цвет иконки при наведении на кнопку */
.footer-whatsapp-btn:hover .footer-whatsapp-icon {
    fill: #000000 !important;
}

.footer-location {
    text-align: center; /* Центрируем локацию (или left, если у вас всё выровнено по левому краю) */
    margin-top: 10px;   /* Отступ сверху от соцсетей/кнопок */
}

.footer-location small {
    font-size: 12px;
    color: #ffffff;     /* Приглушенный серо-серебристый цвет, чтобы было ненавязчиво */
    letter-spacing: 0.5px;
    font-weight: 400;
}

.audience-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.audience-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 32px;
    letter-spacing: -0.3px;
}

.audience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* На планшетах и ПК делаем сетку в 2 или 4 колонки (тут настроено по 2-3 в ряд) */
@media (min-width: 640px) {
    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .audience-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.audience-card {
    background-color: #f8f6f5; /* Мягкий светлый оттенок бежевого/серого */
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Красивая розовая полосочка слева, как на вашем макете */
.audience-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #d8a4b2; /* Пыльно-розовый цвет в тон */
}

.audience-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.audience-card h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}

.audience-card p {
    font-size: 14px;
    line-height: 1.5;
    color: #4a5568;
    margin: 0;
}

/* Убедимся, что карточка позиционируется для абсолютных элементов */
.grid-item {
  position: relative;
  display: block;
  overflow: hidden;
}

/* Полупрозрачная легкая плашка-ленточка */
.menu-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.45); /* Сделали фон более прозрачным (было 0.85) */
  backdrop-filter: blur(6px);            /* Усилили размытие подложки, чтобы текст оставался читаемым */
  color: #111;
  padding: 4px 10px;
  font-family: 'Times New Roman', Times, serif;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  opacity: 0.75;                          /* Общая прозрачность в обычном состоянии */
  transition: all 0.3s ease;
  pointer-events: none;
}

/* При наведении на картинку плашка становится чуть заметнее */
.grid-item:hover .menu-ribbon {
  opacity: 1;
  background: rgba(255, 255, 255, 0.75); /* При наведении тоже остается полупрозрачной */
  transform: translateY(-2px);
}

/* Контейнер */
.container {
  position: relative;
}

/* Кнопка смены языка (HE) в правом верхнем углу над галереей */
.lang-switch-btn {
  position: absolute;
  top: -35px; /* поднимаем чуть выше сетки фото */
  right: 0;   /* прижимаем ровно к правому краю картинок */
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  color: #111;
  padding: 4px 10px;
  font-family: 'Times New Roman', Times, serif;
  font-size: 11px;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  opacity: 0.75;
  transition: all 0.3s ease;
  z-index: 10;
}

.lang-switch-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

/* Сетка и полупрозрачные ленточки на картинках */
.grid-item {
  position: relative;
  display: block;
  overflow: hidden;
}

.menu-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  color: #111;
  padding: 4px 10px;
  font-family: 'Times New Roman', Times, serif;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  opacity: 0.75;
  transition: all 0.3s ease;
  pointer-events: none;
}

.grid-item:hover .menu-ribbon {
  opacity: 1;
  background: rgba(255, 255, 255, 0.75);
  transform: translateY(-2px);
}