@import url("/assets/css/figma.css?v=2.5.2");
@import url("/assets/css/pilot.css?v=2.0.1");
@import url("/assets/css/portrait-fix.css?v=1.0.0");
@import url("/assets/css/kolskie-resident.css?v=1.0.0");

/* Keep the expanded home collections grid identical to production after the
   catalogue stylesheet imports the shared base styles. */
.featured-collections--expanded {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(3, 205px);
  min-height: 0;
}

.featured-collections--expanded .collection-feature { min-height: 0; }
.featured-collections--expanded .collection-feature--1 { grid-column: 1; grid-row: 1 / -1; }
.featured-collections--expanded .collection-feature--2 { grid-column: 2; grid-row: 1; }
.featured-collections--expanded .collection-feature--3 { grid-column: 2; grid-row: 2; }
.featured-collections--expanded .collection-feature--4 { grid-column: 2; grid-row: 3; }

@media (max-width: 820px) {
  .featured-collections--expanded {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 440px 360px 360px;
  }
  .featured-collections--expanded .collection-feature--1 { grid-column: 1 / -1; grid-row: 1; }
  .featured-collections--expanded .collection-feature--2 { grid-column: 1; grid-row: 2; }
  .featured-collections--expanded .collection-feature--3 { grid-column: 2; grid-row: 2; }
  .featured-collections--expanded .collection-feature--4 { grid-column: 1 / -1; grid-row: 3; }
}

@media (max-width: 640px) {
  .featured-collections--expanded {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 390px);
  }
  .featured-collections--expanded .collection-feature--1,
  .featured-collections--expanded .collection-feature--2,
  .featured-collections--expanded .collection-feature--3,
  .featured-collections--expanded .collection-feature--4 { grid-column: 1; grid-row: auto; }
}

.editorial-hero__photo--portrait > img.resident-portrait {
  object-fit: var(--portrait-fit, cover);
  object-position: var(--portrait-position, 50% 0%);
  transform: scale(var(--portrait-scale, 1));
}

.editorial-story .prose p:first-child { margin-top: 0; }
.editorial-story .prose h2 { margin-top: 2.1em; }
.editorial-story .prose h2 + p { margin-top: .65em; }
.product-card__media > img,
.workshop-card__media > img,
.workshop-catalog-card__media > img {
  object-fit: cover;
  object-position: center;
  background: transparent;
}

/* All catalogue covers use one full-bleed frame. The source assets are
   prepared for this ratio, so the browser must not add technical fields. */
.product-card__media,
.workshop-card__media,
.workshop-catalog-card__media {
  background: #f5f2f5;
}

.product-card__media > img,
.workshop-card__media > img,
.workshop-catalog-card__media > img {
  display: block;
  width: 100%;
  height: 100%;
}

.workshop-card__link {
  display: grid;
  height: 100%;
  grid-template-rows: 174px 340px;
}

.workshop-card__head,
.workshop-card__media {
  min-height: 0;
}

.editorial-hero--product .editorial-hero__photo > img,
.editorial-hero--workshop .editorial-hero__photo > img,
.editorial-hero--resident .editorial-hero__photo:not(.editorial-hero__photo--portrait) > img,
.editorial-gallery img {
  object-fit: contain;
  object-position: center;
  background: #f5f2f5;
}

/* A complete product must stay complete at rest and on hover. */
.product-card:hover .product-card__media > img,
.workshop-card:hover .workshop-card__media > img,
.workshop-catalog-card:hover .workshop-catalog-card__media > img,
.editorial-hero--product .editorial-hero__photo:hover > img,
.editorial-hero--workshop .editorial-hero__photo:hover > img,
.editorial-hero--resident .editorial-hero__photo:not(.editorial-hero__photo--portrait):hover > img,
.editorial-gallery figure:hover > img {
  transform: none;
}
.editorial-hero__photo picture { display: block; width: 100%; height: 100%; }
.contact__heading h2 { line-height: .94; }
.contact__heading > p { margin-top: 28px; }
.form-status { min-height: 1.35em; color: var(--muted); font-size: 12px; }

