/* Гарантируем, что HTML-атрибут hidden работает даже при наличии display: flex/grid в CSS */
[hidden] { display: none !important; }

:root {
  --bg: #06080d;
  --bg-soft: #0a0d14;
  --panel: rgba(11, 14, 22, 0.8);
  --panel-strong: rgba(10, 12, 18, 0.95);
  --text-main: #f2f2f2;
  --text-soft: #b7b7ba;
  --gold: #d2a148;
  --gold-bright: #ffcc6c;
  --line: rgba(255, 191, 96, 0.2);
  --nav-item-gap: 1.2rem;
  --nav-item-px: 0.2rem;
  --nav-item-py: 0.45rem;
  --nav-item-size: 0.86rem;
  --nav-item-track: 0.07em;
  --nav-core-offset: 0;
  --nav-actions-gap: 0.65rem;
  --nav-actions-offset: 1rem;
  --header-logo-col: 14.375rem;
  --header-nav-start: calc(var(--header-logo-col) + 1.2rem);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  /* Резервирует место под скроллбар — меню не прыгает */
  scrollbar-gutter: stable;
}

body {
  font-family: "Inter", sans-serif;
  background: radial-gradient(circle at 18% 0%, #1c1f27 0%, var(--bg) 38%, #030407 100%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 5.85rem;
}

main {
  /* Предотвращаем выход контента за пределы экрана */
  max-width: 100%;
  overflow-x: hidden;
}

.site-header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 8, 13, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.45rem 0;
  overflow: visible;
}

.site-header-fixed .top-header {
  margin-top: 0;
}

.site-shell {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 203, 112, 0.06), transparent 16%),
    linear-gradient(90deg, rgba(255, 190, 90, 0.08), transparent 22%, transparent 78%, rgba(255, 190, 90, 0.08));
  pointer-events: none;
  z-index: -1;
}

.top-header,
.hero,
.stats-bar,
.projects,
.reviews-page,
.brands-hero,
.brands-page,
.brands-cta,
.community-page,
.contact-page,
.site-footer {
  width: min(1500px, calc(100% - 2.2rem));
  margin-inline: auto;
}

.top-header {
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(25, 28, 37, 0.92), rgba(8, 10, 16, 0.92));
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.45);
  overflow: visible;
}

.logo-wrap {
  display: grid;
  line-height: 1;
  letter-spacing: 0.07em;
}

a.logo-wrap.logo-home-link {
  text-decoration: none;
  color: inherit;
}

.logo-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #f6d193;
}

.logo-subtitle {
  font-size: 0.66rem;
  color: #d7b57a;
  margin-top: 0.12rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--nav-item-gap);
  overflow: visible;
}

/* Переключатель «Мастерская» как кнопка (совпадает с остальными пунктами меню) */
.main-nav .nav-dropdown__toggle {
  position: relative;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: none;
  font: inherit;
  font-size: var(--nav-item-size);
  color: #c8ccd0;
  text-transform: uppercase;
  letter-spacing: var(--nav-item-track);
  transition: color 0.2s ease;
  padding: var(--nav-item-py) var(--nav-item-px);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.main-nav a {
  color: #c8ccd0;
  text-decoration: none;
  text-transform: uppercase;
  font-size: var(--nav-item-size);
  letter-spacing: var(--nav-item-track);
  transition: color 0.2s ease;
  position: relative;
  padding: var(--nav-item-py) var(--nav-item-px);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #f6d9a0;
}

.main-nav .nav-dropdown__toggle:hover,
.main-nav .nav-dropdown__toggle:focus-visible,
.main-nav .nav-dropdown__toggle.active {
  color: #f6d9a0;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.main-nav .nav-back-btn::after {
  display: none;
}

.main-nav .nav-dropdown__toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav .nav-dropdown__toggle:hover::after,
.main-nav .nav-dropdown__toggle:focus-visible::after,
.main-nav .nav-dropdown__toggle.active::after,
.main-nav .nav-dropdown.open > .nav-dropdown__toggle::after {
  transform: scaleX(1);
}

/* ══════════════════════════════════════════════
   NAV DROPDOWN — подменю «Мастерская»
══════════════════════════════════════════════ */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: center;
}

/* Кнопка-переключатель — наследует стиль .main-nav a */
.nav-dropdown__toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.nav-dd-arrow {
  font-size: 0.58em;
  display: inline-block;
  transition: transform 0.22s ease;
  margin-top: 0.08em;
  opacity: 0.7;
}

.nav-dropdown.open .nav-dd-arrow {
  transform: rotate(180deg);
}

/* Само выпадающее меню */
.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 190px;
  background: rgba(6, 8, 14, 0.98);
  border: 1px solid rgba(255, 194, 95, 0.18);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.6);
  padding: 0.4rem 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 400;
}

.nav-dropdown.open .nav-dropdown__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Ссылки внутри меню */
.nav-dropdown__menu a {
  padding: 0.65rem 1.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #c8ccd0;
  position: relative;
  border-bottom: 1px solid rgba(255,194,95,0.07);
  transition: color 0.2s, background 0.2s;
}

.nav-dropdown__menu a:last-child { border-bottom: none; }

.nav-dropdown__menu a:hover,
.nav-dropdown__menu a.active {
  color: var(--gold);
  background: rgba(255, 191, 96, 0.08);
}

/* Убираем анимацию подчёркивания у пунктов меню (оставляем только у toggle) */
.nav-dropdown__menu a::after { display: none; }

/* Десктоп: фиксированная сетка шапки — одинаковые позиции на всех страницах */
@media (min-width: 1025px) {
  .site-header-fixed .top-header {
    display: grid;
    grid-template-columns: var(--header-logo-col) minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 1.2rem;
    justify-content: unset;
    position: relative;
    width: min(1500px, calc(100% - 2.2rem));
  }

  .site-header-fixed .top-header > .logo-wrap.logo-home-link {
    grid-column: 1;
    grid-row: 1;
    width: var(--header-logo-col);
    min-width: var(--header-logo-col);
    max-width: var(--header-logo-col);
    position: relative;
    z-index: 4;
    flex-shrink: 0;
  }

  .site-header-fixed .top-header > .nav-toggle {
    display: none;
  }

  .site-header-fixed .top-header > .main-nav {
    display: contents;
  }

  .site-header-fixed .main-nav__core {
    grid-column: 2;
    grid-row: 1;
    position: static;
    transform: none;
    z-index: 2;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--nav-item-gap);
    min-width: 0;
    max-width: 100%;
    padding-inline: 0;
    box-sizing: border-box;
    overflow: visible;
  }

  .site-header-fixed .main-nav__actions {
    grid-column: 3;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: var(--nav-actions-gap);
    margin-left: 0;
    position: relative;
    z-index: 3;
  }

  .nav-dropdown {
    position: relative;
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    flex-shrink: 0;
    align-items: center;
    align-self: center;
    vertical-align: middle;
  }

  .nav-dropdown__toggle {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .nav-dropdown__menu {
    position: absolute !important;
    left: 50%;
    right: auto;
    top: calc(100% + 12px);
    transform: translateX(-50%) translateY(-6px);
    z-index: 500;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    white-space: normal;
    min-width: max(190px, 100%);
    max-width: min(300px, 85vw);
  }

  .nav-dropdown.open .nav-dropdown__menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .nav-dropdown__menu a {
    display: block !important;
    white-space: nowrap;
  }

  /* «Назад» и поиск — справа, без лишнего отступа */
  .main-nav .search-btn {
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: 0;
  }

  .main-nav .nav-back-btn {
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: 0;
  }

  /* Крупнее «Назад» и поиск в одной высотной линии с пунктами меню */
  .main-nav__actions .back-btn {
    padding: 0.52rem 1.2rem;
    font-size: 0.82rem;
    letter-spacing: 0.07em;
  }

  .main-nav__actions .search-btn {
    padding: 0;
    min-width: 0;
  }

  .main-nav__actions .search-btn__text {
    font-size: 0.82rem;
  }

  .main-nav__actions .nav-auth-btn {
    padding: 0.48rem 1rem;
    font-size: 0.78rem;
  }
}

