:root {
  --models-ink: #1a1a1a;
  --models-paper: #faf9f7;
  --models-accent: #3d5467;
}

.models-page {
  min-height: 100vh;
  color: var(--models-ink);
  background: var(--models-paper);
}

.models-hero {
  height: 100vh;
  height: 100svh;
  min-height: 700px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--models-ink);
  background: #c9b59c;
}

.models-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(180deg, rgba(7, 12, 14, 0.48) 0%, rgba(7, 12, 14, 0.12) 16%, rgba(7, 12, 14, 0) 32%),
    linear-gradient(90deg, rgba(231, 219, 204, 0.42) 0%, rgba(231, 219, 204, 0.28) 34%, rgba(231, 219, 204, 0.08) 55%, rgba(231, 219, 204, 0) 70%);
  pointer-events: none;
}

.models-hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.005);
}

.models-hero__inner {
  width: min(calc(100% - clamp(48px, 10vw, 176px)), 1540px);
  min-height: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  margin: 0 auto;
  padding: 116px 0 76px;
}

.models-hero__content {
  width: min(100%, 610px);
  position: relative;
  z-index: 1;
  transform: translateY(-8px);
  animation: models-hero-arrive 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.models-hero__eyebrow {
  margin: 0 0 24px;
  color: rgba(26, 26, 26, 0.66);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.models-hero h1 {
  max-width: 10ch;
  margin: 0;
  color: var(--models-ink);
  font-size: clamp(3.625rem, 5vw, 5.375rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.models-hero h1 span,
.models-hero h1 em {
  display: block;
}

.models-hero h1 em {
  font-style: italic;
  font-weight: 500;
}

.models-hero__accent {
  width: 38px;
  height: 2px;
  display: block;
  margin: 30px 0 23px;
  background: var(--models-accent);
}

.models-hero__lead {
  max-width: 430px;
  margin: 0;
  color: rgba(26, 26, 26, 0.72);
  font-size: clamp(1.04rem, 1.3vw, 1.2rem);
  font-weight: 500;
  line-height: 1.5;
}

.models-hero__cta {
  width: fit-content;
  min-height: 56px;
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 0 24px;
  color: #111719;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 7px;
  box-shadow: 0 14px 34px rgba(63, 45, 28, 0.14);
  font-size: 0.96rem;
  font-weight: 600;
  transition:
    color 190ms ease,
    background-color 190ms ease,
    border-color 190ms ease,
    transform 190ms ease;
  text-decoration: none;
}

.models-hero__cta svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 190ms ease;
}

.models-hero__cta:hover,
.models-hero__cta:focus-visible {
  color: var(--models-paper);
  background: var(--models-accent);
  border-color: var(--models-accent);
  outline: none;
  transform: translateY(-2px);
}

.models-hero__cta:hover svg,
.models-hero__cta:focus-visible svg {
  transform: translateY(4px);
}

.models-hero__cta:focus-visible {
  outline: 2px solid var(--models-accent);
  outline-offset: 4px;
}

@keyframes models-hero-arrive {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(-8px);
  }
}

.models-catalog {
  background: #faf9f7;
  scroll-margin-top: 90px;
}

.models-catalog__inner {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 68px) clamp(18px, 5vw, 74px) clamp(74px, 8vw, 116px);
}

.models-collection-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: clamp(54px, 7vw, 92px);
}

