@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&family=Montserrat:ital,wght@0,300;0,400;1,400&display=swap");

@font-face {
  font-family: "Ladoga";
  src: url("fonts/Ladoga-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Базовые цвета */
  --cream: #f5f5f3;
  --dark: #111111;
  --text-secondary: #bdb5ae;
  --text-tertiary: #d8d3cd;

  /* Герой / светлый текст на тёмном фото и на блоках --dark */
  --hero-text: rgba(245, 245, 243, 0.92);
  --hero-muted: rgba(245, 245, 243, 0.72);
  --hero-soft: rgba(245, 245, 243, 0.45);
  --hero-nav: rgba(245, 245, 243, 0.82);
  --hero-fill-subtle: rgba(245, 245, 243, 0.08);

  --bg: var(--cream);
  --fg: var(--dark);
  --hero-fg: var(--cream);

  /* Полупрозрачный тёмный из --dark (фото, затемнение) */
  --shade-50: color-mix(in srgb, var(--dark) 50%, transparent);
  --shade-35: color-mix(in srgb, var(--dark) 35%, transparent);
  --shade-15: color-mix(in srgb, var(--dark) 15%, transparent);

  --font-serif: "Cormorant Garamond", serif;
  --font-sans: "Montserrat", sans-serif;
  --header-h: 4.25rem;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--hero-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-nav {
  font-family: var(--font-sans);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--hero-nav);
}

.site-header.is-on-light .logo {
  color: var(--dark);
}

.font-serif {
  font-family: var(--font-serif);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: max(1.25rem, env(safe-area-inset-top, 0px));
  padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  padding-bottom: 1.25rem;
  padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
  min-height: var(--header-h);
  color: var(--hero-text);
  transition: color 0.25s ease, background 0.25s ease;
}

.site-header.is-on-light {
  color: var(--dark);
}

.site-header.is-on-light .icon-btn:hover {
  opacity: 0.65;
}

.site-header__logo {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header.is-on-light .site-header__actions {
  color: var(--dark);
}

.site-header:not(.is-on-light) .site-header__actions {
  color: var(--hero-nav);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.packaging-section__hero--mobile,
.packaging-section__caption--mobile {
  display: none;
}

.packaging-section__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.icon-btn {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  opacity: 0.95;
  transition: opacity 0.15s ease;
}

.icon-btn:hover {
  opacity: 0.7;
}

/* Главный экран: editorial fullscreen hero */
.home-hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  background: #cfc7c2;
  overflow: hidden;
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero__image {
  max-width: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(207, 199, 194, 0.08);
  pointer-events: none;
}

.home-hero__logo {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 32%;
  transform: translate(calc(-50% + 10px), -50%);
  margin: 0;
  text-align: center;
  font-family: "Times New Roman", "Ladoga", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(36px, 2.8vw, 48px);
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1;
  color: rgba(17, 17, 17, 0.9);
}

.home-hero__captions {
  position: absolute;
  left: 11.5%;
  right: 11.5%;
  bottom: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  column-gap: 1rem;
  z-index: 4;
}

.home-hero__cta {
  position: relative;
  justify-self: center;
  align-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 250px;
  height: 44px;
  padding: 0 26px;
  box-sizing: border-box;
  border: 1px solid #1c1c1c;
  background: #1c1c1c;
  color: rgba(215, 211, 205, 0.94);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translate(10px, -14px);
  transition:
    background 320ms ease,
    color 320ms ease,
    border-color 320ms ease,
    transform 320ms ease;
}

.home-hero__cta:hover {
  background: #111111;
  color: #e8e4df;
  border-color: #111111;
  transform: translate(10px, -16px);
}

.home-hero__caption {
  margin: 0;
  max-width: 220px;
  font-family: "Courier New", monospace;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  font-weight: 400;
  color: rgba(17, 17, 17, 0.68);
}

.home-hero__caption:nth-child(1) {
  justify-self: start;
  text-align: left;
}

.home-hero__caption:nth-child(3) {
  justify-self: end;
  text-align: right;
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  main > section,
  .catalog__inner,
  .brand-typography-section,
  .packaging-section,
  .quote,
  .site-footer {
    max-width: 100%;
    box-sizing: border-box;
  }

  h1,
  h2,
  h3,
  .catalog__title,
  .packaging-section__title,
  .product-card__name,
  .site-footer__logo {
    overflow-wrap: anywhere;
    word-wrap: break-word;
  }

  .site-header,
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 90;
    padding-top: max(24px, env(safe-area-inset-top, 0px));
    padding-right: max(28px, env(safe-area-inset-right, 0px));
    padding-bottom: 24px;
    padding-left: max(28px, env(safe-area-inset-left, 0px));
    background: transparent;
  }

  body:has(#hero.home-hero) .site-header,
  body:has(#hero.home-hero) .header {
    position: absolute;
    z-index: 20;
    background: transparent !important;
  }

  .site-header__logo.logo,
  .site-header__logo,
  .logo,
  .site-logo,
  .header__logo {
    font-size: 22px;
    letter-spacing: 0.1em;
    max-width: none;
    overflow: visible;
    white-space: nowrap;
  }

  .home-hero {
    position: relative;
    height: 720px;
    min-height: 720px;
    overflow: hidden;
    background-color: #dcd8d3 !important;
    background-image: url("images/necklace-hero-mobile.png?v=1") !important;
    background-repeat: no-repeat !important;
    background-size: 100% auto !important;
    background-position: center -36px !important;
  }

  .home-hero::before,
  .home-hero::after {
    display: none !important;
    content: none !important;
  }

  .home-hero__image,
  .home-hero__image img,
  .home-hero__media,
  .home-hero__media img,
  .home-hero__media--desktop-only,
  .home-hero__media--desktop-only *,
  .home-hero picture,
  .home-hero picture img,
  .home-hero > img {
    display: none !important;
  }

  .home-hero__inner,
  .home-hero__content,
  .home-hero__overlay {
    background: transparent !important;
  }

  .home-hero__logo,
  .home-hero__center-logo,
  .hero-center-logo {
    position: absolute;
    top: 47%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(28px, 7.5vw, 32px);
    letter-spacing: 0.12em;
    line-height: 1;
    z-index: 4;
    pointer-events: none;
    text-shadow: none;
  }

  .home-hero__captions {
    position: absolute;
    left: max(34px, env(safe-area-inset-left, 0px));
    right: max(34px, env(safe-area-inset-right, 0px));
    top: 0;
    bottom: 0;
    z-index: 4;
    pointer-events: none;
    background: transparent !important;
  }

  .home-hero__caption {
    position: absolute;
    bottom: max(54px, env(safe-area-inset-bottom, 0px));
    display: block;
    font-size: 11px;
    line-height: 1.35;
    color: rgba(17, 17, 17, 0.68);
    max-width: min(200px, 42vw);
    background: transparent !important;
  }

  .home-hero__caption:nth-child(1) {
    left: 0;
    text-align: left;
  }

  .home-hero__caption:nth-child(3) {
    right: 0;
    text-align: right;
  }

  .home-hero__cta {
    position: absolute;
    left: 50%;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    min-width: min(250px, calc(100% - 68px));
    width: min(250px, calc(100% - 68px));
    max-width: calc(100% - 68px);
    height: 44px;
    padding: 0 20px;
    font-size: 10px;
    letter-spacing: 0.18em;
    z-index: 5;
    box-sizing: border-box;
    pointer-events: auto;
  }

  .home-hero__cta:hover {
    transform: translateX(-50%) translateY(-2px);
  }

  .brand-typography-section {
    min-height: auto;
    padding: 100px 24px;
    background: #e9e6e2;
  }

  .brand-typography-section__grid {
    grid-template-columns: 1fr;
    gap: 48px;
    transform: none;
  }

  .brand-typography-section__text {
    font-size: 15px;
    line-height: 1.25;
    text-align: left;
    max-width: 100%;
  }

  .brand-typography-section__text--left,
  .brand-typography-section__text--center,
  .brand-typography-section__text--right {
    text-align: left;
    max-width: 100%;
    justify-self: start;
    transform: none;
  }

  .catalog__inner {
    padding: 28px 24px 32px;
  }

  .catalog__eyebrow {
    margin-bottom: 0.5rem;
  }

  .catalog__title {
    font-size: clamp(2rem, 8vw, 2.75rem);
    line-height: 1.05;
    margin: 0.2rem 0 1.25rem;
  }

  .catalog__inner .text-link--center {
    margin-top: 1.25rem;
  }

  .product-grid,
  .products-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 14px;
    row-gap: 24px;
    gap: 24px 14px;
    max-width: 100%;
    align-items: stretch;
  }

  .product-card {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    height: 100%;
    grid-template-rows: 200px minmax(0, 1fr);
    row-gap: 10px;
  }

  .product-card__media,
  .product-media {
    height: 200px;
    width: 100%;
    max-width: 100%;
  }

  .product-card__img,
  .product-card img {
    max-width: 90%;
    max-height: 170px;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .product-card--old-chrysolite .product-card__img {
    transform: scale(0.62);
  }

  .product-card--old-phalanx .product-card__img {
    transform: scale(0.62);
  }

  .product-card__meta {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    max-width: 100%;
  }

  .product-card__name,
  .product-title,
  .product-card h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    line-height: 1.08;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
  }

  .product-card__cat {
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin-bottom: 8px;
  }

  .product-card__price,
  .product-price {
    font-size: 14px;
    font-weight: 300;
  }

  .product-card__add {
    width: 100%;
    max-width: 100%;
    min-height: 2.25rem;
    margin-top: auto;
    padding: 0 6px;
    font-size: 7px;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }

  .quote {
    padding: clamp(2rem, 10vw, 3rem) 24px;
  }

  .quote__text {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    line-height: 1.12;
    max-width: 100%;
  }

  .site-footer {
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
  }

  .site-footer__logo {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    line-height: 1.05;
  }

  .cart-drawer__panel {
    width: min(100%, 24rem);
  }
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--ghost {
  border: 1px solid var(--hero-text);
  color: var(--hero-text);
  background: transparent;
}

.btn--ghost:hover {
  background: var(--hero-fill-subtle);
}

/* Типографический бренд-блок */
.brand-typography-section {
  min-height: 100vh;
  background: #f8f7f4;
  position: relative;
  padding: 80px 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-typography-section__grid {
  width: min(100%, 820px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 0.65fr;
  column-gap: 74px;
  align-items: start;
  transform: translateY(18px);
}

.brand-typography-section__text {
  margin: 0;
  font-family: "Courier New", "SmithyXT-Faded", monospace;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: 0.015em;
  color: #111111;
}

.brand-typography-section__text--left {
  text-align: justify;
  max-width: 300px;
}

.brand-typography-section__text--center {
  text-align: center;
  max-width: 430px;
  justify-self: center;
}

.brand-typography-section__text--right {
  text-align: center;
  font-size: 13px;
  line-height: 1.25;
  justify-self: end;
  transform: translateY(158px);
}

.about {
  background: #f8f7f4;
  color: #111111;
  padding: 160px 56px 170px;
}

@media (max-width: 899px) {
  .about {
    padding: 96px 24px;
  }
}

.about__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(56px, 7vw, 104px);
  align-items: start;
}

@media (max-width: 899px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

.about__lead {
  min-width: 0;
}

.about__label {
  margin: 0 0 42px;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  font-weight: 400;
  color: rgba(17, 17, 17, 0.34);
}

.about__title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(56px, 5.2vw, 92px);
  line-height: 0.98;
  font-weight: 400;
  letter-spacing: -0.035em;
  color: #111111;
}

@media (max-width: 899px) {
  .about__title {
    font-size: 54px;
  }
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 1.75rem;
}

.section-title--dark {
  color: var(--fg);
}

.about__copy {
  display: flex;
  flex-direction: column;
  gap: 1.35em;
  max-width: 720px;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(20px, 1.75vw, 28px);
  line-height: 1.72;
  letter-spacing: 0.025em;
  color: rgba(17, 17, 17, 0.56);
  margin: 0;
  min-width: 0;
}

@media (max-width: 899px) {
  .about__copy {
    font-size: 18px;
  }
}

.about__copy p {
  margin: 0;
}

.text-link {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  display: inline-block;
  color: var(--fg);
}

.text-link--underline {
  padding-bottom: 0.35rem;
  border-bottom: 1px solid currentColor;
}

.text-link--center {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2.75rem;
}

.text-link--light {
  color: var(--hero-text);
}

.catalog-page {
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  min-height: 100vh;
  background: #f9f8f6;
}

.catalog-page .catalog__inner {
  padding-top: 48px;
}

.catalog-page .catalog__back {
  display: inline-block;
  margin-top: 72px;
}

.catalog {
  background: #f9f8f6;
  color: #111111;
}

.catalog__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 90px 64px 150px;
}

@media (min-width: 769px) and (max-width: 899px) {
  .catalog__inner {
    padding: 64px 24px 110px;
  }
}

.catalog__eyebrow {
  color: rgba(17, 17, 17, 0.42);
}

.catalog__title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  font-weight: 500;
  margin: 0.35rem 0 3rem;
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  row-gap: 84px;
}

@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 120px;
    row-gap: 120px;
    align-items: start;
  }
}

