.head-box .header-main-row {
  align-items: center;
}

.head-box .header-main-row .phone-header,
.head-box .header-main-row .icon-box {
  margin-block: 0;
  align-self: center;
}

.store-design-home {
  --home-section-gap: clamp(28px, 4vw, 44px);
  --home-section-padding: clamp(12px, 2vw, 24px);
}

.store-design-home .kstul-home-v4 .kv4-section {
  margin-block: var(--home-section-gap);
}

.store-design-home .kv4-section .kv5-other-title {
  margin-block-start: 0;
}

.store-design-home :is(.store-selection.container, .store-showroom.container, .store-local-faq.container) {
  padding-block: var(--home-section-padding);
}

.store-design-home .kv4-hero h1 {
  max-inline-size: 16ch;
  font-size: clamp(2.25rem, 4.2vw, 4.35rem);
  line-height: 1.02;
}

.store-design-home .kv4-hero > div {
  inline-size: min(53%, 36rem);
}

.store-design-home .kv4-hero > .kv4-hero-frame {
  position: absolute;
  top: 0;
  opacity: 0;
}

.store-design-home .kv4-hero > .kv4-hero-frame-active {
  opacity: 1;
}

.kv4-hero-tile-layer {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  z-index: -2;
  pointer-events: none;
}

.kv4-hero-frames:not([hidden]) {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: flex;
  gap: 2px;
  z-index: 1;
}

.kv4-hero-frames button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #282622b8;
  color: #fff;
  cursor: pointer;
}

.kv4-hero-frames button::before {
  content: '';
  width: 9px;
  height: 9px;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.kv4-hero-frames button[aria-pressed="true"]::before {
  background: currentColor;
}

.kv4-hero-frames button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 620px) {
  .store-design-home .kv4-hero > img {
    height: clamp(160px, 48vw, 245px);
  }

  .store-design-home .kv4-hero > :is(.kv4-hero-frame, .kv4-hero-tile-layer) {
    z-index: 0;
  }

  .store-design-home .kv4-hero > .kv4-hero-frame-generated {
    object-position: center;
  }

  .kv4-hero-frames:not([hidden]) {
    top: calc(clamp(160px, 48vw, 245px) - 52px);
    bottom: auto;
    right: 8px;
  }
}

@media (min-width: 768px) {
  .store-design-home .kv4-hero > div {
    padding-inline-end: 1rem;
  }

  .store-design-home .kv4-hero h1 {
    width: auto;
    max-width: none;
    text-wrap: balance;
  }
}

.store-design-showroom-link {
  display: inline-flex;
  align-items: center;
  min-block-size: 44px;
  margin-inline-start: 1rem;
  color: inherit;
  text-underline-offset: .2em;
}

.store-design-home .kv5-brand-list img {
  max-block-size: 30px;
  min-inline-size: 74px;
  object-fit: contain;
  opacity: .86;
}

.kv5-brand-strip:is(:hover, :focus-within) .store-brand-rail {
  animation-play-state: paused;
}

.store-design-home .kv4-scenes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}

.store-design-home .kv4-scenes .kv4-scene {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 1rem;
  min-width: 0;
  margin: 0;
  padding: clamp(.85rem, 2vw, 1.25rem);
  background: #f4f3f1;
  border-radius: 16px;
}

.store-design-home .kv4-scene .kv4-scene-media {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 2;
  overflow: hidden;
  border-radius: 10px;
  order: 0;
}

.store-design-home .kv4-scene .kv4-scene-media img {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center 58%;
}

.store-design-home .kv4-scene h2 {
  font-size: clamp(1.125rem, 2.2vw, 1.65rem);
  line-height: 1.14;
}

.store-design-home #showroom-route .store-showroom-map:has(.store-map-facade) {
  min-height: 0;
  align-content: center;
}

.store-design-home #showroom-route .store-map-facade {
  min-height: 76px;
}

.store-design-home #showroom-route .store-phone-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #252525;
  color: #fff;
}

.store-design-home #showroom-route .store-phone-action:is(:hover, :focus-visible) {
  background: #3d4b43;
  color: #fff;
}

.store-phone-action svg {
  flex-shrink: 0;
}

.store-design-contacts .store-selection--recommendation,
.store-design-contacts .cart-mobile-button:not(.store-design-header-cart) {
  display: none;
}

.store-design-contacts .kstul-contacts-card:has(.kstul-contact-methods) {
  padding: clamp(18px, 4vw, 36px);
}

