/* ============================================================
   Meadow Shore — style.css
   Complete stylesheet for the Meadow Shore clothing brand
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES / DESIGN SYSTEM
   ============================================================ */

:root {
  /* Colors */
  --color-ivory: #f8f5ef;
  --color-beige: #ede8df;
  --color-sand: #d4c9b5;
  --color-stone: #a89f91;
  --color-terracotta: #b5614a;
  --color-terracotta-light: #c97a62;
  --color-olive: #6b7c4f;
  --color-moss: #4a5e3a;
  --color-brown: #3d2e22;
  --color-brown-dark: #2a1f16;
  --color-forest: #2d3d25;
  --color-text: #2a1f16;
  --color-text-muted: #6b5e52;
  --color-text-light: #9a8c7e;
  --color-border: rgba(61, 46, 34, 0.12);
  --color-bg: #f8f5ef;
  --color-white: #ffffff;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;

  /* Layout */
  --container-max: 1280px;
  --container-pad: 2rem;

  /* Border radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.4s ease;
  --transition-slow: 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Header height */
  --header-h: 72px;
}

/* ============================================================
   2. CSS RESET / BASE
   ============================================================ */

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

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

@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body {
  animation: pageFadeIn 0.4s ease;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul,
ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

h4 {
  font-size: 1.2rem;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.02em;
}

p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.richtext p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.richtext p:last-child {
  margin-bottom: 0;
}

.richtext strong {
  font-weight: 500;
  color: var(--color-text);
}

.richtext em {
  font-style: italic;
}

.richtext h2,
.richtext h3,
.richtext h4 {
  font-weight: 500;
}

.richtext a {
  color: var(--color-terracotta);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.richtext ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.richtext li {
  margin-bottom: 0.4rem;
  color: var(--color-text-muted);
}

blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.4;
  color: var(--color-text);
}

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */

.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

/* ============================================================
   5. BUTTON STYLES
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-base),
              color var(--transition-base),
              border-color var(--transition-base),
              transform var(--transition-fast),
              box-shadow var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background-color: var(--color-terracotta);
  color: var(--color-ivory);
  border: 1px solid var(--color-terracotta);
}

.btn--primary:hover {
  background-color: var(--color-terracotta-light);
  border-color: var(--color-terracotta-light);
  box-shadow: 0 4px 20px rgba(181, 97, 74, 0.35);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-brown);
  border: 1px solid var(--color-brown);
}

.btn--outline:hover {
  background-color: var(--color-brown);
  color: var(--color-ivory);
}


/* ============================================================
   6. LABEL STYLES
   ============================================================ */

.label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: 0.75rem;
}

/* ============================================================
   7. SITE HEADER
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: linear-gradient(
    to bottom,
    rgba(52, 63, 50, 0.92) 0%,
    rgba(52, 63, 50, 0.55) 40%,
    rgba(52, 63, 50, 0.25) 100%
  );
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background-color 0.4s ease,
              box-shadow 0.4s ease;
}

/* Шапка на внутренних страницах (не главная) */
body:not(.home-page) .site-header {
  background: rgba(255, 252, 248, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body:not(.home-page) .header__nav-link {
  color: #3a3128;
}

body:not(.home-page) .header__nav-link:hover {
  color: #b86b4b;
}

body:not(.home-page) .header__brand {
  color: var(--color-terracotta);
}

body:not(.home-page) .header__right .header__nav-link {
  color: #3a3128;
}

body:not(.home-page) .header__right .header__nav-link:hover {
  color: #b86b4b;
}

body:not(.home-page) .header__burger span {
  background-color: var(--color-terracotta);
}

.site-header.is-scrolled {
  background: var(--color-ivory);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 1px 0 var(--color-border);
}

.site-header.is-hidden {
  /* хедер всегда закреплён вверху */
}

.header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-md);
}

.header__brand {
  font-family: var(--font-serif);
  font-size: 2.06rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-terracotta);
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
  transition: color 0.4s ease, opacity 0.4s ease;
}

