/* ================================================
   COMPONENTS — переиспользуемые блоки
   01 · SECTION HEAD
   02 · FEATURE
   03 · CATEGORY
   04 · PRODUCT CARD
   05 · NOTE CARD
   06 · MANIFESTO
   07 · PRINCIPLES
   08 · MATERIALS
   09 · PROCESS
   10 · NUMBERS
   ================================================ */

/* ============ 01 · SECTION HEAD ============ */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 44px;
}
.section-head h2 {
  margin-top: 12px;
}
.section-head h2 em {
  font-style: italic;
  color: var(--accent);
}
.section-note {
  font-size: 13px;
  color: var(--ink-2);
  text-align: right;
  line-height: 1.8;
  max-width: 280px;
}

/* ============ 02 · FEATURE ============ */
.feature {
  background: var(--paper);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.feature h3 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.feature p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ============ 03 · CATEGORY ============ */
.category {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--paper-2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: transform .3s;
}
.category:hover { transform: translateY(-4px); }
.category::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(38, 36, 31, .65) 0%, transparent 60%);
  z-index: 1;
}
.category img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.category:hover img { transform: scale(1.04); }
.category-content {
  position: relative;
  z-index: 2;
}
.category h3 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--paper);
  margin-bottom: 6px;
  font-weight: 400;
}
.category p {
  font-size: 12px;
  color: rgba(245, 243, 238, .85);
  font-family: var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ============ 04 · PRODUCT CARD ============ */
.product {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transition: background .3s;
}
.product:hover { background: #FAF8F4; }
.product-visual {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--paper-2);
  overflow: hidden;
}
.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.product:hover .product-visual img { transform: scale(1.04); }
.product-index {
  position: absolute;
  top: 18px;
  left: 22px;
  z-index: 2;
}
.product-body {
  padding: 18px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-body h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.01em;
}
.product-spec {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: .06em;
}
.product-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.price {
  font-size: 17px;
  font-weight: 500;
  white-space: nowrap;
}
.product-link {
  font-size: 12px;
  color: var(--accent-text);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap .25s;
}
.product-link:hover { gap: 12px; }

/* ============ JOURNAL NOTE ============ */
.note {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .25s;
}
.note:hover {
  border-color: var(--accent);
}
.note-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--paper-2);
}
.note-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.note-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.note-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.note-body p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  flex: 1;
}
.note-arrow {
  font-size: 20px;
  color: var(--accent);
  align-self: flex-start;
}

/* ============ 06 · MANIFESTO ============ */
.manifesto {
  padding-block: clamp(80px, 10vw, 140px);
  border-bottom: 1px solid var(--line);
}
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.manifesto-label {
  position: sticky;
  top: 120px;
  align-self: start;
}
.manifesto-label .mono {
  color: var(--accent-text);
  margin-bottom: 16px;
}
.manifesto-text {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.5;
  letter-spacing: -.01em;
  color: var(--ink);
}
.manifesto-text p + p { margin-top: 1.4em; }
.manifesto-text em {
  font-style: italic;
  color: var(--accent);
}
.manifesto-text .drop::first-letter {
  font-family: var(--serif);
  font-style: italic;
  font-size: 4.4em;
  line-height: .85;
  float: left;
  padding: 6px 12px 0 0;
  color: var(--accent);
  font-weight: 400;
}

/* ============ 07 · PRINCIPLES ============ */
.principles {
  padding-block: clamp(80px, 10vw, 140px);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.principle {
  background: var(--paper);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 320px;
}
.principle-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.principle h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.principle h3 em {
  font-style: italic;
  color: var(--accent);
}
.principle p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-top: auto;
}

/* ============ 08 · MATERIALS ============ */
.materials {
  padding-block: clamp(80px, 10vw, 140px);
  border-bottom: 1px solid var(--line);
}
.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.material {
  background: var(--paper);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .3s;
}
.material:hover { background: #FAF8F4; }
.material-swatch {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--paper-2);
  border: 1px solid var(--line);
  margin-bottom: 8px;
}
.material-swatch.brass {
  background: linear-gradient(135deg, #D4A85A 0%, #A8895C 100%);
}
.material-swatch.steel {
  background: linear-gradient(135deg, #4A4A4A 0%, #1A1A1A 100%);
}
.material-swatch.aluminum {
  background: linear-gradient(135deg, #C8C8C8 0%, #8A8A8A 100%);
}
.material-swatch.ash {
  background: linear-gradient(135deg, #E8DCC4 0%, #B8A888 100%);
}
.material h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.01em;
}
.material-spec {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.material p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ============ 09 · PROCESS ============ */
.process {
  padding-block: clamp(80px, 10vw, 140px);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.step {
  background: var(--paper);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 280px;
  position: relative;
}
.step-num {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
}
.step h3 {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.step p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-top: auto;
}
.step-time {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

/* ============ 10 · NUMBERS ============ */
.numbers {
  padding-block: clamp(80px, 10vw, 120px);
  border-bottom: 1px solid var(--line);
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.number {
  background: var(--paper);
  padding: 40px 32px;
  text-align: left;
}
.number-value {
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--accent);
  margin-bottom: 12px;
}
.number-value small {
  font-family: var(--sans);
  font-size: .4em;
  color: var(--ink-2);
  font-weight: 400;
  margin-left: 4px;
}
.number-label {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 500;
}
.number-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ============ АДАПТАЦИЯ (components) ============ */
@media (max-width: 1200px) {
  .principles-grid { grid-template-columns: 1fr; }
  .materials-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .manifesto-grid { grid-template-columns: 1fr; gap: 32px; }
  .manifesto-label { position: static; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .section-note { text-align: left; }
}
@media (max-width: 760px) {
  .materials-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: 1fr; }
}

/* ============ СЕКЦИИ-ОБЁРТКИ ============ */
.features {
  padding-block: clamp(64px, 7vw, 100px);
  border-top: 1px solid var(--line);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.categories {
  padding-block: clamp(64px, 7vw, 100px);
  border-top: 1px solid var(--line);
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.bestsellers {
  padding-block: clamp(64px, 7vw, 100px);
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.journal {
  padding-block: clamp(64px, 7vw, 100px);
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

/* ============ АДАПТАЦИЯ (секции) ============ */
@media (max-width: 1200px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .journal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .features-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
}
/* Статус "Нет в наличии" в каталоге */
.price-out {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-block;
  padding: 4px 0;
}

/* Если нужно, чтобы цена и статус были на одном уровне по размеру */
.price {
  font-family: var(--sans); /* или ваш основной шрифт для цен */
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
/* ============ FEATURED ============ */
.featured {
  padding-block: clamp(64px, 8vw, 100px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.featured .product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

/* Убираем zoom при наведении */
.featured .product:hover .product-visual img {
  transform: none;
}

@media (max-width: 1200px) {
  .featured .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1000px) {
  .featured .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .featured .product-grid { grid-template-columns: 1fr; }
}