/* Pudra Soft. Цвета тем повторяют прежнюю тему Flutter (app_theme.dart). */

:root {
  color-scheme: dark;
  --bg: #1c1430;
  --ink: #f3ecff;
  --muted: #c9bbdf;
  --outline: #ab9cc4;
  --primary: #cfa8ff;
  --on-primary: #2a1550;
  --border: #4a3a68;
  --outline-variant: #4d3f6e;
  --surface-low: #241a3c;
  --surface-lowest: #17102a;
  --icon-tile: #3f2e66;
  --glow: rgba(0, 0, 0, 0.2);
  --shadow: rgba(0, 0, 0, 0.33);
  --window-bar: #32264f;
  --window-bg: #211735;
  --logo-bg: #f5f0fc;
  --footer-text: #d9c9ee;
  --hero-gradient: linear-gradient(135deg, #1c1430, #2a1b4a, #38193f);
  --card-gradient: linear-gradient(135deg, #261b40, #2e2150, #2f1c40);
  --soft-gradient: linear-gradient(135deg, #2a1f45, #32264f);
  --frame-gradient: linear-gradient(135deg, #5a2c55, #47306f, #4d2e5c);
  --cta-gradient: linear-gradient(90deg, #4b2482, #6a34ab, #8344b8);
  --footer-gradient: linear-gradient(135deg, #150e26, #2b1a4b);
  --blog-1: #3e2c66;
  --blog-2: #532a4c;
  --blog-3: #2c3766;
  --blog-4: #3a2e6b;
  --accent-doska: #d08fd6;
  --accent-time-filler: #00b894;
  --accent-clip-ink: #6c9eff;
  --accent-film-ink: #ff6b8e;
  --accent-pudra-school: #f49ac1;
  --accent-po4ta-school: #9c94ff;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fffbff;
  --ink: #302052;
  --muted: #625578;
  --outline: #75668c;
  --primary: #8745d4;
  --on-primary: #ffffff;
  --border: #e8d6f8;
  --outline-variant: #dec8f2;
  --surface-low: #faf4ff;
  --surface-lowest: #ffffff;
  --icon-tile: #f0ddff;
  --glow: rgba(135, 69, 212, 0.08);
  --shadow: rgba(48, 32, 82, 0.13);
  --window-bar: #fdfbff;
  --window-bg: #f5f0fc;
  --logo-bg: #ffffff;
  --footer-text: #e7d7f8;
  --hero-gradient: linear-gradient(135deg, #fff8fc, #f0e6ff, #ffe6f2);
  --card-gradient: linear-gradient(135deg, #faf4ff, #f0e3ff, #fff4fa);
  --soft-gradient: linear-gradient(135deg, #ffffff, #f5eaff);
  --frame-gradient: linear-gradient(135deg, #ffd8ee, #e5d2ff, #f9eafb);
  --cta-gradient: linear-gradient(90deg, #60309f, #7d3fc4, #9a50d0);
  --footer-gradient: linear-gradient(135deg, #39235d, #5d338d);
  --blog-1: #e9d8ff;
  --blog-2: #ffdbe9;
  --blog-3: #d8e4ff;
  --blog-4: #e4d7ff;
  --accent-doska: #8a4590;
  --accent-time-filler: #00705a;
  --accent-clip-ink: #2c5bc0;
  --accent-film-ink: #c22d55;
  --accent-pudra-school: #b83a78;
  --accent-po4ta-school: #4f46c8;
}

.app-doska { --accent: var(--accent-doska); }
.app-time-filler { --accent: var(--accent-time-filler); }
.app-clip-ink { --accent: var(--accent-clip-ink); }
.app-film-ink { --accent: var(--accent-film-ink); }
.app-pudra-school { --accent: var(--accent-pudra-school); }
.app-po4ta-school { --accent: var(--accent-po4ta-school); }

/* Основа */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 "Roboto", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.icon {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  font-size: 22px;
  fill: currentColor;
  vertical-align: middle;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section[id] { scroll-margin-top: 80px; }

.section { padding-top: 80px; }

.eyebrow {
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--primary);
  margin-bottom: 24px;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin: -12px 0 24px;
}

@media (max-width: 599px) {
  .wrap { padding: 0 16px; }
  .section { padding-top: 52px; }
  .eyebrow { font-size: 15px; }
}

/* Кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s, background-color 0.15s;
}

.btn:hover { filter: brightness(1.08); }
.btn .icon { font-size: 19px; }

.btn-outline {
  background: transparent;
  color: var(--primary);
}

.btn-outline:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); }

.accent-btn {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-primary);
}

.accent-btn.btn-outline {
  background: transparent;
  color: var(--accent);
}

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.text-btn:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}

.icon-btn:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); }

/* Шапка */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand img { width: 40px; height: 40px; border-radius: 12px; }
.brand-name { font-size: 21px; font-weight: 600; line-height: 1.2; }
.brand-tagline { font-size: 11px; color: var(--outline); white-space: nowrap; }

.main-nav { display: flex; gap: 4px; }

.main-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.main-nav a:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); }

.lang-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.lang-link:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); }

.theme-toggle .to-light { display: inline-block; }
.theme-toggle .to-dark { display: none; }
:root[data-theme="light"] .theme-toggle .to-light { display: none; }
:root[data-theme="light"] .theme-toggle .to-dark { display: inline-block; }

.menu-btn { display: none; }

@media (max-width: 979px) {
  .main-nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
}

@media (max-width: 419px) {
  .brand-tagline { display: none; }
}

/* Нижняя панель меню на телефоне */

.sheet {
  width: 100%;
  max-width: 560px;
  margin: auto auto 0;
  padding: 8px 0 max(16px, env(safe-area-inset-bottom));
  border: 0;
  border-radius: 28px 28px 0 0;
  background: var(--surface-low);
  color: var(--ink);
}

.sheet::backdrop { background: rgba(0, 0, 0, 0.5); }

.sheet-handle {
  width: 32px;
  height: 4px;
  margin: 8px auto 12px;
  border-radius: 2px;
  background: var(--outline);
}

.sheet a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 0 24px;
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
}

.sheet a:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); }
.sheet a .icon { color: var(--muted); }

/* Главный экран */

.hero { background: var(--hero-gradient); }

.hero-grid {
  display: grid;
  grid-template-columns: 10fr 11fr;
  align-items: center;
  gap: 35px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -1px;
  white-space: pre-line;
}

.hero-lead {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}

.hero-badge {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.hero-art {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 36px;
  box-shadow: 0 0 36px var(--glow);
}

@media (max-width: 839px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 32px; padding-bottom: 32px; }
  .hero h1 { font-size: 36px; letter-spacing: -0.5px; }
  .hero-art { height: 300px; border-radius: 28px; }
}

/* Табы приложений */

.app-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

@media (max-width: 1099px) {
  .app-tabs { grid-template-columns: repeat(3, 1fr); }
}

.app-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-low);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.app-tab:hover { border-color: var(--accent); }

.app-tab[aria-selected="true"] {
  border: 2px solid var(--accent);
  padding: 9px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
}

.app-tab-logo {
  width: 44px;
  height: 44px;
  padding: 6px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.app-tab[aria-selected="true"] .app-tab-logo {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.app-tab-text { min-width: 0; }

.app-tab-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.version-chip {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 8px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.app-tab[aria-selected="true"] .version-chip {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--ink);
}

@media (max-width: 599px) {
  .app-tabs { grid-template-columns: repeat(2, 1fr); }
  .app-tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .app-tab { flex-direction: column; gap: 6px; text-align: center; }
  .app-tab-text { width: 100%; }
}

/* Карточка приложения */

.app-card {
  padding: 26px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 30px;
  background: var(--card-gradient);
  box-shadow: 0 10px 25px color-mix(in srgb, var(--accent) 10%, transparent);
}

.app-card[hidden] { display: none; }

.app-main {
  display: grid;
  grid-template-columns: 41fr 59fr;
  align-items: center;
  gap: 24px;
}

.app-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-logo {
  width: 60px;
  height: 60px;
  padding: 7px;
  border-radius: 17px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.app-name {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.app-subtitle {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--accent);
}

.app-description {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.check-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.check-list li {
  display: flex;
  gap: 9px;
  margin-bottom: 9px;
  font-size: 14px;
  font-weight: 500;
}

.check-list .icon { font-size: 18px; color: var(--accent); }

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.app-platform {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--outline);
}

.app-platform .icon { font-size: 14px; }

@media (max-width: 839px) {
  .app-card { padding: 16px; }
  .app-main { grid-template-columns: 1fr; gap: 20px; }
  .app-name { font-size: 30px; }
  .app-actions .btn { width: 100%; }
}

/* Галерея */

.gallery-window {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 8px 18px var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 33px;
  padding: 0 13px;
  background: var(--window-bar);
  font-size: 12px;
  font-weight: 600;
}

.window-bar i { width: 9px; height: 9px; border-radius: 50%; }
.window-bar i:nth-child(1) { background: #ffb2c6; }
.window-bar i:nth-child(2) { background: #ffdfa0; }
.window-bar i:nth-child(3) { background: #bfe8cd; margin-right: 8px; }

.gallery-view {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--window-bg);
}

.gallery-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar { display: none; }

.gallery-slide {
  flex: 0 0 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  scroll-snap-align: center;
  cursor: zoom-in;
}

.gallery-slide img { width: 100%; height: 100%; object-fit: contain; }

.gallery-cover {
  display: grid;
  place-items: center;
}

.gallery-cover img { width: auto; height: 72%; object-fit: contain; }

.gallery-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
}

.gallery-arrow.prev { left: 6px; }
.gallery-arrow.next { right: 6px; }
.gallery-arrow[hidden] { display: none; }

.gallery-dots {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.gallery-dots button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.gallery-dots button::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 5px;
  background: var(--outline-variant);
  transition: width 0.2s, background-color 0.2s;
}

.gallery-dots button[aria-current="true"]::after {
  width: 24px;
  background: var(--accent);
}

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000;
}

.lightbox::backdrop { background: #000; }
.lightbox img { width: 100%; height: 100%; object-fit: contain; }

.lightbox-close {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: 10px;
  background: rgba(255, 255, 255, 0.85);
  color: #1c1430;
}

/* Подробности приложения */

.details-list { margin-top: 18px; }

.panel {
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
}

.panel summary {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

.panel summary::-webkit-details-marker { display: none; }
.panel summary .icon { color: var(--accent); }
.panel summary .chevron { margin-left: auto; transition: rotate 0.2s; }
.panel[open] summary .chevron { rotate: 180deg; }

.panel-body {
  padding: 0 16px 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.panel-body p + p { margin-top: 12px; }
.panel-body .check-list li { font-weight: 400; font-size: 15px; color: var(--muted); }
.faq-q { color: var(--ink); font-weight: 500; margin-top: 14px; }
.faq-q:first-child { margin-top: 0; }
.faq-a { margin-top: 4px; }

/* Список версий */

.release {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 10px;
  padding: 14px 18px;
  border: 1px solid var(--outline-variant);
  border-radius: 10px;
  background: var(--bg);
}

.release.latest { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

.release-info,
.release-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.release-version { color: var(--ink); font-weight: 600; }
.release-date { color: var(--outline); font-size: 13px; }

.badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
}

.badge.muted {
  background: color-mix(in srgb, var(--outline) 15%, transparent);
  color: var(--outline);
}

.release .btn { min-height: 40px; padding: 8px 16px; }
.release .text-btn { color: var(--outline); }
.versions-footer { display: flex; flex-wrap: wrap; gap: 8px; }
.versions-footer .text-btn { color: var(--accent); }

/* Сетки карточек */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1049px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 959px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 559px) {
  .grid, .grid-4 { grid-template-columns: 1fr; }
}

.feature-card {
  min-height: 180px;
  padding: 21px 18px;
  border: 1px solid var(--border);
  border-radius: 23px;
  background: var(--soft-gradient);
  box-shadow: 0 8px 20px var(--glow);
}

.icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 53px;
  height: 53px;
  border-radius: 17px;
  background: var(--icon-tile);
  color: var(--primary);
}

.icon-tile .icon { font-size: 29px; }

.feature-card h3 { margin-top: 16px; font-size: 17px; font-weight: 600; }
.feature-card p { margin-top: 7px; font-size: 14px; line-height: 1.4; color: var(--muted); }

/* О нас */

.about-frame {
  padding: 3px;
  border-radius: 34px;
  background: var(--frame-gradient);
}

.about-inner {
  display: grid;
  grid-template-columns: 11fr 9fr;
  align-items: center;
  gap: 25px;
  padding: 30px;
  border-radius: 31px;
  background: var(--soft-gradient);
}

.about-text { font-size: 15px; line-height: 1.55; color: var(--muted); }

.steps {
  list-style: none;
  margin: 23px 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.steps li { display: flex; gap: 13px; }
.steps .icon-tile { width: 43px; height: 43px; border-radius: 14px; }
.steps .icon-tile .icon { font-size: 23px; }
.steps h3 { font-size: 16px; font-weight: 600; }
.steps p { margin-top: 3px; font-size: 14px; line-height: 1.4; color: var(--muted); }

.about-art {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 27px;
}

@media (max-width: 839px) {
  .about-inner { grid-template-columns: 1fr; padding: 18px; }
  .about-art { height: 280px; }
}

/* Призыв скачать */

.cta {
  display: grid;
  grid-template-columns: 6fr 4fr;
  align-items: center;
  gap: 28px;
  padding: 34px;
  border-radius: 28px;
  background: var(--cta-gradient);
  color: #fff;
  box-shadow: 0 12px 24px var(--glow);
}

.cta h2 { font-size: 28px; line-height: 1.2; font-weight: 500; }
.cta p { margin-top: 10px; font-size: 15px; }
.cta-buttons { display: grid; gap: 10px; }

.cta .btn {
  min-height: 40px;
  padding: 8px 20px;
  font-size: 14px;
  background: #fff;
  border-color: #fff;
  color: #302052;
}

@media (max-width: 839px) {
  .cta { grid-template-columns: 1fr; gap: 22px; padding: 22px; }
  .cta h2 { font-size: 24px; }
}

/* Блог */

.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface-lowest);
  color: var(--ink);
  box-shadow: 0 1px 3px var(--shadow);
}

.blog-card:hover { border-color: var(--primary); }

.blog-cover {
  position: relative;
  width: 100%;
  height: 110px;
}

.blog-cover .icon {
  position: absolute;
  right: 20px;
  top: 18px;
  font-size: 70px;
  color: color-mix(in srgb, var(--primary) 75%, transparent);
}

.blog-tag {
  position: absolute;
  left: 15px;
  top: 15px;
  padding: 6px 11px;
  border-radius: 30px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
}

.blog-body { padding: 17px; }
.blog-body h3 { font-size: 17px; line-height: 1.2; font-weight: 600; }
.blog-body p { margin-top: 8px; font-size: 14px; color: var(--muted); }

.read-more {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}

/* Вся карточка нажимается, а кнопка остаётся одна. */
.read-more::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
}

.read-more .icon { font-size: 16px; }

.dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100% - 64px);
  padding: 24px;
  border: 0;
  border-radius: 28px;
  background: var(--surface-low);
  color: var(--ink);
}

.dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
.dialog h3 { font-size: 22px; line-height: 1.25; }
.dialog p { margin-top: 16px; line-height: 1.6; color: var(--muted); }
.dialog-actions { display: flex; justify-content: flex-end; margin-top: 20px; }

/* Партнёры */

.partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.partner-card {
  display: flex;
  gap: 14px;
  width: min(380px, 100%);
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface-lowest);
  color: var(--ink);
  text-decoration: none;
}

.partner-card:hover { border-color: var(--primary); }

.partner-card img {
  width: 68px;
  height: 68px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--logo-bg);
}

.partner-card strong { display: block; font-size: 16px; font-weight: 600; }
.partner-site { display: block; margin-top: 3px; color: var(--primary); font-weight: 500; }
.partner-card span:last-child { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }

/* Подвал */

.site-footer {
  margin-top: 80px;
  padding: 30px 0 max(30px, env(safe-area-inset-bottom));
  background: var(--footer-gradient);
  color: var(--footer-text);
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.footer-brand img { width: 35px; height: 35px; border-radius: 9px; }

.footer-line {
  height: 1.5px;
  margin: 16px 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--footer-text) 60%, transparent), transparent);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid color-mix(in srgb, var(--footer-text) 70%, transparent);
  border-radius: 999px;
  color: var(--footer-text);
  font-weight: 500;
  text-decoration: none;
}

.footer-links a:hover { background: rgba(255, 255, 255, 0.08); }
.footer-links .icon { font-size: 18px; }
.copyright { margin-top: 16px; font-size: 14px; }
.footer-note { margin-top: 8px; font-size: 12px; }

/* Кнопка «Наверх» */

.to-top {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 10;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 4px 12px var(--shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.to-top.visible { opacity: 1; pointer-events: auto; }

/* Ссылка на страницу приложения */

.app-page-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 4px;
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.app-page-link:hover { text-decoration: underline; }
.app-page-link .icon { font-size: 18px; }

/* Страница приложения */

.app-page { padding-top: 24px; }

.crumbs {
  font-size: 14px;
  color: var(--outline);
}

.crumbs a { color: var(--outline); }

.app-page-lead {
  margin: 12px 0 20px;
  font-size: 18px;
  font-weight: 500;
  color: var(--muted);
}

.app-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.app-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface-low);
  color: var(--ink);
  text-decoration: none;
}

.app-link:hover { border-color: var(--accent); }
.app-link strong { display: block; font-size: 16px; font-weight: 600; }
.app-link span span { display: block; margin-top: 3px; font-size: 14px; color: var(--muted); }
