/* ===== АйТи Аналитикс — фирменные стили ===== */

:root {
  --dark: #1d1d1b;
  --dark-2: #262622;
  --dark-3: #303029;
  --light: #ececec;
  --light-2: #e2e2e0;
  --white: #ffffff;
  --green: #8fbf21;
  --green-dark: #4c952e;
  --green-light: #b6db5a;
  --text: #1d1d1b;
  --text-soft: #55564f;
  --text-on-dark: #ececec;
  --text-on-dark-soft: #b7b7b2;
  --link: #1a56db;
  --link-hover: #123f9e;
  --link-on-dark: #6fa8ff;
  --link-on-dark-hover: #a9c9ff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 45px -20px rgba(0, 0, 0, 0.25);
  --container: 1200px;
  --ff: "Nunito", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--ff);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

/* Ссылки на другие статьи и страницы внутри текста — подсвечиваем, чтобы было видно, что это ссылка */
main p a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(26, 86, 219, 0.35);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

main p a:hover {
  color: var(--link-hover);
  text-decoration-color: currentColor;
}

.section--dark p a {
  color: var(--link-on-dark);
  text-decoration-color: rgba(111, 168, 255, 0.4);
}

.section--dark p a:hover {
  color: var(--link-on-dark-hover);
  text-decoration-color: currentColor;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--ff);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

p {
  line-height: 1.6;
  margin: 0 0 16px;
  color: var(--text-soft);
}

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

.section {
  padding: 96px 0;
}

.section--tight {
  padding: 64px 0;
}

.section--dark {
  background: var(--dark);
  color: var(--text-on-dark);
}

.section--dark p {
  color: var(--text-on-dark-soft);
}

.section--light {
  background: var(--light);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  margin-bottom: 14px;
}

.section--dark .eyebrow {
  color: var(--green);
}

.section--dark .card {
  color: var(--dark);
}

.section--dark .card .eyebrow {
  color: var(--green-dark);
}

.section--dark .article-quote {
  color: var(--text-on-dark);
}

.section--dark .article-quote cite {
  color: var(--green);
}

.section-head {
  max-width: 720px;
  margin: 0 0 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title--accent {
  color: var(--green);
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff);
  font-weight: 800;
  font-size: 15px;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--green);
  color: var(--dark);
  box-shadow: 0 12px 24px -8px rgba(143, 191, 33, 0.55);
}

.btn--primary:hover {
  background: var(--green-light);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(236, 236, 236, 0.35);
  color: var(--text-on-dark);
}

.btn--ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn--outline-dark {
  background: transparent;
  border-color: rgba(29, 29, 27, 0.2);
  color: var(--text);
}

.btn--outline-dark:hover {
  border-color: var(--green-dark);
  color: var(--green-dark);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 13px;
}

.btn--gold {
  background: linear-gradient(90deg, #fffab8, #c09f4a);
  color: #1d1d1b;
  border-radius: 10px;
  box-shadow: 0 12px 24px -10px rgba(192, 159, 74, 0.6);
}

.btn--gold:hover {
  filter: brightness(1.05);
}

/* ===== Header ===== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(29, 29, 27, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(143, 191, 33, 0.15);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.brand__mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand__name {
  font-weight: 900;
  font-size: 23px;
  color: var(--white);
  line-height: 1.1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.nav a {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-on-dark-soft);
  transition: color 0.15s ease;
  display: inline-block;
  white-space: nowrap;
  position: relative;
}

.nav a:hover,
.nav a.is-active {
  color: var(--white);
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -28px;
  height: 3px;
  background: var(--green);
  border-radius: 3px;
}

/* ===== Nav dropdown (submenus for Битрикс24 / Телефония) ===== */

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-item-row {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.nav-caret {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 4px;
  margin: 0;
  cursor: pointer;
  color: var(--text-on-dark-soft);
  font-size: 10px;
  line-height: 1;
  transition: transform 0.2s ease, color 0.15s ease;
}

.nav-caret:hover {
  color: var(--white);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 240px;
  margin-top: 14px;
  background: var(--dark-2);
  border: 1px solid rgba(143, 191, 33, 0.2);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 60;
}

.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-on-dark-soft);
  white-space: nowrap;
}

.dropdown a:hover {
  background: rgba(143, 191, 33, 0.14);
  color: var(--white);
}

.dropdown a.is-active {
  background: rgba(143, 191, 33, 0.14);
  color: var(--green);
}

.dropdown a.is-active::after {
  content: none;
}

@media (min-width: 1151px) {
  /* Invisible bridge over the gap between the nav item and the
     dropdown (created by .dropdown's margin-top) -- without it the
     cursor leaves .nav-item's hover box while crossing the gap and
     the dropdown closes before it can be reached. */
  .nav-item::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 22px;
  }

  .nav-item:hover .dropdown,
  .nav-item:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }
}

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

