﻿/* ============================================================
   METEO вЂ” СЃРѕРІСЂРµРјРµРЅРЅР°СЏ С‚РµРјР° РїРѕРіРѕРґРЅРѕРіРѕ СЃРµСЂРІРёСЃР°
   Bootstrap 5 + Bootstrap Icons
   ============================================================ */

:root {
    --wt-blue: #3b82f6;
    --wt-blue-dark: #1d4ed8;
    --wt-blue-light: #60a5fa;

    --wt-cyan: #38bdf8;
    --wt-orange: #f59e0b;
    --wt-red: #ef4444;

    --wt-bg: #eef3f9;
    --wt-surface: rgba(255, 255, 255, .92);
    --wt-surface-solid: #ffffff;

    --wt-border: rgba(30, 55, 90, .10);
    --wt-text: #172033;
    --wt-text-soft: #667085;
    --wt-text-muted: #98a2b3;

    --wt-shadow: 0 18px 45px rgba(26, 48, 94, .12);
    --wt-shadow-soft: 0 8px 25px rgba(26, 48, 94, .08);

    --wt-radius: 20px;
}

/* ============================================================
   GLOBAL
   ============================================================ */

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    margin: 0;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: var(--wt-text);

    background:
        linear-gradient(
            180deg,
            #dce9f8 0,
            #edf3fa 320px,
            #f4f7fb 100%
        );

    min-height: 100vh;
}

img,
svg,
canvas,
video {
    max-width: 100%;
    height: auto;
}

button,
input,
select {
    font-family: inherit;
}

a {
    color: var(--wt-blue);
}

a:hover {
    color: var(--wt-blue-dark);
}

/* ============================================================
   MAIN APP
   ============================================================ */

.app {
    position: relative;
    z-index: 1;
}

/* ============================================================
   TOPBAR
   ============================================================ */

.topbar {
    background:
        linear-gradient(
            135deg,
            rgba(15, 32, 63, .96),
            rgba(29, 78, 140, .95)
        );

    border-bottom: 1px solid rgba(255, 255, 255, .12);

    box-shadow:
        0 8px 30px rgba(15, 35, 70, .18);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    z-index: 50;
}

.topbar-inner {
    min-height: 70px;
}

/* ============================================================
   LOGO
   ============================================================ */

.topbar .logo {
    display: inline-flex;
    align-items: center;

    color: #fff;

    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -.03em;

    white-space: nowrap;

    transition:
        opacity .2s ease,
        transform .2s ease;
}

.topbar .logo i {
    color: #7dd3fc;
    font-size: 1.35rem;
}

.topbar .logo:hover {
    color: #fff;
    opacity: .9;
    transform: translateY(-1px);
}

/* ============================================================
   SEARCH
   ============================================================ */

.search-wrap {
    position: relative;
}

#city-search {
    height: 44px;

    background: rgba(255, 255, 255, .13);

    border: 1px solid rgba(255, 255, 255, .20);

    color: #fff;

    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, .08);

    transition:
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

#city-search::placeholder {
    color: rgba(255, 255, 255, .65);
}

#city-search:focus {
    background: rgba(255, 255, 255, .18);

    border-color: rgba(255, 255, 255, .45);

    color: #fff;

    box-shadow:
        0 0 0 4px rgba(96, 165, 250, .16);
}

/* ============================================================
   SUGGESTIONS
   ============================================================ */

.suggest {
    position: absolute;

    top: calc(100% + 8px);
    left: 0;
    right: 0;

    background: #fff;

    border: 1px solid var(--wt-border);
    border-radius: 14px;

    overflow: hidden;

    display: none;

    z-index: 60;

    max-height: 340px;
    overflow-y: auto;

    box-shadow:
        0 18px 45px rgba(15, 35, 70, .18);
}

.suggest.open {
    display: block;
}

.suggest-item {
    padding: .8rem 1rem;

    cursor: pointer;

    font-size: .9rem;

    border-bottom: 1px solid #edf1f6;

    transition:
        background .15s ease,
        padding-left .15s ease;
}

.suggest-item:last-child {
    border-bottom: 0;
}

.suggest-item:hover {
    background: #f3f7ff;
    padding-left: 1.15rem;
}

.suggest-item .s-sub {
    color: var(--wt-text-muted);
    font-size: .78rem;
    margin-top: 2px;
}

/* ============================================================
   GEO BUTTON
   ============================================================ */

#geo-btn {
    height: 44px;

    background: rgba(255, 255, 255, .12);

    color: #fff;

    border: 1px solid rgba(255, 255, 255, .20);

    font-weight: 600;

    box-shadow: none;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

