/**
 * Главная: «Продвигаемый продукт» — Figma 2_index_1440
 * Две колонки: copy (title → text → btn) | art. Кнопка внутри .split-row__copy.
 */

body.page-home .section--home-product {
  background: #fff !important;
}

body.page-home .section--home-product .product-showcase,
body.page-home .section--home-product .product-showcase__body {
  background: transparent !important;
}

body.page-home .section--home-product > .container > .product-showcase {
  background: transparent !important;
  box-shadow: none;
}

body.page-home .product-showcase .split-row--product {
  grid-template-columns: minmax(0, 523px) minmax(0, calc(var(--product-art-w) * 1px));
  align-items: start;
}

body.page-home .product-showcase .split-row__copy .product-showcase__cta {
  margin-top: clamp(28px, 4vw, 55px);
}

body.page-home .product-showcase .split-row__copy .product-showcase__text:empty {
  display: none;
}

body.page-home .product-showcase .product-showcase__dots {
  margin: 18px 0 0;
}

/* Figma 5_index_800+: стрелки в боковых колонках, по вертикали — центр иллюстрации */
@media (min-width: 601px) {
  body.page-home .product-showcase__main {
    display: grid !important;
    grid-template-columns: 50px minmax(0, 1fr) 50px;
    grid-template-areas: "prev track next";
    align-items: start;
    column-gap: clamp(8px, 2vw, 32px);
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: 0;
  }

  body.page-home .product-showcase__main > .product-showcase__track {
    grid-area: track;
    min-width: 0;
  }

  body.page-home .product-showcase__main > .product-showcase__rail {
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    align-self: start;
    margin-top: var(--product-nav-offset, clamp(72px, 16vw, 220px));
  }

  body.page-home .product-showcase__main > .product-showcase__rail--prev {
    grid-area: prev;
    justify-self: center;
  }

  body.page-home .product-showcase__main > .product-showcase__rail--next {
    grid-area: next;
    justify-self: center;
  }

  body.page-home .product-showcase__main > .product-showcase__rail .product-showcase__nav {
    position: static;
    transform: none;
    margin: 0;
    width: 50px;
    height: 50px;
  }

  body.page-home .product-showcase .split-row__art {
    align-self: start;
  }
}

@media (min-width: 601px) and (max-width: 880px) {
  body.page-home .product-showcase__main {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    column-gap: clamp(6px, 1.5vw, 16px);
  }

  body.page-home .product-showcase__main > .product-showcase__rail {
    margin-top: var(--product-nav-offset, clamp(40px, 11vw, 110px));
  }

  body.page-home .product-showcase__main > .product-showcase__rail .product-showcase__nav {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
}

@media (max-width: 600px) {
  body.page-home .product-showcase__main {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "track track"
      "prev next";
    row-gap: 16px;
    align-items: center;
  }

  body.page-home .product-showcase__main > .product-showcase__track {
    grid-area: track;
  }

  body.page-home .product-showcase__main > .product-showcase__rail--prev {
    grid-area: prev;
    justify-self: start;
    margin-top: 0;
  }

  body.page-home .product-showcase__main > .product-showcase__rail--next {
    grid-area: next;
    justify-self: end;
    margin-top: 0;
  }
}

body.page-home .section--home-prices {
  background: var(--c-bg-soft, #f4f6fa) !important;
  padding-top: clamp(32px, 5vw, 48px);
  padding-bottom: clamp(40px, 6vw, 64px);
}

body.page-home #prices .cta-banner--home-prices-intro {
  margin-bottom: clamp(24px, 4vw, 40px);
}

body.page-home #prices .cta-banner--home-prices-intro h2 {
  max-width: 935px;
  margin-inline: auto;
  text-align: center;
  font-family: var(--font-ui);
  font-size: clamp(20px, 2.15vw, 28px);
  font-weight: 600;
  line-height: 1.35;
  color: #020203;
}

@media (min-width: 601px) and (max-width: 1279px) {
  body.page-home .product-showcase .split-row--product {
    display: grid !important;
    grid-template-columns: minmax(300px, 55%) minmax(0, 45%) !important;
    gap: clamp(20px, 4vw, 48px) !important;
    align-items: start !important;
  }

  body.page-home .product-showcase .split-row__copy {
    display: block !important;
  }

  body.page-home .product-showcase .split-row__copy {
    max-width: none !important;
    min-width: 0;
  }

  body.page-home .product-showcase .split-row__art {
    min-width: 0 !important;
    max-width: 100% !important;
    justify-self: end;
  }

  body.page-home .product-showcase .split-row__art--contain img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: min(420px, 42vw) !important;
    margin-left: auto;
    margin-right: 0;
  }

  body.page-home .product-showcase .section-title,
  body.page-home .product-showcase .split-row__copy p,
  body.page-home .product-showcase .product-showcase__text p {
    max-width: none !important;
  }

  body.page-home .product-showcase .split-row__copy .product-showcase__cta {
    margin-top: clamp(28px, 4vw, 55px);
  }
}