.back-btn {
  text-decoration: none;
  color: #d8b175;
  border: 1px solid var(--line);
  padding: 0.62rem 1rem;
  border-radius: 8px;
  text-transform: uppercase;
  font-size: 0.71rem;
  letter-spacing: 0.07em;
  background: linear-gradient(180deg, rgba(25, 19, 11, 0.55), rgba(7, 8, 12, 0.6));
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.back-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 208, 126, 0.55);
  box-shadow: 0 0 18px rgba(255, 181, 67, 0.2);
}

/* Отступ между группами убран при обёртке .main-nav__actions на десктопе см. mq 1025 */
.nav-back-btn {
  margin-left: 0;
}

/* ── Кнопка-строка поиска в навигации ──────────────────────── */
.search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.28rem 0.65rem;
  min-width: 130px;
  background: rgba(255,191,96,0.05);
  border: 1px solid rgba(255,191,96,0.22);
  border-radius: 6px;
  color: rgba(200,180,140,0.5);
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 0.4rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.main-nav .search-btn,
.main-nav__actions .search-btn {
  margin-left: 0;
}

.search-btn:hover {
  border-color: rgba(255,191,96,0.5);
  color: rgba(200,180,140,0.8);
  background: rgba(255,191,96,0.08);
}

.search-btn__text {
  font-size: 0.72rem;
  font-family: inherit;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.search-btn__icon {
  flex-shrink: 0;
  opacity: 0.7;
}

.search-btn--icon {
  width: 2.35rem;
  height: 2.35rem;
  min-width: 0;
  padding: 0;
  justify-content: center;
  gap: 0;
}

.search-btn--icon .search-btn__text {
  display: none;
}

.search-btn--icon .search-btn__icon {
  opacity: 1;
}

.nav-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(210, 161, 72, 0.55);
  border-radius: 6px;
  background: transparent;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-auth-btn:hover {
  border-color: rgba(255, 204, 108, 0.75);
  color: var(--gold-bright);
  background: rgba(255, 191, 96, 0.06);
}

.nav-auth-btn--primary {
  border-color: transparent;
  background: linear-gradient(180deg, #d9aa58 0%, #c08a35 100%);
  color: #120e08;
  font-weight: 600;
}

.nav-auth-btn--primary:hover {
  background: linear-gradient(180deg, #e4b86a 0%, #ca9440 100%);
  color: #0a0805;
  box-shadow: 0 0 16px rgba(255, 181, 67, 0.22);
}

.nav-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: rgba(200, 204, 208, 0.42);
  cursor: default;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.nav-soon--top {
  position: relative;
  padding: var(--nav-item-py) var(--nav-item-px);
  text-transform: uppercase;
  font-size: var(--nav-item-size);
  letter-spacing: var(--nav-item-track);
  line-height: 1.2;
}

.nav-dropdown__soon {
  display: block;
  padding: 0.65rem 1.35rem;
  border-bottom: 1px solid rgba(255, 191, 96, 0.08);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.nav-dropdown__menu .nav-dropdown__soon:last-of-type {
  border-bottom: none;
}

.nav-soon__badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.12rem 0.42rem;
  border: 1px solid rgba(255, 191, 96, 0.2);
  border-radius: 999px;
  color: rgba(255, 204, 108, 0.58);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}

.nav-auth-btn.nav-soon {
  opacity: 0.72;
}

.nav-auth-btn.nav-soon.nav-auth-btn--primary {
  background: rgba(192, 138, 53, 0.35);
  color: rgba(18, 14, 8, 0.55);
}

/* На мобильном — на всю ширину в открытом меню */
@media (max-width: 1024px) {
  .search-btn {
    width: 100%;
    min-width: 0;
    margin-left: 0;
    padding: 0.4rem 0.7rem;
    justify-content: flex-start;
    gap: 0.6rem;
  }

  .search-btn--icon {
    width: 100%;
    height: auto;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .search-btn--icon .search-btn__text {
    display: inline;
  }

  .search-btn__text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
  }

  .nav-auth-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.78rem 1.35rem;
    border: none;
    border-top: 1px solid rgba(255, 191, 96, 0.1);
    border-radius: 0;
    background: transparent;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .nav-auth-btn:hover {
    background: rgba(255, 191, 96, 0.07);
    color: var(--gold);
  }

  .nav-auth-btn--primary {
    margin-top: 0.35rem;
    border: 1px solid rgba(210, 161, 72, 0.45);
    border-radius: 6px;
    margin-inline: 1.35rem;
    width: calc(100% - 2.7rem);
    text-align: center;
    text-transform: none;
    background: linear-gradient(180deg, #d9aa58 0%, #c08a35 100%);
    color: #120e08;
  }

  .nav-auth-btn--primary:hover {
    color: #0a0805;
    background: linear-gradient(180deg, #e4b86a 0%, #ca9440 100%);
  }
}

/* ── Оверлей поиска ────────────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(3,4,7,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.search-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.search-box {
  width: min(640px, calc(100% - 2rem));
  background: rgba(14,16,24,0.98);
  border: 1px solid rgba(255,191,96,0.25);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255,191,96,0.12);
}

.search-icon {
  flex-shrink: 0;
  color: rgba(230,210,180,0.4);
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 1rem;
  font-family: inherit;
  letter-spacing: 0.01em;
}

.search-input::placeholder {
  color: rgba(230,210,180,0.3);
}

.search-close {
  background: transparent;
  border: none;
  color: rgba(230,210,180,0.4);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.15s;
}

.search-close:hover { color: var(--gold); }

.search-results {
  max-height: 380px;
  overflow-y: auto;
}

.search-result-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.6rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,191,96,0.07);
  transition: background 0.15s;
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(255,191,96,0.06); }

.sri-type {
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  padding-top: 0.1rem;
}

.sri-title {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
}

.sri-desc {
  font-size: 0.78rem;
  color: rgba(230,210,180,0.45);
  line-height: 1.3;
}

.search-hint {
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  color: rgba(230,210,180,0.3);
  border-top: 1px solid rgba(255,191,96,0.08);
}

.search-empty {
  padding: 1.2rem 1rem;
  font-size: 0.88rem;
  color: rgba(230,210,180,0.4);
  text-align: center;
}

@media (max-width: 760px) {
  .search-overlay { padding-top: 4vh; }
  .search-box { border-radius: 10px; }
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px;
  height: 38px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #d7ad67;
  margin: 4px auto;
}

.hero {
  position: relative;
  margin-top: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: none;
  overflow: hidden;
}

.hero-only-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.hero-content-overlay {
  position: absolute;
  left: clamp(1.15rem, 4.2vw, 2.6rem);
  top: clamp(0.75rem, 3.5vw, 1.75rem);
  max-width: min(44rem, 90%);
  z-index: 2;
  text-align: left;
  pointer-events: none;
}

.hero-content-overlay > * {
  pointer-events: auto;
}

/* Hero mobile — правила ниже 1100px-блока, чтобы не перебивались */

/* Hero Eyebrow — единый маркер над заголовком во всех Hero-блоках */
.hero-tag {
  font-size: clamp(0.65rem, 1.5vw, 0.85rem);
  letter-spacing: 0.35em;
  color: #d4a843;
  text-transform: uppercase;
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
  font-weight: 600;
}

.hero-title-main {
  margin: 0 0 clamp(0.6rem, 1.6vw, 0.95rem);
  max-width: 42rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 3.55vw, 3.05rem);
  line-height: 1.05;
  letter-spacing: 0.035em;
  color: #f7e5bf;
  text-shadow:
    0 1px 0 #8a2a20,
    0 2px 0 rgba(188, 101, 38, 0.68),
    0 6px 20px rgba(0, 0, 0, 0.6),
    0 0 18px rgba(212, 168, 67, 0.16);
  text-wrap: balance;
}

.hero-lead {
  margin: 0 0 clamp(1.1rem, 2.5vw, 1.75rem);
  font-size: clamp(0.85rem, 1.35vw, 1rem);
  line-height: 1.6;
  color: #b0aba0;
  max-width: 50rem;
}

.hero-lead__line {
  display: block;
  white-space: nowrap;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 clamp(1rem, 2.3vw, 1.55rem);
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.36rem 0.62rem;
  border: 1px solid rgba(255, 191, 96, 0.24);
  border-radius: 999px;
  background: rgba(6, 8, 13, 0.52);
  color: rgba(246, 217, 160, 0.84);
  font-size: clamp(0.58rem, 0.9vw, 0.7rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-stat-panel {
  position: absolute;
  left: var(--hero-stat-panel-x, 50%);
  bottom: clamp(0.65rem, 1.4vw, 1rem);
  z-index: 4;
  width: min(640px, calc(100% - 2rem));
  max-width: calc(100% - 2rem);
  padding: 0.62rem 1rem;
  border: 1px solid rgba(255, 191, 96, 0.28);
  border-radius: 999px;
  background: rgba(6, 8, 13, 0.84);
  color: rgba(246, 217, 160, 0.94);
  font-size: 0.78rem;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  cursor: pointer;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.hero-stat-panel--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.hero-actions-overlay {
  position: static;
  left: auto;
  bottom: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(0.85rem, 2.2vw, 1.75rem);
  z-index: 2;
  pointer-events: none;
}

.hero-actions-overlay > * {
  pointer-events: auto;
}

.btn-hero-outline {
  background: transparent;
  border: none;
  color: #d4a843;
  font-size: clamp(0.72rem, 1.1vw, 0.82rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  border-bottom: 1px solid rgba(212, 168, 67, 0.4);
  padding-bottom: 0.25rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-hero-outline:hover {
  color: #f0d894;
  border-bottom-color: #d4a843;
}

.btn-hero-request {
  background: transparent;
  border: 1px solid rgba(212, 168, 67, 0.5);
  color: #d4a843;
  font-size: clamp(0.72rem, 1.1vw, 0.82rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.62rem 1.5rem;
  border-radius: 40px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.btn-hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-hero-request:hover {
  color: #f0d894;
  background: rgba(212, 168, 67, 0.1);
  border-color: #d4a843;
  transform: translateY(-2px);
}

.eyebrow {
  color: #d1a15b;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  margin-bottom: 1rem;
}

h1,
h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.05rem, 3.5vw, 3.22rem);
  line-height: 0.92;
  max-width: 17ch;
}

.hero-text {
  margin-top: 1rem;
  max-width: 44ch;
  color: var(--text-soft);
  line-height: 1.5;
}

.hero-actions {
  margin-top: 1.35rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  font-size: 0.76rem;
  padding: 0.9rem 1.3rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-gold {
  color: #1f1710;
  background: linear-gradient(180deg, #efc06b, #be8537);
  box-shadow: inset 0 1px 0 rgba(255, 236, 180, 0.6), 0 8px 20px rgba(175, 111, 35, 0.2);
}

.btn-dark {
  color: #f3f4f8;
  background: linear-gradient(180deg, rgba(33, 38, 52, 0.95), rgba(15, 18, 28, 0.95));
  border-color: rgba(213, 164, 85, 0.3);
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.stats-bar {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(255, 255, 255, 0.1);
}

.stat {
  display: flex;
  align-items: flex-start;
  gap: 0.68rem;
  min-height: 4.05rem;
  padding: 0.52rem 0.74rem;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, #0c0c0c 0%, #060606 100%);
  transition: background 0.22s ease, box-shadow 0.22s ease;
}

.stat:hover {
  background: linear-gradient(180deg, #141109 0%, #0d0c08 100%);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.12);
}

.stat:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: -2px;
  z-index: 1;
}

.stat:active {
  background: linear-gradient(180deg, #18150c 0%, #0f0e09 100%);
}

.stat--open {
  background: linear-gradient(180deg, #151107 0%, #0b0a07 100%);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.18);
}

.stat-icon-wrap {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4af37;
  margin-top: 0;
  transition: filter 0.22s ease, transform 0.22s ease;
}

.stat-svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.stat:hover .stat-icon-wrap {
  filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.45));
}

.stat-copy {
  flex: 1;
  min-width: 0;
}

.stat h3 {
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.16rem;
  color: #ffffff;
}

.stat p {
  color: #a0a0a0;
  font-size: 0.68rem;
  line-height: 1.18;
  font-weight: 400;
}

.stat-copy p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.premium-services,
.client-value,
.atelier-split,
.brand-strip,
.landing-cta {
  width: min(1500px, calc(100% - 2.2rem));
  margin-inline: auto;
}

.premium-services {
  margin-top: 0.8rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid rgba(255, 191, 96, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 16% 0%, rgba(212, 161, 72, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(13, 16, 24, 0.94), rgba(6, 8, 13, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 236, 180, 0.04);
}

.landing-section-head {
  max-width: 760px;
  margin: 0 auto clamp(1.2rem, 2.5vw, 1.8rem);
  text-align: center;
}

.landing-section-head h2,
.atelier-split h2,
.landing-cta h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: #f2eee6;
  margin-bottom: 0.8rem;
}

.landing-section-head p,
.atelier-split__copy p,
.landing-cta p {
  color: rgba(226, 220, 206, 0.68);
  line-height: 1.65;
  font-size: 0.95rem;
}

.premium-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.premium-service-card {
  position: relative;
  min-height: 220px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 191, 96, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 191, 96, 0.06), transparent 52%),
    rgba(3, 5, 9, 0.42);
  overflow: hidden;
}

.premium-service-card::after {
  content: "";
  position: absolute;
  inset: auto 1.25rem 1rem 1.25rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 204, 108, 0.55), transparent);
}

.premium-service-card__num {
  display: inline-block;
  margin-bottom: 2.1rem;
  color: rgba(255, 204, 108, 0.52);
  font-family: "Cormorant Garamond", serif;
  font-size: 2.25rem;
  line-height: 1;
}

.premium-service-card h3 {
  margin-bottom: 0.65rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  color: #f4e4c5;
}

.premium-service-card p {
  color: rgba(218, 214, 204, 0.64);
  line-height: 1.55;
  font-size: 0.88rem;
}

.client-value {
  margin-top: 0.8rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid rgba(255, 191, 96, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(10, 13, 20, 0.95), rgba(5, 7, 12, 0.96)),
    radial-gradient(circle at 10% 14%, rgba(212, 161, 72, 0.13), transparent 34%);
}

.client-value__head {
  display: grid;
  gap: 0.65rem;
  max-width: 760px;
  margin-bottom: clamp(1.1rem, 2.4vw, 1.7rem);
}

.client-value__head h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: #f2eee6;
}

.client-value__head p {
  color: rgba(226, 220, 206, 0.68);
  line-height: 1.65;
  font-size: 0.95rem;
}

.client-value__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}

.client-value__item {
  padding: 1rem;
  border: 1px solid rgba(255, 191, 96, 0.13);
  border-radius: 12px;
  background: rgba(3, 5, 9, 0.42);
}

.client-value__item span {
  display: inline-block;
  margin-bottom: 1.1rem;
  color: rgba(255, 204, 108, 0.54);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.65rem;
  line-height: 1;
}

.client-value__item h3 {
  margin-bottom: 0.55rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.28rem;
  color: #f4e4c5;
}

.client-value__item p {
  color: rgba(218, 214, 204, 0.64);
  line-height: 1.5;
  font-size: 0.84rem;
}

.atelier-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(1rem, 3vw, 2.4rem);
  margin-top: 0.8rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border: 1px solid rgba(255, 191, 96, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(12, 15, 23, 0.94), rgba(7, 9, 14, 0.9)),
    radial-gradient(circle at 88% 18%, rgba(212, 161, 72, 0.14), transparent 36%);
}

.atelier-split__copy {
  max-width: 700px;
}

.atelier-split__copy .btn-hero-outline {
  margin-top: 1.3rem;
}

.atelier-checklist {
  display: grid;
  gap: 0.6rem;
}

.atelier-checklist div {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 191, 96, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.atelier-checklist strong {
  color: #f3d18e;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.atelier-checklist span {
  color: rgba(230, 226, 216, 0.64);
  font-size: 0.88rem;
  line-height: 1.45;
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  margin-top: 0.8rem;
  border: 1px solid rgba(255, 191, 96, 0.16);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(3, 5, 9, 0.52);
}

.brand-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
  padding: 0.8rem 0.65rem;
  border-right: 1px solid rgba(255, 191, 96, 0.1);
  color: rgba(246, 217, 160, 0.75);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  letter-spacing: 0.03em;
}

.brand-strip span:last-child {
  border-right: none;
}

.projects {
  margin-top: 0.8rem;
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(11, 14, 21, 0.9), rgba(7, 10, 16, 0.9));
  padding: 1.55rem 0.95rem 1.85rem;
}

.center {
  text-align: center;
}

.projects h2 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.85rem;
}

.project-filters {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.82rem;
}

.project-filters button {
  color: #d1d4db;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.52rem 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  transition: all 0.2s ease;
}

.project-filters button:hover,
.project-filters button.active {
  border-color: rgba(230, 176, 88, 0.5);
  color: #f5d9a0;
  background: rgba(255, 184, 86, 0.08);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.78rem;
  align-items: stretch;
}

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid rgba(255, 191, 96, 0.18);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(16, 19, 28, 0.95), rgba(9, 12, 18, 0.98));
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-height: 253px;
}

.project-card:hover {
  transform: none;
  border-color: rgba(255, 207, 130, 0.55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.card-image {
  height: 140px;
  background-image: url("../img/hero-reference.png");
  background-size: 380% auto;
  background-repeat: no-repeat;
  background-position-y: 83%;
  filter: saturate(1.1) contrast(1.05);
  border-bottom: 1px solid rgba(255, 191, 96, 0.16);
}

.image-1 {
  background-position: 17% 83%;
}

.image-2 {
  background-position: 40% 83%;
}

.image-3 {
  background-position: 59% 83%;
}

.image-4 {
  background-position: 84% 83%;
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.9rem 0.85rem 1rem;
}

.card-body h3 {
  font-size: 1.15rem;
  font-family: "Cormorant Garamond", serif;
  margin-bottom: 0.35rem;
}

.card-body p {
  color: #b8bcc3;
  font-size: 0.84rem;
}

.card-body a {
  display: inline-block;
  margin-top: 0.8rem;
  color: #e3b968;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.08em;
  font-size: 0.69rem;
}

.projects-all-link {
  text-align: center;
  margin-top: 1.25rem;
}

.projects-loading {
  grid-column: 1 / -1;
  padding: 1.4rem;
  border: 1px solid rgba(255, 191, 96, 0.16);
  border-radius: 12px;
  color: rgba(230, 210, 180, 0.62);
  text-align: center;
  background: rgba(5, 8, 13, 0.62);
}

.projects-loading--error {
  color: #ffb0a6;
}

.community-page {
  display: grid;
  gap: 0.8rem;
}

.community-hero,
.community-topics,
.community-feed,
.community-submit {
  border: 1px solid rgba(255, 191, 96, 0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(11, 14, 21, 0.92), rgba(6, 8, 13, 0.96));
}

.community-hero {
  padding: clamp(1.7rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 82% 10%, rgba(212, 161, 72, 0.16), transparent 36%),
    linear-gradient(135deg, rgba(15, 18, 28, 0.96), rgba(5, 7, 12, 0.97));
}

.community-hero h1:not(.hero-title-main),
.community-section-head h2,
.community-submit__copy h2 {
  font-family: "Cormorant Garamond", serif;
  color: #f2eee6;
  line-height: 1;
}

.community-hero h1:not(.hero-title-main) {
  max-width: 860px;
  margin: 0.35rem 0 0.85rem;
  font-size: clamp(2.3rem, 5.4vw, 4.4rem);
}

.community-hero p:not(.hero-tag):not(.hero-lead),
.community-section-head p,
.community-submit__copy p {
  max-width: 760px;
  color: rgba(226, 220, 206, 0.7);
  line-height: 1.65;
  font-size: 0.96rem;
}

.community-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.35rem;
}

.community-topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(3, 5, 9, 0.38);
}

.community-topics article,
.community-card,
.community-form-panel {
  border: 1px solid rgba(255, 191, 96, 0.13);
  border-radius: 12px;
  background: rgba(3, 5, 9, 0.45);
}

.community-topics article {
  padding: 1.1rem;
}

.community-topics span {
  display: inline-block;
  margin-bottom: 1rem;
  color: rgba(255, 204, 108, 0.54);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  line-height: 1;
}

.community-topics h2,
.community-card h3 {
  margin-bottom: 0.55rem;
  font-family: "Cormorant Garamond", serif;
  color: #f4e4c5;
}

.community-topics h2 {
  font-size: 1.45rem;
}

.community-topics p,
.community-card p {
  color: rgba(218, 214, 204, 0.64);
  line-height: 1.55;
  font-size: 0.88rem;
}

.community-feed {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.community-section-head {
  margin-bottom: 1rem;
}

.community-section-head h2,
.community-submit__copy h2 {
  margin: 0.35rem 0 0.65rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.community-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.community-card {
  padding: 1.15rem;
}

.community-card__tag {
  display: inline-flex;
  margin-bottom: 0.9rem;
  padding: 0.34rem 0.6rem;
  border: 1px solid rgba(255, 191, 96, 0.2);
  border-radius: 999px;
  color: rgba(246, 217, 160, 0.84);
  font-size: 0.66rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.community-card h3 {
  font-size: 1.35rem;
  line-height: 1.1;
}

.community-submit {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.65fr);
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.35rem, 3vw, 2rem);
}

.community-submit__copy {
  align-self: center;
}

.community-form-panel {
  padding: 1rem;
}

.form-group select {
  width: 100%;
  border: 1px solid rgba(255, 191, 96, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #f4efe6;
  padding: 0.85rem 0.95rem;
  font: inherit;
  outline: none;
}

.form-group select:focus {
  border-color: rgba(255, 204, 108, 0.58);
}

#communityResult {
  min-height: 1.2em;
  margin-top: 12px;
  color: #d4a843;
  font-size: 12px;
  text-align: center;
}

.landing-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: -1.2rem;
  margin-bottom: 2rem;
  padding: clamp(1.45rem, 3vw, 2rem);
  border: 1px solid rgba(255, 191, 96, 0.2);
  border-radius: 14px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 204, 108, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(18, 15, 10, 0.92), rgba(7, 9, 14, 0.96));
}

.landing-cta > div {
  max-width: 780px;
}

.landing-cta .btn-hero-request {
  flex-shrink: 0;
  min-width: 210px;
}

.contact-page {
  margin-top: 0.55rem;
  margin-bottom: 2rem;
}

.contact-hero {
  padding: clamp(1.55rem, 3vw, 2.4rem);
  border: 1px solid rgba(255, 191, 96, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 16% 0%, rgba(212, 161, 72, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(13, 16, 24, 0.94), rgba(6, 8, 13, 0.96));
}

.contact-hero h1 {
  max-width: 760px;
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1;
}

.contact-hero p:not(.eyebrow):not(.hero-tag) {
  max-width: 660px;
  color: rgba(226, 220, 206, 0.68);
  line-height: 1.65;
  font-size: 0.96rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 0.78fr);
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.contact-info-panel {
  padding: 1.75rem 1.5rem 2rem;
  border: 1px solid rgba(255, 191, 96, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 191, 96, 0.05), transparent 52%),
    rgba(5, 8, 13, 0.74);
}

.contact-info-panel h2 {
  margin-bottom: 1.1rem;
  color: #f4e4c5;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1;
}

.contact-info-list {
  display: grid;
  gap: 0;
  list-style: none;
}

.contact-info-list li {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 0.82rem 0;
  border-bottom: 1px solid rgba(255, 191, 96, 0.12);
}

.contact-info-list li:first-child {
  border-top: 1px solid rgba(255, 191, 96, 0.12);
}

.contact-info-list span {
  color: rgba(255, 204, 108, 0.68);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.contact-info-list strong {
  color: #f1eee7;
  font-size: 0.96rem;
  line-height: 1.35;
}

.contact-info-list a {
  color: inherit;
  text-decoration: none;
}

.contact-info-list a:hover {
  color: var(--gold-bright);
}

.contact-info-note {
  margin-top: 1rem;
  color: rgba(218, 214, 204, 0.64);
  line-height: 1.55;
  font-size: 0.88rem;
}

.contact-page-panel {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.75rem 1.5rem 2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(11, 14, 21, 0.95), rgba(7, 10, 16, 0.95));
  scroll-margin-top: 6rem;
}

.contact-page-panel h1,
.contact-page-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.5rem;
  max-width: none;
  line-height: 1.15;
}

