@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

body {
    font-family: 'Montserrat', sans-serif !important;
    overflow-x: hidden
}

h1,
h2,
h3,
h4 {
    line-height: 1.1
}

.hero h1 {
    font-size: 72px
}

.hero h2 {
    font-size: 44px
}

.container {
    padding: 0 16px
}

.header {
    padding: 0 8px
}

.main-nav a::before {
    content: '• ';
    color: #d9b24c
}

@media(max-width:900px) {
    .hero h1 {
        font-size: 42px
    }

    .hero h2 {
        font-size: 28px
    }

    .hero p {
        font-size: 18px
    }

    .hero-bg {
        transform: translateY(-12%);
    }

    .hero::before {
        background: linear-gradient(rgb(0 0 0 / 0%), rgb(0 0 0 / 100%)) !important;
    }

    .nav {
        padding: 14px 4px
    }

    .brand span {
        font-size: 26px;
        /* display: none */
    }

    .brand img {
        width: 110px !important;
        /* margin-left: 10%; */
    }

    .main-nav {
        left: 8px;
        right: 8px;
        width: auto
    }

    .section {
        padding: 24px 0
    }

    .rates-table {
        font-size: 18px
    }

    .card,
    .store-card,
    .faq,
    .step {
        padding: 18px
    }
}

body {
    margin: 0;
    background: #05080d;
    color: #fff;
    font-family: Arial, sans-serif
}

* {
    box-sizing: border-box
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px
}

.header {
    position: sticky;
    top: 0;
    background: #070b10;
    border-bottom: 1px solid #3a4757;
    z-index: 10
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 34px;
    font-weight: 800;
    color: #e0b94f;
    z-index: 100000
}

/* .brand span {
    display: none
} */

.brand img {
    width: 120px
}

.nav nav {
    display: flex;
    gap: 28px
}

.nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 700
}

.gold-btn,
.dark-btn {
    padding: 16px 28px;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block
}

.gold-btn {
    background: #d9b24c;
    color: #000 !important;
    line-height: 1.6
}

.dark-btn {
    border: 1px solid #66758a;
    color: #fff
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* зміщення картинки вниз */
    object-position: 55%;

    z-index: 0;
    pointer-events: none;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgb(0 0 0 / 0%), rgb(0 0 0 / 75%));
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 92px;
    color: #d9b24c;
    margin: 0
}

.hero h2 {
    font-size: 58px;
    margin: 0 0 20px
}

.hero p {
    font-size: 30px;
    color: #f1f5f9
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px
}

.section {
    padding: 15px 0;
    scroll-margin-top: 50px
}

.rates-grid,
.stores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px
}

.card,
.store-card,
.faq,
.step,
#map {
    background: #1f2022;
    border: 1px solid #1f2a36;
    border-radius: 24px
}

.card {
    padding: 30px
}

.rates-table {
    width: 100%;
    font-size: 28px
}

.rates-table td {
    padding: 18px;
    border-bottom: 1px solid #3a4757
}

.trend-arrow {
    margin-left: 4px;
    font-size: 18px;
}

.trend-arrow.up {
    color: #22c55e;
}

.trend-arrow.down {
    color: #ef4444;
}

#map {
    height: 600px
}

.store-card {
    padding: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 15px
}

.store-buttons {
    display: flex;
    gap: 10px;
    flex-direction: column-reverse;
    margin-top: 20px
}

.small {
    padding: 10px 16px
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0
}

.step,
.faq {
    padding: 30px;
    font-size: 24px;
    font-weight: 700
}