.header__phone {
  font-weight: 800;
  color: var(--white);
  font-size: 14px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(236, 236, 236, 0.25);
  background: transparent;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ===== Hero ===== */

.hero {
  position: relative;
  background: var(--dark);
  color: var(--text-on-dark);
  overflow: hidden;
  padding: 90px 0 55px;
}

.hero__glow {
  position: absolute;
  width: 900px;
  height: 900px;
  right: -320px;
  top: -300px;
  background: radial-gradient(circle, rgba(143, 191, 33, 0.28), transparent 65%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(143, 191, 33, 0.12);
  border: 1px solid rgba(143, 191, 33, 0.4);
  color: var(--green);
  font-weight: 800;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero__badge-icon {
  width: 11px;
  height: 11px;
  object-fit: contain;
  flex: none;
}

.hero h1 {
  font-size: 52px;
  color: var(--white);
  max-width: 640px;
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero__lead {
  font-size: 18px;
  max-width: 560px;
  color: var(--text-on-dark-soft);
}

.page-hero .hero__lead,
.page-intro-light .hero__lead {
  max-width: none;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 36px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero__stat b {
  display: block;
  font-size: 30px;
  font-weight: 900;
  color: var(--white);
}

.hero__stat span {
  font-size: 13px;
  color: var(--text-on-dark-soft);
  font-weight: 600;
}

.hero__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__art img {
  width: 100%;
  max-width: 420px;
  filter: drop-shadow(0 30px 60px rgba(143, 191, 33, 0.25));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.page-hero {
  background: var(--dark);
  color: var(--text-on-dark);
  padding: 72px 0 84px;
  position: relative;
  overflow: hidden;
}

.page-hero__inner {
  position: relative;
}

.page-hero h1 {
  color: var(--white);
  font-size: 42px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--text-on-dark-soft);
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.breadcrumb .sep {
  color: var(--green);
}

.page-intro-light {
  margin-bottom: 40px;
}

.page-intro-light .breadcrumb {
  color: var(--text-soft);
}

.page-intro-light h1 {
  color: var(--dark);
  font-size: 42px;
  margin: 0 0 16px;
}

.page-intro-light .hero__lead {
  color: var(--text-soft);
}

@media (max-width: 760px) {
  .page-intro-light h1 { font-size: 30px; }
}

/* ===== Checklist ===== */

.check-list {
  display: grid;
  gap: 14px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 700;
  font-size: 15.5px;
}

.check-list .ico {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
}

.check-list li a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--green, #8fbf21);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  transition: color .15s ease;
}

.check-list li a:hover {
  color: var(--green, #8fbf21);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 40px;
}

/* ===== Cards ===== */

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(29, 29, 27, 0.06);
}

.trainer-photo {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(29, 29, 27, 0.08);
}

/* ===== Equipment catalog (catalog/) ===== */

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.catalog-tile {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(29, 29, 27, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.catalog-tile:hover {
  transform: translateY(-3px);
  border-color: var(--green);
}

.catalog-tile__img {
  aspect-ratio: 4 / 3;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.catalog-tile__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.catalog-tile__body {
  padding: 16px 18px 18px;
}

.catalog-tile__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 4px;
}

.catalog-tile__count {
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 600;
}

.catalog-group-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
}

.catalog-group + .catalog-group {
  margin-top: 40px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(29, 29, 27, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--green);
}

.product-card__img {
  aspect-ratio: 1 / 1;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.product-card__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-card__body {
  padding: 14px 16px 16px;
}

.product-card__name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 8px;
  line-height: 1.35;
}

.product-card__price {
  font-size: 16px;
  font-weight: 900;
  color: var(--green-dark);
}

.product-card__price--none {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
}

.product-detail {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 44px;
  align-items: start;
}

.product-detail__img {
  background: var(--light);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 24px;
}

.product-detail__img img {
  max-width: 100%;
}

.product-detail__price {
  font-size: 30px;
  font-weight: 900;
  color: var(--dark);
  margin: 14px 0 6px;
}

.product-detail__price--none {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-soft);
  margin: 14px 0 6px;
}

.product-detail__note {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 22px;
}

.product-specs h3 {
  font-size: 16px;
  color: var(--dark);
  margin: 24px 0 10px;
}

.product-specs h3:first-child {
  margin-top: 0;
}

.product-specs ul {
  list-style: disc;
  margin: 0 0 4px 20px;
  padding: 0;
}

.product-specs ul ul {
  margin-top: 6px;
}

.product-specs li {
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .product-detail { grid-template-columns: 1fr; }
  .product-detail__img { position: static; }
}

.course-facts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.course-facts .card {
  padding: 22px 20px;
  text-align: center;
}

.course-facts .eyebrow {
  font-size: 11px;
  margin-bottom: 8px;
}

.course-facts strong {
  display: block;
  font-size: 16px;
  color: var(--dark);
}

@media (max-width: 1150px) {
  .course-facts { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .course-facts { grid-template-columns: repeat(2, 1fr); }
}

.service-card {
  background: var(--dark);
  color: var(--text-on-dark);
  border-radius: var(--radius);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.service-card::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(143, 191, 33, 0.25), transparent 70%);
  top: -100px;
  right: -100px;
}

.service-card h3 {
  color: var(--white);
  font-size: 26px;
  position: relative;
}

.service-card p {
  color: var(--text-on-dark-soft);
  position: relative;
}

.service-card .check-list {
  position: relative;
  margin-bottom: 24px;
}

.service-card .check-list li {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-on-dark-soft);
}

.service-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ===== Advantage / dragon cards ===== */

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

/* Last card is a lone leftover in its row — centre it instead of
   leaving it stuck to the left with empty space beside it. */
.advantage-grid > .advantage:last-child {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.advantage {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--dark-2);
  border: 1px solid rgba(143, 191, 33, 0.15);
  border-radius: var(--radius);
  padding: 24px;
}

.advantage__avatar {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  border: 3px solid var(--green);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.advantage__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}

.advantage:hover .advantage__avatar {
  transform: scale(1.3);
  box-shadow: 0 14px 30px -6px rgba(143, 191, 33, 0.5);
}

.advantage p {
  margin: 0;
  color: var(--text-on-dark);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
}

/* ===== Process steps ===== */

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 30px 20px 20px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(29, 29, 27, 0.08);
  text-align: center;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: var(--dark);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  box-shadow: 0 8px 16px -6px rgba(143, 191, 33, 0.6);
}

.step h4 {
  font-size: 15px;
  margin: 12px 0 0;
}

/* ===== Process diagram (bitrix24 page) ===== */

.diagram-col h3 {
  color: var(--green-dark);
  font-size: 20px;
  border-bottom: 2px solid var(--green);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.diagram-block {
  background: var(--white);
  border: 1px solid rgba(29, 29, 27, 0.08);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin-bottom: 16px;
}

.diagram-block h4 {
  font-size: 15px;
  color: var(--dark);
  margin-bottom: 10px;
}

.diagram-block ul {
  display: grid;
  gap: 7px;
}

.diagram-block li {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-soft);
  padding-left: 16px;
  position: relative;
}

.diagram-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* ===== Partners ===== */

.partners-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  opacity: 0.92;
}

.partners-row img {
  height: 80px;
  width: auto;
  max-width: 30%;
  object-fit: contain;
  flex: 1 1 0;
}

@media (max-width: 640px) {
  .partners-row { justify-content: center; }
  .partners-row img { height: 52px; max-width: 45%; flex: none; }
}

/* ===== Offices ===== */

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

.offices--single {
  grid-template-columns: 1fr;
  max-width: 360px;
  margin: 0 auto;
}

.office-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.office-map {
  max-width: 640px;
  margin: 24px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.office-map iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.office-card .city {
  font-weight: 900;
  font-size: 19px;
  color: var(--dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.office-card .city::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

/* ===== Contact form ===== */

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 18px;
  border-radius: 12px;
  border: 1px solid rgba(29, 29, 27, 0.15);
  font-family: var(--ff);
  font-size: 15px;
  background: var(--white);
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(143, 191, 33, 0.2);
}

.contact-form label {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: -8px;
}

.form-note {
  font-size: 12.5px;
  color: var(--text-soft);
}

.form-success {
  display: none;
  background: rgba(143, 191, 33, 0.12);
  border: 1px solid var(--green);
  color: var(--green-dark);
  font-weight: 700;
  padding: 16px 18px;
  border-radius: 12px;
}

/* ===== News carousel ===== */

.news-section {
  padding: 24px 0;
}

.advantages-section {
  padding-top: 48px;
  padding-bottom: 48px;
}

.services-section {
  padding: 24px 0;
}

/* ===== Наши услуги (tabbed services block) ===== */

.services-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.slash-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--dark);
}

.section--dark .slash-title {
  color: var(--white);
}

.slash {
  display: inline-block;
  width: 10px;
  height: 22px;
  border-left: 3px solid var(--green);
  transform: skewX(-18deg);
}

.block-link {
  flex: none;
  font-weight: 800;
  font-size: 14px;
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.block-link:hover {
  color: var(--dark);
}

.section--dark .block-link {
  color: var(--green);
}

.section--dark .block-link:hover {
  color: var(--white);
}

.services-block {
  display: flex;
  align-items: flex-start;
  gap: 56px;
}

.services-tabs {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.services-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  padding: 14px 4px 14px 20px;
  text-align: left;
  cursor: pointer;
  font-family: var(--ff);
  color: var(--text-on-dark-soft);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.services-tab__num {
  font-weight: 800;
  font-size: 12.5px;
  color: inherit;
  opacity: 0.8;
}

.services-tab__label {
  font-weight: 800;
  font-size: 17px;
}

.services-tab:hover {
  color: var(--white);
}

.services-tab.is-active {
  border-left-color: var(--green);
  color: var(--white);
}

.services-tab.is-active .services-tab__num {
  color: var(--green);
  opacity: 1;
}

.services-panels {
  flex: 1;
  min-width: 0;
}

.services-panel {
  display: none;
}

.services-panel.is-active {
  display: block;
}

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

.service-tile {
  display: flex;
  flex-direction: column;
  background: var(--dark-2);
  border: 1px solid rgba(143, 191, 33, 0.16);
  border-radius: 16px;
  padding: 26px 26px 22px;
  min-height: 168px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-tile:hover {
  border-color: var(--green);
  transform: translateY(-3px);
}

.service-tile h3 {
  color: var(--green);
  font-size: 16px;
  margin: 0 0 10px;
}

.service-tile p {
  color: var(--text-on-dark-soft);
  font-size: 13.5px;
  margin: 0;
  flex: 1;
}

.service-tile__arrow {
  align-self: flex-end;
  width: 34px;
  height: 34px;
  margin-top: 14px;
  border-radius: 50%;
  border: 1px solid rgba(236, 236, 236, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--white);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.service-tile:hover .service-tile__arrow {
  background: var(--green);
  color: var(--dark);
  border-color: var(--green);
}

/* Odd tile count in a row leaves a lone leftover — span it full width
   instead of sticking it to the left with empty space beside it. */
.services-grid > .service-tile:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .services-top { margin-bottom: 22px; }
  .services-block { flex-direction: column; gap: 14px; }
  .services-tabs { flex: none; flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
  .services-tab { border-left: none; border-bottom: 3px solid transparent; padding: 6px 2px 10px; }
  .services-tab.is-active { border-bottom-color: var(--green); }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
}

.news-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.news-head h2 {
  margin: 0;
}

.news-carousel {
  position: relative;
}

.news-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

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

.news-card {
  flex: 0 0 270px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(29, 29, 27, 0.06);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.news-card__media {
  height: 130px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark), var(--green-dark));
}

.news-card__media img {
  width: 52px;
  height: 52px;
  opacity: 0.9;
}

.news-card__media--photo {
  background: var(--dark);
}

.news-card__media--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

a.news-card {
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

a.news-card:hover {
  transform: translateY(-3px);
  border-color: var(--green);
}

a.news-card:hover .news-card__title {
  color: var(--green-dark);
}

.news-card__body {
  padding: 20px 22px 24px;
}

.news-card__tag {
  display: inline-block;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.news-card__title {
  font-size: 16px;
  margin: 0 0 8px;
}

.news-card__text {
  font-size: 13.5px;
  margin: 0;
}

.news-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(29, 29, 27, 0.12);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  z-index: 5;
  transition: background 0.15s ease, color 0.15s ease;
}

.news-arrow:hover {
  background: var(--green);
  color: var(--dark);
}

.news-arrow--prev {
  left: -18px;
}

.news-arrow--next {
  right: -18px;
}

@media (max-width: 760px) {
  .news-arrow { display: none; }
  .news-card { flex-basis: 240px; }
}

/* ===== Кейсы (карусель) ===== */

.cases-section {
  padding: 24px 0;
}

.cases-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.cases-head h2 {
  margin: 0;
}

.cases-carousel {
  position: relative;
}

.cases-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

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

.cases-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(29, 29, 27, 0.06);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.cases-card__media {
  height: 180px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark), var(--green-dark));
}

.cases-card__media img {
  width: 64px;
  height: 64px;
  opacity: 0.9;
}

.cases-card__media--photo {
  height: 180px;
  padding: 0;
}

.cases-card__media--photo img {
  width: 100%;
  height: 100%;
  opacity: 1;
  object-fit: cover;
}

.cases-card__body {
  padding: 26px 28px 28px;
}

.cases-card__tag {
  display: inline-block;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.cases-card__title {
  font-size: 19px;
  margin: 0 0 10px;
}

.cases-card__text {
  font-size: 14.5px;
  margin: 0;
}

.cases-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(29, 29, 27, 0.12);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  z-index: 5;
  transition: background 0.15s ease, color 0.15s ease;
}

.cases-arrow:hover {
  background: var(--green);
  color: var(--dark);
}

.cases-arrow--prev {
  left: -22px;
}

.cases-arrow--next {
  right: -22px;
}

@media (max-width: 900px) {
  .cases-card { flex-basis: calc((100% - 24px) / 2); }
}

@media (max-width: 760px) {
  .cases-arrow { display: none; }
  .cases-card { flex-basis: 82%; }
}

/* ===== Отзывы ===== */

.reviews-section {
  padding: 24px 0;
}

.reviews-widget-holder {
  max-width: 640px;
  margin: 0 auto;
}

.yandex-reviews-widget {
  position: relative;
  width: 100%;
  height: 680px;
  overflow: hidden;
  border-radius: var(--radius);
}

.yandex-reviews-widget iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(236, 236, 236, 0.16);
  border-radius: var(--radius);
  box-sizing: border-box;
}

.yandex-reviews-widget__attribution {
  box-sizing: border-box;
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 100%;
  padding: 0 16px;
  text-align: center;
  font-family: "YS Text", sans-serif;
  font-size: 10px;
  color: #b3b3b3;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 14px;
}

.yandex-reviews-widget--page {
  height: 900px;
}

@media (max-width: 640px) {
  .yandex-reviews-widget { height: 520px; }
  .yandex-reviews-widget--page { height: 640px; }
}

/* ===== FAQ ===== */

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border: 1px solid rgba(29, 29, 27, 0.1);
  border-radius: var(--radius-sm);
  padding: 6px 24px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 30px 16px 0;
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 22px;
  font-weight: 900;
  color: var(--green-dark);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: -4px 0 18px;
}

/* ===== CTA band ===== */

.cta-band {
  background: linear-gradient(120deg, var(--green-dark), var(--green));
  color: var(--dark);
  border-radius: 28px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--dark);
  margin-bottom: 8px;
}

.cta-band p {
  color: rgba(29, 29, 27, 0.75);
  margin: 0;
}

.cta-band .btn--primary {
  background: var(--dark);
  color: var(--white);
  box-shadow: none;
}

.cta-band .btn--primary:hover {
  background: #000;
}

/* ===== Footer ===== */

.footer {
  background: var(--dark);
  color: var(--text-on-dark-soft);
  padding: 70px 0 30px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(236, 236, 236, 0.1);
}

.footer .brand__name {
  color: var(--white);
}

.footer p {
  color: var(--text-on-dark-soft);
  font-size: 14.5px;
}

.footer h4 {
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.footer ul {
  display: grid;
  gap: 11px;
}

.footer a {
  font-size: 14.5px;
  color: var(--text-on-dark-soft);
  transition: color 0.15s ease;
}

.footer a:hover {
  color: var(--green);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

.social-row {
  display: flex;
  gap: 10px;
}

.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(236, 236, 236, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.social-row a:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ===== Utility ===== */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.link-blue {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-blue:hover {
  color: #1d4ed8;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .hero__art img { max-width: 260px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .offices { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .check-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1150px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header__inner { height: auto; padding: 14px 24px; flex-wrap: nowrap; }
  .header__actions { gap: 10px; flex: none; }
  /* With the nav collapsed there isn't room for a separate "Заказать
     звонок" button next to the full phone number — the number itself
     becomes the green call-to-action pill, so the header always stays
     on a single row. */
  .header__actions > a.btn { display: none; }
  .header__phone {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    background: var(--green);
    color: var(--dark);
    font-weight: 800;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 999px;
  }
  .nav a.is-active::after { bottom: -8px; }
  .header.is-open .nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid rgba(143, 191, 33, 0.2);
  }
  .nav-item { flex-direction: column; width: 100%; }
  .nav-item-row { width: 100%; justify-content: center; }
  .nav-caret { display: inline-flex; }
  .nav-item .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    margin-top: 0;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }
  .nav-item.is-open .dropdown { max-height: 220px; padding: 6px 0 0; }
  .nav-item.is-open .nav-caret { transform: rotate(180deg); }
  .dropdown a { text-align: center; font-size: 14px; padding: 8px 12px; }
}

@media (max-width: 560px) {
  .header__inner { padding: 10px 14px; gap: 6px; height: 60px; }
  .brand { gap: 6px; min-width: 0; }
  .brand__mark { width: 24px; height: 24px; flex: none; }
  .brand__name { font-size: 12.5px; white-space: nowrap; }
  .header__actions { gap: 6px; }
  .header__phone { font-size: 11px; padding: 8px 10px; }
  .nav-toggle { width: 32px; height: 32px; font-size: 15px; flex: none; }
}

@media (max-width: 760px) {
  .hero h1 { font-size: 36px; }
  .page-hero h1 { font-size: 30px; }
  .steps { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
  .section { padding: 64px 0; }
  .advantages-section { padding-top: 48px; padding-bottom: 48px; }
  .services-section { padding: 24px 0; }
  .cases-section { padding: 24px 0; }
  .reviews-section { padding: 24px 0; }
}

/* ===== Тарифы Битрикс24 (лицензии) ===== */

.pricing-toggle {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 0 auto 40px;
  padding: 4px;
  width: fit-content;
  background: var(--light);
  border-radius: 999px;
}

.pricing-toggle__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  font-family: var(--ff);
  font-weight: 800;
  font-size: 14px;
  color: var(--text-soft);
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.pricing-toggle__btn.is-active {
  background: var(--dark);
  color: var(--white);
}

.pricing-toggle__badge {
  background: var(--green);
  color: var(--dark);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}

.price-card__users-toggle {
  display: flex;
  gap: 6px;
  margin: 14px 0 10px;
}

.price-card__users-btn {
  flex: 1;
  border: 1px solid rgba(29, 29, 27, 0.14);
  background: var(--white);
  font-family: var(--ff);
  font-weight: 800;
  font-size: 13px;
  color: var(--text-soft);
  padding: 6px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.price-card__users-btn.is-active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(29, 29, 27, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
}

.price-card--highlight {
  border-color: var(--green);
  border-width: 2px;
}

.price-card__badge {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--green);
  color: var(--dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}

.price-card__name {
  font-size: 19px;
  font-weight: 900;
  color: var(--dark);
}

.price-card__tagline {
  font-size: 13px;
  color: var(--text-soft);
  margin: 6px 0 18px;
  min-height: 34px;
}

.price-card__price {
  margin-bottom: 6px;
}

.price-card__amount {
  display: none;
  font-size: 26px;
  font-weight: 900;
  color: var(--dark);
}

.price-card__amount span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
}

.pricing-grid:not(.is-yearly) .price-card__amount--month { display: inline; }
.pricing-grid.is-yearly .price-card__amount--year { display: inline; }

.price-card__meta {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.price-card__cta {
  width: 100%;
  justify-content: center;
  margin-bottom: 22px;
}

.price-card__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.price-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text);
}

.price-card__features .ico {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex: none;
}

.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-soft);
}

.pricing-source {
  font-size: 12.5px;
  color: var(--text-soft);
  text-align: center;
}

@media (max-width: 1360px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1150px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-toggle { width: 100%; }
  .pricing-toggle__btn { flex: 1; justify-content: center; }
}

.pricing-mode-toggle {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 32px;
}

.pricing-mode-toggle__btn {
  border: 1px solid rgba(29, 29, 27, 0.14);
  background: var(--white);
  font-family: var(--ff);
  font-weight: 800;
  font-size: 15px;
  color: var(--text-soft);
  padding: 10px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pricing-mode-toggle__btn.is-active {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

.pricing-grid--box {
  grid-template-columns: repeat(3, 1fr);
}

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 14px;
  min-width: 640px;
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid rgba(29, 29, 27, 0.08);
  white-space: nowrap;
}

.compare-table th:first-child,
.compare-table td:first-child {
  text-align: left;
  white-space: normal;
  font-weight: 700;
  color: var(--dark);
}

.compare-table thead th {
  background: var(--green);
  color: var(--dark);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.compare-table thead th:first-child {
  color: var(--dark);
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:nth-child(even) {
  background: var(--light);
}

/* ===== Полная таблица сравнения (compare.html) ===== */

.compare-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 28px;
}

.market-shot {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(29, 29, 27, 0.08);
}

@media (max-width: 980px) {
  .market-block .grid-2 img { order: -1; }
}

.compare-toc a {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-on-dark-soft);
  border: 1px solid rgba(236, 236, 236, 0.2);
  border-radius: 999px;
  padding: 7px 14px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.compare-toc a:hover {
  color: var(--white);
  border-color: var(--green);
}

.compare-toc--light a {
  color: var(--text-soft);
  border-color: rgba(29, 29, 27, 0.14);
}

.compare-toc--light a:hover {
  color: var(--dark);
  border-color: var(--green-dark);
}

.compare-full-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.compare-full-section:nth-child(odd) {
  background: var(--light);
}

.compare-full-section__title {
  margin-bottom: 20px;
}

.compare-table--full td:first-child {
  font-weight: 400;
  padding-left: 18px;
}

.compare-table--full tr.ct-lvl-0 td:first-child {
  font-weight: 800;
  color: var(--green-dark);
}

.compare-table--full tr.ct-lvl-1 td:first-child {
  padding-left: 32px;
  color: var(--text-soft);
}

.compare-table--full tr.ct-lvl-2 td:first-child {
  padding-left: 46px;
  color: var(--text-soft);
  font-size: 13px;
}

.compare-table .ct-yes {
  color: var(--green-dark);
  font-weight: 800;
}

.compare-table .ct-no {
  color: rgba(29, 29, 27, 0.25);
}

/* Фиксированная ширина колонок — чтобы столбцы совпадали
   между отдельными таблицами разных разделов */
.compare-table--full {
  table-layout: fixed;
}

.compare-table--full th,
.compare-table--full td {
  white-space: normal;
}

.compare-table--full th:first-child,
.compare-table--full td:first-child {
  width: 28%;
}

.compare-table--full th:not(:first-child),
.compare-table--full td:not(:first-child) {
  width: 14.4%;
}


.ct-level {
  display: inline-flex;
  gap: 3px;
  vertical-align: middle;
}

.ct-level i {
  display: block;
  width: 7px;
  height: 16px;
  border-radius: 2px;
  background: rgba(29, 29, 27, 0.12);
}

.ct-level[data-level="1"] i:nth-child(1),
.ct-level[data-level="2"] i:nth-child(-n+2),
.ct-level[data-level="3"] i {
  background: var(--green-dark);
}

@media (max-width: 640px) {
  .compare-toc { display: none; }
}

@media (max-width: 900px) {
  .pricing-grid--box { grid-template-columns: 1fr; }
}

/* ===== Переключатель "Показать различия" + сворачивание разделов ===== */

.compare-diff-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-on-dark-soft);
}

.compare-diff-control--light {
  color: var(--text-soft);
}

.compare-diff-control--light .compare-diff-switch__track {
  background: rgba(29, 29, 27, 0.14);
}

.compare-diff-switch {
  position: relative;
  display: inline-block;
}

.compare-diff-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.compare-diff-switch__track {
  position: relative;
  display: block;
  width: 40px;
  height: 22px;
  background: rgba(236, 236, 236, 0.25);
  border-radius: 999px;
  transition: background 0.15s ease;
}

.compare-diff-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  display: block;
  width: 16px;
  height: 16px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.15s ease;
}

