/* AppBooking — detail layout mirrors the reference site's block order and ad slots */
:root {
  --bg: #f5f8fd;
  --surface: #ffffff;
  --ink: #14243d;
  --ink-2: #4a5c78;
  --ink-3: #8a99b0;
  --line: #e2eaf5;
  --brand: #2f6fed;
  --brand-dark: #1f56c4;
  --brand-soft: #eaf1ff;
  --star: #f7a325;
  --ok: #17a673;
  --warn: #d9534f;
  --r: 14px;
  --shadow: 0 1px 2px rgba(20,36,61,.05), 0 2px 8px rgba(20,36,61,.05);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
.narrow { max-width: 780px; }

/* header */
.site-head { background: linear-gradient(180deg, #c9dbf7 0%, rgba(236,244,251,0) 100%);
  border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
@media (min-width: 768px) { .site-head .wrap { height: 83px; } }
.brand svg { height: 27px; width: auto; display: block; }
@media (min-width: 768px) { .brand svg { height: 31px; } }
.brand:hover { text-decoration: none; }
.site-nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.site-nav a { color: var(--ink-2); font-weight: 600; font-size: .92rem; }
.site-nav a:hover { color: var(--brand); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 5px 10px; font-size: 1.05rem; color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; z-index: 60;
    background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column;
    gap: 0; padding: 6px 20px 12px; }
  .site-nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .site-head { position: relative; }
}

/* ads */
.ads { width: 100%; margin: 18px 0; text-align: center; overflow: hidden; }
.ads-prompt { color: #cfd8e6; font-size: 12px; line-height: 1.4; margin-bottom: 2px; }
.ads .adsbygoogle { display: block; width: 100%; }
.adsHeight { min-height: 100px; }
.ad-ph { min-height: 100px; border: 1px dashed var(--line); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: #cfd8e6;
  font-size: 13px; background: #fbfcfe; }

/* breadcrumbs */
.crumbs { font-size: .84rem; color: var(--ink-3); padding: 16px 0 8px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--brand); }

/* detail hero */
.detail { padding-bottom: 48px; }
.app-hero { display: flex; gap: 16px; align-items: center; padding: 8px 0 4px; }
@media (min-width: 768px) { .app-hero { gap: 22px; } }
.hero-icon { width: 88px; height: 88px; flex: none; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow); background: var(--surface); }
@media (min-width: 768px) { .hero-icon { width: 112px; height: 112px; border-radius: 24px; } }
.hero-icon img { width: 100%; height: 100%; object-fit: cover; }
.hero-body { min-width: 0; flex: 1; }
.app-hero h1 { font-size: 1.32rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
@media (min-width: 768px) { .app-hero h1 { font-size: 1.85rem; } }
.safe-tag { display: inline-block; margin-left: 8px; vertical-align: middle; font-size: .62rem;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff;
  background: var(--ok); border-radius: 4px; padding: 2px 6px; }
.rating { display: flex; align-items: center; gap: 3px; margin-top: 8px; }
.rating svg { width: 15px; height: 15px; fill: var(--star); }
.rating svg.off { fill: #d8e0ec; }
.rating .score { margin-left: 6px; font-weight: 600; color: var(--ink-2); font-size: .92rem; }
.hero-tag { margin-top: 8px; color: var(--ink-2); font-size: .95rem; }

/* stat row */
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; margin: 18px 0; }
.stat-row > div { background: var(--surface); padding: 12px 8px; text-align: center; }
.s-val { font-weight: 700; font-size: 1.02rem; }
.s-key { color: var(--ink-3); font-size: .78rem; margin-top: 2px; }

/* about list */
.about-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 6px 16px; box-shadow: var(--shadow); }
@media (min-width: 700px) { .about-list { grid-template-columns: repeat(2, minmax(0,1fr));
  column-gap: 32px; } }
@media (min-width: 1000px) { .about-list { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.ab-item { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line); }
.ab-k { color: var(--ink-3); font-size: .86rem; flex: none; }
.ab-v { font-weight: 600; font-size: .9rem; text-align: right; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }

/* download block */
.dl-block { margin: 20px 0 4px; }
.dl-desc { color: var(--ink-2); font-size: .95rem; margin-bottom: 14px; }
.dl-btns { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; }
@media (min-width: 620px) { .dl-btns { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.btn-dl { display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px;
  border-radius: 26px; font-weight: 600; font-size: 1.02rem; transition: all .2s; }
.btn-dl:hover { transform: translateY(-1px); text-decoration: none; }
.btn-apk { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(47,111,237,.28); }
.btn-apk:hover { background: var(--brand-dark); }
.btn-play { background: var(--ok); color: #fff; box-shadow: 0 6px 18px rgba(23,166,115,.25); }
.btn-play:hover { background: #128b60; }
.btn-ios { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ios:hover { background: var(--brand-soft); }
.dl-tip { display: none; text-align: center; margin-top: 14px; font-size: .88rem;
  color: var(--ink-2); }
.dl-tip.show { display: block; }
.dl-tip .hint { color: var(--ink-3); font-size: .8rem; margin-top: 2px; }

/* screenshots */
.shots { margin: 26px 0; }
.shot-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px;
  scrollbar-width: none; }
.shot-row::-webkit-scrollbar { display: none; }
.shot { flex: none; width: 116px; height: 206px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); }
@media (min-width: 768px) { .shot { width: 150px; height: 266px; } }
.shot img { width: 100%; height: 100%; object-fit: contain; }

/* review article */
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px; box-shadow: var(--shadow); margin: 22px 0; }
@media (min-width: 768px) { .review { padding: 26px 28px; } }
.review h3 { font-size: 1.12rem; font-weight: 700; margin: 22px 0 10px; }
.review h3:first-child { margin-top: 0; }
.review p { margin: 10px 0; color: #33455f; }
.review .bullets li { position: relative; padding-left: 20px; margin: 8px 0; color: #33455f; }
.review .bullets li::before { content: ""; position: absolute; left: 4px; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.faq { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.faq-q { font-weight: 600; color: var(--ink); }

/* compare card */
.vs { margin: 24px 0; }
.vs-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); overflow: hidden; }
.vs-row { display: grid; grid-template-columns: 84px minmax(0,1fr) minmax(0,1fr);
  border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .vs-row { grid-template-columns: 140px minmax(0,1fr) minmax(0,1fr); } }
.vs-row:last-child { border-bottom: none; }
.vs-cell { padding: 12px 10px; text-align: center; font-weight: 600; font-size: .92rem;
  display: flex; align-items: center; justify-content: center; min-width: 0; }
.vs-key { justify-content: flex-start; color: var(--ink-3); font-weight: 500; font-size: .86rem; }
.vs-cell a { display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--ink); min-width: 0; }
.vs-cell a span { font-size: .8rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; max-width: 100%; }
.vs-logo { width: 46px; height: 46px; border-radius: 11px; overflow: hidden; flex: none; }
.vs-logo img { width: 100%; height: 100%; object-fit: cover; }

/* recommendation grids */
.rec { margin: 30px 0; }
.sec-title { font-size: 1.16rem; font-weight: 700; margin-bottom: 14px; }
.rec-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
@media (min-width: 620px) { .rec-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; } }
@media (min-width: 900px) { .rec-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.app-card { display: flex; gap: 11px; align-items: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px; box-shadow: var(--shadow);
  transition: all .18s; min-width: 0; }
.app-card:hover { transform: translateY(-2px); border-color: #c9dcff; text-decoration: none; }
.ac-icon { width: 48px; height: 48px; flex: none; border-radius: 11px; overflow: hidden; }
.ac-icon img { width: 100%; height: 100%; object-fit: cover; }
.ac-body { min-width: 0; display: flex; flex-direction: column; }
.ac-name { font-size: .88rem; font-weight: 600; color: var(--ink); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.ac-cat { font-size: .74rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.ac-meta { font-size: .74rem; color: var(--ink-2); margin-top: 1px; }
.rec-grid.big .app-card { padding: 14px; }

/* home */
.hero { background: linear-gradient(135deg, #2f6fed, #1e4bb8); color: #fff; padding: 52px 0; }
@media (min-width: 768px) { .hero { padding: 72px 0; } }
.hero h1 { font-size: 1.9rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em;
  max-width: 720px; }
@media (min-width: 768px) { .hero h1 { font-size: 2.7rem; } }
.hero .lede { margin-top: 14px; color: rgba(255,255,255,.9); max-width: 640px; font-size: 1.02rem; }
.btn-primary { display: inline-block; margin-top: 22px; background: #fff; color: var(--brand);
  font-weight: 700; padding: 11px 26px; border-radius: 26px; }
.btn-primary:hover { text-decoration: none; transform: translateY(-1px); }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
@media (min-width: 620px) { .cat-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (min-width: 1100px) { .cat-grid { grid-template-columns: repeat(5, minmax(0,1fr)); } }
.cat-card { display: flex; align-items: center; gap: 11px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px; box-shadow: var(--shadow);
  transition: all .18s; min-width: 0; }
.cat-card:hover { border-color: #c9dcff; text-decoration: none; transform: translateY(-2px); }
.cat-card:hover .cc-ico { background: var(--brand); color: #fff; }
.cc-ico { flex: none; width: 48px; height: 48px; border-radius: 11px;
  background: var(--brand-soft); color: var(--brand); display: flex; align-items: center;
  justify-content: center; transition: all .18s; }
.cc-ico svg { width: 22px; height: 22px; }
.cc-t { min-width: 0; display: flex; flex-direction: column; }
.cc-n { font-weight: 600; font-size: .89rem; color: var(--ink); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-c { font-size: .75rem; color: var(--ink-3); margin-top: 1px; }

/* listing + article pages */
.listing, .article-page { padding-bottom: 48px; }
.listing h1, .article-page h1 { font-size: 1.6rem; font-weight: 700; margin: 6px 0 8px; }
@media (min-width: 768px) { .listing h1, .article-page h1 { font-size: 2rem; } }
.lede { color: var(--ink-2); max-width: 760px; margin-bottom: 18px; }
.article-page article { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .article-page article { padding: 32px 34px; } }
.article-page h2 { font-size: 1.2rem; margin: 24px 0 10px; }
.article-page p { margin: 11px 0; color: #33455f; }
.article-page ul { margin: 10px 0 10px 20px; list-style: disc; color: #33455f; }
.article-page li { margin: 6px 0; }

/* footer */
.site-foot { background: var(--surface); border-top: 1px solid var(--line); padding: 34px 0 40px;
  margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 26px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; gap: 34px; } }
.site-foot h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-3); margin-bottom: 10px; }
.site-foot li { margin: 6px 0; }
.site-foot a { color: var(--ink-2); font-size: .88rem; }
.foot-about { color: var(--ink-2); font-size: .88rem; max-width: 420px; }
.foot-legal { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: .78rem; color: var(--ink-3); }
