/*
 * Сторінка «Мобільна розробка» (mobile.html).
 * Лише блоки цієї сторінки. Секції, контейнер, заголовки, кнопки, картки й поля — у спільних стилях.
 */

/* Перший екран: сітка — текст ліворуч, макет телефона праворуч */
.hero__grid {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 800px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

/* Макет телефона на першому екрані: панель з градієнтом, iPhone з дашбордом і плашки «Опубліковано» */
.hero-phone {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 540px;
  padding: var(--ds-space-13) var(--ds-space-6);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-2xl);
  background: var(--ds-gradient-2);
}

.hero-phone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 45% at 62% 38%, color-mix(in oklab, var(--ds-primary) 32%, transparent), transparent 72%),
    radial-gradient(50% 40% at 25% 85%, color-mix(in oklab, var(--ds-neutral-400) 40%, transparent), transparent 72%);
}

.hero-phone::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: min(460px, 110%);
  aspect-ratio: 1;
  border: 1px solid color-mix(in oklab, var(--ds-primary) 22%, transparent);
  border-radius: var(--ds-radius-full);
  box-shadow: 0 0 0 70px color-mix(in oklab, var(--ds-bg) 22%, transparent);
  transform: translate(-50%, -50%);
}

.hero-phone__device {
  position: relative;
  width: min(240px, 72%);
  aspect-ratio: 9 / 19.5;
  padding: var(--ds-space-3);
  border-radius: calc(var(--ds-radius-2xl) * 2);
  background: var(--ds-heading);
  box-shadow: var(--ds-shadow-lg);
  transform: perspective(1600px) rotateY(-12deg) rotateX(4deg) rotateZ(3deg);
}

.hero-phone__device::before {
  content: "";
  position: absolute;
  right: -3px;
  top: 24%;
  width: 3px;
  height: 14%;
  border-radius: var(--ds-radius-sm);
  background: var(--ds-neutral-800);
}

.hero-phone__screen {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-5);
  height: 100%;
  padding: var(--ds-space-4) var(--ds-space-5) 0;
  border-radius: calc(var(--ds-radius-2xl) * 1.6);
  background: var(--ds-surface);
  color: var(--ds-heading);
  font-family: var(--ds-font-body);
}

.hero-phone__island {
  position: absolute;
  top: var(--ds-space-3);
  left: 50%;
  width: 34%;
  height: 22px;
  border-radius: var(--ds-radius-full);
  background: var(--ds-heading);
  transform: translateX(-50%);
}

.hero-phone__status {
  display: flex;
  justify-content: space-between;
  padding-inline: var(--ds-space-3);
  font-size: calc(var(--ds-text-caption-size) * 0.82);
  font-weight: var(--ds-text-overline-weight);
  line-height: var(--ds-text-caption-line);
}

.hero-phone__head {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-1);
  padding-top: var(--ds-space-1);
}

.hero-phone__hello {
  color: var(--ds-text-muted);
  font-size: calc(var(--ds-text-caption-size) * 0.85);
  line-height: var(--ds-text-caption-line);
}

.hero-phone__app {
  font-family: var(--ds-font-heading);
  font-size: var(--ds-text-h5-size);
  line-height: var(--ds-text-h5-line);
  letter-spacing: var(--ds-text-h2-tracking);
}

.hero-phone__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ds-space-3);
}

.hero-phone__tile {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-1);
  padding: var(--ds-space-4);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-bg);
}

.hero-phone__tile--progress {
  gap: var(--ds-space-3);
}

.hero-phone__tile-icon {
  color: var(--ds-text-muted);
}

.hero-phone__number {
  font-family: var(--ds-font-heading);
  font-size: calc(var(--ds-text-h3-size) * 0.9);
  line-height: var(--ds-text-h3-line);
  letter-spacing: var(--ds-text-h3-tracking);
}

.hero-phone__number--accent {
  color: var(--ds-primary);
}

.hero-phone__caption {
  color: var(--ds-text-muted);
  font-size: calc(var(--ds-text-caption-size) * 0.82);
  line-height: var(--ds-text-caption-line);
}

.hero-phone__progress {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.hero-phone__progress-value {
  font-size: var(--ds-text-caption-size);
  font-weight: var(--ds-text-overline-weight);
}

.hero-phone__track {
  overflow: hidden;
  height: 6px;
  border-radius: var(--ds-radius-full);
  background: var(--ds-neutral-200);
}

.hero-phone__track-fill {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: inherit;
  background: var(--ds-primary);
}

.hero-phone__list {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-3);
}

.hero-phone__list-title {
  color: var(--ds-text-muted);
  font-size: calc(var(--ds-text-caption-size) * 0.78);
  font-weight: var(--ds-text-overline-weight);
  letter-spacing: var(--ds-text-overline-tracking);
  text-transform: uppercase;
}

