/* Варіант A «Тиша». Білий простір, тонкий гротеск, фото на всю ширину. */
:root {
  --bg: #fff;
  --ink: #2a2826;
  --muted: #68645f;
  --fog: #ecebe8;
  --line: #d6d3ce;
  --lamp: #9f8368;
  --btn: #33302d;
  --font: 'Onest', 'Segoe UI', Roboto, Arial, sans-serif;
  --gutter: clamp(20px, 7vw, 150px);
  --head: 74px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--lamp); color: #fff; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; }

.wrap { width: 100%; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.section { padding-block: clamp(64px, 8vw, 112px); }
.fog { background: var(--fog); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section__count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.section__lead { max-width: 56ch; margin-top: 14px; color: var(--muted); }

h1, h2 { font-weight: 300; text-transform: uppercase; letter-spacing: -.015em; line-height: 1.12; text-wrap: balance; }
h2 { font-size: clamp(26px, 3vw, 40px); }
h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .01em; line-height: 1.35; }

.textlink { font-size: 15px; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: opacity .2s; }
.textlink:hover { opacity: .65; }
.wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 44px;
  background: var(--btn); color: #fff; font-size: 14px; font-weight: 400; text-transform: uppercase;
  letter-spacing: .02em; text-decoration: none; transition: background .25s;
}
.wp-block-button__link:hover { background: #000; }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; }
.topbar { border-bottom: 1px solid #eee; font-size: 11.5px; font-weight: 300; }
.topbar__row { display: flex; justify-content: space-between; gap: 16px; padding-block: 6px; }
.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.topbar__nav { display: flex; gap: 22px; }
.is-stuck .topbar { display: none; }
.mainbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 58px; }
.mainbar__left, .mainbar__right { display: flex; align-items: center; gap: 30px; }
.mainbar__right { justify-content: flex-end; }
.mainbar__mobile { display: none; justify-content: flex-end; align-items: center; gap: 6px; }
.navlink { position: relative; padding-block: 8px; font-size: 13px; font-weight: 400; text-transform: uppercase; text-decoration: none; letter-spacing: .01em; }
.navlink::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 3px; height: 1px; background: currentColor; transition: right .3s cubic-bezier(.2, .8, .2, 1); }
.navlink:hover::after, .navlink[aria-expanded="true"]::after { right: 0; }
.logo { display: block; color: var(--ink); line-height: 0; }
.logo svg { width: 112px; height: 31px; }
.lang { display: flex; gap: 10px; font-size: 13px; }
.lang b { font-weight: 600; }
.lang a { text-decoration: none; color: var(--muted); }
.lang a:hover { color: var(--ink); }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
.iconbtn svg { width: 20px; height: 20px; }
.mainbar__right .iconbtn { margin-left: -10px; margin-right: -10px; }

/* Мегаменю */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid #eee; box-shadow: 0 24px 40px -24px rgba(30, 25, 20, .25); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .35s cubic-bezier(.2, .8, .2, 1), visibility .25s; }
.mega.is-open { opacity: 1; visibility: visible; transform: none; }
.mega__grid { display: grid; grid-template-columns: 1.1fr .9fr 1.5fr; gap: 48px; padding-block: 40px 48px; }
.mega__title { font-size: 34px; font-weight: 300; text-transform: uppercase; letter-spacing: -.015em; line-height: 1.1; }
.mega__lead { margin-top: 14px; max-width: 34ch; color: var(--muted); font-size: 15px; }
.mega__list a { display: block; padding-block: 7px; font-size: 15px; text-decoration: none; color: var(--muted); transition: color .2s; }
.mega__list a:hover, .mega__list a:focus, .mega__list a.is-active { color: var(--ink); }
.mega__fig img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: opacity .25s; }
.mega__fig img.is-swapping { opacity: .3; }