@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 72px;
    row-gap: 120px;
    align-items: start;
  }
}

.product-card {
  display: grid;
  grid-template-rows: 360px auto;
  row-gap: 42px;
  min-height: 620px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  outline: none;
}

@media (max-width: 899px) {
  .product-card {
    min-height: auto;
    grid-template-rows: 300px auto;
    row-gap: 42px;
  }
}

.product-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 360px;
  margin: 0;
  padding: 0;
  background: radial-gradient(
    ellipse 82% 68% at 50% 44%,
    #ffffff 0%,
    #fcfbf9 38%,
    #f9f8f6 72%,
    #f5f3f0 100%
  ) !important;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

@media (max-width: 899px) {
  .product-card__media {
    height: 300px;
  }
}

.product-card__img,
.product-card video {
  width: auto;
  height: auto;
  max-width: 76%;
  max-height: 300px;
  object-fit: contain;
  display: block;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  transition:
    transform 800ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 400ms ease;
}

.product-card__img {
  filter: drop-shadow(0 18px 22px rgba(17, 17, 17, 0.06));
}

.product-card--old-chrysolite .product-card__img {
  transform: scale(0.62);
  transform-origin: center center;
}

.product-card--old-phalanx .product-card__img {
  transform: scale(0.62);
  transform-origin: center center;
}