.kolskie-flavor-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.kolskie-flavor-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(73, 55, 255, .2);
  border-radius: 20px;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 18px 42px rgba(35, 31, 32, .055);
}

.kolskie-flavor-card figure {
  display: grid;
  min-height: 176px;
  margin: 0;
  padding: 18px;
  place-items: center;
  background: #f8f2ef;
}

.kolskie-flavor-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 185px;
  object-fit: contain;
}

.kolskie-flavor-card > div {
  display: grid;
  gap: 7px;
  min-height: 112px;
  padding: 18px 20px 22px;
}

.kolskie-flavor-card strong {
  font-size: 20px;
  line-height: 1.08;
}

.kolskie-flavor-card span {
  color: #625e63;
  font-size: 15px;
  line-height: 1.38;
}

.element-showcase {
  padding: 78px 0 86px;
  background: #f1eef2;
}

.element-showcase__heading {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(290px, .62fr);
  align-items: end;
  gap: 56px;
  margin-bottom: 34px;
}

.element-showcase__heading .eyebrow,
.element-showcase__heading h2,
.element-showcase__heading > p { margin: 0; }

.element-showcase__heading h2 {
  max-width: 760px;
  margin-top: 10px;
  font-size: clamp(42px, 4.5vw, 60px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .94;
}

.element-showcase__heading > p {
  color: #625e63;
  font-size: 18px;
  line-height: 1.45;
}

.element-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.element-card {
  display: grid;
  grid-template-columns: minmax(112px, .42fr) minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(35, 31, 32, .12);
  border-radius: 20px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 18px 42px rgba(35, 31, 32, .055);
}

.element-card__sign {
  position: relative;
  display: grid;
  min-height: 218px;
  padding: 18px 16px 17px;
  align-content: center;
  justify-items: center;
  border-right: 1px solid currentColor;
  color: #293b8f;
}

.element-card__sign > span {
  position: absolute;
  top: 13px;
  left: 14px;
  font-size: 15px;
}

.element-card__sign > strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 4.5vw, 78px);
  font-weight: 400;
  letter-spacing: -.06em;
  line-height: .9;
}

.element-card__sign > small {
  margin-top: 13px;
  font-size: 17px;
  font-weight: 700;
}

.element-card__copy {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 24px 22px;
}

.element-card__copy h3,
.element-card__copy p { margin: 0; }

.element-card__copy h3 {
  font-size: 20px;
  line-height: 1.18;
}

.element-card__copy p {
  color: #625e63;
  font-size: 15px;
  line-height: 1.42;
}