.kstul-contact-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.kstul-contact-method {
  min-width: 0;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid #e2e4df;
  border-radius: 12px;
  background: #fff;
}

.kstul-contact-method h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 9px;
  color: #34483e;
  font-size: 1rem;
  font-weight: 700;
}

.kstul-contact-method svg {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 8px;
  background: #eef2ed;
}

.kstul-contact-method ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.store-design-contacts .kstul-contact-method li {
  margin: 0;
}

.kstul-contact-method li + li {
  border-top: 1px solid #e9ebe8;
}

.store-design-contacts .kstul-contact-method a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  font-size: clamp(.95rem, 2vw, 1.15rem);
  font-weight: 620;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.store-design-contacts .kstul-contact-method a:is(:hover, :focus-visible) {
  text-decoration: underline;
}

.kstul-contact-method a span {
  color: #50665a;
}

@media (max-width: 620px) {
  .kstul-contact-methods {
    grid-template-columns: 1fr;
  }
}

.store-design-section-toggle {
  display: none;
}

.store-catalog-subsections .title-block-link > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  height: 100%;
  text-align: center;
}

.store-selection .store-selection-card,
.kstul-home-v4 .store-selection .store-selection-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  height: 100%;
}

.store-selection .store-selection-card h3 {
  flex: 1 0 auto;
  min-height: 3.6em;
  margin-block: .7rem .45rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.store-selection .store-selection-photo {
  aspect-ratio: 1;
}

.store-selection .store-selection-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.store-selection .store-selection-price {
  margin-block-start: auto;
}

.store-listing-swatch:is(button, a):focus-visible,
.store-design-section-toggle:focus-visible,
.store-design-buy-bar button:focus-visible {
  outline: 2px solid #615e56;
  outline-offset: 3px;
}

.store-design-legal {
  margin-block-start: .65rem;
}

.store-design-buy-bar {
  display: none;
}

#cookieModal {
  padding: .8rem 1rem;
}

#cookieModal .cookie-modal__title {
  margin-block: 0 .3rem;
}

#cookieModal .cookie-modal__text {
  margin-block: 0 .35rem;
}