.compare-diff-switch input:checked ~ .compare-diff-switch__track {
  background: var(--green);
}

.compare-diff-switch input:checked ~ .compare-diff-switch__track .compare-diff-switch__thumb {
  transform: translateX(18px);
  background: var(--dark);
}

.compare-full-section__title {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare-full-section__title::after {
  content: "▾";
  font-size: 16px;
  color: var(--text-soft);
  transition: transform 0.2s ease;
}

.compare-full-section.is-collapsed .compare-full-section__title::after {
  transform: rotate(-90deg);
}

.box-features-group.compare-full-section {
  padding: 0;
  margin-bottom: 16px;
  border: 1px solid rgba(29, 29, 27, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.box-features-group.compare-full-section:nth-child(odd) {
  background: var(--white);
}

.box-features-group .compare-full-section__title {
  padding: 16px 20px;
  margin: 0;
  background: var(--light);
  font-size: 16px;
}

.box-features-group .compare-table--full th:first-child,
.box-features-group .compare-table--full td:first-child {
  width: 40%;
}

.box-features-group .compare-table--full th:not(:first-child),
.box-features-group .compare-table--full td:not(:first-child) {
  width: 20%;
}

.compare-full-section.is-collapsed .compare-table-wrap {
  display: none;
}

body.show-diff-only .compare-table--full tbody tr[data-uniform="true"] {
  display: none;
}

/* ===== Кейсы: страница-кейс ===== */

.video-embed {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--dark);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  max-width: 900px;
  margin: 16px auto 0;
  font-size: 13.5px;
  color: var(--text-on-dark-soft);
  text-align: center;
}

.section--light .video-caption {
  color: var(--text-soft);
}

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

.case-facts .card {
  padding: 22px 20px;
}

.case-facts .eyebrow {
  font-size: 11px;
  margin-bottom: 8px;
}

.case-facts strong {
  display: block;
  font-size: 16px;
  color: var(--dark);
}

.case-prose {
  max-width: 760px;
  margin: 0 auto;
}

.case-prose p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-soft);
}