.element-card--ni .element-card__sign { color: #53575b; }
.element-card--cu .element-card__sign { color: #9a4d27; }

.element-package {
  display: grid;
  grid-template-columns: minmax(150px, .35fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 18px;
  padding: 22px 24px;
  border-radius: 18px;
  background: #fff;
}

.element-package .eyebrow,
.element-package > p { margin: 0; }
.element-package > p:not(.eyebrow) { color: #625e63; font-size: 16px; line-height: 1.45; }
.element-package .btn { white-space: nowrap; }

.resident-module,
.entity-module {
  padding: 72px 0;
  background: #f1eef2;
}

.resident-module:nth-of-type(even),
.entity-module:nth-of-type(even) {
  background: #faf8fa;
}

.resident-module__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .82fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
}

.resident-module__copy > h2,
.entity-module h2 {
  max-width: 830px;
  margin: 0 0 24px;
  font-size: clamp(38px, 5vw, 70px);
  line-height: .95;
}

.resident-module__copy > p:not(.eyebrow),
.entity-module .prose {
  max-width: 780px;
  color: #514d52;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.48;
}

.resident-module__layout > figure {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
}

.resident-module__layout > figure img {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: contain;
}

.resident-module__items,
.entity-module__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.resident-module__items article,
.entity-module__grid article {
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(73, 55, 255, .16);
  border-radius: 18px;
  background: #fff;
}

.entity-module__grid article:has(figure) { padding: 0; }
.entity-module__grid figure { margin: 0; background: #f5f2f5; }
.entity-module__grid figure img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.entity-module__grid article > div { padding: 20px; }
.resident-module__items h3,
.entity-module__grid h3 { margin: 0 0 8px; font-size: 20px; }
.resident-module__items p,
.entity-module__grid p { margin: 0; color: #625e63; line-height: 1.45; }
.resident-module__links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; }

.element-card__copy img {
  display: block;
  width: 100%;
  max-height: 200px;
  margin-bottom: 16px;
  object-fit: contain;
  border-radius: 14px;
  background: #f5f2f5;
}

.maker-teaser {
  padding: 26px 0 76px;
}

.maker-teaser__inner {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(73, 55, 255, .22);
}

.maker-teaser__portrait {
  display: block;
  width: 96px;
  height: 112px;
  overflow: hidden;
  border-radius: 18px;
  background: #ece9ef;
}

.maker-teaser__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--portrait-fit, cover);
  object-position: var(--portrait-position, 50% 0%);
  transform: scale(var(--portrait-scale, 1));
}

.maker-teaser__copy {
  display: grid;
  justify-items: start;
  gap: 7px;
}

.maker-teaser__copy .eyebrow,
.maker-teaser__copy h2,
.maker-teaser__brand {
  margin: 0;
}

.maker-teaser__copy h2 {
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1;
}

.maker-teaser__copy h2 a {
  color: inherit;
  text-decoration: none;
}

.maker-teaser__brand {
  color: #625e63;
  font-size: 17px;
  line-height: 1.25;
}

@media (max-width: 900px) {
  .resident-module__layout { grid-template-columns: 1fr; }
  .resident-module__items,
  .entity-module__grid { grid-template-columns: 1fr; }
  .kolskie-flavor-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .element-showcase__heading { grid-template-columns: 1fr; gap: 18px; }
  .element-cards { grid-template-columns: 1fr; }
  .element-card { grid-template-columns: 154px minmax(0, 1fr); }
  .element-card__sign { min-height: 172px; }
  .element-package { grid-template-columns: 1fr; justify-items: start; }
}

@media (max-width: 560px) {
  .contact__heading h2 { line-height: .98; }
  .kolskie-flavor-cards { grid-template-columns: 1fr; }
  .kolskie-flavor-card figure { min-height: 148px; padding: 14px; }
  .kolskie-flavor-card > div { min-height: 0; }
  .element-showcase { padding: 58px 0 64px; }
  .element-showcase__heading { margin-bottom: 24px; }
  .element-showcase__heading h2 { font-size: clamp(38px, 12vw, 52px); }
  .element-showcase__heading > p { font-size: 16px; }
  .element-card { grid-template-columns: 112px minmax(0, 1fr); }
  .element-card__sign { min-height: 184px; padding: 14px 10px; }
  .element-card__sign > strong { font-size: 54px; }
  .element-card__sign > small { font-size: 14px; }
  .element-card__copy { padding: 20px 17px; }
  .element-card__copy h3 { font-size: 18px; }
  .element-package { padding: 20px; }
  .element-package .btn { width: 100%; white-space: normal; }
  .maker-teaser { padding: 18px 0 54px; }
  .maker-teaser__inner { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; padding-top: 22px; }
  .maker-teaser__portrait { width: 72px; height: 72px; border-radius: 14px; }
  .maker-teaser__copy h2 { font-size: 25px; }
  .maker-teaser__brand { font-size: 15px; }
}


.resident-module--collection_variants .resident-module__items article.resident-module__item--with-image {
  display: grid;
  grid-template-columns: minmax(132px, 42%) minmax(0, 1fr);
  min-height: 210px;
  padding: 0;
}

.resident-module--collection_variants .resident-module__item--with-image figure {
  min-height: 210px;
  margin: 0;
  overflow: hidden;
  background: #f5f2f5;
}

.resident-module--collection_variants .resident-module__item--with-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  object-position: 50% 50%;
}

.resident-module--collection_variants .resident-module__item-copy {
  align-self: center;
  padding: 20px;
}

@media (max-width: 560px) {
  .resident-module--collection_variants .resident-module__items article.resident-module__item--with-image {
    grid-template-columns: 42% minmax(0, 1fr);
    min-height: 180px;
  }

  .resident-module--collection_variants .resident-module__item--with-image figure,
  .resident-module--collection_variants .resident-module__item--with-image img {
    min-height: 180px;
  }

  .resident-module--collection_variants .resident-module__item-copy {
    padding: 16px;
  }
}


.resident-module--collection_variants .resident-module__layout {
  grid-template-columns: minmax(0, 1fr);
}

.resident-module--collection_variants .resident-module__items article.resident-module__item--with-image {
  display: grid;
  grid-template-columns: minmax(132px, 42%) minmax(0, 1fr);
  min-height: 210px;
  padding: 0;
}

.resident-module--collection_variants .resident-module__item--with-image figure {
  min-height: 210px;
  margin: 0;
  overflow: hidden;
  background: #f5f2f5;
}

.resident-module--collection_variants .resident-module__item--with-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  object-position: 50% 50%;
}

