:root{
  --bg-0:#0B1220;
  --bg-1:#101A32;

  --text-0:#0f172a;
  --text-1:rgba(15,23,42,.86);
  --muted:#6b7280;

  --soft:#f6f7fb;
  --card:#ffffff;

  --accent:#ff7a18;
  --accent-2:#5eead4;

  --border:rgba(15,23,42,.12);
  --border-strong:rgba(15,23,42,.18);

  --shadow: 0 18px 40px rgba(15,23,42,.08);
  --shadow-2: 0 14px 34px rgba(15,23,42,.10);

  --r-14:14px;
  --r-18:18px;
  --r-22:22px;

  --container-max: 1180px;
}

/* Base */
html, body { height: 100%; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  font-size: 16px;         /* минимум 16px */
  line-height: 1.6;
  color: var(--text-0);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container{ max-width: var(--container-max); }

a{ color: inherit; }
a:hover{ color: inherit; }

.link-muted{ color: rgba(15,23,42,.76); }
.link-muted:hover{ color: rgba(15,23,42,1); }

.small{ line-height: 1.45; }
.lead{ line-height: 1.55; }

/* helper (в html есть py-lg-6 — добавляем поддержку) */
@media (min-width: 992px){
  .py-lg-6{ padding-top: 5.25rem !important; padding-bottom: 5.25rem !important; }
}

/* Topbar */
.topbar{ background:#fff; }

/* Navbar */
.nav-glass{
  background: linear-gradient(180deg, rgba(11,18,32,.96), rgba(11,18,32,.86));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.navbar .nav-link{
  color: rgba(255,255,255,.86);
  font-weight: 500;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus{
  color: #fff;
}

.navbar-brand{ letter-spacing: .01em; }

.brand-mark{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 120% at 30% 20%, rgba(94,234,212,.35), rgba(255,122,24,.35));
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
}
.brand-mark--sm{
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

/* Buttons */
.btn-accent{
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-bg: #ff8b36;
  --bs-btn-hover-border-color: #ff8b36;
  --bs-btn-color: #0B1220;
  --bs-btn-hover-color: #0B1220;
  font-weight: 700;
}

.btn-outline-secondary{
  --bs-btn-border-color: rgba(15,23,42,.22);
  --bs-btn-color: rgba(15,23,42,.86);
  --bs-btn-hover-border-color: rgba(15,23,42,.32);
  --bs-btn-hover-bg: rgba(15,23,42,.04);
  --bs-btn-hover-color: rgba(15,23,42,.92);
}

.btn-outline-dark{
  --bs-btn-border-color: rgba(15,23,42,.22);
  --bs-btn-hover-bg: rgba(15,23,42,.06);
}

/* Badge */
.badge-soft{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .80rem;
  border-radius: 999px;
  background: rgba(94,234,212,.14);
  border: 1px solid rgba(94,234,212,.25);
  color: rgba(15,23,42,.88);
  font-weight: 700;
}

/* Hero */
.hero-section{
  background:
    radial-gradient(1200px 520px at 20% 0%, rgba(94,234,212,.18), transparent 60%),
    radial-gradient(900px 460px at 90% 10%, rgba(255,122,24,.18), transparent 55%),
    linear-gradient(180deg, #ffffff, #fbfbfe);
}

.hero-card{
  position: relative;
  border-radius: var(--r-22);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero-card img{ width:100%; display:block; }

.hero-card__overlay{
  position: absolute;
  inset: 0;
  pointer-events: none;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-end;
}

.hero-bubble{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 999px;
  padding: .58rem .80rem;
  font-weight: 700;
  color: rgba(15,23,42,.86);
  width: fit-content;
}

.trust-strip{ display:flex; gap:10px; flex-wrap:wrap; }
.trust-strip__item{
  font-size: .95rem;
  color: rgba(15,23,42,.78);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .52rem .78rem;
}

.mini-stat{
  display:flex;
  gap:12px;
  align-items:center;
  border: 1px solid var(--border);
  border-radius: var(--r-18);
  padding: 10px 12px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15,23,42,.04);
}
.mini-stat__icon{
  width:38px; height:38px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: rgba(255,122,24,.14);
  border: 1px solid rgba(255,122,24,.22);
}
.mini-stat__title{ font-weight: 800; }
.mini-stat__desc{ font-size:.92rem; color: var(--muted); }

/* Sections */
.section-pad{ padding: 76px 0; }
@media (max-width: 992px){ .section-pad{ padding: 58px 0; } }

.bg-soft{ background: var(--soft); }

.section-kicker{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  font-weight:800;
  color: rgba(15,23,42,.78);
  letter-spacing:.02em;
  margin-bottom: 10px;
}

/* 2 sections with background images */
.section-bg{
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Soluzioni background */
.section-bg--soluzioni{
  background-image:
    linear-gradient(180deg, rgba(246,247,251,.92), rgba(246,247,251,.98)),
    url("../images/pattern.jpg");
}

/* Demo background */
.section-bg--demo{
  background-image:
    radial-gradient(900px 500px at 10% 10%, rgba(94,234,212,.14), transparent 55%),
    linear-gradient(180deg, rgba(246,247,251,.92), rgba(246,247,251,.98)),
    url("../images/dashboard.jpg");
}

/* Cards */
.icon-card{
  display:flex;
  gap:12px;
  border:1px solid var(--border);
  border-radius: var(--r-18);
  padding:14px;
  background:#fff;
  height:100%;
  box-shadow: 0 10px 24px rgba(15,23,42,.04);
}
.icon-card__icon{
  width:46px; height:46px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background: rgba(94,234,212,.16);
  border: 1px solid rgba(94,234,212,.26);
  flex:0 0 auto;
}

.image-stack{ position: relative; }
.image-stack__float{
  position:absolute;
  right:12px;
  bottom:-18px;
  width:46%;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(15,23,42,.10);
}
@media (max-width: 992px){
  .image-stack__float{ position: static; width: 100%; margin-top: 12px; }
}

.feature-card{
  border:1px solid var(--border);
  border-radius: var(--r-22);
  padding:18px;
  background:#fff;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  box-shadow: 0 10px 24px rgba(15,23,42,.04);
}
.feature-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15,23,42,.08);
  border-color: var(--border-strong);
}
.feature-card__icon{
  width:50px; height:50px;
  border-radius: 18px;
  display:grid;
  place-items:center;
  background: rgba(255,122,24,.16);
  border: 1px solid rgba(255,122,24,.26);
  margin-bottom: 12px;
}

.callout{
  display:flex;
  gap:10px;
  align-items:flex-start;
  border-radius: var(--r-18);
  padding:14px 16px;
  background: rgba(255,122,24,.10);
  border: 1px solid rgba(255,122,24,.20);
  color: rgba(15,23,42,.84);
  font-weight:700;
}

.timeline{
  border:1px solid var(--border);
  border-radius: var(--r-22);
  padding:18px;
  background:#fff;
  box-shadow: 0 10px 24px rgba(15,23,42,.04);
}
.timeline__item{
  display:grid;
  grid-template-columns:44px 1fr;
  gap:12px;
  padding:12px 6px;
}
.timeline__item + .timeline__item{
  border-top: 1px dashed rgba(15,23,42,.16);
}
.timeline__dot{
  width:40px; height:40px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background: rgba(94,234,212,.16);
  border: 1px solid rgba(94,234,212,.26);
  font-weight:900;
}

.img-card{
  border:1px solid var(--border);
  border-radius: var(--r-22);
  overflow:hidden;
  background:#fff;
  height:100%;
  box-shadow: 0 10px 24px rgba(15,23,42,.04);
}
.img-card img{
  width:100%;
  height:200px;
  object-fit:cover;
  display:block;
}
.img-card__body{ padding:16px; }

.quote-card{
  border:1px solid var(--border);
  border-radius: var(--r-22);
  padding:18px;
  background:#fff;
  box-shadow: 0 10px 24px rgba(15,23,42,.04);
}
.quote-card__stars{ color:#f59e0b; margin-bottom:10px; }

/* Form */
.form-card{
  border:1px solid var(--border);
  border-radius: var(--r-22);
  padding:18px;
  background:#fff;
  box-shadow: var(--shadow-2);
}
.form-label{ font-weight: 700; }

.form-control,
.input-group .form-control{
  border-radius: 16px;
  border-color: rgba(15,23,42,.18);
}
.form-control:focus{
  border-color: rgba(255,122,24,.55);
  box-shadow: 0 0 0 .22rem rgba(255,122,24,.18);
}
textarea.form-control{ resize: vertical; }

/* Accordion (FAQ) */
.accordion-item{
  border: 1px solid var(--border);
  border-radius: 18px !important;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(15,23,42,.03);
}
.accordion-item + .accordion-item{ margin-top: 10px; }
.accordion-button{
  font-weight: 800;
  padding: 16px 16px;
}
.accordion-button:not(.collapsed){
  color: rgba(15,23,42,.92);
  background: rgba(94,234,212,.10);
  box-shadow: none;
}
.accordion-button:focus{ box-shadow: none; }

/* Impact block additions */
.stat-card{
  border: 1px solid var(--border);
  border-radius: var(--r-22);
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(15,23,42,.04);
  height: 100%;
}
.stat-card__icon{
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  background: rgba(94,234,212,.14);
  border: 1px solid rgba(94,234,212,.26);
  font-size: 1.1rem;
}
.stat-card__value{
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.stat-card__desc{ color: var(--muted); }

.pill{
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .65rem .85rem;
  background: rgba(15,23,42,.02);
  color: rgba(15,23,42,.88);
  font-weight: 700;
}

/* Contacts */
.contact-list{ display:grid; gap:10px; }
.contact-item{
  display:flex;
  gap:12px;
  align-items:center;
  border:1px solid var(--border);
  border-radius: var(--r-18);
  padding:12px 14px;
  background:#fff;
  box-shadow: 0 10px 22px rgba(15,23,42,.03);
}
.contact-item__icon{
  width:46px; height:46px;
  border-radius: 18px;
  display:grid;
  place-items:center;
  background: rgba(255,122,24,.14);
  border: 1px solid rgba(255,122,24,.22);
  flex:0 0 auto;
}

/* Contact visual (replaces map) */
.contact-visual{
  border: 1px solid var(--border);
  border-radius: var(--r-22);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-2);
  position: relative;
  min-height: 420px;
}
.contact-visual__img{
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}
.contact-visual__note{
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 12px 30px rgba(15,23,42,.10);
}

/* Footer */
.footer{
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
  color: rgba(255,255,255,.92);
}
.footer .text-muted{ color: rgba(255,255,255,.70) !important; }
.footer-title{ font-weight:900; margin-bottom:10px; }
.footer-links a{
  color: rgba(255,255,255,.78);
  text-decoration:none;
  display:inline-block;
  padding:4px 0;
}
.footer-links a:hover{ color:#fff; }
.footer-hr{ border-color: rgba(255,255,255,.10); }

/* Cookie banner */
.cookie-banner{
  position: fixed;
  left:0; right:0; bottom:0;
  padding:14px 0;
  z-index:1080;
  display:none;
}
.cookie-banner__box{
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(15,23,42,.16);
  border-radius: var(--r-22);
  box-shadow: 0 18px 44px rgba(15,23,42,.16);
  padding: 14px 14px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content: space-between;
}
.cookie-banner__actions{ display:flex; gap:8px; flex-wrap:wrap; }
.cookie-banner a{ color: rgba(15,23,42,.86); font-weight:800; }

@media (max-width: 768px){
  .cookie-banner__box{ flex-direction: column; align-items: stretch; }
  .cookie-banner__actions{ justify-content: flex-end; }
}

/* Minor polish */
.border{ border-color: var(--border) !important; }
.rounded-4{ border-radius: var(--r-22) !important; }
.shadow-sm{ box-shadow: 0 10px 24px rgba(15,23,42,.06) !important; }
