﻿.site-header {
    padding: 22px 0 8px;
}

.site-header,
.site-main,
.site-footer {
    position: relative;
    z-index: 1;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nav__link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.82);
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav__link:hover {
    background: rgba(0, 0, 0, 0.20);
    border-color: rgba(255, 255, 255, 0.10);
    color: rgba(255, 176, 0, 0.95);
}

@media (max-width: 560px) {
    .topbar {
        align-items: center;
        gap: 10px;
    }

    .nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
        padding: 2px 2px;
        max-width: 100%;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .nav__link {
        flex: 0 0 auto;
        padding: 8px 10px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.10);
        background: rgba(0, 0, 0, 0.18);
        color: rgba(255, 255, 255, 0.88);
    }

    .nav__link:hover {
        background: rgba(0, 0, 0, 0.26);
        border-color: rgba(255, 255, 255, 0.16);
        color: rgba(255, 176, 0, 0.95);
        transform: none;
    }
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

@media (max-width: 980px) {
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }


    .contact-card {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 360px) {
    .hero {
        padding: 18px;
    }


    .profile-card__avatar {
        width: 240px;
        height: 240px;
    }
}