@media (min-width: 881px) and (max-width: 1279px) {
  body.page-home .section--home-product > .container > .product-showcase {
    width: 100%;
    max-width: none;
    margin-inline: auto;
    padding-top: clamp(32px, 4vw, 48px);
    padding-bottom: clamp(24px, 3vw, 40px);
    box-sizing: border-box;
  }

  body.page-home .product-showcase .split-row--product {
    display: grid !important;
    grid-template-columns: minmax(0, 523px) minmax(220px, 602px);
    gap: clamp(32px, 8vw, 107px);
    align-items: center;
    width: 100%;
    max-width: none;
    margin-inline: auto;
  }

  body.page-home .product-showcase .split-row__copy {
    max-width: 523px;
  }

  body.page-home .product-showcase .split-row__art {
    justify-self: end;
    align-self: center;
  }

  body.page-home .product-showcase .split-row__art--contain img {
    width: min(602px, 100%);
    height: auto;
    max-width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    object-position: center right;
  }

  body.page-home .product-showcase .split-row__copy .product-showcase__cta {
    margin-top: 55px;
  }
}

/* Figma widths — final overrides (после styles.css) */
@media (min-width: 1280px) and (max-width: 1439px) {
  body.page-home .section--home-product > .container > .product-showcase {
    max-width: none !important;
    padding-left: 99px !important;
    padding-right: 56px !important;
  }

  body.page-home .product-showcase .split-row--product {
    display: grid !important;
    grid-template-columns: minmax(0, 523px) minmax(0, 602px) !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    justify-content: space-between !important;
  }
}

@media (min-width: 1440px) and (max-width: 1899px) {
  body.page-home .section--home-product > .container > .product-showcase {
    max-width: none !important;
  }

  body.page-home .product-showcase__body,
  body.page-home .product-showcase__main {
    width: 100% !important;
    max-width: none !important;
  }

  body.page-home .product-showcase .split-row--product {
    display: grid !important;
    grid-template-columns: minmax(0, 523px) minmax(0, 602px) !important;
    gap: 107px !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-inline: auto !important;
    justify-content: space-between !important;
  }
}

@media (min-width: 1900px) {
  body.page-home .section--home-product > .container > .product-showcase {
    max-width: none !important;
  }

  body.page-home .product-showcase .split-row--product {
    display: grid !important;
    grid-template-columns: minmax(0, 725px) minmax(0, 602px) !important;
    gap: 218px !important;
    width: min(1545px, 100%) !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    align-items: center !important;
  }

  body.page-home .product-showcase .split-row__copy,
  body.page-home .product-showcase .section-title,
  body.page-home .product-showcase .split-row__copy p {
    max-width: 725px !important;
  }

  body.page-home .product-showcase .split-row__art {
    width: 602px !important;
    max-width: 602px !important;
    justify-self: end !important;
  }
}

/* LAYOUT FIX: restore Figma breakout (2026-06-18) */
@media (min-width: 800px) {
  body.page-home .section--home-product > .container {
    padding-inline: 0 !important;
    max-width: none !important;
  }

  body.page-home .section--home-product > .container > .product-showcase {
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    width: 100% !important;
    max-width: none !important;
  }
}

@media (min-width: 1440px) and (max-width: 1899px) {
  body.page-home .section--home-product > .container > .product-showcase {
    padding-left: 124px !important;
    padding-right: 85px !important;
  }

  body.page-home .product-showcase__main {
    width: calc(100% + 100px) !important;
    margin-inline: -50px !important;
    column-gap: 0 !important;
  }
}

@media (min-width: 1900px) {
  body.page-home .section--home-product > .container > .product-showcase {
    padding-left: calc((100vw - min(var(--container), 100vw)) / 2 + var(--gutter)) !important;
    padding-right: calc((100vw - min(var(--container), 100vw)) / 2 + var(--gutter)) !important;
  }

  body.page-home .product-showcase__main {
    display: grid !important;
    grid-template-columns: 50px minmax(0, 1fr) 50px !important;
    grid-template-areas: "prev track next" !important;
    align-items: center !important;
    column-gap: clamp(24px, 2vw, 40px) !important;
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
  }

  body.page-home .product-showcase__main > .product-showcase__track {
    grid-area: track !important;
    min-width: 0 !important;
  }

  body.page-home .product-showcase__main > .product-showcase__rail {
    position: static !important;
    margin-top: 0 !important;
    align-self: center !important;
  }

  body.page-home .product-showcase__main > .product-showcase__rail--prev {
    grid-area: prev !important;
    justify-self: center !important;
  }

  body.page-home .product-showcase__main > .product-showcase__rail--next {
    grid-area: next !important;
    justify-self: center !important;
  }

  body.page-home .product-showcase__main > .product-showcase__rail .product-showcase__nav {
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }
}