@media (max-width: 767px) {
  header .top-line {
    display: none;
  }

  .head-box .header-main-row {
    display: grid;
    grid-template: 'logo catalog phone' auto / minmax(0, 1fr) auto auto;
    gap: .25rem .45rem;
    align-items: center;
    padding-block: .55rem;
    min-height: 0;
  }

  .head-box .header-main-row:has(.store-design-header-cart) {
    grid-template: 'logo catalog phone cart' auto / minmax(0, 1fr) auto auto auto;
  }

  .head-box .header-main-row > .col-logo-head { grid-area: logo; }
  .head-box .header-main-row > .col-catalog-button { grid-area: catalog; }
  .head-box .header-main-row > .col-phone-header { grid-area: phone; }

  .head-box .header-main-row > :is(.col-logo-head, .col-catalog-button, .col-phone-header) {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  .head-box .header-main-row .kstul-wordmark {
    font-size: clamp(1rem, 5vw, 1.4rem);
    gap: .2rem;
  }

  .head-box .header-main-row .kstul-wordmark img {
    width: 27px;
    height: 27px;
  }

  .head-box .header-main-row .catalog-button {
    min-height: 44px;
    padding-inline: .55rem;
    margin: 0;
    white-space: nowrap;
  }

  .head-box .header-main-row .phone-header {
    display: flex;
    padding: 0;
    align-items: center;
  }

  .head-box .header-main-row .phone-header a:first-child {
    display: inline-grid;
    min-width: 44px;
    min-height: 44px;
    place-items: center;
    font-size: 0;
    border: 1px solid #dedbd6;
    border-radius: 8px;
    color: #252525;
    position: relative;
  }

  .head-box .header-main-row .phone-header a:first-child::before {
    content: '';
    width: 21px;
    height: 21px;
    background: currentColor;
    position: absolute;
    inset: 0;
    margin: auto;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 16v3a2 2 0 0 1-2.2 2A18 18 0 0 1 3 5.2 2 2 0 0 1 5 3h3l2 5-2.5 1.5a14 14 0 0 0 7 7L16 14l5 2z' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  .head-box .header-main-row .phone-header a ~ a {
    display: none;
  }

  .head-box .header-main-row .store-design-header-cart {
    display: grid;
    place-items: center;
    min-height: 0;
    position: static;
    grid-area: cart;
    width: auto;
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .head-box .header-main-row .store-design-header-cart > .icon-item {
    margin: 0;
  }

  .head-box .header-main-row .store-design-header-cart a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #dedbd6;
    border-radius: 8px;
  }

  .head-box .store-design-header-cart .img-icon {
    display: grid;
    place-items: center;
    margin: 0;
    position: relative;
  }

  .head-box .store-design-header-cart img {
    width: 22px;
    height: 22px;
    object-fit: contain;
  }

  .head-box .store-design-header-cart .img-icon-basket:not(:empty) {
    position: absolute;
    inset: -8px -9px auto auto;
  }

  .head-box .store-design-header-cart .img-icon-basket,
  .head-box .store-design-header-cart .img-icon-basket > * {
    background-color: #30302e;
    color: #fff;
  }

  .head-box .store-design-header-cart .text-icon {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .store-design-home .kv4-hero {
    min-height: 0;
  }

  .store-design-home .kv4-hero > div {
    width: 100%;
    padding: 1.2rem 1rem;
  }

  .store-design-home .kv4-hero h1 {
    max-inline-size: 14ch;
    font-size: clamp(2rem, 8.5vw, 2.75rem);
  }

  .store-design-showroom-link {
    margin-inline-start: .6rem;
    font-size: .875rem;
  }

  .store-design-home .kv4-scenes {
    grid-template-columns: 1fr;
  }

  .store-catalog-subsections.store-design-subsections:not(.store-design-expanded) > .store-design-extra-section {
    display: none;
  }

  .store-design-section-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .4rem .85rem;
    margin-block: .6rem 0;
    color: #252525;
    background: #fff;
    border: 1px solid #d7d5d2;
    border-radius: 8px;
    font: inherit;
  }

  .store-catalog-results .sort-box {
    gap: .4rem;
  }

  .store-catalog-results .sort-box a {
    text-align: center;
  }

  .store-listing-swatch:is(button, a) {
    position: relative;
  }

  .store-listing-swatch:is(button, a)::after {
    content: '';
    position: absolute;
    inset: -6px -3px;
  }

  .title-block:has(.store-share) h1 {
    padding-inline-end: 3.15rem;
  }

  .title-block:has(.store-share) .col-md-12:has(> .store-share) {
    position: relative;
  }

  .title-block .store-share {
    position: absolute;
    top: 0;
    right: .6rem;
    margin: 0;
  }

  .title-block .store-share-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
  }

  .title-block .store-share-button span {
    display: none;
  }

  .title-block .store-share-status:not(:empty) {
    position: absolute;
    z-index: 1;
    top: 100%;
    right: 0;
    width: max-content;
    max-width: 210px;
    padding: .4rem .6rem;
    background: #fff;
    border: 1px solid #d7d5d2;
    border-radius: 6px;
  }

  .element-detail-img-box-big-img {
    max-height: clamp(220px, 73vw, 420px);
  }

  .element-detail-img-box-big-img img {
    max-height: inherit;
    object-fit: contain;
  }

  .store-design-buy-bar:not([hidden]) {
    display: flex;
    gap: .6rem;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    padding: .55rem .8rem max(.55rem, env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #dedbd6;
  }

  .store-design-buy-bar strong {
    font-size: 1.05rem;
  }

  .store-design-buy-bar button {
    min-height: 44px;
    padding-inline: .9rem;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #252525;
    font: inherit;
    font-weight: 650;
  }

  .store-design-buy-visible {
    scroll-padding-bottom: 5rem;
  }

  .store-design-buy-visible .cart-mobile-button:not(.store-design-header-cart) {
    display: none;
  }

  #cookieModal {
    inset: auto .5rem .5rem;
    width: auto;
    max-width: none;
    padding: .7rem .85rem;
  }

  #cookieModal .cookie-modal__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: .5rem;
    font-size: .82rem;
    line-height: 1.35;
  }

  #cookieModal .cookie-modal__title {
    font-size: 1rem;
    margin: 0 0 .25rem;
  }

  #cookieModal .cookie-modal__text {
    margin: 0 0 .3rem;
  }

  #cookieModal .cookie-modal__button {
    min-height: 44px;
    margin: 0;
  }

  .store-product .store-crumbs li:nth-last-child(n+4):not(:first-child) {
    display: none;
  }
}

@media (max-width: 380px) {
  .head-box .header-main-row .catalog-button {
    font-size: .8rem;
    padding-inline: .45rem;
  }
}

.store-product:has(.very-price) .title-block .store-card-label--promo {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .kv5-brand-strip .store-brand-rail {
    animation: none;
  }
}