.contact-page-lead {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.contact-map-section {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 0.85rem;
  margin-top: 0.85rem;
  padding: clamp(1.25rem, 2.6vw, 1.8rem);
  border: 1px solid rgba(255, 191, 96, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(12, 15, 23, 0.94), rgba(7, 9, 14, 0.9)),
    radial-gradient(circle at 82% 20%, rgba(212, 161, 72, 0.14), transparent 36%);
}

.contact-map-copy h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
}

.contact-map-copy p {
  max-width: 520px;
  margin-bottom: 1.2rem;
  color: rgba(226, 220, 206, 0.68);
  line-height: 1.65;
  font-size: 0.92rem;
}

.contact-map-card {
  position: relative;
  min-height: 280px;
  border: 1px solid rgba(255, 191, 96, 0.16);
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 191, 96, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(255, 191, 96, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 54% 48%, rgba(255, 204, 108, 0.24), transparent 8%),
    linear-gradient(135deg, #111721, #07090e);
  background-size: 48px 48px, 48px 48px, auto, auto;
}

.contact-map-card::before,
.contact-map-card::after {
  content: "";
  position: absolute;
  inset: auto 0 45% 0;
  height: 2px;
  background: rgba(255, 204, 108, 0.18);
  transform: rotate(-8deg);
}

.contact-map-card::after {
  inset: 42% 0 auto 0;
  transform: rotate(14deg);
  background: rgba(255, 255, 255, 0.08);
}

.contact-map-card__pin {
  position: absolute;
  left: 54%;
  top: 48%;
  width: 1rem;
  height: 1rem;
  border-radius: 50% 50% 50% 0;
  background: var(--gold-bright);
  transform: translate(-50%, -50%) rotate(-45deg);
  box-shadow: 0 0 0 8px rgba(255, 204, 108, 0.12), 0 0 28px rgba(255, 204, 108, 0.5);
  z-index: 2;
}

.contact-map-card__label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.2rem;
  max-width: calc(100% - 2rem);
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 191, 96, 0.18);
  border-radius: 10px;
  background: rgba(6, 8, 13, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-map-card__label strong {
  color: #f4e4c5;
}

.contact-map-card__label span {
  color: rgba(218, 214, 204, 0.64);
  font-size: 0.86rem;
}

.site-footer {
  border-top: 1px solid rgba(255, 190, 94, 0.2);
  padding: 0.95rem 0.2rem 1.55rem;
  color: #8f95a0;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(52, 53, 65, 0.55);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

/* Панель в духе ChatGPT: тёмно-серый блок, мягкие поля, светлая кнопка */
.modal-content--chat {
  background: #2f2f2f;
  max-width: 520px;
  width: 100%;
  padding: 0;
  border-radius: 20px;
  border: 1px solid #565869;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 24px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.modal-content--chat > .modal-header {
  padding: 1.1rem 1.15rem 1rem;
  margin-bottom: 0;
  border-bottom: 1px solid #424242;
  align-items: flex-start;
}

.modal-content--chat .modal-title-block {
  flex: 1;
  min-width: 0;
  padding-right: 0.5rem;
}

.modal-content--chat .modal-header h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #ececf1;
  letter-spacing: 0;
  margin: 0 0 0.35rem;
  font-family: "Inter", sans-serif;
}

.modal-subtitle {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #8e8ea0;
  font-weight: 400;
}

.modal-content--chat .close-btn {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #c5c5d2;
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  margin-top: -0.15rem;
}

.modal-content--chat .close-btn:hover {
  color: #ececf1;
  background: #40414f;
}

.modal-content--chat .form-group {
  margin: 0 1.15rem 0.75rem;
}

.modal-content--chat .form-group:first-of-type {
  margin-top: 1.1rem;
}

.modal-content--chat .form-group input,
.modal-content--chat .form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: #40414f;
  border: 1px solid transparent;
  color: #ececf1;
  border-radius: 12px;
  font-size: 0.875rem;
  font-family: "Inter", sans-serif;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal-content--chat .form-group input::placeholder,
.modal-content--chat .form-group textarea::placeholder {
  color: #8e8ea0;
}

.modal-content--chat .form-group input:hover,
.modal-content--chat .form-group textarea:hover {
  background: #4a4b5a;
}

.modal-content--chat .form-group input:focus,
.modal-content--chat .form-group textarea:focus {
  outline: none;
  border-color: #8e8ea0;
  box-shadow: 0 0 0 1px rgba(142, 142, 160, 0.35);
}

.modal-content--chat .form-group textarea {
  resize: vertical;
  min-height: 5.5rem;
}

.modal-content--chat .submit-btn {
  margin: 0.35rem 1.15rem 1.15rem;
  width: calc(100% - 2.3rem);
  padding: 0.7rem 1rem;
  background: #ececf1;
  border: none;
  color: #2f2f2f;
  font-weight: 600;
  cursor: pointer;
  border-radius: 12px;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  font-family: "Inter", sans-serif;
  transition: background 0.15s ease, transform 0.12s ease;
}

.modal-content--chat .submit-btn:hover {
  background: #fff;
  transform: none;
}

.modal-content--chat .submit-btn:active {
  transform: scale(0.99);
}

.modal-content--chat #result {
  margin: -0.35rem 1.15rem 1.15rem;
  text-align: center;
  color: #acacbe;
  font-size: 0.8rem;
  min-height: 1.2em;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-header h2 {
  font-size: 18px;
  color: #d4a843;
  font-weight: 400;
  letter-spacing: 1px;
  font-family: "Inter", sans-serif;
}

.close-btn {
  background: none;
  border: none;
  color: #aaa;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.25rem;
}

.close-btn:hover {
  color: #d4a843;
}

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #eee;
  border-radius: 6px;
  font-size: 13px;
  font-family: "Inter", sans-serif;
}

