:root {
    --primary-gradient: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    --secondary-gradient: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
    --card-shadow: 0 10px 30px rgba(220, 38, 38, 0.1);
    --hover-shadow: 0 20px 60px rgba(220, 38, 38, 0.15);
  }
  body {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    min-height: 100vh;
  }

  /* ==== HERO SECTION ==== */
  .hero-section-hall-details {
    background: var(--primary-gradient);
    color: white;
    padding: 1rem 0;
    margin: -2rem -15px 3rem -15px;
    position: relative;
    overflow: hidden;
    text-align: center;
  }
  .hero-section-hall-details::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
    animation: float 20s ease-in-out infinite;
  }
  @keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-20px, -20px) rotate(1deg); }
    66% { transform: translate(20px, -10px) rotate(-1deg); }
  }
  .hero-content {
    position: relative; z-index: 2;
    display: flex; flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }
  .hero-content.hero-with-back {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    position: relative;
  }
  /* Кнопка-назад для десктопа: */
  .back-btn-fixed {
    position: fixed;
    top: 90px;
    left: 32px;
    z-index: 120;
    background: linear-gradient(135deg, #665f5f 0%, #000000 100%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0.97;
    border: none;
    transition: box-shadow 0.16s, background 0.16s;
  }
  .back-btn-fixed:hover {
    background: linear-gradient(135deg, #000000 0%, #665f5f 100%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  }

  /* Мобільна кнопка-назад: */
  .back-btn-mobile {
    margin-bottom: 1.3rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background: #fff;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(220,38,38,0.10);
    border: 1.5px solid #f3f3f3;
  }
  .back-btn-mobile svg {
    display: block;
  }
  .hall-header-block {
    max-width: 700px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
  }
  .hall-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: .01em;
    margin-bottom: 0;
    color: #fff;
    background-clip: text;
    text-align: center;
  }
  .hall-address {
    display: flex;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 500;
    color: #fff;
    opacity: .96;
    margin-bottom: 0;
    text-shadow: 0 2px 8px rgba(220,38,38,0.13);
    justify-content: center;
  }
  .hall-description {
    margin-top: .5rem;
    font-size: 1.13rem;
    color: #ffeaea;
    line-height: 1.6;
    text-align: center;
    opacity: .97;
    font-weight: 400;
    text-shadow: 0 1px 10px rgba(0,0,0,0.04);
  }

  /* ==== CONTENT SECTION ==== */
  .content-section {
    background: #fff;
    border-radius: 18px;
    padding: 2.2rem;
    margin-bottom: 2.3rem;
    box-shadow: var(--card-shadow);
    animation: fadeInUp 0.8s cubic-bezier(.45,0,.55,1) 0.4s both;
  }
  .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    text-align: center;
  }

  /* ==== TRAINER CARD ==== */
  .trainer-card {
    display: flex; gap: 2rem;
    align-items: flex-start;
    background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
    border-radius: 18px;
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(220,38,38,0.08);
    transition: all 0.3s;
  }
  .trainer-avatar { position: relative; flex-shrink: 0; }
  .trainer-avatar img, .avatar-placeholder {
    width: 300px; height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.13);
    background: var(--primary-gradient);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
    color: #fff;
  }
  .trainer-rank {
    position: absolute;
    bottom: 130px; left: 50%; transform: translateX(-50%);
    background: var(--secondary-gradient);
    color: white; padding: 0.3rem 0.85rem;
    border-radius: 14px; font-size: 0.88rem; font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.18);
  }
  .trainer-info { flex: 1; }
  .trainer-name {
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: .8rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
  }
  .trainer-description {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    text-align: left;
  }
  .contact-btn {
    background: var(--secondary-gradient);
    color: white;
    padding: 0.9rem 1.5rem;
    border-radius: 42px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.09rem;
    transition: all 0.3s;
    box-shadow: 0 8px 22px rgba(245,87,108,0.19);
    margin-top: 1.2rem;
  }
  .contact-btn:hover {
    transform: translateY(-3px);
    background: var(--primary-gradient);
    color: #fff;
    text-decoration: none;
  }
  .contact-block{
    display: flex;
    justify-content: center;
    gap: 1.1rem;
  }
  /* ==== SOCIAL LINKS ==== */
  .social-links {
    display: flex;
    gap: 1.1rem;
    margin-top: 1.0rem;
    align-items: center;
    justify-content: center;
  }
  .social-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: #e5e7eb; color: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.09);
    transition: all 0.24s;
    font-size: 1.35rem; position: relative; overflow: hidden;
    border: none;
  }
  .social-link svg { width: 25px; height: 25px; }
  .social-facebook { background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%); }
  .social-facebook:hover { background: #1877f2; transform: scale(1.1) translateY(-2px);}
  .social-instagram { background: linear-gradient(135deg, #e4405f 0%, #f77737 50%, #fccc63 100%); }
  .social-instagram:hover { background: #e4405f; transform: scale(1.1) translateY(-2px);}
  .social-tiktok { background: linear-gradient(135deg, #000 0%, #333 100%); }
  .social-tiktok:hover { background: #000; transform: scale(1.1) translateY(-2px);}
  .social-link:focus { outline: 2px solid #dc2626; }
  .social-link svg { display: block; }

  /* ==== GROUPS AND SCHEDULES ==== */
  .groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
  }
  .group-card {
    background: #fff;
    border-radius: 13px;
    padding: 1.2rem 1.2rem 1.1rem;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    animation: fadeInUp 0.7s cubic-bezier(.45,0,.55,1) calc(0.06s * var(--card-index, 0)) both;
  }
  .group-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 5px;
    background: var(--primary-gradient);
    transition: height 0.25s;
  }
  .group-card:hover { transform: translateY(-5px); box-shadow: var(--hover-shadow);}
  .group-card:hover::before { height: 11px; }
  .group-name {
    font-size: 1.19rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.5rem;
  }
  .price-section {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 10px;
    padding: 0.8rem;
    margin-bottom: 1.2rem;
    border-left: 4px solid; border-image: var(--primary-gradient) 1;
  }
  .price-title {
    font-weight: 600; color: #4a5568; margin-bottom: 0.6rem; font-size: 0.97rem;
  }
  .price-grid {
    display: flex; gap: 0.8rem;
  }
  .price-item {
    flex: 1; text-align: center;
    padding: 0.65rem;
    background: #fff;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s;
  }
  .price-label { font-size: 0.82rem; color: #718096; margin-bottom: 0.18rem; }
  .price-value {
    font-size: 1.08rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .schedule-section { background: #f8fafc; border-radius: 10px; padding: 0.8rem; }
  .schedule-title { font-weight: 600; color: #4a5568; margin-bottom: 0.7rem; font-size: 0.98rem; display: flex; align-items: center; gap: 0.5rem; }
  .schedule-title::before { content: '📅'; font-size: 0.9rem; }
  .schedule-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.05);}
  .schedule-table th { background: var(--primary-gradient); color: #fff; padding: 0.48rem 0.7rem; font-size: 0.85rem; font-weight: 600; text-align: left;}
  .schedule-table td { padding: 0.48rem 0.7rem; border-bottom: 1px solid #f1f5f9; font-size: 0.85rem;}
  .schedule-table tr:last-child td { border-bottom: none; }
  .schedule-table tr:hover { background: #f8fafc; }
  .schedule-day-cell { font-weight: 600; color: #2d3748; }
  .schedule-time-cell { color: #4a5568; text-align: right; }
  .no-groups {
    text-align: center;
    padding: 3.2rem 2rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    color: #718096;
    font-size: 1.08rem;
    margin-bottom: 2rem;
  }
  .no-groups::before {
    content: '😔';
    font-size: 2.4rem;
    display: block;
    margin-bottom: 1rem;
  }
  /* ==== MAP ==== */
  .map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.3s;
    margin-bottom: 2.1rem;
    height: 400px;
  }
  .map-container:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-5px);
  }

  /* ==== ANIMATIONS ==== */
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(38px);}
    to { opacity: 1; transform: translateY(0);}
  }
  @media (max-width: 768px) {
    .hero-section-hall-details { padding: 2rem 0 1rem; margin: -1rem -10px 2rem -10px;}
    .hall-title { font-size: 1.38rem;}
    .hall-address { font-size: 1rem;}
    .hall-description { font-size: 1rem; }
    .content-section { padding: 1.3rem;}
    .trainer-card { flex-direction: column; gap: 1.2rem; text-align: center; align-items: center;}
    .trainer-avatar img, .avatar-placeholder { width: 180px; height: 180px;}
    .groups-grid { grid-template-columns: 1fr; }
    .group-card { padding: 1rem; }
  }
  @media (max-width: 800px) {
    .back-btn-fixed { display: none !important; }
    .hero-content.hero-with-back { min-height: unset; }
    .hall-header-block { max-width: 100%; padding: 0 6px; }
  }
  @media (min-width: 801px) {
    .back-btn-mobile { display: none !important; }
  }