/* ============ RESET ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============ COLORS & VARIABLES ============ */
:root {
  --primary-red: #c62828;
  --accent-red: #ff5252;
  --bg-dark: #0a0a0a;
  --bg-secondary: #141414;
  --text-primary: #f5f5f5;
  --text-secondary: #d0d0d0;
  --text-muted: #909090;
  --border-red: rgba(198, 40, 40, 0.15);
}

/* ============ BASE STYLES ============ */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-red);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  height: 70px;
}

.logo {
  font-family: 'Sports World', 'Oswald', 'Roboto', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 200ms ease;
}

.logo:hover {
  color: var(--accent-red);
}

/* ============ NAVIGATION ============ */
.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color 200ms ease, transform 200ms ease;
  position: relative;
}

.nav a:after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-red), var(--accent-red));
  transition: width 300ms ease;
}

.nav a:hover:after,
.nav a:focus:after {
  width: 100%;
}

.nav a.active:after {
  width: 100%;
  background: linear-gradient(90deg, var(--accent-red), var(--primary-red));
}

.nav a:hover,
.nav a:focus {
  color: var(--accent-red);
  outline: none;
}

/* Когда пользователь наводит курсор на любой пункт меню, скрываем
   подчёркивание у текущего active, чтобы не было двух подсветок одновременно */
.nav:has(a:hover) a.active:after {
  width: 0;
}

/* ============ BURGER MENU ============ */
.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 8px;
}

.hamburger {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 300ms ease;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 300ms ease;
  left: 0;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg) translateY(7px);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg) translateY(-7px);
}

/* ============ MAIN & SECTIONS ============ */
main {
  padding-top: 70px;
}

section {
  padding: 100px 0;
}

h2 {
  font-family: 'Sports World', 'Oswald', sans-serif;
  font-size: 2.4rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 50px;
  letter-spacing: 1px;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red), var(--accent-red));
  margin: 20px auto 0;
  border-radius: 2px;
}

p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
}

/* ============ HERO SECTION ============ */
.hero {
  background: linear-gradient(135deg, rgba(6, 6, 6, 0.7) 0%, rgba(15, 15, 20, 0.7) 100%), 
              url('images/hero-bg.jpg') center/cover no-repeat;
  height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 70px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 4;
}

/* ============ LOGO ANIMATION ============ */
.logo-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  max-width: 3600px;
  height: auto;
  opacity: 0.95;
  transition: opacity 200ms ease, transform 600ms ease-in-out;
  position: relative;
  z-index: 2; /* Adjusted z-index to ensure text is above the logo */
  mix-blend-mode: color; /* Применяет цвет поверх изображения */
}

/* Не блокировать события мыши (чтобы кнопки работали) — только изображение */
.hero-logo {
  pointer-events: none;
}

/* Создаём красный слой поверх логотипа */
.hero-logo::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 0, 0, 0.6),
    rgba(198, 40, 40, 0.8)
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Плавно показываем красный слой при наведении */
.btn:hover ~ .logo-animation .hero-logo::after,
.logo-animation:hover .hero-logo::after {
  opacity: 1;
}


/* При наведении на кнопку — плавно повернуть логотип, а при уходе он будет
   возвращаться обратно благодаря постоянному `transition` на .hero-logo */
.hero:has(.btn:hover) .hero-logo,
.btn:hover .hero-logo {
  transform: rotateZ(15deg);
}

@keyframes rotateLogoSmooth {
  0% {
    transform: rotateZ(0deg);
  }
  50% {
    transform: rotateZ(15deg);
  }
  100% {
    transform: rotateZ(0deg);
  }
}

/* Team grid on main page */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  justify-items: stretch;
  align-items: start;
  grid-auto-flow: row;
  grid-auto-rows: 1fr; /* make each grid row's tracks equal height so cards match */
}
.team-item {
  background: transparent;
  border-radius: 8px;
  overflow: visible;
}
.team-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-red);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  height: 100%; /* ensure card fills the grid cell */
}
.team-grid .team-card img {
  width: 100%;
  flex: 0 0 240px; /* fixed visual area for grid images */
  object-fit: contain;
  background: var(--bg-secondary);
  display: block;
}
.team-card--featured {
  grid-column: span 1;
}
.team-card--featured img {
  height: 360px;
  object-fit: contain;
  background: var(--bg-secondary);
}

/* Featured row: centered two trainers */
.featured-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 28px;
  align-items: stretch; /* ensure featured cards match height */
}
.featured-row .team-card {
  flex: 1 1 46%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0; /* allow proper flex shrink/grow inside */
}
.featured-row .team-card img {
  flex: 0 0 360px; /* fixed visual area for featured images */
}