.form-group textarea {
  resize: vertical;
  min-height: 88px;
}

.submit-btn {
  width: 100%;
  padding: 12px;
  background: #d4a843;
  border: none;
  color: #000;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  font-size: 13px;
  letter-spacing: 1px;
  font-family: "Inter", sans-serif;
}

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

#result {
  margin-top: 12px;
  text-align: center;
  color: #d4a843;
  font-size: 12px;
  min-height: 1.2em;
}

.stat-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  max-width: min(90%, 520px);
  background: #1a1a1a;
  color: #d4a843;
  padding: 12px 22px;
  border-radius: 40px;
  font-size: 13px;
  border: 1px solid rgba(212, 168, 67, 0.4);
  z-index: 2000;
  font-family: "Inter", sans-serif;
  text-align: center;
  line-height: 1.45;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.stat-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

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

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card {
    min-height: 0;
  }

  .card-image {
    background-size: cover;
    background-position: center;
    height: 148px;
  }

  .premium-service-grid {
    grid-template-columns: 1fr;
  }

  .client-value__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .premium-service-card {
    min-height: 0;
  }

  .atelier-split {
    grid-template-columns: 1fr;
  }

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

  .brand-strip span:nth-child(4n) {
    border-right: none;
  }

  .contact-grid,
  .contact-map-section,
  .community-submit {
    grid-template-columns: 1fr;
  }

  .community-topics,
  .community-card-grid {
    grid-template-columns: 1fr;
  }
}

