/* Tokens + pieces shared by all versions */
:root {
  --cream: #F6F1E8;
  --cream-2: #EDE5D6;
  --ink: #2A1D14;
  --terracotta: #C85228;
  --navy: #1E2A44;
  --dark: var(--ink);
  --font-head-ua: 'Cormorant Garamond', serif;
  --font-head: var(--font-head-ua);
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Manrope', system-ui, sans-serif;
}
:root[data-theme="navy"] { --dark: var(--navy); }
:root[lang="en"] { --font-head: 'Instrument Serif', serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; margin: 0; line-height: 1.02; letter-spacing: -0.01em; }
em { font-style: italic; }
.mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em; text-transform: lowercase; }

/* Logo recreated in type so it works on light and dark */
.logo { text-decoration: none; display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--terracotta); }
.logo b { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 30px; letter-spacing: -0.01em; }
.logo small { font-family: var(--font-mono); font-size: 9px; margin-top: 4px; }

.lang-switch { display: inline-flex; font-family: var(--font-mono); font-size: 13px; gap: 2px; }
.lang-switch button { background: none; border: 0; padding: 4px 6px; cursor: pointer; color: inherit; opacity: .45; font: inherit; }
.lang-switch button.is-active { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: 16px; padding: 16px 26px; border-radius: 999px; background: var(--terracotta); color: var(--cream); text-decoration: none; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); background: #B3461F; }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { background: transparent; }

/* Placeholder image */
.ph { position: relative; background: linear-gradient(135deg, #D9CBB4, #BFAE93); overflow: hidden; }
.ph::after { content: attr(data-label); position: absolute; left: 14px; bottom: 12px; font-family: var(--font-mono); font-size: 12px; color: rgba(42,29,20,.7); }
.ph--green { background: linear-gradient(135deg, #9FB08E, #6E8466); }
.ph--blue { background: linear-gradient(135deg, #A9B7C6, #7A8CA3); }
.ph--sand { background: linear-gradient(135deg, #E2C9A6, #C9A57C); }
.ph--dark { background: linear-gradient(135deg, #5C4A3C, #3A2C22); }
.ph--dark::after, .ph--green::after, .ph--blue::after { color: rgba(246,241,232,.85); }
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* FAQ accordion */
.faq details { border-top: 1px solid currentColor; padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid currentColor; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; font-family: var(--font-head); font-size: 28px; line-height: 1.15; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-mono); font-size: 22px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 14px 0 0; max-width: 680px; opacity: .8; }

/* Pop-up */
dialog#consult { border: 0; padding: 0; border-radius: 28px; width: 520px; max-width: calc(100vw - 32px); background: var(--cream); color: var(--ink); }
dialog#consult::backdrop { background: rgba(42,29,20,.55); backdrop-filter: blur(3px); }
.consult { padding: 44px 44px 40px; position: relative; }
.consult-close { position: absolute; top: 18px; right: 20px; background: none; border: 0; font-size: 28px; cursor: pointer; color: inherit; line-height: 1; }
.consult h3 { font-size: 42px; margin: 10px 0 8px; }
.consult > p, .consult form > p { margin: 0 0 26px; opacity: .75; font-size: 15px; }
.field { display: block; margin-bottom: 20px; }
.field span { font-family: var(--font-mono); font-size: 12px; display: block; margin-bottom: 4px; opacity: .7; }
.field input { width: 100%; border: 0; border-bottom: 1.5px solid rgba(42,29,20,.35); background: transparent; padding: 8px 0; font: inherit; font-size: 18px; color: inherit; outline: none; }
.field input:focus { border-color: var(--terracotta); }
.messengers { display: flex; gap: 10px; margin: 6px 0 30px; }
.messengers label { flex: 1; cursor: pointer; }
.messengers input { position: absolute; opacity: 0; }
.messengers label span { display: block; text-align: center; padding: 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(42,29,20,.3); font-weight: 600; font-size: 15px; }
.messengers input:checked + span { background: var(--ink); color: var(--cream); box-shadow: none; }
.messengers input:focus-visible + span { outline: 2px solid var(--terracotta); outline-offset: 2px; }
.consult .btn { width: 100%; justify-content: center; }
.consult-thanks { text-align: center; padding: 30px 0 10px; }
.consult-error { margin: 14px 0 0; color: var(--terracotta); font-size: 14px; text-align: center; }
.phone-note { margin: 8px 0 0; font-size: 13px; opacity: .6; }
.phone-note.is-error { color: var(--terracotta); opacity: 1; }
/* Phone field: country-code picker (intl-tel-input), dressed to match the other fields */
.field--phone .iti { display: block; width: 100%; --iti-hover-color: var(--cream-2); --iti-border-color: rgba(42,29,20,.2); --iti-dialcode-color: inherit; --iti-country-selector-bg: var(--cream); }
.field--phone .iti span { font: inherit; display: revert; margin: 0; opacity: 1; }
.field--phone .iti__selected-country { font-size: 18px; color: inherit; }
.field--phone .iti__dropdown-content { background: var(--cream); color: var(--ink); border-radius: 14px; box-shadow: 0 12px 40px rgba(42,29,20,.18); font-size: 15px; }
.field--phone .iti__search-input { font: inherit; font-size: 15px; background: transparent; color: inherit; border: 0; padding: 10px calc(var(--iti-spacer-horizontal) * 2 + var(--iti-clear-icon-size)) 10px calc(var(--iti-spacer-horizontal) * 2 + var(--iti-globe-icon-size)); }
.field--phone .iti__dial-code { opacity: .6; }

