/* ============ Базовый сброс ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ink: #111;
  --bg: #f3f1ec;
  --paper: #ffffff;
  --muted: #7a7a72;
  --line: #e2dfd6;
  --accent: #7a1f2b;
  --accent-2: #c8a35b;
  --accent-3: #1f3b2c;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { border: none; background: none; cursor: pointer; }

/* ============ Оболочка ============ */
.site-shell {
  min-height: 100vh;
  padding-bottom: 40px;
}

/* ============ Шапка ============ */
.top-header {
  background: #232323;
  color: #fff;
  text-align: center;
  padding: 16px 16px 14px;
  border-bottom: 1px solid #2f2f2f;
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #fff;
  transition: color .25s;
}

.brand-name {
  font-family: 'Unbounded', system-ui;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: 12px;
  padding-left: 12px;
  line-height: 1;
}

.brand-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  display: block;
  transition: .25s;
}

/* Наводим — надпись окрашивается в флаг Татарстана, лого подрастает */
.brand:hover .brand-name {
  background: linear-gradient(
    to bottom,
    #007236 0 33.333%,
    #ffffff 33.333% 66.666%,
    #d52b1e 66.666% 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transition: color .25s;
}

.brand:hover .brand-logo { transform: scale(1.08); }

.brand-slogan {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #bdbdbd;
}

/* ============ Навигация ============ */
.top-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
  position: sticky;
  top: 94px;
  z-index: 25;
  flex-wrap: wrap;
}

.nav-link {
  color: #555;
  transition: .2s;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.nav-link:hover { color: var(--accent); }

.nav-link.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ============ Main / страницы ============ */
main {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 18px;
}

.page { display: none; padding-top: 26px; }
.page.active { display: block; }

/* ============ Hero ============ */
.hero-media {
  position: relative;
  background: #0f0f0f;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--line);
}

.hero-media video {
  width: 100%;
  height: clamp(280px, 42vw, 520px);
  display: block;
  object-fit: cover;
  background: #111;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 45%,
    rgba(0, 0, 0, 0.35) 65%,
    rgba(0, 0, 0, 0.75) 85%,
    rgba(0, 0, 0, 0.92) 100%
  );
  color: #fff;
  pointer-events: none;
}

.hero-overlay h1,
.hero-overlay p {
  pointer-events: auto;
}

.hero-overlay h1 {
  font-family: 'Unbounded', system-ui;
  font-weight: 700;
  font-size: clamp(28px, 5vw, 54px);
  letter-spacing: 12px;
  padding-left: 12px;
}
.hero-overlay h1:hover {
  background: linear-gradient(
    to bottom,
    #007236 0 33.333%,
    #ffffff 33.333% 66.666%,
    #d52b1e 66.666% 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  cursor: default;
}

.hero-overlay p {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #e6e2d8;
}

/* ============ Тикер ============ */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  margin: 22px 0 26px;
}

.ticker-track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  padding: 12px 0;
  min-width: max-content;
  animation: ticker 26s linear infinite;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ Вступление ============ */
.intro-block {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.intro-text {
  font-size: 15px;
  line-height: 1.75;
  color: #3a3a3a;
}

/* ============ Два направления ============ */
.directions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 44px;
}

.direction-card {
  background: var(--paper);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: .25s;
  display: flex;
  flex-direction: column;
}

.direction-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.direction-visual {
  aspect-ratio: 16/10;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #fff;
  overflow: hidden;
}

.direction-visual--wardrobe {
  background:
    linear-gradient(135deg, rgba(31,59,44,.85), rgba(11,11,11,.9)),
    repeating-linear-gradient(45deg,
      rgba(200,163,91,.16) 0 8px,
      transparent 8px 18px);
}

.direction-visual--accents {
  background:
    linear-gradient(135deg, rgba(122,31,43,.88), rgba(11,11,11,.9)),
    repeating-linear-gradient(45deg,
      rgba(200,163,91,.16) 0 8px,
      transparent 8px 18px);
}

/* Номер «01» — маленький, в углу */
.direction-number {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: 'Unbounded', system-ui;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.65);
  z-index: 2;
}

