/* ================================
   AlgoSenseIT – core styles
   Тёмная консалтинговая тема
================================== */

:root {
  --algo-bg: #050816;
  --algo-bg-soft: #0b1020;
  --algo-bg-light: #f3f4f6;
  --algo-panel-dark: #0b1120;
  --algo-panel-darker: #020617;

  --algo-primary: #a855f7;
  --algo-primary-soft: rgba(168, 85, 247, 0.16);

  /* яркий неон-зелёный */
  --algo-accent: #4ade80;

  --algo-text-main: #e5e7eb;
  --algo-text-muted: #9ca3af;
  --algo-border-subtle: rgba(148, 163, 184, 0.5);
  --algo-radius-lg: 1.25rem;
  --algo-radius-xl: 1.8rem;
}

/* базовая типографика */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 18px; /* основной текст 18px */
  line-height: 1.6;
  background-color: var(--algo-bg);
  color: var(--algo-text-main);
  margin: 0;
}

p,
li,
a,
span,
label,
input,
textarea,
button {
  font-size: 1rem; /* 18px */
}

.small {
  font-size: 0.9rem;
}

/* NAVBAR */

.algo-navbar {
  background:
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.35), transparent 55%),
    linear-gradient(to right, #020617, #020617);
  border-bottom: 1px solid rgba(148, 163, 184, 0.45);
  backdrop-filter: blur(18px);
}

.algo-logo {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    conic-gradient(
      from 160deg,
      rgba(168, 85, 247, 0.2),
      rgba(59, 130, 246, 0.35),
      rgba(34, 197, 94, 0.5),
      rgba(168, 85, 247, 0.9)
    );
  color: #f9fafb;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9),
    0 18px 45px rgba(15, 23, 42, 0.9);
}

.algo-logo i {
  font-size: 1.3rem;
}

.algo-brand-title {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
}

.algo-brand-subtitle {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--algo-text-muted);
}

.navbar-nav .nav-link {
  color: var(--algo-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding-inline: 0.9rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #f9fafb;
}

/* кнопки */

.btn-algo-primary {
  background: linear-gradient(135deg, var(--algo-primary), #7c3aed);
  border: none;
  color: #f9fafb;
  font-weight: 600;
  padding-inline: 1.5rem;
  border-radius: 999px;
  box-shadow: 0 16px 35px rgba(88, 28, 135, 0.6);
}

.btn-algo-primary:hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #f9fafb;
}

.btn-outline-algo {
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.85);
  color: var(--algo-accent);
  font-weight: 500;
  background: transparent;
}

.btn-outline-algo:hover {
  border-color: var(--algo-accent);
  background: rgba(74, 222, 128, 0.12);
  color: #f9fafb;
}

/* layout */

.algo-main {
  padding-top: 84px;
}

/* СЕКЦИИ */

.section-dark {
  background: radial-gradient(circle at top, #0f172a 0, #020617 55%);
  color: #e5e7eb;
}

.section-light {
  background: var(--algo-bg-light);
  color: #111827;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--algo-accent);
}

.section-title {
  font-weight: 700;
  font-size: 1.9rem;
}

.section-text {
  max-width: 720px;
  color: var(--algo-text-muted);
}

/* HERO */

.algo-hero {
  padding: 6rem 0 4.5rem;
  background:
    linear-gradient(135deg, #020617 0%, #050816 40%, #020617 100%),
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.25), transparent 55%);
  position: relative;
  overflow: hidden;
}

.algo-hero::before {
  content: "";
  position: absolute;
  inset-block: -40%;
  right: 55%;
  width: 320px;
  background: radial-gradient(circle at top, rgba(168, 85, 247, 0.3), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}

.hero-title {
  position: relative;
  z-index: 1;
  font-size: 2.3rem;
  font-weight: 800;
}

.hero-text {
  position: relative;
  z-index: 1;
  color: var(--algo-text-muted);
}

.hero-label-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 1rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.86rem;
  color: #f9fafb;
}

.stats-row {
  position: relative;
  z-index: 1;
}