#geo-btn:hover {
    background: rgba(255, 255, 255, .20);

    border-color: rgba(255, 255, 255, .35);

    color: #fff;

    transform: translateY(-1px);
}

/* ============================================================
   ADS
   ============================================================ */

.wg-slot {
    border-radius: 14px;

    background: rgba(255, 255, 255, .82);

    border: 1px dashed rgba(100, 125, 160, .55);

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;

    color: #556070;

    font-size: .82rem;

    font-weight: 500;

    line-height: 1.5;

    text-align: center;

    max-width: 100%;

    overflow: hidden;

    backdrop-filter: blur(8px);
}

.wg-slot-placeholder {
    color: #4b5563;

    font-weight: 600;
}

.wg-slot:empty {
    display: none;
}

.wg-slot-header {
    min-height: 90px;
}

.wg-slot-sidebar {
    min-height: 250px;
}

.wg-slot-inline {
    min-height: 90px;
}

.wg-slot-footer {
    min-height: 90px;
}

.wg-slot-popup {
    bottom: 20px;
    right: 20px;

    width: min(340px, calc(100vw - 40px));

    z-index: 80;

    background: #fff;

    min-height: 120px;

    border: 0;

    box-shadow:
        0 20px 55px rgba(15, 35, 70, .25);
}

/* ============================================================
   WEATHER MAIN CARD
   ============================================================ */

#weather {
    background: rgba(255, 255, 255, .92);

    border: 1px solid rgba(255, 255, 255, .7) !important;

    border-radius: 26px !important;

    box-shadow:
        0 20px 55px rgba(26, 48, 94, .14) !important;

    overflow: hidden;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

#weather .card-body {
    padding: 2rem !important;
}

/* ============================================================
   CITY HEADER
   ============================================================ */

.city-name {
    font-weight: 800;

    color: #172033;

    letter-spacing: -.025em;
}

.city-name::before {
    content: "\F3E8";

    font-family: "bootstrap-icons";

    color: var(--wt-blue);

    font-size: .9em;

    margin-right: .45rem;
}

/* ============================================================
   UNITS / REFRESH
   ============================================================ */

.units-select {
    min-width: 105px;

    border-radius: 10px;

    border-color: #dce4ef;

    font-weight: 600;

    color: #344054;

    background-color: #fff;
}

.units-select:focus {
    border-color: var(--wt-blue);

    box-shadow:
        0 0 0 3px rgba(59, 130, 246, .12);
}

#refresh {
    border-color: #d8e2f0;

    color: #475467;

    background: #fff;

    font-weight: 600;

    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease;
}

#refresh:hover {
    background: #eff6ff;

    border-color: #bfdbfe;

    color: var(--wt-blue);
}

/* ============================================================
   CURRENT WEATHER
   ============================================================ */

.now-block {
    padding-top: .8rem;
}

.now-temp {
    color: #173f82;

    line-height: .9;

    font-size: 5rem !important;

    font-weight: 300 !important;

    letter-spacing: -.07em;
}

.now-desc {
    min-width: 220px;
}

.now-state {
    color: #172033;

    font-size: 1.25rem;

    font-weight: 700 !important;
}

.now-feels {
    color: var(--wt-text-soft) !important;

    font-size: .9rem;
}

.now-details {
    color: #475467;

    font-size: .86rem;

    line-height: 1.9;
}

.now-details .bi {
    color: var(--wt-blue);

    margin-right: .35rem;
}

/* ============================================================
   SUN
   ============================================================ */

.sun-block {
    min-width: 220px;

    background:
        linear-gradient(
            145deg,
            #fff9e8,
            #fff4d6
        ) !important;

    border: 1px solid #f8e5ae;

    border-radius: 16px !important;

    padding: .85rem 1rem !important;
}

.sun-row {
    min-height: 36px;
}

.sun-icon {
    width: 31px;
    height: 31px;

    background:
        linear-gradient(
            135deg,
            #f59e0b,
            #fbbf24
        );

    color: #fff;

    box-shadow:
        0 5px 12px rgba(245, 158, 11, .20);
}

.sun-row .sun-label {
    font-size: .82rem;

    color: #ffffff;

    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}

.sun-row .fw-semibold {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}

.daylen {
    color: #eee !important;

    font-size: .82rem !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}

/* ============================================================
   CLOCK BOARD (С‚Р°Р±Р»Рѕ)
   ============================================================ */