/* Иконка — крупная, по центру */
.direction-icon {
  width: 400px;
  height: 400px;
  object-fit: contain;
  z-index: 2;
  transition: transform .35s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35));
}

.direction-card:hover .direction-icon {
  transform: scale(1.08);
}

.direction-info {
  padding: 22px;
}

.direction-info h2 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  font-family: 'Unbounded', system-ui;
  font-weight: 500;
}

.direction-info p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 14px;
}

.direction-link {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============ Заголовки секций ============ */
.catalog-head, .section-head {
  padding: 8px 0 18px;
}

.catalog-title, .section-head h2 {
  font-family: 'Unbounded', system-ui;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.catalog-subtitle, .section-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ============ Сетка и карточки ============ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--paper);
  overflow: hidden;
  cursor: pointer;
  transition: .2s ease;
  position: relative;
  border: 1px solid var(--line);
}

.card:hover { transform: translateY(-4px); }

.image {
  width: 100%;
  aspect-ratio: 1/1;
  background: #ddd;
  position: relative;
  overflow: hidden;
}

.image img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.image::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0);
  transition: .25s;
}

.card:hover .image::after { background: rgba(0,0,0,.12); }

.card-body { padding: 14px; }

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.card h4 {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 4px;
}

.meta {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.meta--brand { color: var(--accent); }

.price-tag {
  position: absolute;
  bottom: 10px; left: 10px;
  background: #fff;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
}

.brand-tag {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--accent);
  color: #fff;
  padding: 4px 8px;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ============ Фильтр брендов ============ */
.brands-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.brand-chip {
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  transition: .2s;
}

.brand-chip:hover { color: var(--ink); border-color: var(--ink); }

.brand-chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ============ Детальная ============ */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
}

.detail-image {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}

