body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
}

h1 {
    text-align: center;
    margin-top: 40px;
    font-size: 2rem;
    color: #222;
}

.grounds-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    max-width: 1100px;
    margin: 40px auto;
}

.ground-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ground-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.ground-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

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

.info {
    padding: 16px;
}

.info h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #111;
}

.info .location {
    color: #666;
    font-size: 0.95rem;
    margin-top: 6px;
}



.city-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px 0;
  gap: 10px;
}

.city-buttons a {
  padding: 8px 16px;
  background-color: #f2f2f2;
  border-radius: 20px;
  text-decoration: none;
  color: #333;
  border: 1px solid #ccc;
  transition: background-color 0.2s ease;
}

.city-buttons a:hover {
  background-color: #ddd;
}

.city-buttons a.active {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}


.city-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
    justify-content: center;
}

.city-filter {
    background-color: white;
    border: 2px solid #6c63ff;
    color: #6c63ff;
    padding: 8px 16px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.city-filter:hover {
    background-color: #6c63ff;
    color: white;
    transform: translateY(-2px);
}

.sport-filters {
    margin-top: 10px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.sport-filter {
    padding: 6px 12px;
    background-color: #eee;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.sport-filter.active,
.sport-filter:hover {
    background-color: #007bff;
    color: white;
}


.header-top {
  display: flex;
  justify-content: flex-start; /* выравниваем влево */
  align-items: center;
  padding: 12px 24px;
  background: white;
  border-bottom: 1px solid #e0e0e0;
}

.logo-and-city {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-link {
  text-decoration: none;
}

.oyna {
  color: #6c63ff;
  font-weight: bold;
  font-size: 1.5rem;
}

.city-dropdown-toggle {
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  color: #222;
}



.logo-link {
  font-size: 1.6rem;
  font-weight: 700;
  color: #6c63ff;
  text-decoration: none;
}
.logo-link .space {
  color: #333;
  font-weight: 400;
}



.city-dropdown-menu {
  position: absolute;
  top: 40px;
  left: 0;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 160px;
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f2f2f2;
}

.dropdown-item.active {
  background-color: #6c63ff;
  color: white;
}

.city-dropdown-wrapper {
  position: relative;
}



    .city-filters {
        flex-wrap: wrap; /* ⬅ позволяет элементам переноситься */
        overflow-x: visible; /* ⬅ убирает скролл */
        justify-content: center;
        padding: 10px;
        gap: 10px;
    }

    .city-filter {
        flex: 0 0 auto;
        font-size: 0.9rem;
        padding: 6px 12px;
    }
      .header-bar {
        flex-direction: column;
        align-items: flex-start;
      }

      .section-title {
        margin-top: 10px;
      }

      @media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
        margin-top: 24px;
        padding: 0 10px;
        text-align: center;
    }

    .grounds-list {
        flex-direction: column;
        align-items: center;
        padding: 0 10px;
        gap: 16px;
        margin: 20px auto;
    }

    .ground-card {
        width: 100%;
        max-width: 100%;
        border-radius: 10px;
    }

    .complex-image {
        height: 180px;
        object-fit: cover;
    }

    .info h3 {
        font-size: 1rem;
    }

    .info .location {
        font-size: 0.9rem;
    }
}


