/* v=202611161415 */
.composite-wrap table:not([class]) tr,
.composite-wrap table:not([class]) td,
.composite-wrap table:not([class]) th{
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
}
.composite-wrap table:not([class]){
    margin: 0;
}
.composite-wrap table:not([class]){
    border: none;
}

.js-wishlist.js-act{
    filter: brightness(0) saturate(100%) invert(41%) sepia(50%) saturate(1090%) hue-rotate(320deg) brightness(99%) contrast(88%);
}
.b-form-btn {
    z-index: 8;
}
/*text-with-image composite*/
.text-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}
.text-item:not(:last-child) {
    margin-bottom: 180px;
}
.media-item {
    margin: 0;
}
.media-item img,
.media-item video {
    max-width: 100%;
}
@media (min-width: 993px) {
    .text-item.text-item_right .text-item__content {
        padding-right: 95px;
    }
    .text-item.text-item_left .text-item__content {
        padding-left: 95px;
    }
    .text-item.text-item_left .text-item__media {
        grid-row-start: 1;
        grid-column-start: 1;
    }
    .b-main-slider__slide-img {
        height: 600px;
    }
}

@media (max-width: 992px) {
    .text-item:not(:last-child) {
        margin-bottom: 120px;
    }
    .text-item {
        grid-template-columns: 1fr;
        grid-gap: 80px;
    }
    .text-item.text-item_left .text-item__media {
        grid-row-start: 1;
    }
}
/*end text-with-image composite*/

.text-inherit,
.text-inherit p {
    color: #000000;
    font-size: 18px;
    /*font-family: 'Inter', Arial, sans-serif;*/
    line-height: 28px;
    font-weight: 400;
    background-position: center center;
    border-color: transparent;
    border-style: solid;
}
.text-inherit p:not(:last-child) {
    margin-bottom: 16px;
    border-bottom: 1px solid transparent;
}