/* Бургер при 9 пунктах включаем при 1024px */
@media (max-width: 1024px) {
  .nav-toggle {
    display: block;
    margin-left: auto;
    flex-shrink: 0;
  }

  /* Кнопка "Назад" скрыта на всех мобильных и планшетах */
  .back-btn,
  .nav-back-btn { display: none !important; }

  .top-header {
    position: relative;
    /* без flex-wrap — бургер в одну строку с логотипом */
    overflow: visible;
  }

  /* Выпадающее меню — абсолютное позиционирование под кнопкой бургера */
  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: min(260px, 92vw);
    flex-direction: column;
    align-items: stretch;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 0;
    background: rgba(6, 8, 14, 0.98);
    border: 1px solid rgba(255, 194, 95, 0.18);
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.55);
    z-index: 300;
  }

  .main-nav.open {
    max-height: 880px;
    opacity: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.5rem 0 0.6rem;
  }

  /* Ссылки внутри выпадающего меню */
  .main-nav a {
    display: block;
    padding: 0.78rem 1.35rem;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(255,194,95,0.06);
  }

  /* Обёртки не мешают вертикальному списку в бургер-меню */
  .main-nav__core,
  .main-nav__actions {
    display: contents;
  }

  .main-nav a:hover,
  .main-nav a.active {
    background: rgba(255,191,96,0.07);
    color: var(--gold);
  }

  /* Кнопка поиска в выпадающем меню */
  .main-nav .search-btn {
    display: flex;
    width: 100%;
    min-width: 0;
    margin-left: 0;
    padding: 0.78rem 1.35rem;
    background: transparent;
    border: none;
    border-top: 1px solid rgba(255,191,96,0.1);
    border-radius: 0;
    color: rgba(200,180,140,0.6);
    justify-content: flex-start;
    gap: 0.5rem;
    margin-top: 0.2rem;
  }

  .main-nav .search-btn:hover {
    background: rgba(255,191,96,0.07);
    color: var(--gold);
  }

  .main-nav .search-btn .search-btn__text {
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: inherit;
  }

  /* Dropdown в мобильном меню */
  .main-nav .nav-dropdown__toggle::after {
    display: none;
  }

  .nav-dropdown {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .nav-dropdown__toggle {
    width: 100%;
    text-align: left;
    padding: 0.78rem 1.35rem;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(255,194,95,0.06);
    justify-content: space-between;
    color: #c8ccd0;
    text-decoration: none;
    text-transform: uppercase;
  }

  .nav-dropdown__toggle:hover,
  .nav-dropdown__toggle.active {
    background: rgba(255,191,96,0.07);
    color: var(--gold);
  }

  .nav-dropdown__menu {
    position: static;
    transform: none !important;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.2s ease;
    background: rgba(255, 191, 96, 0.03);
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    pointer-events: none;
    min-width: 0;
  }

  .nav-dropdown.open .nav-dropdown__menu {
    max-height: 280px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-dropdown__menu a {
    padding: 0.62rem 1.95rem;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255,194,95,0.04);
  }

  .main-nav .nav-soon--top {
    display: flex;
    padding: 0.78rem 1.35rem;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(255, 194, 95, 0.06);
  }

  .nav-dropdown__menu .nav-dropdown__soon {
    padding: 0.62rem 1.95rem;
    font-size: 0.82rem;
  }

  .main-nav .nav-auth-btn.nav-soon {
    width: 100%;
    justify-content: flex-start;
    margin-top: 0.2rem;
    border-top: 1px solid rgba(255, 191, 96, 0.1);
    border-radius: 0;
  }
}

