/* ECOPOD — шапка і повноекранне меню.
   Шапка: прозора, на всю ширину; після прокрутки — темна підкладка з розмиттям.
   Меню: відкривається «заливкою» згори (clip-path), великі широкі пункти, послуги, прев'ю-фото, контакти. */

.hdr { position: fixed; inset: 0 0 auto; z-index: 60; height: calc(var(--hdr) + var(--hdr-top)); transition: transform .5s var(--ease); }
.hdr::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 11, 12, .82), rgba(10, 11, 12, .6)); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); box-shadow: inset 0 -1px 0 rgba(201, 162, 107, .22); opacity: 0; transition: opacity .45s; }
.hdr.is-scrolled::before { opacity: 1; }
.hdr.is-hidden { transform: translateY(-100%); }
.menu-open .hdr::before { opacity: 0; }
.hdr__in { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* Логотип */
.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo__mark { width: 42px; height: 36px; }
.logo__text { display: grid; line-height: 1; }
.logo__name { font-size: 17px; font-weight: 700; font-stretch: 140%; letter-spacing: .1em; }
.logo__sub { margin-top: 6px; font-size: 9px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }

/* Праворуч: телефон, «Оферта», кнопка меню */
.hdr__actions { display: flex; align-items: center; gap: 8px; }
.hdr__phone { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; font-size: 15px; font-weight: 500; white-space: nowrap; border-radius: 99px; transition: color .25s; }
.hdr__phone .ico { width: 16px; height: 16px; color: var(--accent); }
.hdr__phone:hover { color: var(--accent); }
.hdr__cta { position: relative; height: 48px; display: inline-flex; align-items: center; padding: 0 20px; font-size: 15px; font-weight: 600; font-stretch: 112%; color: var(--accent); }
.hdr__cta::after { content: ''; position: absolute; left: 20px; right: 20px; bottom: 12px; height: 1px; background: currentColor; transform: scaleX(.35); transform-origin: left; transition: transform .4s var(--ease); }
.hdr__cta:hover::after { transform: scaleX(1); }
/* Кнопка меню: тонка латунна рамка з яскравими кутами-скобами, роздільник і «шари» (3 лінії різної довжини, як шари покриття). */
.menu-btn { position: relative; display: inline-flex; align-items: center; height: 50px; padding: 0; border: 0; border-radius: 3px; cursor: pointer; font: 600 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--text); background: rgba(12, 13, 15, .42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(230, 200, 143, .3); transition: box-shadow .35s, background .35s; }
.menu-btn::before, .menu-btn::after { content: ''; position: absolute; width: 10px; height: 10px; border: 0 solid var(--accent); pointer-events: none; transition: width .4s var(--ease), height .4s var(--ease); }
.menu-btn::before { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; border-top-left-radius: 3px; }
.menu-btn::after { right: 0; bottom: 0; border-right-width: 1.5px; border-bottom-width: 1.5px; border-bottom-right-radius: 3px; }
.menu-open .menu-btn { background: rgba(201, 162, 107, .1); box-shadow: inset 0 0 0 1px rgba(230, 200, 143, .55); }
.menu-btn__txt { padding: 0 18px 0 22px; }
.menu-btn__ico { position: relative; width: 52px; height: 100%; border-left: 1px solid rgba(230, 200, 143, .22); }
.menu-btn__ico i { position: absolute; right: 15px; height: 1.5px; background: var(--brass-grad); border-radius: 2px; transition: width .45s var(--ease), transform .45s var(--ease), top .45s var(--ease), opacity .3s; }
.menu-btn__ico i:nth-child(1) { top: 18px; width: 22px; }
.menu-btn__ico i:nth-child(2) { top: 24px; width: 15px; }
.menu-btn__ico i:nth-child(3) { top: 30px; width: 8px; }
.menu-open .menu-btn__ico i:nth-child(1) { top: 24px; width: 22px; transform: rotate(45deg); }
.menu-open .menu-btn__ico i:nth-child(2) { opacity: 0; transform: translateX(6px); }
.menu-open .menu-btn__ico i:nth-child(3) { top: 24px; width: 22px; transform: rotate(-45deg); }

/* Повноекранне меню */
.menu { position: fixed; inset: 0; z-index: 55; overflow-y: auto; overscroll-behavior: contain; background: radial-gradient(120% 80% at 85% 0%, rgba(201, 162, 107, .10), transparent 55%), #08090a; clip-path: inset(0 0 100% 0); transition: clip-path .8s cubic-bezier(.7, 0, .2, 1); }
.menu.is-open { clip-path: inset(0 0 0 0); }
/* Глянцевий «фронт» заливки, що біжить донизу */
.menu::after { content: ''; position: fixed; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--brass) 30%, #f1dcae 50%, var(--brass) 70%, transparent); box-shadow: 0 0 24px 4px rgba(201, 162, 107, .45); opacity: 0; pointer-events: none; }
.menu.is-open::after { animation: pourEdge .8s cubic-bezier(.7, 0, .2, 1); }
@keyframes pourEdge { 0% { opacity: 1; transform: translateY(0); } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(100vh); } }

.menu__in { min-height: 100%; display: grid; grid-template-columns: 1.25fr .85fr .9fr; grid-template-rows: 1fr auto; gap: 32px clamp(32px, 4vw, 64px); padding-top: calc(var(--hdr) + var(--hdr-top) + 40px); padding-bottom: 36px; }
.menu__main { align-self: center; }
.menu__main ol { display: grid; gap: 2px; }
.menu__link { display: flex; align-items: baseline; gap: 18px; padding: 6px 0; color: rgba(237, 233, 226, .9); transition: color .3s; }
.menu__n { min-width: 28px; font-size: 13px; font-weight: 650; font-stretch: 125%; letter-spacing: .06em; color: var(--accent); }
.menu__label { font-size: clamp(1.9rem, min(4.2vw, 6.4vh), 4rem); line-height: 1.05; font-weight: 650; font-stretch: 135%; letter-spacing: -.02em; transition: transform .45s var(--ease), color .3s; }
.menu__link:focus-visible .menu__label, .menu__link.is-active .menu__label { color: var(--accent); }
.menu__link:focus-visible .menu__label { transform: translateX(14px); }

.menu__h { margin-bottom: 18px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.menu__svc { align-self: center; }
.menu__svc ul { display: grid; }
.menu__svc a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 500; font-stretch: 108%; color: rgba(237, 233, 226, .85); transition: color .25s, padding .35s var(--ease); }
.menu__svc a .ico { opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .35s var(--ease); color: var(--accent); }
.menu__svc a:hover, .menu__svc a:focus-visible { color: var(--text); padding-left: 8px; }
.menu__svc a:hover .ico, .menu__svc a:focus-visible .ico { opacity: 1; transform: none; }

.menu__preview { position: relative; align-self: center; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--bg-3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 40px 80px -40px rgba(0, 0, 0, .9); }
.menu__preview img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform 1.2s var(--ease); }
.menu__preview img.is-swap { opacity: 0; transform: scale(1.04); }
.menu__preview::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, rgba(255, 255, 255, .14), transparent 30%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }

