/* ============ INFPOKER — PokerSwap-style light theme ============ */
:root {
  --bg: #f7f4ec;          /* warm cream page bg */
  --bg-beige: #dcd3b8;    /* hero beige */
  --bg-soft: #efebde;     /* soft panel */
  --card: #ffffff;
  --border: #e5e0d2;
  --text: #191919;
  --muted: #6f6a5e;
  --label: #a08c4a;       /* gold label */
  --green: #1f9f32;
  --green-dark: #178028;
  --coral: #fc6a73;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(60, 50, 20, 0.08);
  --maxw: 1120px;
  --maxw-doc: 1280px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 236, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo {
  font-size: 21px; font-weight: 800; letter-spacing: -0.3px;
  color: var(--text); text-decoration: none !important;
  display: flex; align-items: center; gap: 10px;
}
.logo .mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--green); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.nav-links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav-links > a, .dropdown > a {
  color: var(--text); font-size: 15px; font-weight: 500;
  padding: 9px 14px; border-radius: 10px;
}
.nav-links > a:hover, .dropdown > a:hover { background: var(--bg-soft); text-decoration: none; }

/* выпадающее меню «Приложения» */
.dropdown { position: relative; }
.dropdown > a::after { content: " ▾"; font-size: 11px; color: var(--muted); }
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  color: var(--text); font-size: 14.5px; font-weight: 500;
}
.dropdown-menu a:hover { background: var(--bg-soft); text-decoration: none; }
.dropdown-menu .mini-icon { margin-right: 0; }

.lang-switch {
  border: 1.5px solid var(--border); border-radius: 10px; margin-left: 8px;
  padding: 7px 14px !important; font-size: 13px; font-weight: 700;
  color: var(--text) !important; background: var(--card);
}
.lang-switch:hover { border-color: var(--green); color: var(--green-dark) !important; background: var(--card) !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 12px;
  font-weight: 600; font-size: 16px; text-decoration: none !important;
  transition: transform 0.15s, background 0.15s, border-color 0.15s; border: none; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { background: var(--card); border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--green); color: var(--green-dark); }

/* ---------- hero ---------- */
.hero { padding: 32px 0 0; }
.hero-box {
  background: var(--bg-beige); border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 84px) clamp(24px, 6vw, 80px);
  text-align: center;
}
.hero h1 { font-size: clamp(34px, 5.5vw, 56px); font-weight: 800; margin-bottom: 18px; }
.hero p { font-size: 18px; max-width: 640px; margin: 0 auto 30px; color: #3a372e; }
.btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- sections ---------- */
section { padding: 56px 0 0; }
section:last-of-type { padding-bottom: 64px; }
.sec-title { font-size: clamp(26px, 3.5vw, 34px); margin-bottom: 10px; }
.sec-sub { color: var(--muted); margin-bottom: 28px; }
.sec-sub:empty { margin-bottom: 24px; }

/* ---------- app cards ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px;
  display: flex; flex-direction: column; gap: 13px;
  color: var(--text); text-decoration: none !important;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(60, 50, 20, 0.13); }
.card-top { display: flex; align-items: center; gap: 14px; }
.app-icon {
  width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0;
  object-fit: cover; border: 1px solid var(--border); background: #fff;
}
.card h3 { font-size: 20px; }
.rating {
  margin-left: auto; background: rgba(31, 159, 50, 0.1);
  color: var(--green-dark); font-weight: 700; font-size: 15px;
  padding: 5px 12px; border-radius: 10px;
}
.card .tagline { color: var(--muted); font-size: 15px; flex-grow: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 12px; font-weight: 600; color: var(--muted);
  background: var(--bg-soft); padding: 4px 10px; border-radius: 8px;
}
.card .more { color: var(--green-dark); font-weight: 600; font-size: 14.5px; }

/* ---------- compare table ---------- */
.table-scroll {
  overflow-x: auto; border-radius: var(--radius-lg);
  background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--border);
}
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th, td { padding: 15px 18px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--border); }
th { color: var(--label); font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-soft); }
.mini-icon {
  width: 28px; height: 28px; border-radius: 8px;
  object-fit: cover; border: 1px solid var(--border); background: #fff;
  margin-right: 10px; vertical-align: middle;
}
.yes { color: var(--green); font-weight: 700; }
.no { color: var(--muted); }
td a { color: var(--text); font-weight: 600; }