.step {
    color: #D9B24C;
    font-style: italic;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

.footer {
    border-top: 1px solid #384454;
    padding: 30px 0;
    background: #1f2022
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px
}

@media(max-width:900px) {
    .hero h1 {
        font-size: 52px
    }

    .hero h2 {
        font-size: 38px
    }

    .rates-grid,
    .stores-grid,
    .steps,
    .faq-grid,
    .footer-grid {
        grid-template-columns: 1fr
    }

    .nav nav {
        /* display: none */
        opacity: 0;
        pointer-events: none
    }
}

.header {
    position: sticky;
    top: 0;
    z-index: 99999;
    backdrop-filter: blur(14px);
    background: #1f2022
}

#map,
.leaflet-container,
.leaflet-pane,
.leaflet-top,
.leaflet-bottom {
    z-index: 1 !important;
    height: auto;
    max-height: 486px;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0
}

.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 10px;
    transition: .3s
}

.mobile-btn {
    display: none
}

.store-card h3 {
    font-size: 25px
}

@media(max-width:900px) {
    .nav {
        position: relative
    }

    .store-card h3 {
        font-size: 22px
    }

    .nav-btns {
        display: none
    }

    .burger {
        display: flex;
        z-index: 100000
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #070b10;
        border: 1px solid #1f2a36;
        border-radius: 0 0 20px 20px;
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 18px;
        z-index: 99999;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-24px);
        transition: transform .35s ease, opacity .35s ease, visibility .35s ease;
        pointer-events: none
    }

    .main-nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: transform .65s ease, opacity .65s ease, visibility .65s ease;
        pointer-events: auto;
        background: #1f2022;
        display: flex
    }

    .mobile-btn {
        display: block;
        text-align: center;
        margin-top: 10px
    }

    .hero {
        padding-top: 60px
    }

    body.menu-open {
        overflow: hidden
    }
}

.main-nav a::before {
    display: none !important
}

.trend-up {
    color: #4ade80;
    font-weight: inherit
}

.trend-down {
    color: #ef4444;
    font-weight: inherit
}

/* Map popup route link */
.map-route-link {
    display: inline-block;
    margin-top: 8px;
    color: #4169e1 !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.map-route-link:hover {
    text-decoration: underline;
    color: #6b8dee;
}

.faq-item {
    background: #1f2022;
    border: 1px solid #1f2a36;
    border-radius: 20px;
    overflow: hidden
}

.faq-question {
    width: 100%;
    background: none;
    border: 0;
    color: #fff;
    padding: 24px;
    text-align: left;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer
}

.faq-answer {
    display: none;
    padding: 0 8px 24px 24px;
    color: #e2e8f0;
    line-height: 1.5
}

.faq-item.active .faq-answer {
    display: block
}

@media(max-width:900px) {
    .hero h1 {
        font-size: 34px !important
    }

    .hero h2 {
        font-size: 24px !important
    }

    .faq-answer {
        padding: 12px 20px;
    }

    .hero p {
        font-size: 12px !important
    }

    .gold-btn,
    .dark-btn {
        padding: 12px 18px;
        font-size: 12px
    }

    .card,
    .store-card,
    .faq-item,
    .step {
        padding: 14px !important
    }

    .rates-table {
        font-size: 16px !important
    }

    .step {
        font-size: 16px !important
    }

    .faq-question {
        font-size: 16px !important;
        padding: 6px !important
    }

    .store-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px
    }

    .store-card strong {
        color: rgb(255, 255, 255) !important;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%
    }

    .store-buttons {
        flex-direction: column-reverse;
        width: 100%
    }

    .hero-buttons a,
    .store-buttons a {
        width: 100% !important;
        text-align: center
    }

    #map {
        height: 320px
    }

    .container {
        padding: 0 12px
    }
}


.rates-head {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 8px;
    padding: 0 0 8px 15px;
    border-bottom: 1px solid #1f2a36
}

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

.chart-wrap {
    position: relative;
    flex: 1;
    /* min-height: 360px; */
    margin-bottom: 20px;
    height: stretch
}

.chart-wrap canvas {
    width: 100% !important;
    height: 100% !important
}

/* Chart slider styles */
.chart-slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