.header__brand:hover {
  opacity: 0.8;
}

.site-header.is-scrolled .header__brand {
  color: var(--color-terracotta);
}

/* Ссылки при скролле */
.site-header.is-scrolled .header__nav-link {
  color: var(--color-text-muted);
}
.site-header.is-scrolled .header__nav-link:hover {
  color: var(--color-text);
}
.site-header.is-scrolled .header__nav-link::after {
  background-color: var(--color-terracotta);
}

.header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-lg);
}


/* Burger при скролле */
.site-header.is-scrolled .header__burger span {
  background-color: var(--color-text);
}

.header__nav {
  display: none;
}

/* Мобайл: бренд явно в центральную колонку, правый блок скрыт */
.header__brand {
  grid-column: 2;
}

.header__right {
  display: none;
}

.header__burger {
  grid-column: 3;
  justify-self: end;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__nav-link {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(248, 245, 239, 0.9);
  text-decoration: none;
  position: relative;
  transition: color var(--transition-fast);
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-sand);
  transition: width var(--transition-base);
}

.header__nav-link:hover {
  color: var(--color-ivory);
}

.header__nav-link:hover::after {
  width: 100%;
}

/* Burger button */
.header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--color-ivory);
  transition: transform var(--transition-base),
              opacity var(--transition-fast),
              width var(--transition-base);
  transform-origin: center;
}

.header__burger.is-active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.header__burger.is-active span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.header__burger.is-active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============================================================
   8. MOBILE MENU
   ============================================================ */

.header__mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-ivory);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: var(--space-lg) var(--container-pad);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  overflow-y: auto;
}

.header__mobile-menu.is-open {
  transform: translateX(0);
}

.header__mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.header__mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: -0.01em;
  transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--color-terracotta);
}

/* ============================================================
   9. HERO SECTION
   ============================================================ */

.hero {
  min-height: 94svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

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

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(20, 30, 15, 0.55);
}

.hero__center {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + var(--space-md)) var(--container-pad) var(--space-md);
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.hero__bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 var(--container-pad) var(--space-xs);
  width: 100%;
}

.hero__eyebrow {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-terracotta);
  margin-bottom: var(--space-sm);
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--color-ivory);
  margin-bottom: var(--space-md);
  max-width: 780px;
}

.hero__sub {
  font-size: 1.0625rem;
  font-weight: 300;
  color: rgba(248, 245, 239, 0.75);
  margin-bottom: var(--space-md);
  line-height: 1.7;
  text-align: center;
  width: 100%;
}

.hero__scroll-hint {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-bottom: var(--space-xs);
  color: rgba(248, 245, 239, 0.5);
}

.hero__scroll-hint span {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-sans);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-stone), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.6); opacity: 0.4; }
}

/* ============================================================
   10. ABOUT SECTION
   ============================================================ */

.about {
  padding: var(--space-xl) 0;
  background-color: var(--color-ivory);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.about__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  margin-bottom: var(--space-md);
  color: var(--color-text);
  line-height: 1.2;
}

.about__body {
  margin-bottom: var(--space-md);
}

.about__details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: var(--space-md);
}

.about__details span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(181, 97, 74, 0.7);
  white-space: nowrap;
}

/* мобиле: · в начале каждой строки */
.about__details span::before {
  content: '·';
  margin-right: 0.6rem;
  color: rgba(181, 97, 74, 0.4);
  font-size: 1rem;
  letter-spacing: 0;
}

.about__visual {
  position: relative;
  min-height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.about__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.about__image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: linear-gradient(135deg, var(--color-beige) 0%, var(--color-sand) 100%);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.placeholder-texture {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(168, 159, 145, 0.1) 20px,
    rgba(168, 159, 145, 0.1) 21px
  );
}

/* ============================================================
   11. COLLECTIONS SECTION
   ============================================================ */