.menu__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.menu__contacts { display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: 15px; color: var(--text-soft); }
.menu__contacts a:hover { color: var(--accent); }

/* Поява пунктів після «заливки» */
.menu__main li, .menu__svc, .menu__preview, .menu__foot { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.menu.is-open .menu__main li, .menu.is-open .menu__svc, .menu.is-open .menu__preview, .menu.is-open .menu__foot { opacity: 1; transform: none; }
.menu.is-open .menu__main li:nth-child(1) { transition-delay: .35s; }
.menu.is-open .menu__main li:nth-child(2) { transition-delay: .41s; }
.menu.is-open .menu__main li:nth-child(3) { transition-delay: .47s; }
.menu.is-open .menu__main li:nth-child(4) { transition-delay: .53s; }
.menu.is-open .menu__main li:nth-child(5) { transition-delay: .59s; }
.menu.is-open .menu__svc { transition-delay: .55s; }
.menu.is-open .menu__preview { transition-delay: .62s; }
.menu.is-open .menu__foot { transition-delay: .7s; }

@media (prefers-reduced-motion: reduce) {
	.menu, .menu__main li, .menu__svc, .menu__preview, .menu__foot { transition: none; }
	.menu.is-open::after { animation: none; }
}

@media (max-width: 1180px) {
	.hdr__phone span { display: none; }
	.hdr__phone { width: 48px; padding: 0; justify-content: center; }
	.menu__in { grid-template-columns: 1.2fr 1fr; }
	.menu__preview { display: none; }
}
@media (max-width: 760px) {
	:root { --hdr: 64px; --hdr-top: 0px; }
	.hdr__cta, .menu-btn__txt { display: none; }
	.menu-btn { height: 48px; }
	.menu-btn__ico { width: 48px; border-left: 0; }
	.menu-btn__ico i { right: 13px; }
	.menu-btn__ico i:nth-child(1) { top: 17px; }
	.menu-btn__ico i:nth-child(2) { top: 23px; }
	.menu-btn__ico i:nth-child(3) { top: 29px; }
	.menu-open .menu-btn__ico i:nth-child(1), .menu-open .menu-btn__ico i:nth-child(3) { top: 23px; }
	.logo__name { font-size: 15px; }
	.menu__in { grid-template-columns: 1fr; padding-top: calc(var(--hdr) + 24px); }
	.menu__label { font-size: clamp(1.9rem, 9vw, 2.6rem); }
	.menu__svc { align-self: start; }
	.menu__svc a { font-size: 16px; padding: 12px 0; }
	.menu__foot .btn { width: 100%; justify-content: space-between; }
}

/* Перемикач мов: глобус + код → скляне випадне меню */
.lang { position: relative; }
.lang summary { display: inline-flex; align-items: center; gap: 7px; height: 48px; padding: 0 12px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; font-stretch: 112%; letter-spacing: .06em; color: var(--text-soft); transition: color .25s; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--accent); }
.lang__globe { opacity: .8; }
.lang__chev { opacity: .6; transition: transform .3s var(--ease); }
.lang[open] .lang__chev { transform: rotate(180deg); }
.lang__menu { position: absolute; top: calc(100% + 4px); right: 0; z-index: 20; display: grid; min-width: 196px; padding: 8px; border-radius: 16px; background: rgba(16, 17, 19, .92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 48px -20px rgba(0, 0, 0, .8); animation: langIn .25s var(--ease); }
@keyframes langIn { from { opacity: 0; transform: translateY(-6px); } }
.lang__menu a { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 11px 12px; border-radius: 10px; font-size: 15px; color: var(--text-soft); transition: background .2s, color .2s; }
.lang__menu a:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.lang__code { font-size: 11px; font-weight: 650; letter-spacing: .12em; opacity: .55; }
.lang__menu a.is-on { color: var(--accent); }
.lang__menu a.is-on .lang__code { opacity: 1; }
.lang__menu a.is-on .lang__code::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 8px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
@media (prefers-reduced-motion: reduce) { .lang__menu { animation: none; } }
/* У мобільному меню — рядок назв */
.lang-row { display: none; }
@media (max-width: 760px) {
	.hdr__lang { display: none; }
	.lang-row { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-bottom: 18px; }
	.lang-row a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--text-soft); border-bottom: 1px solid transparent; }
	.lang-row a.is-on { color: var(--accent); border-bottom-color: currentColor; }
	.lang-row .lang__code { display: none; }
}

