body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f6f9;
    color: #222;
    margin: 0;
    padding: 20px;
}

h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

p {
    margin-top: 5px;
    color: #555;
}

h2 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 30px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}

.grounds-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.grounds-list li {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 20px;
    transition: all 0.3s ease-in-out;
}

.grounds-list li:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.grounds-list img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.grounds-list h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.grounds-list p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.btn {
    background-color: #007bff;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}
.ground-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.ground-card-link:hover {
    color: inherit;
}

.ground-card-link h4,
.ground-card-link p {
    margin: 0;
}

a {
  text-decoration: none; /* убирает подчёркивание */
  color: inherit;         /* наследует цвет от родителя */
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 24px;
        text-align: center;
    }

    h2 {
        font-size: 18px;
        text-align: center;
    }

    .grounds-list {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .grounds-list li {
        padding: 16px;
    }

    .grounds-list img {
        max-height: 160px;
    }

    .grounds-list h4 {
        font-size: 16px;
        text-align: center;
    }

    .grounds-list p {
        font-size: 13px;
        text-align: center;
    }

    .btn {
        display: block;
        width: 100%;
        font-size: 14px;
        text-align: center;
        padding: 10px;
    }
    a {
      text-decoration: none; /* убирает подчёркивание */
      color: inherit;         /* наследует цвет от родителя */
    }
}
