:root {
  --bg: #F5F4F0;
  --card: #FFFFFF;
  --ink: #15171C;
  --muted: #5B6070;
  --line: #E5E2DA;
  --accent: #B3122E;
  --ok: #157347;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121316;
    --card: #1C1E23;
    --ink: #F2F1EC;
    --muted: #A3A7B3;
    --line: #2C2F36;
    --accent: #E0435C;
    --ok: #4CC184;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 Inter, "Noto Sans Georgian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Шапка */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.nav-link { margin-left: auto; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-link:hover { color: var(--accent); }
.langs { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--line); }
.langs button { border: 0; background: transparent; color: var(--muted); font: 600 13px/1 inherit; font-family: inherit; padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--card); color: var(--ink); }

/* Языки: показываем только выбранный */
[data-l] { display: none; }
html[lang="ru"] [data-l="ru"], html[lang="en"] [data-l="en"], html[lang="ka"] [data-l="ka"],
html[lang="pl"] [data-l="pl"], html[lang="uk"] [data-l="uk"] { display: revert; }

/* Блоки */
.hero { padding: 48px 0 32px; }
.hero h1 { font-size: clamp(36px, 7vw, 64px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 16px; }
.hero p { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 40ch; margin: 0; }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; }
h2 { font-size: 24px; letter-spacing: -0.02em; margin: 48px 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.app-card { display: flex; gap: 20px; align-items: center; text-decoration: none; color: inherit; transition: transform .15s ease; }
.app-card:hover { transform: translateY(-2px); }
.app-card img { width: 72px; height: 72px; border-radius: 16px; flex: none; }
.app-card h3 { margin: 0 0 4px; font-size: 20px; }
.app-card p { margin: 0; }
/* Приложения на главной студии — квадратные плашки: значок сверху, название и описание снизу */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.app-tile { aspect-ratio: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  text-decoration: none; color: inherit; transition: transform .15s ease; overflow: hidden; }
.app-tile:hover { transform: translateY(-2px); }
.app-tile img { width: 72px; height: 72px; border-radius: 18px; }
.app-tile h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.2; }
.app-tile p { margin: 0; font-size: 15px; line-height: 1.4; }
@media (max-width: 559px) {
  .apps { grid-template-columns: 1fr 1fr; gap: 12px; }
  .app-tile { padding: 16px; }
  .app-tile img { width: 56px; height: 56px; border-radius: 14px; }
  .app-tile h3 { font-size: 17px; }
  .app-tile p { display: none; }
}

.grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .grid { grid-template-columns: 1fr 1fr; } }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.app-hero { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; padding: 32px 0 8px; }
.app-hero .icon { width: 96px; height: 96px; border-radius: 22px; }
.app-hero h1 { font-size: clamp(34px, 6vw, 52px); line-height: 1.08; letter-spacing: -0.03em; margin: 16px 0 12px; }
.app-hero p.lead { font-size: 19px; color: var(--muted); margin: 0; max-width: 46ch; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.store { display: inline-flex; flex-direction: column; padding: 10px 18px; border-radius: 14px; background: var(--ink); color: var(--bg); text-decoration: none; min-width: 170px; }
.store small { font-size: 11px; opacity: .7; }
.store b { font-size: 17px; }
.store[aria-disabled="true"] { opacity: .55; cursor: default; }

.shots { display: flex; gap: 14px; overflow-x: auto; padding: 4px 0 12px; scroll-snap-type: x mandatory; }
.shots img { height: 460px; width: auto; border-radius: 28px; border: 1px solid var(--line); scroll-snap-align: start; flex: none; }

.price { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.price > b { text-align: right; }
.price:last-child { border-bottom: 0; }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details:last-of-type { border-bottom: 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; color: var(--muted); }

footer { padding: 48px 0 40px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }

@media (min-width: 820px) {
  .app-hero { grid-template-columns: 1.1fr 0.9fr; }
}
@media (max-width: 480px) {
  .shots img { height: 380px; }
  .card { padding: 20px; }
}
