/* ==========================================================================
   Kriptofoni article clone — site styles
   Layout tokens measured from the source page (max width 1040px,
   article column 684px + 32px gap + sidebar 300px).
   ========================================================================== */

:root {
  --brand: #f2801e;
  --brand-dark: #d96c0f;
  --navy: #161f37;
  --navy-deep: #0f1629;
  --ink: #222222;
  --ink-soft: #3f3f46;
  --muted: #71717a;
  --muted-2: #a1a1aa;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --line: #e4e4e7;
  --line-soft: #f1f1f3;
  --danger: #b91c1c;
  --danger-bg: #fdecec;
  --shadow: 0 8px 30px rgba(0, 0, 0, .18);
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --header-h: 110px;
  --header-h-mobile: 57px;
}

html[data-theme="dark"] {
  --ink: #edf0f6;
  --ink-soft: #d5dae4;
  --muted: #9aa4b2;
  --muted-2: #7c8798;
  --surface: #0e1421;
  --surface-2: #141b2a;
  --line: #263043;
  --line-soft: #1c2536;
  --danger: #f87171;
  --danger-bg: #3a1d20;
  --shadow: 0 8px 30px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.2; }

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 12px;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 200;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-weight: 600;
}
.skip-link:focus { top: 8px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #24345f; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #f1f1f3; }
.btn-outline-light { border: 1px solid rgba(255, 255, 255, .45); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); }
.btn-outline-navy { border: 1px solid #c9ced9; color: var(--navy); background: #fff; font-weight: 600; }
.btn-outline-navy:hover { background: #eef1f7; }
.btn-google { background: #1a73e8; color: #fff; }
.btn-google:hover { background: #1667cf; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .3);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.brand img { width: 188px; height: auto; }
.brand-badge {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 12px;
  color: #ffd7b3;
  border: 1px solid rgba(242, 128, 30, .55);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  padding: 4px 0;
  white-space: nowrap;
}
.nav-item:hover { color: #ffd7b3; }

.nav-pill {
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  padding: 6px 14px;
}
.nav-pill:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.lang-switch { position: relative; }
.lang-btn { border-left: 1px solid rgba(255, 255, 255, .22); padding-left: 16px; }
.lang-btn span { font-weight: 700; letter-spacing: .04em; }

.lang-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 220px;
  max-height: 340px;
  overflow-y: auto;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: none;
  z-index: 60;
}
.lang-menu.is-open { display: block; }
.lang-menu li { margin: 0; }
.lang-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  text-align: start;
}
.lang-menu button:hover { background: var(--surface-2); }
.lang-menu button[aria-current="true"] { background: rgba(242, 128, 30, .12); color: var(--brand-dark); font-weight: 700; }
.lang-menu .lang-code { font-size: 11px; color: var(--muted); letter-spacing: .05em; }

.header-cats {
  height: 45px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.cats-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 45px;
  overflow-x: auto;
  scrollbar-width: none;
  font-size: 13.5px;
  font-weight: 600;
}
.cats-inner::-webkit-scrollbar { display: none; }
.cats-inner a { color: #cfd5e4; white-space: nowrap; }
.cats-inner a:hover { color: #fff; }

.mobile-actions { display: none; margin-left: auto; }
.icon-btn.hamburger { display: none; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: #fff;
}
.icon-btn:hover { background: rgba(255, 255, 255, .1); }

.ico-moon { display: none; }
html[data-theme="dark"] .ico-sun { display: none; }
html[data-theme="dark"] .ico-moon { display: inline-block; }

/* --------------------------------------------------------------------------
   Market ticker
   -------------------------------------------------------------------------- */
.ticker {
  background: var(--navy-deep);
  color: #fff;
  height: 41px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, .3);
}
.ticker-inner { display: flex; align-items: center; gap: 14px; height: 41px; }
.ticker-label {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 999px;
  padding: 3px 9px;
}
.ticker-viewport {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: ticker-scroll 42s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tick { font-size: 12.5px; white-space: nowrap; color: #e6e9f1; }
.tick b { font-weight: 800; color: #fff; margin-right: 2px; }
.tick em { font-style: normal; font-weight: 700; margin-left: 4px; }
.down { color: #ef4444; }
html[data-theme="dark"] .down { color: #f87171; }

/* --------------------------------------------------------------------------
   Page / article
   -------------------------------------------------------------------------- */
main { padding-bottom: 24px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 18px 0 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.breadcrumb a:hover { color: var(--brand-dark); }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 684px) 300px;
  gap: 32px;
  align-items: start;
  padding-bottom: 40px;
}

.article-header { padding-top: 4px; }

.article-title {
  font-size: 42px;
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 4px 0 18px;
}

.article-dek {
  font-size: 21px;
  line-height: 1.5;
  font-weight: 500;
  border-left: 3px solid var(--brand);
  padding-left: 14px;
  margin-bottom: 24px;
}

.meta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 24px;
  background: var(--surface);
}
.meta-author { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand);
  flex: 0 0 auto;
}
.meta-text { min-width: 0; }
.meta-name { font-size: 14px; font-weight: 700; }
.meta-name:hover { color: var(--brand-dark); }
.meta-line { font-size: 12px; color: var(--muted); margin-top: 1px; }

.share-row { display: flex; flex-wrap: wrap; gap: 6px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: background .18s ease, color .18s ease;
}
.share-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.hero { margin: 0 0 22px; }
.hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}
.hero figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }

.google-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 26px;
}
.google-copy { display: flex; flex-direction: column; gap: 2px; margin-right: auto; }
.google-copy strong { font-size: 14.5px; font-weight: 800; }
.google-copy span { font-size: 12.5px; color: var(--muted); }
.google-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.article-body > p {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.article-body section { margin-bottom: 8px; scroll-margin-top: 136px; }
.article-body h2 {
  font-size: 20.8px;
  line-height: 1.6;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 34px 0 16px;
  scroll-margin-top: 136px;
}
.article-body p {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 22px;
}
.article-body a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.article-body a:hover { color: var(--brand-dark); }

/* Table of contents */
.toc {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 6px;
  padding: 14px 19px;
  margin: 28px 0 26px;
}
.toc h2 {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 8px;
  scroll-margin-top: 0;
}
.toc li + li { border-top: 1px solid var(--line); }
.toc a {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}
.toc a:hover { color: var(--brand-dark); }
.toc-num { color: var(--brand); font-weight: 800; flex: 0 0 auto; }
.toc a.is-active { color: var(--brand-dark); }
.toc a.is-active .toc-num { text-decoration: underline; }

/* Related coins */
.related-coins { margin: 34px 0 18px; }
.related-coins h2 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 10px;
}
.coin-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.coin-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 104px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 12.5px;
}
.coin-chip:hover { border-color: var(--brand); }
.coin-chip-head { display: flex; align-items: center; gap: 5px; font-weight: 700; }
.coin-chip strong { font-size: 13px; font-weight: 800; }
.coin-chip em { font-style: normal; font-size: 11.5px; font-weight: 700; background: var(--danger-bg); border-radius: 4px; padding: 1px 4px; align-self: flex-start; }

.error-note { font-size: 13px; color: var(--muted); margin: 6px 0 18px; }
.error-note a { color: var(--brand-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 34px; }
.tags-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--surface);
}
.tag:hover { border-color: var(--brand); color: var(--brand-dark); }

/* Author card */
.author-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 40px;
}
.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand);
  flex: 0 0 auto;
}
.author-body { min-width: 0; }
.eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-dark);
}
.author-body h2 { font-size: 19px; font-weight: 800; margin: 4px 0 8px; }
.author-body p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 10px; }
.link-strong { font-size: 13px; font-weight: 700; color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }

