/* ==========================================================================
   FABECH Agency — main.css
   Стиль: ekaterinachepak.com — бордо #4E0000, слонова кістка, тонкі лінії,
   Cormorant Garamond (заголовки) + Jost (текст, навігація у верхньому регістрі).
   ========================================================================== */

@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/jost-latin-300-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/jost-cyrillic-300-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/jost-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/jost-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/jost-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/jost-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/cormorant-garamond-latin-300-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300; font-display: swap; src: url(../fonts/cormorant-garamond-cyrillic-300-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-garamond-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-garamond-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-garamond-latin-400-italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/cormorant-garamond-cyrillic-400-italic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
	--wine: #4E0000;
	--wine-2: #6B1016;
	--wine-soft: #F4E9E7;
	--ink: #1C1616;
	--ink-2: #4B4242;
	--muted: #8B7F7A;
	--line: #E6DED8;
	--bg: #FBF8F5;
	--paper: #FFFFFF;
	--sand: #F3ECE5;
	--serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
	--sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
	--gutter: clamp(16px, 4vw, 56px);
	--maxw: 1480px;
	--hdr: 76px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--radius: 2px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--wine); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 920px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--wine); color: #fff; padding: 10px 16px; }
.skip:focus { left: 8px; color: #fff; }
.muted { color: var(--muted); }

/* ---------- Типографіка ---------- */
.kicker { font: 500 11px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--wine); margin: 0 0 14px; }
.kicker--light { color: rgba(255, 255, 255, .7); }
.display { font: 300 clamp(44px, 7vw, 104px)/.98 var(--serif); letter-spacing: -.01em; margin: 0 0 24px; }
.display--md { font-size: clamp(40px, 5.4vw, 76px); }
.h2 { font: 300 clamp(32px, 3.8vw, 52px)/1.05 var(--serif); margin: 0 0 18px; }
.h3 { font: 400 clamp(22px, 2.2vw, 30px)/1.15 var(--serif); margin: 0 0 10px; }
.lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.7; color: var(--ink-2); max-width: 62ch; }
.prose { max-width: 70ch; font-size: 17px; }
.prose h2 { font: 300 34px/1.1 var(--serif); margin: 1.6em 0 .5em; }
.prose h3 { font: 400 24px/1.2 var(--serif); margin: 1.4em 0 .4em; }
.prose a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }
.prose img { margin: 1.5em 0; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 30px; font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; border: 1px solid transparent; border-radius: var(--radius); transition: background .25s, color .25s, border-color .25s; white-space: nowrap; }
.btn .ico { width: 16px; height: 16px; }
.btn--wine { background: var(--wine); color: #fff; }
.btn--wine:hover { background: var(--wine-2); color: #fff; }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--wine); }
.btn--light:hover { background: var(--sand); color: var(--wine); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--wine); border-bottom: 1px solid currentColor; padding-bottom: 6px; }
.link-arrow .ico { width: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

.ico { display: inline-block; width: 20px; height: 20px; flex: none; }
.ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

.pill { display: inline-block; font: 500 10px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--wine); color: var(--wine); border-radius: 99px; margin: 0 0 16px; }
.pill--muted { border-color: var(--muted); color: var(--muted); }
.badge { position: absolute; left: 10px; top: 10px; z-index: 2; font: 500 9px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; background: var(--paper); color: var(--wine); padding: 7px 9px; }
.badge--alt { top: auto; bottom: 10px; background: var(--wine); color: #fff; }

/* ---------- Topbar / Header ---------- */
.topbar { background: var(--wine); color: rgba(255, 255, 255, .86); font: 400 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 16px; }
.topbar a:hover { color: #fff; opacity: .8; }
.topbar__right { display: flex; align-items: center; gap: 22px; }

.langs { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--sans); letter-spacing: .16em; }
.langs span { opacity: .45; }
.langs a { opacity: .6; padding: 4px 0; }
.langs a.is-active { opacity: 1; }

.hdr { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 245, .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr__in { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 24px; min-height: var(--hdr); }
.hdr__nav ul { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.hdr__nav--right ul { justify-content: flex-end; }
.hdr__nav a { font: 500 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: 10px 0; position: relative; display: inline-block; }
.hdr__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--wine); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.hdr__nav a:hover::after, .hdr__nav a[aria-current]::after { transform: scaleX(1); }
.hdr__nav .has-sub { position: relative; }
.hdr__nav .sub { position: absolute; top: 100%; left: -18px; min-width: 170px; display: block; background: var(--paper); border: 1px solid var(--line); padding: 10px 18px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .25s var(--ease); box-shadow: 0 18px 40px -20px rgba(78, 0, 0, .25); }
.hdr__nav .has-sub:hover .sub, .hdr__nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.hdr__nav .sub a { display: block; padding: 10px 0; }
.hdr__burger { display: none; width: 40px; height: 40px; }
.hdr__burger .ico { width: 26px; height: 26px; }
.hdr__sel { position: relative; width: 40px; height: 40px; display: grid; place-items: center; }
.hdr__count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--wine); color: #fff; font: 500 10px/18px var(--sans); text-align: center; }

.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--wine); }
.logo:hover { color: var(--wine); }
.logo img { max-height: 54px; width: auto; }
.logo__mark { font: 500 30px/1 var(--serif); letter-spacing: .34em; margin-right: -.34em; }
.logo__sub { font: 500 8.5px/1 var(--sans); letter-spacing: .5em; text-transform: uppercase; margin-top: 7px; margin-right: -.5em; color: var(--ink-2); }
.logo--light, .logo--light:hover { color: #fff; }
.logo--light .logo__sub { color: rgba(255, 255, 255, .6); }
.logo--light img { filter: brightness(0) invert(1); }

/* Мобільне меню */
.mnav { position: fixed; inset: 0; z-index: 60; background: var(--bg); padding: calc(var(--hdr) + 36px) var(--gutter) 40px; overflow-y: auto; }
.mnav[hidden] { display: none; }
.mnav__list li { border-bottom: 1px solid var(--line); padding: 14px 0; }
.mnav__list > li > a { font: 300 36px/1.1 var(--serif); }
.mnav__sub { display: flex; gap: 20px; margin-top: 8px; }
.mnav__sub a { font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.mnav__small { margin: 28px 0; display: grid; gap: 14px; }
.mnav__small a { font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.langs--big { font-size: 14px; }
body.menu-open { overflow: hidden; }
body.menu-open .hdr { z-index: 70; }

/* ---------- Секції ---------- */
.sec { padding: clamp(64px, 9vw, 130px) 0; }
.sec--sand { background: var(--sand); }
.sec__head { margin-bottom: clamp(30px, 4vw, 56px); text-align: center; }
.sec__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; text-align: left; }
.sec__head--row .h2 { margin: 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero--split .hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 90px); align-items: center; min-height: min(calc(100vh - var(--hdr) - 36px), 880px); padding-top: clamp(30px, 4vw, 60px); padding-bottom: clamp(40px, 5vw, 70px); }
.hero__text .display em { font-style: italic; color: var(--wine); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__slides { position: relative; aspect-ratio: 4 / 5; max-height: calc(100vh - var(--hdr) - 110px); width: 100%; margin-left: auto; overflow: hidden; background: var(--sand); }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__slide.is-on { opacity: 1; z-index: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.hero__slide.is-on img { transform: scale(1); }
.hero__cap { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 12px; background: var(--paper); color: var(--ink); padding: 14px 20px; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.hero__cap .ico { width: 16px; color: var(--wine); }
.hero__dots { position: absolute; right: 16px; bottom: 18px; z-index: 3; display: flex; gap: 8px; }
.hero__dots button { width: 26px; height: 2px; background: rgba(255, 255, 255, .5); }
.hero__dots button[aria-current] { background: #fff; }
.hero--media { min-height: min(calc(100vh - 36px), 960px); display: flex; align-items: flex-end; color: #fff; margin-top: calc(-1 * var(--hdr)); }
.hero--media .hero__in { padding-top: calc(var(--hdr) + 60px); padding-bottom: clamp(50px, 8vw, 110px); position: relative; z-index: 2; }
.hero__media, .hero__veil { position: absolute; inset: 0; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__veil { background: linear-gradient(180deg, rgba(20, 8, 8, .25) 0%, rgba(20, 8, 8, 0) 30%, rgba(30, 6, 6, .6) 100%); }
.hero--media .kicker { color: rgba(255, 255, 255, .8); }
.hero--media .lead { color: rgba(255, 255, 255, .86); }
.hero--media .btn--line { border-color: rgba(255, 255, 255, .7); color: #fff; }
.hero--media .btn--line:hover { background: #fff; color: var(--ink); }
body.has-media-hero .hdr:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
body.has-media-hero .hdr:not(.is-scrolled) .logo, body.has-media-hero .hdr:not(.is-scrolled) .logo__sub { color: #fff; }

/* ---------- Розділи (як «Колекції» ECH) ---------- */
.divs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 28px); }
.div__link { display: block; position: relative; color: #fff; overflow: hidden; }
.div__link:hover { color: #fff; }
.div__fig { margin: 0; aspect-ratio: 3 / 4.2; background: var(--sand); overflow: hidden; }
.div__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.div__link:hover .div__fig img { transform: scale(1.045); }
.div__body { position: absolute; inset: auto 0 0 0; padding: 26px 26px 24px; background: linear-gradient(180deg, transparent, rgba(25, 6, 6, .66)); display: grid; grid-template-columns: 1fr auto; align-items: end; row-gap: 10px; }
.div__title { font: 300 clamp(36px, 3.6vw, 56px)/1 var(--serif); }
.div__count { font: 400 13px/1 var(--sans); letter-spacing: .1em; opacity: .8; align-self: start; padding-top: 6px; }
.div__more { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 10px; font: 500 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.div__more .ico { width: 16px; transition: transform .3s var(--ease); }
.div__link:hover .div__more .ico { transform: translateX(5px); }
.div__subs { display: flex; gap: 22px; justify-content: center; margin: 16px 0 0; }
.div__subs a { font: 500 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.div__subs a:hover { border-color: var(--wine); }

/* ---------- Картка моделі ---------- */
.mcard { position: relative; }
.mcard__link { display: block; }
.mcard__fig { position: relative; margin: 0 0 14px; aspect-ratio: 3 / 4; overflow: hidden; background: var(--sand); }
.mcard__fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.mcard__fig .mcard__alt { opacity: 0; }
@media (hover: hover) {
	.mcard__link:hover .mcard__fig.has-alt img:not(.mcard__alt) { opacity: 0; }
	.mcard__link:hover .mcard__fig .mcard__alt { opacity: 1; }
	.mcard__link:hover .mcard__fig img { transform: scale(1.03); }
}
.mcard__ph { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, var(--sand), var(--sand) 10px, #efe6de 10px, #efe6de 20px); }
.mcard__name { font: 500 13px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; margin: 0 0 5px; }
.mcard__meta { font-size: 13px; color: var(--muted); margin: 0; letter-spacing: .04em; }
.heart { position: absolute; top: 8px; right: 8px; z-index: 3; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .86); color: var(--ink); transition: background .2s, color .2s, transform .2s; }
.heart .ico { width: 18px; height: 18px; }
.heart:hover { transform: scale(1.06); }
.heart[aria-pressed="true"] { color: var(--wine); }
.heart[aria-pressed="true"] svg, .js-sel-btn[aria-pressed="true"] svg { fill: currentColor; }

/* Рейка */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, calc((100% - 3 * 22px) / 4)); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--wine) transparent; }
.rail > * { scroll-snap-align: start; }

/* ---------- Цінності ---------- */
.values { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(46px, 6vw, 80px) 0; }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.value { text-align: center; }
.value .ico { width: 34px; height: 34px; color: var(--wine); margin: 0 auto 18px; }
.value h3 { font: 500 12px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 10px; }
.value p { font-size: 14px; color: var(--muted); max-width: 30ch; margin: 0 auto; }

/* ---------- Про агентство ---------- */
.about__grid { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(30px, 6vw, 110px); align-items: center; }
.about__fig { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.about__fig img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- CTA ---------- */
.cta { background: var(--wine); color: #fff; padding: clamp(56px, 7vw, 100px) 0; }
.cta__in { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.cta p { color: rgba(255, 255, 255, .78); max-width: 52ch; margin: 0; }
.cta__btns { display: flex; gap: 14px; flex-wrap: wrap; }
.academy__in { text-align: center; max-width: 640px; }

/* ---------- Listing ---------- */
.listing { padding: clamp(26px, 3vw, 44px) 0 clamp(70px, 8vw, 120px); }
.listing__head { padding: 18px 0 26px; }
.listing__head .display { margin-bottom: 10px; }
.listing__count { font: 500 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font: 400 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.crumbs li + li::before { content: '/'; margin-right: 8px; opacity: .5; }

.tabs { display: flex; gap: 6px clamp(18px, 2.6vw, 38px); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: 16px 0; border-bottom: 1px solid transparent; margin-bottom: -1px; white-space: nowrap; color: var(--ink-2); }
.tabs a[aria-current] { color: var(--wine); border-color: var(--wine); }
.subtabs { display: flex; gap: 10px; padding: 18px 0 0; flex-wrap: wrap; }
.subtabs a { font: 500 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: 11px 18px; border: 1px solid var(--line); border-radius: 99px; }
.subtabs a[aria-current] { background: var(--wine); border-color: var(--wine); color: #fff; }

.filters { margin: 20px 0 30px; }
.filters__bar { display: flex; gap: 12px; align-items: stretch; }
.filters__search { flex: 1; max-width: 420px; }
.filters__search input { width: 100%; height: 48px; border: 1px solid var(--line); background: var(--paper); padding: 0 16px; font: 300 15px var(--sans); border-radius: var(--radius); }
.filters__toggle { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; border: 1px solid var(--line); background: var(--paper); font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; border-radius: var(--radius); }
.filters__toggle[aria-expanded="true"] { border-color: var(--wine); color: var(--wine); }
.filters__toggle [data-filters-n]:not(:empty) { background: var(--wine); color: #fff; border-radius: 9px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; font-size: 10px; padding: 0 5px; letter-spacing: 0; }
.filters__panel { display: flex; flex-wrap: wrap; gap: 26px 40px; padding: 26px 0 6px; border-bottom: 1px solid var(--line); margin-top: 6px; align-items: flex-start; }
.filters__panel[hidden] { display: none; }
.fgroup { border: 0; margin: 0; padding: 0; min-width: 0; }
.fgroup legend { font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; padding: 0; }
.fgroup--range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fgroup--range legend { width: 100%; }
.fgroup--range input { width: 86px; height: 40px; border: 1px solid var(--line); background: var(--paper); padding: 0 10px; font: 300 15px var(--sans); border-radius: var(--radius); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 15px; border: 1px solid var(--line); background: var(--paper); border-radius: 99px; font-size: 13px; transition: .2s; }
.chip input:checked + span { background: var(--wine); border-color: var(--wine); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }
.filters__reset { align-self: flex-end; font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid currentColor; padding-bottom: 4px; margin-left: auto; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3vw, 46px) clamp(14px, 1.8vw, 26px); transition: opacity .3s; }
.grid.is-loading { opacity: .4; pointer-events: none; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 60px 0; font: 300 24px var(--serif); }
.more { text-align: center; margin-top: 54px; }
.more [hidden] { display: none; }

/* ---------- Сторінка моделі ---------- */
.model { padding-top: clamp(20px, 2.4vw, 36px); }
.model__grid { display: grid; grid-template-columns: minmax(300px, 28%) 1fr; gap: clamp(28px, 4.5vw, 80px); align-items: start; padding-bottom: clamp(60px, 7vw, 110px); }
.model__sticky { position: sticky; top: calc(var(--hdr) + 26px); }
.model__name { font: 300 clamp(44px, 4.6vw, 74px)/.95 var(--serif); margin: 0 0 26px; text-transform: none; }
.model__name span { display: block; }
.model__name span + span { font-style: italic; color: var(--wine); }
.stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin: 0 0 22px; }
.stats > div { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.stats > div:nth-child(odd) { padding-right: 16px; }
.stats > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.stats dt { font: 500 10.5px/1.7 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 0; font-size: 14.5px; text-align: right; }
.stats--inline { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); border: 0; gap: 0 18px; }
.stats--inline > div { border: 0 !important; padding: 6px 0 !important; justify-content: flex-start; gap: 8px; }
.model__extra { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-2); }
.model__actions { display: grid; gap: 10px; margin: 24px 0 14px; }
.model__actions .btn { width: 100%; }
.model__links { display: flex; gap: 22px; font: 500 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.model__links a { display: inline-flex; align-items: center; gap: 8px; }
.model__links .ico { width: 17px; height: 17px; }
.model__bio { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }

.mtabs { display: flex; gap: 30px; border-bottom: 1px solid var(--line); margin-bottom: 24px; position: sticky; top: var(--hdr); background: var(--bg); z-index: 5; }
.mtabs button { font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: 18px 0; border-bottom: 1px solid transparent; margin-bottom: -1px; color: var(--muted); }
.mtabs button[aria-selected="true"] { color: var(--wine); border-color: var(--wine); }
.mtabs sup { font-size: 9px; margin-left: 2px; }
.gal { columns: 2; column-gap: clamp(10px, 1.4vw, 20px); }
.gal__item { display: block; break-inside: avoid; margin-bottom: clamp(10px, 1.4vw, 20px); background: var(--sand); cursor: zoom-in; overflow: hidden; }
.gal__item img { width: 100%; transition: transform 1s var(--ease), opacity .4s; }
.gal__item:hover img { transform: scale(1.025); }
.gal--polaroids { columns: 3; }
.vids { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.vid { position: relative; aspect-ratio: 9 / 16; background: #120707; overflow: hidden; }
.vid img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.vid iframe, .vid video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.vid__play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--wine); display: grid; place-items: center; transition: transform .3s var(--ease); }
.vid__play .ico { width: 28px; height: 28px; margin-left: 4px; }
.vid:hover .vid__play { transform: scale(1.08); }

/* ---------- Лайтбокс ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(18, 10, 10, .97); display: grid; place-items: center; }
.lb[hidden] { display: none; }
.lb__stage { margin: 0; max-width: 92vw; max-height: 88vh; display: grid; place-items: center; touch-action: pan-y; }
.lb__stage img { max-width: 92vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; user-select: none; }
.lb__close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; color: #fff; display: grid; place-items: center; z-index: 2; }
.lb__close .ico { width: 26px; height: 26px; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 60px; height: 90px; color: #fff; font: 300 54px/1 var(--serif); opacity: .7; z-index: 2; }
.lb__nav:hover { opacity: 1; }
.lb__prev { left: 6px; }
.lb__next { right: 6px; }
.lb__count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .7); font: 500 11px var(--sans); letter-spacing: .24em; }

/* ---------- Модальне вікно / форми ---------- */
.modal { width: min(760px, calc(100% - 24px)); max-height: calc(100vh - 24px); border: 0; padding: clamp(28px, 4vw, 52px); background: var(--bg); color: var(--ink); border-radius: var(--radius); overflow-y: auto; }
.modal::backdrop { background: rgba(28, 12, 12, .6); backdrop-filter: blur(4px); }
.modal__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; display: grid; place-items: center; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field > span, .field legend { font: 500 10.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 0; }
.field input, .field select, .field textarea { width: 100%; font: 300 16px/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; transition: border-color .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--wine); }
.field.is-invalid input, .field.is-invalid select { border-color: #b3261e; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.check input { margin-top: 4px; accent-color: var(--wine); width: 18px; height: 18px; flex: none; }
.form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
.form__msg { margin: 0; font-size: 14px; }
.form__msg.is-ok { color: #2e6b3a; }
.form__msg.is-err { color: #b3261e; }
.form.is-sent .form__grid, .form.is-sent .form__foot .btn { display: none; }
.form.is-sent .form__msg { font: 300 26px/1.3 var(--serif); color: var(--wine); }
.drop { position: relative; display: block; border: 1px dashed #cdbfb5; background: var(--paper); padding: 26px; text-align: center; cursor: pointer; border-radius: var(--radius); transition: border-color .2s, background .2s; }
.drop.is-over { border-color: var(--wine); background: var(--wine-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop__txt { color: var(--muted); font-size: 14px; }
.drop__prev { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.drop__prev:not(:empty) { margin-top: 14px; }
.drop__prev img { width: 70px; height: 92px; object-fit: cover; }

/* ---------- Сторінки ---------- */
.page { padding: clamp(26px, 3vw, 44px) 0 clamp(70px, 8vw, 120px); }
.page__fig { margin: 0 0 40px; }
.apply__grid, .contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.apply__tips { counter-reset: t; margin: 26px 0; display: grid; gap: 12px; }
.apply__tips li { counter-increment: t; display: flex; gap: 14px; align-items: baseline; font-size: 15px; }
.apply__tips li::before { content: counter(t, decimal-leading-zero); font: 400 20px/1 var(--serif); color: var(--wine); }
.apply__form, .contact__form { background: var(--paper); padding: clamp(24px, 3.4vw, 48px); border: 1px solid var(--line); }
.contact__list { margin: 30px 0; border-top: 1px solid var(--line); }
.contact__list > div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact__list dt { font: 500 10.5px/1.7 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contact__list dd { margin: 0; text-align: right; }
.notfound { text-align: center; }
.notfound .lead { margin: 0 auto 30px; }

/* Пакет / обрані */
.package__note { margin: 10px 0 18px; }
.pkg { display: grid; gap: 34px; }
.pkg__item { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; padding-bottom: 34px; border-bottom: 1px solid var(--line); align-items: center; }
.pkg__imgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pkg__imgs a { aspect-ratio: 3 / 4; overflow: hidden; background: var(--sand); }
.pkg__imgs img { width: 100%; height: 100%; object-fit: cover; }
.pkg__links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-top: 16px; font: 500 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.pkg__links .pill { margin: 0; }
.package__form { margin-top: 70px; max-width: 860px; }
.sel-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 26px 18px; }
.sel-item { position: relative; }
.sel-item a { display: block; }
.sel-item img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; background: var(--sand); margin-bottom: 10px; }
.sel-item h3 { font: 500 12px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.sel-item p { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.sel-actions { margin: 24px 0 0; }

/* ---------- Footer ---------- */
.ftr { background: #1A0C0C; color: rgba(255, 255, 255, .72); padding: clamp(56px, 6vw, 90px) 0 30px; font-size: 14px; }
.ftr a:hover { color: #fff; }
.ftr__top { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ftr__note { margin: 0; font: 300 italic 22px/1.3 var(--serif); color: rgba(255, 255, 255, .6); }
.ftr__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; padding: 44px 0; }
.ftr h4 { font: 500 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.ftr li { margin-bottom: 10px; }
.ftr__sub { padding-left: 14px; opacity: .8; }
.ftr__social { display: flex; gap: 14px; margin-top: 18px; }
.ftr__social .ico { width: 22px; height: 22px; }
.ftr__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px; letter-spacing: .08em; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; background: var(--ink); color: #fff; padding: 13px 22px; font: 400 13px var(--sans); letter-spacing: .06em; border-radius: var(--radius); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); }
.toast a { color: #fff; text-decoration: underline; margin-left: 8px; }

/* ---------- Comp card ---------- */
.cc-body { background: #e9e3de; padding: 70px 16px 40px; }
.cc-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 20px; background: var(--paper); border-bottom: 1px solid var(--line); font: 500 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.cc { width: 210mm; height: 148mm; margin: 0 auto 24px; background: #fff; box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .4); overflow: hidden; }
.cc--front { display: grid; grid-template-columns: 60% 40%; }
.cc__photo img { width: 100%; height: 148mm; object-fit: cover; }
.cc__side { display: flex; flex-direction: column; justify-content: space-between; padding: 12mm 10mm; }
.cc__logo .logo__mark { font-size: 22px; }
.cc__name { font: 300 40px/1 var(--serif); margin: 6px 0 0; }
.cc__stats { margin: 0; display: grid; gap: 2px; font-size: 11px; }
.cc__stats > div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 4px 0; }
.cc__stats dt { letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-size: 9px; }
.cc__stats dd { margin: 0; }
.cc--back { display: grid; grid-template-rows: 1fr auto; }
.cc__four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2mm; padding: 6mm 6mm 0; min-height: 0; }
.cc__four--1, .cc__four--2, .cc__four--3 { grid-auto-flow: column; grid-template-columns: none; }
.cc__four img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.cc__foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 4mm 6mm; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.cc__foot b { color: var(--wine); font-weight: 500; }
@media print {
	@page { size: A5 landscape; margin: 0; }
	.cc-body { background: #fff; padding: 0; }
	.cc-bar { display: none; }
	.cc { margin: 0; box-shadow: none; page-break-after: always; break-after: page; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
	.grid { grid-template-columns: repeat(3, 1fr); }
	.rail { grid-auto-columns: minmax(220px, calc((100% - 2 * 22px) / 3)); }
}
@media (max-width: 1024px) {
	:root { --hdr: 64px; }
	.hdr__in { grid-template-columns: 44px 1fr 44px; gap: 10px; }
	.hdr__nav { display: none; }
	.hdr__burger { display: grid; place-items: center; }
	.hdr__logo { justify-self: center; }
	.logo__mark { font-size: 24px; }
	.topbar__in > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.hero--split .hero__in { grid-template-columns: 1fr; min-height: 0; }
	.hero__slides { max-height: 72vh; aspect-ratio: 4 / 5; order: -1; }
	.model__grid { grid-template-columns: 1fr; }
	.model__sticky { position: static; }
	.values__grid { grid-template-columns: repeat(2, 1fr); }
	.apply__grid, .contact__grid, .about__grid { grid-template-columns: 1fr; }
	.pkg__item { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	body { font-size: 15px; }
	.topbar { font-size: 10px; }
	.topbar a[href^="tel"] { display: none; }
	.divs { grid-template-columns: 1fr; }
	.div__fig { aspect-ratio: 4 / 3.6; }
	.grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
	.rail { grid-auto-columns: 62%; gap: 12px; }
	.mcard__name { font-size: 11.5px; letter-spacing: .14em; }
	.mcard__meta { font-size: 12px; }
	.heart { width: 34px; height: 34px; top: 6px; right: 6px; }
	.sec__head--row { flex-direction: column; align-items: flex-start; }
	.form__grid { grid-template-columns: 1fr; }
	.ftr__cols { grid-template-columns: 1fr 1fr; }
	.ftr__cols > div:last-child { grid-column: 1 / -1; }
	.ftr__bottom { flex-direction: column; }
	.cta__in { flex-direction: column; align-items: flex-start; }
	.filters__bar { flex-wrap: wrap; }
	.filters__search { max-width: none; flex-basis: 100%; }
	.filters__toggle { flex: 1; justify-content: center; }
	.gal--polaroids { columns: 2; }
	.vids { grid-template-columns: 1fr; }
	.stats { grid-template-columns: 1fr; }
	.stats > div:nth-child(n) { padding: 11px 0; border-left: 0; }
	.mtabs { gap: 22px; overflow-x: auto; }
	.pkg__imgs { grid-template-columns: repeat(2, 1fr); }
	.lb__nav { display: none; }
	.cc { width: 100%; height: auto; }
	.cc--front { grid-template-columns: 1fr; }
	.cc__photo img { height: auto; aspect-ratio: 3 / 4; }
}