.b-head-content__text_bottom{
    max-width: 100%;
    margin-top: 80px;
}
.l-header__logo-text {
    text-decoration: none;
}
.b-catalog-card__text {
    line-height: 20px;
    letter-spacing: 0.3px;
}
.ymaps-2-1-79-ground-pane {
    -webkit-filter: grayscale(100%);
}
@media (max-width: 1023px) {
    .b-categories-modal {
        justify-content: flex-start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .b-categories-modal__body {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        max-height: 100dvh;
        box-sizing: border-box;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;

        display: grid;
        grid-template-columns: minmax(0, 1fr) 52px;
        grid-template-areas:
            "left close"
            "list list";
        gap: 20px;
        padding: 32px 20px 40px;
    }

    .b-categories-modal__left {
        grid-area: left;
        min-width: 0;
    }

    .b-categories-modal__list {
        grid-area: list;
        height: auto;
        max-height: none;
        overflow: visible;
        margin-bottom: 0;
    }

    .b-categories-modal__close {
        grid-area: close;
        grid-row: auto;
        grid-column: auto;
        margin-left: 0;

        width: 52px;
        height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: start;

        position: sticky;
        top: 20px;
        z-index: 5;
    }
}

@media (max-width: 479px) {
    .b-categories-modal__body {
        grid-template-columns: minmax(0, 1fr) 44px;
        padding: 24px 16px 32px;
    }

    .b-categories-modal__close {
        width: 44px;
        height: 44px;
        top: 16px;
    }

    .b-categories-modal__close .icon {
        font-size: 32px;
    }

    .b-checkbox-pill__label {
        height: 50px;
        padding: 0 22px;
        font-size: 15px;
    }
}
@media (max-width: 767px) {
    .b-filter.b-modal {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;

        width: 100% !important;
        height: 100vh !important;
        height: calc(var(--vh, 1vh) * 100) !important;
        min-height: 100vh !important;
        min-height: calc(var(--vh, 1vh) * 100) !important;

        overflow: hidden !important;
        background: #f5f5f5 !important;
        z-index: 9999 !important;
    }

    .b-filter__body {
        height: 100% !important;
        max-height: 100% !important;

        display: grid !important;
        grid-template-rows: 115px minmax(0, 1fr) 112px !important;

        overflow: hidden !important;
        background: #f5f5f5 !important;
    }

    .b-filter__head {
        height: 115px !important;
        box-sizing: border-box !important;
        background: #f5f5f5 !important;
    }

    .b-filter__form {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;

        position: relative !important;
        z-index: 1 !important;
        background: #f5f5f5 !important;
    }

    .b-filter__btns {
        height: 112px !important;
        min-height: 112px !important;
        max-height: 112px !important;

        padding: 20px 43px 36px !important;
        box-sizing: border-box !important;

        display: grid !important;
        grid-template-columns: 126px 1fr !important;
        grid-gap: 16px !important;
        align-items: center !important;

        position: relative !important;
        z-index: 5 !important;
        pointer-events: auto !important;

        background: #f5f5f5 !important;
    }

    .b-filter__reset,
    .b-filter__submit {
        height: 56px !important;
        min-height: 56px !important;
        max-height: 56px !important;

        padding-top: 0 !important;
        padding-bottom: 0 !important;

        font-size: 18px !important;
        line-height: 56px !important;

        box-sizing: border-box !important;
        pointer-events: auto !important;
    }
}
/* Old / new product price */
.b-product__prices {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
}
.b-product__price_old,
.b-product-item__price_old,
.b-favorite-item__price_old {
    text-decoration: line-through;
    opacity: 0.45;
    font-weight: 400;
}
.b-product-item__price_old,
.b-favorite-item__price_old {
    margin-right: 8px;
}

/* Special offer intro under hero */
.b-head-content_after-hero {
  margin-top: 48px;
  margin-bottom: 40px;
}
.b-head-content_after-hero .b-head-content__text {
  max-width: 720px;
}
.b-head-content_after-hero .b-title-2 {
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .b-head-content_after-hero {
    margin-top: 64px;
    margin-bottom: 48px;
  }
  .b-head-content_after-hero .b-title-2 {
    font-size: 36px;
  }
}

/* b-fs__title-mobile-wrap-fix: no mid-word orphans on narrow phones */
.b-fs__title {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    font-size: clamp(40px, 11.2vw, 64px) !important;
    letter-spacing: -0.045em !important;
    max-width: 100%;
}
@media (min-width: 768px) {
    .b-fs__title {
        font-size: 120px !important;
        letter-spacing: -3px !important;
    }
}

/* oplata-page */
.b-section_oplata {
	padding-top: 56px;
	padding-bottom: 80px;
}
.b-section_oplata .b-main-news__title {
	text-align: center;
	margin: 0 auto 40px;
	max-width: 640px;
}
.b-section_oplata .b-main-news__text {
	max-width: 640px;
	margin: 0 auto;
	text-align: left;
}
.b-section_oplata .b-main-news__text > *:first-child {
	margin-top: 0;
}
.b-section_oplata .b-main-news__text h2 {
	font-family: NewYork, serif;
	font-weight: 400;
	font-size: 28px;
	line-height: 1.25;
	margin: 36px 0 14px;
	text-align: left;
}
.b-section_oplata .b-main-news__text p {
	margin: 0 0 14px;
	line-height: 1.5;
}
.b-section_oplata .b-main-news__text ul {
	margin: 0 0 14px;
	padding-left: 1.2em;
}
.b-section_oplata .b-main-news__text li {
	margin-bottom: 8px;
	line-height: 1.5;
}
@media (max-width: 767px) {
	.b-section_oplata {
		padding-top: 36px;
		padding-bottom: 56px;
	}
	.b-section_oplata .b-main-news__title {
		margin-bottom: 28px;
		font-size: 32px;
	}
	.b-section_oplata .b-main-news__text h2 {
		font-size: 22px;
		margin-top: 28px;
	}
}
/* oplata: phone links like footer */
.b-section_oplata a[href^="tel:"] {
	color: #252525;
	font-weight: 500;
	text-decoration: none;
	font-family: Montserrat, sans-serif;
}
.b-section_oplata a[href^="tel:"]:hover {
	color: #252525;
	text-decoration: none;
}

/* Product gallery: keep native aspect (landscape must not be cover-cropped) */
.b-product__img-wrap {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}
.b-product__img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  -o-object-fit: contain !important;
}

