:root {
  --bg: #04131a;
  --bg-deep: #020b11;
  --bg-soft: #143543;
  --card: rgba(255, 255, 255, 0.05);
  --card-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(214, 236, 245, 0.34);
  --text: #f2f7fb;
  --muted: rgba(242, 247, 251, 0.86);
  --accent: #8fd7f3;
  --accent-2: #bcd6e8;
  --green: #6ee7b7;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --container: 1290px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg-deep);
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4,
.brand__text,
.hero__inner h1,
.section-heading h2,
.feature__content h2,
.contact-copy h2,
.stats-copy h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 8%, rgba(146, 215, 240, 0.24), transparent 28%),
    radial-gradient(circle at 50% 35%, rgba(105, 170, 196, 0.18), transparent 22%),
    radial-gradient(circle at 50% 70%, rgba(82, 149, 170, 0.16), transparent 20%),
    linear-gradient(180deg, #071b24 0%, #031018 20%, #020c12 45%, #031018 72%, #041821 100%);
}

.site-bg::before,
.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.site-bg::before {
  background:
    linear-gradient(90deg,
      rgba(1, 10, 14, 0.96) 0%,
      rgba(1, 10, 14, 0.96) 2%,
      rgba(143, 215, 243, 0.12) 20%,
      rgba(1, 10, 14, 0) 30%,
      rgba(143, 215, 243, 0.12) 50%,
      rgba(1, 10, 14, 0) 62%,
      rgba(143, 215, 243, 0.12) 80%,
      rgba(1, 10, 14, 0.96) 98%,
      rgba(1, 10, 14, 0.96) 100%);
  opacity: 0.48;
}

.site-bg::after {
  background: radial-gradient(circle at 50% 50%, rgba(110, 231, 183, 0.08), transparent 45%);
  mix-blend-mode: screen;
}

.wrapper {
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
}

.section,
.feature,
.footer {
  padding-top: 88px;
}

.section-lg {
  padding-top: 40px;
}

