/* Итоговая версия: шапка из «Журнала», арки из «Ателье», плёнка из «Noir», светлый фон */
.s { --bg: #F6F2EB; --surface: #EEE8DE; --fg: #2A1E18; --muted: #6F6256; --line: #DDD3C5; --accent: #2A1E18; --accent-fg: #F6F2EB; --sale: #9B2C1F;
  --ff-display: "Cormorant Garamond", Georgia, serif; --ff-hero: "Playfair Display", Georgia, serif; }
.s i { font-style: italic; }
.s .eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 18px; }
.s .sec-title { font-family: var(--ff-display); font-weight: 300; font-size: clamp(44px, 6vw, 88px); line-height: 1; }
.s .sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 44px; }
.s .sec-head .chips { max-width: 100%; }

/* ================= Кнопки =================
   Основная — «ярлык»: как вшивная бирка бренда, с вырезами по краям и строчкой внутри.
   Второстепенная — «строчка»: текст с пунктирной строчкой, которая «шьётся» при наведении. */
.s .btn { position: relative; isolation: isolate; min-height: 54px; padding: 0 38px; border: 0; border-radius: 0; background: var(--fg); color: var(--bg); font-size: 12px; font-weight: 500; letter-spacing: .18em;
  clip-path: polygon(0 0, 100% 0, 100% 36%, calc(100% - 8px) 50%, 100% 64%, 100% 100%, 0 100%, 0 64%, 8px 50%, 0 36%);
  transition: background .35s, letter-spacing .35s; }