/* ---------- how steps ---------- */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.step .num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step h4 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- faq ---------- */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; background: var(--card); overflow: hidden; }
.faq-item summary {
  padding: 18px 24px; cursor: pointer; font-weight: 600; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--green); font-size: 24px; font-weight: 400; transition: transform 0.2s; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 18px; color: var(--muted); font-size: 15px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--bg-beige); border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 52px); text-align: center;
}
.cta-banner h2 { font-size: clamp(24px, 3.5vw, 32px); font-weight: 800; margin-bottom: 12px; }
.cta-banner p { color: #3a372e; max-width: 560px; margin: 0 auto 24px; }

/* ---------- app page ---------- */
.app-hero { padding: 28px 0 0; }
.breadcrumb { color: var(--muted); font-size: 14px; margin-bottom: 16px; display: inline-block; }
.breadcrumb a { color: var(--muted); }
.app-head-box {
  background: var(--bg-beige); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.app-icon-lg {
  width: 88px; height: 88px; border-radius: 22px; flex-shrink: 0;
  object-fit: cover; border: 1px solid var(--border); background: #fff;
  box-shadow: 0 8px 24px rgba(60, 50, 20, 0.18);
}
.app-head-box h1 { font-size: clamp(28px, 4.5vw, 44px); font-weight: 800; margin-bottom: 4px; }
.app-head-box .tagline { color: #3a372e; font-size: 17px; }
.rating-badge {
  margin-left: auto; text-align: center; background: var(--card);
  border-radius: var(--radius); padding: 16px 28px; box-shadow: var(--shadow);
}
.rating-badge .val { font-size: 32px; font-weight: 800; color: var(--green-dark); line-height: 1.1; }
.rating-badge .lbl { font-size: 11px; color: var(--label); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; }

/* sub-nav (кластер страниц приложения) */
.subnav { display: flex; gap: 10px; flex-wrap: wrap; padding: 20px 0 0; }
.subnav a {
  padding: 10px 20px; border-radius: 12px; font-size: 14.5px; font-weight: 600;
  background: var(--card); border: 1px solid var(--border); color: var(--text);
}
.subnav a:hover { border-color: var(--green); color: var(--green-dark); text-decoration: none; }
.subnav a.active { background: var(--green); color: #fff; border-color: var(--green); }

.app-layout { display: grid; grid-template-columns: 1fr 330px; gap: 32px; padding-top: 36px; padding-bottom: 64px; align-items: start; }
@media (max-width: 880px) { .app-layout { grid-template-columns: 1fr; } }
.app-content { min-width: 0; }
.app-content > p { margin-bottom: 16px; color: #33302a; font-size: 16.5px; }
.app-content h2 { font-size: 24px; margin: 36px 0 16px; }
.app-content h2:first-child { margin-top: 0; }
.app-content ul.list, .app-content ol.list { margin: 0 0 18px 22px; color: #33302a; }
.app-content ul.list li, .app-content ol.list li { margin-bottom: 10px; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 30px 0; }
@media (max-width: 640px) { .proscons { grid-template-columns: 1fr; } }
.pc-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.pc-box h3 { font-size: 17px; margin-bottom: 12px; }
.pc-box.pros h3 { color: var(--green-dark); }
.pc-box.cons h3 { color: var(--coral); }
.pc-box ul { list-style: none; }
.pc-box li { padding: 6px 0 6px 26px; position: relative; font-size: 14.5px; color: #33302a; }
.pc-box.pros li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.pc-box.cons li::before { content: "✕"; position: absolute; left: 0; color: var(--coral); font-weight: 700; }
.verdict-box {
  background: var(--bg-soft); border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 24px; margin: 8px 0 26px;
}
.verdict-box h3 { color: var(--green-dark); font-size: 16px; margin-bottom: 8px; }
.verdict-box p { margin: 0; }

/* галерея скриншотов */
.shots {
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
}
.shots img {
  height: 380px; width: auto; flex-shrink: 0; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  scroll-snap-align: start; background: #fff;
}
@media (max-width: 640px) { .shots img { height: 300px; } }

/* download buttons — светлые карточки, как в оригинале */
.dl-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 22px 0; }
.dl-btn {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1.5px solid var(--border); color: var(--text) !important;
  border-radius: 14px; padding: 14px 18px; text-decoration: none !important;
  box-shadow: var(--shadow);
  transition: transform 0.15s, border-color 0.15s;
}
.dl-btn:hover { transform: translateY(-2px); border-color: var(--green); }
.dl-btn .ico { font-size: 26px; }
.dl-btn .t { line-height: 1.3; }
.dl-btn .t small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.dl-btn .t b { font-size: 15.5px; }
.note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg-soft); border-radius: var(--radius); padding: 15px 18px;
  font-size: 14.5px; color: #4d4a40; margin: 0 0 22px; border-left: 3px solid var(--border);
}
.note .note-ico { font-size: 17px; line-height: 1.5; flex-shrink: 0; }
.note-info { border-left-color: #5b8def; background: rgba(91, 141, 239, 0.07); }
.note-warn { border-left-color: var(--coral); background: rgba(252, 106, 115, 0.08); }
.note-ok   { border-left-color: var(--green); background: rgba(31, 159, 50, 0.08); }
.detailed-link { display: inline-block; margin: 4px 0 8px; font-weight: 600; }

/* ============ ДОКУМЕНТАЦИЯ (страница приложения) ============ */
/* doc-страницы шире обычных — меньше пустых полей по бокам */
.page-doc .wrap { max-width: var(--maxw-doc); }
.doc-layout {
  display: grid; grid-template-columns: 230px minmax(0, 1fr) 320px;
  gap: 56px; padding-top: 34px; padding-bottom: 72px; align-items: start;
}
@media (max-width: 1180px) { .doc-layout { grid-template-columns: 210px minmax(0,1fr); gap: 44px; } }
@media (max-width: 820px)  { .doc-layout { grid-template-columns: 1fr; gap: 0; } }

/* левое оглавление */
.doc-toc-wrap { position: sticky; top: 84px; }
@media (max-width: 820px) { .doc-toc-wrap { position: static; } }
.doc-toc-title {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--label); font-weight: 700; margin-bottom: 12px;
}
.doc-toc { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--border); }
.doc-toc a {
  color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; line-height: 1.35;
}
.doc-toc a:hover { color: var(--text); text-decoration: none; }
.doc-toc a.active { color: var(--green-dark); border-left-color: var(--green); font-weight: 600; }
@media (max-width: 820px) {
  .doc-toc { flex-direction: row; flex-wrap: wrap; gap: 8px; border-left: none; }
  .doc-toc a {
    padding: 7px 14px; margin-left: 0; border: 1px solid var(--border); border-radius: 10px;
    background: var(--card); font-size: 13.5px;
  }
  .doc-toc a.active { border-color: var(--green); }
}

/* контент документации */
.doc-content { min-width: 0; }
.doc-section { scroll-margin-top: 84px; padding-bottom: 10px; }
.doc-section + .doc-section { border-top: 1px solid var(--border); padding-top: 44px; margin-top: 24px; }
.doc-section > h2 { font-size: 26px; margin-bottom: 20px; }
.doc-content p { color: #33302a; font-size: 16.5px; margin-bottom: 18px; line-height: 1.7; }
.doc-sub { font-size: 18.5px; margin: 30px 0 14px; }
.doc-content ul.list, .doc-content ol.list { margin: 0 0 18px 22px; color: #33302a; }
.doc-content ul.list li, .doc-content ol.list li { margin-bottom: 9px; }

/* пошаговые инструкции со скринами */
.doc-steps { list-style: none; counter-reset: step; margin: 0 0 20px; }
.doc-steps > li {
  position: relative; padding: 0 0 22px 52px; margin: 0;
  border-left: 2px solid var(--border);
}
.doc-steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.doc-steps > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: -17px; top: -2px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.doc-step-text { color: #33302a; font-size: 16px; padding-top: 4px; }
.doc-step-img {
  display: block; margin: 12px 0 4px; max-height: 320px; width: auto; max-width: 260px;
  border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow); background: #fff;
}

/* картинка-иллюстрация */
.doc-fig { margin: 0 0 22px; }
.doc-fig img {
  display: block; max-width: 280px; width: 100%; border-radius: 14px;
  border: 1px solid var(--border); box-shadow: var(--shadow); background: #fff;
}
.doc-fig figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }

.doc-table { margin-bottom: 22px; }
.doc-table table { min-width: 0; }
.doc-table td:first-child { font-weight: 600; white-space: nowrap; }
.doc-section .faq-item { margin-bottom: 10px; }

.sidebar { position: sticky; top: 88px; }
.sidebar .side-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.side-box h3 { font-size: 12.5px; margin-bottom: 14px; color: var(--label); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }
.spec-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.spec-row:last-child { border-bottom: none; padding-bottom: 0; }
.spec-row:first-of-type { padding-top: 0; }
.spec-row .k { color: var(--muted); }
.spec-row .v { font-weight: 600; text-align: right; }
.side-cta { text-align: center; }
.side-cta .btn { width: 100%; }
.side-cta .sub { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.other-apps a { display: flex; align-items: center; gap: 10px; padding: 7px 0; color: var(--text); font-weight: 600; font-size: 14.5px; }
.other-apps a:hover { color: var(--green-dark); text-decoration: none; }

/* ---------- footer (как в оригинале — крупный, со столбцами) ---------- */
footer { border-top: 1px solid var(--border); margin-top: 56px; background: var(--bg-soft); }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px;
  padding: 52px 0 40px;
}
@media (max-width: 880px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 300px; }
.footer-col h4 { font-size: 12.5px; color: var(--label); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; margin-bottom: 14px; }
.footer-col a { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14.5px; font-weight: 500; padding: 5px 0; }
.footer-col a:hover { color: var(--green-dark); text-decoration: none; }
.footer-col .mini-icon { width: 24px; height: 24px; border-radius: 6px; margin-right: 0; }
.footer-cta p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0 28px;
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.footer-bottom .disclaimer { color: var(--muted); font-size: 12.5px; max-width: 720px; flex: 1; min-width: 260px; }
.footer-bottom .copy { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.badge18 {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--coral);
  color: var(--coral); font-weight: 700; font-size: 13px; flex-shrink: 0;
}

@media (max-width: 640px) {
  .nav { gap: 12px; }
  .nav-links > a:not(.lang-switch) { display: none; }
  .dropdown { display: none; }
  section { padding: 40px 0 0; }
  .rating-badge { margin-left: 0; }
  .sidebar { position: static; }
}