@font-face {
    font-family: 'DSEG7';
    src: url('/assets/fonts/DSEG7Classic-Bold.woff2') format('woff2'),
         url('/assets/fonts/DSEG7Classic-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.clock-card {
    display: flex;
    flex-direction: column;
}

.clock-board {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background:
        radial-gradient(ellipse at 50% 20%, #1c2b42 0%, #0d1624 70%);
    border-radius: 16px;
    padding: 28px 16px 22px;
    margin: 0 16px 16px;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .06),
        inset 0 0 30px rgba(0, 0, 0, .5);
    flex: 1;
    justify-content: center;
}

.clock-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'DSEG7', 'Consolas', monospace;
    letter-spacing: .02em;
}

.clock-cell {
    background: #0a1219;
    color: #f5c84c;
    border: 1px solid rgba(255, 200, 80, .18);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    text-shadow:
        0 0 8px rgba(255, 200, 80, .55),
        0 0 20px rgba(255, 180, 40, .3);
    min-width: 86px;
    text-align: center;
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, .6);
}

.clock-colon {
    color: #f5c84c;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 200, 80, .55);
    animation: clockColonBlink 1s steps(1) infinite;
}

@keyframes clockColonBlink {
    0%, 40% { opacity: 1; }
    41%, 60% { opacity: .15; }
    61%, 100% { opacity: 1; }
}

.clock-date {
    color: #e8edf3;
    font-size: .95rem;
    font-weight: 600;
}

.clock-city {
    color: #9fb2c8;
    font-size: .82rem;
}

.clock-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
    margin: 2px 0;
}

.clock-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 6px 4px;
}

.clock-info-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    color: #f5c84c;
    font-size: 19px;
    flex-shrink: 0;
}

.clock-info-label {
    color: #8498b0;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.clock-info-value {
    color: #eef2f7;
    font-size: 1rem;
    font-weight: 600;
}

.clock-info-row .day-night-icon.night {
    background: rgba(120, 140, 220, .16);
    color: #a8c5ff;
}

@media (max-width: 575.98px) {
    .clock-cell {
        font-size: 1.9rem;
        min-width: 62px;
        padding: 8px 8px;
    }
    .clock-colon {
        font-size: 1.9rem;
    }
}

/* ============================================================
   DURATION CARDS
   ============================================================ */

.duration-grid {
    margin-bottom: .25rem;
}