.case-prose p + p {
  margin-top: 16px;
}

.steps .step p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 8px 0 0;
}

.case-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case-list .card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  overflow: hidden;
}

.case-list .card:hover .case-list__title {
  color: var(--green-dark);
}

.case-list__media {
  margin: -34px -34px 20px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark), var(--green-dark));
}

.case-list__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-list__title {
  font-size: 19px;
  margin: 0 0 10px;
  transition: color 0.15s ease;
}

.case-list__more {
  margin-top: auto;
  padding-top: 14px;
  font-weight: 800;
  color: var(--green-dark);
}

@media (max-width: 860px) {
  .case-facts { grid-template-columns: repeat(2, 1fr); }
  .case-list { grid-template-columns: 1fr; }
}

/* ===== Новости: статья ===== */

.article-quote {
  margin: 24px 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--green);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 700;
  color: var(--dark);
}

.section--light .article-quote {
  border-left-color: var(--green-dark);
}

.article-quote cite {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 800;
  font-style: normal;
  color: var(--green-dark);
}

.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.news-list .card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  overflow: hidden;
}

.news-list .card:hover .case-list__title {
  color: var(--green-dark);
}

@media (max-width: 760px) {
  .article-quote { font-size: 16px; }
}

/* ===== Возможности Битрикс24: закреплённая прокрутка по разделам ===== */