.hero-phone__order {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  padding: var(--ds-space-3);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-bg);
}

.hero-phone__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--ds-radius-full);
  background: var(--ds-primary-50);
  color: var(--ds-primary-700);
  font-size: calc(var(--ds-text-caption-size) * 0.72);
  font-weight: var(--ds-text-overline-weight);
}

.hero-phone__order-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  font-size: calc(var(--ds-text-caption-size) * 0.8);
  line-height: var(--ds-text-caption-line);
}

.hero-phone__order-number {
  font-weight: var(--ds-text-overline-weight);
}

.hero-phone__order-place {
  color: var(--ds-text-muted);
}

.hero-phone__order-sum {
  font-size: calc(var(--ds-text-caption-size) * 0.82);
  font-weight: var(--ds-text-overline-weight);
  white-space: nowrap;
}

.hero-phone__tabbar {
  display: flex;
  justify-content: space-around;
  margin-top: auto;
  margin-inline: calc(var(--ds-space-5) * -1);
  padding: var(--ds-space-4) 0 var(--ds-space-6);
  border-top: 1px solid var(--ds-border);
  background: var(--ds-bg);
}

.hero-phone__tab {
  color: var(--ds-neutral-400);
}

.hero-phone__tab--active {
  color: var(--ds-primary);
}

.hero-phone__float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--ds-space-4);
  padding: var(--ds-space-3) var(--ds-space-6) var(--ds-space-3) var(--ds-space-3);
  border: 1px solid var(--ds-border);
  background: color-mix(in oklab, var(--ds-bg) 92%, transparent);
  color: var(--ds-heading);
  backdrop-filter: blur(8px);
}

.hero-phone__float--store {
  top: var(--ds-space-6);
  left: var(--ds-space-6);
  border-radius: var(--ds-radius-xl);
}

.hero-phone__float--published {
  right: var(--ds-space-6);
  bottom: var(--ds-space-6);
  border-radius: var(--ds-radius-full);
}

.hero-phone__float-tile {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--ds-radius-lg);
  background: color-mix(in oklab, var(--ds-primary) 12%, transparent);
  color: var(--ds-primary);
}

.hero-phone__float-check {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--ds-radius-full);
  background: color-mix(in oklab, var(--ds-success) 14%, transparent);
  color: var(--ds-success);
}

.hero-phone__float-text {
  display: flex;
  flex-direction: column;
  line-height: var(--ds-text-caption-line);
}

.hero-phone__float-title {
  font-size: var(--ds-text-caption-size);
  font-weight: var(--ds-text-overline-weight);
}

.hero-phone__float-note {
  color: var(--ds-text);
  font-size: calc(var(--ds-text-caption-size) * 0.88);
}

@media (min-width: 800px) {
  .hero-phone {
    min-height: 620px;
  }
  .hero-phone__device {
    width: min(268px, 64%);
  }
  .hero-phone__float--store {
    top: 16%;
    left: var(--ds-space-7);
  }
  .hero-phone__float--published {
    right: var(--ds-space-7);
    bottom: 11%;
  }
}

/* Статистика: чотири цифри з підписами, розділені лініями; коли всі в один ряд — на лініях зірочки */
.stats {
  text-align: center;
}

.stats__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.stats__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ds-space-5);
  padding: var(--ds-space-9) var(--ds-space-8);
  border-top: 1px solid var(--ds-border);
}

.stats__item:first-child {
  border-top: 0;
}

.stats__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--ds-space-3);
  color: var(--ds-heading);
}

.stats__number {
  font-family: var(--ds-font-heading);
  font-size: clamp(3.5rem, 3.5vw + 1.5rem, var(--ds-text-display-size));
  font-weight: var(--ds-text-h1-weight);
  line-height: var(--ds-text-display-line);
  letter-spacing: var(--ds-text-display-tracking);
  transition: transform var(--ds-duration-normal) var(--ds-ease-standard);
}

.stats__item:hover .stats__number {
  transform: translateY(-3px);
}

.stats__number--accent {
  color: var(--ds-primary);
}

.stats__unit {
  font-family: var(--ds-font-heading);
  font-size: var(--ds-text-h3-size);
  font-weight: var(--ds-text-h3-weight);
  line-height: var(--ds-text-h3-line);
  letter-spacing: var(--ds-text-h3-tracking);
}

.stats__caption {
  max-width: 22ch;
}

.stats__star {
  display: none;
  position: absolute;
  left: 0;
  top: 50%;
  box-sizing: content-box;
  width: 22px;
  height: 22px;
  padding-block: var(--ds-space-2);
  background: var(--ds-surface);
  color: var(--ds-primary);
  transform: translate(-50%, -50%);
}

@media (min-width: 800px) {
  .stats__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats__item {
    padding-block: var(--ds-space-10);
    border-top: 0;
  }
  .stats__item:nth-child(even) {
    border-left: 1px solid var(--ds-border);
  }
  .stats__item:nth-child(n + 3) {
    border-top: 1px solid var(--ds-border);
  }
}

