/* Управление интернет-магазином: скриншоты в рамке браузера, визуалы направлений, проекты. */

/* ---------- Рамка браузера ---------- */
.screen {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: 0 24px 56px rgba(27, 27, 27, 0.1);
}

.screen__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  background: #efece6;
  font-size: 12px;
  color: var(--color-text-muted);
}

.screen__bar::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 40px;
  border-radius: 50%;
  background: #d6d1c6;
  box-shadow: 15px 0 0 #d6d1c6, 30px 0 0 #d6d1c6;
}

.screen__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.showcase .screen {
  box-shadow: var(--shadow-chat);
}

/* ---------- Направления ---------- */
.ops {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.ops__row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gap-lg);
  align-items: center;
}

.ops__row--reverse {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.ops__row--reverse .ops__text {
  order: 2;
}

.ops__text {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.ops__num {
  font-size: 56px;
  line-height: 1;
  font-weight: var(--fw-heading);
  letter-spacing: -0.04em;
  color: var(--color-accent);
}

.ops__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-border);
}

.ops__list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 17px;
  line-height: 1.45;
}

.ops__list li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  transform: translateY(-2px);
}

.ops__visual {
  position: relative;
  padding-bottom: var(--gap-md);
}

.ops__visual .screen {
  width: 88%;
}

.ops__row--reverse .ops__visual .screen {
  margin-left: auto;
}

.ops__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(420px, 70%);
  padding: 20px;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-chat);
  font-size: 14px;
  line-height: 1.4;
}

.ops__row--reverse .ops__panel {
  right: auto;
  left: 0;
}

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

.ops__panel-title {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: var(--fw-heading);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--color-accent-text);
}

.ops__panel--dark .ops__panel-title {
  color: var(--color-accent-on-dark);
}

.ops__panel-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  font-weight: var(--fw-medium);
}

.ops__panel--dark .ops__panel-note {
  border-color: var(--color-dark-border);
}

/* Сводная таблица цен */
.sheet {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.sheet th,
.sheet td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--color-border);
  text-align: right;
  white-space: nowrap;
}

.sheet th:first-child,
.sheet td:first-child {
  padding-left: 0;
  text-align: left;
}

.sheet th:last-child,
.sheet td:last-child {
  padding-right: 0;
}

.sheet th {
  font-size: 12px;
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
}

.sheet__new {
  font-weight: var(--fw-heading);
}

.sheet__delta {
  display: inline-block;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: var(--fw-heading);
  background: var(--color-accent-soft);
  color: var(--color-accent-text);
}

.sheet__delta--up {
  background: #e3f5ea;
  color: #23784a;
}

/* Генерация контента */
.gen {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gen__item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: center;
}

.gen__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #ffffff;
}

.gen__icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gen__item strong {
  display: block;
  font-weight: var(--fw-heading);
}

.gen__item span {
  color: var(--color-on-dark-muted);
}

/* Сезонный спрос */
.season {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  align-items: end;
  height: 120px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.season__bar {
  position: relative;
  height: 20%;
  border-radius: 4px 4px 0 0;
  background: var(--color-border);
  transform-origin: bottom;
}

.season__bar span {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--color-text-muted);
}

.season__bar:nth-child(1) { height: 18%; }
.season__bar:nth-child(2) { height: 22%; }
.season__bar:nth-child(3) { height: 48%; }
.season__bar:nth-child(4) { height: 86%; }
.season__bar:nth-child(5) { height: 100%; }
.season__bar:nth-child(6) { height: 92%; }
.season__bar:nth-child(7) { height: 70%; }
.season__bar:nth-child(8) { height: 58%; }
.season__bar:nth-child(9) { height: 40%; }
.season__bar:nth-child(10) { height: 26%; }
.season__bar:nth-child(11) { height: 20%; }
.season__bar:nth-child(12) { height: 24%; }

.season__bar--peak {
  background: var(--color-accent);
}

.season__bar--prep {
  background: var(--color-dark);
}

.season-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--color-text-muted);
}

.season-legend li {
  display: flex;
  gap: 6px;
  align-items: center;
}

.season-legend li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--color-dark);
}

.season-legend li:last-child::before {
  background: var(--color-accent);
}

/* ---------- Проекты ---------- */
.shops {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr));
  gap: var(--gap-md) var(--gap-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
}

.shop__screens {
  position: relative;
  padding: 28px 28px 56px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-soft);
  overflow: hidden;
}

.shop__screens .screen {
  width: 82%;
  transition: transform 0.4s ease;
}

.shop__screens .screen + .screen {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 62%;
  box-shadow: var(--shadow-chat);
}

.shop:hover .screen + .screen {
  transform: translateY(-8px);
}

.shop__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop__name {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: var(--fw-heading);
}

.shop__name a {
  text-decoration: none;
}

.shop__text {
  font-size: 17px;
  color: var(--color-text-muted);
}

.shop .case-card__tags {
  margin-top: 4px;
}

.shop .tag {
  background: var(--color-bg-soft);
}

@media (max-width: 900px) {
  .ops__row,
  .ops__row--reverse {
    grid-template-columns: 1fr;
    gap: var(--gap-md);
  }

  .ops__row--reverse .ops__text {
    order: 0;
  }
}

@media (max-width: 560px) {
  .ops__visual {
    padding-bottom: 0;
  }

  .ops__visual .screen {
    width: 100%;
  }

  .ops__panel {
    position: static;
    width: 100%;
    margin-top: 12px;
    box-shadow: 0 12px 32px rgba(27, 27, 27, 0.1);
  }

  .shop__screens {
    padding: 16px 16px 40px;
  }

  .shop__screens .screen + .screen {
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop__screens .screen {
    transition: none;
  }

  .shop:hover .screen + .screen {
    transform: none;
  }
}