.glass-card {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.header {
  padding-top: 30px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.navbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand__logo {
  width: 48px;
  height: 48px;
}

.brand__text {
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-menu a {
  color: var(--text);
  font-size: 1.1rem;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-menu a:hover,
.footer__links a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.nav-phone,
.btn {
  border: 0;
  border-radius: 999px;
  font-weight: 600;
}

.nav-phone {
  background: linear-gradient(135deg, var(--accent) 0%, #6ee7b7 100%);
  color: #04131a;
  padding: 14px 30px;
  min-width: 200px;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 24px rgba(110, 231, 183, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  animation: phone-glow 3s ease-in-out infinite;
}

@keyframes phone-glow {
  0%, 100% { box-shadow: 0 4px 24px rgba(110, 231, 183, 0.2); }
  50% { box-shadow: 0 6px 32px rgba(110, 231, 183, 0.35); }
}

.nav-phone::before {
  content: "\260E\00a0";
  font-size: 1.15em;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 48px;
  height: 48px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  margin: 6px auto;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
  min-height: 580px;
  display: grid;
  place-items: center;
}

.hero__inner {
  max-width: 850px;
  text-align: center;
  padding: 100px 0 60px;
}

.hero h1,
.section-heading h2,
.contact-copy h2,
.stats-copy h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.2rem);
}

.hero h1 span,
.section-heading h2 span,
.stats-copy h2 span,
.eyebrow,
.service-card h3,
.price-card li::marker,
.footer__links a,
.section-testimonials h2 span {
  color: var(--accent);
}

.hero p {
  max-width: 560px;
  margin: 26px auto 36px;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  background: var(--accent-2);
  color: #07131c;
  min-width: 212px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover,
.nav-phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(143, 215, 243, 0.15);
  background: color-mix(in srgb, var(--accent-2) 88%, white 12%);
}

.btn-block {
  width: 100%;
}

.stats {
  padding: 44px 38px;
}

.stats-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(280px, 1.7fr) repeat(3, minmax(120px, 1fr));
  align-items: center;
}

.stats-copy h2 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
}

.stat-item {
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: clamp(2.4rem, 4vw, 4rem);
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-item span {
  font-size: 1.1rem;
  color: var(--text);
}

.feature {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(360px, 560px);
  align-items: center;
  gap: 60px;
}

.feature--reverse {
  grid-template-columns: minmax(360px, 560px) minmax(300px, 1fr);
}

.feature__content h2,
.section-heading h2,
.contact-copy h2,
.section-testimonials h2 {
  font-size: clamp(2.3rem, 5vw, 4rem);
}

.feature__content h2 {
  margin: 0 0 20px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: clamp(2.1rem, 4.8vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.feature__lead,
.contact-copy p,
.testimonial-card p,
.service-card p,
.price-card li {
  color: var(--muted);
}

.feature__lead {
  max-width: 610px;
  font-size: 1.15rem;
  line-height: 1.45;
  margin-bottom: 34px;
}

.feature__visual {
  position: relative;
  min-height: 500px;
  overflow: hidden;
}

/* ─── CRM Rings Infographic ─── */
.crm-rings {
  position: relative;
  min-height: 540px;
  border-radius: var(--radius);
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, rgba(20, 53, 67, 0.5), rgba(4, 19, 26, 0.95));
  border: 1px solid rgba(143, 215, 243, 0.1);
}

#ringsCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Stat bubbles */
.ring-stat {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translate(-50%, -50%);
  transition: transform 0.6s cubic-bezier(.22,1,.36,1);
  will-change: transform;
}

.ring-stat__value {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
  display: inline;
}

.ring-stat__suffix {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.7;
}

.ring-stat__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(242, 247, 251, 0.6);
  margin-top: 4px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Center stat - big hero number */
.ring-stat--center {
  z-index: 5;
  left: 50%;
  top: 50%;
}

.ring-stat--center .ring-stat__value {
  font-size: 4.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #8fd7f3, #bce8ff, #6ee7b7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ring-stat--center .ring-stat__suffix {
  font-size: 2rem;
  background: linear-gradient(135deg, #8fd7f3, #6ee7b7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 1;
}

.ring-stat--center .ring-stat__label {
  font-size: 0.9rem;
  color: rgba(242, 247, 251, 0.75);
  margin-top: 6px;
}

/* Outer stats positioned by JS, fallback positions */
.ring-stat--1 { left: 50%; top: 12%; }
.ring-stat--2 { left: 88%; top: 32%; }
.ring-stat--3 { left: 88%; top: 68%; }
.ring-stat--4 { left: 50%; top: 88%; }
.ring-stat--5 { left: 12%; top: 68%; }
.ring-stat--6 { left: 12%; top: 32%; }

/* Hover glow on stats */
.ring-stat:not(.ring-stat--center):hover .ring-stat__value {
  text-shadow: 0 0 20px rgba(143, 215, 243, 0.5);
}

.ring-stat:not(.ring-stat--center):hover .ring-stat__label {
  color: rgba(242, 247, 251, 0.9);
}

.ai-node,
.chat-icons span,
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.section-heading {
  margin-bottom: 42px;
}

.section-heading--center {
  text-align: center;
}

.section-heading--center h2 {
  max-width: 820px;
  margin-inline: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 220px;
  padding: 28px 26px;
}

.service-card h3 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 2vw, 2.05rem);
  line-height: 1.08;
}

.service-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.service-card--wide {
  grid-column: span 2;
  min-height: 190px;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 22px;
}

.benefits-list li {
  position: relative;
  padding-left: 42px;
  font-size: 1.15rem;
  line-height: 1.45;
}

.benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

.ai-visual {
  min-height: 470px;
}

.ai-node {
  position: absolute;
  width: 68px;
  height: 68px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
  font-size: 1.4rem;
}

.ai-node::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 92px;
  background: rgba(255, 255, 255, 0.4);
}

.ai-node--top-left { top: 30px; left: 110px; }
.ai-node--top-left::after { top: 68px; left: 33px; }
.ai-node--top-right { top: 30px; right: 110px; }
.ai-node--top-right::after { top: 68px; left: 33px; }
.ai-node--bottom-left { bottom: 38px; left: 110px; }
.ai-node--bottom-left::after { bottom: 68px; left: 33px; }
.ai-node--bottom-right { bottom: 38px; right: 110px; }
.ai-node--bottom-right::after { bottom: 68px; left: 33px; }

.ai-core {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 210px;
  min-height: 140px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.ai-core strong {
  font-size: 3.2rem;
  line-height: 1;
}

.ai-core span {
  display: block;
  height: 7px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
}

.ai-core span:first-of-type { width: 100px; }
.ai-core span:last-of-type { width: 78px; opacity: 0.55; }

.chat-visual {
  min-height: 440px;
  display: grid;
  place-items: center;
}

.chat-rings {
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.1) 0 18%, transparent 18% 36%, rgba(255, 255, 255, 0.06) 36% 55%, transparent 55% 72%, rgba(255, 255, 255, 0.04) 72% 90%, transparent 90%);
}

.chat-icons {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 78%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-icons span,
.avatar {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.chat-icons__center {
  width: 66px !important;
  height: 66px !important;
  background: rgba(255, 255, 255, 0.22) !important;
  font-size: 1.4rem;
}

.crm-visual {
  min-height: 450px;
  display: grid;
  place-items: center;
}

.laptop {
  width: min(84%, 460px);
  position: relative;
}

.laptop__screen {
  height: 245px;
  background: #0e1820;
  border: 8px solid #111820;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(0,0,0,.3);
}

.crm-topbar {
  height: 28px;
  background: linear-gradient(90deg, #16394d, #214f68 60%, #183b4f);
}

.crm-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 12px;
}

.crm-grid span {
  height: 62px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(143, 215, 243, 0.95), rgba(240, 244, 248, 0.9));
  opacity: 0.88;
}

.crm-grid span:nth-child(2n) { opacity: 0.72; }
.crm-grid span:nth-child(3n) { background: linear-gradient(180deg, rgba(88, 205, 241, 0.95), rgba(240, 244, 248, 0.85)); }

.laptop__base {
  width: 118%;
  height: 18px;
  margin-left: -9%;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, #e8ecee, #7c868e);
}

.phone {
  position: absolute;
  right: 8%;
  bottom: 16%;
  width: 128px;
  height: 260px;
  border-radius: 28px;
  padding: 10px;
  background: #13181e;
  box-shadow: 0 14px 30px rgba(0,0,0,.34);
}

.phone::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 10px;
  border-radius: 0 0 12px 12px;
  background: #0c1116;
}

.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8f8f9, #e9eef4);
  padding: 28px 12px 14px;
  display: grid;
  gap: 10px;
}