/* Меньше воздуха между текстом с кнопками и блоком возможностей (в 2 раза). */
.page-hero--flush { padding-bottom: 42px; }
.feature-explorer { padding-top: 48px; }
@media (max-width: 900px) {
  .page-hero--flush { padding-bottom: 32px; }
  .feature-explorer { padding-top: 32px; }
}

/* .feature-explorer остаётся обычной .section — вертикальные отступы
   создают воздух до и после закреплённой сцены.
   .feature-scene получает высоту из JS: 100vh + (N-1) * шаг прокрутки,
   а .feature-scene__pin «залипает», пока сцена проходит мимо. */

.feature-scene {
  position: relative;
  min-height: calc(100vh - 84px);
}

.feature-scene__pin {
  position: sticky;
  top: 84px;
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  padding: 22px 0;
}

.feature-scene__pin > .container {
  width: 100%;
}

.feature-scene__pin .section-head {
  margin-bottom: 20px;
}

.feature-scene__pin .section-head p {
  margin-bottom: 0;
}

/* индикатор прогресса по 12 разделам */
.feature-progress {
  margin-top: 24px;
  height: 3px;
  background: rgba(236, 236, 236, 0.14);
  border-radius: 2px;
  overflow: hidden;
}

.feature-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--green);
  transition: width 0.3s ease;
}

