/* Общий каркас «самописных» страниц FAST WAY MONEY: статьи, страницы валютных
   пар, мировое время. Визуально продолжает оферту/политику (/offer, /privacy). */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --accent: #704eed;
    --accent-dark: #5a3bd1;
    --accent-soft: #f0ecfe;
    --ink: #15151a;
    --text: #33343a;
    --muted: #6b6e78;
    --line: #e6e7eb;
    --bg: #f6f7f9;
    --card: #fff;
    --radius: 14px;
}

body {
    font-family: 'TildaSans', 'Inter', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Шапка ---------- */
.fw-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.fw-header .wrap {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 64px;
}
.fw-logo {
    text-decoration: none;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: .3px;
    color: var(--accent);
    white-space: nowrap;
}
.fw-logo span { color: #111; }
.fw-nav { display: flex; gap: 22px; flex: 1; }
.fw-nav a {
    color: var(--ink);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}
.fw-nav a:hover, .fw-nav a.active { color: var(--accent); }
.fw-login {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: 9px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
}
.fw-login:hover { background: var(--accent-dark); }
.fw-burger {
    display: none;
    background: none;
    border: 0;
    width: 36px;
    height: 36px;
    cursor: pointer;
    margin-left: auto;
}
.fw-burger span {
    display: block;
    height: 2px;
    background: var(--ink);
    margin: 7px 4px;
}
.fw-mobile {
    display: none;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 10px 20px 18px;
}
.fw-mobile a {
    display: block;
    padding: 10px 0;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--line);
}
.fw-mobile .fw-login { display: inline-block; margin-top: 14px; border: 0; }
.fw-mobile.open { display: block; }

@media (max-width: 860px) {
    .fw-nav, .fw-header .wrap > .fw-login { display: none; }
    .fw-burger { display: block; }
}

/* ---------- Общие блоки ---------- */
.crumbs { font-size: 14px; color: var(--muted); padding: 22px 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.page-title {
    font-size: 38px;
    line-height: 1.2;
    color: var(--ink);
    font-weight: 800;
    margin: 14px 0 10px;
}
.page-sub { font-size: 18px; color: var(--muted); max-width: 720px; }

.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}
.btn img { width: 20px; height: 20px; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: var(--accent-soft); color: var(--accent); }
.btn-ghost:hover { background: #e4dcfd; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1fb457; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.section { padding: 26px 0; }
.section h2 { font-size: 26px; color: var(--ink); margin-bottom: 14px; line-height: 1.25; }
.section p + p { margin-top: 12px; }

/* ---------- Страница валютной пары ---------- */
.pair-top {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 24px;
    margin-top: 24px;
}
.pair-rate {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.pair-codes { font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: .5px; }
.pair-codes b { color: var(--ink); }
.pair-value {
    font-size: 56px;
    line-height: 1;
    font-weight: 800;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.pair-value small { font-size: 20px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.pair-updated { font-size: 14px; color: var(--muted); }
.pair-note {
    border-left: 3px solid var(--accent);
    padding: 4px 0 4px 14px;
    color: var(--text);
}

.calc h2 { font-size: 20px; margin-bottom: 18px; color: var(--ink); }
.calc label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.calc-field {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 16px;
    background: #fff;
}
.calc-field:focus-within { border-color: var(--accent); }
.calc-field input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 14px;
    font-size: 20px;
    font-family: inherit;
    background: transparent;
    font-variant-numeric: tabular-nums;
}
.calc-field span { padding: 0 16px; font-weight: 700; color: var(--muted); }
.calc-hint { font-size: 14px; color: var(--muted); }

.faq-item { border-top: 1px solid var(--line); padding: 18px 0; }
.faq-item:first-of-type { border-top: 0; padding-top: 4px; }
.faq-item h3 { font-size: 18px; color: var(--ink); margin-bottom: 6px; }

.pairs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.pairs-grid a {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    text-align: center;
}
.pairs-grid a:hover { border-color: var(--accent); color: var(--accent); }

.cta-band {
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius);
    padding: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: 24px; margin-bottom: 4px; }
.cta-band p { color: #c9cad1; }

@media (max-width: 860px) {
    .pair-top { grid-template-columns: 1fr; }
    .page-title { font-size: 28px; }
    .pair-value { font-size: 44px; }
    .card { padding: 22px; }
}

/* ---------- Статьи ---------- */
.tagbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 4px; }
.tagchip {
    padding: 6px 14px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
}
.tagchip.active, .tagchip:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 22px 0 10px;
}
.article-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
}
.article-card:hover { border-color: var(--accent); }
.article-card-image { aspect-ratio: 16 / 9; background: var(--accent-soft); }
.article-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-card-body h2 { font-size: 19px; line-height: 1.3; color: var(--ink); }
.article-card-body p { color: var(--muted); font-size: 15px; flex: 1; }
.article-card-tags { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--accent); }
.article-card-date { font-size: 13px; color: var(--muted); }

.articles-empty { padding: 40px 0; color: var(--muted); font-size: 18px; }
.pager { display: flex; gap: 6px; margin: 16px 0 30px; flex-wrap: wrap; }
.pager a {
    min-width: 40px;
    padding: 8px 12px;
    text-align: center;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--text);
}
.pager a.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.article { max-width: 780px; margin: 0 auto; padding-bottom: 30px; }
.article h1 { font-size: 36px; line-height: 1.2; color: var(--ink); margin: 14px 0 10px; }
.article-meta { color: var(--muted); font-size: 14px; display: flex; gap: 8px; }
.article-lead { font-size: 20px; color: var(--ink); margin: 20px 0; line-height: 1.5; }
.article-cover { margin: 0 0 24px; }
.article-cover img { width: 100%; border-radius: var(--radius); display: block; }
.article-content { font-size: 17px; }
.article-content h2 { font-size: 25px; color: var(--ink); margin: 30px 0 12px; line-height: 1.3; }
.article-content p { margin: 0 0 14px; }
.article-content ul, .article-content ol { margin: 0 0 16px 22px; }
.article-content li { margin-bottom: 6px; }
.article-content blockquote {
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
    padding: 14px 18px;
    border-radius: 0 10px 10px 0;
    margin: 0 0 16px;
    color: var(--ink);
}
.article-figure { margin: 0 0 18px; }
.article-figure img { width: 100%; border-radius: 10px; display: block; }
.article-figure figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.article-hashtags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.article-hashtag {
    color: var(--accent);
    background: var(--accent-soft);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 14px;
    text-decoration: none;
}
.article-cta { margin: 28px 0; }
.article-related h3 { font-size: 20px; color: var(--ink); margin-bottom: 10px; }
.article-related a { display: block; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 600; }

@media (max-width: 860px) {
    .article h1 { font-size: 28px; }
    .article-lead { font-size: 18px; }
}

/* ---------- Подвал ---------- */
.fw-footer {
    margin-top: 40px;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 30px 0;
    font-size: 14px;
    color: var(--muted);
}
.fw-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 36px;
    align-items: center;
    justify-content: space-between;
}
.fw-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.fw-footer a { color: var(--text); text-decoration: none; }
.fw-footer a:hover { color: var(--accent); }
.fw-footer .contacts { display: flex; gap: 16px; }
.fw-footer .contacts a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.fw-footer .contacts img { width: 18px; height: 18px; }
.fw-footer .copy { width: 100%; }