@media (min-width: 1024px) {
  .stats__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .stats__item {
    padding-block: var(--ds-space-6);
    border-left: 0;
  }
  .stats__item:nth-child(n + 3) {
    border-top: 0;
  }
  .stats__item + .stats__item {
    border-left: 1px solid var(--ds-border);
  }
  .stats__star {
    display: block;
  }
}

/* Огляд: вступ у дві колонки (заголовок з лідом і текст з акцентною лінією) та чотири картки напрямів */
.overview {
  --overview-indent: var(--ds-space-8);
  --overview-rule: 2px;
}

.overview__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: var(--ds-space-11);
}

.overview__head {
  margin-bottom: 0;
}

.overview__body {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-8);
  max-width: 64ch;
}

.overview__text {
  padding-left: calc(var(--overview-indent) + var(--overview-rule));
  color: var(--ds-text-muted);
}

.overview__text--accent {
  padding-left: var(--overview-indent);
  border-left: var(--overview-rule) solid var(--ds-primary);
  color: var(--ds-heading);
}

.overview__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--ds-gap);
  margin-top: var(--ds-space-13);
}

.overview__card {
  gap: var(--ds-space-3);
  transition: border-color var(--ds-duration-normal) var(--ds-ease-standard),
    transform var(--ds-duration-normal) var(--ds-ease-standard);
}

.overview__card:hover {
  border-color: var(--ds-border-strong);
  transform: translateY(-2px);
}

.overview__icon {
  margin-bottom: var(--ds-space-8);
  color: var(--ds-primary);
  transition: background-color var(--ds-duration-normal) var(--ds-ease-standard);
}

.overview__card:hover .overview__icon {
  background-color: color-mix(in oklab, var(--ds-primary) 10%, transparent);
}

.overview__card-text {
  max-width: 30ch;
}

@media (min-width: 1024px) {
  .overview__intro {
    grid-template-columns: 4fr 6fr;
    gap: var(--ds-space-13);
  }
  .overview__body {
    padding-top: var(--ds-space-11);
  }
  .overview__cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Порівняння нативної та гібридної розробки: вступ, легенда з чіпами підходів і бенто-сітка карток.
   Чіпи стискаються (min-width: 0) і переносять текст, тож на вузьких екранах легенда не виходить за край */
.comparison {
  --comparison-icon-bg: var(--ds-color-gray-100);
  overflow-wrap: break-word;
}

.comparison__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: var(--ds-space-9);
  margin-bottom: var(--ds-space-11);
}

.comparison__head {
  margin-bottom: 0;
}

.comparison__title {
  max-width: 14ch;
}

.comparison__text {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-6);
  max-width: 62ch;
}

.comparison__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-7);
  margin-bottom: var(--ds-space-9);
  padding-top: var(--ds-space-9);
  border-top: 1px solid var(--ds-border);
}

.comparison__legend-text {
  max-width: 40ch;
  color: var(--ds-heading);
  font-weight: var(--ds-text-label-weight);
}

.comparison__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-5);
  min-width: 0;
  max-width: 100%;
}

.comparison__chip {
  display: flex;
  align-items: center;
  gap: var(--ds-space-5);
  min-width: 0;
  max-width: 100%;
  padding: var(--ds-space-4) var(--ds-space-7) var(--ds-space-4) var(--ds-space-4);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-xl);
  background: var(--ds-bg);
  color: var(--ds-text-muted);
  transition: border-color var(--ds-duration-normal) var(--ds-ease-standard);
}

.comparison__chip:hover {
  border-color: var(--ds-border-strong);
}

.comparison__chip--active,
.comparison__chip--active:hover {
  border-color: var(--ds-color-black);
  color: var(--ds-color-black);
}

.comparison__chip-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--ds-radius-full);
  background: var(--comparison-icon-bg);
  color: var(--ds-text-muted);
}

.comparison__chip-icon svg {
  width: 20px;
  height: 20px;
}

.comparison__chip-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--ds-space-1);
  min-width: 0;
}

.comparison__chip-name {
  color: var(--ds-text);
  font-family: var(--ds-font-heading);
  font-size: var(--ds-text-label-size);
  font-weight: var(--ds-text-label-weight);
  line-height: var(--ds-text-label-line);
}

.comparison__chip--active .comparison__chip-name {
  color: var(--ds-color-black);
}

.comparison__chip-badge {
  background-color: transparent;
  color: var(--ds-color-black);
}

.comparison__bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--ds-space-6);
}

.comparison__card {
  gap: var(--ds-space-7);
  transition: border-color var(--ds-duration-normal) var(--ds-ease-standard);
}

.comparison__card:hover {
  border-color: var(--ds-border-strong);
}