.duration-card {
    position: relative;

    background:
        linear-gradient(
            145deg,
            #f8fbff,
            #eef5fc
        );

    border: 1px solid #e2ebf5;

    border-radius: 18px;

    padding: 1.2rem 1.15rem;

    height: 100%;

    display: flex;
    flex-direction: column;

    gap: .4rem;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.duration-card:hover {
    transform: translateY(-2px);

    border-color: #d2e2f7;

    box-shadow:
        0 8px 22px rgba(40, 75, 120, .08);
}

.duration-card .d-label {
    font-size: .8rem;

    color: var(--wt-text-muted);

    font-weight: 500;
}

.duration-card .d-value {
    font-size: 1.2rem;

    font-weight: 750;

    display: flex;

    align-items: center;

    gap: .55rem;

    min-height: 1.8rem;

    color: #26364d;
}

.duration-card .d-value svg {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.duration-card .d-value .d-value-icon svg {
    width: 42px;
    height: 42px;
}

.duration-card .d-value.water-warm {
    color: #df8500;
}

.duration-card .d-value.water-cold {
    color: #2474d8;
}

.duration-card .d-value img.moon-img {
    width: 27px;
    height: 27px;

    flex-shrink: 0;
}

.duration-card .d-sub {
    font-size: .8rem;

    color: var(--wt-text-muted);
}

.duration-card .placeholder {
    color: #b3bdcc;

    font-weight: 400;

    font-size: .88rem;
}

/* ============================================================
   TABS
   ============================================================ */

.tabs {
    margin-top: 1.4rem !important;

    border-bottom: 1px solid #e4eaf2 !important;
}

.tabs .tab {
    position: relative;

    font-weight: 650;

    color: #8a94a6;

    text-decoration: none;

    border: 0 !important;

    border-bottom: 3px solid transparent !important;

    border-radius: 0;

    padding: .65rem 1rem;

    margin-bottom: -1px;

    transition:
        color .2s ease,
        background .2s ease;
}

.tabs .tab:hover {
    color: var(--wt-blue);

    background: #f4f8ff;
}

.tabs .tab.active {
    color: var(--wt-blue);

    border-bottom-color: var(--wt-blue) !important;

    background: transparent;
}

/* ============================================================
   HOURLY
   ============================================================ */

.hourly-wrap {
    background:
        linear-gradient(
            145deg,
            #f8fbff,
            #ffffff
        ) !important;

    border: 1px solid #e1e8f1 !important;

    border-radius: 17px !important;

    box-shadow:
        0 5px 18px rgba(35, 65, 105, .04);
}

.hourly-scroll {
    scrollbar-width: thin;

    scrollbar-color:
        #b8c8df
        transparent;
}

.hourly-scroll::-webkit-scrollbar {
    height: 7px;
}

.hourly-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.hourly-scroll::-webkit-scrollbar-thumb {
    background: #b8c8df;

    border-radius: 10px;
}

.hour-item {
    min-width: 82px;

    text-align: center;

    padding: .8rem .45rem;

    border-radius: 13px;

    flex-shrink: 0;

    transition:
        background .18s ease,
        transform .18s ease;
}

.hour-item:hover {
    background: #edf5ff;

    transform: translateY(-2px);
}

.hour-item .h-time {
    font-size: .76rem;

    color: #8a94a6;
}

.hour-item .h-now {
    font-size: .72rem;

    color: var(--wt-blue);

    font-weight: 700;
}

.hour-item .h-ic {
    font-size: 1.65rem;

    margin: .4rem 0;

    line-height: 1;
}

.hour-item .h-temp {
    font-size: 1rem;

    font-weight: 750;

    color: #26364d;
}

.hour-item .h-prec {
    font-size: .7rem;

    color: #3980d9;

    height: 1rem;
}

/* ============================================================
   FORECAST
   ============================================================ */

.forecast {
    background: #fff;

    border: 1px solid #e2e8f0;

    border-radius: 18px;

    padding: .4rem .7rem;

    overflow: hidden;
}

.f-day {
    display: flex;

    align-items: center;

    gap: .8rem;

    padding: .85rem .65rem;

    border-bottom: 1px solid #edf1f6;

    border-radius: 10px;

    transition:
        background .15s ease;
}

.f-day:last-child {
    border-bottom: 0;
}

.f-day:hover {
    background: #f7faff;
}

.f-name {
    width: 110px;

    font-weight: 650;

    font-size: .88rem;

    flex-shrink: 0;

    color: #26364d;
}

.f-name .f-date {
    display: block;

    color: #98a2b3;

    font-weight: 400;

    font-size: .73rem;

    margin-top: 2px;
}

.f-ic {
    font-size: 1.55rem;

    width: 42px;

    text-align: center;

    flex-shrink: 0;

    line-height: 1;
}

.f-state {
    flex: 1;

    font-size: .84rem;

    color: #667085;

    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.f-precip {
    font-size: .75rem;

    color: #3980d9;

    width: 46px;

    text-align: right;

    flex-shrink: 0;
}

.f-temps {
    font-size: .95rem;

    font-weight: 700;

    white-space: nowrap;

    flex-shrink: 0;

    text-align: right;

    color: #253858;
}

.f-temps .t-low {
    color: #98a2b3;

    font-weight: 500;
}

/* ============================================================
   DETAILS
   ============================================================ */

.details-grid {
    margin-top: .3rem;
}

.detail-card {
    background:
        linear-gradient(
            145deg,
            #f8fbff,
            #f1f6fb
        );

    border: 1px solid #e2eaf3;

    border-radius: 16px;

    padding: 1rem;

    height: 100%;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.detail-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(35, 65, 105, .07);
}

.detail-card .d-label {
    font-size: .74rem;

    color: #8a94a6;

    margin-bottom: .3rem;
}

.detail-card .d-label .bi {
    color: var(--wt-blue);

    margin-right: .2rem;
}

.detail-card .d-value {
    font-size: 1.08rem;

    font-weight: 750;

    color: #26364d;
}

.detail-card .d-sub {
    font-size: .74rem;

    color: #98a2b3;

    margin-top: .15rem;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.side-note,
.history-block {
    background: rgba(255, 255, 255, .92) !important;

    border: 1px solid rgba(255, 255, 255, .7) !important;

    border-radius: 20px !important;

    box-shadow:
        var(--wt-shadow-soft) !important;

    overflow: hidden;
}

.side-note .card-body,
.history-block .card-body {
    padding: 1.35rem !important;
}

.side-note h3,
.history-block h3 {
    color: #26364d;
}

.side-note p {
    line-height: 1.65;

    color: #667085 !important;
}

.local-time-block {
    border-top: 1px solid #e7edf4;

    padding-top: 1rem;
}

.local-time-block h4 {
    color: #526074;
}

.local-clock {
    font-family:
        "SF Mono",
        "Consolas",
        "Courier New",
        monospace;

    font-size: 1.55rem;

    letter-spacing: .06em;

    color: #173f82;

    font-variant-numeric: tabular-nums;

    margin-top: .35rem;
}

/* ============================================================
   HISTORY
   ============================================================ */

.history-title {
    display: flex;

    align-items: center;

    justify-content: space-between;
}

.history-item {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: .5rem;

    padding: .7rem .8rem;

    border: 1px solid #e3eaf3;

    border-radius: 12px;

    background: #f9fbfd;

    cursor: pointer;

    transition:
        background .15s ease,
        border-color .15s ease,
        transform .15s ease;
}

.history-item:hover {
    background: #f0f6ff;

    border-color: #cfe0f7;

    transform: translateX(2px);
}

.history-item .h-name {
    font-weight: 650;

    font-size: .88rem;

    color: #344054;
}

.history-item .h-temp {
    color: #8a94a6;

    font-size: .82rem;

    white-space: nowrap;
}

.history-item .h-remove {
    color: #d14343;

    background: none;

    border: none;

    font-size: .9rem;

    line-height: 1;

    padding: .15rem .3rem;

    border-radius: 6px;

    transition:
        background .15s ease,
        color .15s ease;
}

.history-item .h-remove:hover {
    background: #fff0f0;

    color: #b42318;
}

/* ============================================================
   LOADING
   ============================================================ */

#loading {
    padding: 4rem 1rem !important;

    color: #667085 !important;
}

#loading .spinner-border {
    width: 2.6rem !important;

    height: 2.6rem !important;

    border-width: .2rem;
}

/* ============================================================
   ERROR
   ============================================================ */

.error-box {
    border: 0;

    border-radius: 16px;

    box-shadow:
        0 8px 25px rgba(180, 40, 40, .08);
}

/* ============================================================
   RADAR
   ============================================================ */

.radar-block {
    padding-top: .25rem;
}

.radar-block h3 {
    color: #26364d;
}

.radar-map {
    height: 520px;

    width: 100%;

    background: #dbe6f2;

    z-index: 1;

    border: 1px solid #dce5ef;

    box-shadow:
        0 8px 25px rgba(25, 50, 90, .08);
}

.radar-map .leaflet-container {
    font-family: inherit;
}

.radar-map .leaflet-control-attribution {
    font-size: 10px;
    display: none;
}

.radar-timeline {
    accent-color: var(--wt-blue);
}

.radar-play.active {
    background: var(--wt-blue);

    color: #fff;

    border-color: var(--wt-blue);
}

.radar-legend {
    position: absolute;

    right: 10px;
    bottom: 24px;

    z-index: 500;

    background: rgba(255, 255, 255, .88);

    border-radius: 10px;

    padding: .45rem .65rem;

    font-size: 11px;

    line-height: 1.9;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, .15);

    pointer-events: none;
}

.radar-legend .lg-row {
    display: flex;

    align-items: center;

    gap: .4rem;
}

.radar-legend .lg-swatch {
    width: 14px;

    height: 12px;

    border-radius: 3px;

    flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    margin-top: 1rem;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0),
            rgba(203, 219, 238, .55)
        );

    border-top: 1px solid rgba(80, 110, 145, .08);

    color: #7b8798 !important;
}