@media (max-width: 760px) {
  body {
    padding-top: 4.5rem;
  }

  .top-header,
  .hero,
  .stats-bar,
  .premium-services,
  .atelier-split,
  .brand-strip,
  .contact-hero,
  .contact-grid,
  .contact-map-section,
  .projects,
  .landing-cta,
  .contact-page,
  .site-footer {
    width: min(1500px, calc(100% - 1rem));
  }

  .top-header {
    padding: 0.55rem 0.85rem;
  }

  .hero-actions-overlay {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-proof {
    gap: 0.35rem;
    margin-bottom: 0.9rem;
  }

  .hero-proof span {
    min-height: 1.65rem;
    padding: 0.3rem 0.5rem;
  }

  .hero-stat-panel {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    margin-top: 0.95rem;
    border-radius: 12px;
    white-space: normal;
    transform: translateY(8px);
  }

  .hero-stat-panel--visible {
    transform: translateY(0);
  }

  h1 {
    font-size: clamp(1.7rem, 8vw, 2.7rem);
  }

  .stats-bar,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .card-image {
    height: 165px;
    background-size: cover;
    background-position: center;
  }

  .projects h2 {
    font-size: clamp(1.75rem, 9vw, 2.4rem);
  }

  .premium-services,
  .client-value,
  .atelier-split,
  .landing-cta {
    padding: 1.15rem 1rem 1.25rem;
  }

  .landing-section-head h2,
  .client-value__head h2,
  .atelier-split h2,
  .landing-cta h2 {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
  }

  .client-value__grid {
    grid-template-columns: 1fr;
  }

  .premium-service-card {
    padding: 1rem;
  }

  .premium-service-card__num {
    margin-bottom: 1rem;
    font-size: 1.9rem;
  }

  .brand-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-strip span {
    min-height: 3.2rem;
  }

  .brand-strip span:nth-child(2n) {
    border-right: none;
  }

  .landing-cta {
    flex-direction: column;
    align-items: flex-start;
    margin-top: -1.2rem;
  }

  .landing-cta .btn-hero-request {
    width: 100%;
    min-width: 0;
  }

  .contact-hero,
  .community-hero,
  .community-feed,
  .community-submit,
  .contact-page-panel,
  .contact-map-section {
    padding: 1.15rem 1rem 1.25rem;
  }

  .community-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .community-hero__actions .btn-hero-request,
  .community-hero__actions .btn-hero-outline {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .contact-info-panel {
    padding: 1.15rem 1rem 1.25rem;
  }

  .contact-info-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 0.7rem 0;
  }

  .contact-map-card {
    min-height: 220px;
  }
}

@media (min-width: 1400px) {
  .hero,
  .stats-bar,
  .projects,
  .contact-page,
  .site-footer {
    width: min(1500px, calc(100% - 1.5rem));
  }

  .hero-only-image {
    width: 100%;
    height: auto;
  }

  .card-image {
    height: 144px;
    background-size: 372% auto;
    background-position-y: 83%;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ПРОЕКТЫ — LIST VIEW & LEAD
═══════════════════════════════════════════════════════════════════════════ */

.reviews-lead {
  font-size: 0.88rem;
  color: rgba(230,210,180,0.55);
  margin: 0.2rem 0 1.2rem;
  letter-spacing: 0.01em;
}

.project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.project-goto {
  display: none;
  align-items: center;
  flex-shrink: 0;
  padding: 0.4rem 1rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 6px;
  font-size: 0.82rem;
  font-family: inherit;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.project-goto:hover { background: var(--gold); color: #1a1209; }

/* List view для карточек проектов */
.card-grid--list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.card-grid--list .project-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  border-radius: 0;
  border-bottom: 1px solid rgba(255,191,96,0.1);
  padding: 0.8rem 1rem;
  min-height: 0;
}

.card-grid--list .project-card:first-child { border-radius: 12px 12px 0 0; }
.card-grid--list .project-card:last-child  { border-radius: 0 0 12px 12px; border-bottom: none; }

.card-grid--list .card-image { display: none; }

.card-grid--list .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
  padding: 0;
}

.card-grid--list .project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.card-grid--list .card-body h3 {
  font-size: 1rem;
  margin: 0;
  flex: 1;
}

.card-grid--list .project-goto { display: inline-flex; }

.card-grid--list .card-tags,
.card-grid--list .project-link { display: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   АЛФАВИТНЫЙ ФИЛЬТР + ПЕРЕКЛЮЧАТЕЛЬ ВИД/СПИСОК
═══════════════════════════════════════════════════════════════════════════ */

.alpha-filter {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.alpha-lang { display: flex; gap: 0.4rem; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
  background: transparent;
  border: 1px solid rgba(255,191,96,0.3);
  color: rgba(230,210,180,0.6);
  border-radius: 6px;
  font-size: 0.78rem;
  font-family: inherit;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.lang-btn svg { display: block; }

.lang-btn.active,
.lang-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.alpha-letters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.2rem;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,191,96,0.3) transparent;
}

.alpha-letters::-webkit-scrollbar { height: 3px; }
.alpha-letters::-webkit-scrollbar-track { background: transparent; }
.alpha-letters::-webkit-scrollbar-thumb { background: rgba(255,191,96,0.3); border-radius: 2px; }

.alpha-btn {
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
  min-width: 1.8rem;
  background: transparent;
  border: 1px solid rgba(255,191,96,0.2);
  color: rgba(230,210,180,0.55);
  border-radius: 4px;
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.alpha-btn:hover { border-color: rgba(255,191,96,0.6); color: var(--gold); }
.alpha-btn.active { background: rgba(255,191,96,0.12); border-color: var(--gold); color: var(--gold); }

.view-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.view-btns { display: flex; gap: 0.4rem; }

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: transparent;
  border: 1px solid rgba(255,191,96,0.25);
  color: rgba(230,210,180,0.55);
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.view-btn.active,
.view-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255,191,96,0.07);
}

.view-btn svg { width: 14px; height: 14px; }

.request-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 1.1rem;
  background: var(--gold);
  color: #0e0c08;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, opacity 0.2s;
}

.request-btn:hover { opacity: 0.88; }

/* ═══════════════════════════════════════════════════════════════════════════
   СТРАНИЦА ОБЗОРЫ
═══════════════════════════════════════════════════════════════════════════ */

.reviews-page {
  width: min(1500px, calc(100% - 2.2rem));
  margin-inline: auto;
  margin-top: 0.55rem;
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(11,14,21,0.9), rgba(7,10,16,0.9));
  padding: 1.55rem 0.95rem 1.85rem;
}

.reviews-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 0.25rem;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.2rem;
}

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