.models-collection-link {
  min-height: clamp(260px, 27vw, 380px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: clamp(24px, 3.2vw, 42px);
  color: #faf9f7;
  background: #1a1a1a;
  border: 1px solid rgba(26, 26, 26, 0.1);
  border-radius: 8px;
  box-shadow: 0 22px 58px rgba(26, 26, 26, 0.1);
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color 260ms ease,
    transform 260ms ease,
    box-shadow 260ms ease;
}

.models-collection-link::before {
  content: "";
  position: absolute;
  top: clamp(24px, 3.2vw, 42px);
  left: clamp(24px, 3.2vw, 42px);
  z-index: 1;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: #3d5467;
  opacity: 0.95;
}

.models-collection-link__image {
  position: absolute;
  inset: 0;
  z-index: -1;
  height: 100%;
  overflow: hidden;
  display: block;
  border-radius: inherit;
  background: #0f0f0f;
  box-shadow: none;
}

.models-collection-link__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.8) contrast(1.06);
  transform: scale(1.01);
  transition:
    filter 600ms cubic-bezier(0.19, 1, 0.22, 1),
    transform 600ms cubic-bezier(0.19, 1, 0.22, 1);
}

.models-collection-link__content,
.models-collection-link__eyebrow,
.models-collection-link__title,
.models-collection-link__copy {
  min-width: 0;
  display: block;
}

.models-collection-link__content {
  width: min(100%, 460px);
  position: relative;
  z-index: 1;
  padding-top: 42px;
  text-shadow: 0 3px 26px rgba(0, 0, 0, 0.72);
}

.models-collection-link__eyebrow {
  margin-bottom: 12px;
  color: rgba(250, 249, 247, 0.68);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.models-collection-link__title {
  color: #faf9f7;
  font-size: clamp(3.2rem, 5.2vw, 5.7rem);
  line-height: 0.9;
}

.models-collection-link__copy {
  max-width: 360px;
  margin-top: 18px;
  color: rgba(250, 249, 247, 0.76);
  font-size: 1rem;
  line-height: 1.5;
}

.models-collection-link--dark .models-collection-link__image img {
  object-position: 45% center;
}

.models-collection-link__action {
  width: fit-content;
  margin-top: 28px;
  display: block;
  color: #faf9f7;
  font-size: 0.92rem;
  text-shadow: none;
}

.models-collection-link__action::after {
  content: "";
  width: 100%;
  height: 1px;
  display: block;
  margin-top: 8px;
  background: rgba(250, 249, 247, 0.64);
  transform-origin: left;
  transition:
    background 260ms ease,
    transform 260ms ease;
}

.models-collection-link__arrow {
  width: 54px;
  height: 54px;
  position: absolute;
  right: clamp(24px, 3.2vw, 42px);
  bottom: clamp(24px, 3.2vw, 42px);
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #faf9f7;
  background: rgba(250, 249, 247, 0.12);
  border: 1px solid rgba(250, 249, 247, 0.16);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition:
    color 260ms ease,
    background 260ms ease,
    border-color 260ms ease,
    transform 260ms ease;
}

.models-collection-link:hover,
.models-collection-link:focus-visible {
  border-color: rgba(61, 84, 103, 0.55);
  outline: none;
  transform: translateY(-4px);
  box-shadow: 0 30px 78px rgba(26, 26, 26, 0.18);
}

.models-collection-link:hover .models-collection-link__image img,
.models-collection-link:focus-visible .models-collection-link__image img {
  filter: brightness(0.86) contrast(1.07);
  transform: scale(1.055);
}

.models-collection-link:hover .models-collection-link__action::after,
.models-collection-link:focus-visible .models-collection-link__action::after {
  background: #3d5467;
  transform: scaleX(0.72);
}

.models-collection-link:hover .models-collection-link__arrow,
.models-collection-link:focus-visible .models-collection-link__arrow {
  color: #faf9f7;
  background: #3d5467;
  border-color: #3d5467;
  transform: translateX(6px);
}

.models-catalog__heading {
  margin-bottom: 26px;
}

.models-catalog__eyebrow {
  margin: 0 0 14px;
  color: rgba(26, 26, 26, 0.56);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.models-catalog h2 {
  margin: 0;
  color: #1a1a1a;
  font-size: clamp(2.6rem, 5.2vw, 5.6rem);
  font-weight: 600;
  line-height: 0.98;
}

.models-catalog h2::after {
  content: "";
  width: 52px;
  height: 3px;
  display: block;
  margin-top: 18px;
  border-radius: 3px;
  background: #3d5467;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.model-card {
  min-width: 0;
  overflow: hidden;
  background: #faf9f7;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(26, 26, 26, 0.08);
  transition:
    transform 280ms ease,
    box-shadow 280ms ease,
    border-color 280ms ease;
}

.model-card:hover,
.model-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(61, 84, 103, 0.34);
  box-shadow: 0 26px 62px rgba(26, 26, 26, 0.13);
}

.model-card__media {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #e9e5de;
}

.model-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  transform: scale(1);
  transition: transform 700ms cubic-bezier(0.19, 1, 0.22, 1);
}