.phone__screen span {
  display: block;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(83, 177, 223, 0.95), rgba(224, 229, 234, 0.95));
}

/* Bitrix24 page */
.bitrix-hero-img {
  overflow: hidden;
  padding: 0;
}

.bitrix-hero-img img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.process-step {
  padding: 32px 26px;
  min-height: 240px;
}

.process-step__number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 16px;
}

.process-step h3 {
  margin: 0 0 14px;
  font-size: 1.5rem;
  color: var(--text);
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

/* Bitrix24 real screenshots */
.crm-visual--real {
  display: grid;
  place-items: center;
  padding: 24px;
  min-height: 450px;
}

.crm-screenshot--main {
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.bitrix-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bitrix-gallery__item {
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bitrix-gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(143, 215, 243, 0.12);
}

.bitrix-gallery__item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bitrix-gallery__item p {
  margin: 0;
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent);
}

.pricing-heading {
  margin-bottom: 34px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.price-card {
  padding: 34px 32px;
}

.price-card--featured {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.055), rgba(73, 138, 162, 0.19), rgba(255, 255, 255, 0.055));
}

.price-card__name {
  margin: 0 0 24px;
  font-size: 1.15rem;
}

.price-card h3 {
  margin: 0 0 28px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.12;
  font-weight: 500;
}