.chart-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(217, 178, 76, 0.15);
    border: 1px solid #d9b24c;
    color: #d9b24c;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s, color .3s;
    user-select: none;
    display: none
}

.chart-nav-btn:hover {
    background: rgba(217, 178, 76, 0.35);
    color: #fff
}

.chart-prev {
    left: -10px
}

.chart-next {
    right: -10px
}

.chart-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px
}

.chart-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3a4757;
    cursor: pointer;
    transition: background .3s, transform .3s;
}

.chart-dot.active {
    background: #d9b24c;
    transform: scale(1.3)
}

@media(max-width:900px) {
    .chart-prev {
        left: 0
    }

    .chart-next {
        right: 0
    }

    .chart-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
        display: none
    }
}

.full {
    width: 100%;
    text-align: center;
    margin-top: auto
}

@media(max-width:900px) {
    .header {
        padding: 5px 16px
    }

    /* .main-nav {
        left: -10px;
        right: -10px
    } */

    .hero {
        display: flex;
        align-items: flex-end;
        background-position-y: -55px;
        background-repeat: no-repeat;
        /* min-height: 78vh; */
        padding-bottom: 32px
    }

    .hero-inner {
        width: 100%
    }

    .hero-buttons {
        margin-top: 60px
    }

    /* .chart-wrap{min-height:420px} */
}

.stores-list-wrap {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column
}

.stores-list {
    position: relative;
    overflow: hidden;
    transition: max-height .45s ease
}

.stores-list.collapsed {
    max-height: 400px
}

/* .stores-list:not(.collapsed) {
    max-height: 5000px
} */

.stores-list.collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(5, 8, 13, 0), rgba(5, 8, 13, .96) 70%, #05080d 100%);
    pointer-events: none
}

.extra-store {
    opacity: 1;
    transition: opacity .3s ease, transform .3s ease
}

.stores-toggle {
    /* margin-top: 14px; */
    background: none;
    border: 0;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    cursor: pointer;
    align-self: center
}

@media(max-width:900px) {
    .stores-list-wrap {
        height: auto
    }

    .stores-list.collapsed {
        max-height: 320px
    }
}

@media(max-width:900px) {
    .brand {
        position: relative;
        width: 100%;
        z-index: 999999;
        /* justify-content: center */
    }

    /* .burger {
        position: absolute;
        right: 0
    } */

    .brand span {
        position: absolute;
        left: 50%;
        transform: translateX(-50%)
    }
}

.rates-head span {
    text-align: center
}

.rates-table td {
    text-align: center
}

.tg-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 6px
}

.calc-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 1fr;
    gap: 12px
}

.calc-grid input,
.calc-grid select,
.calc-grid div,
#cityFilter,
#oblastFilter {
    background: #000000;
    color: #fff;
    border: 1px solid #1f2a36;
    padding: 14px;
    border-radius: 12px
}

.calc-grid div {
    display: flex;
    align-items: center
}

.stores-list-wrap {
    gap: 10px
}



.brand-title {
    /* position: absolute; */
    left: 50%;
    /* transform: translateX(-50%); */
    font-style: oblique;
    font-size: 25px;
    font-weight: 800;
    color: #e0b94f;
    text-align: start;
    pointer-events: none
}

.footer-brand-row {
    position: relative;
    min-height: 90px
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 0.1fr 1fr 1fr;
    gap: 12px;
    align-items: center
}

.calc-swap {
    width: 48px;
    height: 48px;
    border: 1px solid #1f2a36;
    border-radius: 12px;
    background: #0b1118 url(../img/swap-icon.svg) center/24px no-repeat;
    cursor: pointer;
    border: 1px solid #626257;
}

/* .calc-swap::after {
    content: "< >";
    opacity: .6
} */

.footer .brand img,
.header .brand img {
    display: block
}

.dark-btn {
    background: #2FAFE6;
    width: max-content;
}

.dark-btn img {
    width: 25px;
    height: 25px;
}