.collections {
  padding: var(--space-xl) 0;
  background-color: var(--color-beige);
}

.collections__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

/* ============================================================
   12. COLLECTION CARD STYLES
   ============================================================ */

.collection-card {
  background-color: var(--color-ivory);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(42, 31, 22, 0.1);
}

.collection-card__image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--color-sand);
}

.collection-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.collection-card:hover .collection-card__image {
  transform: scale(1.04);
}

.collection-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--color-sand) 0%, var(--color-stone) 100%);
}

.collection-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.collection-card__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.2;
}

.collection-card__desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.collection-card__link {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-terracotta);
  margin-top: var(--space-xs);
  transition: gap var(--transition-fast), color var(--transition-fast);
  gap: 0.25rem;
}

.collection-card__link:hover {
  color: var(--color-brown);
  gap: 0.5rem;
}

/* ============================================================
   13. MARQUEE / BANNING STROKA STYLES
   ============================================================ */

.marquee-wrap {
  padding: 0.65rem 0;
  background-color: var(--color-brown);
  overflow: hidden;
}

.marquee {
  overflow: hidden;
  position: relative;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  align-items: center;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(var(--marquee-move, -50%)); }
}

.marquee__item {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 300;
  color: var(--color-sand);
  white-space: nowrap;
  padding: 0 1.5rem;
  letter-spacing: 0.02em;
}

.marquee__sep {
  flex-shrink: 0;
  width: 30px;
  height: 60px;
  object-fit: contain;
  opacity: 0.9;
  margin: 0 1.5rem;
}

.marquee-wrap:hover .marquee__track {
  animation-play-state: paused;
}

/* ============================================================
   14. FEATURES SECTION
   ============================================================ */

.features {
  padding: var(--space-xl) 0;
  background-color: #4a5c38;
  position: relative;
  overflow: hidden;
}


.features .section-title {
  color: #f5ede0;
}

.features__header {
  margin-bottom: 4rem;
}

.features__title-line {
  width: 100px;
  height: 1px;
  background-color: rgba(245, 237, 224, 0.55);
  margin: var(--space-sm) auto;
}

.features__subtitle {
  font-size: 1rem;
  color: rgba(245, 237, 224, 0.75);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 860px;
  margin: 0 auto;
}

.feature-item {
  padding: var(--space-md);
  border: 1px solid rgba(245, 237, 224, 0.28);
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.feature-item__title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
  color: #f5ede0;
  margin-bottom: var(--space-xs);
  max-width: 22ch;
}

.feature-item__desc {
  font-size: 0.9375rem;
  color: rgba(245, 237, 224, 0.7);
  line-height: 1.7;
  max-width: 28ch;
}

/* ============================================================
   15. FABRIC SECTION
   ============================================================ */

.fabric {
  padding: var(--space-xl) 0;
  background-color: var(--color-beige);
}

.fabric__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.fabric__visual {
  position: relative;
  min-height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.fabric__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.fabric__image-placeholder {
  width: 100%;
  min-height: 400px;
  background: linear-gradient(135deg, var(--color-moss) 0%, var(--color-forest) 100%);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.fabric__texture-overlay {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 15px,
    rgba(255, 255, 255, 0.03) 15px,
    rgba(255, 255, 255, 0.03) 16px
  );
}

.fabric__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fabric__title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.fabric__body {
  margin-bottom: var(--space-lg);
}

.fabric__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.fabric__stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fabric__stat-value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-text);
  line-height: 1;
}

.fabric__stat-label {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-light);
  letter-spacing: 0.03em;
  line-height: 1.4;
}

/* ============================================================
   16. PRODUCTS GRID STYLES
   ============================================================ */

.featured-products {
  padding: var(--space-xl) 0;
  background-color: var(--color-ivory);
}

.products__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

/* ============================================================
   17. PRODUCT CARD STYLES
   ============================================================ */