.price-card ul {
  margin: 28px 0 0;
  padding-left: 24px;
  display: grid;
  gap: 14px;
}

.price-card li::marker {
  font-size: 1rem;
}

.contact-band {
  margin-top: 88px;
  background: linear-gradient(90deg, rgba(82, 129, 150, 0.43), rgba(17, 54, 68, 0.58), rgba(3, 19, 26, 0.95));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-grid {
  padding: 56px 0;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(320px, 540px);
  gap: 60px;
  align-items: center;
}

.contact-copy p {
  max-width: 520px;
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 22px 0 0;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.contact-form label {
  display: block;
}

.contact-form input {
  width: 100%;
  height: 68px;
  border-radius: 12px;
  border: 1px solid rgba(214, 236, 245, 0.34);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  color: var(--text);
  padding: 0 22px;
  outline: none;
}

.contact-form input::placeholder {
  color: rgba(255, 255, 255, 0.9);
}

.contact-form input:focus {
  border-color: color-mix(in srgb, var(--green) 55%, var(--accent) 45%);
  box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.08);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green);
}

.section-testimonials {
  padding-bottom: 84px;
}

.section-heading--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.slider-actions {
  display: flex;
  gap: 12px;
}

.slider-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  color: var(--text);
  font-size: 1.5rem;
}

.slider-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.testimonials-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 calc((100% - 36px) / 3);
  scroll-snap-align: start;
  padding: 28px 24px;
  min-height: 292px;
}

.testimonial-card__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}

.avatar {
  background: #4d8299;
  font-weight: 700;
}

.testimonial-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.testimonial-card__top p {
  margin: 4px 0 0;
  font-size: 0.95rem;
}

.rating {
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 700;
}