.product-card video {
  mix-blend-mode: multiply;
  filter: none;
}

@media (max-width: 899px) {
  .product-card__img,
  .product-card video {
    max-width: 82%;
    max-height: 250px;
  }

  .product-card--old-chrysolite .product-card__img {
    transform: scale(0.62);
  }

  .product-card--old-phalanx .product-card__img {
    transform: scale(0.62);
  }
}

.product-card__media:hover .product-card__img,
.product-card__media:focus-visible .product-card__img,
.product-card__media:hover video,
.product-card__media:focus-visible video {
  transform: scale(1.035);
}

.product-card--old-chrysolite .product-card__media:hover .product-card__img,
.product-card--old-chrysolite .product-card__media:focus-visible .product-card__img {
  transform: scale(0.642);
}

.product-card--old-phalanx .product-card__media:hover .product-card__img,
.product-card--old-phalanx .product-card__media:focus-visible .product-card__img {
  transform: scale(0.642);
}

.product-card__media:focus-visible {
  outline: 1px solid rgba(17, 17, 17, 0.18);
  outline-offset: 8px;
}

.product-card__meta {
  max-width: 420px;
  margin: 0;
  align-self: start;
  text-align: left;
}

.product-card__name {
  margin: 0 0 22px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(26px, 2.35vw, 38px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #111111;
  overflow-wrap: anywhere;
}

@media (min-width: 769px) and (max-width: 899px) {
  .product-card__name {
    font-size: 28px;
  }
}

.product-card__name a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.product-card__name a:hover {
  opacity: 0.7;
}

.product-card__cat {
  margin: 0 0 18px;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.38);
}