.stat-pill {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: radial-gradient(circle at top left,
              rgba(74, 222, 128, 0.25),
              rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(74, 222, 128, 0.8);
  display: inline-flex;
  flex-direction: column;
  box-shadow: 0 14px 30px rgba(22, 101, 52, 0.6);
}

.stat-label {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: rgba(209, 250, 229, 0.95);
}

.stat-value {
  font-weight: 600;
  font-size: 0.98rem;
}

/* hero device side */

.hero-device-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.hero-device-panel {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  background: radial-gradient(circle at top, #111827, #020617);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.9);
}

.hero-device-img {
  width: 100%;
  object-fit: cover;
  max-height: 260px;
}

.hero-device-overlay {
  padding: 1.4rem 1.6rem 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.5);
  background: linear-gradient(135deg, #020617, #111827);
  font-size: 0.96rem;
}

.hero-device-overlay p {
  font-weight: 600;
}

.hero-device-list {
  padding-left: 1.3rem;
}

.hero-device-card {
  align-self: flex-end;
  max-width: 80%;
  border-radius: 1.6rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at top, #111827, #020617);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.9);
}

.hero-device-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* PANORAMICA */

.section-overview {
  position: relative;
}

.section-overview::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(168, 85, 247, 0.8), transparent);
  opacity: 0.9;
}

.overview-image-card {
  border-radius: var(--algo-radius-xl);
  padding: 0.5rem;
  background:
    linear-gradient(135deg, rgba(168, 85, 247, 0.7), rgba(74, 222, 128, 0.7));
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.95);
}

.overview-img {
  border-radius: calc(var(--algo-radius-xl) - 0.4rem);
}

.overview-list li {
  margin-bottom: 0.4rem;
}

.overview-card {
  background: var(--algo-panel-dark);
  border-radius: var(--algo-radius-lg);
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
}

.overview-icon {
  width: 46px;
  height: 46px;
  border-radius: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--algo-primary), #ec4899);
  color: #f9fafb;
  margin-bottom: 0.8rem;
}

/* CHI SIAMO – team */

.team-card {
  position: relative;
  border-radius: 1.4rem;
  overflow: hidden;
  background: #111827;
}

.team-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.team-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 0.9rem 1rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
  color: #f9fafb;
  font-size: 0.95rem;
}

.team-overlay p {
  font-weight: 600;
}

.team-banner {
  margin-top: 0.4rem;
  border-radius: 1.6rem;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  background: radial-gradient(circle at left, rgba(168, 85, 247, 0.35), #020617);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.9);
}

.team-banner-text {
  padding: 1.3rem 1.4rem;
  color: #f9fafb;
  flex: 1 1 60%;
}

.team-banner-img {
  width: 40%;
  object-fit: cover;
}

.team-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.95);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.6rem;
  background: linear-gradient(135deg, #064e3b, #16a34a);
  color: #ecfdf5;
}

/* INFO & SOLUTION CARDS */

.info-card {
  background: var(--algo-panel-dark);
  border-radius: var(--algo-radius-lg);
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.8);
}

.section-light .info-card {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.info-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--algo-primary-soft);
  color: var(--algo-primary);
  margin-bottom: 0.7rem;
}

.solution-card {
  background: var(--algo-panel-dark);
  border-radius: var(--algo-radius-lg);
  padding: 1.6rem 1.7rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.9);
}

.solution-card p {
  color: var(--algo-text-muted);
}

.solution-icon {
  width: 54px;
  height: 54px;
  border-radius: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--algo-primary), #ec4899);
  color: #f9fafb;
  margin-bottom: 1rem;
  box-shadow: 0 18px 40px rgba(88, 28, 135, 0.8);
}

.solution-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.solution-list {
  padding-left: 1.2rem;
}

/* TIMELINE */

.timeline {
  border-left: 1px dashed rgba(148, 163, 184, 0.6);
  padding-left: 1.9rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 0;
  bottom: 0;
  border-left: 1px dashed rgba(55, 65, 81, 0.6);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.7rem;
}

.timeline-badge {
  position: absolute;
  left: -2.45rem;
  top: 0.2rem;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #0b1120;
  border: 1px solid rgba(148, 163, 184, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.8);
}

.section-light .timeline-badge {
  background: #ffffff;
}

.timeline-content h3 {
  font-size: 1.06rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.timeline-content p {
  color: #4b5563;
}

/* MODULI */

.moduli-img {
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.9);
}

.module-card {
  background: #ffffff;
  border-radius: 1.1rem;
  padding: 1rem 1.1rem 1.05rem;
  border: 1px solid #e5e7eb;
}

.module-card h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.28rem;
}

.module-card p {
  color: #4b5563;
}

.module-note {
  margin-top: 0.9rem;
  font-size: 0.94rem;
  color: #1f2937;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #eef2ff, #e0f2fe);
}

