/* ==========================================================
   МАРАФОН «ЛЁГКИЕ РОДЫ» — СОВРЕМЕННЫЙ ДИЗАЙН
   ========================================================== */

:root {
  --primary: #c0576b;
  --primary-light: #f38b9e;
  --primary-dark: #9e3d50;
  --primary-soft: #fcf1f3;
  --primary-border: #f5d4db;

  --accent-gold: #f59e0b;
  --accent-blue: #0284c7;
  --accent-green: #10b981;

  --bg-page: #faf6f4;
  --bg-card: #ffffff;
  --bg-subtle: #f7efeb;

  --text-title: #231b1d;
  --text-body: #473a3d;
  --text-muted: #806e72;

  --border-light: #ede0dc;
  --border-card: #f2e7e3;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 9999px;

  --shadow-xs: 0 2px 6px rgba(192, 87, 107, 0.05);
  --shadow-sm: 0 6px 18px rgba(192, 87, 107, 0.07);
  --shadow-md: 0 14px 34px rgba(192, 87, 107, 0.11);
  --shadow-lg: 0 24px 54px rgba(192, 87, 107, 0.16);

  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ================= СБРОС И БАЗОВЫЕ ПРАВИЛА ================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-stack);
  font-size: 1rem;
  line-height: 1.65;
  background-color: var(--bg-page);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  color: var(--text-title);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ================= КНОПКИ ================= */
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff !important;
  background: linear-gradient(135deg, #cf6277 0%, var(--primary) 100%);
  border: none;
  border-radius: var(--radius-full);
  padding: 14px 28px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(192, 87, 107, 0.32);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

button:hover, .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(192, 87, 107, 0.42);
  background: linear-gradient(135deg, #d66c80 0%, var(--primary-dark) 100%);
}

button:active, .btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(192, 87, 107, 0.3);
}

.btn.sm {
  font-size: 0.875rem;
  padding: 9px 20px;
  box-shadow: 0 4px 14px rgba(192, 87, 107, 0.24);
}

.btn.big {
  font-size: 1.125rem;
  padding: 18px 40px;
  box-shadow: 0 12px 32px rgba(192, 87, 107, 0.38);
}

.btn.w {
  background: #ffffff !important;
  color: var(--primary) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.btn.w:hover {
  background: #faf4f5 !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

/* ================= ЛЕНДИНГ (index.php) ================= */
.lp {
  background: var(--bg-card);
}

/* Навигация */
.top {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 36px);
  max-width: 1140px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}

.top .logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.01em;
}

.top div {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top div a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.top div a:hover {
  color: var(--primary);
}

/* Первый экран Hero */
.hero2 {
  position: relative;
  overflow: hidden;
  background: radial-gradient(100% 120% at 85% 15%, #ffe6ec 0%, #fff4ef 50%, #ffffff 100%);
  padding: clamp(48px, 8vw, 84px) clamp(16px, 4vw, 32px);
  border-bottom: 1px solid var(--border-light);
}

.hero2::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 194, 208, 0.35);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.hero2::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 225, 201, 0.4);
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
}

.hw {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-card);
  margin-bottom: 18px;
}

.hero2 h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 18px;
  color: #201416;
}

.hero2 .lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 540px;
}

.pr {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
}

.pr b {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.pr s {
  font-size: 1.25rem;
  color: #bda6aa;
  font-weight: 500;
}

.himg {
  display: flex;
  justify-content: center;
}

.himg img, .ph {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 6px solid #ffffff;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.himg:hover img, .himg:hover .ph {
  transform: translateY(-4px) rotate(1deg);
}

.ph {
  background: linear-gradient(135deg, #ffd1db 0%, #ffe3d6 100%);
  display: grid;
  place-items: center;
  font-size: 110px;
  user-select: none;
}

/* Статистика */
.stats {
  max-width: 960px;
  margin: -40px auto 40px;
  padding: 0 20px;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stats div {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stats div:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.stats b {
  display: block;
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stats span {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Секции контента */
.sec {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 88px) clamp(16px, 4vw, 32px);
}

.sec h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  text-align: center;
  margin-bottom: 24px;
  position: relative;
}

.sec h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  margin: 14px auto 0;
}

.ab {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-body);
}

/* Сетка преимуществ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.fc {
  background: var(--bg-page);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  font-weight: 600;
  border: 1px solid var(--border-card);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.fc:hover {
  transform: translateY(-4px);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.ico {
  width: 60px;
  height: 60px;
  margin-bottom: 18px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 28px;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--border-light);
}

/* Как это работает (Шаги) */
.alt {
  background: var(--bg-page);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  max-width: 100%;
}

.alt > * {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
  margin-top: 18px;
}

.steps div {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 32px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.steps div:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.steps i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  font-style: normal;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 4px 14px rgba(192, 87, 107, 0.35);
}

.steps b {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text-title);
}

.steps span {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Программа по дням (Таймлайн) */
.tl {
  max-width: 740px;
  margin: 0 auto;
  border-left: 3px solid var(--primary-border);
  padding-left: 32px;
  position: relative;
}

.ti {
  position: relative;
  margin-bottom: 24px;
}

.ti i {
  position: absolute;
  left: -52px;
  top: 6px;
  min-width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-style: normal;
  font-weight: 800;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 5px var(--bg-card), var(--shadow-xs);
}

.ti p {
  background: var(--bg-page);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 500;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-xs);
}

/* Эксперт */
.exp {
  display: flex;
  gap: 36px;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-page);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.exp img {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #ffffff;
  box-shadow: var(--shadow-md);
}

.exp > div {
  flex: 1;
  min-width: 260px;
}

.exp h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--text-title);
}