@media (min-width: 1280px) {
  body.page-home .product-showcase__main {
    display: grid !important;
    grid-template-columns: 50px minmax(0, 1fr) 50px;
    grid-template-areas: "prev track next";
    align-items: center;
    width: calc(100% + 60px);
    max-width: none;
    margin-inline: -30px;
  }

  body.page-home .product-showcase__main > .product-showcase__track {
    grid-area: track;
  }

  body.page-home .product-showcase__main > .product-showcase__rail {
    margin-top: 0;
    align-self: center;
  }

  body.page-home .product-showcase__main > .product-showcase__rail--prev {
    grid-area: prev;
    justify-self: center;
  }

  body.page-home .product-showcase__main > .product-showcase__rail--next {
    grid-area: next;
    justify-self: center;
  }
}

@media (min-width: 1280px) and (max-width: 1439px) {
  /* Figma 3_index_1280: compensate slider rails to preserve 523+602 track width. */
  body.page-home .product-showcase__main {
    width: calc(100% + 108px) !important;
    margin-inline: -54px !important;
  }
}

@media (min-width: 601px) {
  body.page-home .product-showcase .split-row--product {
    gap: clamp(16px, 7vw, 107px);
  }

  body.page-home .product-showcase .split-row__copy {
    display: block !important;
    max-width: 523px;
  }

  body.page-home .product-showcase .section-title {
    font-family: var(--font-ui);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.35;
    color: #020203;
    margin: 0 0 45px;
    max-width: 527px;
  }

  body.page-home .product-showcase .product-showcase__text {
    margin: 0;
  }

  body.page-home .product-showcase .product-showcase__text p,
  body.page-home .product-showcase .split-row__copy p {
    font-family: var(--font-body-figma);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    color: #020203;
    margin: 0 0 15px;
    max-width: 523px;
  }

  body.page-home .product-showcase .product-showcase__text p:last-child,
  body.page-home .product-showcase .split-row__copy p:last-of-type {
    margin-bottom: 0;
  }

  body.page-home .product-showcase .split-row__art {
    align-self: center;
    justify-self: end;
  }

  body.page-home .product-showcase .split-row__art--contain {
    min-height: 0;
    background: transparent;
  }

  body.page-home .product-showcase .split-row__art--contain img {
    display: block;
    width: min(calc(var(--product-art-w) * 1px), 100%);
    height: auto;
    max-width: calc(var(--product-art-w) * 1px);
    max-height: calc(var(--product-art-h) * 1px);
    margin: 0 0 0 auto;
    object-fit: contain;
    object-position: center right;
  }

  body.page-home .product-showcase .product-showcase__cta .btn,
  body.page-home .product-showcase .split-row__copy .btn {
    min-height: 47px;
    height: 47px;
    padding: 12px 28px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    border-radius: 50px;
  }
}

@media (min-width: 601px) and (max-width: 880px) {
  body.page-home .product-showcase .split-row--product {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 46%);
    gap: clamp(16px, 3vw, 28px);
  }

  body.page-home .product-showcase .section-title {
    font-size: 24px;
    margin-bottom: 21px;
  }
}

@media (max-width: 600px) {
  body.page-home .product-showcase .split-row--product {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    grid-template-columns: none !important;
  }

  body.page-home .product-showcase .split-row__copy {
    display: contents;
  }

  body.page-home .product-showcase .section-title {
    order: 1;
    font-family: var(--font-ui);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.35;
    color: #020203;
    margin: 0 0 30px;
    width: 100%;
  }

  body.page-home .product-showcase .product-showcase__text {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0 0 24px;
    width: 100%;
  }

  body.page-home .product-showcase .product-showcase__text p {
    font-family: var(--font-body-figma);
    font-size: 16px;
    line-height: 1.3;
    color: #020203;
    margin: 0;
  }

  body.page-home .product-showcase .split-row--product .split-row__art {
    order: 3;
    align-self: center;
    width: 252px;
    max-width: 252px;
    margin: 0 auto 24px;
  }

  body.page-home .product-showcase .split-row--product .split-row__art--contain img {
    width: 252px;
    max-width: 252px;
    margin-inline: auto;
  }

  body.page-home .product-showcase .split-row__copy .product-showcase__cta {
    order: 4;
    margin: 0 0 0;
    width: 100%;
  }

  body.page-home .product-showcase .product-showcase__cta .btn {
    padding: 15px 40px;
    min-height: 47px;
    border-radius: 50px;
  }
}

body.page-home .product-showcase .product-showcase__questions {
  list-style: none;
  margin: 15px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.page-home .product-showcase .product-showcase__questions li {
  font-family: var(--font-body-figma);
  font-size: 16px;
  line-height: 1.3;
  color: #020203;
}

@media (max-width: 600px) {
  body.page-home .product-showcase .product-showcase__questions {
    gap: 10px;
    margin-top: 12px;
  }
}