.product-card__price {
  margin: 0;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 19px;
  line-height: 1;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #111111;
}

.product-card__add {
  margin-top: 1.35rem;
  width: fit-content;
  min-height: 2.5rem;
  padding: 0 1.15rem;
  border: 1px solid rgba(17, 17, 17, 0.32);
  background: transparent;
  color: rgba(17, 17, 17, 0.76);
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.product-card__add:hover {
  background: #111111;
  color: #f8f7f4;
  border-color: #111111;
}

.product-card__add--added {
  background: transparent;
  color: #111111;
  border-color: #111111;
}

@media (min-width: 769px) and (max-width: 899px) {
  .product-card__price {
    font-size: 17px;
  }
}

/* Каталог mobile — после базовых стилей карточки */
@media (max-width: 768px) {
  .product-card__name,
  .product-card h3 {
    font-size: 22px;
    line-height: 1.08;
  }

  .product-card__cat {
    font-size: 9px;
    letter-spacing: 0.2em;
  }

  .product-card__price {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .product-card__name,
  .product-card h3 {
    font-size: 20px;
  }

  .product-card__cat {
    font-size: 8px;
    letter-spacing: 0.18em;
  }

  .product-card__price {
    font-size: 13px;
  }
}

/* Упаковка */
.packaging-section {
  position: relative;
  background: #c8c0ba;
  padding: 130px 48px 90px;
  color: #111111;
}

.packaging-section__top {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  margin-top: -34px;
  margin-bottom: 86px;
}

.packaging-section__heading {
  display: block;
}

.packaging-section__label {
  position: absolute;
  top: 36px;
  left: 48px;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1;
  font-weight: 300;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.42);
}

.packaging-section__text {
  max-width: 1120px;
  margin: 26px 0 0;
  font-family: var(--font-sans);
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.28;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: rgba(17, 17, 17, 0.66);
}

.packaging-section__gallery.packaging-carousel {
  position: relative;
  margin-top: 0;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.packaging-carousel__viewport {
  overflow: hidden;
  height: 620px;
  outline: none;
}

@media (max-width: 1023px) {
  .packaging-carousel__viewport {
    height: min(520px, 58vh);
  }
}

.packaging-carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .packaging-carousel__track {
    transition-duration: 0.01ms;
  }
}

.packaging-carousel__slide {
  flex: 0 0 auto;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.packaging-section__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.packaging-carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(17, 17, 17, 0.42);
  cursor: pointer;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.packaging-carousel__btn:hover {
  color: rgba(17, 17, 17, 0.78);
}

.packaging-carousel__btn:focus-visible {
  outline: 1px solid rgba(17, 17, 17, 0.35);
  outline-offset: 3px;
}

.packaging-carousel__btn--prev {
  left: 2px;
}

.packaging-carousel__btn--next {
  right: 2px;
}

.packaging-carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 0;
}

.packaging-carousel__dot {
  width: 7px;
  height: 7px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, 0.38);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.packaging-carousel__dot--active {
  background: #111111;
  border-color: #111111;
}

.packaging-carousel__dot:focus-visible {
  outline: 1px solid rgba(17, 17, 17, 0.45);
  outline-offset: 2px;
}

.quote {
  background: var(--fg);
  color: var(--hero-text);
  text-align: center;
  padding: clamp(3.5rem, 12vw, 6rem) 1.5rem;
}

.quote__text {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 4vw, 1.95rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  max-width: 32rem;
  margin: 0 auto 2rem;
  quotes: none;
}

.quote__brand {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--hero-muted);
}