.product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(42, 31, 22, 0.1);
}

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: var(--color-beige);
  display: block;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card__image {
  transform: scale(1.05);
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.product-card__image-wrap:hover .product-card__img {
  transform: scale(1.05);
}

.product-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--color-beige) 0%, var(--color-sand) 100%);
}

.product-card__tag {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ivory);
  background-color: var(--color-terracotta);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
}

.product-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}

.product-card__collection {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-stone);
}

.product-card__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.2;
}

.product-card__name a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.product-card__name a:hover {
  color: var(--color-terracotta);
}

.product-card__price {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
}

.product-card__cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-terracotta);
  margin-top: auto;
  padding-top: var(--space-xs);
  transition: color var(--transition-fast);
}

.product-card__cta:hover {
  color: var(--color-brown);
}

/* ============================================================
   18. PHILOSOPHY SECTION
   ============================================================ */

.philosophy {
  padding: var(--space-2xl) 0;
  background-color: var(--color-forest);
}

.philosophy__inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.philosophy__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--color-ivory);
  margin-bottom: var(--space-md);
}

.philosophy__attr {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-stone);
  margin-bottom: var(--space-md);
}

.philosophy__body {
  max-width: 600px;
  margin: 0 auto;
}

.philosophy__body p {
  color: var(--color-sand);
  line-height: 1.8;
}

/* ============================================================
   19. CTA SECTION
   ============================================================ */

.cta-section {
  padding: var(--space-xl) 0;
  background-color: var(--color-beige);
}

.cta-section__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-section__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.cta-section__sub {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

/* ============================================================
   20. FOOTER STYLES
   ============================================================ */

.site-footer {
  background-color: var(--color-brown-dark);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(248, 245, 239, 0.08);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xs);
}

.footer__brand-img {
  width: 160px;
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

.footer__brand a:hover .footer__brand-img {
  opacity: 1;
}

.footer__brand-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9375rem;
  color: rgba(248, 245, 239, 0.75);
}

.footer__nav-title {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(248, 245, 239, 0.75);
  margin-bottom: var(--space-sm);
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__nav a {
  font-size: 0.9375rem;
  color: rgba(248, 245, 239, 0.75);
  transition: color var(--transition-fast);
}

.footer__nav a:hover {
  color: var(--color-ivory);
}

.footer__email {
  display: inline-block;
  font-size: 0.9375rem;
  color: rgba(248, 245, 239, 0.75);
  margin-bottom: var(--space-xs);
  transition: color var(--transition-fast);
}

.footer__email:hover {
  color: var(--color-ivory);
}

.footer__contact-note {
  font-size: 0.8125rem;
  color: rgba(248, 245, 239, 0.75);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.footer__social {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer__social-link {
  font-size: 0.875rem;
  color: var(--color-sand);
  transition: color var(--transition-fast);
}

.footer__social-link:hover {
  color: var(--color-ivory);
}

.footer__social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: var(--space-sm);
}

.footer__social-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(248, 245, 239, 0.75);
  transition: color var(--transition-fast);
}

.footer__social-link:hover {
  color: var(--color-ivory);
}

.footer__bottom {
  display: flex;
  align-items: center;
}

.footer__copy {
  font-size: 0.8125rem;
  color: rgba(248, 245, 239, 0.4);
}

/* ============================================================
   21. PAGE HERO STYLES (INNER PAGES)
   ============================================================ */

/* Delivery page */
.delivery-hero {
  padding-top: calc(var(--header-h) + 7rem);
  padding-bottom: 7rem;
  background-color: #5a6b57;
  position: relative;
  overflow: hidden;
}

.delivery-hero__pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.decor-item {
  position: absolute;
  width: 140px;
  height: auto;
  opacity: 0.18;
  filter: brightness(10);
}

.delivery-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--color-ivory);
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.delivery-hero__sub p {
  color: rgba(248, 245, 239, 0.8);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.delivery-content {
  padding: var(--space-xl) 0 var(--space-2xl);
  background-color: var(--color-beige);
}

.delivery-content__inner {
  max-width: 720px;
}

.delivery-content__block {
  margin-bottom: var(--space-lg);
}

.delivery-image {
  width: 100%;
  line-height: 0;
}

.delivery-image__img {
  width: 100%;
  height: 60vh;
  object-fit: cover;
  display: block;
}

.page-hero {
  padding-top: calc(var(--header-h) + var(--space-xl));
  padding-bottom: var(--space-xl);
  background-color: var(--color-beige);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-border);
}