/* На главной блок «Наши услуги» тоже становится закреплённой сценой:
   ужимаем крупные внешние отступы, чтобы контент помещался в экран. */
.services-section.feature-explorer {
  padding: 48px 0 56px;
}

.feature-explorer .services-top {
  margin-bottom: 20px;
}

/* Плитки услуг в закреплённой сцене — компактнее, чтобы 4 ряда влезали в экран */
.services-section.feature-explorer .services-grid {
  gap: 14px;
}

.services-section.feature-explorer .service-tile {
  min-height: 0;
  padding: 16px 18px 14px;
}

.services-section.feature-explorer .service-tile h3 {
  margin-bottom: 6px;
}

.services-section.feature-explorer .service-tile__arrow {
  width: 30px;
  height: 30px;
  margin-top: 10px;
}

.feature-explorer .services-tabs {
  flex-basis: 260px;
}

.feature-explorer .services-tab {
  padding-top: 7px;
  padding-bottom: 7px;
}

.feature-explorer .services-tab__label {
  font-size: 14.5px;
}

.feature-explorer .services-panels {
  position: relative;
}

.feature-panel__title {
  color: var(--white);
  font-size: 21px;
  margin: 2px 0 10px;
}

.feature-panel__lead {
  color: var(--text-on-dark-soft);
  margin: 0 0 22px;
  max-width: 62ch;
}

