/* IS UNIVERSE — визитка. Перенос стилей 1:1 из Chatium (styles.tsx + scoped стили компонентов). 06.10.2026 */

:root {
  --text-primary: #f5f5f5;
  --text-secondary: #d0d0d0;
  --gold: #d4a853;
  --gold-light: #f0d78c;
  --gold-dark: #b8922e;
  --cosmos-bg: #0a0a0f;
  --cosmos-surface: #12121a;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: rgba(0, 0, 0, 0.4);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background-image: url('/static/img/bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

.font-display { font-family: 'Playfair Display', serif; }

/* Glassmorphism card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px var(--glass-shadow);
}
.glass-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(212, 168, 83, 0.3);
}

/* Светлая карточка формы */
.form-card {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
}

/* Gold glow text */
.text-gold { color: var(--gold); }
.text-gold-light { color: var(--gold-light); }

.gold-glow {
  text-shadow: 0 0 30px rgba(212, 168, 83, 0.3), 0 0 60px rgba(212, 168, 83, 0.1);
}
.gold-glow-strong {
  text-shadow: 0 0 40px rgba(212, 168, 83, 0.4), 0 0 80px rgba(212, 168, 83, 0.2);
}

/* Градиент золота */
.gold-gradient {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gold-border { border-color: var(--gold); }
.border-gold-light { border-color: rgba(212, 168, 83, 0.3); }
.bg-gold { background-color: var(--gold); }
.bg-gold-dark { background-color: var(--gold-dark); }

/* ===== 3D объёмный заголовок IS-UNIVERSE ===== */
.hero-title-universe {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(60px, 12vw, 110px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  margin: 0 0 10px;
  position: relative;
  filter: drop-shadow(0 22px 40px rgba(0,0,0,0.35));
}
.hero-title-universe-inner { position: relative; display: inline-block; }
.hero-title-3d {
  display: block;
  color: #ffffff;
  text-shadow:
    1px 1px 0 #c89a55, 2px 2px 0 #b88a45, 3px 3px 0 #a77a36,
    4px 4px 0 #966a28, 5px 5px 0 #855b1d, 6px 6px 0 #714b14,
    7px 7px 0 #5d3d0e, 8px 8px 0 #4a300a, 9px 9px 0 #382307,
    10px 12px 24px rgba(0,0,0,0.55), 0 22px 48px rgba(0,0,0,0.45);
  position: relative;
  z-index: 1;
  pointer-events: none;
}
.hero-title-front {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 38%, #FFF6E2 58%, #F0D080 82%, #D4AF6A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  z-index: 2;
}
.hero-title-shine {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: linear-gradient(110deg, transparent 38%, rgba(255,255,255,0.95) 50%, transparent 62%);
  background-size: 280% 100%;
  background-position: 200% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  z-index: 3;
  animation: heroTitleShine 5.5s ease-in-out infinite;
}
@keyframes heroTitleShine {
  0%, 55% { background-position: 220% 0; }
  100% { background-position: -120% 0; }
}

/* Кнопки */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0a0a0f;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  letter-spacing: 0.5px;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 168, 83, 0.3);
}

.btn-gold-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  background: transparent;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  text-decoration: none;
}
.btn-gold-outline:hover {
  background: rgba(212, 168, 83, 0.1);
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.15);
}

/* Звёзды */
.stars-bg {
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1.5px 1.5px at 50% 10%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 85% 70%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 20% 80%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 90% 15%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 45% 85%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1.5px 1.5px at 5% 50%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 65% 90%, rgba(255,255,255,0.4), transparent);
}