.footer p {
    opacity: .9;
}

/* ============================================================
   WEATHER ANIMATED BACKGROUND
   ============================================================ */

.weather-bg {
    position: fixed;

    inset: 0;

    z-index: -1;

    overflow: hidden;

    pointer-events: none;

    transition:
        background 1.2s ease;
}

/* ============================================================
   DAY / NIGHT SKY
   ============================================================ */

body.scene-clear-day .weather-bg,
body.scene-partly-day .weather-bg {
    background:
        linear-gradient(
            180deg,
            #3288e6 0%,
            #78b8ef 45%,
            #dcecfb 100%
        );
}

body.scene-cloudy-day .weather-bg,
body.scene-rain-day .weather-bg,
body.scene-thunder-day .weather-bg,
body.scene-fog-day .weather-bg,
body.scene-snow-day .weather-bg {
    background:
        linear-gradient(
            180deg,
            #647d9e 0%,
            #9eb1c8 48%,
            #dce4ed 100%
        );
}

body.scene-clear-night .weather-bg,
body.scene-partly-night .weather-bg {
    background:
        linear-gradient(
            180deg,
            #080d21 0%,
            #14264a 52%,
            #304b76 100%
        );
}

body.scene-cloudy-night .weather-bg,
body.scene-rain-night .weather-bg,
body.scene-thunder-night .weather-bg,
body.scene-fog-night .weather-bg,
body.scene-snow-night .weather-bg {
    background:
        linear-gradient(
            180deg,
            #101629 0%,
            #1d2a45 52%,
            #34435b 100%
        );
}

