/* Reusable UI components and hero blocks */

.hero {
  position: relative;
  overflow: clip;
  z-index: var(--z-base);
}

.hero--accreditation {
  padding-top: clamp(2.2rem, 4.8vw, 3.4rem);
  padding-bottom: clamp(1.9rem, 4.1vw, 3rem);
}

.hero--accreditation + .section {
  margin-top: clamp(0.1rem, 0.45vw, 0.35rem);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(2.25rem, 4vw, 3.6rem);
  align-items: center;
  isolation: isolate;
  z-index: var(--z-content);
}

.hero-grid > * {
  position: relative;
  z-index: var(--z-content);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: var(--z-decor);
}

.hero::before {
  inset: clamp(0.4rem, 1.5vw, 1.2rem) 0 auto;
  height: min(72%, 520px);
  border-radius: 38px;
  background:
    linear-gradient(116deg, rgba(241, 246, 252, 0.78) 0%, rgba(248, 251, 255, 0.5) 46%, rgba(234, 241, 249, 0.58) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(27, 60, 121, 0.008) 0,
      rgba(27, 60, 121, 0.008) 1px,
      transparent 1px,
      transparent 132px
    );
  border: 1px solid rgba(196, 210, 231, 0.32);
  box-shadow: 0 10px 30px rgba(16, 42, 88, 0.032);
}

.hero::after {
  width: min(44vw, 560px);
  aspect-ratio: 1 / 1;
  top: clamp(1.3rem, 4vw, 3.2rem);
  right: clamp(-7rem, -5vw, -2rem);
  background: radial-gradient(circle, rgba(108, 146, 220, 0.22) 0%, rgba(108, 146, 220, 0.08) 44%, rgba(108, 146, 220, 0) 72%);
  filter: blur(0.6px);
}

.hero-title {
  margin: 0;
  display: grid;
  gap: 0.1rem;
  line-height: 1.04;
  letter-spacing: -0.012em;
  font-size: clamp(2.3rem, 3.8vw, 3.9rem);
}

.hero-title__line {
  display: block;
  white-space: nowrap;
}

.hero-title__line--accent {
  color: #2f5cff;
  text-shadow: 0 1px 10px rgba(42, 79, 166, 0.08);
}

.hero-text {
  margin: clamp(1rem, 1.75vw, 1.55rem) 0 clamp(1.25rem, 2.2vw, 1.85rem);
  color: #36475f;
  font-size: clamp(1.01rem, 1.15vw, 1.11rem);
  line-height: 1.66;
}

.hero--home .hero-copy {
  max-width: min(100%, 42.5rem);
  min-width: 0;
  display: grid;
  align-content: start;
}

@media (min-width: 801px) {
  .hero--home .hero-grid {
    align-items: stretch;
  }

  .hero--home .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 100%;
  }

  .hero--home .hero-actions {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
  }

  .hero--home .hero-panel--cards {
    gap: 0.72rem;
    padding: clamp(1.05rem, 1.9vw, 1.4rem);
  }

  .hero--home .hero-service-card {
    min-height: 124px;
    display: grid;
    align-content: start;
  }

  .hero--home .hero-service-card .card-cta {
    margin-top: auto !important;
    padding-top: 0.62rem;
  }
}

.hero--home .hero-grid {
  grid-template-columns: 1.12fr 0.88fr;
}

.hero--home {
  padding: clamp(5rem, 8.2vw, 7rem) 0 clamp(5rem, 8.4vw, 7.2rem);
}

.hero--home::before {
  inset: clamp(1rem, 2.2vw, 1.8rem) 0 auto;
  height: min(74%, 560px);
  background: radial-gradient(circle at 22% 22%, rgba(236, 244, 255, 0.9) 0%, rgba(248, 251, 255, 0.88) 56%, rgba(242, 247, 255, 0.82) 100%);
  border: 1px solid rgba(208, 220, 238, 0.38);
  box-shadow: 0 14px 34px rgba(16, 42, 88, 0.04);
}

.hero--home .hero-title {
  max-width: 24ch;
  margin-bottom: clamp(1rem, 1.8vw, 1.35rem);
}

.hero--home .hero-text {
  max-width: 58ch;
  margin: 0 0 1.5rem;
}