.featured-row .team-card .team-info {
  flex: 1 1 auto; /* let info area expand so both cards equalize */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* allow .team-info to shrink properly inside flex item */
.featured-row .team-card .team-info { min-height: 0; }

@media (max-width: 900px) {
  .featured-row { flex-direction: column; gap: 14px; }
  .featured-row .team-card { flex: 1 1 100%; max-width: none; }
  /* On medium/smaller screens make featured images scale by width and cap their height
     to avoid vertical stretching; let image keep its aspect ratio */
  .featured-row .team-card img {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
  }
}

@media (max-width: 900px) {
  /* Slightly reduce grid images on medium screens so featured remain noticeably larger */
  .team-grid .team-card img { flex: 0 0 200px; }
}

@media (max-width: 480px) {
  .team-card img { flex: 0 0 160px; }
  /* Ensure featured images also scale nicely on very small screens */
  .featured-row .team-card img {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    max-height: 200px;
  }
}

/* Old placement rules removed — allow natural grid flow for consistent rows */
.team-info {
  padding: 10px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto; /* allow info area to grow so cards equalize */
}
.team-name {
  margin: 0 0 6px;
}
.team-name .team-surname {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.12rem; /* slightly increased */
  font-weight: 700;
  color: var(--text-primary);
}
.team-name .team-given {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.04rem; /* slightly increased */
  font-weight: 700;
  color: var(--text-primary);
}
.team-desc {
  color: var(--text-secondary);
  font-size: 1rem; /* slight increase for readability */
  line-height: 1.48;
  margin: 0;
  margin-top: 10px;
  margin-bottom: 6px;
  /* push description to bottom if space available so cards look balanced */
  /* when .team-info is flex column, margin-top:auto could push it down, but we keep a small gap */
}

@media (max-width: 1200px) { .team-grid { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .team-card--featured { grid-column: span 1; }
  .team-card--featured img { height: 260px; }
}
@media (max-width: 480px) { .team-grid { grid-template-columns: 1fr; } .team-item { height: 180px; } }
.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: var(--text-secondary);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* ============ BUTTON ============ */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--accent-red) 100%);
  color: var(--text-primary);
  padding: 14px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(198, 40, 40, 0.3);
  transition: transform 200ms ease, box-shadow 200ms ease;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.btn:hover,
.btn:focus {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(198, 40, 40, 0.45);
  outline: none;
}

.btn:hover ~ .logo-animation .hero-logo {
  animation: rotateLogoSmooth 3s ease-in-out infinite;
}

/* ============ ABOUT SECTION ============ */
.about .container {
  max-width: 800px;
}

.about p {
  text-align: center;
  margin: 0 auto;
}

/* ============ SPORTS SECTION ============ */
.sports-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sport-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-red);
  border-left: 4px solid var(--primary-red);
  padding: 20px 18px;
  border-radius: 10px;
  text-align: center;
  transition: transform 250ms ease, box-shadow 250ms ease, border-left-color 250ms ease;
}

.sport-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(198, 40, 40, 0.2);
  border-left-color: var(--accent-red);
}

.sport-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.sport-card p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Изображение для карточки кикбоксинга */
.sport-card__image {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  width: 100%;
  object-fit: contain;
  margin: 0 0 12px 0;
  transition: max-height 300ms ease, opacity 300ms ease;
}

.sport-card:hover .sport-card__image {
  max-height: 160px;
  opacity: 1;
}

/* ============ CONTACTS SECTION ============ */
.contacts-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: start;
}

.contact-info h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

/* Заголовок в блоке адресов должен совпадать с заголовком телефонов */
.addresses-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.contact-info p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.contact-info strong {
  color: var(--accent-red);
  font-weight: 600;
}

.map {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(20, 20, 20, 0.8) 100%);
  border: 1px solid var(--border-red);
  border-radius: 10px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ============ FOOTER ============ */
.footer {
  background: rgba(5, 5, 5, 0.9);
  border-top: 2px solid var(--primary-red);
  padding: 50px 0;
  text-align: center;
  color: var(--text-muted);
}