/* USE CASES */

.section-usecases {
  background:
    radial-gradient(circle at top left,
      rgba(168, 85, 247, 0.35), transparent 55%),
    radial-gradient(circle at bottom right,
      rgba(74, 222, 128, 0.35), transparent 55%),
    #020617;
}

.usecase-card {
  background: var(--algo-panel-dark);
  border-radius: var(--algo-radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
}

.usecase-thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.usecase-body {
  padding: 1.1rem 1.3rem 1.4rem;
}

.usecase-body h3 {
  font-size: 1.02rem;
  margin-bottom: 0.5rem;
}

.usecase-body p {
  color: var(--algo-text-muted);
}

/* INSIGHTS */

.insight-card {
  background: var(--algo-panel-dark);
  border-radius: var(--algo-radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
}

.insight-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.insight-body {
  padding: 1.25rem 1.4rem 1.5rem;
}

.insight-body h3 {
  font-size: 1.03rem;
  margin-bottom: 0.5rem;
}

.insight-body p {
  color: var(--algo-text-muted);
}

.insight-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.95rem;
  color: var(--algo-accent);
  font-weight: 500;
  text-decoration: none;
}

.insight-link:hover {
  color: #bbf7d0;
}

/* CONTATTI + NEWSLETTER/FAQ */

.section-light .contact-card,
.section-dark .contact-card {
  background: #ffffff;
  border-radius: var(--algo-radius-xl);
  padding: 1.9rem 1.9rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.18);
}

.section-dark .contact-card {
  background: #0b1120;
  border-color: rgba(148, 163, 184, 0.7);
}

.section-dark .contact-card label {
  color: #e5e7eb;
}

.section-light .newsletter-card,
.section-dark .newsletter-card {
  background: radial-gradient(circle at top left, #4c1d95, #020617);
  border-radius: 1.5rem;
  padding: 1.25rem 1.5rem;
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.55);
}

.section-light .newsletter-card input.form-control,
.section-dark .newsletter-card input.form-control {
  min-width: 220px;
}

.contact-list .contact-link,
.footer-link {
  color: inherit;
  text-decoration: none;
}

.contact-list .contact-link:hover,
.footer-link:hover {
  text-decoration: underline;
}

.text-algo-accent {
  color: var(--algo-accent) !important;
}

/* social */

.social-strip {
  display: flex;
  align-items: center;
}

.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.75);
  color: #e5e7eb;
}

.social-icon:hover {
  background-color: rgba(74, 222, 128, 0.22);
  border-color: rgba(74, 222, 128, 0.9);
  color: #bbf7d0;
}

/* mini FAQ */

.faq-mini li {
  margin-bottom: 0.5rem;
}

.faq-mini strong {
  display: block;
  font-size: 0.95rem;
}

/* FOOTER */

.algo-footer {
  background: #020617;
  color: var(--algo-text-main);
  padding: 2.7rem 0 1.7rem;
  border-top: 1px solid rgba(148, 163, 184, 0.65);
}

.footer-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-subtitle {
  font-size: 1.06rem;
  font-weight: 600;
}

.footer-list {
  font-size: 0.96rem;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.55);
}

/* COOKIE BANNER */

.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 9999;
  background: radial-gradient(circle at top, #111827, #020617);
  color: #e5e7eb;
  transform: translateY(100%);
  transition: transform 0.35s ease-out;
  box-shadow: 0 -20px 45px rgba(15, 23, 42, 0.95);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-inner {
  padding-block: 0.9rem;
}

.cookie-text {
  max-width: 700px;
}

.cookie-link {
  color: var(--algo-accent);
  text-decoration: none;
  margin-left: 0.35rem;
}

.cookie-link:hover {
  text-decoration: underline;
}

/* MODAL */

.modal-content {
  border-radius: 1.5rem;
  border: none;
}

/* RESPONSIVE */

@media (max-width: 1199.98px) {
  .hero-title {
    font-size: 2.05rem;
  }
}

@media (max-width: 991.98px) {
  .algo-navbar {
    background: #020617;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .hero-device-card {
    max-width: 100%;
  }

  .team-banner {
    flex-direction: column;
  }

  .team-banner-img {
    width: 100%;
    height: 180px;
  }
}

@media (max-width: 575.98px) {
  .cookie-inner {
    padding-block: 0.75rem;
  }
}
