/* Тема «Діловий»: премиальная корпоративная палитра — глубокая ночная синь,
   золотые акценты, стеклянные панели, мягкие анимации появления. */
:root {
  --biz-bg: #081527;
  --biz-bg-2: #0d2039;
  --biz-panel: rgba(10, 26, 46, 0.72);
  --biz-line: rgba(176, 205, 240, 0.14);
  --biz-gold: #d9b672;
  --biz-gold-soft: #f0dcae;
  --biz-text: #e9f1fb;
  --biz-muted: #a9bed6;
}

body {
  background: var(--biz-bg);
  color: var(--biz-text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  letter-spacing: 0.005em;
}

/* Живой фоновый градиент под контентом: два медленно дышащих световых пятна */
body::before {
  content: "";
  position: fixed;
  inset: -20vh -20vw;
  z-index: -2;
  background:
    radial-gradient(38vw 38vw at 18% 12%, rgba(46, 108, 178, 0.38), transparent 65%),
    radial-gradient(30vw 30vw at 85% 78%, rgba(217, 182, 114, 0.18), transparent 65%),
    linear-gradient(180deg, var(--biz-bg-2), var(--biz-bg) 60%);
  animation: bizAura 24s ease-in-out infinite alternate;
}

.bg-layer { opacity: 0.22; filter: saturate(0.85) contrast(1.05); }
.bg-layer::after {
  background:
    linear-gradient(180deg, rgba(8, 21, 39, 0.78), rgba(8, 21, 39, 0.94)),
    radial-gradient(120% 80% at 50% 0%, transparent, rgba(8, 21, 39, 0.6));
}

/* --- Header / Footer: стеклянные панели с золотой линией --- */
.site-header,
.site-footer {
  position: relative;
  background: var(--biz-panel);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.site-header { border-bottom: 1px solid var(--biz-line); animation: bizDrop 0.7s cubic-bezier(.2,.7,.3,1) both; }
.site-footer { border-top: 1px solid var(--biz-line); }
.site-header::after,
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 182, 114, 0.75), transparent);
  background-size: 200% 100%;
  animation: bizSheen 9s linear infinite;
}
.site-header::after { bottom: -1px; }
.site-footer::before { top: -1px; }

.site-header .logo {
  height: 46px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
  transition: transform 0.35s cubic-bezier(.2,.7,.3,1);
}
.site-header .logo:hover { transform: translateY(-2px) scale(1.03); }

/* --- Титульный блок --- */
.brand { animation: bizRise 0.9s cubic-bezier(.2,.7,.3,1) 0.1s both; }
.brand .logo { filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5)); }

.site-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.015em;
  background: linear-gradient(100deg, #ffffff 10%, var(--biz-gold-soft) 55%, #ffffff 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: bizSheen 12s linear infinite;
}
.brand::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, transparent, var(--biz-gold), transparent);
  animation: bizRule 1.2s cubic-bezier(.2,.7,.3,1) 0.5s both;
}
.site-description { color: var(--biz-muted); font-size: 1.03rem; }

/* --- Контент как премиальная карточка --- */
.content {
  position: relative;
  padding: 1.6rem 1.3rem;
  border: 1px solid var(--biz-line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(19, 42, 70, 0.55), rgba(11, 27, 48, 0.5));
  box-shadow: 0 24px 60px rgba(2, 8, 18, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: bizRise 1s cubic-bezier(.2,.7,.3,1) 0.25s both;
}
.content h1, .content h2, .content h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  color: #fff;
  margin-top: 1.6em;
}
.content h2 { padding-left: 0.7rem; border-left: 3px solid var(--biz-gold); }
.content blockquote {
  margin: 1.4em 0;
  padding: 0.6rem 1.1rem;
  border-left: 2px solid var(--biz-gold);
  background: rgba(217, 182, 114, 0.07);
  color: var(--biz-gold-soft);
  font-style: italic;
}
.content a {
  color: var(--biz-gold-soft);
  text-decoration: none;
  background: linear-gradient(var(--biz-gold), var(--biz-gold)) 0 100% / 0 1px no-repeat;
  transition: background-size 0.35s ease, color 0.35s ease;
}
.content a:hover { color: #fff; background-size: 100% 1px; }
.content img { border-radius: 12px; box-shadow: 0 16px 40px rgba(2, 8, 18, 0.5); transition: transform 0.5s cubic-bezier(.2,.7,.3,1); }
.content img:hover { transform: scale(1.015); }

/* --- Кнопки контактов: золотая заливка со световым блеском --- */
.contact-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #1c4f8c, #2a6fbd);
  color: #fff;
  border-radius: 6px;
  border-color: rgba(217, 182, 114, 0.35);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  box-shadow: 0 8px 22px rgba(4, 16, 32, 0.45);
  transition: transform 0.28s cubic-bezier(.2,.7,.3,1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.contact-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.65s ease;
}
.contact-btn:hover {
  transform: translateY(-2px);
  border-color: var(--biz-gold);
  box-shadow: 0 14px 30px rgba(4, 16, 32, 0.55), 0 0 0 1px rgba(217, 182, 114, 0.3);
}
.contact-btn:hover::before { transform: translateX(120%); }
.contact-btn:active { transform: translateY(0); }

.header-contacts .contact-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(176, 205, 240, 0.28);
  color: #d7e6f7;
  box-shadow: none;
}
.header-contacts .contact-btn:hover { background: rgba(217, 182, 114, 0.14); color: #fff; }

.bot-link .contact-btn {
  padding: 0.7rem 1.6rem;
  background: linear-gradient(135deg, var(--biz-gold), #b8914a);
  color: #14243c;
  font-weight: 700;
  animation: bizPulse 3.6s ease-in-out infinite;
}

/* --- Переключатель языка --- */
.lang-switch a {
  color: var(--biz-muted);
  border: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.lang-switch a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.lang-switch a.active {
  color: #14243c;
  background: var(--biz-gold);
  text-decoration: none;
  border-color: var(--biz-gold);
}

.powered { color: #7f97b3; letter-spacing: 0.06em; text-transform: uppercase; }

@keyframes bizAura {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(0, -3%, 0) scale(1.08); }
}
@keyframes bizSheen {
  from { background-position: 0% 50%; }
  to   { background-position: 200% 50%; }
}
@keyframes bizRise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes bizDrop {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes bizRule {
  from { width: 0; opacity: 0; }
  to   { width: 120px; opacity: 1; }
}
@keyframes bizPulse {
  0%, 100% { box-shadow: 0 8px 22px rgba(4, 16, 32, 0.45), 0 0 0 0 rgba(217, 182, 114, 0.45); }
  50%      { box-shadow: 0 8px 22px rgba(4, 16, 32, 0.45), 0 0 0 12px rgba(217, 182, 114, 0); }
}

@media (min-width: 720px) {
  .content { padding: 2.4rem 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  body::before, .site-header::after, .site-footer::before,
  .site-title, .brand, .content, .site-header, .bot-link .contact-btn, .brand::after {
    animation: none !important;
  }
  .site-title { color: #fff; -webkit-text-fill-color: currentColor; }
  .brand::after { width: 120px; opacity: 1; }
}