.model-card:hover .model-card__media img,
.model-card:focus-within .model-card__media img {
  transform: scale(1.045);
}

.model-card__body {
  min-height: 172px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 20px;
  padding: 20px 20px 18px;
}

.model-card__collection {
  margin: 0 0 9px;
  color: #3d5467;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.model-card h3 {
  margin: 0;
  color: #1a1a1a;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.22;
}

.model-card__teaser {
  max-width: 32ch;
  min-height: 2.8em;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 0;
  color: rgba(26, 26, 26, 0.6);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.4;
  text-wrap: balance;
  transition: color 220ms ease;
}

.model-card__teaser::before {
  content: "";
  width: 18px;
  height: 2px;
  flex: 0 0 18px;
  margin-top: 0.62em;
  background: var(--accent, #3d5467);
  border-radius: 2px;
  transform-origin: left center;
  transition: transform 220ms ease;
}

.model-card:hover .model-card__teaser,
.model-card:focus-within .model-card__teaser {
  color: rgba(26, 26, 26, 0.78);
}

.model-card:hover .model-card__teaser::before,
.model-card:focus-within .model-card__teaser::before {
  transform: scaleX(1.35);
}

.model-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.model-card__footer > span {
  color: #1a1a1a;
  font-size: 1rem;
}

.model-card__button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  color: #1a1a1a;
  background: #edebe7;
  border: 1px solid rgba(26, 26, 26, 0.06);
  border-radius: 50%;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(250, 249, 247, 0.9),
    0 10px 22px rgba(26, 26, 26, 0.08);
  transition:
    color 260ms ease,
    background 260ms ease,
    border-color 260ms ease,
    transform 260ms ease,
    box-shadow 260ms ease;
}

.model-card__button span {
  display: inline-block;
  transform: translateY(-1px);
  transition: transform 260ms ease;
}

.model-card:hover .model-card__button,
.model-card:focus-within .model-card__button {
  color: #faf9f7;
  background: #3d5467;
  border-color: #3d5467;
  transform: translateX(4px);
  box-shadow: 0 16px 32px rgba(61, 84, 103, 0.25);
}

