/* =========================
   ROOT / BASE
========================= */
:root {
    --bg: #ffffff;
    --text: #111111;
    --muted: #6b7280;
    --line: #e7e7e7;

    --yellow: #ffd200;
    --yellow-2: #ffcf00;
    --pill: #111111;

    --shadow: 0 8px 20px rgba(0, 0, 0, .08);
    --shadow-soft: 0 6px 18px rgba(0, 0, 0, .06);

    --radius: 999px;
    --container: 1400px;

    --headerTopH: 0px;
    --headerNavH: 0px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

/* =========================
   CONTAINER
========================= */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 14px;
}

.container--1400 {
    max-width: var(--container);
}

/* =========================
   HEADER WRAPPER
========================= */
.site-header {
    border-top: 4px solid #2b2b2b;
    background: #fff;
}

/* =========================
   HEADER TOP BAR (FIXED)
========================= */
.header-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 120;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.header-top.is-stuck {
    box-shadow: var(--shadow-soft);
}

.header-top__row {
    display: grid;
    grid-template-columns: 220px 1fr 520px;
    gap: 18px;
    align-items: center;
    padding: 12px 0;
}

/* =========================
   BRAND / LOGO (SVG)
========================= */
.brand {
    display: inline-flex;
    align-items: center;
    user-select: none;
}

.brand__logo {
    display: block;
    height: 64px;
    width: auto;
}

/* =========================
   SEARCH
========================= */
.search {
    display: flex;
    justify-content: center;
}

.search__box {
    width: 100%;
    max-width: 460px;
    background: #f3f4f6;
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: 44px 1fr 74px 108px;
    align-items: center;
    padding: 6px;
    gap: 6px;
}

.search__icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #8b8b8b;
    border-radius: 50%;
}

.search__input {
    border: 0;
    background: transparent;
    outline: none;
    font-size: 15px;
    padding: 10px 4px;
    color: #111;
}

.search__engine {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search__engine svg {
    height: 32px;
    /* ← УВЕЛИЧИВАЙ ЭТО */
    width: auto;
    /* важно */
    display: block;
}

.search__btn {
    border: 0;
    background: var(--yellow-2);
    color: #111;
    font-weight: 800;
    font-size: 13px;
    padding: 10px 16px;
    border-radius: var(--radius);
    cursor: pointer;
}

.search__btn:hover {
    filter: brightness(.98);
}

/* =========================
   ACTIONS
========================= */
.actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

.actions__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #222;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.actions__miniicon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    color: #111;
}

.actions__miniicon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.actions__label {
    letter-spacing: .2px;
}

.actions__sep {
    width: 1px;
    height: 28px;
    background: var(--line);
    margin: 0 2px;
}

/* =========================
   SUBSCRIPTION PILL
========================= */
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 14px;
    border-radius: var(--radius);
    background: var(--pill);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .3px;
    white-space: nowrap;
}

/* =========================
   ICON BUTTONS
========================= */
.icons {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.icon-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: var(--yellow);
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #111;
}

.icon-btn__dot {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e11d48;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    border: 2px solid #fff;
}

/* =========================
   BURGER (MOBILE/TABLET)
========================= */
.burger {
    display: none;
    width: 40px;
    height: 36px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    padding: 6px 8px;
}

.burger span {
    display: block;
    height: 2px;
    background: #111;
    margin: 5px 0;
    border-radius: 2px;
}

/* =========================
   NAV BAR (FIXED UNDER TOP BAR)
========================= */
.header-nav {
    position: fixed;
    top: var(--headerTopH);
    left: 0;
    right: 0;
    z-index: 110;
    background: #fff;
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s ease;
}

.header-nav.is-stuck {
    box-shadow: var(--shadow-soft);
}

/* =========================
   NAV
========================= */
.nav {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 44px;
}

.nav__item {
    padding: 0 18px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 12px;
    color: #111;
    border-right: 1px solid #f1f1f1;
    white-space: nowrap;
}

.nav__item:first-child {
    border-left: 1px solid #f1f1f1;
}

.nav__item--active {
    background: #fafafa;
}

.nav__item--dd {
    cursor: pointer;
    gap: 8px;
}

.chev {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #111;
    margin-top: 2px;
}

.nav__more {
    margin-left: auto;
    height: 44px;
    padding: 0 18px;
    border: 0;
    background: #fff;
    font-weight: 900;
    font-size: 18px;
    cursor: pointer;
    border-left: 1px solid #f1f1f1;
}

/* =========================
   DRAWER + BACKDROP
========================= */
.drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    max-width: 86vw;
    height: 100vh;
    background: #fff;
    transform: translateX(-110%);
    transition: transform .25s ease;
    z-index: 200;
    box-shadow: var(--shadow);
}

.drawer.is-open {
    transform: translateX(0);
}

.drawer__inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px;
    border-bottom: 1px solid var(--line);
}

.drawer__title {
    font-weight: 900;
}

.drawer__close {
    border: 0;
    background: #fff;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

.drawer__links {
    padding: 10px 6px 18px;
    display: grid;
}

.drawer__links a {
    padding: 12px 10px;
    border-radius: 10px;
    font-weight: 800;
    color: #111;
}

.drawer__links a:hover {
    background: #f6f6f6;
}

.backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 190;
}

.backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* =========================
   PAGE OFFSET (FOR FIXED HEADER)