.comparison__card--highlight {
  border-color: color-mix(in oklab, var(--ds-primary) 45%, var(--ds-border));
  background-color: transparent;
}

.comparison__card--highlight:hover {
  border-color: var(--ds-primary);
}

.comparison__card--summary {
  justify-content: space-between;
}

.comparison__card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-5);
}

.comparison__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--ds-radius-full);
  background: var(--comparison-icon-bg);
  color: var(--ds-text-muted);
}

.comparison__card-title {
  flex: 1 1 12ch;
}

.comparison__card-badge {
  border-color: color-mix(in oklab, var(--ds-primary) 35%, var(--ds-border));
  background-color: transparent;
  color: var(--ds-primary-700);
}

.comparison__metric {
  color: var(--ds-primary);
  font-family: var(--ds-font-heading);
  font-size: clamp(2rem, 2vw + 1rem, var(--ds-text-h1-size));
  font-weight: var(--ds-text-h1-weight);
  line-height: 1;
  letter-spacing: var(--ds-text-display-tracking);
}

.comparison__metric-unit {
  margin-left: var(--ds-space-2);
  color: var(--ds-text-muted);
  font-size: var(--ds-text-h5-size);
  letter-spacing: 0;
}

.comparison__options {
  display: grid;
  flex: 1;
  gap: var(--ds-space-3);
}

.comparison__option {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-2);
  padding: var(--ds-space-6) var(--ds-space-7);
  border: 1px solid transparent;
  border-radius: var(--ds-radius-lg);
  background: var(--ds-surface);
}

.comparison__option--native {
  border-color: color-mix(in oklab, var(--ds-primary) 30%, var(--ds-border));
  background: transparent;
}

.comparison__card--highlight .comparison__option:not(.comparison__option--native) {
  background: var(--ds-bg);
}

.comparison__option-name {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  color: var(--ds-text-muted);
  font-size: var(--ds-text-caption-size);
  font-weight: var(--ds-text-overline-weight);
  line-height: var(--ds-text-caption-line);
  letter-spacing: var(--ds-text-overline-tracking);
  text-transform: uppercase;
}

.comparison__option-name::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--ds-radius-full);
  background: var(--ds-neutral-400);
}

.comparison__option--native .comparison__option-name {
  color: var(--ds-primary-700);
}

.comparison__option--native .comparison__option-name::before {
  background: var(--ds-primary);
}

.comparison__option-text {
  color: var(--ds-text);
  font-size: var(--ds-text-body-sm-size);
  line-height: var(--ds-text-body-line);
  letter-spacing: var(--ds-text-body-sm-tracking);
}

.comparison__accent {
  color: var(--ds-primary-700);
  font-weight: var(--ds-text-label-weight);
  white-space: nowrap;
}

.comparison__summary-text {
  max-width: 60ch;
}

.comparison__cta {
  align-self: flex-start;
}

@media (min-width: 800px) {
  .comparison__intro {
    grid-template-columns: 2fr 3fr;
    gap: var(--ds-space-13);
  }
  .comparison__bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .comparison__card--wide,
  .comparison__card--summary {
    grid-column: span 2;
  }
  .comparison__card--wide .comparison__options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ds-space-5);
  }
}

@media (min-width: 1024px) {
  .comparison__bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .comparison__card--performance,
  .comparison__card--highlight {
    grid-column: span 7;
  }
  .comparison__card--api,
  .comparison__card--summary {
    grid-column: span 5;
  }
  .comparison__card--third {
    grid-column: span 4;
  }
}

@media (min-width: 1280px) {
  .comparison__intro {
    gap: var(--ds-space-14);
  }
}

/* Що входить у розробку (темна секція): акордеон із шести напрямів і Figma-прототип праворуч.
   Рядок пункту: номер | назва (h3) над коротким описом | перемикач «+» */
.services {
  --services-line: color-mix(in oklab, var(--ds-color-gray-100) 14%, transparent);
  --services-index: var(--ds-space-10);
  --services-gap: var(--ds-space-5);
}

.services__layout {
  display: grid;
  gap: var(--ds-space-10);
}

.services__accordion {
  border-top: 1px solid var(--services-line);
}

.services__item {
  border-bottom: 1px solid var(--services-line);
}

.services__summary {
  display: grid;
  grid-template-columns: var(--services-index) minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--services-gap);
  padding-block: var(--ds-space-6);
  list-style: none;
  cursor: pointer;
}

.services__summary::-webkit-details-marker {
  display: none;
}

.services__summary::marker {
  content: "";
}

.services__number {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: start;
  padding-top: var(--ds-space-1);
  color: var(--ds-primary);
  font-family: var(--ds-font-heading);
  font-size: var(--ds-text-h5-size);
  line-height: var(--ds-text-h5-line);
  font-variant-numeric: tabular-nums;
}

