:root {
  --emerald-950: #072223;
  --emerald-900: #0F3D3E;
  --emerald-800: #145354;
  --emerald-700: #1D6F70;
  --emerald-100: #E6F4F4;
  --emerald-50: #F2FAFA;
  --coral-600: #E04F33;
  --coral-700: #C83E23;
  --coral-50: #FEF3F0;
  --tg-blue: #229ED9;
  --tg-blue-dark: #1B86B8;
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 6px 20px rgba(15, 61, 62, 0.09);
  --shadow-lg: 0 14px 34px rgba(15, 61, 62, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; color: var(--slate-800); background: var(--slate-50); line-height: 1.6; }
body { overflow-x: hidden; }
a { color: var(--emerald-800); text-decoration: none; transition: all 0.18s ease; }
a:hover { color: var(--coral-600); }
img { max-width: 100%; height: auto; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Live Top Ticker: Rates, Border Status & Moscow Working Hours */
.top-ticker { background: var(--emerald-950); color: #E2E8F0; font-size: 0.82rem; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.top-ticker-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.rate-pills { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rate-pill { background: rgba(255,255,255,0.08); padding: 3px 10px; border-radius: 6px; font-weight: 600; color: #FFF; }
.rate-pill strong { color: #6EE7B7; }
.top-contacts { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.top-contacts a { color: #FFF; font-weight: 600; }

/* Header & 168-ФЗ Bilingual Brand Descriptor */
.site-header { background: #FFF; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--slate-200); }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; gap: 16px; }
.brand-block { display: flex; align-items: center; gap: 12px; }
.brand-descriptor { font-size: 0.78rem; color: var(--slate-600); max-width: 195px; line-height: 1.25; font-weight: 600; border-left: 2px solid var(--coral-600); padding-left: 10px; }
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-item { position: relative; }
.nav-link { display: inline-block; padding: 8px 11px; font-size: 0.92rem; font-weight: 600; color: var(--slate-800); border-radius: 8px; }
.nav-link:hover { background: var(--emerald-50); color: var(--emerald-900); }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 280px; background: #FFF; border: 1px solid var(--slate-200); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 200; }
.nav-item:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 8px 12px; font-size: 0.87rem; color: var(--slate-700); border-radius: 6px; font-weight: 500; }
.dropdown-menu a:hover { background: var(--emerald-50); color: var(--emerald-900); font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 9px; font-weight: 700; font-size: 0.94rem; cursor: pointer; border: none; text-align: center; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-tg { background: var(--tg-blue); color: #FFF !important; box-shadow: 0 4px 14px rgba(34, 158, 217, 0.3); }
.btn-tg:hover { background: var(--tg-blue-dark); }
.btn-coral { background: var(--coral-600); color: #FFF !important; box-shadow: 0 4px 14px rgba(224, 79, 51, 0.3); }
.btn-coral:hover { background: var(--coral-700); }
.btn-outline { background: transparent; border: 2px solid rgba(255,255,255,0.35); color: #FFF !important; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-emerald { background: var(--emerald-900); color: #FFF !important; }

/* Hero Section */
.hero { background: linear-gradient(135deg, var(--emerald-950) 0%, var(--emerald-900) 60%, var(--emerald-800) 100%); color: #FFF; padding: 52px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 36px; align-items: center; }
.hero-tag { display: inline-block; background: rgba(224, 79, 51, 0.22); border: 1px solid var(--coral-600); color: #FFD2C9; font-size: 0.82rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; margin-bottom: 14px; }
.hero h1 { font-size: 2.25rem; line-height: 1.22; font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em; }
.hero-subtitle { font-size: 1.06rem; color: #CBD5E1; margin-bottom: 24px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hero-badge { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.18); padding: 6px 13px; border-radius: 8px; font-size: 0.86rem; font-weight: 600; color: #F8FAFC; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); border-radius: 16px; padding: 24px; backdrop-filter: blur(8px); }

/* 4 Trust Pillars Bar */
.trust-four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: -26px; position: relative; z-index: 10; }
.trust-pillar { background: #FFF; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-md); }
.trust-pillar .tp-num { font-size: 0.76rem; font-weight: 800; color: var(--coral-600); text-transform: uppercase; letter-spacing: 0.05em; }
.trust-pillar h3 { font-size: 1.02rem; color: var(--emerald-900); margin: 4px 0 6px; font-weight: 800; }
.trust-pillar p { font-size: 0.85rem; color: var(--slate-600); }

/* Sections & Cards */
.section { padding: 54px 0; }
.section-white { background: #FFF; }
.section-header { max-width: 820px; margin-bottom: 32px; }
.section-header h2 { font-size: 1.78rem; color: var(--slate-900); font-weight: 800; margin-bottom: 10px; letter-spacing: -0.01em; }
.section-header p { font-size: 1rem; color: var(--slate-600); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: #FFF; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; justify-content: space-between; transition: box-shadow 0.2s ease, border-color 0.2s ease; }
.card:hover { box-shadow: var(--shadow-md); border-color: var(--emerald-700); }
.card-badge { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 0.76rem; font-weight: 700; background: var(--emerald-100); color: var(--emerald-900); margin-bottom: 12px; width: fit-content; }
.card h3 { font-size: 1.2rem; color: var(--slate-900); margin-bottom: 10px; font-weight: 800; }
.card p { font-size: 0.92rem; color: var(--slate-600); margin-bottom: 16px; }
.card-links { list-style: none; margin-bottom: 18px; border-top: 1px solid var(--slate-100); padding-top: 12px; }
.card-links li { margin-bottom: 7px; font-size: 0.88rem; }
.card-links a { font-weight: 600; display: flex; justify-content: space-between; }

/* Native HTML Data Tables (Vital for Yandex Commercial Factors & Алиса AI / GEO) */
.table-wrap { overflow-x: auto; background: #FFF; border: 1px solid var(--slate-200); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 24px 0; }
table.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.92rem; }
table.data-table caption { text-align: left; padding: 16px 20px; font-weight: 800; font-size: 1.08rem; background: var(--emerald-900); color: #FFF; }
table.data-table th { background: var(--emerald-50); color: var(--emerald-950); font-weight: 800; padding: 13px 18px; border-bottom: 2px solid var(--slate-200); }
table.data-table td { padding: 13px 18px; border-bottom: 1px solid var(--slate-200); color: var(--slate-700); vertical-align: top; }
table.data-table tr:hover td { background: var(--slate-50); }

/* Breadcrumbs */
.breadcrumbs { padding: 14px 0; font-size: 0.85rem; color: var(--slate-600); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumbs li+li::before { content: "/"; margin-right: 8px; color: #94A3B8; }

/* Article 8-Part Template Layout (TL;DR, TOC, Mid-CTA, FAQ, Summary) */
.article-layout { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
.article-main { background: #FFF; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.85rem; color: var(--slate-600); padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--slate-200); }
.meta-updated { color: var(--coral-700); font-weight: 700; background: var(--coral-50); padding: 2px 9px; border-radius: 6px; }
.tldr-box { background: var(--emerald-50); border-left: 5px solid var(--emerald-900); padding: 20px 22px; border-radius: 0 10px 10px 0; margin-bottom: 26px; }
.tldr-title { font-weight: 800; font-size: 0.95rem; color: var(--emerald-950); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.03em; }
.toc-box { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 10px; padding: 16px 20px; margin-bottom: 26px; }
.toc-box h4 { font-size: 0.95rem; margin-bottom: 8px; color: var(--slate-900); }
.toc-box ul { padding-left: 18px; font-size: 0.9rem; }
.content-body h2 { font-size: 1.45rem; color: var(--slate-900); margin: 28px 0 12px; font-weight: 800; }
.content-body p { margin-bottom: 14px; font-size: 1rem; color: var(--slate-700); }
.content-body ul { padding-left: 22px; margin-bottom: 18px; }
.content-body li { margin-bottom: 8px; }

/* Scenario Mid-Article Telegram CTA Box */
.mid-cta-card { background: linear-gradient(135deg, var(--emerald-900), var(--emerald-800)); color: #FFF; border-radius: var(--radius); padding: 26px; margin: 30px 0; box-shadow: var(--shadow-md); }
.mid-cta-card h3 { font-size: 1.25rem; margin-bottom: 8px; color: #FFF; }
.mid-cta-card p { color: #E2E8F0 !important; margin-bottom: 16px !important; }

/* FAQ Accordion / List */
.faq-list { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.faq-item { background: #FFF; border: 1px solid var(--slate-200); border-radius: 10px; padding: 18px 22px; }
.faq-item h3 { font-size: 1.05rem; color: var(--emerald-950); margin-bottom: 8px; font-weight: 700; }
.faq-item p { font-size: 0.94rem; color: var(--slate-600); margin: 0; }

/* Calculator Widget */
.calc-box { background: #FFF; border: 2px solid var(--emerald-800); border-radius: 14px; padding: 28px; box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.86rem; font-weight: 700; color: var(--slate-700); margin-bottom: 6px; }
.form-group input, .form-group select { width: 100%; padding: 10px 13px; border: 1px solid var(--slate-200); border-radius: 8px; font-size: 0.96rem; }
.calc-result { background: var(--emerald-50); border: 1px solid var(--emerald-700); border-radius: 10px; padding: 18px; margin-top: 16px; }

/* Restrained Floating Communication Widget (TG + MAX Backup, NO WhatsApp) */
.floating-comm { position: fixed; bottom: 22px; right: 22px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.comm-menu { display: none; background: #FFF; border: 1px solid var(--slate-200); border-radius: 12px; padding: 12px; box-shadow: var(--shadow-lg); width: 265px; }
.comm-menu.active { display: block; }
.comm-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 0.88rem; font-weight: 700; margin-bottom: 6px; }
.comm-btn-main { background: var(--tg-blue); color: #FFF; border: none; border-radius: 99px; padding: 13px 20px; font-weight: 800; font-size: 0.92rem; cursor: pointer; box-shadow: 0 6px 20px rgba(34, 158, 217, 0.4); display: flex; align-items: center; gap: 8px; }

/* 152-ФЗ Cookie Notice */
.cookie-bar { position: fixed; bottom: 16px; left: 16px; max-width: 440px; background: var(--slate-900); color: #E2E8F0; padding: 14px 18px; border-radius: 10px; font-size: 0.8rem; z-index: 890; display: none; box-shadow: var(--shadow-lg); }
.cookie-bar a { color: #6EE7B7; text-decoration: underline; }

/* Footer */
.site-footer { background: var(--emerald-950); color: #CBD5E1; padding: 52px 0 32px; margin-top: 60px; font-size: 0.88rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 36px; }
.site-footer h4 { color: #FFF; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #CBD5E1; }
.site-footer a:hover { color: #6EE7B7; }
.legal-notice { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; font-size: 0.79rem; color: #94A3B8; line-height: 1.5; }

@media (max-width: 960px) {
  .hero-grid, .article-layout, .grid-3, .grid-2, .trust-four, .footer-grid { grid-template-columns: 1fr; }
  .trust-four { margin-top: 20px; }
  .hero h1 { font-size: 1.75rem; }
}