/* Related news */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 18px;
  position: relative;
}
.section-head::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 48px;
  height: 3px;
  background: var(--brand);
}
.section-head h2 { font-size: 22px; font-weight: 800; }
.all-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}
.all-pill:hover { border-color: var(--brand); color: var(--brand-dark); }

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; margin-bottom: 20px; }
.news-card { display: flex; flex-direction: column; gap: 8px; }
.news-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}
.news-card h3 { font-size: 16px; line-height: 1.35; font-weight: 700; }
.news-card:hover h3 { color: var(--brand-dark); }
.news-card time { font-size: 12px; color: var(--muted); margin-top: auto; }

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */
.sidebar { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.side-card { min-width: 0; }
.side-sticky { position: static; }
.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 12px;
  position: relative;
}
.side-head::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 44px;
  height: 3px;
  background: var(--brand);
}
.side-head h2 { font-size: 17px; font-weight: 800; }
.all-link { font-size: 12px; font-weight: 700; color: var(--muted); }
.all-link:hover { color: var(--brand-dark); }

.latest-list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.latest-list li:last-child { border-bottom: 0; }
.latest-list img {
  width: 84px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 auto;
}
.latest-list a { display: flex; gap: 10px; min-width: 0; width: 100%; }
.latest-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.latest-list strong { font-size: 13.5px; line-height: 1.35; font-weight: 700; }
.latest-list a:hover strong { color: var(--brand-dark); }
.latest-list time { font-size: 11.5px; color: var(--muted); }