.detail-image img {
  width: 100%;
  display: block;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.detail-thumb {
  border: 1px solid var(--line);
  padding: 0;
  background: #fff;
  aspect-ratio: 1/1;
  overflow: hidden;
  cursor: pointer;
}

.detail-thumb.active { border-color: var(--ink); }

.detail-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.detail-info {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 26px;
}

.detail-brand {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.detail-info h2 {
  font-family: 'Unbounded', system-ui;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 6px;
}

.detail-brand-desc {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}

.detail-desc {
  color: #444;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 18px;
}

.detail-section {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.detail-section h5 {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.detail-section p {
  font-size: 13px;
  line-height: 1.6;
  color: #333;
}

.detail-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.product-link {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: underline;
  margin-top: 6px;
}

/* ============ Кнопки ============ */
.primary-btn,
.secondary-btn {
  padding: 13px 18px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 11px;
  border: 1px solid var(--ink);
  transition: .2s;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.primary-btn {
  background: var(--ink);
  color: #fff;
}
.primary-btn:hover { background: var(--accent); border-color: var(--accent); }

.secondary-btn {
  background: #fff;
  color: var(--ink);
}
.secondary-btn:hover { background: #f5f2ea; }

.full-btn { width: 100%; }

/* ============ Панели ============ */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 20px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-head h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

.panel-head span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ============ Примерка / Акценты ============ */
.tryon-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 22px;
  align-items: start;
}

.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 1/1;
  border: 1px dashed var(--line);
  background: #faf8f3;
  cursor: pointer;
  text-align: center;
  padding: 20px;
  transition: .2s;
}

.upload-zone:hover { border-color: var(--accent); background: #f7f3ea; }

.upload-zone i { font-size: 28px; color: var(--accent); }
.upload-zone span { font-size: 13px; color: var(--ink); letter-spacing: .5px; }
.upload-zone small { font-size: 11px; color: var(--muted); }

.upload-preview {
  margin-top: 12px;
}

.upload-preview img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
}

.selected-product {
  min-height: 64px;
  border: 1px solid var(--line);
  background: #faf8f3;
  padding: 12px;
  font-size: 13px;
}

.selected-product .sp-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.selected-product .sp-row img {
  width: 56px; height: 56px; object-fit: cover; border: 1px solid var(--line);
}

.selected-product .sp-title { font-size: 12px; line-height: 1.4; }
.selected-product .sp-brand { font-size: 10px; color: var(--accent); letter-spacing: 1.5px; text-transform: uppercase; margin-top: 2px; }

.hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.55;
  text-align: center;
  letter-spacing: .3px;
}

/* ============ Результаты ============ */
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  min-height: 260px;
}

.flip-card {
  perspective: 1200px;
  aspect-ratio: 3/4;
  cursor: pointer;
  animation: fadeUp .45s ease both;
}

.flip-card:nth-child(2) { animation-delay: .08s; }
.flip-card:nth-child(3) { animation-delay: .16s; }
.flip-card:nth-child(4) { animation-delay: .24s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.flip-inner {
  position: relative;
  width: 100%; height: 100%;
  transition: transform .6s cubic-bezier(.4,.2,.2,1);
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-inner { transform: rotateY(180deg); }

.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
}

.flip-front {
  background: #e8e4db;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
}

.flip-front .mock-photo {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(31,59,44,.35), rgba(122,31,43,.35)),
    repeating-linear-gradient(45deg,
      rgba(255,255,255,.06) 0 8px,
      transparent 8px 18px),
    #d6d2c8;
}

.flip-front .mock-label {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
  font-size: 11px;
  letter-spacing: 2px;
}

.flip-back {
  transform: rotateY(180deg);
  background: #141414;
  color: #f2efe7;
  padding: 18px;
  flex-direction: column;
  justify-content: center;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .3px;
}

.flip-back .llm-tag {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--accent-2);
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ============ Нижняя панель результата ============ */
.result-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.result-actions button {
  flex: 1;
  padding: 10px;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: .2s;
}

.result-actions button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============ Бренды ============ */
.brands-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.brand-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px;
  cursor: pointer;
  transition: .2s;
}

.brand-card:hover { transform: translateY(-3px); border-color: var(--accent); }

.brand-card .bc-name {
  font-family: 'Unbounded', system-ui;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.brand-card .bc-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 14px;
}

.brand-card .bc-count {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============ О проекте ============ */
.about-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.about-layout h3 {
  font-family: 'Unbounded', system-ui;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.about-layout p {
  font-size: 13px;
  line-height: 1.7;
  color: #333;
}

.about-steps, .about-list {
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.8;
  color: #333;
}

.about-steps li, .about-list li { margin-bottom: 4px; }

/* ============ Пустое состояние ============ */
.empty-state {
  padding: 22px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  letter-spacing: 1px;
}

/* ============ Поиск (скрыт) ============ */
.bottom-search {
  border-radius: 4px;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #0b0b0b;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(520px, calc(100% - 32px));
  z-index: 40;
  border: 1px solid #1f1f1f;
  display: none !important;
}

.bottom-search i { color: #aaa; }

.bottom-search input {
  border: none;
  background: transparent;
  color: #fff;
  padding: 0;
  flex: 1;
  outline: none;
}

.bottom-search input::placeholder { color: #888; }

.clear-btn { color: #aaa; display: flex; align-items: center; }

.search-dropdown {
  position: absolute;
  left: 0; right: 0;
  bottom: 52px;
  background: #fff;
  border: 1px solid var(--line);
  display: none;
  max-height: 240px;
  overflow: auto;
}

.search-item {
  padding: 12px 14px;
  cursor: pointer;
  font-size: 12px;
  border-bottom: 1px solid #f0ece3;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.search-item:hover { background: #f7f3ea; }
.search-item .si-brand { color: var(--accent); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; }

/* ============ Адаптив ============ */
@media (max-width: 980px) {
  .detail-layout,
  .tryon-layout,
  .about-layout,
  .directions {
    grid-template-columns: 1fr;
  }

  .top-nav {
    top: 88px;
    gap: 16px;
    justify-content: flex-start;
    overflow: auto;
    padding-left: 18px;
    flex-wrap: nowrap;
  }
}

@media (max-width: 720px) {
  .brand-name { font-size: 22px; letter-spacing: 8px; }
  .brand-logo { width: 46px; height: 46px; }
  .brand { gap: 12px; }
  .brand-slogan { letter-spacing: 2px; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .hero-overlay { padding: 20px; }
  .hero-overlay h1 { letter-spacing: 8px; }
}

@media (max-width: 520px) {
  main { padding: 0 12px; }
  .grid, .results-grid { grid-template-columns: 1fr 1fr; }
  .panel { padding: 14px; }
  .detail-info { padding: 18px; }
  .ticker-track { gap: 22px; font-size: 10px; }
}
/* ============ Кнопка «в избранное» ============ */
.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .2s;
  z-index: 3;
  border-radius: 50%;
  padding: 0;
}

.fav-btn:hover {
  background: #fff;
  transform: scale(1.08);
}

.fav-btn i {
  font-size: 15px;
  color: #999;
  transition: .2s;
}

.fav-btn.active i {
  color: #d52b1e;
}

.fav-btn:active {
  transform: scale(0.95);
}
/* ============ Фоновые логотипы ============ */
.bg-logos {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-logo {
  position: absolute;
  width: 220px;
  height: auto;
  opacity: 0.08;
  filter: blur(0.4px);
  user-select: none;
  will-change: transform;
}

/* Позиции: по краям, по углам, и немного в центре */

.bg-logo--1  { top: 5%;  left: 3%;  width: 240px; animation: float1 38s ease-in-out infinite; }
.bg-logo--2  { top: 55%; left: 82%; width: 300px; animation: float2 52s ease-in-out infinite; }
.bg-logo--3  { top: 80%; left: 8%;  width: 200px; animation: float3 44s ease-in-out infinite; }
.bg-logo--4  { top: 22%; left: 70%; width: 260px; animation: float4 60s ease-in-out infinite; }
.bg-logo--5  { top: 45%; left: 40%; width: 180px; animation: float5 48s ease-in-out infinite; }
.bg-logo--6  { top: 88%; left: 50%; width: 160px; animation: float6 40s ease-in-out infinite; }
.bg-logo--7  { top: 3%;  left: 88%; width: 210px; animation: float7 55s ease-in-out infinite; }
.bg-logo--8  { top: 68%; left: 25%; width: 190px; animation: float8 46s ease-in-out infinite; }

/* Новые — по бокам, по углам, у краёв */

.bg-logo--9  { top: 15%; left: 2%;  width: 170px; animation: float3 50s ease-in-out infinite; }
.bg-logo--10 { top: 35%; left: 92%; width: 200px; animation: float5 58s ease-in-out infinite; }
.bg-logo--11 { top: 60%; left: 3%;  width: 230px; animation: float2 42s ease-in-out infinite; }
.bg-logo--12 { top: 78%; left: 88%; width: 180px; animation: float1 54s ease-in-out infinite; }
.bg-logo--13 { top: 92%; left: 25%; width: 200px; animation: float4 47s ease-in-out infinite; }
.bg-logo--14 { top: 10%; left: 45%; width: 150px; animation: float7 56s ease-in-out infinite; }
.bg-logo--15 { top: 50%; left: 15%; width: 160px; animation: float6 49s ease-in-out infinite; }
.bg-logo--16 { top: 28%; left: 55%; width: 140px; animation: float8 51s ease-in-out infinite; }

/* Траектории плавания */

@keyframes float1 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  33%  { transform: translate(60px, -40px) rotate(6deg); }
  66%  { transform: translate(-30px, 50px) rotate(-4deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float2 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  40%  { transform: translate(-80px, 60px) rotate(-8deg); }
  70%  { transform: translate(40px, -30px) rotate(5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float3 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(90px, -70px) rotate(10deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float4 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(-50px, 40px) rotate(-6deg); }
  75%  { transform: translate(60px, -20px) rotate(8deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float5 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  45%  { transform: translate(70px, 80px) rotate(12deg); }
  80%  { transform: translate(-40px, -30px) rotate(-5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float6 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(-70px, -50px) rotate(-9deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float7 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  35%  { transform: translate(-40px, 60px) rotate(7deg); }
  70%  { transform: translate(50px, -40px) rotate(-6deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float8 {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(80px, -60px) rotate(14deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* Контент поверх фона */
.site-shell,
main {
  position: relative;
  z-index: 1;
}

/* ============ Контент — поверх фона ============ */
/* ============ Контент — поверх фона ============ */
.site-shell,
main {
  position: relative;
  z-index: 1;
}
/* ============ Переключатель языка ============ */
.lang-switch {
  border: 1px solid var(--line);
  padding: 4px 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--ink);
  transition: .2s;
}

.lang-switch:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
/* ============ Профиль ============ */
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Unbounded', system-ui;
  font-size: 26px;
  font-weight: 500;
  flex-shrink: 0;
}

.profile-summary h3 {
  font-family: 'Unbounded', system-ui;
  font-weight: 500;
  font-size: 18px;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.profile-summary p {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
}

.profile-size-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

.ad-form {
  display: grid;
  gap: 10px;
}

.ad-form input,
.ad-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  color: inherit;
  outline: none;
  transition: .2s;
  border-radius: 0;
}

.ad-form input:focus,
.ad-form select:focus {
  border-color: var(--accent);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.full-width { grid-column: 1 / -1; }

/* Рекомендованный размер на карточке товара */
.recommended-size {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 9px;
  background: var(--accent-3);
  color: #fff;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
}

/* Рекомендованный размер в детальной */
.detail-size-box {
  border: 1px solid var(--accent-3);
  background: #eef4ee;
  padding: 14px 16px;
  margin: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-size-box .dsb-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-size-box .dsb-value {
  font-family: 'Unbounded', system-ui;
  font-weight: 500;
  font-size: 18px;
  color: var(--accent-3);
}

@media (max-width: 720px) {
  .profile-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
/* ============ Аватар с фото ============ */
.profile-avatar-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.profile-avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent-3);
}

.profile-summary-info {
  flex: 1;
  min-width: 200px;
}

.profile-summary-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.profile-summary-actions .secondary-btn {
  padding: 10px 14px;
  font-size: 10px;
}

/* ============ Модалка фото ============ */
.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 20px; /* сверху отступ под чёрную шапку */
}

.photo-modal.open {
  display: flex;
}

.photo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.photo-modal-box {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  max-width: 460px;
  width: 100%;
  max-height: calc(100vh - 160px); /* оставляем место под шапку + отступы */
  overflow-y: auto;
  padding: 20px;
}

.photo-modal-close {
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  padding: 0 6px;
}

.photo-modal-close:hover { color: var(--ink); }

.photo-modal-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.photo-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.photo-upload-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 14px;
  border: 1px dashed var(--line);
  background: #faf8f3;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  transition: .2s;
  text-align: center;
}

.photo-upload-btn:hover {
  border-color: var(--accent);
  background: #f7f3ea;
}

.photo-upload-btn i {
  font-size: 22px;
  color: var(--accent-3);
}

.camera-block,
.photo-preview-block {
  margin-top: 16px;
}

.camera-block video {
  width: 100%;
  display: block;
  background: #000;
  border: 1px solid var(--line);
  aspect-ratio: 4/5;      /* было 3/4, стало компактнее */
  max-height: 55vh;       /* ограничение по высоте */
  object-fit: cover;
}

.photo-preview-block img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  aspect-ratio: 4/5;      /* было 3/4 */
  max-height: 55vh;
  object-fit: contain;
  background: #faf8f3;
}

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

.camera-actions button {
  flex: 1;
}

@media (max-width: 720px) {
  .profile-summary-actions {
    margin-left: 0;
    width: 100%;
  }
  .photo-modal-actions {
    grid-template-columns: 1fr;
  }
}
/* ============ Фото из профиля в примерочной ============ */
.photo-from-profile {
  position: relative;
  border: 1px solid var(--line);
  background: #faf8f3;
  overflow: hidden;
}

.photo-from-profile img {
  width: 100%;
  display: block;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.photo-from-profile-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.change-photo-btn {
  cursor: pointer;
  color: var(--accent);
  text-decoration: underline;
  letter-spacing: 1.5px;
  font-size: 10px;
  text-transform: uppercase;
}

.change-photo-btn:hover {
  color: var(--ink);
}