/* Подбор посуды: /services/podbor-posudy/ . Токены темы — из style.css. */

.tw-hero {
  display: grid;
  gap: 20px;
}

.tw-photos {
  display: grid;
  gap: 12px;
  margin: 0;
  min-width: 0;
}

.tw-shot {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.tw-shot,
.tw-shot--side {
  position: relative;
  aspect-ratio: 4 / 3;
}

.tw-shot img,
.tw-shot--side img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tw-shot img {
  object-position: center center;
}

.tw-shot--side img {
  object-position: 72% 46%;
}

.tw-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 14px 0 0;
}

.tw-routes a {
  color: var(--accent-ink, #9a3412);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tw-routes a:hover {
  color: var(--accent, #e85a1a);
}

.tw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tw-facts {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.tw-facts li {
  margin: 0;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.tw-planned,
.tw-faq {
  margin: 12px 0 0;
  padding-left: 1.2rem;
}

.tw-planned li,
.tw-faq li {
  margin: 0 0 8px;
}

.tw-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

a.tw-card,
a.tw-card:hover {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.tw-card:hover {
  border-color: var(--accent);
}

.tw-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--surface-2);
  border-radius: 10px;
}

.tw-card__name {
  font-weight: 650;
  line-height: 1.35;
}

/* На страницах услуг span внутри .project-section красится в accent-ink. */
html:not([data-theme="dark"]) .project-section span.tw-card__name,
html:not([data-theme="dark"]) .project-section .tw-card__price {
  color: var(--text);
}

html:not([data-theme="dark"]) .project-section span.tw-card__more,
html:not([data-theme="dark"]) .project-section span.tw-card__price-label,
html:not([data-theme="dark"]) .project-section .tw-card__stock {
  color: var(--muted);
}

.tw-card__price {
  margin: 0;
  font-weight: 700;
}

.tw-card__price-label,
.tw-card__more,
.tw-card__stock {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
}

.tw-card__stock {
  margin: 0;
}

.tw-form-grid {
  display: grid;
  gap: 12px;
}

.tw-lead {
  display: grid;
  gap: 24px;
}

@media (min-width: 800px) {
  .tw-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
    gap: 28px 32px;
  }

  .tw-copy {
    grid-column: 1;
    grid-row: 1;
  }

  .tw-photos {
    grid-column: 2;
    grid-row: 1 / span 2;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
    align-items: stretch;
  }

  .tw-shot {
    aspect-ratio: 1080 / 945;
  }

  .tw-shot--side {
    aspect-ratio: auto;
    height: 100%;
    min-height: 100%;
  }

  .tw-aside {
    grid-column: 1;
    grid-row: 2;
  }

  .tw-facts {
    grid-template-columns: 1fr 1fr;
  }

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

  .tw-lead {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .tw-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
