/*
 * V69 brand pass: типографическая логосистема (приказ шефа 27.07).
 * Рисованные лого заменяются лок-апом «знак + VNISH GLOBAL основным
 * шрифтом сайта»: шапка, интерактивные буквы в подвале.
 * Rollback: удалить файл + v69-brand.js из index.html.
 */

/* ---------- шапка: знак + типографический лок-ап ---------- */
.brand.brand--master {
  width: auto;
  height: auto;
  gap: 12px;
}

.site-header.is-scrolled .brand.brand--master {
  height: auto;
}

.brand.brand--master img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  object-position: 50% 50%;
  mix-blend-mode: normal;
  filter: drop-shadow(0 0 10px rgba(238, 176, 54, 0.28));
}

.brand.brand--master span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand.brand--master b {
  color: #e3c47d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.brand.brand--master small {
  color: #7b7870;
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

/* сжатие окна: шапка не должна налезать сама на себя */
@media (max-width: 1250px) {
  .site-nav { gap: 22px; }
  .site-nav a { font-size: 8px; letter-spacing: 0.18em; }
}

@media (max-width: 1120px) {
  .brand.brand--master b { font-size: 11px; letter-spacing: 0.12em; }
  .site-header { gap: 20px; padding: 0 26px; }
  .site-nav { gap: 15px; }
}

@media (max-width: 880px) {
  .site-nav { display: none; }
}

/* ---------- подвал: гигантский типографический wordmark, буквы интерактивные ---------- */
.footer-word.footer-word--approved.v69-type-mode > img,
.footer-word.footer-word--approved.v69-type-mode .footer-word-art {
  display: none !important;
}

.v69-footer-type {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  perspective: 900px;
}

/* объём без задвоения: сам элемент = тёмная экструзия, лицо = верхний слой ::after */
.v69-footer-type i {
  position: relative;
  z-index: 1;
  font-style: normal;
  font-weight: 800;
  font-size: clamp(52px, 10.8vw, 158px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: #5f4a1d;
  -webkit-text-fill-color: #5f4a1d;
  text-shadow:
    0 1px 0 #6a5321,
    0 2px 0 #614b1e,
    0 3px 0 #58431b,
    0 4px 0 #4f3b18,
    0 5px 0 #463415,
    0 6px 0 #3d2d12,
    0 7px 1px #35270f,
    0 16px 26px rgba(0, 0, 0, 0.66);
  animation: v69LetterWave 14s ease-in-out infinite;
  animation-delay: calc(var(--li, 0) * 0.9s);
}

/* волна: буквы по одной неторопливо приподнимаются, лицо вспыхивает сочным золотом */
@keyframes v69LetterWave {
  0%, 4% { transform: none; }
  8% { transform: translateY(-7px) scale(1.07); }
  13.5% { transform: none; }
  100% { transform: none; }
}

.v69-footer-type i::after {
  animation: v69LetterFace 14s ease-in-out infinite;
  animation-delay: calc(var(--li, 0) * 0.9s);
}

@keyframes v69LetterFace {
  0%, 4% { filter: brightness(1) saturate(1); }
  8% { filter: brightness(1.45) saturate(1.2) drop-shadow(0 6px 16px rgba(244, 205, 112, 0.45)); }
  13.5% { filter: brightness(1) saturate(1); }
  100% { filter: brightness(1) saturate(1); }
}

.v69-footer-type i::after {
  content: attr(data-ch);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #faeec4 4%, #eed394 46%, #bf8a3f 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
}

.v69-footer-type .v69-ft-space {
  width: 0.34em;
}


/* ---------- кнопки FIND MY BUILD и CONTACTS: вдвое меньше по площади, шрифт прежний ---------- */
.header-actions .button--small {
  min-height: 30px;
  padding-inline: 13px;
}

.floating-contacts__button {
  min-height: 35px;
  gap: 7px;
  padding: 0 13px;
  box-shadow:
    0 10px 26px rgba(189, 140, 55, 0.2),
    inset 0 1px rgba(255, 255, 255, 0.24);
}

/* ---------- плашки Телеги и Вотсапа: стекло 2026, фирменные градиентные иконки ---------- */
.floating-contacts__menu {
  width: 210px;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
}

.floating-contacts__menu a {
  min-height: 52px;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0 12px 0 10px;
  background: rgba(12, 15, 15, 0.62);
  transition: background 0.24s ease, color 0.24s ease, border-color 0.24s ease, transform 0.24s var(--ease), box-shadow 0.24s ease;
}

.floating-contacts__menu a b {
  display: none;
}

.floating-contacts__menu a i {
  width: 34px;
  height: 34px;
  font-size: 0;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.28),
    0 6px 14px rgba(0, 0, 0, 0.38);
}

.floating-contacts__menu a i svg {
  display: block;
  width: 18px;
  height: 18px;
}

.floating-contacts__menu a[href*="wa.me"] {
  border-color: rgba(37, 211, 102, 0.26);
  color: #e9fff2;
}

.floating-contacts__menu a[href*="wa.me"] i {
  background: linear-gradient(135deg, #5ff085, #25d366 58%, #1faa59);
}

.floating-contacts__menu a[href*="wa.me"]:hover,
.floating-contacts__menu a[href*="wa.me"]:focus-visible {
  border-color: rgba(37, 211, 102, 0.6);
  background: rgba(17, 34, 25, 0.85);
  color: #fff;
  transform: translateX(-2px);
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.16);
}

.floating-contacts__menu a[href*="t.me"] {
  border-color: rgba(42, 171, 238, 0.28);
  color: #e8f6ff;
}

.floating-contacts__menu a[href*="t.me"] i {
  background: linear-gradient(135deg, #54c8f2, #2aabee 58%, #1e96c8);
}

.floating-contacts__menu a[href*="t.me"]:hover,
.floating-contacts__menu a[href*="t.me"]:focus-visible {
  border-color: rgba(42, 171, 238, 0.62);
  background: rgba(15, 30, 40, 0.85);
  color: #fff;
  transform: translateX(-2px);
  box-shadow: 0 10px 26px rgba(42, 171, 238, 0.16);
}

.floating-contacts__menu a:active {
  transform: scale(0.97);
}

/* ---------- лакшери-эффекты финальных кнопок ---------- */
@property --v69-edge {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.final-cta .button {
  position: relative;
  overflow: hidden;
}

.final-cta .button--gold {
  animation: v69LuxBreath 5.2s ease-in-out infinite;
}

.final-cta .button--gold::after {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.55) 50%, transparent 58%);
  transform: translateX(-130%);
  animation: v69Sheen 4.8s cubic-bezier(0.55, 0.08, 0.35, 0.92) infinite;
  animation-delay: 1.1s;
  pointer-events: none;
}

@keyframes v69Sheen {
  0%, 52% { transform: translateX(-130%); }
  72% { transform: translateX(130%); }
  100% { transform: translateX(130%); }
}

@keyframes v69LuxBreath {
  0%, 100% {
    box-shadow: 0 16px 46px rgba(189, 140, 55, 0.22), inset 0 1px rgba(255, 255, 255, 0.28);
  }
  50% {
    box-shadow: 0 22px 66px rgba(225, 177, 88, 0.42), inset 0 1px rgba(255, 255, 255, 0.4);
  }
}

.final-cta .button--glass {
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(10, 12, 12, 0.5), rgba(10, 12, 12, 0.5)) padding-box,
    conic-gradient(from var(--v69-edge, 0deg), rgba(231, 199, 125, 0) 0%, rgba(231, 199, 125, 0.75) 10%, rgba(159, 217, 230, 0.45) 20%, rgba(231, 199, 125, 0) 32%) border-box;
  animation: v69Edge 6s linear infinite;
}