/* ============ BACK TO TOP BUTTON ============ */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--accent-red) 100%);
  color: var(--text-primary);
  box-shadow: 0 10px 28px rgba(198, 40, 40, 0.35);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 20px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  z-index: 1500;
}
.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  box-shadow: 0 14px 36px rgba(198, 40, 40, 0.5);
  transform: translateY(-2px);
}
@media (max-width: 480px) {
  .back-to-top {
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* ===== Gallery carousel styles (appended) ===== */
.carousel {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-red);
  border-radius: 8px;
  margin-bottom: 18px;
}
.carousel-track {
  display: flex;
  transition: transform 320ms ease;
  will-change: transform;
}
.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 480px;
  cursor: pointer;
}
.carousel-slide img {
  /* Show the whole image inside the slide without cropping */
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
  background: var(--bg-secondary);
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: var(--text-primary);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 20;
}
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-btn:hover { background: rgba(198,40,40,0.9); transform: translateY(-50%) scale(1.03); }
@media (max-width: 900px) {
  .carousel-slide { height: 380px; }
}
@media (max-width: 480px) {
  .carousel-slide { height: 280px; }
  .carousel-btn { width: 36px; height: 36px; }
}

/* ============ MOBILE MENU ============ */
.nav.open {
  display: flex !important;
  position: absolute;
  top: 70px;
  right: 15px;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-red);
  border-radius: 8px;
  padding: 20px;
  min-width: 200px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  animation: slideDown 300ms ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav.open a:after {
  display: none;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav a {
    font-size: 0.9rem;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
  }

  .header .container {
    height: 60px;
  }

  .logo {
    font-size: 1.5rem;
    letter-spacing: 1.5px;
  }

  main {
    padding-top: 60px;
  }

  .hero {
    height: 60vh;
    margin-top: 60px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.05rem;
  }

  section {
    padding: 60px 0;
  }

  h2 {
    font-size: 1.9rem;
  }

  .sports-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .contacts-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .map {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.3rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .btn {
    padding: 12px 28px;
    font-size: 0.9rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .sport-card {
    padding: 24px 18px;
  }

  .sport-card h3 {
    font-size: 1.2rem;
  }

  section {
    padding: 40px 0;
  }
}

/* ============ ACCESSIBILITY ============ */
:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 3px;
}

button:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 2px;
}

/* ============ MODAL / CONTACT FORM ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 2000;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: linear-gradient(180deg, #0f0f0f, #0b0b0b);
  border: 1px solid var(--border-red);
  padding: 22px;
  border-radius: 10px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
}

/* Sport info modal body styling */
.sport-modal-body {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.98rem;
}
.sport-modal-body p {
  margin-bottom: 12px;
}
.modal h3 {
  margin: 0 0 12px 0;
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem;
}
.modal-close {
  position: absolute;
  right: 18px;
  top: 12px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 22px;
  cursor: pointer;
}
.form-row {
  display: block;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.form-row input,
.form-row textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  background: #0a0a0a;
  color: var(--text-primary);
}

/* Фиксированный размер поля сообщения (textarea) в форме обратной связи */
.form-row textarea {
  resize: none; /* запрет изменения размера пользователем */
  height: 120px; /* фиксированная высота */
}
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  justify-content: flex-end;
}
.btn.secondary {
  background: transparent;
  border: 1px solid rgba(198,40,40,0.25);
  color: var(--text-primary);
  padding: 10px 18px;
}

@media (max-width: 480px) {
  .modal { padding: 16px; }
  .modal-close { right: 12px; top: 8px; }
}

/* Breakpoints for sports grid */
@media (max-width: 1200px) {
  .sports-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .sports-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .sports-grid {
    grid-template-columns: 1fr;
  }
  .sport-card__image {
    max-height: 120px;
  }
}

/* Load Google fonts used across the site */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&family=Oswald:wght@500;600&display=swap');

/* Local display font for logo */
@font-face {
  font-family: 'Sports World';
  src: url('fonts/SportsWorld.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Floating social icons placed top-right below fixed header */
.social-float {
  position: fixed;
  top: calc(70px + 12px); /* header height + gap */
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1100;
}
.social-link svg,
.social-link img {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 8px;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
  box-shadow: 0 8px 18px rgba(0,0,0,0.4);
  /* Dim icons by default so they are not too bright */
  filter: grayscale(60%) brightness(0.65);
  opacity: 0.9;
}
.social-link:hover svg,
.social-link:focus svg,
.social-link:hover img,
.social-link:focus img {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
  /* Restore full color on hover/focus */
  filter: none;
  opacity: 1;
}
@media (max-width: 900px) {
  .social-float { right: 12px; top: calc(60px + 8px); }
}
@media (max-width: 480px) {
  .social-float { display: none; } /* hide on very small screens to avoid overlap */
}