.page-hero__inner {
  max-width: 960px;
}

.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.page-hero__sub {
  max-width: 540px;
}

.page-hero__sub p {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* ============================================================
   22. ABOUT PAGE STYLES
   ============================================================ */

.about-story {
  padding: var(--space-xl) 0;
  background-color: var(--color-ivory);
}

.about-story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.about-story__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.2;
}

.about-story__body {
  max-width: 680px;
}

.about-values {
  padding: var(--space-xl) 0;
  background-color: var(--color-beige);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.value-item {
  padding: var(--space-md);
  background-color: var(--color-ivory);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-terracotta);
}

.value-item__title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.value-item p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================================
   23. CATALOG PAGE STYLES
   ============================================================ */

.catalog-section {
  padding: var(--space-xl) 0;
  background-color: var(--color-ivory);
}

.catalog-empty {
  text-align: center;
  padding: var(--space-2xl) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.catalog-empty__text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================================
   24. PRODUCT DETAIL PAGE STYLES
   ============================================================ */

.product-detail {
  padding-top: calc(var(--header-h) + var(--space-xl));
  padding-bottom: var(--space-xl);
  background-color: var(--color-ivory);
}

.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.product-detail__gallery {
  position: relative;
}

.product-detail__main-image {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-beige);
}

.product-detail__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-beige) 0%, var(--color-sand) 100%);
}

.product-gallery-placeholder span {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--color-stone);
}

.product-detail__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.product-detail__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.product-detail__short-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.product-detail__price {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--color-text);
}

.product-detail__status {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.product-status--available {
  background-color: rgba(107, 124, 79, 0.12);
  color: var(--color-olive);
}

.product-status--coming_soon {
  background-color: rgba(181, 97, 74, 0.1);
  color: var(--color-terracotta);
}

.product-status--sold_out {
  background-color: rgba(168, 159, 145, 0.15);
  color: var(--color-stone);
}

.product-detail__cta {
  margin-top: var(--space-xs);
  align-self: flex-start;
}

.product-detail__body {
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.product-detail__fabric,
.product-detail__care {
  padding: var(--space-md);
  background-color: var(--color-beige);
  border-radius: var(--radius-md);
}

.product-detail__fabric h4,
.product-detail__care h4 {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-stone);
  margin-bottom: var(--space-xs);
}

.product-detail__fabric p,
.product-detail__care p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================================
   25. CONTACT PAGE STYLES
   ============================================================ */

.contact-section {
  padding: var(--space-xl) 0;
  background-color: var(--color-ivory);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.contact-info__title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.contact-info__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.contact-info__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.contact-info__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-info__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-stone);
}