/* ============================================================
   SUN
   ============================================================ */

.bg-sun {
    position: absolute;

    top: 8%;
    right: 12%;

    width: 125px;
    height: 125px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #fffde2 0%,
            #ffe06a 42%,
            rgba(255, 214, 74, 0) 72%
        );

    opacity: 0;

    transition:
        opacity 1.2s ease;

    box-shadow:
        0 0 70px 32px rgba(255, 214, 74, .30);

    animation:
        sunPulse 5s ease-in-out infinite;
}

body.scene-clear-day .bg-sun,
body.scene-partly-day .bg-sun {
    opacity: 1;
}

@keyframes sunPulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

/* ============================================================
   MOON
   ============================================================ */

.bg-moon {
    position: absolute;

    top: 8%;
    right: 12%;

    width: 88px;
    height: 88px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 38% 35%,
            #fffdf4 0%,
            #f3ecd3 55%,
            rgba(243, 236, 211, 0) 75%
        );

    opacity: 0;

    transition:
        opacity 1.2s ease;

    box-shadow:
        0 0 45px 18px rgba(240, 240, 255, .24);
}

body.scene-clear-night .bg-moon,
body.scene-partly-night .bg-moon {
    opacity: 1;
}

.bg-moon::after {
    content: '';

    position: absolute;

    inset: 0;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 65% 45%,
            rgba(180, 175, 160, .5) 0 7%,
            transparent 8%
        ),
        radial-gradient(
            circle at 38% 62%,
            rgba(180, 175, 160, .4) 0 6%,
            transparent 7%
        ),
        radial-gradient(
            circle at 60% 72%,
            rgba(180, 175, 160, .35) 0 5%,
            transparent 6%
        );
}

/* ============================================================
   STARS
   ============================================================ */

/* Р—РІС‘Р·РґС‹ (РєСЂСѓР¶РѕС‡РєРё), СЃРѕР·РІРµР·РґРёСЏ, РїР°РґР°СЋС‰РёРµ Р·РІС‘Р·РґС‹ Рё РєРѕРјРµС‚Р° СЃРєСЂС‹С‚С‹.
   Р›СѓРЅР° (.bg-moon) РѕСЃС‚Р°С‘С‚СЃСЏ. */
.bg-stars,
.bg-nightsky {
    display: none;
}

.bg-stars {
    position: absolute;

    inset: 0;

    opacity: 0;

    transition:
        opacity 1.2s ease;
}

body.scene-clear-night .bg-stars,
body.scene-partly-night .bg-stars,
body.scene-cloudy-night .bg-stars {
    opacity: 1;
}

.bg-nightsky {
    position: absolute;

    inset: 0;

    pointer-events: none;

    opacity: 0;

    transition:
        opacity 1.2s ease;
}

body.scene-clear-night .bg-nightsky,
body.scene-partly-night .bg-nightsky {
    opacity: 1;
}

.star {
    position: absolute;

    border-radius: 50%;

    background: #fff;

    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%,
    100% {
        opacity: .2;
        transform: scale(.7);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* РџР°РґР°СЋС‰Р°СЏ Р·РІРµР·РґР° */
.shooting-star {
    position: absolute;

    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: #fff;

    box-shadow:
        0 0 6px #fff,
        0 0 12px rgba(255, 255, 255, .7);

    opacity: 0;

    animation: shoot 4s ease-in infinite;
}

.shooting-star::after {
    content: '';

    position: absolute;

    top: 0;
    left: 0;

    width: 130px;
    height: 2px;

    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, .95),
        rgba(255, 255, 255, .25),
        transparent
    );

    border-radius: 2px;

    transform-origin: left center;
    transform: translateX(-100%) rotate(25deg);
}

@keyframes shoot {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(25deg);
    }

    3% {
        opacity: 1;
    }

    8% {
        opacity: 0;
        transform: translate(-260px, 130px) rotate(25deg);
    }

    100% {
        opacity: 0;
        transform: translate(-260px, 130px) rotate(25deg);
    }
}