@keyframes v69Edge {
  to { --v69-edge: 360deg; }
}

.final-cta .button--glass:hover {
  background:
    linear-gradient(rgba(16, 18, 18, 0.72), rgba(16, 18, 18, 0.72)) padding-box,
    conic-gradient(from var(--v69-edge, 0deg), rgba(231, 199, 125, 0.1) 0%, rgba(244, 221, 164, 0.95) 10%, rgba(159, 217, 230, 0.6) 20%, rgba(231, 199, 125, 0.1) 32%) border-box;
}

@media (max-width: 760px) {
  .brand.brand--master { gap: 9px; }
  .brand.brand--master img { width: 34px; height: 34px; }
  .brand.brand--master b { font-size: 10.5px; letter-spacing: 0.12em; }
  .brand.brand--master small { font-size: 5.5px; }

  .v69-footer-type i { font-size: clamp(30px, 10.4vw, 52px); text-shadow: 0 1px 0 #6a5321, 0 2px 0 #58431b, 0 3px 0 #4f3b18, 0 4px 0 #413112, 0 9px 15px rgba(0, 0, 0, 0.58); }
  .v69-footer-type i:hover { transform: translateY(-5px) scale(1.03); }

  /* плавающий CONTACTS не должен лежать на мобильном баре v68 */
  .floating-contacts { right: 14px; bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .v69-footer-type i, .v69-footer-type i::after { transition: none; animation: none; }
  .final-cta .button--gold,
  .final-cta .button--gold::after,
  .final-cta .button--glass { animation: none; }
}