.review-card {
  border: 1px solid rgba(255,191,96,0.12);
  border-radius: 10px;
  background: rgba(10,12,20,0.97);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}

.review-card:hover { border-color: rgba(255,191,96,0.35); }

.review-photos {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  grid-template-rows: repeat(2, 100px);
  gap: 2px;
}

.rv-photo {
  background-image: url('../img/hero-reference.png');
  background-size: cover;
  background-position: center;
}

.rv-photo-1 { background-position: 17% center; }
.rv-photo-2 { background-position: 40% center; }
.rv-photo-3 { background-position: 62% center; }
.rv-photo-4 { background-position: 84% center; }

.review-body {
  padding: 0.9rem 0.85rem 0.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.review-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  background: rgba(255,191,96,0.1);
  border: 1px solid rgba(255,191,96,0.25);
  color: var(--gold);
  border-radius: 20px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: flex-start;
}

.review-model {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}

.review-row { display: block; }

.review-desc {
  font-size: 0.82rem;
  color: rgba(230,210,180,0.55);
  line-height: 1.55;
  margin: 0;
}

.review-short {
  display: none;
  font-size: 0.82rem;
  color: rgba(230,210,180,0.6);
  margin: 0;
  line-height: 1.4;
}

.review-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.rv-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(255,191,96,0.3);
  border-radius: 5px;
  font-size: 0.76rem;
  color: rgba(230,210,180,0.7);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.rv-link:hover { border-color: var(--gold); color: var(--gold); }

.review-goto {
  display: none;
  align-items: center;
  flex-shrink: 0;
  padding: 0.4rem 1rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 6px;
  font-size: 0.82rem;
  font-family: inherit;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.review-goto:hover { background: var(--gold); color: #1a1209; }

/* List view — обзоры */
.review-grid--list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.review-grid--list .review-card {
  flex-direction: row;
  border-radius: 0;
  border-bottom: 1px solid rgba(255,191,96,0.1);
  padding: 0.8rem 1rem;
}

.review-grid--list .review-card:first-child { border-radius: 10px 10px 0 0; }
.review-grid--list .review-card:last-child  { border-radius: 0 0 10px 10px; border-bottom: none; }

.review-grid--list .review-photos,
.review-grid--list .review-badge,
.review-grid--list .review-desc,
.review-grid--list .review-links { display: none; }

.review-grid--list .review-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 0;
  gap: 0.35rem;
}

.review-grid--list .review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.review-grid--list .review-model { font-size: 1.05rem; margin: 0; flex: 1; }
.review-grid--list .review-short { display: block; }
.review-grid--list .review-goto  { display: inline-flex; }

/* ═══════════════════════════════════════════════════════════════════════════
   СТРАНИЦА БРЕНДЫ
═══════════════════════════════════════════════════════════════════════════ */

.brands-hero {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
  padding: 5rem 1.5rem 2rem;
  margin-top: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(11,14,21,0.9), rgba(7,10,16,0.9));
}

.brands-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(6,8,13,0.6) 38%, rgba(6,8,13,0.2) 100%);
  z-index: 0;
  border-radius: inherit;
}

.brands-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 90% at 80% 50%, rgba(210,161,72,0.07) 0%, transparent 70%);
}

.brands-hero__inner {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  order: 1;
  margin-right: -80px;
}

.brands-hero__visual {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  order: 2;
  mask-image: linear-gradient(to right, transparent 0%, black 25%, black 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%, black 75%, transparent 100%);
}

.brands-hero__photo {
  width: 100%;
  max-width: 520px;
  height: 280px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  opacity: 0.88;
  mask-image: linear-gradient(to left, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 50%, transparent 100%);
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.brands-hero__title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  color: #f0ede8;
  margin: 0.4rem 0 1rem;
  white-space: nowrap;
  text-shadow: 0 2px 24px rgba(0,0,0,0.85), 0 1px 4px rgba(0,0,0,0.9);
}

.brands-hero__lead {
  font-size: 0.92rem;
  color: rgba(230,210,180,0.7);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 1.6rem;
}

.brands-hero__badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.brands-hero__badges li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: rgba(230,210,180,0.75);
}

.brands-hero__badges svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--gold);
}

/* Фильтры и сетка */
.brands-page {
  width: min(1500px, calc(100% - 2.2rem));
  margin-inline: auto;
  margin-top: 0.8rem;
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(11,14,21,0.9), rgba(7,10,16,0.9));
  padding: 1.55rem 0.95rem 1.85rem;
}

.brand-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2rem;
}