/* Product page: keep 3-col layout from overflowing/clipping filters */
@media (min-width: 1024px) {
  .b-product__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.2fr) minmax(0, 1.1fr) !important;
    width: 100%;
    max-width: 100%;
  }
  .b-product__left,
  .b-product__gallery-wrap,
  .b-product__right,
  .b-product__slider,
  .b-product__img-wrap {
    min-width: 0 !important;
    max-width: 100%;
  }
  .b-product__left {
    overflow: visible !important;
  }
}

/* PDP title: wrap on spaces, don't split WAISTCOAT → WAISTCOA/T on resize/zoom */
.p-product .b-product__head {
  min-width: 0;
  gap: 16px;
}
.p-product .b-product__title {
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  line-height: 1.08;
  max-width: calc(100% - 56px);
}
@media (min-width: 768px) {
  .p-product .b-product__title {
    /* Scale before mid-word overflow; long Latin words stay intact */
    font-size: clamp(34px, 3.05vw + 12px, 64px) !important;
  }
}

/* Static text pages (/oplata-i-kredit, etc.): constrain line length */
.p-about .l-content-grid .b-text {
  max-width: 720px;
}
.p-about .l-content-grid .b-text h2 {
  font-family: NewYork, Georgia, serif;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 400;
  margin: 40px 0 16px;
  text-transform: uppercase;
}
.p-about .l-content-grid .b-text p,
.p-about .l-content-grid .b-text li {
  font-size: 16px;
  line-height: 1.65;
}
.p-about .l-content-grid .b-text p {
  margin: 0 0 16px;
}
.p-about .l-content-grid .b-text ul {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

/* news list: one article = one row (fixes jagged / "съехала вниз" layout) */
.b-main-news__grid {
  display: flex !important;
  flex-direction: column;
  gap: 50px;
  align-items: stretch !important;
  grid-template-columns: none !important;
  grid-auto-flow: row !important;
}
.b-main-news__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 50px;
  align-items: center;
}
.b-main-news__item_rev .b-main-news__img {
  order: 2;
}
.b-main-news__item_rev .b-main-news__content {
  order: 1;
}
.b-main-news__img {
  display: block;
  width: auto;
  max-width: min(100%, 420px);
  height: auto;
  max-height: 540px;
  object-fit: cover;
  justify-self: center;
}
.b-main-news__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 535px;
  width: 100%;
  justify-self: center;
}
.b-main-news__item:not(:has(.b-main-news__img)) .b-main-news__content {
  grid-column: 1 / -1;
  max-width: 720px;
  justify-self: start;
}
.b-main-news__caption {
  margin-bottom: 16px;
}
.b-main-news__btn {
  min-width: 200px;
}
@media (max-width: 1023px) {
  .b-main-news__grid {
    gap: 40px;
  }
  .b-main-news__item,
  .b-main-news__item_rev {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .b-main-news__item_rev .b-main-news__img,
  .b-main-news__item_rev .b-main-news__content {
    order: initial;
  }
  .b-main-news__img {
    width: 100%;
    max-width: none;
    max-height: none;
  }
  .b-main-news__content {
    max-width: none;
  }
  .b-main-news__btn {
    width: 100%;
  }
}


/* SEO page links: crawlable but visually hidden (prod uses only "Show more") */
.b-products-list__pages {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/*
 * PDP CTA: common.min uses margin-top:auto inside a tall sticky flex column,
 * which pins "Записаться" to the bottom of the gallery. Keep it under
 * description / brand / collection like the mobile stack.
 */
.p-product .b-product__request {
  margin-top: 0;
}

/* Related models (simLook): overlay titles on image — not default blue links */
.simLook {
  position: relative;
}

.simLook .b-shape__text {
  text-align: center;
}

.simLook .simLook__title {
  margin: 0 0 34px;
  font-family: Montserrat, sans-serif;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a4a4a;
}

.simLook .b-shape__slider-wrap {
  position: relative;
}

.simLook .b-shape__slider-wrap > .b-shape__container {
  width: calc(100% - 160px);
  max-width: 1360px;
  margin: 0 auto;
}

.simLook .simLook__slide {
  box-sizing: border-box;
}

.simLook .simLook__link {
  position: relative;
  display: block;
  overflow: hidden;
  color: inherit;
  text-decoration: none !important;
  aspect-ratio: 2 / 3;
  background: #ececec;
}

.simLook .simLook__link:hover,
.simLook .simLook__link:focus,
.simLook .simLook__link:visited {
  color: inherit;
  text-decoration: none !important;
}

.simLook .simLook__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.simLook .simLook__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.18) 48%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.simLook .simLook__overlay {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  z-index: 2;
  display: block;
  text-align: center;
  pointer-events: none;
}

.simLook .simLook__label {
  display: block;
  margin: 0 0 4px;
  font-family: Montserrat, sans-serif;
  font-size: 8px;
  line-height: 1;
  font-weight: 500;
  text-align: center;
  color: rgb(245, 245, 245);
}

.simLook .simLook__name {
  display: block;
  margin: 0;
  font-size: clamp(18px, 1.55vw, 34px);
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: uppercase;
  color: #fff;
  word-break: break-word;
  white-space: normal;
}

.simLook .b-shape__prev,
.simLook .b-shape__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  opacity: 1 !important;
  visibility: visible !important;
}