.services__item-title {
  grid-column: 2;
  transition: color var(--ds-duration-fast) var(--ds-ease-standard);
}

.services__summary:hover .services__item-title {
  color: var(--ds-primary);
}

.services__item-short {
  grid-column: 2;
  margin-top: var(--ds-space-1);
}

.services__item[open] .services__item-short {
  display: none;
}

.services__toggle {
  position: relative;
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 40px;
  height: 40px;
  border: 1px solid color-mix(in oklab, var(--ds-color-gray-100) 22%, transparent);
  border-radius: var(--ds-radius-full);
  color: var(--ds-color-gray-100);
  transition: transform var(--ds-duration-normal) var(--ds-ease-standard),
    background-color var(--ds-duration-normal) var(--ds-ease-standard),
    border-color var(--ds-duration-normal) var(--ds-ease-standard);
}

.services__toggle::before,
.services__toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  border-radius: var(--ds-radius-full);
  background: currentColor;
  transform: translate(-50%, -50%);
}

.services__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.services__summary:hover .services__toggle {
  border-color: var(--ds-color-gray-100);
}

.services__item[open] .services__toggle {
  border-color: var(--ds-primary);
  background: var(--ds-primary);
  color: var(--ds-on-primary);
  transform: rotate(45deg);
}

.services__body {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-6);
  padding: 0 0 var(--ds-space-8) calc(var(--services-index) + var(--services-gap));
}

.services__text {
  max-width: 58ch;
}

.services__note {
  display: flex;
  align-items: flex-start;
  gap: var(--ds-space-5);
  padding: var(--ds-space-7) var(--ds-space-8);
  border: 1px solid color-mix(in oklab, var(--ds-color-gray-100) 10%, transparent);
  border-radius: var(--ds-radius-xl);
  background: var(--ds-color-gray-900);
  color: var(--ds-color-gray-100);
}

.services__note-icon {
  color: var(--ds-primary);
}

.services__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-3);
}

.services__tag {
  padding: var(--ds-space-1) var(--ds-space-5);
  border-color: color-mix(in oklab, var(--ds-color-gray-100) 20%, transparent);
  background-color: transparent;
  color: var(--ds-color-gray-100);
}

@media (min-width: 800px) {
  .services {
    --services-index: var(--ds-space-12);
    --services-gap: var(--ds-space-6);
  }
}

@media (min-width: 1024px) {
  .services__layout {
    grid-template-columns: 55fr 45fr;
    align-items: stretch;
    gap: var(--ds-space-11);
  }
}

/* Figma-прототип у секції «Що входить у розробку»: три екрани, стрілки user flow і статус синхронізації */
.prototype {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-6);
  padding: var(--ds-space-6);
  border: 1px solid color-mix(in oklab, var(--ds-color-gray-100) 10%, transparent);
  border-radius: var(--ds-radius-2xl);
  background: var(--ds-color-gray-900);
}

.prototype::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 75% 35%, color-mix(in oklab, var(--ds-primary) 20%, transparent), transparent 55%),
    radial-gradient(circle at 15% 90%, color-mix(in oklab, var(--ds-color-gray-400) 12%, transparent), transparent 50%);
  pointer-events: none;
}

.prototype__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-3);
}

.prototype__file,
.prototype__approved {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-3);
  color: var(--ds-color-gray-100);
}

.prototype__approved {
  padding: var(--ds-space-1) var(--ds-space-5);
  border-radius: var(--ds-radius-full);
  background: color-mix(in oklab, var(--ds-primary) 16%, transparent);
  color: var(--ds-primary-300);
}

.prototype__bar-icon {
  width: 16px;
  height: 16px;
}

.prototype__canvas {
  display: grid;
  flex: 1;
  grid-template-columns: 1fr 14px 1fr 14px 1fr;
  align-items: center;
  align-content: center;
  gap: var(--ds-space-2);
  padding: var(--ds-space-8) var(--ds-space-4);
  border-radius: var(--ds-radius-xl);
  background-color: var(--ds-color-gray-950);
  background-image: radial-gradient(color-mix(in oklab, var(--ds-color-gray-100) 14%, transparent) 1px, transparent 1px);
  background-size: 16px 16px;
}

.prototype__frame {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-3);
  min-width: 0;
}

.prototype__frame-label {
  overflow: hidden;
  color: var(--ds-color-gray-400);
  font-size: calc(var(--ds-text-caption-size) * 0.85);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.prototype__frame-number {
  margin-right: var(--ds-space-1);
  color: var(--ds-primary);
  font-weight: var(--ds-text-overline-weight);
}

.prototype__arrow {
  width: 100%;
  height: auto;
  margin-top: var(--ds-space-7);
  color: var(--ds-primary);
}

.prototype__screen {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-3);
  aspect-ratio: 9 / 18;
  padding: var(--ds-space-3) var(--ds-space-3) var(--ds-space-4);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-color-background);
  color: var(--ds-color-gray-950);
  font-family: var(--ds-font-body);
  font-size: calc(var(--ds-text-caption-size) * 0.72);
  line-height: 1.3;
}