.exp p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* Отзывы */
.rv {
  text-align: left;
  align-items: flex-start;
  padding: 28px;
}

.rv p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 20px;
}

.who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.who i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-style: normal;
  font-weight: 700;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-xs);
}

.who b {
  font-size: 1rem;
  color: var(--text-title);
}

/* Блок цены и участия */
.band {
  background: radial-gradient(120% 120% at 50% 20%, #ffeaf0 0%, #fff2ee 100%);
  border-top: 1px solid var(--border-light);
}

.band .sec {
  padding: clamp(64px, 8vw, 96px) 20px;
}

.pbox {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, #d36176 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 54px) clamp(24px, 5vw, 42px);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pbox h2 {
  color: #ffffff !important;
  font-size: clamp(1.85rem, 3.4vw, 2.4rem);
  margin-bottom: 14px;
}

.pbox h2::after {
  display: none !important;
}

.pbox .pr {
  justify-content: center;
  margin: 18px 0;
}

.pbox .pr b {
  color: #ffffff !important;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
}

.pbox .pr s {
  color: #ffdce3;
}

.pbox p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.95);
}

.sm2 {
  font-size: 0.925rem !important;
  margin-top: 28px !important;
  margin-bottom: 12px !important;
  color: rgba(255, 255, 255, 0.88) !important;
}