.feature-explorer .check-list li {
  color: var(--text-on-dark);
  font-weight: 600;
  font-size: 14.5px;
}

@media (max-width: 900px) {
  .feature-scene,
  .feature-scene__pin {
    min-height: 0;
  }
  .feature-scene__pin {
    position: sticky;
    top: 64px;
    align-items: flex-start;
    padding: 16px 0 22px;
  }
  .feature-scene__pin .section-head {
    margin-bottom: 14px;
  }
  .feature-scene__pin .section-head h2 {
    font-size: 20px;
  }
  .feature-scene__pin .section-head p {
    display: none;
  }
  .no-feature-scene .feature-scene__pin .section-head p {
    display: block;
  }
  /* на узком экране в закреплённом виде экономим высоту: прячем подводку,
     список — в одну колонку (разделов 12, а экран невысокий) */
  .feature-explorer .feature-panel__lead {
    display: none;
  }
  .feature-explorer .feature-panel__title {
    font-size: 19px;
    margin-top: 0;
  }
  .feature-explorer .check-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .feature-explorer .check-list li {
    font-size: 13.5px;
  }
  .no-feature-scene .feature-explorer .feature-panel__lead {
    display: block;
  }
  .no-feature-scene .feature-explorer .check-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 40px;
  }
  .feature-explorer .services-tabs {
    align-self: stretch;
    min-width: 0;
    flex: none;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 4px;
    margin: 0;
    padding: 0 0 4px;
    scroll-behavior: smooth;
  }
  .feature-explorer .services-tabs::-webkit-scrollbar { display: none; }
  .feature-explorer .services-tab {
    flex: none;
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 6px 6px 10px;
  }
  .feature-explorer .services-tab.is-active {
    border-bottom-color: var(--green);
  }
}