.resident-module--collection_variants .resident-module__item-copy {
  align-self: center;
  padding: 20px;
}

@media (max-width: 560px) {
  .resident-module--collection_variants .resident-module__items article.resident-module__item--with-image {
    grid-template-columns: 42% minmax(0, 1fr);
    min-height: 180px;
  }

  .resident-module--collection_variants .resident-module__item--with-image figure,
  .resident-module--collection_variants .resident-module__item--with-image img {
    min-height: 180px;
  }

  .resident-module--collection_variants .resident-module__item-copy {
    padding: 16px;
  }
}


.resident-module--collection_variants .resident-module__layout {
  grid-template-columns: minmax(0, 1fr);
}

.resident-module--collection_variants .resident-module__items article.resident-module__item--with-image {
  display: grid;
  grid-template-columns: minmax(132px, 42%) minmax(0, 1fr);
  min-height: 210px;
  padding: 0;
}

.resident-module--collection_variants .resident-module__item--with-image figure {
  min-height: 210px;
  margin: 0;
  overflow: hidden;
  background: #f5f2f5;
}

.resident-module--collection_variants .resident-module__item--with-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  object-position: 50% 50%;
}

.resident-module--collection_variants .resident-module__item-copy {
  align-self: center;
  padding: 20px;
}

@media (max-width: 560px) {
  .resident-module--collection_variants .resident-module__items article.resident-module__item--with-image {
    grid-template-columns: 42% minmax(0, 1fr);
    min-height: 180px;
  }

  .resident-module--collection_variants .resident-module__item--with-image figure,
  .resident-module--collection_variants .resident-module__item--with-image img {
    min-height: 180px;
  }

  .resident-module--collection_variants .resident-module__item-copy {
    padding: 16px;
  }
}

/* Варницына: единая предметная сетка без обрезки изделий. */
.resident-module--collection_variants .resident-module__items {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.resident-module--collection_variants .resident-module__items article.resident-module__item--with-image {
  display: flex;
  min-height: 0;
  height: 100%;
  flex-direction: column;
  padding: 0;
}

.resident-module--collection_variants .resident-module__item--with-image figure {
  width: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
  padding: 14px;
  background: #f8f6f8;
}

.resident-module--collection_variants .resident-module__item--with-image img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: 50% 50%;
}

.resident-module--collection_variants .resident-module__item-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-self: stretch;
  padding: 20px;
}

@media (max-width: 1180px) {
  .resident-module--collection_variants .resident-module__items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .resident-module--collection_variants .resident-module__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .resident-module--collection_variants .resident-module__items {
    grid-template-columns: 1fr;
  }

  .resident-module--collection_variants .resident-module__items article.resident-module__item--with-image {
    display: flex;
    min-height: 0;
  }

  .resident-module--collection_variants .resident-module__item--with-image figure,
  .resident-module--collection_variants .resident-module__item--with-image img {
    min-height: 0;
  }
}