.ct {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ct a {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.ct a:hover {
  background: #ffffff;
  color: var(--primary) !important;
  transform: translateY(-2px);
}

footer {
  text-align: center;
  padding: 36px 20px;
  color: var(--text-muted);
  font-size: 0.925rem;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
}

/* ================= КАБИНЕТ, АДМИНКА, ВХОД ================= */
.appbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px clamp(16px, 4vw, 32px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
}

.appbar a {
  color: var(--primary);
  font-weight: 700;
}

.appbar nav {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.appbar nav a {
  margin: 0 4px;
  font-weight: 600;
}

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 36px 20px 80px;
}

main:has(.scroll) {
  max-width: 1140px;
}

main:has(.narrow) {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-card);
}

.card h2 {
  font-size: 1.45rem;
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.25rem;
  margin: 8px 0 12px;
}

.card > small:first-child {
  display: inline-block;
  background: var(--bg-page);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid var(--border-light);
}

.card.welcome {
  background: linear-gradient(135deg, #ce5e73 0%, var(--primary) 100%);
  color: #ffffff;
  border: none;
  box-shadow: var(--shadow-md);
}

.card.welcome h2, .card.welcome small, .card.welcome b {
  color: #ffffff !important;
}

.card.welcome .bar {
  background: rgba(255, 255, 255, 0.28);
}

.card.welcome .bar i {
  background: #ffffff;
}

/* Статусы заданий в кабинете */
.card.task {
  border-left: 6px solid var(--primary-light);
}

.card.reward {
  border-left: 6px solid var(--accent-gold);
}

.card.notice {
  border-left: 6px solid var(--accent-blue);
}

.bar {
  height: 12px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 14px 0 10px;
}

.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card img {
  border-radius: var(--radius-sm);
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
}

/* Ошибки и уведомления */
.err {
  background: #fef2f2;
  color: #b91c1c;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid #fecaca;
  margin-bottom: 16px;
  font-weight: 500;
}

.ok, .okk {
  background: #ecfdf5;
  color: #047857;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid #a7f3d0;
  margin-bottom: 16px;
  font-weight: 500;
}

/* Формы */
input, select, textarea {
  width: 100%;
  padding: 13px 16px;
  margin: 8px 0 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: #ffffff;
  color: var(--text-title);
  transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(192, 87, 107, 0.15);
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 10px;
}

label input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  vertical-align: middle;
}

/* Авторизация / Регистрация */
.narrow {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 40px 32px;
  text-align: center;
}

.narrow h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.narrow form {
  text-align: left;
}

.narrow button {
  width: 100%;
  margin-top: 12px;
}

.narrow p {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Детали / Аккордеон в админке */
details summary {
  cursor: pointer;
  font-size: 1.15rem;
  padding: 4px 0;
  user-select: none;
}

details[open] summary {
  margin-bottom: 18px;
}

details form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 18px;
}

details form > textarea,
details form > button,
details form > label:has(textarea),
details form > a,
details form > input[type="text"],
details form > select:first-of-type {
  grid-column: 1 / -1;
}

/* Таблицы пользователей */
.scroll {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
  background: #ffffff;
}

th {
  background: var(--bg-page);
  color: var(--text-muted);
  text-align: left;
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: 1.5px solid var(--border-light);
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

tr:hover td {
  background: #fdf8f9;
}

.in {
  display: inline-block;
  margin: 2px;
}

.in input, .in button {
  width: auto;
  padding: 6px 12px;
  margin: 0;
  font-size: 0.85rem;
  border-radius: var(--radius-xs);
  box-shadow: none;
}

/* ================= МОБИЛЬНАЯ АДАПТАЦИЯ ================= */
@media (max-width: 820px) {
  .hw {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .pr {
    justify-content: center;
  }

  .himg img, .ph {
    max-width: 280px;
  }

  .top div a:not(.btn) {
    display: none;
  }

  .stats {
    grid-template-columns: 1fr;
    margin-top: -24px;
    gap: 12px;
  }

  .sec {
    padding: 50px 18px;
  }

  .exp {
    text-align: center;
    justify-content: center;
  }

  details form {
    grid-template-columns: 1fr;
  }
}

/* ================= PARALLAX & ДИНАМИКА ================= */
.hero2, .band {
  position: relative;
  overflow: clip; /* Clean clip without breaking sticky nav */
}

.hero-bg-shapes, .band-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.parallax-elem {
  position: absolute;
  will-change: transform;
  pointer-events: none;
}

.orb-1 {
  width: 320px;
  height: 320px;
  top: -60px;
  right: -50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 143, 165, 0.45) 0%, rgba(255, 230, 236, 0) 70%);
  filter: blur(35px);
}

.orb-2 {
  width: 260px;
  height: 260px;
  bottom: 20px;
  left: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 186, 0.5) 0%, rgba(255, 245, 240, 0) 70%);
  filter: blur(30px);
}

.orb-3 {
  width: 180px;
  height: 180px;
  top: 40%;
  left: 45%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 182, 193, 0.35) 0%, rgba(255, 240, 245, 0) 70%);
  filter: blur(25px);
}

.spark {
  font-size: 26px;
  opacity: 0.65;
  user-select: none;
  filter: drop-shadow(0 4px 10px rgba(192, 87, 107, 0.25));
  animation: floatSpark 6s ease-in-out infinite alternate;
}

.spark-1 {
  top: 18%;
  left: 10%;
  animation-duration: 5s;
}

.spark-2 {
  bottom: 22%;
  right: 12%;
  font-size: 22px;
  animation-duration: 7s;
  animation-delay: -2s;
}

@keyframes floatSpark {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-12px) rotate(8deg); }
}

.band-orb {
  width: 380px;
  height: 380px;
  top: 50%;
  left: 50%;
  margin-top: -190px;
  margin-left: -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 192, 203, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
  filter: blur(40px);
}

/* 3D Container & Tilt */
.himg {
  perspective: 1000px;
  transform-style: preserve-3d;
  will-change: transform;
}

.himg img, .ph {
  transform: translateZ(20px);
  transition: box-shadow 0.3s ease;
}

.himg:hover img, .himg:hover .ph {
  box-shadow: 0 30px 60px rgba(192, 87, 107, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .spark {
    animation: none;
  }
  .parallax-elem {
    transform: none !important;
  }
  .himg {
    transform: none !important;
  }
}

/* ===== переключатель языка UZ / RU ===== */
.lang{display:inline-flex;gap:2px;margin-left:14px;background:#0000000f;border-radius:22px;padding:3px;vertical-align:middle}
.lang a,.top .lang a,.appbar nav .lang a{display:inline-block!important;margin:0!important;padding:5px 12px;border-radius:18px;font-size:13px;font-weight:700;line-height:1.2;text-decoration:none;color:#806e72}
.lang a.on,.top .lang a.on,.appbar nav .lang a.on{background:#c0576b;color:#fff}
.appbar nav .lang{margin-left:10px}
