body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, #0f2027, #203a43, #2c5364);
    font-family: 'Segoe UI', Roboto, sans-serif;
    color: white;
}

.main-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    padding: 20px;
    width: 100%;
    max-width: 900px;
}

.weather-card, .currency-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    text-align: center;
    flex: 1;
    min-width: 300px;
    box-sizing: border-box;
    transition: transform 0.3s;
}

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

.weather-card {
    padding: 40px;
}

.currency-card {
    padding: 30px;
    display: flex;
    flex-direction: column;  
    justify-content: center; 
    align-items: center;
}

h2#cityName {
    font-size: 2.0rem; 
    font-weight: 600; 
    margin: 10px 0;
}

.search {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search input {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
    width: 65%;
}

.search button {
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: #00d2ff;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.search button:hover { 
    background: #3a7bd5; 
}

.temp { 
    font-size: 4rem; 
    margin: 20px 0; 
    font-weight: 200; 
}

.meta { 
    display: flex; 
    justify-content: space-between; 
    margin-top: 30px; 
    font-size: 0.85rem; 
    opacity: 0.8; 
}

.rate-item {
    font-size: 1.1rem; /* Немного уменьшил, чтобы всё влезало в строку */
    margin: 12px 0;
    font-weight: bold;
    width: 100%;
    display: flex; /* Используем flex для выравнивания в строку */
    justify-content: center; /* Центровка содержимого */
    align-items: baseline; /* Выравнивание по базовой линии текста */
    gap: 8px; /* Расстояние между основным курсом и скобками */
}

.rate-item span {
    color: #00d2ff;
}

.rate-item small {
    display: inline; /* Возвращаем в строку */
    font-size: 0.8rem;
    opacity: 0.6;      
    font-weight: 400;  
    color: #ffffff;
}

.rate-item small {
    margin-top: 0;
}

.hidden { 
    display: none; 
}

@media (max-width: 480px) {
    .main-container {
        padding: 10px;
    }
    .weather-card, .currency-card {
        min-width: 100%;
        max-width: 100%;
    }
}