/* Главная по макету (ширина макета 1440): белый фон, капитель Arsenal SC, блоки от края до края */
.home { background: #fff; color: #353535; }
.home main { font-family: "Arsenal SC", "DM Sans", sans-serif; }
.home main img { display: block; }
.h-title, .h-giant, .h-help h2, .h-hero h1 { font-family: "Arsenal SC", "DM Sans", sans-serif; font-weight: 400; }

/* Первый экран */
.h-hero { position: relative; height: clamp(520px, 55.6vw, 100vh); overflow: hidden; isolation: isolate; color: #fff; background: #4a4038; }
.h-hero-bg, .h-hero-bg img, .h-hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.h-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,16,12,.38) 0%, rgba(20,16,12,0) 22%, rgba(20,16,12,0) 62%, rgba(20,16,12,.55) 100%); }
.h-hero-link { position: absolute; inset: 0; z-index: 0; }
.h-hero-text { position: absolute; left: 16px; right: 16px; bottom: clamp(24px, 2.8vw, 42px); z-index: 1; text-align: center; pointer-events: none; }
.h-kicker { display: block; font-size: clamp(12px, .95vw, 14px); }
.h-hero h1 { font-size: clamp(18px, 1.5vw, 24px); margin: 6px 0 8px; line-height: 1.3; }
.h-underline { pointer-events: auto; font-size: clamp(11px, .85vw, 13px); border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Кружки */
.h-circles { padding: clamp(18px, 2vw, 30px) 0 clamp(16px, 2.4vw, 36px); }
.h-circles ul { display: flex; justify-content: center; gap: 15px; overflow-x: auto; scrollbar-width: none; padding: 0 16px; margin: 0; list-style: none; }
.h-circles li { flex: 0 0 auto; width: 112px; }
.h-circles a, .h-circle-off { display: flex; flex-direction: column; align-items: center; gap: 18px; font-size: 14px; }
.h-circle { width: 112px; height: 112px; border-radius: 50%; border: 1px solid #353535; padding: 6px; display: block; }
.h-circle::before { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; background: #d9d9d9; }
.h-circle img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; margin-top: -100%; position: relative; }
.h-circles a:hover .h-circle { border-width: 2px; padding: 5px; }

/* Огромные заголовки */
.h-giant { font-size: 11.4vw; line-height: 1; text-align: center; white-space: nowrap; text-transform: uppercase; color: #353535; margin: 0 0 clamp(8px, 1.4vw, 20px); }
.h-giant--ink { font-size: 10.1vw; color: #111; margin: clamp(32px, 4vw, 60px) 0 0; }

/* Почему Goldtex */
.h-why { padding-bottom: clamp(12px, 1.6vw, 23px); }
.h-why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0 20px; }
.h-why-card { position: relative; aspect-ratio: 331 / 400; border-radius: 28px; background: #d9d9d9; overflow: hidden; display: flex; align-items: flex-start; justify-content: center; padding: 22% 12px 0; text-align: center; }
.h-why-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h-why-card h3 { position: relative; font-family: inherit; font-weight: 400; font-size: clamp(15px, 2.3vw, 34px); line-height: 1.15; max-width: 12em; color: #111; }

/* Категории: шесть плиток вплотную */
.h-cats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.h-cat { position: relative; aspect-ratio: 480 / 396; overflow: hidden; background: #55483d; color: #fff; isolation: isolate; }
.h-cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .9s var(--ease); }
.h-cat:hover img { transform: scale(1.05); }
.h-cat::after { content: ""; position: absolute; inset: 55% 0 0; z-index: -1; background: linear-gradient(180deg, rgba(20,16,12,0), rgba(20,16,12,.5)); }
.h-cat span { position: absolute; left: 5%; right: 8%; bottom: 8%; font-family: "DM Sans", sans-serif; font-size: clamp(15px, 2.1vw, 30px); border-bottom: 1px solid rgba(255,255,255,.9); padding-bottom: 6px; line-height: 1.2; }

/* Новинки */
.h-title { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.15; color: #111; margin: 0; }
.h-title--center { text-align: center; }
.h-new .h-title { padding: clamp(18px, 2.2vw, 32px) 0; }
.h-new-grid { display: grid; grid-template-columns: 1fr 1fr; }
.h-new-item { position: relative; aspect-ratio: 720 / 694; overflow: hidden; color: #fff; }
.h-new-item img { width: 100%; height: 100%; object-fit: cover; }
.h-new-item span { position: absolute; left: 4%; bottom: 4%; font-size: clamp(22px, 2.6vw, 38px); text-shadow: 0 1px 10px rgba(0,0,0,.25); }

/* Список товаров + фото интерьера */
.h-split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.h-split[hidden] { display: none; }
.h-split-list { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(24px, 2.6vw, 40px) clamp(16px, 2.4vw, 36px); }
.h-split-list > .h-title { margin-bottom: clamp(24px, 3vw, 46px); }
.h-room { position: relative; width: 100%; }
.h-room img { width: 100%; height: 100%; object-fit: cover; }
.h-dot { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; }
.h-dot::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: h-pulse 2.4s infinite; }
@keyframes h-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.65); } 70% { box-shadow: 0 0 0 12px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
@media (prefers-reduced-motion: reduce) { .h-dot::after { animation: none; } }

.h-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 46px) clamp(10px, 2vw, 30px); }

/* Карточка товара в тёмной рамке */
.home .h-cards .p-card { display: flex; flex-direction: column; background: #353535; border: 3px solid #353535; border-radius: 14px; box-shadow: none; overflow: hidden; color: #fff; opacity: 1; transform: none; }
.home .h-cards .p-media { aspect-ratio: 1 / 1.1; border-radius: 11px; background: #e2dbd2; overflow: hidden; }
.home .h-cards .p-media img { width: 100%; height: 100%; object-fit: cover; }
.home .h-cards .p-badge, .home .h-cards .p-fav, .home .h-cards .p-rating, .home .h-cards .old { display: none; }
.home .h-cards .p-body { flex: 1; display: flex; flex-direction: column; gap: 1px; padding: 8px 9px 6px; }
.home .h-cards .p-collection { font-family: "DM Sans", sans-serif; font-size: 9px; letter-spacing: .04em; color: #d6d2cc; text-transform: uppercase; margin: 0; }
.home .h-cards .p-name { font-family: "Arsenal SC", sans-serif; font-size: 14px; line-height: 1.25; color: #fff; margin: 0; }
.home .h-cards .p-material { font-size: 10px; line-height: 1.3; color: #d6d2cc; margin: 0; }
.home .h-cards .p-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; padding: 2px 0 0; border: 0; }
.home .h-cards .p-price .now { font-family: "Arsenal SC", sans-serif; font-size: 18px; color: #fff; }
.home .h-cards .p-add { flex: 0 0 auto; width: 30px; height: 30px; margin: 0 -9px -6px 0; border: 0; border-radius: 12px 0 0 0; background: #fff; color: #353535; }
.home .h-cards .p-add svg { width: 12px; height: 12px; }

/* Для детей */
.h-list-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(24px, 3vw, 46px); }
.h-all { font-family: "DM Sans", sans-serif; font-size: 15px; white-space: nowrap; }
.h-carousel { position: relative; padding-right: 34px; }
.h-cards--scroll { grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * clamp(10px, 2vw, 30px)) / 3); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.h-cards--scroll .p-card { scroll-snap-align: start; }
.h-arrow { position: absolute; right: -6px; top: 50%; width: 40px; height: 64px; margin-top: -32px; background: none; border: 0; cursor: pointer; color: #111; }
.h-arrow svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.h-arrow[hidden] { display: none; }

/* Крупный баннер */
.h-banner img { width: 100%; height: auto; }

/* Своё фото баннера из админки: подписи поверх фото */
.h-banner-own { display: block; position: relative; color: #fff; }
.home .h-banner-own img { aspect-ratio: 1440 / 795; object-fit: cover; }
.h-banner-own::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, rgba(20,16,12,0), rgba(20,16,12,.65)); }
.h-banner-text { position: absolute; left: 12px; right: 12px; bottom: clamp(12px, 2vw, 30px); z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.h-banner-title { font-size: clamp(24px, 5.4vw, 78px); line-height: 1.1; }
.h-banner-sub { font-size: clamp(13px, 1.4vw, 20px); }
@media (max-width: 760px) { .home .h-banner-own img { aspect-ratio: 4 / 5; } }

/* Фото в карточке «Почему Goldtex»: подпись белая на затемнении */
.h-why-card.has-img::after { content: ""; position: absolute; inset: 0 0 45%; background: linear-gradient(180deg, rgba(20,16,12,.6), rgba(20,16,12,0)); }
.h-why-card.has-img h3 { color: #fff; z-index: 1; }

/* Философия */
.h-phil-grid { display: grid; grid-template-columns: 1fr 1fr; }
.h-phil-text { display: flex; align-items: center; justify-content: center; text-align: center; padding: 28px 20px; }
.h-phil-text p { font-size: clamp(16px, 1.85vw, 27px); line-height: 1.45; color: #111; }
.h-phil-pic img { width: 100%; height: 100%; aspect-ratio: 720 / 316; object-fit: cover; }

/* Консультант */
.h-help { text-align: center; padding: clamp(40px, 5vw, 72px) 16px clamp(56px, 6vw, 92px); }
.h-help h2 { font-size: clamp(22px, 2.7vw, 40px); line-height: 1.15; }
.h-help h2 span { display: block; font-size: clamp(36px, 5.1vw, 74px); line-height: 1.05; }
.h-help p { margin: clamp(22px, 2.6vw, 38px) 0; font-size: clamp(15px, 1.4vw, 20px); line-height: 1.35; }
.h-help-btn { display: inline-block; background: #353535; color: #fff; border-radius: 100px; padding: clamp(16px, 2.4vw, 36px) clamp(26px, 4vw, 58px); font-size: clamp(18px, 2.4vw, 35px); line-height: 1.2; transition: background .3s; }
.h-help-btn:hover { background: #111; }

/* Подвал по макету: графитовый, белый логотип */
.home .footer { background: #353535; margin-top: 0; }
.home .footer .brand-logo { filter: brightness(0) invert(1); }

@media (max-width: 1100px) {
  .h-split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .h-hero { height: min(86vh, 640px); }
  .h-circles ul { justify-content: flex-start; }
  .h-circles li, .h-circle { width: 84px; }
  .h-circle { height: 84px; padding: 4px; }
  .h-circles a, .h-circle-off { gap: 10px; font-size: 12px; }
  .h-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 8px; }
  .h-why-card { border-radius: 18px; }
  .h-cats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-new-grid, .h-phil-grid { grid-template-columns: 1fr; }
  .h-phil-grid .h-phil-pic:nth-child(2) { order: -1; }
  .h-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-cards--scroll { grid-template-columns: none; grid-auto-columns: calc((100% - 10px) / 2); }
}