.prototype__screen--selected {
  outline: 2px solid var(--ds-primary);
  outline-offset: 3px;
}

.prototype__notch {
  flex: none;
  align-self: center;
  width: 36%;
  height: 5px;
  border-radius: var(--ds-radius-full);
  background: var(--ds-neutral-200);
}

.prototype__logo {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: var(--ds-space-3);
  border-radius: var(--ds-radius-md);
  background: var(--ds-primary);
}

.prototype__screen-title {
  font-family: var(--ds-font-heading);
  font-size: calc(var(--ds-text-caption-size) * 0.9);
  font-weight: var(--ds-text-label-weight);
  letter-spacing: var(--ds-text-h3-tracking);
  white-space: nowrap;
}

.prototype__line {
  display: block;
  flex: none;
  height: 5px;
  border-radius: var(--ds-radius-full);
  background: var(--ds-neutral-200);
}

.prototype__line--40 {
  width: 40%;
}

.prototype__line--50 {
  width: 50%;
}

.prototype__line--70 {
  width: 70%;
}

.prototype__line--80 {
  width: 80%;
}

.prototype__line--center {
  align-self: center;
}

.prototype__field {
  flex: none;
  height: 16px;
  border: 1px solid var(--ds-neutral-300);
  border-radius: var(--ds-radius-sm);
}

.prototype__field--search {
  border-color: transparent;
  border-radius: var(--ds-radius-full);
  background: var(--ds-neutral-100);
}

.prototype__button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  margin-top: auto;
  padding: 0 var(--ds-space-1);
  border-radius: var(--ds-radius-sm);
  background: var(--ds-primary);
  color: var(--ds-on-primary);
  font-weight: var(--ds-text-overline-weight);
  white-space: nowrap;
}

.prototype__row {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
  padding: var(--ds-space-1);
  border-radius: var(--ds-radius-sm);
}

.prototype__row--active {
  background: var(--ds-primary-50);
}

.prototype__thumb {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: var(--ds-radius-sm);
  background: var(--ds-neutral-200);
}

.prototype__row--active .prototype__thumb {
  background: var(--ds-primary-300);
}

.prototype__lines {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--ds-space-1);
  min-width: 0;
}

.prototype__tabbar {
  display: flex;
  justify-content: space-around;
  margin-top: auto;
  padding-top: var(--ds-space-3);
  border-top: 1px solid var(--ds-neutral-200);
}

.prototype__tab {
  width: 8px;
  height: 8px;
  border-radius: var(--ds-radius-full);
  background: var(--ds-neutral-300);
}

.prototype__tab--active {
  background: var(--ds-primary);
}

.prototype__check {
  display: grid;
  flex: none;
  place-items: center;
  align-self: center;
  width: 28px;
  height: 28px;
  margin-top: var(--ds-space-4);
  border-radius: var(--ds-radius-full);
  background: var(--ds-primary-50);
  color: var(--ds-primary);
}

.prototype__check svg {
  width: 14px;
  height: 14px;
}

.prototype__amount {
  align-self: center;
  font-family: var(--ds-font-heading);
  font-size: var(--ds-text-caption-size);
  font-weight: var(--ds-text-label-weight);
  letter-spacing: var(--ds-text-h3-tracking);
  white-space: nowrap;
}

.prototype__sync {
  display: flex;
  align-items: center;
  gap: var(--ds-space-5);
  padding: var(--ds-space-5) var(--ds-space-6);
  border: 1px solid color-mix(in oklab, var(--ds-color-gray-100) 10%, transparent);
  border-radius: var(--ds-radius-xl);
  background: color-mix(in oklab, var(--ds-color-gray-100) 5%, transparent);
}

.prototype__sync-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--ds-radius-lg);
  background: color-mix(in oklab, var(--ds-primary) 16%, transparent);
  color: var(--ds-primary);
}

.prototype__sync-icon svg {
  width: 20px;
  height: 20px;
}

.prototype__sync-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--ds-space-1);
  min-width: 0;
  color: var(--ds-color-gray-100);
}

.prototype__progress {
  display: block;
  overflow: hidden;
  height: 4px;
  margin-top: var(--ds-space-2);
  border-radius: var(--ds-radius-full);
  background: color-mix(in oklab, var(--ds-color-gray-100) 12%, transparent);
}

.prototype__progress-bar {
  display: block;
  width: 62%;
  height: 100%;
  border-radius: inherit;
  background: var(--ds-primary);
}

.prototype__sync-value {
  flex: none;
  color: var(--ds-primary);
  font-family: var(--ds-font-heading);
  font-size: var(--ds-text-h5-size);
  letter-spacing: var(--ds-text-h3-tracking);
  white-space: nowrap;
}