.s .btn::before { content: ""; position: absolute; inset: 6px 14px; border: 1px dashed currentColor; opacity: .45; transition: inset .35s var(--ease), opacity .35s; pointer-events: none; }
.s .btn:hover { background: #4A3328; color: var(--bg); letter-spacing: .22em; }
.s .btn:hover::before { inset: 6px 10px; opacity: .9; }
.s .btn:active { transform: translateY(1px); }

.s .btn--ghost, .s .btn--light { background: none; color: var(--fg); clip-path: none; padding: 0 2px; min-height: 46px; gap: 10px; }
.s .btn--ghost::before, .s .btn--light::before { inset: auto 0 10px 0; height: 1px; border: 0; opacity: .7;
  background: repeating-linear-gradient(90deg, currentColor 0 7px, transparent 7px 11px); }
.s .btn--ghost::after, .s .btn--light::after { content: "→"; letter-spacing: 0; transition: transform .35s var(--ease); }
.s .btn--ghost:hover, .s .btn--light:hover { background: none; color: var(--fg); letter-spacing: .18em; }
.s .btn--light, .s .btn--light:hover { color: #F6F2EB; }
.s .btn--ghost:hover::before, .s .btn--light:hover::before { inset: auto 0 10px 0; opacity: 1; animation: sew .5s linear infinite; }
.s .btn--ghost:hover::after, .s .btn--light:hover::after { transform: translateX(5px); }
@keyframes sew { to { background-position: 11px 0; } }

/* Фильтры — подписи со строчкой у активного */
.s .chips { gap: 22px; }
.s .chip { border: 0; border-radius: 0; padding: 6px 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: none;
  background-image: repeating-linear-gradient(90deg, var(--fg) 0 5px, transparent 5px 8px); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: color .25s, background-size .45s var(--ease); }
.s .chip:hover, .s .chip.is-active { background: none; color: var(--fg);
  background-image: repeating-linear-gradient(90deg, var(--fg) 0 5px, transparent 5px 8px); background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%; }
.s .chip sup { color: inherit; opacity: .55; }

/* Размеры в карточке — маленькие бирки */
.s .size { border-style: dashed; }
.s .size.is-active { border-style: solid; }
.s .pm__wa { width: auto; justify-self: start; }
.s .pm__info { display: flex; flex-direction: column; }
.s .pm__info > * { flex: none; }

/* ================= Шапка ================= */
.head { position: fixed; inset: 0 0 auto; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; padding: 0 var(--pad); color: #F6F2EB; transition: background .4s, color .4s, box-shadow .4s; }
.head.is-scrolled { background: var(--bg); color: var(--fg); box-shadow: 0 1px 0 var(--line); }
.head__logo img { height: 50px; transition: filter .4s; }
.head.is-scrolled .head__logo img, .menu-open .head__logo img { filter: brightness(.17); }
.menu { display: flex; gap: 40px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.menu a { text-decoration: none; background: repeating-linear-gradient(90deg, currentColor 0 5px, transparent 5px 8px) 0 100% / 0 1px no-repeat; padding-bottom: 4px; transition: background-size .45s var(--ease); }
.menu a:hover { background-size: 100% 1px; }
.head__actions { display: flex; justify-content: flex-end; align-items: center; gap: 20px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.head__cart [data-cart-count] { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 5px; border-radius: 10px; background: var(--sale); color: #fff; font-size: 11px; letter-spacing: 0; }
.head__cart [data-cart-count][hidden] { display: none; }
.burger { display: none; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }

/* ================= Первый экран ================= */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; color: #F6F2EB; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28, 19, 14, .5), rgba(28, 19, 14, .12) 40%, rgba(28, 19, 14, .62)); }
.hero__title { position: absolute; left: var(--pad); right: var(--pad); bottom: 11vh; font-family: var(--ff-hero); font-weight: 400; font-size: clamp(76px, 17vw, 300px); line-height: .82; letter-spacing: -.03em; text-transform: uppercase; }
.hero__title span { display: block; }
.hero__title span:last-child { text-align: right; text-transform: none; }
.hero__note { position: absolute; left: var(--pad); top: 130px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; line-height: 1.9; }
.hero__down { position: absolute; right: var(--pad); bottom: 28px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.hero__motto { position: absolute; left: var(--pad); bottom: 24px; margin: 0; font-family: var(--ff-hero); font-style: italic; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: .01em; }

/* ================= Каталог: арки ================= */
.catalog { padding-top: 110px; padding-bottom: 130px; }
.s .grid { grid-template-columns: repeat(3, 1fr); gap: 56px clamp(16px, 3vw, 40px); }
.s .card__media { border-radius: 999px 999px 0 0; background: #FBF9F5; }
.s .card__name { font-family: var(--ff-display); font-size: 22px; line-height: 1.2; }
.s .card__info { padding-top: 16px; }
.s .badge { top: auto; bottom: 14px; left: 14px; }

/* ================= Новая коллекция: арки на тёплой подложке под тканой биркой ================= */
.newc { position: relative; background: #EDE5D8; padding: 110px 0 120px; }
.newc::after { content: ""; position: absolute; left: var(--pad); right: var(--pad); bottom: 0; height: 1px; background: repeating-linear-gradient(90deg, var(--fg) 0 6px, transparent 6px 11px); opacity: .5; }
.newc__head { text-align: center; margin-bottom: 56px; }
.newc__head p { color: var(--muted); max-width: 46ch; margin: 14px auto 0; }
.newc__label { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 28px; margin-bottom: 22px; position: relative; isolation: isolate; color: #F6F2EB; font: 600 13px var(--ff-display); letter-spacing: .3em; text-transform: uppercase; }
.newc__label::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 4px 4px, var(--fg) 3.6px, transparent 4px) 0 0 / 8px 8px space no-repeat,
    radial-gradient(circle at 4px 4px, var(--fg) 3.6px, transparent 4px) 0 100% / 8px 8px space no-repeat,
    radial-gradient(circle at 4px 4px, var(--fg) 3.6px, transparent 4px) 0 0 / 8px 8px no-repeat space,
    radial-gradient(circle at 4px 4px, var(--fg) 3.6px, transparent 4px) 100% 0 / 8px 8px no-repeat space,
    linear-gradient(var(--fg), var(--fg)) 50% 50% / calc(100% - 8px) calc(100% - 8px) no-repeat; }
.newc__label::after { content: ""; position: absolute; inset: 7px; border: 1px dashed rgba(246, 242, 235, .55); }
.newc .card__media { background: #E2D8C9; }
.s .badge--new { left: 50%; transform: translateX(-50%); padding: 5px 12px 4px; background: var(--bg); color: var(--fg); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; border: 1px dashed var(--fg); }

/* ================= Производство: плёнка ================= */
.film { background: #14110F; color: #ECE5DA; padding: 90px 0 0; }
.film__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px 40px; margin-bottom: 52px; }
.film__head h2 { font-family: var(--ff-display); font-weight: 400; font-size: clamp(44px, 6vw, 96px); line-height: 1; text-transform: uppercase; letter-spacing: .03em; }
.film__head p { margin: 0 0 10px; color: #A39A8E; max-width: 360px; }
.film__strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.film figure { position: relative; margin: 0; overflow: hidden; }
.film figure::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(10, 8, 6, .7)); pointer-events: none; }
.film video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.film__m { display: none; }
.film figcaption { position: absolute; z-index: 1; left: 18px; bottom: 16px; font-family: var(--ff-display); font-size: 26px; color: #F6F2EB; }

/* ================= Покупателям ================= */
.info { padding-top: 110px; padding-bottom: 110px; }
.info .sec-title { margin-bottom: 48px; }
.info__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); font-size: 14px; }
.info h3 { font-family: var(--ff-display); font-size: 28px; margin-bottom: 16px; }
.info__sizes { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--line); }

/* ================= Шоурум ================= */
.showroom { position: relative; min-height: 72vh; display: grid; place-items: center; color: #F6F2EB; text-align: center; overflow: hidden; }
.showroom > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: brightness(.55); }
.showroom__text { position: relative; max-width: 620px; padding: 80px var(--pad); }
.showroom .eyebrow { color: rgba(246, 242, 235, .75); }
.showroom h2 { font-family: var(--ff-display); font-weight: 300; font-size: clamp(44px, 5.4vw, 80px); line-height: 1; margin-bottom: 20px; }
.showroom p { font-size: 16px; }
.showroom .btn { margin-top: 10px; }

/* ================= Подвал ================= */
.foot { background: var(--fg); color: #E9E2D7; padding: 80px 0 28px; font-size: 14px; }
.foot__in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot__logo { width: 230px; }
.foot h3 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #A3968A; margin-bottom: 14px; }
.foot a { text-decoration: none; } .foot a:hover { text-decoration: underline dashed; text-underline-offset: 4px; }
.foot .contacts li { margin-bottom: 6px; }
.foot__bottom { display: flex; justify-content: space-between; margin-top: 64px; padding-top: 20px; border-top: 1px solid #45362D; font-size: 12px; color: #A3968A; }

/* ================= Корзина в стиле сайта ================= */
.s .cart__head h2 { font-family: var(--ff-display); font-size: 30px; font-weight: 400; }
.s .cart__item img { border-radius: 999px 999px 0 0; }
.s .co__summary img { border-radius: 999px 999px 0 0; }
.s .co__opt { border-style: dashed; }
.s .co__opt:has(input:checked) { border-style: solid; }
.s .cart__actions .btn--ghost { justify-self: center; }

@media (max-width: 1024px) {
  .film__strip { grid-template-columns: repeat(5, 46%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .film figure { scroll-snap-align: start; }
}
@media (max-width: 860px) {
  .head { grid-template-columns: 1fr auto; height: 62px; }
  .head__logo img { height: 40px; }
  .burger { display: block; }
  .menu { position: fixed; inset: 62px 0 0; background: var(--bg); color: var(--fg); flex-direction: column; gap: 0; padding: 24px var(--pad); font-family: var(--ff-display); font-size: 36px; letter-spacing: 0; text-transform: none; transform: translateY(-110%); opacity: 0; visibility: hidden; transition: transform .45s var(--ease), opacity .45s var(--ease), visibility 0s .45s; }
  .menu a { padding: 12px 0; border-bottom: 1px solid var(--line); background: none; }
  .menu-open .menu { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .menu-open .head { background: var(--bg); color: var(--fg); }
  .hero .hero__video--desk { display: none; } .hero .hero__video--mob { display: block; }
  .head .pugovitsa { width: 46px; height: 46px; }
  .catalog, .info { padding-top: 80px; padding-bottom: 80px; }
  .newc { padding: 80px 0 88px; }
  .newc__head { margin-bottom: 40px; }
  .s .grid { gap: 32px 12px; }
  .s .card__name { font-size: 18px; }
  .film { padding-top: 70px; }
  .film__head h2 { font-size: clamp(34px, 10.5vw, 96px); }
  .film__strip { grid-template-columns: repeat(5, 62%); }
  /* На телефоне кадры «Пошив» и «Детали» меняются местами, подписи остаются по порядку */
  .film__swap-a { order: 4; } .film__swap-b { order: 3; } .film__strip figure:last-child { order: 5; }
  .film__d { display: none; } .film__m { display: inline; }
  .info__cols, .info__sizes { grid-template-columns: 1fr; }
  .info__sizes { gap: 8px; margin-top: 48px; }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .foot__logo { grid-column: 1 / -1; width: 190px; }
  .s .chips { gap: 18px; }
}
/* Телефон: две карточки в ряд, чтобы фото были крупнее */
@media (max-width: 760px) {
  .s .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 14px; }
}
@media (max-width: 520px) {
  .head__actions { gap: 16px; }
  .s .btn { padding: 0 30px; }
  .foot__bottom { flex-direction: column; gap: 6px; }
}

/* ================= Пуговицы и бирка ================= */
/* Корзина — пуговица: строчка по краю, надпись по кругу, сумка и число вещей в центре */
.pugovitsa { position: relative; width: 52px; height: 52px; border-radius: 50%; color: var(--fg); transition: transform .5s var(--ease); }
.pugovitsa svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 2px 6px rgba(28, 19, 14, .22)); }
.pugovitsa__face { fill: #EFE7DA; }
.pugovitsa__stitch { fill: none; stroke: var(--fg); stroke-width: 1; stroke-dasharray: 3.2 2.6; opacity: .6; }
.pugovitsa__ring { transform-origin: 50px 50px; transition: transform 1.2s var(--ease); }
.pugovitsa__ring text { font: 600 9.4px var(--ff-body); letter-spacing: 1.2px; fill: var(--fg); }
.pugovitsa__bag { fill: none; stroke: var(--fg); stroke-width: 2; stroke-linejoin: round; }
.pugovitsa__n { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); font: 600 10px/1 var(--ff-body); letter-spacing: 0; color: var(--fg); }
.pugovitsa:hover .pugovitsa__ring { transform: rotate(-60deg); }
.pugovitsa:active { transform: scale(.94); }
.head__actions .pugovitsa { margin-block: 0; }
.hero__video--mob { display: none; }

/* +/− в корзине — маленькие пуговицы, нитка через дырочки рисует знак */
.s .qty { border: 0; gap: 8px; }
.s .qty span { min-width: 18px; font-size: 14px; }
.s .qty .qty__b { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; transition: transform .3s var(--ease); }
.qty__b svg { width: 32px; height: 32px; }
.pg__face { fill: #E9E0D2; stroke: rgba(42, 30, 24, .25); stroke-width: 1; }
.pg__rim { fill: none; stroke: rgba(42, 30, 24, .3); stroke-width: 1; }
.pg__hole { fill: var(--bg); stroke: rgba(42, 30, 24, .45); stroke-width: .8; }
.pg__thread { stroke: var(--fg); stroke-width: 1.6; stroke-linecap: round; }
.s .qty .qty__b:hover { transform: translateY(-2px); }
.s .qty .qty__b:active { transform: scale(.9); }

/* «Оформить заказ» — тканая бирка бренда: фестоны по краю и строчка внутри */
.s .btn--tag { --c: #2A1E18; min-height: 62px; padding: 0 44px; background: none; clip-path: none; color: #F6F2EB; font-family: var(--ff-display); font-size: 17px; font-weight: 600; letter-spacing: .22em; text-decoration: none; }
.s .btn--tag::before { inset: 0; border: 0; opacity: 1; z-index: -1; transition: none;
  background:
    radial-gradient(circle at 5px 5px, var(--c) 4.6px, transparent 5px) 0 0 / 10px 10px space no-repeat,
    radial-gradient(circle at 5px 5px, var(--c) 4.6px, transparent 5px) 0 100% / 10px 10px space no-repeat,
    radial-gradient(circle at 5px 5px, var(--c) 4.6px, transparent 5px) 0 0 / 10px 10px no-repeat space,
    radial-gradient(circle at 5px 5px, var(--c) 4.6px, transparent 5px) 100% 0 / 10px 10px no-repeat space,
    linear-gradient(var(--c), var(--c)) 50% 50% / calc(100% - 10px) calc(100% - 10px) no-repeat; }
.s .btn--tag::after { content: ""; position: absolute; inset: 9px; border: 1px dashed rgba(246, 242, 235, .5); pointer-events: none; transition: inset .35s var(--ease), border-color .35s; }
.s .btn--tag:hover { background: none; color: #F6F2EB; --c: #4A3328; letter-spacing: .26em; }
.s .btn--tag:hover::before { inset: 0; opacity: 1; }
.s .btn--tag:hover::after { inset: 7px; border-color: rgba(246, 242, 235, .9); }
.s .pm__add { --c: #2A1E18; }
.cart__call { margin: 4px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.cart__call a { color: var(--fg); }

/* Фото в арках: держим верх кадра, чтобы не резать голову */
.s .card__img { object-position: 50% 8%; }
.s .card__media:hover .card__img { transform: none; }

.foot__req { margin: 18px auto 0; font-size: 12px; line-height: 1.6; color: #A3968A; }
.foot__req a { color: inherit; }
.foot__note { margin: 10px auto 0; font-size: 11px; line-height: 1.5; color: #A3968A; }
