:root {
  /* Фон страницы — Milk Choco (оставим как есть) */
  --bg: #A07455;

  /* Карточки — более "банановый" и чуть теплее */
  --bg-card: #FFE6A3;

  /* Акцент — теплее и темнее (чтобы ссылки читались) */
  --accent: #3FAE6A;

  /* Мягкий акцент под плашки/бейджи */
  --accent-soft: rgba(63, 174, 106, 0.20);

  /* Текст */
  --text: #000000;

  /* “Muted” делаем реально темнее, чтобы было читабельно на карточках */
  --text-muted: #1F1F1F;

  /* Ошибки */
  --danger: #E57373;

  /* Границы и тени */
  --border: #E2D2BC;
  --radius: 16px;
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.06);
}







*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}




#app {
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.app-shell {
  width: 100%;
  max-width: 480px;
  padding: 16px 16px 32px;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

/* Главный блок домика */

.home-hero {
  text-align: center;
  margin-bottom: 16px;
}

.home-logo-large {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  margin: 0 auto 12px;
}

/* берем все стили app-logo, но увеличенные размеры */
.home-logo-large.app-logo {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background-size: 80%;
}

.home-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.home-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}



/* Блок с айфоном и описанием */

.home-gallery-card {
  margin-top: 16px;
}

.phone-and-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

@media (min-width: 700px) {
  .phone-and-text {
    flex-direction: row;
    align-items: stretch;
  }
}

/* Сам "айфон" */

.phone-frame {
  width: 230px;
  padding: 10px;
  border-radius: 38px;
  background: linear-gradient(145deg, #3d3025, #78614c);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    0 0 0 2px rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.phone-notch {
  width: 90px;
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.85);
  margin-top: 2px;
}

.phone-screen {
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 19.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Панель описания для текущего скрина */

.feature-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.feature-counter {
  font-size: 11px;
  color: var(--text-muted);
}

.feature-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

.feature-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.feature-nav-btn {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 6px 12px;
  font-size: 12px;
  background: #fff7e8;
  color: var(--text);
  cursor: pointer;
}

.feature-nav-btn:hover {
  border-color: var(--accent);
}

.sub-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0 4px;
  font-size: 14px;
  color: var(--text);
}

/* Switch */
.switch {
  position: relative;
  width: 52px;
  height: 28px;
  display: inline-block;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #d9d9d9;
  border-radius: 34px;
  transition: .3s;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.25);
}

.slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: .3s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

input:checked + .slider {
  background: var(--accent);
}

input:checked + .slider:before {
  transform: translateX(24px);
}


/* Карточка со сторами */

.home-stores-card .card-text {
  margin-bottom: 12px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-btn {
  flex: 1 1 0;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--border);
  background: #ffffff;
  cursor: pointer;
  font-size: 13px;
  color: #000;
}

.store-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.store-icon {
  width: 22px;
  height: 22px;
  border-radius: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  flex: 0 0 auto;
}

/* реальные иконки сторoв */
.store-icon-appstore {
  background-image: url("assets/stores/apple-app-store.svg");
}

.store-icon-playstore {
  background-image: url("assets/stores/google-play.svg");
}

.store-icon-rustore {
  background-image: url("assets/stores/RuStore_logo.png");
  width: 24px;
  height: 24px;
}


/* Блок с CTA (расширенная версия) */

.home-cta-card .card-text {
  margin-bottom: 10px;
}

/* Реквизиты */

.home-requisites-card .card-text {
  font-size: 12px;
  line-height: 1.6;
}


.app-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #C7F684;
  background-image: url("/public/web/logo.png");
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 8px 20px rgba(170, 230, 120, 0.35);

  /* гарантированно убираем текст поверх иконки */
  color: transparent;
  font-size: 0;
}





.app-title {
  font-weight: 700;
  font-size: 18px;
}

.app-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.card + .card {
  margin-top: 14px;
}


.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
}

.card-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
}

.card-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.card-list {
  margin: 10px 0 4px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.card-list li + li {
  margin-top: 4px;
}

.card-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.card-meta strong {
  color: var(--accent);
}

.btn-primary,
.btn-outline,
.btn-danger {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  background: var(--accent);      /* Mint Cool */
  color: #12221c;                 /* тёмный текст на мятной кнопке */
  box-shadow: 0 10px 24px rgba(152, 226, 198, 0.45);
}






.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--text-muted);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.5);
}

.link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 13px;
}


.link-quiet {
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: none;
}

.link-quiet span {
  text-decoration: underline dotted;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  margin: 18px 0 8px;
}

.section-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Формы */

.form-group {
  margin-bottom: 10px;
}

.form-label {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #6A5F55;
  padding: 9px 12px;
  background: #3A332C;
  color: #ffffff;
  font-size: 14px;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.4);
}

.form-help {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--accent);
  background: var(--accent-soft);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  margin-right: 6px;
}

/* Низ */

.app-footer {
  margin-top: 22px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Адаптация */
@media (min-width: 480px) {
  .app-shell {
    padding-top: 32px;
  }
}


.hidden {
  display: none;
}


/* =========================
   Modal (для оплаты/галочек)
   ========================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.modal-sheet {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 420px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  padding: 16px;
}

.modal-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.modal-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.modal-actions .btn-outline,
.modal-actions .btn-primary {
  margin-top: 0;
}

/* disabled для кнопки оплаты, когда галочка не отмечена */
.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* =========================
   Checkbox row (галочка согласия)
   ========================= */

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text);
  user-select: none;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