.mostread-list { counter-reset: mr; }
.mostread-list li {
  counter-increment: mr;
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
.mostread-list li:last-child { border-bottom: 0; }
.mostread-list li::before {
  content: counter(mr);
  font-size: 17px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.2;
  min-width: 18px;
}
.mostread-list a { font-size: 13.5px; line-height: 1.35; font-weight: 700; }
.mostread-list a:hover { color: var(--brand-dark); }

.price-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.price-table th {
  text-align: start;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 0 7px;
  border-bottom: 1px solid var(--line);
}
.price-table th:last-child, .price-table td:last-child { text-align: end; }
.price-table td { padding: 7px 0; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.price-table td.down { font-weight: 700; color: var(--danger); }
.coin-name { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.coin-name small { color: var(--muted); font-size: 10.5px; font-weight: 600; }
.price-links { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 10px; }
.price-links a:hover { color: var(--brand-dark); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #fff; margin-top: 24px; }

.footer-cta { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 34px;
  padding-bottom: 34px;
}
.footer-cta h2 { font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.footer-cta p { font-size: 15px; color: #cfd5e4; }
.footer-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 3.6fr;
  gap: 36px;
  padding-top: 40px;
  padding-bottom: 34px;
}
.footer-brand img { width: 188px; margin-bottom: 14px; }
.footer-brand > p { font-size: 13.5px; color: #cfd5e4; line-height: 1.6; }
.footer-app-label {
  margin-top: 16px !important;
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8e99b0 !important;
}
.app-buttons { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.app-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 7px;
  padding: 5px 11px;
  line-height: 1.2;
}
.app-btn span { font-size: 8.5px; letter-spacing: .04em; text-transform: uppercase; color: #cfd5e4; }
.app-btn b { font-size: 12.5px; }
.app-btn:hover { background: rgba(255, 255, 255, .08); }
.social-row { display: flex; gap: 8px; margin-top: 8px; }
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
}
.social-row a:hover { background: var(--brand); border-color: var(--brand); }

.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-col h3 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 8px;
}
.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2px;
  background: var(--brand);
}
.footer-col a { display: block; font-size: 12.5px; color: #cfd5e4; padding: 4px 0; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer-risk { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-risk p { font-size: 11px; line-height: 1.65; color: #9aa4b2; padding: 16px 0; }

.footer-bottom { background: var(--navy-deep); }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}
.footer-bottom p { font-size: 11px; color: #9aa4b2; }
.footer-bottom a { font-size: 11px; color: #cfd5e4; text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------------------------------------------------
   Cookie banner / back to top / toast
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  padding: 12px 16px;
}
.cookie-panel {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  font-size: 14px;
}
.cookie-panel p { flex: 1; line-height: 1.55; }
.cookie-panel a { color: var(--brand-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 8px; flex: 0 0 auto; }

.back-top {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}
.back-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-top:hover { background: var(--brand); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 80;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* --------------------------------------------------------------------------
   Drawer (mobile menu)
   -------------------------------------------------------------------------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 70;
  opacity: 0;
  transition: opacity .2s ease;
}
.drawer-overlay.is-open { opacity: 1; }

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(420px, 92vw);
  z-index: 71;
  background: var(--surface);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.brand-drawer img { width: 170px; }
.drawer .icon-btn { color: var(--ink); }
.drawer .icon-btn:hover { background: var(--surface-2); }

.drawer-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px; }
.drawer-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.drawer-quick a {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 4px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--surface-2);
}
.drawer-quick a:hover { border-color: var(--brand); color: var(--brand-dark); }

.drawer-search { display: flex; gap: 8px; margin-bottom: 18px; }
.drawer-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}
.drawer-search input:focus { outline: 2px solid rgba(242, 128, 30, .4); border-color: var(--brand); }
.drawer-search button {
  width: 44px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.drawer-groups h3, .drawer-lang h3 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 8px;
}
.drawer-groups a { display: block; font-size: 13px; font-weight: 600; padding: 5px 0; color: var(--ink-soft); }
.drawer-groups a:hover { color: var(--brand-dark); }

.drawer-lang ul { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.drawer-lang button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  text-align: start;
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 6px;
}
.drawer-lang button:hover { background: var(--surface-2); }
.drawer-lang button[aria-current="true"] { background: rgba(242, 128, 30, .12); color: var(--brand-dark); font-weight: 700; }
.drawer-lang .lang-code { font-size: 10px; color: var(--muted); }

.drawer-foot { border-top: 1px solid var(--line); padding: 12px 14px; }
.drawer-foot .nav-item { color: var(--ink); font-size: 14px; }

/* --------------------------------------------------------------------------
   RTL
   -------------------------------------------------------------------------- */
[dir="rtl"] .article-dek { border-left: 0; border-right: 3px solid var(--brand); padding-left: 0; padding-right: 14px; }
[dir="rtl"] .toc { border-left: 1px solid var(--line); border-right: 3px solid var(--brand); }
[dir="rtl"] .section-head::before,
[dir="rtl"] .side-head::before,
[dir="rtl"] .footer-col h3::after { left: auto; right: 0; }
[dir="rtl"] .back-top { right: auto; left: 16px; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .drawer { left: auto; right: 0; transform: translateX(100%); }
[dir="rtl"] .drawer.is-open { transform: none; }
[dir="rtl"] .price-table th, [dir="rtl"] .price-table td { text-align: right; }
[dir="rtl"] .price-table th:last-child, [dir="rtl"] .price-table td:last-child { text-align: left; }
[dir="rtl"] .news-card time, [dir="rtl"] .latest-list time { text-align: right; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .article-body section { scroll-margin-top: 84px; }
  .desktop-nav, .header-cats { display: none; }
  .header-inner { height: 56px; }
  .icon-btn.hamburger { display: inline-flex; }
  .mobile-actions { display: flex; gap: 2px; }
  .brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .brand img { width: 168px; }
  .brand-badge { display: none; }
  .header-top { position: relative; }
  .site-header { --header-h: var(--header-h-mobile); }

  .content-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
  .sidebar .side-card:last-child { grid-column: 1 / -1; max-width: 360px; }
  .back-top { right: 16px; bottom: 16px; }
}

@media (max-width: 720px) {
  .article-title { font-size: 28px; line-height: 1.18; letter-spacing: -.02em; }
  .article-dek { font-size: 19px; line-height: 1.5; }
  .article-body p, .article-body > p { font-size: 20px; line-height: 1.6; }
  .article-body h2 { font-size: 20.8px; }
  .hero { margin-left: -12px; margin-right: -12px; }
  .hero img { border-radius: 0; }
  .hero figcaption { padding: 0 12px; }
  .meta-card { align-items: flex-start; }
  .share-row { width: 100%; justify-content: flex-end; }
  .news-grid { grid-template-columns: 1fr; gap: 18px; }
  .news-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    gap: 4px 12px;
  }
  .news-card > a:first-child { grid-row: 1 / 4; }
  .news-card img { width: 120px; height: 90px; aspect-ratio: auto; }
  .news-card > a:nth-child(2) { grid-column: 2; grid-row: 1 / 3; }
  .news-card h3 { font-size: 15px; }
  .news-card time { grid-column: 2; grid-row: 3; margin-top: 4px; }
  .author-card { padding: 18px; gap: 14px; }
  .author-avatar { width: 64px; height: 64px; }
  .sidebar { grid-template-columns: 1fr; }
  .sidebar .side-card:last-child { max-width: none; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cta h2 { font-size: 24px; }
  .cookie-banner { padding: 10px 12px; }
  .cookie-panel { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: flex-end; }
  .toast { bottom: 20px; }
}

@media (max-width: 480px) {
  .google-actions { width: 100%; }
  .google-actions .btn { flex: 1; }
  .footer-cols { grid-template-columns: 1fr; }
  .drawer-groups { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .drawer, .drawer-overlay, .back-top, .toast { transition: none; }
}