/* РљРѕРјРµС‚Р° */
.comet {
    position: absolute;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: radial-gradient(circle, #dff6ff 0%, #9ad4ff 40%, transparent 70%);

    box-shadow:
        0 0 8px #9ad4ff,
        0 0 20px rgba(154, 212, 255, .8);

    opacity: 0;

    animation: cometFly 18s ease-in infinite;

    animation-delay: 9s;
}

.comet::after {
    content: '';

    position: absolute;

    top: 0;
    left: 0;

    width: 260px;
    height: 3px;

    background: linear-gradient(
        90deg,
        rgba(180, 225, 255, .95),
        rgba(140, 200, 255, .4),
        transparent
    );

    border-radius: 3px;

    transform-origin: left center;
    transform: translateX(-100%) rotate(28deg);
}

@keyframes cometFly {
    0% {
        opacity: 0;
        transform: translate(0, 0) rotate(28deg);
    }

    2% {
        opacity: 1;
    }

    6% {
        opacity: 0;
        transform: translate(-520px, 280px) rotate(28deg);
    }

    100% {
        opacity: 0;
        transform: translate(-520px, 280px) rotate(28deg);
    }
}

/* РЎРѕР·РІРµР·РґРёСЏ */
.constellation {
    position: absolute;

    pointer-events: none;
}

.constellation line {
    stroke: rgba(160, 200, 255, .5);

    stroke-width: 1;

    stroke-dasharray: 3 3;
}

.constellation .c-star {
    stroke: rgba(180, 215, 255, .85);

    stroke-width: 1.4;
}

.constellation .c-star-core {
    fill: #fff;

    opacity: .9;
}

/* ============================================================
   CLOUDS
   ============================================================ */

.bg-clouds {
    position: absolute;

    inset: 0;

    opacity: 0;

    transition:
        opacity 1.2s ease;
}

body.scene-partly-day .bg-clouds,
body.scene-partly-night .bg-clouds,
body.scene-cloudy-day .bg-clouds,
body.scene-cloudy-night .bg-clouds,
body.scene-rain-day .bg-clouds,
body.scene-rain-night .bg-clouds,
body.scene-thunder-day .bg-clouds,
body.scene-thunder-night .bg-clouds,
body.scene-snow-day .bg-clouds,
body.scene-snow-night .bg-clouds,
body.scene-fog-day .bg-clouds,
body.scene-fog-night .bg-clouds {
    opacity: 1;
}

.cloud {
    position: absolute;

    background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(214, 228, 245, .85));

    border-radius: 120px;

    filter: blur(6px);

    box-shadow: 0 10px 30px rgba(50, 90, 150, .12);
}

.cloud::before,
.cloud::after {
    content: '';

    position: absolute;

    background: inherit;

    border-radius: 50%;

    filter: blur(0);
}

.cloud-1 {
    width: 260px;
    height: 70px;

    top: 12%;

    animation:
        drift 48s linear infinite;
}

.cloud-1::before {
    width: 110px;
    height: 110px;

    top: -50px;
    left: 40px;
}

.cloud-1::after {
    width: 80px;
    height: 80px;

    top: -36px;
    right: 48px;
}

.cloud-2 {
    width: 200px;
    height: 56px;

    top: 26%;

    opacity: .75;

    animation:
        drift 64s linear infinite;

    animation-delay: -20s;
}

.cloud-2::before {
    width: 90px;
    height: 90px;

    top: -40px;
    left: 30px;
}

.cloud-2::after {
    width: 64px;
    height: 64px;

    top: -28px;
    right: 36px;
}

.cloud-3 {
    width: 300px;
    height: 80px;

    top: 42%;

    opacity: .6;

    animation:
        drift 82s linear infinite;

    animation-delay: -40s;
}

.cloud-3::before {
    width: 120px;
    height: 120px;

    top: -58px;
    left: 50px;
}

.cloud-3::after {
    width: 92px;
    height: 92px;

    top: -42px;
    right: 56px;
}

@keyframes drift {
    from {
        transform: translateX(-320px);
    }

    to {
        transform: translateX(calc(100vw + 320px));
    }
}

/* ============================================================
   RAIN / SNOW
   ============================================================ */

.bg-particles {
    position: absolute;

    inset: 0;

    overflow: hidden;
}

.particle {
    position: absolute;

    top: -20px;

    animation:
        fall linear infinite;
}

body.scene-rain-day .particle,
body.scene-rain-night .particle,
body.scene-thunder-day .particle,
body.scene-thunder-night .particle {
    width: 2px;
    height: 14px;

    background:
        linear-gradient(
            180deg,
            rgba(120, 170, 255, 0) 0%,
            rgba(120, 170, 255, .85) 100%
        );

    border-radius: 2px;
}

body.scene-snow-day .particle,
body.scene-snow-night .particle {
    width: 9px;
    height: 9px;

    background: #fff;

    border-radius: 50%;

    box-shadow:
        0 0 6px rgba(255, 255, 255, .9);

    opacity: .9;

    animation-name: fallSnow;
}