.hero--home .hero-facts {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

.hero--home .eyebrow {
  margin-bottom: clamp(0.46rem, 0.9vw, 0.7rem);
}

.hero--service-page .hero-grid {
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  gap: clamp(1.25rem, 2.4vw, 2.2rem);
}

.hero--service-page .hero-copy {
  width: 100%;
  max-width: min(100%, 96ch);
  padding-inline: 0;
}

.hero--service-page .eyebrow {
  margin-bottom: clamp(0.95rem, 1.8vw, 1.45rem);
}

.hero--service-page .hero-title {
  max-width: 38ch;
  line-height: 1.02;
  margin-bottom: clamp(1rem, 1.8vw, 1.45rem);
}

.hero--service-page .hero-text {
  max-width: 78ch;
  margin-top: 0;
  margin-bottom: clamp(1.5rem, 2.8vw, 2.4rem);
}

.hero--service-page .hero-facts {
  margin-bottom: clamp(1.45rem, 2.4vw, 2.2rem);
}

.hero--service-page .hero-actions {
  margin-top: clamp(0.25rem, 1vw, 0.7rem);
}

.breadcrumbs + .hero--service-page {
  margin-top: clamp(0.75rem, 1.5vw, 1.35rem);
}

.hero--service-page::after {
  display: none;
}

.hero--service-page::before {
  inset: clamp(0.25rem, 0.9vw, 0.7rem) 0 auto;
  height: min(78%, 500px);
  border-radius: 34px;
}

.hero-copy--service {
  padding-inline: clamp(0.45rem, 2.4vw, 1.75rem);
  max-width: 70ch;
}

.hero-facts {
  margin: 0 0 1.55rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
  color: var(--text);
  font-size: 0.83rem;
}

.hero-facts li {
  display: flex;
}

.hero-facts li span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.65rem 0.82rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(244, 249, 255, 0.74) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78), 0 8px 18px rgba(17, 39, 76, 0.04);
  backdrop-filter: blur(8px);
  color: #30425f;
  font-weight: 500;
  letter-spacing: 0.006em;
}