@media (min-width: 800px) {
  .prototype {
    padding: var(--ds-space-8);
  }
  .prototype__canvas {
    grid-template-columns: 1fr 26px 1fr 26px 1fr;
    gap: var(--ds-space-3);
    padding: var(--ds-space-9) var(--ds-space-7);
  }
  .prototype__screen {
    padding: var(--ds-space-4) var(--ds-space-4) var(--ds-space-5);
    border-radius: var(--ds-radius-xl);
  }
}

/* Кейси: картка проєкту (опис і макет пристроїв) та керування слайдером.
   На вузьких екранах довгі слова й підпис кнопки переносяться, а не виходять за край */
.cases {
  overflow-wrap: break-word;
}

.cases__card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-2xl);
  background: var(--ds-bg);
}

.cases__body {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-6);
  min-width: 0;
  padding: var(--ds-space-8);
}

.cases__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-3);
}

.cases__heading {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-3);
}

.cases__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ds-space-1) var(--ds-space-3);
}

.cases__separator {
  color: var(--ds-border-strong);
}

.cases__accent {
  color: var(--ds-primary);
  font-weight: var(--ds-text-label-weight);
}

.cases__text {
  max-width: 60ch;
}

.cases__label {
  color: var(--ds-heading);
  font-weight: var(--ds-text-h4-weight);
}

.cases__result {
  padding: var(--ds-space-6) var(--ds-space-7);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-surface);
}

.cases__more {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: var(--ds-space-2);
  padding-bottom: var(--ds-space-1);
  border-bottom: 1px solid var(--ds-border-strong);
  color: var(--ds-heading);
  font-size: var(--ds-text-label-size);
  font-weight: var(--ds-text-label-weight);
  transition: color var(--ds-duration-fast) var(--ds-ease-standard),
    border-color var(--ds-duration-fast) var(--ds-ease-standard);
}

.cases__more:hover {
  border-color: var(--ds-primary);
  color: var(--ds-primary);
}

.cases__controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ds-space-8);
  margin-top: var(--ds-space-10);
}

.cases__counter {
  display: flex;
  align-items: center;
  gap: var(--ds-space-6);
}

.cases__count {
  color: var(--ds-text-muted);
}

.cases__track {
  position: relative;
  overflow: hidden;
  width: 120px;
  height: 2px;
  border-radius: var(--ds-radius-full);
  background: var(--ds-border);
}

.cases__progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 33.34%;
  background: var(--ds-primary);
}

.cases__cta {
  max-width: 100%;
  white-space: normal;
}

.cases__arrows {
  display: flex;
  gap: var(--ds-space-3);
}

.cases__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--ds-border-strong);
  border-radius: var(--ds-radius-full);
  background: transparent;
  color: var(--ds-heading);
  cursor: pointer;
  transition: border-color var(--ds-duration-fast) var(--ds-ease-standard),
    color var(--ds-duration-fast) var(--ds-ease-standard),
    background-color var(--ds-duration-fast) var(--ds-ease-standard);
}

.cases__arrow:hover {
  border-color: var(--ds-primary);
  background: var(--ds-primary-50);
  color: var(--ds-primary);
}

@media (min-width: 800px) {
  .cases__body {
    padding: var(--ds-space-10);
  }
  .cases__controls {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .cases__counter {
    justify-self: start;
  }
  .cases__arrows {
    justify-self: end;
  }
}

@media (min-width: 1024px) {
  .cases__card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Макет пристроїв у кейсі Е-ВАК: планшет зі схемою кузова та смартфон зі списком пошкоджень */
.case-mockup {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 380px;
  padding: var(--ds-space-9) var(--ds-space-7);
  background:
    radial-gradient(circle at 72% 28%, color-mix(in oklab, var(--ds-primary) 26%, transparent) 0%, transparent 55%),
    radial-gradient(circle at 20% 85%, color-mix(in oklab, var(--ds-primary) 12%, transparent) 0%, transparent 50%),
    var(--ds-gradient-4);
}

.case-mockup__tablet {
  position: relative;
  width: 82%;
  aspect-ratio: 4 / 3;
  padding: var(--ds-space-4);
  border-radius: var(--ds-radius-2xl);
  background: var(--ds-color-gray-950);
}

.case-mockup__screen {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: var(--ds-space-4);
  height: 100%;
  padding: var(--ds-space-5);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-bg);
  color: var(--ds-text);
  font-size: calc(var(--ds-text-caption-size) * 0.8);
  line-height: 1.3;
}

.case-mockup__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ds-space-3);
}