.testimonial-card p:last-child {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.footer {
  padding-bottom: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer__links p {
  margin: 0;
  color: var(--muted);
}

/* Language switcher */
.lang-switcher {
  display: flex;
  gap: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px;
}

.lang-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background 0.25s ease, color 0.25s ease;
}

.lang-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.lang-btn.is-active {
  background: var(--accent);
  color: #07131c;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-page .hero {
  min-height: 360px;
}

.blog-page .hero__inner {
  padding-bottom: 30px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(.22,1,.36,1), box-shadow 0.35s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(143, 215, 243, 0.1);
}

.blog-card__thumb {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card__thumb--crm {
  background: linear-gradient(135deg, #143543 0%, #1a4a5e 50%, #0d2833 100%);
}
.blog-card__thumb--ai {
  background: linear-gradient(135deg, #1a2a4a 0%, #2d4a6e 50%, #0d1f33 100%);
}
.blog-card__thumb--auto {
  background: linear-gradient(135deg, #1a3a2a 0%, #2d5e4a 50%, #0d2b1f 100%);
}
.blog-card__thumb--security {
  background: linear-gradient(135deg, #3a1a2a 0%, #5e2d3a 50%, #2b0d1f 100%);
}
.blog-card__thumb--cloud {
  background: linear-gradient(135deg, #1a2a3a 0%, #2d4a5e 50%, #0d1f2b 100%);
}
.blog-card__thumb--md {
  background: linear-gradient(135deg, #2a3a1a 0%, #4a5e2d 50%, #1f2b0d 100%);
}

.blog-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 60%, rgba(143, 215, 243, 0.15), transparent 60%);
}

.blog-card__icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  color: rgba(143, 215, 243, 0.35);
  z-index: 1;
  transition: color 0.4s ease, transform 0.4s ease;
}

.blog-card:hover .blog-card__icon {
  color: rgba(143, 215, 243, 0.55);
  transform: translate(-50%, -50%) scale(1.08);
}

.blog-card__stat {
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(143, 215, 243, 0.18);
  z-index: 1;
  letter-spacing: -0.03em;
  transition: color 0.4s ease;
}

.blog-card:hover .blog-card__stat {
  color: rgba(143, 215, 243, 0.32);
}

.blog-card__tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(143, 215, 243, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.blog-card__content {
  padding: 22px;
}

.blog-card__content h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  line-height: 1.4;
}

.blog-card__content p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.blog-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  margin-top: 18px;
}

.blog-card__date {
  color: var(--muted);
  opacity: 0.6;
}

.blog-card__read {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 20px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.blog-card__read:hover {
  background: rgba(143, 215, 243, 0.12);
  transform: translateX(4px);
}

/* ─── Article Modal ─── */
.article-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.article-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.article-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 11, 17, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.article-modal__container {
  position: relative;
  width: 90%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  border-radius: var(--radius);
  background: rgba(10, 30, 40, 0.95);
  border: 1px solid rgba(143, 215, 243, 0.2);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.45s cubic-bezier(.22,1,.36,1);
}

.article-modal.is-open .article-modal__container {
  transform: translateY(0) scale(1);
}

.article-modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.3s ease, border-color 0.3s ease;
  z-index: 2;
}

.article-modal__close:hover {
  background: rgba(143, 215, 243, 0.12);
  border-color: var(--accent);
}

.article-modal__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.article-modal__tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(143, 215, 243, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-modal__date {
  color: var(--muted);
  opacity: 0.5;
  font-size: 0.85rem;
}

.article-modal__title {
  font-size: 1.6rem;
  line-height: 1.35;
  margin: 0 0 24px;
  color: var(--text);
  padding-right: 40px;
}

.article-modal__body {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.article-modal__body h3 {
  color: var(--accent);
  font-size: 1.15rem;
  margin: 28px 0 12px;
}

.article-modal__body p {
  margin: 0 0 16px;
}

.article-modal__body ul,
.article-modal__body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.article-modal__body li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.article-modal__body strong {
  color: var(--text);
}

.article-modal__share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.88rem;
  color: var(--muted);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.share-btn:hover {
  transform: scale(1.1);
}

.share-btn--li:hover {
  background: rgba(0, 119, 181, 0.2);
  border-color: #0077b5;
  color: #0077b5;
}

.share-btn--fb:hover {
  background: rgba(66, 103, 178, 0.2);
  border-color: #4267b2;
  color: #4267b2;
}

.share-btn--tg:hover {
  background: rgba(0, 136, 204, 0.2);
  border-color: #0088cc;
  color: #0088cc;
}

/* Scrollbar in modal */
.article-modal__container::-webkit-scrollbar {
  width: 6px;
}

.article-modal__container::-webkit-scrollbar-track {
  background: transparent;
}

.article-modal__container::-webkit-scrollbar-thumb {
  background: rgba(143, 215, 243, 0.2);
  border-radius: 3px;
}

@media (max-width: 768px) {
  .article-modal__container {
    width: 95%;
    padding: 24px;
    max-height: 90vh;
  }

  .article-modal__title {
    font-size: 1.3rem;
    padding-right: 30px;
  }
}

@media (max-width: 1180px) {
  .hero__inner {
    padding-top: 86px;
  }

  .services-grid,
  .pricing-grid,
  .blog-grid,
  .bitrix-gallery,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-card {
    flex-basis: calc((100% - 18px) / 2);
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-copy {
    grid-column: 1 / -1;
  }

  .service-card--wide,
  .pricing-grid > *:last-child,
  .blog-grid > *:last-child {
    grid-column: auto;
  }
}

@media (max-width: 980px) {
  .wrapper {
    width: min(var(--container), calc(100% - 36px));
  }

  .header {
    padding-top: 18px;
  }

  .navbar {
    padding: 16px 18px;
    position: relative;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: var(--radius);
    background: rgba(6, 22, 30, 0.98);
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .navbar.is-open .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navbar.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .navbar.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .navbar.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .feature,
  .feature--reverse,
  .contact-grid,
  .footer,
  .section-heading--row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .feature__visual,
  .crm-rings,
  .crm-visual,
  .chat-visual,
  .ai-visual {
    min-height: 380px;
  }

  .section-heading--row,
  .footer {
    gap: 18px;
  }

  .footer__links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .section,
  .feature,
  .footer {
    padding-top: 72px;
  }

  .hero {
    min-height: 450px;
  }

  .hero__inner {
    padding-top: 74px;
  }

  .stats,
  .price-card,
  .testimonial-card,
  .service-card {
    padding-inline: 20px;
  }

  .stats-grid,
  .services-grid,
  .pricing-grid,
  .blog-grid,
  .bitrix-gallery,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    flex-basis: 100%;
  }

  .service-card,
  .price-card,
  .testimonial-card {
    min-height: auto;
  }

  .brand__text {
    font-size: 1.4rem;
  }

  .brand__logo {
    width: 40px;
    height: 40px;
  }

  .section-heading h2,
  .feature__content h2,
  .contact-copy h2,
  .section-testimonials h2,
  .eyebrow,
  .stats-copy h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .feature__visual,
  .crm-visual,
  .chat-visual,
  .ai-visual,
  .crm-rings {
    min-height: 340px;
  }

  .ring-stat--center .ring-stat__value { font-size: 3rem; }
  .ring-stat--center .ring-stat__suffix { font-size: 1.4rem; }
  .ring-stat__value { font-size: 1.8rem; }
  .ring-stat__suffix { font-size: 1rem; }
  .ring-stat__label { font-size: 0.68rem; }

  .ai-node {
    width: 54px;
    height: 54px;
    font-size: 1.15rem;
  }

  .ai-node--top-left,
  .ai-node--bottom-left { left: 28px; }
  .ai-node--top-right,
  .ai-node--bottom-right { right: 28px; }

  .ai-core {
    width: 170px;
    min-height: 120px;
  }

  .ai-core strong {
    font-size: 2.3rem;
  }

  .phone {
    width: 106px;
    height: 214px;
    right: 4%;
  }

  .slider-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .blog-card__icon { width: 48px; height: 48px; }
  .blog-card__stat { font-size: 1.8rem; }
}

/* ─── Extra small screens (≤ 420px) ─── */
@media (max-width: 420px) {
  .wrapper {
    width: calc(100% - 24px);
  }

  .navbar {
    padding: 12px 14px;
    min-height: 64px;
  }

  .brand__text {
    font-size: 1.25rem;
  }

  .brand__logo {
    width: 34px;
    height: 34px;
  }

  h1 {
    font-size: 1.8rem !important;
  }

  .hero {
    min-height: 360px;
  }

  .hero__inner {
    padding-top: 60px;
  }

  .hero__inner p {
    font-size: 1rem;
  }

  .feature__content h2 {
    font-size: 1.6rem !important;
  }

  .feature__lead {
    font-size: 0.95rem;
  }

  .crm-rings {
    min-height: 280px;
  }

  .ring-stat--center .ring-stat__value { font-size: 2.2rem; }
  .ring-stat--center .ring-stat__suffix { font-size: 1rem; }
  .ring-stat__value { font-size: 1.4rem; }
  .ring-stat__suffix { font-size: 0.8rem; }
  .ring-stat__label { font-size: 0.6rem; }

  .contact-form {
    padding: 18px;
  }

  .contact-form input {
    font-size: 0.95rem;
    padding: 12px 14px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.92rem;
  }

  .section,
  .feature,
  .footer {
    padding-top: 48px;
  }

  .footer__links {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
  }

  .article-modal__container {
    width: 98%;
    padding: 18px;
    border-radius: 16px;
  }

  .article-modal__title {
    font-size: 1.15rem;
  }

  .article-modal__body {
    font-size: 0.92rem;
    line-height: 1.6;
  }
}
