* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.description {
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

.controls form {
    justify-content: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px;
    margin-bottom: 15px;
}

.city-input {
    flex-grow: 1;
    max-width: 550px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    text-overflow: ellipsis;
}

.btn {
    padding: 12px 20px;
    background-color: #3498db;
    text-decoration: none;
    flex-shrink: 0;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.comparison-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.weather-card {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.weather-card:hover {
    transform: translateY(-5px);
}

.weather-header {
    display: flex;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.forum-name {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
}

.city-name {
    grid-column: span 2;
    text-align: center;
    font-size: 18px;
    color: #3498db;
    margin-top: 10px;
}

.weather-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding-bottom: 15px;
}

.weather-item {
    margin-bottom: 10px;
}

.weather-label {
    font-weight: 600;
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 5px;
}

.weather-value {
    font-size: 18px;
    color: #2c3e50;
}

.condition {
    font-size: 20px;
    color: #2c3e50;;
    grid-column: span 2;
    text-align: center;
    margin: 10px 0;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    font-size: 18px;
    grid-column: 1 / -1;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding-bottom: 50px;
}

.pagination .btn.active {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
    pointer-events: none; /* Чтобы нельзя было нажать на текущую страницу */
}
.page-info {
    font-weight: bold;
    color: #555;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: #7f8c8d;
    font-size: 14px;
}




/* Специфичные стили для страницы прогноза */
.forum-summary {
    margin-bottom: 20px;
}

.summary-card {
    border-left: 5px solid #3498db;
}

.summary-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 15px;
}

.forecast-card {
    padding: 15px;
    text-align: center;
    background: #ffffff;
}

.forecast-date {
    font-size: 1.2rem;
    font-weight: bold;
    color: #3498db;
}

.forecast-day-name {
    font-size: 0.9rem;
    color: #7f8c8d;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.forecast-card .condition {
    font-size: 16px;
    margin: 15px 0;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forecast-card .weather-value {
    font-size: 20px;
}

@media (max-width: 600px) {
    .forecast-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}