@media (max-width: 900px) {
  .models-hero {
    min-height: 640px;
  }

  .models-hero__image {
    object-position: 62% center;
  }

  .models-hero__inner {
    width: calc(100% - 48px);
    align-items: center;
    padding: 108px 0 48px;
  }

  .models-hero__content {
    width: min(100%, 500px);
  }

  .models-hero h1 {
    font-size: clamp(3.15rem, 8vw, 4.4rem);
  }

  .models-collection-links {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .models-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 760px) {
  .models-hero {
    min-height: 580px;
    background: #b8a78f;
  }

  .models-hero::before {
    z-index: 0;
    background:
      linear-gradient(180deg, rgba(7, 12, 14, 0.62) 0%, rgba(7, 12, 14, 0.46) 72px, rgba(7, 12, 14, 0) 116px),
      linear-gradient(180deg, rgba(231, 219, 204, 0) 68px, rgba(231, 219, 204, 0.64) 122px, rgba(231, 219, 204, 0.5) 43%, rgba(231, 219, 204, 0.1) 59%, rgba(231, 219, 204, 0) 70%);
  }

  .models-hero::after {
    position: absolute;
    top: 31%;
    right: 0;
    bottom: -8%;
    left: 0;
    z-index: -1;
    content: "";
    background: url("/media/modely-hero.webp") no-repeat 79% center / auto 100%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.24) 14%, #000 31%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.24) 14%, #000 31%);
    pointer-events: none;
  }

  .models-hero__image {
    z-index: -2;
    object-position: 14% center;
    transform: none;
  }

  .models-hero__inner {
    width: calc(100% - 38px);
    z-index: 1;
    align-items: flex-start;
    padding: 100px 0 26px;
  }

  .models-hero__content {
    width: min(100%, 330px);
    transform: none;
  }

  .models-hero__eyebrow {
    margin-bottom: 14px;
    font-size: 0.66rem;
  }

  .models-hero h1 {
    max-width: 8.8ch;
    font-size: clamp(2.55rem, 10.5vw, 3.45rem);
    line-height: 0.98;
  }

  .models-hero__accent {
    width: 34px;
    margin: 17px 0 13px;
  }

  .models-hero__lead {
    max-width: 300px;
    font-size: clamp(0.9rem, 3.8vw, 1rem);
    line-height: 1.42;
  }

  .models-hero__cta {
    min-height: 50px;
    margin-top: 18px;
    gap: 14px;
    padding: 0 20px;
    font-size: 0.9rem;
  }

  @keyframes models-hero-arrive {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (max-width: 560px) {
  .models-hero::after {
    top: 34%;
    right: -4%;
    bottom: -7%;
    background-position: 80% center;
  }

  .models-catalog__inner {
    padding-right: 14px;
    padding-left: 14px;
  }

  .models-collection-links {
    gap: 10px;
    margin-bottom: 44px;
  }

  .models-collection-link {
    min-height: 228px;
    padding: 22px;
  }

  .models-collection-link__eyebrow {
    margin-bottom: 9px;
  }

  .models-collection-link__title {
    font-size: 3rem;
  }

  .models-collection-link__copy {
    max-width: 300px;
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.42;
  }

  .models-collection-link__action {
    margin-top: 20px;
    font-size: 0.86rem;
  }

  .models-collection-link__arrow {
    width: 40px;
    height: 40px;
    right: 22px;
    bottom: 22px;
  }

  .models-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .model-card__media {
    aspect-ratio: 3 / 4;
  }

  .model-card__body {
    min-height: 148px;
  }

  .model-card__teaser {
    min-height: auto;
  }

}

@media (max-width: 380px) {
  .models-hero {
    min-height: 560px;
  }

  .models-hero__inner {
    width: calc(100% - 30px);
    padding-top: 88px;
  }

  .models-hero__eyebrow {
    margin-bottom: 10px;
    font-size: 0.61rem;
  }

  .models-hero h1 {
    font-size: 2.25rem;
    line-height: 0.96;
  }

  .models-hero__accent {
    margin-top: 11px;
    margin-bottom: 9px;
  }

  .models-hero__lead {
    max-width: 270px;
    font-size: 0.84rem;
    line-height: 1.34;
  }

  .models-hero__cta {
    min-height: 45px;
    margin-top: 12px;
    padding-inline: 17px;
    font-size: 0.84rem;
  }

  .models-collection-link {
    min-height: 204px;
    padding: 18px;
  }

  .models-collection-link__copy {
    display: none;
  }

  .models-collection-link__arrow {
    width: 36px;
    height: 36px;
    right: 18px;
    bottom: 18px;
  }

  .model-card__teaser {
    gap: 8px;
    font-size: 0.8rem;
  }

  .model-card__teaser::before {
    width: 14px;
    flex-basis: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .models-hero__content {
    animation: none;
  }

  .models-hero__cta,
  .models-hero__cta svg {
    transition-duration: 0.01ms;
  }
}
