﻿body {
  margin: 0;
  overflow-x: hidden;
  background: #ffffff;
  color: #0f172a;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.site-header {
  width: 100%;
  padding: 22px 0;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  z-index: 1020;
  min-height: 87px;
  box-sizing: border-box;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 42px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.brand:hover {
  color: #0f172a;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-nav {
  flex: 1 1 auto;
  justify-content: center;
  padding: 0 24px;
}

.site-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 34px);
  width: 100%;
}

.mobile-nav-contacts {
  display: none;
}

.site-nav a {
  color: #334155;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #0284c7;
}

.site-nav .navbar-toggler {
  margin-left: auto;
  border-color: #cbd5e1;
}

.site-nav .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.2);
}

.site-nav .navbar-toggler-icon {
  background-image: var(--bs-navbar-toggler-icon-bg);
}

.header-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin: 0;
  font-style: normal;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
}

.contact-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
}

.contact-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: currentColor;
}

.contact-icon-telegram {
  color: #229ed9;
}

.main-banner {
  min-height: clamp(280px, 34vw, 440px);
  display: flex;
  align-items: center;
  background-image: url("assets/banner-main.svg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 1px solid #0b2447;
}

.service-banner {
  height: 440px;
  min-height: 440px;
  display: flex;
  align-items: center;
  background-image: url("assets/banner-main.svg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 1px solid #0b2447;
}

.service-banner > .container {
  display: block;
}

.service-banner .service-hero-content {
  min-width: 0;
}

.service-banner-visual {
  width: 420px;
  max-width: 100%;
  height: 360px;
  justify-self: end;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 1);
  border-radius: 10px;
  background: #0f172a;
  box-shadow: 0 18px 44px rgba(2, 8, 23, 0.24);
}

.service-banner-visual img {
  display: block;
  width: 100%;
  height: 100%;
  /*object-fit: cover;*/
}

@media (min-width: 1400px) {
  .service-banner > .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 426px);
    align-items: center;
    gap: clamp(32px, 5vw, 76px);
  }
}

.service-banner h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
}

.service-hero-content {
  max-width: 800px;
  padding: 44px 0;
  color: #ffffff;
}

.service-eyebrow {
  margin: 0 0 14px;
  color: #0284c7;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-hero-content .service-eyebrow {
  color: #7dd3fc;
}

.service-hero-content h1 {
  max-width: 780px;
  margin-bottom: 18px;
}

.service-hero-content > p:not(.service-eyebrow) {
  max-width: 700px;
  margin: 0 0 26px;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.6;
}

.service-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 22px;
  border-radius: 6px;
  background: #0284c7;
  color: #ffffff;
  font-weight: 750;
  text-decoration: none;
}

.service-button:hover {
  background: #0369a1;
  color: #ffffff;
}

.gallery-intro {
  padding: clamp(44px, 6vw, 76px) 0 28px;
  background: #f8f9fa;
}

.gallery-intro-content {
  /*max-width: 820px;*/
}

.gallery-intro h2 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
}

.gallery-intro-content > p:not(.service-eyebrow) {
  /*max-width: 760px;*/
  margin: 0;
  color: #64748b;
  font-size: 18px;
  line-height: 1.7;
}

.gallery-intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.gallery-intro-tags span {
  padding: 8px 13px;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  background: #f0f9ff;
  color: #0369a1;
  font-size: 14px;
  font-weight: 700;
}

.recognition-gallery {
  padding: clamp(34px, 5vw, 64px) 0;
  background: #f8f9fa;
}

.stage-gallery {
  padding-top: clamp(34px, 5vw, 64px);
  padding-bottom: clamp(34px, 5vw, 64px);
}

.stage-gallery-dark {
  background: #0f1d35;
}