========================= */
.page-offset {
    height: calc(var(--headerTopH) + var(--headerNavH));
}

/* =========================
   PC WEATHER STRIP (DESKTOP ONLY)
========================= */
.pcstrip {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.pcstrip__wrap {
    display: grid;
    grid-template-columns: 170px 170px 120px 1fr 300px;
    align-items: stretch;
    gap: 0;
    margin: 0;
    /* IMPORTANT: no extra gap */
    border: 1px solid var(--line);
    background: #fff;
}

.pcstrip__cell {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--line);
    min-height: 76px;
}

.pcstrip__cell:last-child {
    border-right: 0;
}

.pcstrip__cityline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #111;
    margin-bottom: 8px;
}

.pcstrip__pin {
    color: #111;
    opacity: .85;
}

.pcstrip__pinSvg {
    width: 16px;
    height: 16px;
    display: block;
}

.pcstrip__now {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pcstrip__temp {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    color: #111;
}

.pcstrip__wicon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
}

.pcstrip__wicon svg {
    width: 44px;
    height: 44px;
    display: block;
}

.pcstrip__wicon--sm {
    width: 34px;
    height: 34px;
}

.pcstrip__wicon--sm svg {
    width: 34px;
    height: 34px;
}

.pcstrip__labelRow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.pcstrip__label {
    font-size: 12px;
    font-weight: 900;
    color: #111;
}

.pcstrip__src {
    font-size: 12px;
    font-weight: 800;
    color: #3b82f6;
    opacity: .9;
}

.pcstrip__aqi {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pcstrip__smile {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
}

.pcstrip__smile svg {
    width: 32px;
    height: 32px;
    display: block;
}

.pcstrip__aqiText {
    font-size: 14px;
    font-weight: 900;
    color: #111;
}

.pcstrip__tomRow {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pcstrip__tomTemp {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -.5px;
    line-height: 1;
}

.pcstrip__cell--shortcuts {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
}

.pcstrip__shortcut {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 86px;
    color: #111;
}

.pcstrip__sicon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
}

.pcstrip__sicon svg {
    width: 26px;
    height: 26px;
    display: block;
}

.pcstrip__stext {
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    line-height: 1.1;
    white-space: nowrap;
}

.pcstrip__promo {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .2px;
    color: #666;
    margin-bottom: 2px;
}

.pcstrip__cell--ad {
    padding: 0;
}

.pcstrip__adBox {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: #ececec;
    font-size: 11px;
    font-weight: 900;
    color: #666;
}

/* =========================
   MAIN PLACEHOLDER
========================= */
.site-main {
    min-height: 50vh;
    padding: 16px 0 40px;
}

.article {
    min-height: 420px;
}

.placeholder-title {
    margin: 14px 0 8px;
    font-size: 28px;
}

.placeholder-text {
    margin: 0 0 18px;
    color: #444;
    font-weight: 600;
}

.placeholder-spacer {
    height: 1400px;
    background: linear-gradient(#fff, #fafafa);
}

/* =========================
   FOOTER
========================= */
.site-footer {
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 18px 0 26px;
}

.footer-top {
    padding: 6px 0 14px;
    border-bottom: 1px solid var(--line);
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    font-size: 12px;
    color: #111;
}

.footer-mid {
    padding: 14px 0 10px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 14px 18px;
    align-items: center;
}

.footer-mid__brand {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
}

.footer-logo {
    display: block;
    height: 48px;
    width: auto;
    max-width: 180px;
}

.footer-mid__links {
    font-size: 12px;
    color: #111;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.footer-mid__links .sep {
    color: #c0c0c0;
}

.footer-mid__copy {
    grid-column: 2 / -1;
    font-size: 12px;
    color: #111;
    opacity: .9;
}

.footer-legal {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--muted);
    max-width: 1200px;
}

/* =========================
   FLOATING WIDGET
========================= */
.float-widget {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    background: radial-gradient(circle at 30% 30%, #b44cff, #6a00ff);
    box-shadow: var(--shadow);
    z-index: 300;
}

/* =========================
   TABLET ADAPTATION
========================= */
@media (max-width:1200px) {
    .header-top__row {
        grid-template-columns: 200px 1fr 420px;
    }

    .actions__label {
        display: none;
    }

    .pcstrip__wrap {
        grid-template-columns: 160px 160px 110px 1fr 260px;
    }

    .pcstrip__shortcut {
        min-width: 78px;
    }

    .pcstrip__stext {
        font-size: 11px;
    }

    .footer-mid {
        grid-template-columns: 220px 1fr;
    }
}

/* =========================
   MOBILE (AND SMALL TABLET)
========================= */
@media (max-width:980px) {
    .brand__logo {
        height: 48px;
    }

    .header-top__row {
        grid-template-columns: 1fr auto;
        gap: 12px;
    }

    .search {
        display: none;
    }

    .actions__link,
    .pill {
        display: none;
    }

    .icons {
        gap: 8px;
    }

    .burger {
        display: inline-block;
    }

    .header-nav {
        display: none;
    }

    .pcstrip {
        display: none;
    }

    .footer-mid {
        grid-template-columns: 1fr;
    }

    .footer-mid__copy {
        grid-column: 1 / -1;
    }

    .footer-logo {
        height: 36px;
        max-width: 150px;
    }
}