.brand-filters button {
  padding: 0.4rem 1rem;
  background: transparent;
  border: 1px solid rgba(255,191,96,0.25);
  color: rgba(230,210,180,0.6);
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.brand-filters button.active,
.brand-filters button:hover {
  background: rgba(210,161,72,0.12);
  border-color: var(--gold);
  color: var(--gold);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1px;
  border: 1px solid rgba(255,191,96,0.12);
  border-radius: 12px;
  overflow: hidden;
}

.brand-card {
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.2rem 1rem;
  background: rgba(10,12,20,0.97);
  border-right: 1px solid rgba(255,191,96,0.1);
  border-bottom: 1px solid rgba(255,191,96,0.1);
  transition: background 0.2s;
}

.brand-card:hover { background: rgba(20,18,12,0.99); }
.brand-card:nth-child(4n) { border-right: none; }

.brand-card__name { margin-bottom: 0.5rem; line-height: 1; }

.bn-caps {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f0ede8;
}

.bn-caps-sm {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0ede8;
}

.bn-serif {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 1.7rem;
  color: #f0ede8;
}

.bn-script {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 1.65rem;
  color: #f0ede8;
}

.bn-italic {
  font-family: "Inter", sans-serif;
  font-style: italic;
  font-size: 1.35rem;
  color: #f0ede8;
}

/* Бренды с официальным строчным написанием: aiwa, naim, arcam, harman/kardon */
.bn-lower {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  color: #f0ede8;
}

.brand-card__year {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(230,210,180,0.4);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.brand-card__country {
  font-size: 0.78rem;
  color: rgba(230,210,180,0.55);
  margin-bottom: 0.6rem;
}

.brand-card__desc {
  font-size: 0.8rem;
  color: rgba(230,210,180,0.5);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 0.8rem;
}

.brand-card__link {
  font-size: 0.76rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.05em;
  opacity: 0.7;
  transition: opacity 0.2s;
  align-self: flex-start;
}

.brand-card__link:hover { opacity: 1; }

/* CTA */
.brands-cta {
  margin-top: 0.8rem;
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(11,14,21,0.9), rgba(7,10,16,0.9));
  padding: 2rem 1.5rem;
}

.brands-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.brands-cta__title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 0.4rem;
}

.brands-cta__sub {
  font-size: 0.88rem;
  color: rgba(230,210,180,0.55);
  margin: 0;
}

.brands-cta__actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.6rem;
  background: var(--gold);
  color: #0e0c08;
  border: none;
  border-radius: 6px;
  font-size: 0.88rem;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-gold:hover { opacity: 0.88; }

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.6rem;
  background: transparent;
  border: 1px solid rgba(255,191,96,0.45);
  color: rgba(230,210,180,0.8);
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: inherit;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); }

/* ═══════════════════════════════════════════════════════════════════════════
   СЕКЦИИ БРЕНДОВ
═══════════════════════════════════════════════════════════════════════════ */

.brands-section {
  margin-bottom: 2.8rem;
  scroll-margin-top: 5rem;
}

.brands-section__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 600;
  color: var(--text-main);
  padding: 0.55rem 0 0.65rem;
  margin: 0 0 1rem;
  border-bottom: 1px solid rgba(255,191,96,0.18);
  letter-spacing: 0.02em;
}

.bst-flag {
  font-style: normal;
  font-size: 1.15em;
  line-height: 1;
}

/* Навигация по разделам */
.brands-sections-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.brands-sections-nav a {
  display: inline-block;
  padding: 0.28rem 0.75rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(200,180,140,0.6);
  border: 1px solid rgba(255,191,96,0.2);
  border-radius: 5px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.brands-sections-nav a:hover {
  color: var(--gold);
  border-color: rgba(255,191,96,0.55);
  background: rgba(255,191,96,0.06);
}

/* list-вид для brand-grid */
.brand-grid--list {
  display: flex !important;
  flex-direction: column;
  gap: 0.5rem;
}

.brand-grid--list .brand-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1rem;
  border-right: none;
  border-bottom: 1px solid rgba(255,191,96,0.08);
}

.brand-grid--list .brand-card__name {
  min-width: 120px;
  font-size: 0.88rem;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.brand-grid--list .brand-card__year,
.brand-grid--list .brand-card__country {
  min-width: 110px;
  margin-bottom: 0;
  font-size: 0.72rem;
}

.brand-grid--list .brand-card__desc {
  flex: 1;
  margin-bottom: 0;
  font-size: 0.78rem;
  -webkit-line-clamp: 1;
}

.brand-grid--list .brand-card__link {
  white-space: nowrap;
  margin-top: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   АДАПТИВ — БРЕНДЫ + ОБЗОРЫ
═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .brand-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .brand-card:nth-child(4n) { border-right: 1px solid rgba(255,191,96,0.1); }
  .brand-card:nth-child(3n) { border-right: none; }
}

@media (max-width: 900px) {
  .brands-hero__visual { display: none; }
  .brands-hero__inner  { max-width: 100%; margin-right: 0; }
  .brands-hero__title  { white-space: normal; font-size: clamp(1.35rem, 3.5vw, 2rem); }
  .brand-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .brand-card:nth-child(4n) { border-right: 1px solid rgba(255,191,96,0.1); }
  .brand-card:nth-child(2n) { border-right: none; }
  .review-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .brands-hero,
  .brands-page,
  .brands-cta,
  .reviews-page {
    width: min(1500px, calc(100% - 1rem));
  }

  .brands-hero { padding: 4rem 1rem 1.5rem; flex-direction: column; align-items: flex-start; }
  .brands-hero__title { white-space: normal; font-size: clamp(1.35rem, 5.5vw, 1.8rem); }
  .brands-hero__lead  { font-size: 0.85rem; max-width: 100%; margin-bottom: 1rem; }

  .brand-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .review-grid { grid-template-columns: 1fr; }
  .review-photos { grid-template-rows: repeat(2, 90px); }

  .view-toggle { flex-wrap: wrap; gap: 0.5rem; }
  .request-btn { width: 100%; justify-content: center; }

  .brand-filters button,
  .project-filters button { font-size: 0.75rem; padding: 0.35rem 0.7rem; }

  .brands-cta__inner { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .brands-cta__actions { flex-direction: column; width: 100%; }
  .btn-gold, .btn-outline-light { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .brand-grid { grid-template-columns: 1fr; }
  .brand-card:nth-child(n) { border-right: none; }
  .brands-hero__title { font-size: clamp(1.25rem, 6vw, 1.6rem); }
  .alpha-btn { min-width: 1.6rem; padding: 0.2rem 0.35rem; font-size: 0.72rem; }
  .lang-btn  { padding: 0.2rem 0.4rem; }
  .review-grid--list .review-card,
  .card-grid--list .project-card { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .review-grid--list .review-goto,
  .card-grid--list .project-goto  { align-self: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO ГЛАВНОЙ — АДАПТИВ (стоит в конце чтобы не перебивался другими блоками)
═══════════════════════════════════════════════════════════════════════════ */

/* Планшет 769–1024px: текст поверх фото, компактнее */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero-title-main { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
  .hero-lead       { font-size: 0.9rem; max-width: 28rem; }
  .hero-content-overlay { max-width: min(34rem, 88%); }
}

/* Телефон 481–768px: фото сверху, текст снизу */
@media (max-width: 768px) {
  .hero {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 10px;
  }

  .hero-only-image {
    width: 100%;
    height: 230px !important;  /* !important перебивает reset выше */
    object-fit: cover;
    object-position: center 30%;
    flex-shrink: 0;
  }

  .hero-content-overlay {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    max-width: 100%;
    padding: 1.15rem 1rem 1.35rem;
    background: linear-gradient(180deg, rgba(10,12,20,0.98), rgba(6,8,14,1));
    pointer-events: auto;
  }

  .hero-tag        { font-size: 0.62rem; letter-spacing: 0.22em; margin-bottom: 0.55rem; }
  .hero-title-main { font-size: clamp(1.45rem, 5.5vw, 1.95rem); margin-bottom: 0.6rem; }
  .hero-lead       { font-size: 0.84rem; max-width: 100%; margin-bottom: 1rem; }

  .hero-actions-overlay {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
  }

  .btn-hero-outline,
  .btn-hero-request { font-size: 0.7rem; padding: 0.5rem 0.9rem; }
}

/* Маленький телефон ≤ 480px */
@media (max-width: 480px) {
  .hero-only-image {
    height: 185px !important;
    object-position: center 20%;
  }

  .hero-content-overlay { padding: 0.95rem 0.85rem 1.1rem; }
  .hero-title-main      { font-size: clamp(1.25rem, 7vw, 1.65rem); }
  .hero-lead            { font-size: 0.8rem; }

  .hero-actions-overlay {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .btn-hero-outline,
  .btn-hero-request {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