.stage-gallery-dark .gallery-preview {
  border-color: rgba(125, 211, 252, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.stage-gallery-dark .gallery-thumb {
  border-color: rgba(125, 211, 252, 0.25);
}

.gallery-frame {
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-preview {
  height: clamp(260px, 42vw, 540px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: linear-gradient(135deg, #e0f2fe 0%, #f8fafc 52%, #dbeafe 100%);
  color: #0f172a;
  text-align: center;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.gallery-preview::before {
  display: none;
}

.gallery-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 6px;
  background: #ffffff;
}

.gallery-thumbnails {
  display: flex;
  gap: 12px;
  padding: 16px 0 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.gallery-thumb {
  flex: 1 0 0;
  min-width: 150px;
  height: 92px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: linear-gradient(145deg, #f1f5f9, #dbeafe);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

.gallery-thumb:nth-child(odd) {
  background: #e0f2fe;
}

.gallery-thumb:nth-child(even) {
  background: #dbeafe;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.18);
  color: #0369a1;
}

.api-section {
  padding: clamp(52px, 7vw, 92px) 0;
  background: #0f1d35;
}

.api-intro {
  max-width: 820px;
}

.api-intro h2 {
  color: #ffffff;
}

.api-intro > p:last-child {
  color: #cbd5e1;
}

.api-intro .service-eyebrow {
  color: #7dd3fc;
}

.api-endpoints {
  display: grid;
  gap: 20px;
}

.api-endpoint {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  background: #172742;
}

.api-endpoint-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.api-endpoint-heading span {
  padding: 5px 8px;
  border-radius: 4px;
  background: #0ea5e9;
  color: #082f49;
  font-size: 12px;
  font-weight: 850;
}

.api-endpoint-heading code {
  color: #e0f2fe;
  font-size: 15px;
}

.api-endpoint-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 22px 20px 24px;
}

.api-column h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 18px;
}

.api-column p {
  min-height: 52px;
  margin: 0 0 14px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.55;
}

.api-column pre {
  min-height: 150px;
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 6px;
  background: #0b1629;
}

.api-column pre code {
  color: #bae6fd;
  font-size: 13px;
  line-height: 1.6;
}

.recognition-section {
  padding: clamp(52px, 7vw, 92px) 0;
  background: #ffffff;
}

.recognition-section-muted {
  background: #f8fafc;
}

.recognition-section-dark {
  background: #0f1d35;
  color: #cbd5e1;
}

.section-intro {
  /*max-width: 760px;*/
  margin-bottom: 38px;
}

.section-intro h2,
.recognition-cta h2 {
  margin: 0 0 16px;
  /*!color: #0f172a;*/
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 800;
  line-height: 1.1;
}

.section-intro > p:last-child,
.formats-note {
  margin: 0;
  color: #64748b;
  font-size: 18px;
  line-height: 1.7;
}

.recognition-section-dark .section-intro h2 {
  color: #ffffff;
}

.recognition-section-dark .section-intro > p:last-child {
  color: #cbd5e1;
}

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

.process-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #ffffff;
}

.process-card span {
  color: #0284c7;
  font-size: 14px;
  font-weight: 800;
}

.process-card h3 {
  margin: 36px 0 12px;
  color: #0f172a;
  font-size: 21px;
  line-height: 1.25;
}

.process-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: clamp(34px, 7vw, 100px);
  align-items: center;
}

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

.feature-list div {
  display: grid;
  gap: 6px;
  padding: 20px 0 20px 20px;
  border-left: 3px solid #38bdf8;
}

.feature-list strong {
  color: #0f172a;
  font-size: 18px;
}

.feature-list span {
  color: #64748b;
  line-height: 1.5;
}

.document-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.document-tags span {
  padding: 12px 16px;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  background: #f0f9ff;
  color: #0369a1;
  font-weight: 700;
}

.integration-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.integration-panel div {
  display: grid;
  min-height: 110px;
  place-items: center;
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 8px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 750;
}

.recognition-cta {
  padding: clamp(52px, 7vw, 84px) 0;
  background: #e0f2fe;
}

.recognition-cta p {
  margin: 0 0 24px;
  color: #475569;
  font-size: 18px;
}

.generation-section {
  padding: clamp(52px, 7vw, 92px) 0;
  background: #ffffff;
}

.generation-overview {
  padding: clamp(48px, 6vw, 76px) 0;
  background: #ffffff;
}

.generation-flow {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: #0369a1;
  font-weight: 750;
}

.generation-flow span {
  padding: 12px 16px;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  background: #f0f9ff;
}

.generation-flow i {
  color: #94a3b8;
  font-size: 22px;
  font-style: normal;
}

.generation-stage {
  padding: clamp(64px, 9vw, 120px) 0;
}

.generation-stage-light {
  background: #f8fafc;
}

.generation-stage-dark {
  background: #0f1d35;
}

.generation-stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(38px, 8vw, 120px);
  align-items: center;
}

.generation-stage-reverse {
  grid-template-columns: minmax(360px, 1.1fr) minmax(0, 0.9fr);
}

.generation-stage-copy {
  max-width: 580px;
}

.stage-number {
  margin-bottom: 22px;
  color: #0284c7;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.generation-stage-copy h2 {
  margin: 0 0 18px;
  color: #0f172a;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.08;
}

.generation-stage-dark .generation-stage-copy h2 {
  color: #ffffff;
}

.generation-stage-copy > p:not(.service-eyebrow) {
  margin: 0;
  color: #64748b;
  font-size: 18px;
  line-height: 1.7;
}

.generation-stage-dark .generation-stage-copy > p:not(.service-eyebrow) {
  color: #cbd5e1;
}

.generation-stage-copy ul {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  color: #334155;
  list-style: none;
  line-height: 1.5;
}

.generation-stage-dark .generation-stage-copy ul {
  color: #dbeafe;
}

.generation-stage-copy li::before {
  content: "✓";
  margin-right: 10px;
  color: #0ea5e9;
  font-weight: 800;
}

.generation-ui {
  min-height: 360px;
  padding: 26px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

.generation-stage-dark .generation-ui {
  border-color: rgba(125, 211, 252, 0.25);
  background: #172742;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.ui-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
}

.generation-stage-dark .ui-topline {
  border-color: rgba(148, 163, 184, 0.25);
  color: #ffffff;
}

.ui-topline > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
}

.ui-topline small {
  margin-left: auto;
  color: #0284c7;
  font-size: 11px;
  font-weight: 800;
}

.generation-ui-form label {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  color: #64748b;
  font-size: 13px;
}

.generation-ui-form label strong {
  padding: 12px;
  border: 1px solid #dbe5f0;
  border-radius: 5px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 600;
}

.generation-ui-form button {
  width: 100%;
  margin-top: 22px;
  padding: 12px 16px;
  border: 0;
  border-radius: 5px;
  background: #0284c7;
  color: #ffffff;
  font-weight: 750;
}

.generation-ui-form button span {
  float: right;
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.result-row span {
  color: #94a3b8;
}

.result-row strong {
  color: #ffffff;
  text-align: right;
}

.result-success {
  margin-top: 22px;
  padding: 12px;
  border-radius: 5px;
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  font-size: 14px;
  font-weight: 700;
}

.generation-ui-text h3 {
  margin: 30px 0 14px;
  color: #0f172a;
  font-size: 25px;
}

.generation-ui-text p {
  color: #475569;
  line-height: 1.65;
}

.text-lines {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.text-lines i {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: #dbeafe;
}

.text-lines i:nth-child(2) { width: 82%; }
.text-lines i:nth-child(3) { width: 64%; }

.ui-tags {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.ui-tags span {
  padding: 7px 10px;
  border-radius: 4px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 750;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.image-grid div {
  min-height: 112px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: 6px;
  background: linear-gradient(145deg, #1e3a5f, #0b1629);
  color: #7dd3fc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.search-field {
  display: flex;
  justify-content: space-between;
  margin-top: 26px;
  padding: 14px;
  border: 1px solid #dbe5f0;
  border-radius: 5px;
  color: #475569;
}

.search-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.search-results span {
  height: 130px;
  border-radius: 5px;
  background: linear-gradient(145deg, #e0f2fe, #cbd5e1);
}

.generation-last-stage {
  padding-bottom: clamp(64px, 9vw, 120px);
}

.generation-ui-action {
  width: 100%;
  margin-top: 24px;
  padding: 12px 16px;
  border: 0;
  border-radius: 5px;
  background: #0284c7;
  color: #ffffff;
  font-weight: 750;
  text-align: left;
}

.generation-ui-action span {
  float: right;
}

.order-row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.order-status {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
}

.order-row div {
  display: grid;
  gap: 5px;
}

.order-row strong,
.order-row > b {
  color: #ffffff;
  font-size: 14px;
}

.order-row small {
  color: #94a3b8;
  font-size: 12px;
}

.report-total {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid #e2e8f0;
  color: #64748b;
}

.report-total strong {
  color: #0f172a;
}

.pricing-section {
  padding: clamp(52px, 7vw, 96px) 0;
  background: #f8fafc;
}

.pricing-direction + .pricing-direction {
  margin-top: clamp(58px, 8vw, 100px);
}

.pricing-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

.pricing-heading h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
}

.pricing-heading > p:last-child {
  margin: 0;
  color: #64748b;
  font-size: 18px;
  line-height: 1.6;
}

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

.price-card {
  position: relative;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.price-card-featured {
  border-color: #0284c7;
  box-shadow: 0 16px 34px rgba(2, 132, 199, 0.16);
}

.price-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 9px;
  border-radius: 4px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price-card h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 800;
}

.price-description {
  min-height: 48px;
  margin: 0;
  color: #64748b;
  line-height: 1.5;
}

.price-value {
  margin: 24px 0;
  color: #0369a1;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 850;
  line-height: 1.1;
}

.price-value small {
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.price-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  color: #475569;
  list-style: none;
  line-height: 1.45;
}

.price-card li::before {
  content: "✓";
  margin-right: 9px;
  color: #0ea5e9;
  font-weight: 800;
}

.price-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: auto;
  padding: 10px 16px;
  border: 1px solid #0284c7;
  border-radius: 5px;
  color: #0369a1;
  font-weight: 750;
  text-decoration: none;
}

.price-card-featured .price-button,
.price-button:hover {
  background: #0284c7;
  color: #ffffff;
}

.pricing-intro {
  max-width: 760px;
  margin-bottom: 58px;
}

.pricing-intro h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
}

.pricing-intro > p:last-child {
  margin: 0;
  color: #64748b;
  font-size: 18px;
  line-height: 1.65;
}

.pricing-table-block + .pricing-table-block {
  margin-top: 72px;
}

.pricing-table-wrap {
  overflow: hidden;
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.pricing-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 18px 20px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: middle;
}

.pricing-table th:last-child,
.pricing-table td:last-child {
  display: none;
}

.pricing-table th {
  background: #f0f9ff;
  color: #0369a1;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-table td {
  color: #64748b;
  line-height: 1.45;
}

.pricing-table tbody tr:nth-child(odd) {
  background: #ffffff;
}

.pricing-table tbody tr:nth-child(even) {
  background: #f0f9ff;
}

.pricing-table tr:last-child td {
  border-bottom: 0;
}

.pricing-table td:first-child {
  color: #0f172a;
  font-weight: 750;
}

.table-price {
  color: #0369a1 !important;
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.table-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  padding: 8px 12px;
  border: 1px solid #0284c7;
  border-radius: 5px;
  color: #0369a1;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.table-button:hover {
  background: #0284c7;
  color: #ffffff;
}

.pricing-footnote {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 58px;
  padding: 24px 28px;
  border-left: 4px solid #0284c7;
  background: #e0f2fe;
  color: #475569;
}

.pricing-footnote strong {
  color: #0f172a;
}

.pricing-footnote .service-button {
  margin-left: auto;
  white-space: nowrap;
}

.question-bubble,
.answer-bubble {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 8px 8px 8px 2px;
  background: #e0f2fe;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.55;
}

.answer-label {
  margin: 18px 0 -18px;
  color: #0284c7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.answer-bubble {
  margin-top: 28px;
  border-radius: 8px 8px 2px 8px;
  background: #0284c7;
  color: #ffffff;
}

.answer-bubble-dark {
  margin-top: 24px;
  background: rgba(14, 165, 233, 0.18);
  color: #dbeafe;
}

.generation-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.generation-step {
  min-height: 250px;
  padding: 26px;
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #f8fafc;
}

.generation-step > span {
  color: #0284c7;
  font-size: 14px;
  font-weight: 800;
}

.generation-step h3 {
  margin: 30px 0 12px;
  color: #0f172a;
  font-size: 23px;
  line-height: 1.25;
}

.generation-step p {
  margin: 0;
  color: #64748b;
  font-size: 16px;
  line-height: 1.65;
}

.generation-step pre {
  margin: 18px 0 0;
  padding: 14px;
  overflow-x: auto;
  border-radius: 6px;
  background: #0f1d35;
}

.generation-step pre code {
  color: #bae6fd;
  font-size: 13px;
  line-height: 1.55;
}

.generation-note {
  padding: clamp(52px, 7vw, 84px) 0;
  background: #e0f2fe;
}

.generation-note h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
}

.generation-note p {
  max-width: 800px;
  margin: 0;
  color: #475569;
  font-size: 18px;
  line-height: 1.7;
}

.banner-content {
  max-width: 760px;
  padding: 42px 0;
  color: #ffffff;
}

.banner-kicker {
  display: inline-flex;
  max-width: 100%;
  margin: 0 0 20px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(3, 105, 161, 0.92);
  color: #e0f2fe;
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 750;
  line-height: 1.35;
}

.banner-content h1 {
  max-width: 720px;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 850;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.banner-content h1 span {
  color: #38bdf8;
}

.home-page .banner-content,
.home-page .banner-content h1 {
  width: 1100px;
  max-width: 100%;
}

.banner-text {
  max-width: 720px;
  margin: 0;
  color: #cbd5e1;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.automation-directions {
  padding: clamp(48px, 7vw, 88px) 0;
  background: #f8fafc;
}

.automation-directions h2 {
  margin: 0 0 clamp(28px, 4vw, 44px);
  color: #0f172a;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
}

.direction-card {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 28px;
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.direction-card h3 {
  max-width: 560px;
  margin: 0;
  color: #0f172a;
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 750;
  line-height: 1.25;
}

.direction-card p,
.direction-card ul {
  margin: 0;
  color: #64748b;
  font-size: 16px;
  line-height: 1.65;
}

.direction-card .direction-flow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  background: #f0f9ff;
  color: #0369a1;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.direction-card .direction-flow span {
  color: #0ea5e9;
}

.direction-card ul {
  padding-left: 0;
  list-style: none;
}

.direction-card li + li {
  margin-top: 5px;
}

.direction-card li::before {
  content: "⚡";
  margin-right: 8px;
  color: #0ea5e9;
}

.reviews-section,
.faq-section {
  padding: clamp(48px, 7vw, 88px) 0;
}

.reviews-section {
  background: #ffffff;
}

.contour-intro {
  /*max-width: 780px;*/
  margin: -10px 0 34px;
  color: #64748b;
  font-size: 18px;
  line-height: 1.65;
}

.contour-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 150px;
  padding: 28px;
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #f8fafc;
}

.contour-node {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 64px;
  padding: 14px 18px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  text-align: center;
}

.contour-node-accent {
  border-color: #0284c7;
  background: #0284c7;
  color: #ffffff;
}

.contour-node-ai {
  border-color: #bae6fd;
  background: #e0f2fe;
  color: #0369a1;
}

.contour-node-wide {
  max-width: 250px;
  font-size: 14px;
  line-height: 1.35;
}

.contour-connector {
  color: #38bdf8;
  font-size: 28px;
  font-weight: 700;
}

.contour-output {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.contour-output span {
  padding: 8px 12px;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  background: #f0f9ff;
  color: #0369a1;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .contour-diagram {
    flex-direction: column;
    gap: 8px;
    padding: 22px 16px;
  }

  .contour-connector-horizontal {
    transform: rotate(90deg);
  }

  .contour-node-wide {
    width: 100%;
    max-width: 280px;
  }
}

.faq-section {
  background: #f8fafc;
}

.site-footer {
  background: #e0f2fe !important;
  background-color: #e0f2fe !important;
  color: #64748b;
}

.footer-main {
  background: #e0f2fe !important;
  background-color: #e0f2fe !important;
  padding-top: 52px;
  padding-bottom: 52px;
}

.footer-column p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.footer-column p + p {
  margin-top: 4px;
}

.footer-title {
  margin-bottom: 12px !important;
  color: #0f172a;
  font-size: 18px !important;
  font-weight: 800;
}

.footer-contacts {
  justify-self: end;
  min-width: 220px;
  text-align: right;
}

.footer-contacts-mobile {
  display: none;
}

.footer-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: flex-start;
  gap: 7px;
}

.footer-menu .footer-title {
  grid-column: 1 / -1;
}

.footer-menu a {
  color: #64748b;
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
}

.footer-menu a:hover,
.footer-menu a:focus-visible {
  color: #0284c7;
}

.footer-inner .footer-menu {
  align-items: center;
}

.footer-contact-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.footer-bottom {
  padding: 16px 0;
  background: #0f1d35;
  color: #cbd5e1;
  font-size: 14px;
  text-align: center;
}

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

.reviews-section h2,
.faq-section h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
}

.reviews-controls {
  display: flex;
  gap: 8px;
}

.review-control {
  width: 42px;
  height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #0369a1;
  font-size: 22px;
  line-height: 1;
}

.review-control:hover {
  border-color: #0284c7;
  background: #f0f9ff;
}

.reviews-viewport {
  overflow: hidden;
}

.reviews-track {
  display: flex;
  gap: 24px;
  transition: transform 0.35s ease;
}

.review-card {
  flex: 0 0 calc((100% - 72px) / 4);
  min-height: 230px;
  padding: 24px;
  border: 1px solid #dbe5f0;
  border-radius: 8px;
  background: #f8fafc;
}

.review-author {
  color: #0f172a;
  font-size: 18px;
  font-weight: 750;
}

.review-role {
  margin-top: 5px;
  color: #0284c7;
  font-size: 14px;
  font-weight: 650;
}

.review-card p {
  margin: 24px 0 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.6;
}

.faq-container {
  max-width: 920px;
}

.faq-section h2 {
  margin-bottom: 32px;
}

.accordion-item {
  border-color: #dbe5f0;
}

.accordion-button {
  color: #0f172a;
  font-size: 18px;
  font-weight: 700;
}

.accordion-button:not(.collapsed) {
  color: #0369a1;
  background: #f0f9ff;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.2);
}

.accordion-body {
  color: #64748b;
  line-height: 1.65;
}

@media (max-width: 575.98px) {
  .service-banner {
    height: 430px;
    min-height: 430px;
  }

  .service-banner > .container {
    display: block;
  }

  .service-banner-visual {
    display: none;
  }

  .site-header {
    min-height: 72px;
    padding: 14px 0;
  }

  .site-header.sticky-top {
    position: static;
  }

  .header-inner {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    min-height: 42px;
  }

  .header-contacts {
    display: none;
  }

  .site-nav {
    width: auto;
    justify-content: flex-end;
    padding: 0;
  }

  .site-nav .navbar-collapse {
    width: 100%;
  }

  .site-nav-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0 2px;
  }

  .mobile-nav-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    font-style: normal;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.25;
  }

  .banner-content {
    padding: 34px 0;
  }

  .banner-kicker {
    border-radius: 8px;
  }

  .direction-card {
    min-height: 132px;
    padding: 22px;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .footer-main {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .site-footer .footer-contacts {
    justify-self: stretch !important;
    text-align: left !important;
  }

  .site-footer .footer-contact-line {
    justify-content: flex-start !important;
  }

  .footer-contacts-desktop {
    display: none !important;
  }

  .footer-contacts-mobile {
    display: block !important;
    grid-column: 1 / -1;
    justify-self: stretch !important;
    text-align: left !important;
    margin-right: auto !important;
}

@media (max-width: 767.98px) {
  .service-banner > .container {
    display: block;
  }

  .service-banner-visual {
    display: none !important;
  }
}

@media (max-width: 1399.98px) {
  .service-banner > .container {
    display: block !important;
    grid-template-columns: none !important;
  }

  .service-banner .service-banner-visual {
    display: none !important;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .service-banner > .container {
    display: block;
  }

  .service-banner-visual {
    display: none;
  }
}

  .footer-contacts-mobile .footer-contact-line {
    justify-content: flex-start !important;
    text-align: left !important;
    width: 100% !important;
}

  .footer-menu {
    order: 2;
  }

  .footer-contacts {
    order: 3;
  }

  .footer-main {
    width: 100%;
  }

  .footer-main > .footer-column,
  .footer-main > .footer-menu {
    width: 100%;
    min-width: 0;
  }

  .footer-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .footer-inner .footer-menu {
    align-items: flex-start;
  }
}

@media (min-width: 576px) {
  .footer-contacts-desktop {
    display: block;
    grid-column: 3;
    text-align: right;
  }

  .footer-contacts-mobile {
    display: none !important;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .header-contacts {
    display: none;
  }

  .site-nav {
    justify-content: flex-end;
    padding-right: 0;
  }

  .site-nav-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
  }

  .mobile-nav-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    font-style: normal;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.25;
  }

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

/* Footer switches to the mobile layout at the Bootstrap md breakpoint. */
@media (max-width: 767.98px) {
  .site-footer .footer-contacts-desktop {
    display: none !important;
  }

  .site-footer .footer-contacts-mobile {
    display: block !important;
    width: 100% !important;
    margin-right: auto !important;
    text-align: left !important;
  }

  .site-footer .footer-contacts-mobile .footer-contact-line {
    justify-content: flex-start !important;
    width: 100% !important;
    text-align: left !important;
  }
}

@media (min-width: 768px) {
  .site-footer .footer-contacts-desktop {
    display: block !important;
    text-align: right;
  }

  .site-footer .footer-contacts-mobile {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-column-section {
    grid-template-columns: 1fr;
  }

  .api-endpoint-grid {
    grid-template-columns: 1fr;
  }

  .generation-steps {
    grid-template-columns: 1fr;
  }

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

  .generation-stage-grid,
  .generation-stage-reverse {
    grid-template-columns: 1fr;
  }

  .generation-stage-reverse .generation-ui {
    order: 2;
  }
}

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

  .service-hero-content {
    padding: 34px 0;
  }

  .process-card {
    min-height: 180px;
  }

  .process-card h3 {
    margin-top: 24px;
  }

  .integration-panel {
    grid-template-columns: 1fr;
  }

  .generation-flow {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .price-card {
    min-height: 390px;
  }

  .generation-flow i {
    transform: rotate(90deg);
  }

  .generation-ui {
    min-height: 320px;
    padding: 20px;
  }

  .result-row {
    font-size: 14px;
  }

  .search-results span {
    height: 90px;
  }

  .recognition-gallery {
    padding-top: 24px;
	
  }

  .gallery-preview {
    height: 260px;
    padding: 10px;
  }

  .gallery-thumb {
    flex: 0 0 150px;
  }

  .pricing-table-wrap {
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .pricing-table,
  .pricing-table thead,
  .pricing-table tbody,
  .pricing-table tr,
  .pricing-table td {
    display: block;
    width: 100%;
  }

  .pricing-table thead {
    display: none;
  }

  .pricing-table tr {
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid #dbe5f0;
    border-radius: 8px;
    background: #ffffff;
  }

  .pricing-table tbody tr:nth-child(even) {
    background: #f0f9ff;
  }

  .pricing-table td {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    padding: 7px 0;
    border: 0;
    font-size: 14px;
  }

  .pricing-table td[data-label="Цена"] {
    display: grid !important;
    color: #0369a1 !important;
    font-size: 19px;
    font-weight: 800;
  }

  .pricing-table td[data-label="Что входит"] {
    display: none;
  }

  .pricing-table td:nth-child(2) {
    display: none !important;
  }

  .pricing-table td[data-label="Цена"]::before {
    color: #64748b;
    font-size: 11px;
  }

  .pricing-table td::before {
    content: attr(data-label);
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .pricing-footnote {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 40px;
    padding: 20px;
  }

.pricing-footnote .service-button {
  width: 100%;
  margin-left: 0;
}
}

/* Keep service banners single-column below Bootstrap md. */
@media (max-width: 767.98px) {
  .service-banner > .container {
    display: block !important;
    grid-template-columns: none !important;
  }

  .service-banner .service-hero-content {
    width: 100% !important;
    max-width: none !important;
  }

  .service-banner .service-banner-visual,
  .service-banner-visual.d-none {
    display: none !important;
  }
}


