:root {
  --reference-width: 1318px;
  --reference-gutter: max(40px, calc((100vw - var(--reference-width)) / 2));
}

.editorial-storefront header {
  grid-template-columns: 220px 1fr 260px;
  width: min(calc(100% - 80px), var(--reference-width));
  min-height: 120px;
  border-bottom: 0;
}

.brand-logo-image {
  width: 168px;
  height: 82px;
}

.editorial-storefront header nav {
  justify-content: center;
  gap: 62px;
}

.editorial-storefront header nav a {
  padding: 46px 0 40px;
  font-size: 16px;
}

.editorial-storefront header nav a::after {
  bottom: 29px;
}

.editorial-storefront header nav a.reference-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.editorial-storefront .hero {
  grid-template-columns: 520px 1fr;
  gap: 74px;
  width: min(calc(100% - 80px), var(--reference-width));
  min-height: 744px;
  padding: 34px 0 68px;
}

.editorial-storefront .hero::before {
  top: 220px;
  left: -66px;
  height: 280px;
}

.editorial-storefront .hero::after {
  top: 220px;
  left: -72px;
}

.editorial-storefront .hero-copy {
  padding-left: 8px;
}

.editorial-storefront .hero-copy::before {
  display: block;
  width: 82px;
  height: 3px;
  margin: 0 0 38px;
  background: linear-gradient(90deg, var(--brand-purple) 0 48%, transparent 48% 54%, var(--brand-blue) 54%);
  content: "";
}

.editorial-storefront .hero-copy h1 {
  font-size: 78px;
  line-height: 1.16;
}

.editorial-storefront .hero-copy i {
  display: none;
}

.editorial-storefront .hero-copy p {
  max-width: 490px;
  margin-top: 32px;
  color: #282933;
  font-size: 18px;
  line-height: 1.85;
}

.editorial-storefront .hero-actions {
  margin-top: 42px;
}

.editorial-storefront .hero-actions .btn {
  width: 220px;
  min-height: 62px;
  justify-content: center;
  font-size: 17px;
}

.editorial-storefront .hero-visual {
  grid-template-columns: 474px 242px;
  grid-template-rows: 315px 318px;
  gap: 10px;
  min-height: 643px;
}

.editorial-storefront .hero-visual > img:first-of-type,
.editorial-storefront .hero-side-image {
  min-height: 0;
  background: #eef0f4;
}

.editorial-storefront .hero-visual > img:first-of-type {
  width: 474px;
  height: 643px;
  object-fit: none;
  object-position: -699px -155px;
}

.editorial-storefront .hero-side-image:nth-of-type(2) {
  width: 242px;
  height: 315px;
  object-fit: none;
  object-position: -1182px -155px;
}

.editorial-storefront .hero-side-image:nth-of-type(3) {
  width: 242px;
  height: 318px;
  object-fit: none;
  object-position: -1182px -478px;
}

.editorial-storefront .hero-caption {
  display: none;
}

.editorial-storefront .category-section {
  width: min(calc(100% - 160px), 1318px);
  margin-bottom: 0;
  padding: 48px 52px 54px;
  border: 0;
  background: #f5f7fa;
}

.editorial-storefront .category-title {
  margin-bottom: 28px;
}

.editorial-storefront .category-title span {
  display: none;
}

.editorial-storefront .category-title h2 {
  margin: 0;
  font-size: 40px;
}

.editorial-storefront .rail-arrows {
  display: none;
}

.editorial-storefront .category-rail {
  gap: 24px;
  border: 0;
}

.editorial-storefront .category-item {
  display: flex;
  width: 190px;
  height: 190px;
  flex: 0 0 190px;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 0 18px;
  border: 1px solid #edf0f4;
  background: var(--white);
  color: var(--ink);
  text-align: left;
}

.editorial-storefront .category-item::after {
  right: 18px;
  left: 18px;
}

.category-reference-image {
  width: 100%;
  height: 142px;
  object-fit: cover;
}

.editorial-storefront .category-item b {
  padding: 0 16px;
  font-size: 14px;
}

.editorial-storefront .featured-section {
  display: none;
}

.editorial-storefront .catalog {
  width: min(calc(100% - 80px), var(--reference-width));
  padding: 38px 0 80px;
}

.editorial-storefront .catalog-head {
  min-height: 124px;
  margin-bottom: 22px;
  padding: 0 0 24px;
}

.editorial-storefront .catalog-head h2 {
  font-size: 40px;
}

.editorial-storefront .catalog-head h2::after {
  display: block;
  width: 66px;
  height: 3px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--brand-purple) 0 48%, transparent 48% 54%, var(--brand-blue) 54%);
  content: "";
}

.editorial-storefront .product-grid {
  grid-template-columns: 486px minmax(0, 1fr);
  grid-auto-rows: 106px;
  gap: 0 18px;
}

.editorial-storefront .product-card {
  display: none;
}

.editorial-storefront .product-card.reference-visible {
  display: grid;
}