/* Запасной режим: JS выключил сцену (низкий экран, контент не помещается)
   или пользователь попросил меньше анимации — обычные вкладки без закрепления. */
.no-feature-scene .feature-scene,
.no-feature-scene .feature-scene__pin {
  min-height: 0;
  height: auto;
}

.no-feature-scene .feature-scene__pin {
  position: static;
}

.no-feature-scene .feature-explorer .services-panels {
  min-height: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  .feature-scene,
  .feature-scene__pin {
    min-height: 0;
    height: auto;
  }
  .feature-scene__pin {
    position: static;
  }
  .feature-explorer .services-panels {
    min-height: 0 !important;
  }
}

/* ===== Статья: BI-аналитика (макеты дашбордов, сравнение систем) ===== */

.article-shot {
  margin: 30px auto;
  max-width: 880px;
}

.article-shot__frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(29, 29, 27, 0.1);
  background: var(--white);
}

.article-shot__frame svg {
  display: block;
  width: 100%;
  height: auto;
}

.article-shot figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-soft);
  text-align: center;
}

.section--dark .article-shot figcaption {
  color: var(--text-on-dark-soft);
}

/* Иллюстрация-талисман: без карточки-рамки, компактнее по ширине */
.article-shot--mascot {
  max-width: 320px;
}

.article-shot--mascot .article-shot__frame {
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

/* Сравнение BI-систем: в ячейках длинный текст — разрешаем перенос и левое выравнивание */
.compare-table--bi {
  min-width: 720px;
}

.compare-table--bi th,
.compare-table--bi td {
  white-space: normal;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

.compare-table--bi td {
  color: var(--text-soft);
}

.compare-table--bi td:first-child {
  color: var(--dark);
}

/* ===== Кейс: реальные скриншоты из портала клиента ===== */

.article-shot__frame img {
  display: block;
  width: 100%;
  height: auto;
}

.article-shot__frame--overlay {
  position: relative;
}

.article-shot__cta {
  position: absolute;
  left: 11.5%;
  bottom: 6%;
  z-index: 2;
}

@media (max-width: 560px) {
  .article-shot__cta {
    padding: 11px 18px;
    font-size: 13px;
  }
}

.case-prose h3 {
  font-size: 20px;
  margin: 34px 0 12px;
  color: var(--dark);
}

.case-prose h3:first-child {
  margin-top: 0;
}

.case-source {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(29, 29, 27, 0.12);
  font-size: 14px;
  color: var(--text-soft);
}