/* Анимации появления */
.fade-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Поле ввода золотое */
.input-gold {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(212, 168, 83, 0.5);
  color: #1a1a2e;
  border-radius: 12px;
  padding: 14px 18px;
  width: 100%;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  outline: none;
}
.input-gold:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 20px rgba(212, 168, 83, 0.25);
  background: rgba(255, 255, 255, 0.82);
}
.input-gold::placeholder { color: rgba(30, 25, 50, 0.45); }
textarea.input-gold { resize: vertical; min-height: 100px; }
.input-gold option { background: #ffffff; color: #1a1a2e; }
select.input-gold-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d4a853' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}
select.input-gold-select option { background: #ffffff; color: #1a1a2e; font-weight: 500; }

/* Разделитель золото */
.divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.3;
}

/* ===== Верхний слоган hero — белый с золотистой подсветкой (итог: белый > серебристого) ===== */
/* 03.11.2026 (Ирина): радужный перелив верхнего слогана убран - он сливался
   с фоном; вернули белый цвет с золотистой подсветкой, кегль крупнее (30px) */
.hero-eyebrow {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 30px;
  color: #ffffff;
  filter: drop-shadow(0 0 12px rgba(212, 168, 83, 0.30));
}

/* ===== Едва заметная ссылка на админку в подвале ===== */
.admin-link {
  color: rgba(212, 168, 83, 0.4);
  font-size: 11px;
}

/* ===== Бейдж под заголовком (HeroSection scoped) ===== */
.hero-slogan-badge {
  display: inline-block;
  padding: 12px 38px;
  border-radius: 100px;
  border: 1px solid rgba(212, 168, 83, 0.28);
  background: rgba(8, 8, 14, 0.5);
  box-shadow:
    0 0 20px rgba(212, 168, 83, 0.18),
    0 0 50px rgba(212, 168, 83, 0.07),
    inset 0 0 16px rgba(212, 168, 83, 0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.hero-slogan-badge .rainbow-ink {
  font-family: 'Marck Script', cursive;
  font-size: 27px;
  letter-spacing: 0.04em;
  background-image: linear-gradient(90deg, #f5d78c, #f7a8c9, #b79cf8, #7ccbf2, #9fe3a8, #f5d78c);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: glassRainbow 6s linear infinite;
}
@media (max-width: 640px) {
  .hero-slogan-badge { padding: 9px 24px; }
  .hero-slogan-badge .rainbow-ink { font-size: 20px; }
}
.hero-slogan-badge::before {
  content: '✦';
  margin-right: 14px;
  color: rgba(212, 168, 83, 0.85);
  font-size: 0.72em;
  filter: drop-shadow(0 0 6px rgba(212, 168, 83, 0.7));
  vertical-align: middle;
}
.hero-slogan-badge::after {
  content: '✦';
  margin-left: 14px;
  color: rgba(212, 168, 83, 0.85);
  font-size: 0.72em;
  filter: drop-shadow(0 0 6px rgba(212, 168, 83, 0.7));
  vertical-align: middle;
}

/* ===== Бейдж «цитата» (ProjectsSection / ContactForm scoped) ===== */
.slogan-badge {
  display: inline-block;
  padding: 20px 36px;
  color: #f0e8d0;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.8;
  text-align: center;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}
.slogan-badge::before {
  content: '── ✦ ──';
  display: block;
  color: rgba(212, 168, 83, 0.75);
  font-style: normal;
  font-size: 0.68em;
  letter-spacing: 0.28em;
  margin-bottom: 14px;
  text-align: center;
  filter: drop-shadow(0 0 5px rgba(212, 168, 83, 0.4));
}
.slogan-badge::after {
  content: '── ✦ ──';
  display: block;
  color: rgba(212, 168, 83, 0.75);
  font-style: normal;
  font-size: 0.68em;
  letter-spacing: 0.28em;
  margin-top: 14px;
  text-align: center;
  filter: drop-shadow(0 0 5px rgba(212, 168, 83, 0.4));
}

/* Бейдж в форме (светлый, ContactForm scoped) */
.form .slogan-badge,
.slogan-badge--form {
  padding: 10px 28px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(240, 215, 140, 0.22) 40%,
    rgba(220, 195, 235, 0.20) 70%,
    rgba(255, 255, 255, 0.30) 100%);
  border: 1px solid rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  color: #7a4e00;
  font-weight: 500;
  font-style: normal;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 0 0 0.5px rgba(212, 168, 83, 0.22);
  text-align: center;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
.slogan-badge--form::before, .slogan-badge--form::after { content: none; }

@media (max-width: 640px) {
  .hero-title-universe { font-size: 2.5rem; }
}

/* ===== Карточки проектов v2 (01.11): витрины с золотой подсветкой ===== */
.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(10, 10, 18, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(212, 168, 83, 0.28);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}
.pcard:hover {
  transform: translateY(-6px);
  border-color: rgba(240, 215, 140, 0.8);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55), 0 0 46px rgba(212, 168, 83, 0.30);
}
.pcard-img { position: relative; overflow: hidden; line-height: 0; }
.pcard-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}
/* без обрезки: картинка показывается целиком; zoom при наведении ограничен,
   чтобы не «съедать» края изображения */
.pcard:hover .pcard-img img { transform: scale(1.02); }
.pcard-img::after {   /* блик-волна по картинке при наведении */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 40%, rgba(255, 255, 255, 0.26) 50%, transparent 60%);
  background-size: 280% 100%;
  background-position: 220% 0;
  transition: background-position 0.9s ease;
}
.pcard:hover .pcard-img::after { background-position: -120% 0; }
.pcard-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  padding: 20px 26px 30px;
}
.pcard-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(212, 168, 83, 0.30));
}
.pcard-line {
  width: 180px;
  height: 2px;
  margin: 12px 0 4px;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent, #f5d78c, transparent);
}
.pcard-desc {
  color: var(--text-primary);
  opacity: 0.85;
  font-size: 15px;
  line-height: 1.65;
  margin: 10px 0 22px;
  flex: 1;
}
.pcard-btn { flex-shrink: 0; }

