html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #161a21;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

header {
    background-color: #1d2028;
    color: #fff;
    width: 100%;
}

.header-main nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    padding: 25px 0;
    position: relative;
}

.header-top {
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    left: 2.5%;
}

header nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    padding: 10px 0;
}

header nav a {
    color: #fff;
    text-decoration: none;
    padding: 5px 12px;
    transition: all 0.3s ease;
    font-weight: bold;
}

header nav a:hover {
    color: #ffb500;
}

header nav .search {
    color: #333842;
}

.price-now {
    border-top: 1px solid #333842;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6%;
    padding: 10px;
}

.crypto-item {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px 10px;
    border-radius: 4px;
}

.price-up {
    color: #4caf50;
}

.price-down {
    color: #f44336;
}

.price-up small,
.price-down small {
    font-size: 0.8em;
    opacity: 0.8;
}

.price-up::before {
    content: "▲";
    margin-right: 4px;
    font-size: 10px;
}

.price-down::before {
    content: "▼";
    margin-right: 4px;
    font-size: 10px;
}

.features {
    margin: 25px 25% 0;
    color: #fff;
}

.features h1 {
    text-align: center;
    font-size: 30px;
}

.features h3 {
    text-align: center;
    font-size: 25px;
    margin: 10px 0 25px;
}

.features p {
    text-align: left;
    margin: 0 10%;
}

.site-footer {
    flex-shrink: 0;
    background-color: #1d2028;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 14px;
    border-top: 1px solid #333842;
    width: 100%;
}

.footer-content p {
    margin: 5px 0;
    opacity: 0.8;
}

.disclaimer {
    font-size: 12px;
    opacity: 0.6;
}

/* Основной контейнер контента */
.main-content {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Прогноз дня */
.forecast-block {
    background-color: #1d2028;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid #333842;
    width: 100%;
}

.forecast-title {
    color: #ffb500;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.forecast-content {
    color: #fff;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.forecast-content p {
    margin: 0 0 10px;
}

.forecast-date {
    color: #333842;
    font-size: 0.9em;
    border-top: 1px solid #333842;
    padding-top: 15px;
    text-align: right;
}

/* Сетка карточек — 2 на планшете, 4 на десктопе */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Карточки в стиле прогноза дня */
.info-card {
    background-color: #1d2028;
    border: 1px solid #333842;
    padding: 20px;
    color: #fff;
    transition: transform 0.3s ease;
}

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

.info-card h3 {
    margin-top: 0;
    color: #ffb500;
    font-weight: bold;
    border-bottom: 1px solid #333842;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.info-card p {
    color: #fff;
    line-height: 1.5;
    font-size: 0.95em;
    margin-bottom: 15px;
}

.info-card a {
    color: #ffb500;
    text-decoration: none;
}

.info-card a:hover {
    text-decoration: underline;
}

.coming-soon {
    display: inline-block;
    background: #ffb500;
    color: #1d2028;
    padding: 5px 15px;
    font-size: 0.9em;
    font-weight: bold;
    margin-top: 10px;
    border: none;
}

/* Общие ссылки */
a {
    color: #ffb500;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Специфичные стили для списка технологий */
.tech-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-list li {
    background: #1d2028;
    border: 1px solid #ffb500;
    color: #ffb500;
    padding: 8px 15px;
    font-size: 0.9em;
}