.case-mockup__vehicle {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.case-mockup__strong {
  color: var(--ds-heading);
  font-weight: var(--ds-text-h4-weight);
}

.case-mockup__muted {
  color: var(--ds-text-muted);
}

.case-mockup__pill {
  padding: 2px var(--ds-space-3);
  border-radius: var(--ds-radius-full);
  background: var(--ds-primary-50);
  color: var(--ds-primary-700);
  font-weight: var(--ds-text-h4-weight);
}

.case-mockup__car {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: var(--ds-space-3);
  border-radius: var(--ds-radius-lg);
  background: var(--ds-surface);
  color: var(--ds-neutral-500);
}

.case-mockup__scheme {
  width: 100%;
  max-width: 300px;
  height: 100%;
  max-height: 100%;
}

.case-mockup__halo {
  fill: color-mix(in oklab, var(--ds-primary) 18%, transparent);
  stroke: none;
}

.case-mockup__marker {
  fill: var(--ds-primary);
  stroke: none;
}

.case-mockup__marker-number {
  fill: var(--ds-on-primary);
  stroke: none;
  font-family: var(--ds-font-body);
  font-weight: var(--ds-text-overline-weight);
}

.case-mockup__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--ds-space-3);
}

.case-mockup__thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--ds-radius-md);
}

.case-mockup__thumb--blue {
  background: var(--ds-gradient-5);
}

.case-mockup__thumb--brown {
  background: var(--ds-gradient-6);
}

.case-mockup__thumb--gray {
  background: linear-gradient(135deg, var(--ds-neutral-400), var(--ds-neutral-700));
}

.case-mockup__thumb--more {
  border: 1px dashed var(--ds-border-strong);
  background: var(--ds-surface);
  color: var(--ds-text-muted);
  font-weight: var(--ds-text-h4-weight);
}

.case-mockup__thumb-number {
  position: absolute;
  top: 4px;
  left: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: var(--ds-radius-full);
  background: var(--ds-primary);
  color: var(--ds-on-primary);
  font-size: calc(var(--ds-text-caption-size) * 0.65);
  font-style: normal;
  font-weight: var(--ds-text-overline-weight);
}

.case-mockup__sign {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-space-4);
  padding: var(--ds-space-2) var(--ds-space-4);
  border: 1px dashed var(--ds-border-strong);
  border-radius: var(--ds-radius-md);
  color: var(--ds-heading);
}

.case-mockup__signature {
  width: 55%;
  height: 28px;
}

.case-mockup__phone {
  position: absolute;
  right: 5%;
  bottom: 7%;
  width: clamp(118px, 29%, 172px);
  aspect-ratio: 9 / 19;
  padding: 6px;
  border-radius: var(--ds-radius-2xl);
  background: var(--ds-color-gray-950);
}

.case-mockup__phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-4);
  height: 100%;
  padding: var(--ds-space-8) var(--ds-space-4) var(--ds-space-4);
  border-radius: calc(var(--ds-radius-2xl) - 6px);
  background: var(--ds-bg);
  color: var(--ds-text);
  font-size: calc(var(--ds-text-caption-size) * 0.75);
  line-height: 1.3;
}

.case-mockup__notch {
  position: absolute;
  top: var(--ds-space-3);
  left: 50%;
  width: 34%;
  height: 8px;
  border-radius: var(--ds-radius-full);
  background: var(--ds-color-gray-950);
  transform: translateX(-50%);
}

.case-mockup__damage {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-3);
}

.case-mockup__damage-item {
  display: flex;
  align-items: flex-start;
  gap: var(--ds-space-3);
  padding-bottom: var(--ds-space-3);
  border-bottom: 1px solid var(--ds-border);
}

.case-mockup__damage-number {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: var(--ds-radius-full);
  background: var(--ds-primary);
  color: var(--ds-on-primary);
  font-style: normal;
  font-weight: var(--ds-text-overline-weight);
}

.case-mockup__damage-name {
  display: flex;
  flex-direction: column;
  color: var(--ds-heading);
  font-weight: var(--ds-text-label-weight);
}

.case-mockup__damage-place {
  color: var(--ds-text-muted);
  font-style: normal;
  font-weight: var(--ds-text-body-weight);
}

.case-mockup__sync {
  align-self: flex-start;
  margin-top: auto;
  padding: 2px var(--ds-space-3);
  border-radius: var(--ds-radius-full);
  background: color-mix(in oklab, var(--ds-success) 12%, transparent);
  color: var(--ds-success);
  font-weight: var(--ds-text-overline-weight);
}

.case-mockup__phone-button {
  padding: var(--ds-space-3);
  border-radius: var(--ds-radius-md);
  background: var(--ds-primary);
  color: var(--ds-on-primary);
  font-weight: var(--ds-text-overline-weight);
  text-align: center;
}

@media (min-width: 800px) {
  .case-mockup {
    min-height: 460px;
  }
}

@media (min-width: 1024px) {
  .case-mockup {
    min-height: 100%;
    padding: var(--ds-space-10) var(--ds-space-9);
  }
}

