/* RESET (минимально) */
* {
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    background: none;
    border: 0;
    cursor: pointer;
}

/* LAYOUT */
:root {
    --container: 1180px;
    --gap: 24px;
    --text: #111;
    --muted: #6b6b6b;
    --underline: #f2b100;
    /* жёлтая полоса */
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
}

/* верхняя строка сети */
.topbar__network {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    font-size: 12px;
    color: var(--muted);
}

.network {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    text-transform: uppercase;
    line-height: 0.2em;
    letter-spacing: .02em;
}

.network a:hover {
    color: #000;
}

/* основная полоса */
.topbar__main {
    background: #fff;
}

.topbar__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--gap);
}

/* логотип */
.logo {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.logo__text {
    font-weight: 800;
    letter-spacing: .04em;
    font-size: 28px;
}

.logo__r {
    font-size: 14px;
    position: relative;
    top: -3px;
    color: #c00;
}

/* главное меню */
.mainnav {
    display: flex;
    gap: 26px;
    justify-content: center;
    align-items: center;
}

.mainnav__link {
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    white-space: nowrap;
}

.mainnav__link:hover {
    opacity: .75;
}

/* иконки справа */
.actions {
    display: flex;
    gap: 10px;
}

.iconbtn {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    padding: 0;
}

.iconbtn:hover {
    background: #f3f3f3;
}

/* жёлтая линия */
.topbar__underline {
    height: 6px;
    background: var(--underline);
    width: 100%;
}

/* адаптив */
@media (max-width: 1024px) {
    .mainnav {
        gap: 18px;
    }

    .logo__text {
        font-size: 24px;
    }
}

@media (max-width: 840px) {
    .topbar__inner {
        grid-template-columns: 1fr auto;
        row-gap: 10px;
    }

    .mainnav {
        grid-column: 1 / -1;
        order: 3;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .mainnav::-webkit-scrollbar {
        height: 0;
    }
}

@media (max-width: 520px) {
    .network {
        gap: 10px;
    }

    .mainnav__link {
        font-size: 14px;
    }

    .logo__text {
        font-size: 20px;
    }
}


/* vars (reuse from header if defined) */
:root {
    --container: 1180px;
    --yellow: #f6b500;
    --yellow-dark: #e8a400;
    --red: #e3342f;
    --dark: #171717;
    --light: #fff;
}

/* layout */
.sitefooter .foot__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 18px 16px;
}

/* TOP YELLOW STRIP */
.foot-cta {
    background: var(--yellow);
    color: #8b2600;
}

.foot-cta .foot__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
}

.foot-cta__left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.foot-cta__title {
    font-weight: 700;
    font-size: 18px;
    color: #c8171d;
}

.btn-pill {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    border: 2px solid #c8171d;
    color: #c8171d;
    font-weight: 700;
    transition: .2s ease;
}

.btn-pill:hover {
    background: #fff0f0;
    transform: translateY(-1px);
}

.foot-cta__right {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: flex-end;
}

.foot-cta__follow {
    font-weight: 700;
    color: #c8171d;
}

.socials {
    display: flex;
    gap: 14px;
}

.social {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    color: #b01a1f;
}

.social:hover {
    opacity: .8;
}

/* BOTTOM DARK STRIP */
.foot-main {
    background: var(--dark);
    color: #e6e6e6;
    border-top: 1px solid rgba(0, 0, 0, .1);
    position: relative;
}

.foot-main .foot__inner {
    display: grid;
    grid-template-columns: 3.2fr 0.1fr 1.2fr;
    align-items: center;
    gap: 20px;
    padding: 20px 16px 26px;
}

.foot-main__left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.foot-q {
    font-weight: 700;
    color: #fff;
}

.btn-pill--outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
    padding: 8px 16px;
}

.btn-pill--outline:hover {
    background: rgba(255, 255, 255, .08);
}

.foot-main__center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.weblogy__placeholder {
    font-weight: 800;
    font-size: 22px;
    letter-spacing: .04em;
    color: #ddd;
}

.foot-main__right {
    display: flex;
    justify-content: flex-end;
    text-align: right;
    font-size: 14px;
    line-height: 1.4;
    color: #cfcfcf;
}

/* Back-to-top floating button */
.to-top {
    position: absolute;
    right: 18px;
    top: -18px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #ffcf4a;
    border: 2px solid #00000025;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .25);
}

.to-top:hover {
    background: #ffd769;
}

/* responsive */
@media (max-width: 960px) {
    .foot-main .foot__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .mainnav {
        display: none;
    }
    .topbar__network {
        display: none;
    }

    .foot-main__left,
    .foot-main__right {
        justify-content: center;
        text-align: center;
    }

    .to-top {
        right: 12px;
    }
}

@media (max-width: 560px) {
    .foot-cta .foot__inner {
        grid-template-columns: 1fr;
        row-gap: 12px;
    }

    .foot-cta__right {
        justify-content: space-between;
    }

    .weblogy__placeholder {
        font-size: 20px;
    }
}