.site-footer {
  background: var(--fg);
  color: var(--hero-text);
  padding-top: clamp(3rem, 8vw, 4.25rem);
  padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  padding-bottom: max(2.25rem, env(safe-area-inset-bottom, 0px));
  padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 780px) {
  .site-footer__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.site-footer__logo {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--hero-text);
}

.site-footer__tag {
  font-size: 0.85rem;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--hero-muted);
}

.site-footer__tag + .site-footer__tag {
  margin-top: 0.2rem;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem 3rem;
}

.footer-col__title {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  color: var(--hero-soft);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--hero-text);
}

.footer-col a:hover {
  color: var(--hero-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__rule {
  border: none;
  border-top: 1px solid color-mix(in srgb, var(--cream) 22%, transparent);
  margin: 2.5rem auto 1.75rem;
  max-width: 72rem;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 2rem;
  justify-content: space-between;
  max-width: 72rem;
  margin: 0 auto;
  font-size: 0.78rem;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--hero-soft);
}

.site-footer--compact {
  padding-top: 2rem;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-footer__legal a {
  color: var(--hero-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__legal a:hover {
  color: var(--hero-text);
}

.menu-overlay {
  position: fixed;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  background: var(--fg);
  color: var(--hero-text);
  overflow: auto;
  padding-top: 1rem;
  padding-right: max(1.75rem, env(safe-area-inset-right, 0px));
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom, 0px));
  padding-left: max(1.75rem, env(safe-area-inset-left, 0px));
}

.menu-overlay[hidden] {
  display: none;
}

body.is-menu-open .site-header,
body.is-menu-open .header {
  position: fixed !important;
  z-index: 95 !important;
}

.menu-overlay__panel {
  max-width: 28rem;
  margin: 0 auto;
  position: relative;
}

.menu-overlay__close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  color: var(--hero-text);
}

body.is-menu-open .site-header.is-on-light ~ .menu-overlay .menu-overlay__close {
  color: var(--dark);
}

.menu-overlay__lead {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--hero-text);
  margin-bottom: 0.35rem;
}