/* Мобільне меню */
.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 0 10px; }
.burger span { display: block; height: 1px; background: var(--ink); }
.mnav { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: #fff; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s, transform .4s cubic-bezier(.2, .8, .2, 1), visibility .25s; }
.mnav.is-open { opacity: 1; visibility: visible; transform: none; }
.mnav__head { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 58px; padding-inline: 20px 10px; }
.mnav__head .logo { grid-column: 2; }
.mnav__close { grid-column: 3; justify-self: end; width: 44px; height: 44px; }
.mnav__panes { position: relative; flex: 1; overflow: hidden; }
.mnav__pane { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 26px 24px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.mnav__pane--sub { transform: translateX(100%); background: #fff; }
.mnav.drilled .mnav__pane:not(.mnav__pane--sub) { transform: translateX(-30%); }
.mnav.drilled .mnav__pane--sub { transform: none; }
.mnav__main li > a, .mnav__main li > button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 46px; font-size: 17px; font-weight: 300; text-transform: uppercase; text-decoration: none; text-align: left; }
.mnav__main svg { width: 22px; height: 22px; color: var(--muted); }
.mnav__sec { margin-top: 32px; display: grid; gap: 4px; font-size: 14px; font-weight: 300; }
.mnav__sec a { display: inline-block; padding-block: 5px; text-decoration: none; }
.mnav__ig { margin: 16px 0 0 -10px; }
.mnav__lang { display: flex; gap: 18px; margin-top: auto; padding-top: 28px; font-size: 13px; }
.mnav__lang b { font-weight: 600; }
.mnav__lang a { color: var(--muted); text-decoration: none; }
.mnav__back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-left: -6px; font-size: 14px; color: var(--muted); }
.mnav__back svg { width: 18px; height: 18px; transform: rotate(180deg); }
.mnav__subtitle { margin: 12px 0 18px; font-size: 26px; font-weight: 300; text-transform: uppercase; letter-spacing: -.015em; }

/* Герой */
.hero { position: relative; display: flex; align-items: flex-end; min-height: min(calc(100svh - 92px), 900px); overflow: hidden; background: #3b342c; color: #fff; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 62%; animation: settle 1.8s cubic-bezier(.16, 1, .3, 1) both; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(24, 18, 12, .68) 0, rgba(24, 18, 12, .28) 32%, rgba(24, 18, 12, 0) 58%); }
.hero .wp-block-cover__inner-container { position: relative; z-index: 1; padding-block: 0 clamp(52px, 7vh, 72px); }
.hero h1 { max-width: 19ch; font-size: clamp(31px, 3.5vw, 48px); }
.hero .textlink { display: inline-block; margin-top: 16px; }
.hero__down { position: absolute; z-index: 1; left: 50%; bottom: 16px; width: 44px; height: 32px; margin-left: -22px; display: flex; align-items: center; justify-content: center; }
.hero__down svg { width: 24px; height: 12px; }
@keyframes settle { from { transform: scale(1.05); } to { transform: none; } }

/* Слайдер напрямів */
.slider { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 12px) / 4); column-gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; min-width: 0; }
.card a { display: block; text-decoration: none; }
.card img { width: 100%; aspect-ratio: 4/5.2; object-fit: cover; margin-bottom: 14px; transition: filter .4s; }
.card a:hover img { filter: brightness(.92); }
.card p { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.card .more { display: inline-block; margin-top: 8px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.slider__ctrl { display: flex; align-items: center; gap: 4px; margin-top: 30px; }
.slider__rail { flex: 1; height: 2px; margin-right: 18px; background: #e7e5e1; }
.slider__rail i { display: block; height: 100%; background: #6a6661; transition: margin-left .15s linear; }
.arrow { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
.arrow svg { width: 22px; height: 22px; }
.arrow--prev svg { transform: rotate(180deg); }
.arrow:disabled { opacity: .28; cursor: default; }

/* Деталі */
.features { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; margin-top: 32px; }
.features__list button { display: block; width: 100%; min-height: 42px; text-align: left; font-size: 14px; font-weight: 300; text-transform: uppercase; color: var(--muted); letter-spacing: .01em; transition: color .2s, padding .3s cubic-bezier(.2, .8, .2, 1); }
.features__list button:hover, .features__list button.is-active { color: var(--ink); }
.features__list button.is-active { padding-left: 12px; font-weight: 400; }
.features__fig img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: opacity .25s; }
.features__fig img.is-swapping { opacity: .35; }
.features__fig figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.cta { display: grid; grid-template-columns: minmax(0, 1.5fr) auto; align-items: center; gap: 32px 64px; margin-top: clamp(64px, 8vw, 100px); }
.cta p { max-width: 58ch; margin-top: 12px; font-size: 15px; color: #55514c; }

/* Засновник */
.founder__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 110px); align-items: center; }
.founder img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 22%; }
.founder blockquote p { font-size: clamp(26px, 3vw, 40px); font-weight: 300; text-transform: uppercase; letter-spacing: -.015em; line-height: 1.14; text-wrap: balance; }
.founder cite { display: block; margin-top: 14px; font-size: 14px; font-style: normal; color: var(--muted); }
.founder .wp-block-media-text__content > p { max-width: 56ch; margin-top: 18px; }
.founder .textlink { display: inline-block; margin-top: 22px; }

/* Проєкти */
.projects__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.projects__grid a { display: block; text-decoration: none; }
.projects__grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 12px; transition: filter .4s; }
.projects__grid a:hover img { filter: brightness(.92); }
.meta { font-size: 12px; color: var(--muted); }

/* Етапи */
.stages__list { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); margin-top: 36px; }
.stages__list li { counter-increment: s; display: grid; grid-template-columns: 30px minmax(0, 1fr); padding-block: 18px 22px; border-top: 1px solid var(--line); }
.stages__list li::before { content: counter(s); font-size: 13px; font-weight: 300; color: var(--muted); font-variant-numeric: tabular-nums; }
.stages__list p { grid-column: 2; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Матеріали */
.materials__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px 64px; }
.materials dl > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 16px; padding-block: 15px; border-top: 1px solid #cfccc6; }
.materials dl > div:last-child { border-bottom: 1px solid #cfccc6; }
.materials dt { font-size: 13px; color: #55514c; }
.materials dd { font-size: 16px; font-weight: 300; }

/* Контакт */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(40px, 7vw, 110px); }
.contact__list { margin-top: 32px; }
.contact__list > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); padding-block: 9px; font-size: 15px; }
.contact__list dt { color: var(--muted); }
.contact__list a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lead { display: grid; gap: 18px; align-content: start; }
.field label { display: block; margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 46px; padding: 10px 0; border: 0; border-bottom: 1px solid #a8a49e; border-radius: 0; background: transparent; color: var(--ink); font: 300 16px/1.4 var(--font); transition: border-color .2s; -webkit-appearance: none; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%232a2826' d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; background-size: 12px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field [aria-invalid="true"] { border-color: #a4372a; box-shadow: 0 1px 0 #a4372a; }
.field__err { margin-top: 6px; font-size: 13px; color: #a4372a; }
.lead button { justify-self: start; cursor: pointer; border: 0; }
.lead__done { padding: 12px 14px; background: var(--fog); font-size: 14px; outline: none; }

/* Підвал */
.site-footer { padding-block: 56px 88px; background: var(--ink); color: #e9e6e1; --lamp: #c6a988; font-size: 14px; }
.site-footer .logo { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer__grid p { margin-bottom: 10px; font-size: 12px; text-transform: uppercase; color: #b3aea7; }
.footer__grid nav a, .footer__grid div a, .footer__grid span { display: block; padding-block: 4px; font-weight: 300; text-decoration: none; }
.footer__grid a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1080px) {
  .mainbar__left, .mainbar__right { display: none; }
  .mainbar { grid-template-columns: 1fr auto 1fr; }
  .mainbar .logo { grid-column: 2; }
  .mainbar__mobile { display: flex; grid-column: 3; margin-right: -10px; }
  .topbar { display: none; }
  .hero { min-height: min(calc(100svh - 58px), 820px); }
  .mega { display: none; }
  .slider { grid-auto-columns: calc((100% - 2 * 12px) / 3); }
  .stages__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero > img { object-position: 74% 50%; }
  .hero { min-height: min(calc(100svh - 58px), 720px); }
  .slider { grid-auto-columns: 74%; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); scroll-padding-right: var(--gutter); }
  .features { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .features__fig { order: -1; position: sticky; top: 58px; z-index: 2; margin-inline: calc(-1 * var(--gutter)); padding: 0 0 10px; background: var(--fog); }
  .features__fig figcaption { padding-inline: var(--gutter); }
  .cta { grid-template-columns: minmax(0, 1fr); }
  .founder__grid, .contact__grid, .materials__grid { grid-template-columns: minmax(0, 1fr); }
  .projects__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .stages__list { grid-template-columns: minmax(0, 1fr); }
  .materials dl > div { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid > .logo { grid-column: 1 / -1; }
  .wp-block-button__link { width: 100%; }
  .wp-block-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