.editorial-storefront .product-card:first-child.reference-visible {
  grid-row: span 6;
  grid-template-rows: 383px 1fr;
  background: #f5f7fa;
}

.editorial-storefront .product-card:first-child .image-button {
  min-height: 0;
  height: 383px;
}

.editorial-storefront .product-card:first-child .product-info {
  display: grid;
  align-content: start;
  padding: 22px 28px 24px;
}

.editorial-storefront .product-card:first-child .product-info h3 {
  margin: 10px 0 22px;
  font-size: 22px;
}

.editorial-storefront .product-card:first-child .product-info button {
  width: 208px;
  min-height: 56px;
  justify-content: center;
  border: 0;
  background: linear-gradient(90deg, var(--brand-purple) 0 calc(100% - 52px), var(--brand-blue) calc(100% - 52px));
  color: var(--white);
}

.editorial-storefront .product-card.reference-visible:not(:first-child) {
  grid-column: 2;
  grid-template-columns: 216px minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.editorial-storefront .product-card.reference-visible:not(:first-child) .image-button {
  width: 216px;
  height: 88px;
  aspect-ratio: auto;
}

.editorial-storefront .product-card.reference-visible:not(:first-child) .index {
  left: auto;
  right: -42px;
  top: 4px;
  padding: 0;
  background: transparent;
  color: var(--brand-purple);
  font-size: 17px;
}

.editorial-storefront .product-card.reference-visible:not(:first-child) .product-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 162px;
  grid-template-rows: auto auto;
  align-items: center;
  padding: 10px 0 10px 72px;
}

.editorial-storefront .product-card.reference-visible:not(:first-child) .product-info .cat {
  grid-column: 1;
  grid-row: 1;
}

.editorial-storefront .product-card.reference-visible:not(:first-child) .product-info h3 {
  grid-column: 1;
  grid-row: 2;
  min-height: 0;
  margin: 5px 16px 0 0;
  font-size: 18px;
}

.editorial-storefront .product-card.reference-visible:not(:first-child) .product-info button {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 160px;
  min-height: 38px;
  justify-content: center;
  border: 0;
  background: linear-gradient(90deg, var(--brand-purple) 0 calc(100% - 38px), var(--brand-blue) calc(100% - 38px));
  color: var(--white);
}

.editorial-storefront .product-card .reference-catalog-crop {
  object-fit: none;
}

.editorial-storefront .product-card:nth-child(1) .reference-catalog-crop {
  object-position: -108px -348px;
}

.editorial-storefront .product-card:nth-child(2) .reference-catalog-crop {
  object-position: -612px -346px;
}

.editorial-storefront .product-card:nth-child(3) .reference-catalog-crop {
  object-position: -612px -452px;
}

.editorial-storefront .product-card:nth-child(4) .reference-catalog-crop {
  object-position: -612px -558px;
}

.editorial-storefront .product-card:nth-child(5) .reference-catalog-crop {
  object-position: -612px -664px;
}

.editorial-storefront .product-card:nth-child(6) .reference-catalog-crop {
  object-position: -612px -770px;
}

.editorial-storefront .product-card:nth-child(7) .reference-catalog-crop {
  object-position: -612px -876px;
}

.editorial-storefront .catalog-load-more {
  margin-top: 30px;
}

.editorial-storefront .catalog-load-more .btn {
  width: 352px;
  border-color: var(--brand-blue);
  background: var(--white);
  color: #247ab2;
}

.editorial-storefront .service {
  width: 100%;
  min-height: 462px;
  margin: 0;
  background: var(--white);
}

.editorial-storefront .service > div {
  padding: 70px 80px 52px var(--reference-gutter);
}

.editorial-storefront .service::after {
  min-height: 462px;
  background-image: url("/assets/reference-service.png");
  background-position: right top;
  background-size: 1536px 1024px;
  clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%, 12% 72%);
}

.editorial-storefront .service h2 {
  font-size: 66px;
}

.editorial-storefront .service .btn {
  position: relative;
  width: 248px;
  min-height: 58px;
  padding-right: 58px;
}

.editorial-storefront .service .btn::after {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 58px;
  height: 100%;
  place-items: center;
  background: var(--brand-blue);
  content: "→";
  font-size: 28px;
}

