﻿
.breadcrumb {
    padding: 15px 0 15px;
    font-size: 13px;
    color: #7c8798;
}

    .breadcrumb span {
        margin: 0 7px;
    }

/* =========================
           PAIR HERO
        ========================= */

.pair-hero {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    margin-top: 8px;
}

.pair-main {
    border: 1px solid #e8edf4;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 5px 20px rgba(30, 55, 90, .04);
}

.pair-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.currency-flags {
    display: flex;
    align-items: center;
}

.flag {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    background: #f5f7fa;
}

    .flag + .flag {
        margin-left: -12px;
    }

.pair-heading h1 {
    font-size: 28px;
    margin-bottom: 3px;
}

.pair-heading p {
    font-size: 14px;
    color: #768095;
}

.pair-description {
    margin-top: 22px;
    font-size: 14px;
    color: #566177;
    max-width: 760px;
}

.rate-summary {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.summary-card {
    border: 1px solid #e8edf4;
    border-radius: 11px;
    padding: 14px;
    background: #fff;
}

    .summary-card small {
        color: #818a9c;
        font-size: 11px;
        display: block;
        margin-bottom: 6px;
    }

    .summary-card strong {
        font-size: 18px;
    }

    .summary-card .up {
        color: #1ca56d;
    }

    .summary-card .down {
        color: #e84d5b;
    }

/* =========================
           QUICK CONVERTER
        ========================= */

.quick-converter {
    border: 1px solid #e6edf7;
    border-radius: 16px;
    padding: 22px;
    background: linear-gradient(180deg, #f7fbff, #ffffff);
    box-shadow: 0 5px 20px rgba(30, 55, 90, .04);
}

    .quick-converter h2 {
        font-size: 18px;
        margin-bottom: 18px;
    }

.field-label {
    font-size: 12px;
    color: #68738a;
    margin-bottom: 6px;
}

.input-box {
    height: 52px;
    border: 1px solid #e0e6ef;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    margin-bottom: 13px;
}

    .input-box strong {
        font-size: 19px;
    }

.currency-select {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    font-size: 13px;
}

.convert-btn {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 9px;
    background: #176ee8;
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin-top: 7px;
}

.quick-link {
    text-align: center;
    color: #1672e8;
    font-size: 12px;
    font-weight: 600;
    margin-top: 15px;
}

/* =========================
           SECTION
        ========================= */

.section {
    margin-top: 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

    .section-header h2 {
        font-size: 19px;
    }

    .section-header a {
        color: #1474ea;
        font-size: 12px;
        font-weight: 600;
    }

/* =========================
           RATE TABLE
        ========================= */

.rate-table {
    border: 1px solid #e7ebf1;
    border-radius: 13px;
    overflow: hidden;
    background: #fff;
}

.table-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    min-height: 55px;
    align-items: center;
    padding: 0 18px;
    border-bottom: 1px solid #edf0f4;
    font-size: 13px;
}

    .table-row:last-child {
        border-bottom: 0;
    }

.table-head {
    background: #f8fafc;
    color: #727d91;
    font-size: 11px;
    font-weight: 600;
}

.pair-name {
    font-weight: 600;
}

.green {
    color: #159b65;
}

.red {
    color: #e54c59;
}

/* =========================
           CHART
        ========================= */

.chart-layout {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 20px;
}

.chart-card,
.statistics-card {
    border: 1px solid #e7ebf1;
    border-radius: 15px;
    background: #fff;
    padding: 22px;
}

.chart-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.periods {
    display: flex;
    gap: 6px;
}

    .periods button {
        border: 1px solid #e1e7ef;
        background: #fff;
        padding: 7px 11px;
        border-radius: 7px;
        font-size: 11px;
        cursor: pointer;
    }

        .periods button.active {
            color: #1874e9;
            border-color: #8ebcff;
            background: #f2f7ff;
        }

.chart {
    height: 300px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #edf0f5;
}

.chart-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(#edf1f5 1px, transparent 1px);
    background-size: 100% 55px;
}

.chart-line {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 30px;
    height: 210px;
}

    .chart-line svg {
        width: 100%;
        height: 100%;
    }

.chart-note {
    margin-top: 12px;
    font-size: 10px;
    color: #8a93a3;
}

/* =========================
           STATISTICS
        ========================= */

.statistics-card h3 {
    font-size: 16px;
    margin-bottom: 18px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #edf0f4;
    font-size: 12px;
}

    .stat-row:last-child {
        border-bottom: 0;
    }

.stat-label {
    color: #778196;
}

.stat-value {
    font-weight: 600;
}

/* =========================
           INFORMATION
        ========================= */

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-card {
    border: 1px solid #e7ebf1;
    border-radius: 15px;
    padding: 23px;
}

    .info-card h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .info-card p {
        font-size: 13px;
        color: #5f697d;
        margin-bottom: 12px;
    }

.info-list {
    padding-left: 18px;
    color: #5d687d;
    font-size: 13px;
}

    .info-list li {
        margin-bottom: 8px;
    }

/* =========================
           RELATED PAIRS
        ========================= */

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.related-card {
    border: 1px solid #e7ebf1;
    border-radius: 11px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: .2s;
}

    .related-card:hover {
        border-color: #9dc3f7;
        box-shadow: 0 4px 15px rgba(30, 100, 190, .06);
    }

    .related-card strong {
        display: block;
        font-size: 13px;
    }

    .related-card span {
        display: block;
        font-size: 10px;
        color: #8a93a3;
        margin-top: 3px;
    }

/* =========================
           KNOWLEDGE
        ========================= */

.articles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.article-card {
    border: 1px solid #e7ebf1;
    border-radius: 13px;
    overflow: hidden;
    background: #fff;
}

.article-image {
    height: 130px;
    background: linear-gradient(135deg, #dcecff, #f4f8ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
}

.article-content {
    padding: 15px;
}

    .article-content h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .article-content p {
        font-size: 11px;
        color: #7a8496;
    }

.article-time {
    font-size: 10px;
    color: #9099a8;
    margin-top: 10px;
}

/* =========================
           SOURCE
        ========================= */

.source-box {
    margin-top: 32px;
    border: 1px solid #dce9fb;
    border-radius: 14px;
    background: #f7fbff;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.source-item strong {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.source-item span {
    font-size: 11px;
    color: #68748a;
}

/* =========================
           DISCLAIMER
        ========================= */

.disclaimer {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 13px;
    background: #fff9e9;
    border: 1px solid #f6e3a7;
}

    .disclaimer strong {
        display: block;
        font-size: 13px;
        margin-bottom: 5px;
    }

    .disclaimer p {
        font-size: 11px;
        color: #77705c;
    }
/* =========================
           RESPONSIVE
        ========================= */

@media (max-width: 900px) {

    .nav {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .pair-hero {
        grid-template-columns: 1fr;
    }

    .chart-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {

    .container {
        width: min(100% - 24px, 1180px);
    }

    .header {
        height: 62px;
    }

    .header-inner {
        height: 62px;
    }

    .logo-text strong {
        font-size: 17px;
    }

    .language {
        display: none;
    }

    .breadcrumb {
        padding-top: 18px;
    }

    .pair-main {
        padding: 20px;
    }

    .pair-heading h1 {
        font-size: 22px;
    }

    .pair-heading p {
        font-size: 12px;
    }

    .rate-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-card strong {
        font-size: 16px;
    }

    .table-row {
        grid-template-columns: 1.2fr 1fr 1fr;
        padding: 0 12px;
    }

        .table-row > :last-child {
            display: none;
        }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr 1fr;
    }

    .articles {
        grid-template-columns: 1fr;
    }

    .source-box {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .copyright {
        flex-direction: column;
        gap: 8px;
    }
}

.currency-flags .flag {
    font-size: 25px
}

    .currency-flags .flag img {
        width: 52px;
        border-radius: 50px;
        border: 1px solid var(--line);
    }

label {
    font-size: 13px;
    font-weight: 800;
    color: #334155
}

.field {
    margin-top: 7px;
    border: 1px solid #dce5f1;
    border-radius: 14px;
    min-height: 58px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: #fff
}

    .field input, .field select {
        width: 100%;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--text);
        font-weight: 800
    }

    .field input {
        font-size: 27px
    }

.form-grid {
    display: grid;
    gap: 14px;
    margin-top: 15px;
}

.currency-row {
    display: grid;
    grid-template-columns: 1fr 56px 1fr;
    gap: 12px;
    align-items: end
}

.swap {
    height: 56px;
    border-radius: 16px;
    border: 1px solid #dce5f1;
    background: var(--soft);
    color: var(--primary);
    font-size: 22px;
    font-weight: 900;
    cursor: pointer
}

.btn {
    border: 0;
    border-radius: 14px;
    padding: 15px 18px;
    background: linear-gradient(135deg,var(--primary),var(--primary-2));
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(37,99,235,.22)
}

.result {
    margin-top: 16px;
    padding: 22px;
    background: linear-gradient(135deg,#f5f9ff,#eef5ff);
    border: 1px solid #dbeafe;
    border-radius: 18px;
    text-align: center;
    display:none;
}
    .result.active {
        display:block;
    }
    .result small {
        display: block;
        color: var(--muted);
        font-weight: 800
    }

    .result strong {
        display: block;
        color: var(--primary);
        font-size: clamp(20px, 4vw, 28px);
        margin: 4px 0 8px;
    }