/* ===== Кнопка-витрина v2 (01.11): матовое стекло + радужный перелив текста ===== */
.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 30px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 22px rgba(0, 0, 0, 0.35);
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.btn-glass span,
.btn-glass i {
  background-image: linear-gradient(90deg, #f5d78c, #f7a8c9, #b79cf8, #7ccbf2, #9fe3a8, #f5d78c);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: glassRainbow 6s linear infinite;
}
@keyframes glassRainbow {
  to { background-position: 300% 0; }
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(245, 215, 140, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 30px rgba(212, 168, 83, 0.28);
}

/* ===== Подвал v3 (01.11): три колонки в духе Бижутерии ===== */
.footband {
  position: relative;
  padding: 38px 24px 20px;
  background: rgba(8, 8, 14, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(212, 168, 83, 0.28);
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 0.75fr 0.95fr 1.1fr;
  gap: 26px;
  align-items: start;
}
.foot-col-req { margin-left: 38px; }
.foot-col-cont { margin-left: 58px; } /* 03.11 (Ирина): Контакты правее на 1 см (было 20px) */
.foot-lines .pcont { display: inline-block; padding-left: 23px; }
.foot-brand { text-align: center; }
.foot-brand-head { display: flex; align-items: flex-start; justify-content: center; gap: 18px; }
.foot-brand-head img { width: 88px; height: 88px; border-radius: 16px; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4); flex-shrink: 0; }
.foot-brand-name { text-align: left; }
.foot-brand-name h3 { font-size: 26px; font-weight: 700; margin: 6px 0 2px; }
.foot-lead {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 15.5px;
  color: #f0e8d0;
  text-shadow: 0 0 14px rgba(212, 168, 83, 0.35);
  margin: 0;
  line-height: 1.45;
}
.foot-lines { margin-top: 14px; }
.foot-lines p { color: var(--text-secondary); font-size: 13.5px; font-weight: 600; line-height: 1.7; margin: 5px 0; }
.foot-lines .star { color: rgba(212, 168, 83, 0.75); font-size: 10px; margin-right: 9px; vertical-align: 3px; }
.foot-reqcol { font-size: 14px; font-weight: 600; color: var(--text-secondary); line-height: 1.75; margin: 0; }
.foot-brand { text-align: left; }
.foot-about {
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.7;
  margin-top: 10px;
}
.foot-req { font-size: 11.5px; color: rgba(245, 245, 245, 0.42); margin: 14px 0 0; line-height: 1.6; }
.foot-col { text-align: left; }
.foot-col h4 {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 6px 0 14px;
}
.foot-col a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 5px 0;
  transition: color 0.25s ease;
}
.foot-col a:hover { color: var(--gold-light); }
.foot-col a .star { color: rgba(212, 168, 83, 0.75); font-size: 10px; }
.foot-col a.frow img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.25s ease;
}
.foot-col a.frow:hover img { transform: scale(1.12); }
.foot-bottom {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid rgba(212, 168, 83, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: rgba(245, 245, 245, 0.4);
}
.foot-bottom .admin-link { font-size: 11px; }

@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr; gap: 22px; text-align: center; }
  .foot-grid .foot-col { justify-self: center; }
  .foot-col-req { margin-left: 0; }
  .foot-col-cont { margin-left: 0; }
  .foot-col { text-align: center; }
  .foot-col a { justify-content: center; }
  .foot-brand-head { justify-content: center; }
  .foot-brand-name { text-align: center; }
}