/* Container & Global Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

@media (max-width: 900px) {
  .container {
    padding-inline: 16px;
  }
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}

.section-title {
  font-size: clamp(30px, 3.6vw, 54px);
  margin: 0;
}

.section-all-link {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-bottom: 2px;
}

.section-all-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--ink);
  transition: width 0.25s var(--ease);
}

@media (hover: hover) {
  .section-all-link:hover::after {
    width: 100%;
  }
}

/* Nav Header */
.header {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
  view-transition-name: site-header;
}

.header--hidden {
  transform: translateY(-140%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  height: 76px;
  padding: 0 28px;
  border-radius: var(--radius-full);
  transition: height 0.3s var(--ease), padding 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.header--scrolled .nav {
  height: 64px;
  padding: 0 22px;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 #FFFFFF;
}

.nav__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 10;
  height: 100%;
}

.nav__logo {
  height: 52px;
  width: auto;
  aspect-ratio: 3.29 / 1;
  display: block;
  object-fit: contain;
  object-position: left;
  transform: translateY(12%);
  transition: height 0.3s var(--ease), transform 0.3s var(--ease);
}

.header--scrolled .nav__logo {
  height: 44px;
}

.nav__links {
  position: relative;
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.nav__ind {
  position: absolute;
  top: 50%;
  left: 0;
  height: 40px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.06);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: transform 0.45s var(--ease), width 0.45s var(--ease), opacity 0.25s var(--ease);
  z-index: 0;
}

.nav__link {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
  position: relative;
  z-index: 1;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

@media (hover: hover) {
  .nav__link:hover {
    color: var(--ink);
  }
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.nav__btn-cart {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.88rem;
  font-family: var(--font-ui);
  gap: 8px;
}

.cart-icon-svg {
  display: none;
  width: 20px;
  height: 20px;
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  line-height: 1;
}

@media (max-width: 768px) {
  .nav {
    height: 60px;
    padding: 0 14px;
  }

  .nav__logo {
    height: 36px;
  }

  .header--scrolled .nav__logo {
    height: 34px;
  }

  .nav__btn-cart {
    padding: 0 14px;
    min-height: 48px;
  }

  .cart-text-label {
    display: none;
  }

  .cart-icon-svg {
    display: inline-block;
  }
}

/* Hero Section */
.hero {
  min-height: min(100dvh, 880px);
  padding-top: 128px;
  padding-bottom: 32px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  position: relative;
}

.hero__left {
  display: flex;
  flex-direction: column;
}

.hero__title {
  margin: 0;
}

.hero__title .t-serif {
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1.05;
  color: var(--ink);
}

.hero__title strong {
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 1.05;
  color: var(--ink);
  margin-top: 4px;
}

.hero__subtitle {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 480px;
  text-wrap: balance;
  margin: 24px 0 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Inline facts row */
.hero__facts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 48px;
  gap: 16px;
  list-style: none;
  padding: 0;
}

.hero__fact-item {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
}

.hero__fact-divider {
  width: 1px;
  height: 16px;
  background-color: var(--line);
  display: inline-block;
}

/* Hero Right: Card */
.hero__right {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero__card {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: calc(100dvh - 176px);
  width: 100%;
  border-radius: 40px;
  overflow: visible;
  background: linear-gradient(160deg, #EFEFED, #C9C9C4);
}

.hero__clip {
  position: absolute;
  inset: 0;
  border-radius: 40px;
  overflow: hidden;
}

.hero__ken-burns {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #EFEFED, #C9C9C4);
  animation: kenBurns 20s ease-in-out infinite alternate;
  transform-origin: center center;
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

/* Floating Overlapping Cards */
.hero__float-card {
  position: absolute;
  z-index: 10;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
}

.hero__price-card {
  left: -56px;
  top: 16%;
  padding: 18px 24px;
  animation: floatPrice 6s ease-in-out infinite;
}

.hero__price-label {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.hero__price-val {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.15;
  color: var(--ink);
  margin: 2px 0;
}

.hero__price-caption {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
}

.hero__loc-card {
  right: -32px;
  bottom: 12%;
  padding: 16px 22px;
  animation: floatLoc 6s ease-in-out infinite -3s;
}

.hero__loc-label {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.hero__loc-name {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin: 2px 0;
}

.hero__loc-caption {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
}

@keyframes floatPrice {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes floatLoc {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 96px;
    padding-bottom: 32px;
  }

  .hero__card {
    max-height: none;
    aspect-ratio: 4 / 5;
    width: 100%;
  }

  .hero__price-card {
    left: 12px;
    top: 12px;
    padding: 14px 18px;
    animation: none !important;
  }

  .hero__loc-card {
    right: 12px;
    bottom: 12px;
    padding: 14px 18px;
    animation: none !important;
  }
}

/* Ribbon Section */
.ribbon-wrap {
  padding-block: var(--section-pad);
}

.ribbon {
  height: 48px;
  border-radius: 0;
  background-color: #111111;
  color: #FFFFFF;
  overflow: hidden;
  margin-top: 0;
  display: flex;
  align-items: center;
}

.ribbon__track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: ribbonScroll 60s linear infinite;
}

@media (hover: hover) {
  .ribbon:hover .ribbon__track {
    animation-play-state: paused;
  }
}

.ribbon__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ribbon__item {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  white-space: nowrap;
  line-height: 1;
}

.ribbon__sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  margin: 0 28px;
  flex-shrink: 0;
}

@keyframes ribbonScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ribbon__track {
    animation: none !important;
  }
}

/* Featured Section */
.featured {
  padding-block: var(--section-pad);
  background: var(--bg);
}

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

.pcard {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}

.pcard__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  background-color: #EFEFED;
}

.pcard__img {
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  transition: transform 0.6s var(--ease);
}

@media (hover: hover) {
  .pcard:hover .pcard__img {
    transform: scale(1.04);
  }

  .pcard:hover .pcard__quickview {
    transform: translateY(0);
    opacity: 1;
  }
}

.pcard__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  z-index: 2;
}

.pcard__quickview {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  text-align: center;
  padding: 12px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pcard__meta {
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pcard__name {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  margin: 0;
}

.pcard__material {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
}

.pcard__bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 4px;
}

.pcard__price {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}

.pcard__sizes {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .featured__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .featured__grid::-webkit-scrollbar {
    display: none;
  }

  .pcard {
    flex: 0 0 72vw;
    scroll-snap-align: start;
  }
}

/* Collections Section (Bento Grid) */
.collections {
  padding-block: var(--section-pad);
  background: var(--bg);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 320px 320px;
  gap: 20px;
}

.bento-card {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  display: block;
}

.bento-card--1 {
  grid-column: 1 / 7;
  grid-row: 1 / 3;
  background: linear-gradient(160deg, #EFEFED, #CFCFCB);
}

.bento-card--2 {
  grid-column: 7 / 13;
  grid-row: 1 / 2;
  background: linear-gradient(160deg, #E8E8E5, #C4C4BF);
}

.bento-card--3 {
  grid-column: 7 / 13;
  grid-row: 2 / 3;
  background: linear-gradient(160deg, #F1F1EF, #D4D4D0);
}

.bento-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s var(--ease);
}

@media (hover: hover) {
  .bento-card:hover .bento-card__bg {
    transform: scale(1.05);
  }

  .bento-card:hover .bento-card__panel {
    transform: translateY(-6px);
  }

  .bento-card:hover .bento-card__arrow {
    background-color: var(--cta);
    color: #FFFFFF;
  }
}

.bento-card__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
}

.bento-card__panel {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 5;
  border-radius: 22px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.58);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.4s var(--ease);
}

.bento-card__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bento-card__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
}

.bento-card--1 .bento-card__name {
  font-size: 44px;
}

.bento-card__materials {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
}

.bento-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bento-card__price {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  white-space: nowrap;
}

.bento-card__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-family: var(--font-ui);
  color: var(--ink);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 16px;
  }

  .bento-card {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    height: 360px;
  }

  .bento-card--1 .bento-card__name {
    font-size: 34px;
  }
}

/* Why Section */
.why-section {
  padding-block: var(--section-pad);
}

.why-card {
  background-color: var(--surface);
  border-radius: 40px;
  padding: clamp(28px, 4vw, 56px);
}

.why-header {
  margin-bottom: 40px;
}

.why-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: stretch;
}

