/*
Theme Name: TT Mod APK
Description: Лёгкая тема для ttmodapk.com: одна главная со скачиванием, опрос «Работает ли мод», без jQuery и сторонних шрифтов.
Version: 1.1
*/
/* цвета: тёмный сине-зелёный (владелец 11.11.2026: «чёрный не надо»), кнопки яркие — владелец плохо видит бледное */
:root {
    --bg: #0a2a2e;
    --bg2: #0d3a3d;
    --card: #114448;
    --card2: #165258;
    --line: #23676d;
    --text: #f2fbfa;
    --muted: #b5d6d3;
    --accent: #1de9b6;
    --accent2: #22d3ee;
    --pink: #f5b400;
    --gold: #ffd23f;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: linear-gradient(180deg, var(--bg2) 0, var(--bg) 420px) var(--bg); color: var(--text); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }
section[id], h2[id] { scroll-margin-top: 80px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 10; background: rgba(8, 36, 40, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 68px; max-width: 1140px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 900; font-size: 24px; text-decoration: none; white-space: nowrap; }
.logo .ico { width: 38px; height: 38px; border-radius: 10px; }
.burger { display: none; }
.logo i { color: var(--accent); font-style: normal; }
.top nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.top nav::-webkit-scrollbar { display: none; }
.top nav a { color: #fff; text-decoration: none; padding: 8px 11px; border-radius: 9px; font-size: 17px; font-weight: 700; white-space: nowrap; }
.top nav a:hover { background: var(--card2); }
.top nav a.tg { display: grid; place-items: center; width: 42px; padding: 0; border-radius: 50%; background: #229ed9; }
.top nav a.tg:hover { background: #2aabee; }
.top nav a.tg svg { width: 22px; height: 22px; fill: #fff; stroke: none; }
.top .dl-top { flex: none; padding: 11px 18px; border-radius: 11px; background: var(--accent); color: #06302c; font-weight: 900; font-size: 17px; text-decoration: none; white-space: nowrap; }
.top .dl-top:hover { filter: brightness(1.1); }

/* первый экран */
.hero { padding: 28px 0 6px; display: flex; gap: 20px; align-items: center; }
.hero .icon { flex: 0 0 104px; width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
h1 { font-size: 32px; line-height: 1.2; margin: 0 0 8px; }
h1 em { display: block; font-style: normal; color: var(--accent); font-size: 24px; margin-top: 4px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 16px; }
.meta span b { color: var(--text); font-weight: 800; }
.lead { color: #def3f1; margin: 14px 0 0; font-size: 18px; }

/* строка «работает / оценка» по настоящим голосам */
.status { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.status a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; font-size: 16px; }
.status .ok { color: var(--accent); }
.status .stars { color: var(--gold); letter-spacing: 1px; }

/* кнопки */
.btn-main { display: block; text-align: center; margin: 22px 0 8px; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #06302c; font-weight: 900; font-size: 20px; text-decoration: none; box-shadow: 0 6px 22px rgba(29, 233, 182, .25); }
.btn-main::before { content: '⬇  '; }
.btn-main:hover { filter: brightness(1.08); }
/* быстрые кнопки: на компьютере в одну строку, иконка сверху; на телефоне — по две */
.quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 14px 0 0; }
.quick a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 6px 12px; border-radius: 14px; background: var(--card2); border: 2px solid var(--line); color: #fff; font-weight: 800; font-size: 16px; text-align: center; text-decoration: none; transition: border-color .15s, transform .15s; }
.quick a:hover { border-color: var(--accent); transform: translateY(-2px); }
.quick svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.quick svg.fill { fill: #fff; stroke: none; }
.quick a.tg { background: #229ed9; border-color: #229ed9; }
.note { color: var(--muted); font-size: 15px; text-align: center; }

h2 { font-size: 26px; margin: 42px 0 14px; }
h3 { font-size: 19px; margin: 18px 0 6px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }

/* сборки */
.versions { display: grid; gap: 14px; }
.ver { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--c, var(--accent)); border-radius: 16px; padding: 16px 18px; }
.ver .name { font-weight: 900; font-size: 20px; }
.ver p { margin: 4px 0 12px; color: #def3f1; font-size: 16px; }
.ver .dl { display: flex; flex-wrap: wrap; gap: 10px; }
.ver .dl a { flex: 1 1 190px; text-align: center; padding: 14px 12px; border-radius: 12px; background: var(--c, var(--accent)); color: #fff; text-decoration: none; font-weight: 900; font-size: 17px; box-shadow: 0 3px 12px rgba(0,0,0,.3); text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.ver .dl a::before { content: '⬇ '; }
.ver .dl a:hover { filter: brightness(1.12); }
.ver .dl small { display: block; color: #fff; opacity: .9; font-weight: 700; font-size: 14px; }
.ver#central .dl a, .ver#central .dl small,
.ver#private-plus .dl a, .ver#private-plus .dl small,
.ver#anticloud .dl a, .ver#anticloud .dl small { color: #06302c; text-shadow: none; }

/* функции */
.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.feat div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.feat b { display: block; margin-bottom: 4px; font-size: 18px; }
.feat span { color: #def3f1; font-size: 16px; }

ol.steps { padding-left: 24px; }
ol.steps li { margin: 8px 0; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
td:first-child { color: var(--muted); width: 42%; font-weight: 700; }

/* опрос и оценка */
.poll { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; }
.poll .card h3 { margin-top: 0; }
.p-opt { position: relative; display: block; width: 100%; text-align: left; margin: 0 0 9px; padding: 13px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--card2); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; overflow: hidden; }
.p-opt:hover { border-color: var(--accent); }
.p-opt .bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(29, 233, 182, .18); transition: width .4s; }
.p-opt.mine { border-color: var(--accent); }
.p-opt.mine .bar { background: rgba(29, 233, 182, .32); }
.p-opt.mine b::before { content: '✓ '; color: var(--accent); }
.p-opt span { position: relative; display: flex; justify-content: space-between; gap: 10px; }
.p-total { color: var(--muted); font-size: 15px; margin-top: 4px; }
.r-avg { font-size: 44px; font-weight: 900; color: var(--gold); line-height: 1; }
.r-stars { display: flex; gap: 4px; margin: 10px 0 6px; }
.r-stars button { border: 0; background: none; padding: 0; font-size: 38px; line-height: 1; cursor: pointer; color: rgba(181, 214, 211, .35); }
.r-stars button.on { color: var(--gold); text-shadow: 0 0 10px rgba(255, 210, 63, .5); }
.r-msg { color: var(--accent); font-weight: 800; min-height: 1.6em; }

details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 800; font-size: 17px; }
details p { margin: 8px 0 0; color: #def3f1; }

.page { padding: 24px 0 8px; }
/* футер: настоящие цифры, колонки ссылок, низ с политикой */
.foot { margin-top: 56px; background: #072023; border-top: 2px solid var(--line); color: var(--muted); font-size: 16px; }
.f-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 26px 0; border-bottom: 1px solid var(--line); text-align: center; }
.f-stats b { display: block; color: #fff; font-size: 30px; font-weight: 900; line-height: 1.2; }
.f-stats span { font-weight: 600; }
.f-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 24px; padding: 26px 0; }
.f-cols b { display: block; color: #fff; font-size: 18px; margin-bottom: 8px; }
.f-cols a { display: block; color: #e6f6f4; text-decoration: none; font-weight: 600; padding: 4px 0; }
.f-cols a:hover { color: var(--accent); }
.f-cols .logo { display: flex; margin-bottom: 8px; }
.f-cols p { margin: 0 0 12px; }
.f-cols a.f-tg { display: inline-block; padding: 10px 16px; border-radius: 11px; background: #229ed9; color: #fff; font-weight: 800; }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 16px 0 28px; border-top: 1px solid var(--line); font-size: 14px; }
.f-bottom a { color: #e6f6f4; font-weight: 700; }

/* телефон: одна строка «логотип — Скачать — ☰», меню выпадает списком (кнопка ☰ — в script.js) */
@media (max-width: 760px) {
    .top .wrap { height: 58px; gap: 10px; }
    .logo { font-size: 20px; gap: 8px; }
    .logo .ico { width: 32px; height: 32px; }
    .top .dl-top { margin-left: auto; padding: 9px 14px; font-size: 16px; }
    .burger { display: grid; gap: 5px; place-content: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 11px; background: var(--card2); cursor: pointer; }
    .burger i { display: block; width: 22px; height: 3px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
    .top.open .burger i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .top.open .burger i:nth-child(2) { opacity: 0; }
    .top.open .burger i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .top nav { display: none; position: absolute; left: 0; right: 0; top: 58px; flex-direction: column; gap: 0; margin: 0; padding: 6px 16px 14px; background: #082428; border-bottom: 2px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.4); }
    .top.open nav { display: flex; }
    .top nav a { padding: 13px 4px; font-size: 19px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .top nav a:hover { background: none; color: var(--accent); }
    .top nav a.tg { width: auto; height: auto; place-items: start; justify-content: start; display: flex; gap: 10px; align-items: center; background: none; border-radius: 0; color: #5cc8ff; border-bottom: 0; }
    .top nav a.tg::after { content: 'Наш Telegram-канал'; }
    .top nav a.tg svg { width: 26px; height: 26px; fill: #5cc8ff; }
    .poll { grid-template-columns: 1fr; }
    .quick { grid-template-columns: repeat(2, 1fr); }
    .quick a.tg { grid-column: 1 / -1; flex-direction: row; }
    .f-stats { grid-template-columns: repeat(2, 1fr); }
    .f-cols { grid-template-columns: 1fr 1fr; }
    .f-cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    h1 { font-size: 27px; }
    h1 em { font-size: 20px; }
    .hero { padding-top: 18px; }
    .hero .icon { display: none; }
    .top .logo i { display: none; }
}