.menu-overlay__sub {
  font-size: 0.95rem;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--hero-muted);
  margin-bottom: 2.75rem;
}

.menu-overlay__nav {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.menu-col__title {
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  font-family: var(--font-sans);
  color: var(--hero-soft);
  margin-bottom: 1rem;
  font-weight: 400;
}

.menu-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--hero-text);
}

.menu-col a:hover {
  opacity: 0.7;
}

.site-header--detail {
  position: fixed;
  z-index: 90;
  background: rgba(249, 248, 246, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--dark);
}

.site-header--detail .site-header__actions,
.site-header--detail .site-header__logo,
.site-header--detail .logo {
  color: var(--dark);
}

.site-header--detail .icon-btn {
  color: var(--dark);
  opacity: 1;
}

.icon-btn--cart {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: 0.15rem;
  right: 0.1rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: #111111;
  color: #f5f5f3;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.1rem;
  text-align: center;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.cart-drawer[hidden] {
  display: none;
}

.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.42);
}

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 24rem);
  height: 100%;
  background: #f8f7f4;
  color: #111111;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 0.75rem) 1.5rem max(1.5rem, env(safe-area-inset-bottom, 0px));
  box-shadow: -12px 0 40px rgba(17, 17, 17, 0.12);
}

.cart-drawer__close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top, 0px));
  right: 1.25rem;
}

.cart-drawer__title {
  margin: 0 0 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.cart-drawer__list {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-right: 0.25rem;
}

.cart-drawer__empty {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: rgba(17, 17, 17, 0.55);
}

.cart-drawer__footer {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(17, 17, 17, 0.12);
}

.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.55);
}

.cart-drawer__total strong {
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #111111;
}

.cart-drawer__checkout {
  width: 100%;
  min-height: 3rem;
  border: 1px solid #111111;
  background: #111111;
  color: #f5f5f3;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.cart-drawer__checkout:hover {
  background: transparent;
  color: #111111;
}

.cart-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 0.85rem;
  align-items: start;
}

.cart-item__media {
  display: block;
  background: rgba(200, 192, 186, 0.35);
}

.cart-item__media img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.cart-item__name {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.2;
  color: #111111;
}

