/* AR376 — scoped layout refinement only. Requires AR375; images and HTML content unchanged. */
/* Three matching cards: same media window, edges, footer and button baseline. */
#view-start .ar375-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(12px, 1.5vw, 18px);
}
#view-start .ar375-choice {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: #fcf9f3;
  border: 1px solid #e8dece;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 7px 24px rgba(39, 57, 43, .09);
}
#view-start .ar375-choice-media {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  margin: 0;
  padding: 0;
  border-radius: 17px 17px 0 0;
  overflow: hidden;
  background: transparent;
}
/* Override AR375's two different inner aspect ratios.
   The original approved .webp assets are used unchanged. */
#view-start .ar375-choice-media .ar375-image-inner,
#view-start .ar375-choice-media .ar375-image-wide,
#view-start .ar375-choice-media .ar375-image-portrait {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
}
#view-start .ar375-choice-media .ar375-image-inner > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}
/* Keep the whole left-hand headline of the wide lavender composition visible. */
#view-start .ar375-choice-media .ar375-image-wide > img {
  object-position: left center;
}
/* The two 4:3 approved compositions lose only a narrow top/bottom strip. */
#view-start .ar375-choice-media .ar375-image-portrait > img {
  object-position: center center;
}
/* The small correction "Эфирный дом" from AR375 stays in place,
   still masking the incorrect label embedded in the approved original. */
#view-start .ar375-home-correction {
  z-index: 1;
}
#view-start .ar375-choice-action {
  display: flex;
  flex: 1 0 75px;
  align-items: flex-end;
  justify-content: center;
  margin-top: auto;
  padding: 12px 14px 16px;
  min-height: 75px;
  box-sizing: border-box;
  background: transparent;
}
#view-start .ar375-choice-action .ar375-action-btn {
  min-height: 44px;
  min-width: min(100%, 220px);
  max-width: 100%;
  padding: 10px 16px;
  text-align: center;
  line-height: 1.35;
}
/* Less air around the cards, without changing the approved banner. */
#view-start .ar375-choice-section {
  padding-block: clamp(24px, 2.5vw, 34px) clamp(27px, 3vw, 41px);
}
#view-start .ar375-choice-lead {
  margin-bottom: 18px;
}
/* Compact interactive discovery block; keep all existing interaction controls,
   hit targets, reveal panels and scripts intact. No fixed-height clipping. */
#view-start section:has(#aroma-journey-scene) {
  padding-block: clamp(20px, 2.8vw, 38px);
  margin-block: 0;
}
#view-start section:has(#aroma-journey-scene) > :is(.wrap,.container) {
  max-width: 1050px;
  margin-inline: auto;
}
#view-start section:has(#aroma-journey-scene) h2 {
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.16;
}
#view-start #aroma-journey-scene {
  width: min(100%, 510px);
  max-width: 100%;
  min-height: 0;
  margin-inline: auto;
}
@media (max-width: 780px) {
  #view-start .ar375-choice-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 520px;
    margin-inline: auto;
  }
  #view-start .ar375-choice-action {min-height: 72px; flex-basis: 72px}
  #view-start section:has(#aroma-journey-scene) {padding-block: 22px}
  #view-start #aroma-journey-scene {width: min(100%, 460px)}
}
@media (max-width: 430px) {
  #view-start .ar375-choice-media {aspect-ratio: 1.5 / 1}
  #view-start .ar375-choice-action {padding: 11px 12px 14px}
  #view-start .ar375-choice-action .ar375-action-btn {width: 100%}
}