.store-buttons>.dark-btn {
    background: #000;
    text-align: center;
    width: auto;
    border: 1px solid #626257;
}

@media(max-width:900px) {
    .brand-title {
        font-size: 22px;
        position: absolute;
        transform: translateX(-50%);
    }

    #stores h2,
    #about h2 {
        padding-left: 14px !important;
    }

    .hero-buttons>.dark-btn {
        padding: 8px;
    }

    .footer-brand-row .brand-title {
        position: relative;
    }

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

    .calc-swap {
        margin: 0 auto;
        transform: rotate(90deg)
    }
}

button.cookieadmin_re_consent {
    display: none !important;
}

.footer-brand-row>.brand {
    z-index: 9999;
}

p[x-apple-data-detectors],
p[x-apple-data-detectors="true"] {
    color: inherit !important;
    text-decoration: none !important;
    font-size: inherit !important;
    font-family: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

.calc-grid input,
.calc-grid select,
.calc-grid div,
#cityFilter,
#oblastFilter {
    font-size: 16px;
    border: 1px solid #626257;
    width: 100%;
    /* height: 54px; */
}

/* Мобільна стрілка для вибору міста */
/* @media(max-width:900px) { */

#cityFilter,
#oblastFilter,
.currency-selected {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    cursor: pointer;
    /* padding-right: 36px !important; */
}

/* } */

.calc-grid input,
.calc-grid select,
.calc-grid #calcResult {
    height: 56px;
    min-height: 56px;
    box-sizing: border-box;
}

/* Поле UAH без стрілки */
.fixed-uah>.currency-selected {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: none !important;
    cursor: default;
    pointer-events: none;

    padding-right: 16px !important;
}

/* Якщо стрілка намальована через псевдоелемент */
.fixed-uah::after {
    display: none !important;
}

.hero-buttons>.gold-btn {
    width: 291px;
    text-align: center;
    color: #000;
}

.hero-inner h2 {
    font-size: 16px !important;
    text-transform: unset !important;
    max-width: 60%;
}

#about {
    padding-top: 30px !important;
    padding-bottom: 60px;
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
    color: #000000 !important;
}

#stores {
    scroll-margin-top: 70px;
}

#stores h2,
#about h2 {
    padding-left: 30px;
    margin-top: 25px !important;
}

/* calc */

.currency-dropdown {
    position: relative;
    min-width: 140px;
    user-select: none;
}

.currency-dropdown.disabled {
    opacity: .9;
}

/* .currency-selected {
    height: 52px;
    padding: 0 18px;
    border: 1px solid #dcdcdc;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: space-between;
} */

/* .currency-selected::after {
    content: "⌄";
    font-size: 14px;
} */

.currency-dropdown.disabled .currency-selected {
    cursor: default;
}

.currency-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;

    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);

    list-style: none;
    padding: 6px 0;
    margin: 0;

    display: none;
    z-index: 50;
}

.currency-dropdown.open .currency-options {
    display: block;
    background-color: #000;
    border: 1px solid #626257;
    margin: 0 -1px 0 -1px;
}

.currency-options li {
    padding: 10px 18px;
    cursor: pointer;
}

.currency-options li:hover {
    background: #000;
}

.currency-dropdown.fixed-uah .currency-selected::after {
    display: none;
}

#calcFrom,
#calcTo {
    /* width: 100%; */
    height: 56px;
    min-height: 56px;
    /* box-sizing: border-box; */
    padding: 0;
    /* border-radius: 12px;
    border: 1px solid #626257;
    background-color: #000000;
    color: #fff; */
}

.currency-selected {
    border: unset !important;
    min-width: 100%;
}

.currency-selected .emoji {
    margin-right: 5px !important;
}

h2 {
    margin-top: 0;
}

.calc-grid .currency-selected {
    height: 54px !important;
}

#rates.section {
    scroll-margin-top: 85px !important;
}