.cart-item__price {
  margin: 0 0 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(17, 17, 17, 0.72);
}

.cart-item__qty {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(17, 17, 17, 0.18);
}

.cart-item__qty-btn {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 1rem;
  line-height: 1;
  color: #111111;
}

.cart-item__qty-value {
  min-width: 1rem;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.85rem;
}

.cart-item__remove {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 1.25rem;
  line-height: 1;
  color: rgba(17, 17, 17, 0.45);
}

.cart-item__remove:hover {
  color: #111111;
}

/* Узкие телефоны */
@media (max-width: 480px) {
  .site-header,
  .header {
    padding-top: max(20px, env(safe-area-inset-top, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
    padding-bottom: 20px;
    padding-left: max(24px, env(safe-area-inset-left, 0px));
  }

  .site-header__logo.logo,
  .site-header__logo {
    font-size: clamp(18px, 4.8vw, 22px);
  }

  .home-hero {
    height: min(720px, 100svh);
    min-height: min(720px, 100svh);
  }

  .home-hero__logo,
  .home-hero__center-logo,
  .hero-center-logo {
    font-size: clamp(28px, 8vw, 34px);
  }

  .home-hero__cta {
    min-width: min(220px, calc(100% - 48px));
    width: min(220px, calc(100% - 48px));
  }

  .home-hero__caption {
    font-size: 10px;
    max-width: min(160px, 40vw);
  }

  .brand-typography-section {
    padding: 80px 24px;
  }

  .catalog__inner {
    padding: 24px 24px 28px;
  }

  .catalog__title {
    margin-bottom: 1rem;
  }

  .catalog__inner .text-link--center {
    margin-top: 1rem;
  }

  .product-grid {
    column-gap: 12px;
    row-gap: 20px;
    gap: 20px 12px;
    align-items: stretch;
  }

  .product-card {
    height: 100%;
    grid-template-rows: 180px minmax(0, 1fr);
    row-gap: 8px;
  }

  .product-card__media {
    height: 180px;
  }

  .product-card__img {
    max-width: 92%;
    max-height: 150px;
  }

  .product-card--old-chrysolite .product-card__img {
    transform: scale(0.62);
  }

  .product-card--old-phalanx .product-card__img {
    transform: scale(0.62);
  }

  .product-card__name {
    font-size: 20px;
    line-height: 1.08;
    margin-bottom: 8px;
  }

  .product-card__price {
    font-size: 13px;
  }

  .product-card__add {
    font-size: 6px;
    letter-spacing: 0.1em;
    min-height: 2.1rem;
    margin-top: auto;
    white-space: nowrap;
  }

  .quote {
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-overlay {
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
  }
}

/* Упаковка mobile — после базовых стилей секции */
@media (max-width: 768px) {
  .packaging-section {
    background: #f8f7f4;
    padding: 28px 20px 32px;
    color: var(--dark);
  }

  .packaging-section__top {
    display: block;
    margin: 0 0 12px;
    max-width: none;
  }

  .packaging-section__heading {
    display: block;
  }

  .packaging-section__label {
    position: static;
    top: auto;
    left: auto;
    margin: 0 0 0.75rem;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    text-align: center;
    color: rgba(17, 17, 17, 0.42);
  }

  .packaging-section__text--desktop {
    display: none !important;
  }

  .packaging-section__gallery--desktop {
    display: none !important;
  }

  .packaging-section__hero--mobile {
    display: block;
    margin: 0 0 16px;
    padding: 0;
  }

  .packaging-section__hero-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 40%;
    display: block;
    border-radius: 0;
    filter: none;
  }

  .packaging-section__caption--mobile {
    display: block;
    margin: 0;
    padding: 0 12px;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.5;
    font-weight: 300;
    font-style: normal;
    letter-spacing: 0.01em;
    text-align: center;
    color: rgba(17, 17, 17, 0.66);
  }
}

@media (min-width: 769px) {
  .packaging-section__hero--mobile,
  .packaging-section__caption--mobile {
    display: none !important;
  }
}