/* Наведення — лише для миші: на телефоні стан «hover» залипає після дотику. */
@media (hover: hover) {
	.menu-btn:hover { background: rgba(201, 162, 107, .1); box-shadow: inset 0 0 0 1px rgba(230, 200, 143, .55); }
	.menu-btn:hover::before, .menu-btn:hover::after { width: 18px; height: 18px; }
	.menu-btn:hover .menu-btn__ico i { width: 22px; }
	.menu__link:hover .menu__label { color: var(--accent); transform: translateX(14px); }
}
.menu-btn:focus:not(:focus-visible), .menu__link:focus:not(:focus-visible) { outline: none; }
.menu__link:focus-visible { outline-offset: 6px; }

/* Відкрите меню: шапка з легким блюром — пункти, що прокручуються під лого, не заважають читати. */
.menu-open .hdr::before { opacity: 1; background: linear-gradient(180deg, rgba(8, 9, 10, .78), rgba(8, 9, 10, .55)); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: inset 0 -1px 0 rgba(230, 200, 143, .14); }
/* Мови в мобільному меню — коротко: BG · UA · EN */
@media (max-width: 760px) {
	.lang-row .lang__name { display: none; }
	.lang-row .lang__code { display: inline; font-size: 14px; font-weight: 600; letter-spacing: .16em; opacity: 1; }
	.lang-row { gap: 4px 26px; }
}

/* Мобільне меню: номер для месенджерів + посилання */
.menu__msg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