.editorial-storefront .contact-strip {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 70px;
  width: 100%;
  margin: 0;
  padding: 40px var(--reference-gutter) 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.editorial-storefront .contact-heading {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 0;
  border: 0;
}

.editorial-storefront .contact-heading > span {
  display: none;
}

.editorial-storefront .contact-heading h2 {
  max-width: 480px;
  font-size: 40px;
}

.editorial-storefront .contact-heading h2::after {
  display: block;
  width: 88px;
  height: 3px;
  margin-top: 30px;
  background: linear-gradient(90deg, var(--brand-purple) 0 48%, transparent 48% 54%, var(--brand-blue) 54%);
  content: "";
}

.editorial-storefront .contact-heading p {
  order: 2;
  margin-top: 14px;
}

.editorial-storefront .contact-grid {
  column-gap: 72px;
}

.editorial-storefront .contact-grid a {
  position: relative;
  min-height: 68px;
  padding: 0 32px 0 78px;
  font-size: 17px;
}

.editorial-storefront .contact-grid a::before {
  position: absolute;
  top: 14px;
  left: 16px;
  width: 40px;
  height: 40px;
  background-image: url("/assets/reference-service.png");
  background-repeat: no-repeat;
  background-size: 1536px 1024px;
  content: "";
}

.editorial-storefront .contact-grid a::after {
  color: #1687ce;
  content: "→";
  font-size: 25px;
}

.editorial-storefront .contact-grid a:nth-child(1)::before { background-position: -608px -502px; }
.editorial-storefront .contact-grid a:nth-child(2)::before { background-position: -608px -569px; }
.editorial-storefront .contact-grid a:nth-child(3)::before { background-position: -608px -636px; }
.editorial-storefront .contact-grid a:nth-child(4)::before { background-position: -608px -704px; }
.editorial-storefront .contact-grid a:nth-child(5)::before { background-position: -1088px -502px; }
.editorial-storefront .contact-grid a:nth-child(6)::before { background-position: -1088px -569px; }
.editorial-storefront .contact-grid a:nth-child(7)::before { background-position: -1088px -636px; }
.editorial-storefront .contact-grid a:nth-child(8)::before { background-position: -1088px -704px; }

.editorial-storefront footer {
  grid-template-columns: 330px 1fr 140px;
  width: 100%;
  min-height: 250px;
  margin: 0;
  padding: 38px var(--reference-gutter) 42px;
  border: 0;
}

.footer-brand-logo {
  width: 290px;
}

@media (max-width: 1100px) {
  .editorial-storefront header,
  .editorial-storefront .hero,
  .editorial-storefront .catalog {
    width: min(calc(100% - 48px), var(--reference-width));
  }

  .editorial-storefront .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .editorial-storefront .hero-visual {
    justify-content: center;
  }

  .editorial-storefront .category-section {
    width: calc(100% - 48px);
  }

  .editorial-storefront .product-grid {
    grid-template-columns: 42% 58%;
  }
}

@media (max-width: 760px) {
  :root {
    --reference-gutter: 18px;
  }

  .editorial-storefront header {
    width: calc(100% - 36px);
    min-height: 76px;
  }

  .brand-logo-image {
    width: 132px;
    height: 56px;
  }

  .editorial-storefront .hero {
    width: calc(100% - 36px);
    min-height: auto;
  }

  .editorial-storefront .hero-copy h1 {
    font-size: 52px;
  }

  .editorial-storefront .hero-visual {
    grid-template-columns: 1.35fr 0.8fr;
    grid-template-rows: 210px 210px;
    width: 100%;
    min-height: 430px;
  }

  .editorial-storefront .hero-visual > img:first-of-type,
  .editorial-storefront .hero-side-image:nth-of-type(2),
  .editorial-storefront .hero-side-image:nth-of-type(3) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .editorial-storefront .category-section {
    width: calc(100% - 36px);
    padding: 30px 20px 34px;
  }

  .editorial-storefront .category-item {
    width: 158px;
    height: 170px;
    flex-basis: 158px;
  }

  .category-reference-image {
    height: 122px;
  }

  .editorial-storefront .catalog {
    width: calc(100% - 36px);
  }

  .editorial-storefront .product-grid {
    display: block;
  }

  .editorial-storefront .product-card.reference-visible,
  .editorial-storefront .product-card:first-child.reference-visible,
  .editorial-storefront .product-card.reference-visible:not(:first-child) {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    grid-template-rows: auto;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }

  .editorial-storefront .product-card.reference-visible .image-button,
  .editorial-storefront .product-card:first-child .image-button,
  .editorial-storefront .product-card.reference-visible:not(:first-child) .image-button {
    width: 116px;
    height: 116px;
    min-height: 0;
  }

  .editorial-storefront .product-card .reference-catalog-crop {
    object-fit: cover;
    object-position: center;
  }

  .editorial-storefront .product-card:first-child .product-info,
  .editorial-storefront .product-card.reference-visible:not(:first-child) .product-info {
    display: block;
    padding: 10px 0 12px 16px;
  }

  .editorial-storefront .product-card:first-child .product-info h3,
  .editorial-storefront .product-card.reference-visible:not(:first-child) .product-info h3 {
    margin: 6px 0 10px;
    font-size: 15px;
  }

  .editorial-storefront .product-card:first-child .product-info button,
  .editorial-storefront .product-card.reference-visible:not(:first-child) .product-info button {
    width: 132px;
    min-height: 34px;
    font-size: 12px;
  }

  .editorial-storefront .service {
    grid-template-columns: 1fr;
  }

  .editorial-storefront .service > div {
    background: rgba(255,255,255,.9);
  }

  .editorial-storefront .contact-strip {
    grid-template-columns: 1fr;
  }

  .editorial-storefront footer {
    grid-template-columns: 1fr;
  }
}