.why-col {
  display: flex;
  flex-direction: column;
  padding: 0 32px;
}

.why-col:first-child {
  padding-left: 0;
}

.why-col:last-child {
  padding-right: 0;
}

.why-col:not(:last-child) {
  border-right: 1px solid var(--line);
}

.why-num {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.why-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.why-text {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 900px) {
  .why-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .why-col {
    padding: 0 0 28px 0;
    border-right: none !important;
  }

  .why-col:not(:last-child) {
    border-bottom: 1px solid var(--line);
  }

  .why-col:last-child {
    padding-bottom: 0;
  }
}

/* Contacts Section */
.contacts-section {
  padding-block: var(--section-pad);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: stretch;
}

.contacts-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.contacts-address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contacts-address-main {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
}

.contacts-address-sub {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 16px;
  color: var(--muted);
}

.contacts-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contacts-link-item {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
}

@media (hover: hover) {
  .contacts-link-item:hover {
    color: var(--accent);
  }
}

.contacts-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.contacts-right {
  display: flex;
  align-items: center;
}

.map {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(160deg, #EFEFED, #CDCDC8);
}

.map-card {
  color: inherit;
  text-decoration: none;
  position: absolute;
  left: 16px;
  bottom: 16px;
  border-radius: 22px;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 5;
}

.map-card-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}

.map-card-desc {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* 404 Page */
.page-404 {
  min-height: calc(100dvh - 300px);
  padding-top: 140px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}

.page-404__num {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 120px);
  color: var(--ink);
  margin: 0;
  line-height: 1;
}

.page-404__text {
  font-family: var(--font-ui);
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* Footer Section */
.footer {
  background-color: #111111;
  color: #FFFFFF;
  padding: 72px 0 36px;
  position: relative;
  z-index: 10;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__col-brand {
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
}

.footer__logo {
  height: 44px;
  width: auto;
  max-width: none;
  display: block;
  margin: 0;
}

.footer__tagline {
  font-family: var(--font-ui);
  font-size: 14px;
  color: rgba(255, 255, 255, .62);
}

.footer__col-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.footer__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer__link::after {
  content: "";
  position: absolute;
  inset: -12px 0;
}

@media (hover: hover) {
  .footer__link:hover {
    color: #FFFFFF;
  }
}


.footer__address-main {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 16px;
  color: #FFFFFF;
}

.footer__address-sub {
  font-family: var(--font-ui);
  font-size: 14px;
  color: rgba(255, 255, 255, .62);
}

.footer__bottom {
  padding-top: 28px;
  text-align: center;
}

.footer__copyright {
  font-family: var(--font-ui);
  font-size: 13px;
  color: rgba(255, 255, 255, .62);
}


@media (prefers-reduced-motion: reduce) {
  .hero__price-card, .hero__loc-card, .hero__ken-burns, .bento-card__bg {
    animation: none !important;
    transition: none !important;
  }
}

.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, #ECECEA 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.4s linear infinite;
}
.skeleton--line { height: 14px; border-radius: 7px; margin-top: 12px; }
.skeleton--short { width: 50%; }
@keyframes skeleton { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