.simLook .b-shape__prev {
  left: 24px;
}

.simLook .b-shape__next {
  right: 24px;
}

.simLook .b-shape__prev img,
.simLook .b-shape__next img {
  display: block;
  width: 18px;
  height: 18px;
}

@media (min-width: 1680px) {
  .simLook .b-shape__slider-wrap > .b-shape__container {
    width: calc(100% - 180px);
    max-width: 1660px;
  }

  .simLook .b-shape__prev {
    left: 40px;
  }

  .simLook .b-shape__next {
    right: 40px;
  }
}

@media (min-width: 768px) {
  .simLook .simLook__overlay {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .simLook .simLook__label {
    margin-bottom: 4px;
    font-size: 14px;
  }

  .simLook .simLook__name {
    font-size: clamp(20px, 1.6vw, 30px);
  }
}

@media (max-width: 767px) {
  .simLook .simLook__title {
    margin-bottom: 22px;
    font-size: 18px;
    letter-spacing: 0.06em;
  }

  .simLook .b-shape__slider-wrap > .b-shape__container {
    width: calc(100% - 32px);
    max-width: none;
  }

  .simLook .simLook__overlay {
    left: 8px;
    right: 8px;
    bottom: 10px;
  }

  .simLook .simLook__label {
    margin-bottom: 3px;
    font-size: 14px;
  }

  .simLook .simLook__name {
    font-size: clamp(14px, 4.2vw, 22px);
    line-height: 0.95;
  }

  .simLook .b-shape__prev,
  .simLook .b-shape__next {
    width: 38px;
    height: 38px;
  }

  .simLook .b-shape__prev {
    left: 8px;
  }

  .simLook .b-shape__next {
    right: 8px;
  }
}

/* Home news tiles: equal photo height (prod news_card_vertical ~1:1.28) */
.p-main .b-section-news .b-news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.p-main .b-section-news .b-news-card__img-wrap {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.28;
  overflow: hidden;
}
.p-main .b-section-news .b-news-card__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.p-main .b-section-news .b-news-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.p-main .b-section-news .b-news-card__bottom {
  margin-top: auto;
}