.hero-facts li span::before {
  content: none;
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.hero-note {
  margin: 0.52rem 0 0;
  font-size: 0.9rem;
  color: #495c77;
}

.hero--accreditation .hero-grid {
  grid-template-columns: minmax(520px, 640px) minmax(220px, 1fr);
  gap: clamp(1.25rem, 2.4vw, 2.2rem);
  align-items: center;
  min-height: clamp(280px, 34vw, 390px);
}

.hero--accreditation::before {
  inset: clamp(0.35rem, 1.15vw, 0.95rem) 0 auto;
  height: min(69%, 440px);
  border-radius: 30px;
  background:
    linear-gradient(124deg, rgba(241, 246, 252, 0.9) 0%, rgba(247, 251, 255, 0.8) 50%, rgba(236, 243, 252, 0.78) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(27, 60, 121, 0.006) 0,
      rgba(27, 60, 121, 0.006) 1px,
      transparent 1px,
      transparent 120px
    );
  border-color: rgba(189, 205, 228, 0.44);
  box-shadow: 0 8px 22px rgba(16, 42, 88, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.hero--accreditation::after {
  width: min(36vw, 450px);
  top: clamp(1rem, 3.1vw, 2.2rem);
  right: clamp(-6.2rem, -5.2vw, -2.4rem);
  opacity: 0.74;
}

.hero-copy--accreditation {
  max-width: 620px;
  padding-inline: clamp(0.2rem, 1.3vw, 0.8rem);
}

.hero--accreditation .eyebrow {
  margin-bottom: 0.44rem;
}

.hero--accreditation .hero-title {
  max-width: 19ch;
  line-height: 1;
  letter-spacing: -0.016em;
}

.hero--accreditation .hero-text {
  margin: clamp(0.86rem, 1.5vw, 1.22rem) 0 0.72rem;
  max-width: 56ch;
  line-height: 1.55;
}

.hero--accreditation .hero-note {
  margin-top: 0;
}

.hero--accreditation .hero-actions {
  margin-top: 1.02rem;
  gap: 0.62rem;
  align-items: center;
}

.hero--accreditation .hero-actions .button {
  min-height: 2.64rem;
  padding: 0.58rem 1.18rem;
}

.hero--accreditation .hero-actions .button--secondary {
  border-color: #aebfda;
  background: rgba(255, 255, 255, 0.72);
}

.hero--service-page.hero--accreditation .hero-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 2.4vw, 2.2rem);
  min-height: 0;
}

.hero--service-page.hero--accreditation .hero-copy--accreditation {
  width: 100%;
  max-width: min(100%, 96ch);
  padding-inline: 0;
}

.hero--service-page.hero--accreditation .eyebrow {
  margin-bottom: clamp(0.95rem, 1.8vw, 1.45rem);
}

.hero--service-page.hero--accreditation .hero-title {
  max-width: 38ch;
  margin-bottom: clamp(1rem, 1.8vw, 1.45rem);
}

.hero--service-page.hero--accreditation .hero-text {
  max-width: 78ch;
  margin: 0 0 clamp(1.15rem, 2.1vw, 1.7rem);
}

.hero--service-page.hero--accreditation .hero-actions {
  margin-top: clamp(0.25rem, 1vw, 0.7rem);
}

.hero-visual__label {
  margin: 0 0 0.9rem;
  font-size: 0.76rem;
  font-weight: 640;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4d607f;
}

.hero-panel {
  position: relative;
  z-index: var(--z-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  min-height: 340px;
  display: grid;
  place-content: center;
  box-shadow: var(--shadow-md);
}

.hero-panel--cards {
  min-height: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.82rem;
  background: linear-gradient(180deg, #f9fcff 0%, #f3f8ff 100%);
  border: 1px solid #d8e3f2;
  box-shadow: 0 10px 22px rgba(15, 37, 74, 0.05), 0 30px 54px rgba(14, 35, 72, 0.09);
  padding: clamp(1rem, 1.8vw, 1.4rem);
  overflow: visible;
  align-content: start;
}

.hero-service-card {
  display: block;
  position: relative;
  z-index: var(--z-card);
  --card-base-lift: -1px;
  --card-hover-lift: -4px;
  --card-hover-shadow: 0 12px 24px rgba(12, 34, 68, 0.09), 0 28px 46px rgba(12, 34, 68, 0.17);
  --card-hover-border: rgba(180, 202, 233, 0.92);
  --card-hover-bg: linear-gradient(180deg, #f9fcff 0%, #edf4ff 100%);
  --card-hover-glow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 0 0 1px rgba(194, 214, 239, 0.4);
  --card-link-shift: 4px;
  background: linear-gradient(180deg, #fbfdff 0%, #f2f7ff 100%);
  border: 1px solid #d4dfef;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 10px rgba(13, 34, 68, 0.05), 0 16px 30px rgba(17, 42, 86, 0.08);
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  padding: 1.06rem 1.08rem 1.12rem;
  overflow: hidden;
  transform: translateY(var(--card-base-lift));
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out, background 0.18s ease-out;
}

.hero-service-card::before {
  content: "";
  position: absolute;
  inset: -55% -120%;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.58) 47%, rgba(255, 255, 255, 0.82) 50%, rgba(255, 255, 255, 0.56) 53%, transparent 80%);
  transform: translate3d(-52%, 0, 0) skewX(-16deg);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.75s ease, opacity 0.35s ease;
}

/* Добавим стиль для состояния наведения, чтобы карточка "оживала" */
.hero-service-card:hover {
  background: var(--card-hover-bg);
  border-color: var(--card-hover-border);
  box-shadow: var(--card-hover-shadow), var(--card-hover-glow);
  transform: translateY(var(--card-hover-lift));
}

.hero-service-card--featured {
  grid-column: 1 / -1;
  --card-base-lift: -2px;
  --card-hover-lift: -6px;
  --card-hover-shadow: 0 14px 28px rgba(11, 31, 64, 0.11), 0 34px 52px rgba(11, 31, 64, 0.2);
  --card-hover-border: rgba(168, 194, 226, 0.98);
  --card-hover-bg: linear-gradient(180deg, #f8fbff 0%, #ecf3ff 100%);
  --card-hover-glow: inset 0 1px 0 rgba(255, 255, 255, 0.84), inset 0 0 0 1px rgba(176, 201, 233, 0.5);
  --card-link-shift: 6px;
  border-color: rgba(185, 206, 233, 0.9);
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  min-height: 154px;
  box-shadow: 0 8px 16px rgba(12, 35, 73, 0.07), 0 24px 40px rgba(12, 35, 73, 0.14);
  transform: translateY(var(--card-base-lift)) scale(1.015);
}

.hero-service-card,
.hero-service-card:link,
.hero-service-card:visited,
.hero-service-card:hover,
.hero-service-card:active,
.hero-card,
.hero-card:link,
.hero-card:visited,
.hero-card:hover,
.hero-card:active {
  text-decoration: none !important;
}

.hero-service-card h3 {
  margin: 0 0 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.hero-service-card p {
  margin: 0;
  color: #425570;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.58;
}

.card-cta {
  margin-top: 0.86rem !important;
  font-size: 0.84rem !important;
  color: #345489 !important;
  text-decoration: none !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease-out, color 0.18s ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .hero-service-card:hover {
    transform: translateY(var(--card-hover-lift));
    box-shadow: var(--card-hover-shadow), var(--card-hover-glow);
    border-color: var(--card-hover-border);
    background: var(--card-hover-bg);
  }

  .hero-service-card:hover::before {
    opacity: 1;
    transform: translate3d(52%, 0, 0) skewX(-16deg);
  }

  .hero-service-card:hover h3 {
    color: #1c3f84;
  }

  .hero-service-card:hover .card-cta {
    transform: translateX(var(--card-link-shift));
    color: #1d3f81 !important;
  }
}

.hero-actions .button--primary {
  background: linear-gradient(135deg, #2f65df 0%, #2150c5 100%);
  border-color: #2855c4;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  border-radius: 16px;
  padding: 16px 32px;
  min-height: 58px;
  font-size: 1rem;
  font-weight: 650;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  transition: transform 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease, border-color 0.28s ease;
}

.hero-actions .button--primary::after {
  content: "";
  position: absolute;
  inset: -30% -60%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.25) 40%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.25) 60%,
    transparent 100%
  );
  transform: translate3d(-120%, 0, 0) skewX(-18deg);
  animation: heroCtaShimmer 3.1s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.9;
  mix-blend-mode: screen;
}

@media (hover: hover) and (pointer: fine) {
  .hero-actions .button--primary:hover {
    background: linear-gradient(135deg, #346cf0 0%, #2355cd 100%);
    border-color: #224fbe;
    box-shadow: 0 20px 44px rgba(37, 99, 235, 0.42), 0 0 24px rgba(59, 127, 255, 0.35);
    transform: translateY(-2px);
  }
}

.hero-actions .button--primary:active {
  transform: translateY(0);
}

@keyframes heroCtaShimmer {
  0% {
    transform: translate3d(-120%, 0, 0) skewX(-18deg);
  }
  100% {
    transform: translate3d(220%, 0, 0) skewX(-18deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-actions .button--primary::after {
    animation: none;
  }
}

.logos-heading {
  margin: 0 0 1.16rem;
  font-size: var(--home-type-h2-size, clamp(1.72rem, 2.9vw, 2.08rem));
  font-weight: 730;
  letter-spacing: -0.008em;
  line-height: var(--home-type-h2-line, 1.2);
  color: var(--text);
  text-align: center;
  text-wrap: balance;
}

.logos-subheading {
  margin: 0 auto 0.46rem;
  max-width: 62ch;
  text-align: center;
  color: color-mix(in srgb, var(--text) 86%, var(--text-muted));
  font-size: var(--home-type-lead-size, clamp(1.24rem, 1.7vw, 1.42rem));
  line-height: var(--home-type-lead-line, 1.62);
}

.logo-ticker__viewport {
  overflow: hidden;
  padding: 0.12rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.logo-ticker__track {
  display: flex;
  width: max-content;
  gap: 0.65rem;
  animation: trustTicker 30s linear infinite;
}

.trust-badges {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.56rem;
  margin: 0;
  padding: 0;
}

.trust-badges--wrap {
  flex-wrap: wrap;
}

.trust-badges--ticker {
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.trust-badges--scroll {
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  padding: 0.2rem 0 0.45rem;
  scrollbar-width: thin;
}

.trust-badges--scroll::-webkit-scrollbar {
  height: 0.38rem;
}

.trust-badges--scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 24%, transparent);
}

.trust-badges li {
  display: flex;
}

.trust-badge {
  --trust-badge-min-width: 7.5rem;
  min-width: var(--trust-badge-min-width);
  height: 2.35rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #173b94 16%, rgba(255, 255, 255, 0.78));
  background: color-mix(in srgb, #ffffff 84%, #e9f1ff);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: color-mix(in srgb, #10295f 86%, #000000);
  font-family: inherit;
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

@keyframes trustTicker {
  to {
    transform: translateX(calc(-50% - 0.325rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-ticker__track {
    animation: none;
  }
}

@media (min-width: 1024px) {
  .logo-ticker__track {
    animation: trustTicker 30s linear infinite;
  }
}



.accreditation-types-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.accreditation-type-card {
  min-height: 100%;
  padding: clamp(1.2rem, 2.1vw, 1.7rem);
  border-radius: var(--radius-md);
}

.accreditation-type-card .card-cta {
  margin-top: auto !important;
  display: inline-flex;
}

.inline-cta {
  margin-top: var(--space-4);
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  align-items: center;
}

.inline-cta p {
  margin: 0;
  max-width: 66ch;
  color: var(--text-muted);
  font-size: var(--home-type-body-size, 0.97rem);
  line-height: var(--home-type-body-line, 1.58);
}

.section--cool {
  background: #f3f6fb;
}

.service-card--cool {
  background: #f8fbff;
  border-color: #d4deea;
}

.trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-card {
  background: #fbfdff;
}


.trust-strip .service-card {
  padding: clamp(0.9rem, 1.8vw, 1.15rem);
}

.trust-strip .service-card h3 {
  margin: 0;
  font-size: 1rem;
}

.use-cases-grid .service-card,
#value .service-card,
#ai-search-structure .service-card {
  display: flex;
  align-items: center;
}

.use-cases-grid .service-card p,
#value .service-card p,
#ai-search-structure .service-card p {
  margin: 0;
}

.faq-accordion {
  display: grid;
  gap: var(--space-3);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 0.95rem 1.1rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-item p {
  margin: 0.8rem 0 0;
  color: var(--text-muted);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.related-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #c9d7f1;
  background: #f4f8ff;
  color: var(--text-main);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.related-links a:hover {
  background: #eaf1ff;
  border-color: #aebfde;
}
