/* hungry-shark.ru — персона «P-океан»: светлый айсберг-фон, сине-бирюзовый, коралловый акцент */
:root {
  --bg: #F2F9FC;
  --surface: #FFFFFF;
  --ink: #0B3B47;
  --ink-soft: #4A6B75;
  --brand: #0E7490;
  --brand-deep: #155E75;
  --coral: #F97316;
  --coral-soft: #FFEDD5;
  --wave: #E0F2FE;
  --line: #CDE6EF;
  --radius: 16px;
  --shadow: 0 2px 10px rgba(14, 116, 144, .10);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; color: var(--brand-deep); }
h1 { font-size: 1.9rem; margin: .4em 0 .5em; }
h2 { font-size: 1.4rem; margin: 1.6em 0 .5em; }
h3 { font-size: 1.15rem; margin: 1.3em 0 .4em; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.container { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* Шапка — одна строка, nowrap; меню скроллится на мобильном без скроллбара */
.site-header { background: var(--surface); border-bottom: 2px solid var(--wave); position: relative; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: nowrap; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-fin { font-size: 1.5rem; }
.brand-name small { display: block; font-size: .68rem; font-weight: 400; color: var(--ink-soft); }
.menu { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.menu::-webkit-scrollbar { display: none; }
.menu a { padding: 8px 10px; border-radius: 10px; color: var(--ink-soft); white-space: nowrap; font-size: .95rem; }
.menu a:hover { text-decoration: none; background: var(--wave); color: var(--brand-deep); }
.menu a.active { background: var(--brand); color: #fff; }

/* Крошки — по ширине контента страницы (.page: max-width 820 + padding 16 → тот же левый край) */
.crumbs { font-size: 12px; color: var(--ink-soft); padding-top: 12px; padding-left: 16px; padding-right: 16px; max-width: 820px; margin: 0 auto; }
.crumbs a { color: var(--brand); }
.crumbs .sep { margin: 0 5px; color: var(--line); }

main.page-main { min-height: 55vh; padding-bottom: 40px; }
.page { max-width: 820px; margin: 0 auto; }

/* Хиро */
.hero { background: linear-gradient(180deg, var(--surface), var(--wave)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 18px; margin: 16px 0 22px; box-shadow: var(--shadow); }
.hero p.lead { font-size: 1.06rem; color: var(--ink-soft); }

/* Кнопки */
.btn { display: inline-block; background: var(--coral); color: #fff; padding: 10px 18px; border-radius: 12px; font-weight: 600; border: 0; cursor: pointer; }
.btn:hover { text-decoration: none; filter: brightness(.96); }
.btn-outline { display: inline-block; padding: 9px 16px; border-radius: 12px; border: 1.5px solid var(--brand); color: var(--brand); font-weight: 600; background: var(--surface); }
.btn-outline:hover { text-decoration: none; background: var(--wave); }

/* Карточки */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 14px 0; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); transition: transform .12s ease; }
.card:hover { text-decoration: none; transform: translateY(-2px); }
.card img { width: 100%; height: 140px; object-fit: cover; background: var(--wave); }
.card-body { padding: 10px 12px 12px; font-size: .92rem; color: var(--ink-soft); }
.card-body b { color: var(--ink); font-size: 1rem; display: block; margin-bottom: 2px; }
.card-tag { display: inline-block; font-size: .72rem; background: var(--coral-soft); color: #9A3412; border-radius: 8px; padding: 1px 8px; margin-top: 6px; }

/* Официальные сторы — крупные бейджи отдельным блоком */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; margin: 16px 0 6px; }
.store-badges a { display: inline-block; line-height: 0; transition: transform .1s ease, opacity .15s ease; opacity: .96; }
.store-badges a:hover { text-decoration: none; transform: translateY(-2px); opacity: 1; }
.store-badges img { height: 56px; width: auto; border-radius: 6px; }

/* Таблица зеркал */
table.mirrors { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; font-size: .95rem; }
table.mirrors th { background: var(--brand); color: #fff; text-align: left; padding: 9px 10px; }
table.mirrors td { padding: 9px 10px; border-top: 1px solid var(--line); }
table.mirrors tr:nth-child(even) td { background: #F7FCFE; }
table.mirrors .ok-badge { color: #047857; font-weight: 600; font-size: .85rem; }
table.mirrors .btn-dl { display: inline-block; background: var(--coral); color: #fff; padding: 6px 14px; border-radius: 10px; font-weight: 600; font-size: .88rem; }
table.mirrors .btn-dl:hover { text-decoration: none; filter: brightness(.96); }

/* Скрины: вертикальный список */
figure.screen { margin: 18px 0; }
figure.screen img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
figure.screen figcaption { font-size: .82rem; color: var(--ink-soft); margin-top: 5px; }

/* FAQ аккордеон */
.faq details { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; margin: 10px 0; padding: 10px 14px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--brand-deep); }
.faq details[open] summary { margin-bottom: 6px; }

/* Видео-сетка */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 16px 0; }
.vid-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); display: flex; flex-direction: column; }
.vid-card:hover { text-decoration: none; transform: translateY(-2px); transition: transform .12s ease; }
.vid-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.vid-card .vb { padding: 9px 11px 11px; font-size: .86rem; color: var(--ink-soft); }
.vid-card .vb b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.35; color: var(--ink); font-size: .93rem; margin-bottom: 3px; overflow: hidden; }

/* Плеер */
.video-frame { position: relative; padding-top: 56.25%; background: #000; border-radius: var(--radius); overflow: hidden; margin: 14px 0; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Коды */
code.copy-code { display: inline-block; background: var(--wave); border: 1px dashed var(--brand); border-radius: 8px; padding: 3px 10px; cursor: pointer; font-family: ui-monospace, Menlo, monospace; font-weight: 700; color: var(--brand-deep); }

.note-verify { font-size: .85rem; color: var(--ink-soft); background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; padding: 8px 12px; margin: 14px 0; }
.attr { font-size: .8rem; color: var(--ink-soft); }
.meta-line { font-size: .85rem; color: var(--ink-soft); }
.pill { display: inline-block; background: var(--wave); color: var(--brand-deep); border-radius: 999px; padding: 2px 12px; font-size: .8rem; font-weight: 600; margin-right: 6px; }

/* Футер */
.site-footer { background: var(--surface); border-top: 2px solid var(--wave); padding: 18px 0 26px; margin-top: 30px; }
.foot-nav { margin: 0 0 8px; font-size: .9rem; }
.disclaimer { font-size: .75rem; color: var(--ink-soft); margin: 0; }

@media (max-width: 720px) {
  .brand-name small { display: none; }
  h1 { font-size: 1.5rem; }
  .menu a { padding: 7px 8px; font-size: .88rem; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