@keyframes fallSnow {
    0% {
        transform:
            translateY(0)
            translateX(0);
    }

    25% {
        transform:
            translateY(28vh)
            translateX(var(--sway, 16px));
    }

    50% {
        transform:
            translateY(55vh)
            translateX(calc(var(--sway, 16px) * -0.6));
    }

    75% {
        transform:
            translateY(82vh)
            translateX(var(--sway, 16px));
    }

    100% {
        transform:
            translateY(110vh)
            translateX(0);
    }
}

@keyframes fall {
    from {
        transform:
            translateY(0)
            translateX(0);
    }

    to {
        transform:
            translateY(110vh)
            translateX(-40px);
    }
}

/* ============================================================
   FOG
   ============================================================ */

.bg-fog-layer {
    position: absolute;

    inset: 0;

    opacity: 0;

    transition:
        opacity 1.4s ease;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, .14) 45%,
            rgba(255, 255, 255, .22) 60%,
            rgba(255, 255, 255, .14) 75%,
            rgba(255, 255, 255, 0) 100%
        );
}

body.scene-fog-day .bg-fog-layer,
body.scene-fog-night .bg-fog-layer {
    opacity: 1;

    animation:
        fogShift 8s ease-in-out infinite alternate;
}

@keyframes fogShift {
    from {
        transform: translateX(-3%);
    }

    to {
        transform: translateX(3%);
    }
}

/* ============================================================
   LIGHTNING
   ============================================================ */

.bg-flash {
    position: absolute;

    inset: 0;

    background: rgba(255, 255, 255, .85);

    opacity: 0;

    pointer-events: none;
}

body.scene-thunder-day .bg-flash,
body.scene-thunder-night .bg-flash {
    animation:
        lightning 7s infinite;
}

@keyframes lightning {
    0%,
    88%,
    92%,
    100% {
        opacity: 0;
    }

    89% {
        opacity: .55;
    }

    90% {
        opacity: 0;
    }

    91% {
        opacity: .35;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 991.98px) {

    #weather .card-body {
        padding: 1.5rem !important;
    }

    .now-temp {
        font-size: 4.3rem !important;
    }

    .sun-block {
        margin-left: 0 !important;

        width: 100%;
    }
}

@media (max-width: 767.98px) {

    .topbar-inner {
        min-height: 64px;

        flex-wrap: wrap;
    }

    .topbar .logo {
        font-size: 1.3rem;
    }

    .search-wrap {
        order: 3;

        max-width: 100% !important;

        flex-basis: 100%;

        padding-bottom: .25rem;
    }

    #city-search {
        width: 100%;
    }

    #geo-btn {
        font-size: .82rem;
    }

    #weather {
        border-radius: 20px !important;
    }

    #weather .card-body {
        padding: 1.2rem !important;
    }

    .now-block {
        gap: 1rem !important;
    }

    .now-temp {
        font-size: 3.8rem !important;
    }

    .now-desc {
        min-width: 0;

        flex: 1;
    }

    .now-state {
        font-size: 1.05rem;
    }

    .tabs .tab {
        padding-left: .7rem;
        padding-right: .7rem;
    }

    .f-day {
        gap: .45rem;
    }

    .f-name {
        width: 78px;
    }

    .f-state {
        display: none;
    }

    .f-ic {
        width: 35px;
    }

    .f-precip {
        width: 40px;
    }

    .radar-map {
        height: 380px;
    }
}

@media (max-width: 575.98px) {

    .topbar-inner {
        gap: .55rem !important;
    }

    #geo-btn {
        padding-left: .75rem;
        padding-right: .75rem;
    }

    #geo-btn .bi {
        margin-right: 0 !important;
    }

    #geo-btn {
        font-size: 0;
    }

    #geo-btn .bi {
        font-size: 1rem;
    }

    .city-name {
        font-size: 1.4rem;
    }

    .now-temp {
        font-size: 3.2rem !important;
    }

    .now-desc {
        flex-basis: 100%;
    }

    .sun-block {
        width: 100%;
    }

    .duration-card,
    .detail-card {
        padding: .8rem;
    }

    .duration-card .d-value {
        font-size: .95rem;
    }

    .detail-card .d-value {
        font-size: 1rem;
    }

    .f-name {
        width: 68px;
    }

    .f-name .f-date {
        font-size: .68rem;
    }

    .f-temps {
        font-size: .86rem;
    }

    .f-precip {
        font-size: .68rem;
        width: 34px;
    }

    .f-ic {
        font-size: 1.35rem;
        width: 30px;
    }

    .hour-item {
        min-width: 72px;
    }

    .radar-map {
        height: 300px;
    }

    .wg-slot-popup {
        right: 10px;
        bottom: 10px;

        width: calc(100vw - 20px);
    }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}