/* Навигация горе вдясно */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.main-nav a {
  position: relative;
  padding-bottom: 0.15rem;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--color-accent), var(--color-accent-soft));
  border-radius: 999px;
  transition: width 0.25s ease;
}

.main-nav a:hover {
  color: var(--color-text);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  width: 100%;
}

/* Бутони */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-soft));
  color: #e5f0ff;
  box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.9), 0 0 55px rgba(37, 99, 235, 0.7);
}

.btn-outline {
  border-color: rgba(148, 163, 184, 0.4);
  color: var(--color-text-muted);
  background: rgba(15, 23, 42, 0.9);
}

.btn-outline:hover {
  border-color: var(--color-accent-soft);
  color: var(--color-text);
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.25), #020617);
}

/* Услуги – grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.service-card {
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), #020617);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.7);
  position: relative;
  overflow: hidden;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Портфолио grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #020617;
  border: 1px solid var(--color-border-subtle);
}

.portfolio-link {
  display: block;
  color: inherit;
}

.portfolio-link:hover {
  text-decoration: none;
}

.portfolio-thumb {
  aspect-ratio: 16 / 10;
  background: radial-gradient(circle at top, #1d4ed8, #020617);
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transform: translateY(10%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-title {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.portfolio-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.8);
  padding: 1.75rem 0 2rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 640px) {
  .main-nav ul {
    gap: 1rem;
    font-size: 0.8rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* Hero визуален блок – “неон” карта */
.hero-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  filter: blur(0.2px);
}

.hero-orbit--outer {
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
  border-color: rgba(37, 99, 235, 0.18);
}

.hero-orbit--inner {
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  border-color: rgba(59, 130, 246, 0.4);
}

.hero-card {
  position: absolute;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
}

.hero-card--main {
  inset: auto 14% 18% 14%;
}

.hero-card--secondary {
  right: 6%;
  top: 18%;
  padding: 0.85rem 1.1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  border-radius: 999px;
  border-style: dashed;
}

.hero-card-header {
  display: flex;
  gap: 0.3rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f97316;
}

.hero-dot:nth-child(2) {
  background: #22c55e;
}

.hero-dot:nth-child(3) {
  background: #3b82f6;
}

.hero-card-body {
  padding: 0.9rem 1rem 1.1rem;
}

.hero-card-body h3 {
  font-size: 1rem;
  margin: 0.35rem 0;
}

.hero-card-body p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
}