.contact-info__value {
  font-size: 1rem;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.contact-info__value:hover {
  color: var(--color-terracotta);
}

.contact-info__note {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.contact-fallback {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: flex-start;
}

.contact-fallback p {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.contact-thank-you {
  padding: var(--space-xl) 0;
  background-color: var(--color-beige);
  text-align: center;
}

/* ============================================================
   26. FORM STYLES
   ============================================================ */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-text);
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(181, 97, 74, 0.12);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-text-light);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

.form-error {
  font-size: 0.8125rem;
  color: #c0392b;
  margin-top: 0.25rem;
}

/* Django form widget overrides */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="url"],
.contact-form input[type="number"],
.contact-form input[type="tel"] {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

/* ============================================================
   27. REVEAL ANIMATION STYLES
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--stagger.is-visible {
  transition-delay: calc(var(--stagger, 0) * 0.12s);
}

.reveal--delay.is-visible {
  transition-delay: 0.2s;
}

/* ============================================================
   28. RESPONSIVE MEDIA QUERIES — 768px
   ============================================================ */

@media (min-width: 768px) {

  /* Header nav */
  .header__nav {
    display: flex;
  }

  .header__burger {
    display: none;
  }

  /* Планшет: убираем мобильные переопределения */
  .header__brand {
    grid-column: auto;
  }

  .header__right {
    display: flex;
    gap: var(--space-sm);
  }

  .header__burger {
    grid-column: auto;
    justify-self: auto;
  }

  /* Планшет: уменьшаем отступы чтобы меню не вылезало за экран */
  .header__inner {
    gap: var(--space-xs);
  }

  /* Hero */
  .hero__inner {
    flex-direction: row;
  }

  .hero__content {
    max-width: 50%;
    padding-right: var(--space-lg);
  }

  .hero__image-wrap {
    position: relative;
    width: 50%;
    height: auto;
    flex-shrink: 0;
  }

  /* About */
  .about__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* About details: одна строка на десктопе */
  .about__details {
    flex-direction: row;
    align-items: center;
    gap: 0;
    flex-wrap: nowrap;
  }

  .about__details span {
    white-space: nowrap;
    padding: 0 1rem;
  }

  .about__details span:first-child {
    padding-left: 0;
  }

  /* убираем · перед первым, между остальными — через + span */
  .about__details span::before {
    content: none;
  }

  .about__details span + span::before {
    content: '·';
    margin-right: 1rem;
    color: rgba(181, 97, 74, 0.4);
    font-size: 1rem;
    letter-spacing: 0;
  }

  /* Collections */
  .collections__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Features */
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Fabric */
  .fabric__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  /* Products */
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr 2fr 1fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  /* About story */
  .about-story__grid {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }

  /* Values */
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Product detail */
  .product-detail__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* ============================================================
   29. RESPONSIVE MEDIA QUERIES — 1024px
   ============================================================ */

@media (min-width: 1024px) {

  :root {
    --header-h: 80px;
  }

  /* Десктоп: восстанавливаем нормальные отступы */
  .header__inner {
    gap: var(--space-md);
  }

  .header__right {
    gap: var(--space-lg);
  }

  /* Hero full height layout */
  .hero {
    min-height: 94svh;
  }

  .hero__content {
    padding: var(--space-2xl) var(--container-pad);
  }

  /* Collections 3 columns */
  .collections__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Features 3 columns */
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Products 3 columns */
  .products__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Values 4 columns */
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   30. RESPONSIVE MEDIA QUERIES — 1280px
   ============================================================ */

@media (min-width: 1280px) {

  :root {
    --container-pad: 3rem;
  }

  /* Hero even bigger text */
  .hero__headline {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
  }

  /* Products 4 columns on large screens */
  .products__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Fabric section balanced */
  .fabric__grid {
    grid-template-columns: 5fr 4fr;
    gap: var(--space-xl);
  }

  /* About section balanced */
  .about__grid {
    grid-template-columns: 5fr 4fr;
    gap: var(--space-xl);
  }
}

/* ============================================================
   31. UTILITY & MISC
   ============================================================ */

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 3px;
}

/* Selection styles */
::selection {
  background-color: var(--color-terracotta);
  color: var(--color-ivory);
}

/* Scrollbar styling (Webkit) */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-beige);
}

::-webkit-scrollbar-thumb {
  background: var(--color-stone);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-brown);
}

/* Image aspect ratio helpers */
.aspect-square { aspect-ratio: 1; }
.aspect-portrait { aspect-ratio: 4 / 5; }
.aspect-landscape { aspect-ratio: 16 / 9; }

/* ============================================================
   32. PRINT STYLES
   ============================================================ */

@media print {
  .site-header,
  .site-footer,
  .btn,
  .marquee-wrap {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }
}
