.brand-icon {
    display: block;
    width: 1em;
    height: 1em;
}

.site-header {
    position: relative;
    z-index: 1000;
    margin-top: 20px;
}
.site-header__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 40px;
    border-radius: 16px;
    background: #161618;
}
.site-header__logo {
    flex: none;
}
.site-header__logo img {
    display: block;
    width: auto;
    height: 50px;
}
.site-nav__list {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 44px;
    color: #fff;
    font-size: 18px;
    font-weight: 200;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
}
.site-nav__link:hover,
.site-nav__link:focus-visible {
    color: #fd7304;
}
.site-header__cta {
    flex: none;
    padding: 10px 20px;
    border-radius: 12px;
    background: #54cc06;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}
.site-header__cta:hover,
.site-header__cta:focus-visible {
    background: #fd7304;
    color: #fff;
}
.site-header__tools {
    display: none;
    align-items: center;
    gap: 15px;
}
.site-header__tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #1e1f21;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}
.site-header__tool .brand-icon {
    width: 22px;
    height: 22px;
}

.site-footer {
    margin-top: 20px;
    color: #fff;
}
.site-footer__panel {
    padding: 20px;
    border-radius: 20px;
    background: #141414;
}
.site-footer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.site-footer__logo img {
    display: block;
    width: 150px;
    height: auto;
}
.site-footer__social {
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #ccc;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
    background: #fd7304;
    color: #fff;
}
.site-footer__contacts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}
.site-footer__contact {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    padding: 20px 40px;
    border-radius: 20px;
    background: #1e1f21;
    color: #767f8d;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.site-footer__contact:hover,
.site-footer__contact:focus-visible {
    background: #27292b;
}
.site-footer__contact-icon {
    flex: none;
    color: #fff;
    font-size: 20px;
}
.site-footer__contact-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.site-footer__label {
    margin-bottom: 2px;
    color: #9aa3b0;
    font-size: 16px;
    font-weight: 500;
}
.site-footer__value {
    color: #eceff3;
    font-size: 18px;
    font-weight: 600;
}

@media (max-width: 1399.98px) {
    .site-nav__list {
        gap: 20px;
    }
    .site-nav__link {
        font-size: 16px;
    }
}

@media (max-width: 1199.98px) {
    .site-header__bar {
        flex-wrap: wrap;
        padding: 20px;
        border-radius: 20px;
        background: #141414;
    }
    .site-header__logo img {
        height: 37px;
    }
    .site-header__cta {
        display: none;
    }
    .site-header__tools {
        display: flex;
    }
    .site-nav {
        display: none;
        order: 3;
        width: 100%;
        padding: 8px 0 4px;
        border-radius: 12px;
        background: #161618;
    }
    .site-header.is-open .site-nav {
        display: block;
    }
    .site-nav__list {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .site-nav__link {
        min-height: 56px;
        font-size: 18px;
        font-weight: 400;
    }
    .site-footer__contact {
        flex-direction: column;
        justify-content: flex-start;
        gap: 8px;
        padding: 16px 12px;
        text-align: center;
    }
    .site-footer__value {
        font-size: 16px;
        line-height: 24px;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 767.98px) {
    .site-header {
        margin: var(--section-gap, 20px) var(--section-gap, 20px) 0;
    }
    .site-footer {
        margin: var(--section-gap, 20px);
    }
    .site-footer__top {
        flex-direction: column;
    }
    .site-footer__social {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
    }
    .site-footer__contacts {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
    .site-footer__contact {
        padding: 16px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-nav__link,
    .site-header__cta,
    .site-footer__social-link,
    .site-footer__contact {
        transition: none;
    }
}
