/* ===============================
   FORGED ELEGANCE — основной стиль
   =============================== */

:root {
  --bg: #0e1116;
  --gold: #caa368;
  --muted: #8a8f97;
  --line: #2a313a;
  --text: #e8edf3;
  --panel: #151a20;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ====== Хедер ====== */
header {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--gold);
}

/* ====== Навигация ====== */
nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--gold);
}

/* Мобильная адаптация навигации */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  
  nav {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }
  
  nav a {
    font-size: 16px;
  }
  
  .lang {
    width: 100%;
    justify-content: center;
  }
}

/* ====== Переключатель языков ====== */
.lang {
  display: flex;
  gap: 8px;
}

.lang a {
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  border: 1px solid #caa368;
  border-radius: 8px;
  padding: 4px 10px;
  background: transparent;
  transition: all 0.2s ease;
}

.lang a:hover {
  background: rgba(202, 163, 104, 0.15);
}

.lang a.active {
  background: #caa368;
  color: #121416;
  font-weight: 600;
  box-shadow: 0 0 8px rgba(202, 163, 104, 0.5);
}

/* ====== Hero-секция ====== */
.hero {
  text-align: center;
  padding: 100px 20px;
  background: linear-gradient(to bottom, #12161c, #0f1216);
}

.hero h1 {
  font-size: 56px;
  margin: 10px 0;
  color: var(--gold);
  font-weight: 800;
  line-height: 1.1;
}

.hero .sub {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 30px;
}

/* Мобильная адаптация Hero */
@media (max-width: 768px) {
  .hero {
    padding: 60px 20px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .hero .sub {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }
  
  .hero .sub {
    font-size: 14px;
  }
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: #121416;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 16px;
}

.btn:hover {
  background: #d7b46f;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* ====== Категории (табы) ====== */
.tabs {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

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

.tab {
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: 8px;
  color: #fff;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  white-space: nowrap;
}

.tab:hover {
  background: rgba(202, 163, 104, 0.1);
}

.tab.active {
  background: var(--gold);
  color: #121416;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(202, 163, 104, 0.3);
}

/* Мобильная адаптация табов */
@media (max-width: 640px) {
  .tabbar {
    gap: 8px;
  }
  
  .tab {
    padding: 6px 12px;
    font-size: 13px;
    flex: 1 1 auto;
    min-width: fit-content;
  }
}

/* ====== Галерея (3 карточки в ряд) ====== */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 40px 20px;
  align-items: start;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Мобильная адаптация сетки */
@media (max-width: 640px) {
  .grid {
    padding: 20px 12px;
    gap: 16px;
  }
}

.card {
  background: #151a20;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #2a313a;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.caption {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.caption div:first-child {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 15px;
}

.price {
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}

/* Мобильная адаптация карточек */
@media (max-width: 480px) {
  .caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  
  .caption div:first-child {
    font-size: 14px;
    margin-bottom: 4px;
  }
  
  .price {
    font-size: 14px;
  }
}

/* ====== Лайтбокс ====== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.lightbox.open {
  display: flex;
}

.lb-inner {
  max-width: 90%;
  max-height: 90%;
  text-align: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  margin-bottom: 12px;
}

.lb-cap {
  color: #fff;
  font-size: 16px;
  padding: 0 10px;
}

/* Мобильная адаптация лайтбокса */
@media (max-width: 640px) {
  .lightbox {
    padding: 10px;
  }
  
  .lb-inner {
    max-width: 100%;
  }
  
  .lightbox img {
    max-height: 70vh;
  }
  
  .lb-cap {
    font-size: 14px;
  }
}

/* ====== Footer ====== */
footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
  footer {
    font-size: 12px;
    padding: 20px 15px;
  }
}

/* === Support Widget === */
.sup-wrap{position:fixed;right:22px;bottom:22px;z-index:120}

.sup-fab {
  padding: 0 22px;
  min-width: 230px;
  height: 54px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(145deg, var(--gold), #b78a50);
  color: #121416;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}

.sup-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .45);
}

.sup-fab:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
}

.sup-panel{
  position:fixed;right:22px;bottom:92px;width:340px;background:#151a20;
  border:1px solid #2a313a;border-radius:14px;box-shadow:0 14px 30px rgba(0,0,0,.45)
}

/* Адаптация для мобильных */
@media (max-width: 640px) {
  .sup-wrap {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }
  
  .sup-fab {
    width: 100%;
    min-width: auto;
    padding: 0 18px;
    height: 50px;
    font-size: 15px;
  }
  
  .sup-panel {
    right: 12px;
    bottom: 76px;
    left: 12px;
    width: auto;
  }
}

.sup-head{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid #2a313a}
.sup-title{font-weight:800;letter-spacing:.02em}
.sup-close{background:transparent;border:0;color:#e8edf3;font-size:20px;cursor:pointer}
.sup-form{padding:12px}
.sup-inp,.sup-text{
  width:100%;border:1px solid #262e37;border-radius:10px;background:#0f141a;color:#e8edf3;
  padding:10px 12px;margin-bottom:8px;font-family:inherit;font-size:14px;
}
.sup-inp::placeholder,.sup-text::placeholder{color:#8a8f97}
.sup-file{
  display:flex;align-items:center;gap:10px;justify-content:space-between;
  border:1px dashed #39424d;border-radius:10px;padding:10px 12px;margin:4px 0 8px;color:#c9cfd6;
  cursor:pointer;transition:background .15s ease;font-size:14px;
}
.sup-file:hover{background:#12161c}
.sup-file em{font-style:normal;color:#9aa2ab;max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sup-send{width:100%;margin-top:6px}
.sup-hint{margin-top:6px;color:#8a8f97;font-size:12px}
.sup-status{margin-top:8px;font-size:14px}
.sup-status.ok{color:#9fe29f}
.sup-status.err{color:#ffb3b3}

/* Дополнительная адаптация формы на маленьких экранах */
@media (max-width: 480px) {
  .sup-form {
    padding: 10px;
  }
  
  .sup-inp, .sup-text {
    font-size: 16px; /* Предотвращает зум на iOS при фокусе */
  }
  
  .sup-file {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  
  .sup-file em {
    max-width: 100%;
  }
}
