:root {
  --bg: #050A14;               /* navy-black */
  --surface: #0B1324;          /* cards */
  --surface-hover: #0E1930;    /* hover */
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.14);

  --text-main: rgba(255, 255, 255, 0.92);
  --text-dim: rgba(210, 220, 255, 0.62);

  --accent: #2F6FED;           /* corporate blue */
  --accent-light: #4DA3FF;     /* lighter blue */

  --container-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(47, 111, 237, 0.65); /* было фиолетовое */
  outline-offset: 3px;
  border-radius: 10px;
}

/* Background Visuals */
.bg-visual {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 44px 44px;
}

.glow {
  position: absolute;
  width: 60vw;
  height: 60vw;
  filter: blur(130px);
  border-radius: 50%;
  opacity: 0.08; /* приглушили */
  pointer-events: none;
}

.glow-top { top: -20%; right: -10%; background: var(--accent); }
.glow-bottom { bottom: -20%; left: -10%; background: var(--accent-light); }

/* Layout */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.header { padding: 40px 0; }

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon { width: 32px; height: 32px; }
.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Hero */
.hero {
  padding: 80px 0 120px;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(47, 111, 237, 0.10);     /* corporate */
  border: 1px solid rgba(47, 111, 237, 0.22);
  border-radius: 100px;
  color: rgba(210, 220, 255, 0.90);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(to right, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto;
}

/* Services Grid */
.services { padding-bottom: 100px; }
.section-header { margin-bottom: 48px; }
.section-title { font-size: 2rem; font-weight: 800; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 24px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s, border-color 0.25s;
}

.service-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-5px);
  background: var(--surface-hover);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-desc {
  color: var(--text-dim);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* Contact Section */
.contact { margin-bottom: 100px; }

.contact-wrapper {
  background: linear-gradient(145deg, var(--surface), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-title { font-size: 2.4rem; font-weight: 800; margin-bottom: 16px; }
.contact-subtitle { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 34px; }

.contact-details { display: flex; gap: 32px; flex-wrap: wrap; }
.contact-link { text-decoration: none; display: flex; flex-direction: column; gap: 4px; }

.link-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: rgba(210, 220, 255, 0.55);
  letter-spacing: 0.05em;
}

.link-value {
  font-size: 1.1rem;
  color: var(--text-main);
  font-weight: 700;
  transition: color 0.2s;
}

.contact-link:hover .link-value { color: var(--accent-light); }

.contact-address {
  max-width: 260px;
  padding-left: 32px;
  border-left: 1px solid var(--border);
}

.address-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: rgba(210, 220, 255, 0.55);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

address { font-style: normal; color: var(--text-dim); font-size: 0.9rem; }

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-sep { margin: 0 10px; opacity: 0.5; }

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(160%);
  width: calc(100% - 48px);
  max-width: 680px;
  background: rgba(11, 19, 36, 0.92); /* под общую палитру */
  border: 1px solid var(--border-bright);
  padding: 22px;
  border-radius: 20px;
  z-index: 1000;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
}

.cookie-banner.show { transform: translateX(-50%) translateY(0); }

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-content p { font-size: 0.9rem; color: var(--text-dim); }
.cookie-content a { color: var(--text-main); text-decoration: underline; text-underline-offset: 3px; }

.cookie-buttons { display: flex; gap: 10px; }

/* Buttons */
.btn {
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, opacity 0.2s, background 0.2s, border-color 0.2s;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

.btn:active { transform: translateY(1px); }

/* Банковский primary: синий */
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid rgba(77, 163, 255, 0.22);
}
.btn-primary:hover { background: rgba(47, 111, 237, 0.92); }

/* Secondary: строгий контур */
.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(210, 220, 255, 0.22);
}
.btn-secondary:hover { background: rgba(255,255,255,0.04); }

/* Mobile */
@media (max-width: 768px) {
  .hero { padding: 60px 0 80px; }
  .contact-wrapper { padding: 40px 24px; }
  .contact-details { flex-direction: column; gap: 20px; }
  .contact-address {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 20px;
    max-width: none;
  }
  .services-grid { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service-card, .cookie-banner, .btn { transition: none !important; }
  .service-card:hover { transform: none; }
}
