/* ITDataGovernance – Custom styles */

html {
  font-size: 16px;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #080508; /* тёмный графитово-сливовый */
  color: #f5f5f8;
  line-height: 1.6;
}

small {
  font-size: 1rem; /* не меньше 16px */
}

/* Palette */
:root {
  --itg-bg: #080508;
  --itg-bg-alt: #120b16;
  --itg-card: #1b1224;
  --itg-border-soft: rgba(255, 255, 255, 0.08);
  --itg-primary: #f0b13f;
  --itg-primary-soft: rgba(240, 177, 63, 0.2);
  --itg-accent: #38bfa3;
  --itg-text: #f5f5f8;
  --itg-text-muted: #9ca3b7;
}

/* Navbar */

.itdg-navbar {
  background: rgba(8, 5, 8, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.itdg-navbar .navbar-brand {
  font-size: 1rem;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--itg-primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0, #f0b13f, #4b260a);
  color: #0a0b11;
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--itg-text-muted);
}

.navbar-nav .nav-link {
  font-size: 1rem;
  color: var(--itg-text-muted);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--itg-text);
}

.btn-primary {
  background: linear-gradient(135deg, #f0b13f, #f57e37);
  border: none;
  color: #111;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f7c96b, #ff964f);
  color: #111;
}

.btn-ghost {
  border-radius: 999px;
  border: 1px solid var(--itg-border-soft);
  color: var(--itg-text);
  background: rgba(34, 20, 39, 0.9);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(44, 27, 50, 0.95);
}

/* Helpers */

.pt-6 {
  padding-top: 6rem !important;
}

.section-padding {
  padding: 4rem 0;
}

.bg-alt {
  background: radial-gradient(circle at top left, #26102f 0, #080508 55%);
}

/* Hero */

.hero-section {
  background: radial-gradient(circle at top left, #2a1238 0, #080508 55%);
}

.hero-title {
  font-size: clamp(2.25rem, 2.4vw + 1.2rem, 3.1rem);
  font-weight: 700;
}

.hero-subtitle {
  max-width: 640px;
  color: var(--itg-text-muted);
}

.text-highlight {
  color: var(--itg-accent);
}

.badge-pill {
  border-radius: 999px;
  border: 1px solid var(--itg-border-soft);
  padding: 0.25rem 0.9rem;
  font-size: 0.88rem;
  color: var(--itg-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(29, 16, 37, 0.95);
}

.hero-meta .icon-muted {
  color: var(--itg-primary);
}

.hero-visual {
  border-radius: 1.5rem;
  background: radial-gradient(circle at top right, #341339 0, #1b1224 50%, #080508 85%);
  color: var(--itg-text);
}

.badge.bg-soft,
.badge.b-soft {
  border-radius: 999px;
  background: var(--itg-primary-soft);
  color: var(--itg-primary);
  font-weight: 500;
}

/* Hero chart */

.hero-chart {
  border-radius: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  padding: 0.75rem 1rem;
  background: rgba(24, 12, 32, 0.85);
}

.chart-row {
  display: grid;
  grid-template-columns: 1.8fr 2.5fr auto;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

.chart-row:last-child {
  margin-bottom: 0;
}

.chart-bar {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(120, 93, 140, 0.35);
  overflow: hidden;
}

.chart-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 999px;
  transform-origin: left center;
  transform: scaleX(0.1);
  animation: fillGrow 1.6s ease-out forwards;
}

.fill-1 {
  width: 96%;
  background: linear-gradient(90deg, #f0b13f, #f57e37);
}

.fill-2 {
  width: 82%;
  background: linear-gradient(90deg, #38bfa3, #7de9c7);
}

.fill-3 {
  width: 68%;
  background: linear-gradient(90deg, #a855f7, #ec4899);
}

.chart-value {
  font-size: 0.9rem;
  color: var(--itg-text-muted);
}

@keyframes fillGrow {
  from {
    transform: scaleX(0.1);
  }
  to {
    transform: scaleX(1);
  }
}

/* Avatars */

.avatar-stack {
  display: inline-flex;
}

.avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #080508;
  margin-left: -10px;
  background: #261128;
}

.avatar-img:first-child {
  margin-left: 0;
}

/* Sections */

.section-title {
  font-size: 1.75rem;
  font-weight: 600;
}

.section-subtitle {
  max-width: 620px;
  margin: 0 auto;
  color: var(--itg-text-muted);
}

/* Feature list */

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  color: var(--itg-text-muted);
}

.feature-list li i {
  color: var(--itg-primary);
  margin-top: 0.2rem;
}

/* Cards */

.solution-card,
.role-card,
.benefit-card,
.usecase-card,
.insight-card,
.contact-card {
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(27, 18, 36, 0.96), rgba(16, 10, 24, 0.98));
  border: 1px solid var(--itg-border-soft);
  padding: 1.5rem;
}

.solution-icon,
.role-icon,
.benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 250, 252, 0.05);
  color: var(--itg-primary);
  margin-bottom: 0.75rem;
}

.solution-card p,
.role-card p,
.benefit-card p,
.usecase-card p,
.insight-card p {
  color: var(--itg-text-muted);
}

.solution-card ul li,
.role-card ul li,
.usecase-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  color: var(--itg-text-muted);
}

.solution-card ul li i,
.role-card ul li i,
.usecase-card ul li i {
  margin-top: 0.2rem;
  font-size: 0.6rem;
  color: var(--itg-accent);
}

/* Workflow */

.workflow-steps {
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(32, 20, 46, 0.95), rgba(18, 10, 30, 0.98));
  border: 1px solid var(--itg-border-soft);
  padding: 1.75rem 1.5rem;
}

.workflow-step {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px dashed rgba(156, 163, 175, 0.35);
}

.workflow-step:last-child {
  border-bottom: none;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(240, 177, 63, 0.08);
  color: var(--itg-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.step-content h3 {
  color: var(--itg-text);
}

.step-content p {
  color: var(--itg-text-muted);
}

/* Use cases */

.usecase-header {
  display: flex;
  justify-content: flex-start;
}

/* Insight */

.insight-card {
  background: linear-gradient(145deg, rgba(24, 13, 34, 0.96), rgba(33, 19, 46, 0.98));
}

/* Contact */

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  color: var(--itg-text-muted);
}

.contact-list i {
  color: var(--itg-primary);
  margin-top: 0.2rem;
}

.contact-list a {
  color: var(--itg-text);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* Footer */

.footer {
  background: #080508;
  border-top: 1px solid rgba(156, 163, 175, 0.25);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(240, 177, 63, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--itg-primary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--itg-text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--itg-text);
  text-decoration: underline;
}

/* Cookie banner */

.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  padding: 0.75rem 0;
  background: radial-gradient(circle at top, #2c1336 0, #080508 60%);
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.65);
  z-index: 1080;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-text p {
  color: var(--itg-text-muted);
}

.cookie-text a {
  color: var(--itg-primary);
}

.cookie-text a:hover {
  text-decoration: underline;
}

/* Form success modal */

.form-success-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.form-success-modal.is-visible {
  pointer-events: auto;
  opacity: 1;
}

.form-success-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 16, 34, 0.85);
}

.form-success-dialog {
  position: relative;
  max-width: 460px;
  width: 92%;
  border-radius: 1.5rem;
  padding: 1.75rem 1.75rem 1.5rem;
  background: radial-gradient(circle at top, #261031 0, #080508 70%);
  border: 1px solid rgba(156, 163, 175, 0.45);
  color: var(--itg-text);
  z-index: 1;
}

.form-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 191, 163, 0.2);
  color: #38bfa3;
}

.form-success-close {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  border: none;
  background: transparent;
  color: var(--itg-text-muted);
  font-size: 1.1rem;
}

.form-success-close:hover {
  color: var(--itg-text);
}

/* Images */

.image-frame img {
  border-radius: 1.25rem;
}

/* Utilities */

.icon-muted {
  color: var(--itg-text-muted);
}

/* Responsive */

@media (max-width: 991.98px) {
  .hero-section {
    padding-top: 5.5rem;
  }
}

@media (max-width: 575.98px) {
  .section-padding {
    padding: 3rem 0;
  }

  .chart-row {
    grid-template-columns: 1.7fr 2.2fr auto;
  }
}
