/* ===== Brand tokens (taken from the logo) ===== */
:root {
  --navy: #021433;
  --navy-2: #0a2250;
  --navy-3: #13306a;
  --gold: #c9a27a;
  --gold-light: #e6cba8;
  --gold-dark: #a57f58;
  --ink: #1b2233;
  --muted: #5d6679;
  --line: #e6e1d8;
  --soft: #f7f4ef;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2, 20, 51, .10);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: .8em;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
  font: 700 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  color: var(--navy); box-shadow: 0 6px 18px rgba(201, 162, 122, .35);
}
.btn--outline { border-color: var(--gold); color: var(--gold-light); background: transparent; }
.btn--outline:hover { background: var(--gold); color: var(--navy); }
.btn--sm { padding: 10px 18px; font-size: .85rem; }
.btn--block { width: 100%; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(2, 20, 51, .98);
  border-bottom: 1px solid rgba(201, 162, 122, .18);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.header__logo img { height: 50px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: #d8dcea; text-decoration: none; font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav a:hover { color: var(--gold-light); }
.nav__phone-mobile { display: none; }
.header__actions { display: flex; align-items: center; gap: 16px; }
.header__phone { display: flex; align-items: center; gap: 8px; color: var(--white); text-decoration: none; font-weight: 600; white-space: nowrap; }
.header__phone svg { width: 18px; height: 18px; fill: var(--gold); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--gold-light); margin: 5px 0; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(201, 162, 122, .16), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(19, 48, 106, .8), transparent 60%),
    var(--navy);
  padding: 80px 0 90px;
}
.hero__inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: var(--white); }
.hero .eyebrow { color: var(--gold); }
.lead { font-size: 1.15rem; color: #c5cbdc; max-width: 560px; }
.checks { list-style: none; padding: 0; margin: 24px 0 36px; display: grid; gap: 10px; }
.checks li { padding-left: 32px; position: relative; color: #e4e7f0; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(201, 162, 122, .18); color: var(--gold-light); font-size: .8rem; display: grid; place-items: center;
}
.hero__stats { margin-top: 40px; display: flex; gap: 40px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 28px; }
.hero__stats strong { display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--gold-light); line-height: 1; }
.hero__stats span { font-size: .85rem; color: #aab2c8; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.hero__emblem { width: 100%; max-width: 300px; justify-self: center; opacity: .9; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); }
.hero .messengers--dark { border-top: 0; padding-top: 0; margin-top: 16px; }
.hero .messengers--dark span { width: auto; color: #aab2c8; margin-right: 4px; }

/* Contacts: info + map on the left, form on the right */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contacts .map { margin-top: 28px; aspect-ratio: 16 / 10; }
.contacts__form { position: sticky; top: 100px; }

/* ===== Cards & forms ===== */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card { padding: 36px; color: var(--ink); border-top: 4px solid var(--gold); }
.form-card__title { font-size: 1.9rem; }
.form-card__sub { color: var(--muted); }
.lead-form { display: grid; gap: 12px; margin-top: 8px; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; padding: 15px 18px; border: 1px solid var(--line); border-radius: 10px;
  font: 500 1rem var(--sans); color: var(--ink); background: #fbfaf8;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--gold); border-color: transparent; }
/* spam trap: hidden from people, bots fill it and Formspree drops the request */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: .78rem; color: var(--muted); margin: 4px 0 0; }
.form-success { background: #eaf6ee; color: #1e6b3a; padding: 12px 14px; border-radius: 10px; margin: 0; font-weight: 600; }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark .eyebrow { color: var(--gold); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section__head p:last-child { color: var(--muted); }

.grid { display: grid; gap: 24px; }
.grid--services { grid-template-columns: repeat(4, 1fr); }
.grid--team { grid-template-columns: repeat(3, 1fr); }
.grid--reviews { grid-template-columns: repeat(3, 1fr); }

.service {
  padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-light); }
.service__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem;
  background: var(--navy); color: var(--gold-light); margin-bottom: 18px;
}
.service p { color: var(--muted); font-size: .95rem; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 28px 0 36px; display: grid; gap: 20px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; }
.steps li::before {
  content: counter(s, decimal-leading-zero); grid-row: span 2;
  font-family: var(--serif); font-size: 2rem; color: var(--gold); line-height: 1;
}
.steps strong { font-size: 1.1rem; }
.steps span { color: #aab2c8; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.values div { padding: 18px; border-left: 3px solid var(--gold); background: var(--soft); border-radius: 0 10px 10px 0; }
.values strong { display: block; font-family: var(--serif); font-size: 1.25rem; }
.values span { font-size: .85rem; color: var(--muted); }

/* Team: compact cards, small round photo centred on top */
.member { background: var(--white); border-radius: var(--radius); padding: 28px 24px 24px; text-align: center; border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; }
.avatar-btn { border: 0; padding: 0; background: none; border-radius: 50%; cursor: zoom-in; margin-bottom: 14px; transition: transform .2s; }
.avatar-btn:hover { transform: scale(1.05); }
.avatar-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.avatar { display: block; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--white), 0 0 0 4px var(--gold); }
.member__body { display: contents; }
.member h3 { font-size: 1.35rem; margin: 0 0 .15em; }
.member__role { color: var(--gold-dark); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .7em; }
.member__tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.member__tags li { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--soft); color: var(--navy-2); border: 1px solid var(--line); }
.member__bio { position: relative; color: var(--muted); font-size: .9rem; line-height: 1.6; margin: 16px 0 0; text-align: left; align-self: stretch; }
.member__bio p { margin: 0 0 .7em; }
.member__bio p:last-child { margin-bottom: 0; }
.member__bio.is-clamped { max-height: calc(1.6em * 5); overflow: hidden; }
.member__bio.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3em; background: linear-gradient(rgba(255, 255, 255, 0), var(--white)); }
.member__more { align-self: flex-start; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--gold-dark); font: 700 .85rem var(--sans); cursor: pointer; }
.member__more::after { content: " ↓"; }
.member__more[aria-expanded="true"]::after { content: " ↑"; }
.member__more:hover { color: var(--navy); }

/* Photo lightbox */
.lightbox { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(1, 10, 28, .85); cursor: zoom-out; }
.lightbox__box { position: relative; margin: 0; max-width: min(420px, 100%); animation: pop .25s ease; }
.lightbox__box img { display: block; width: 100%; max-height: 78vh; object-fit: cover; border-radius: var(--radius); border: 1px solid rgba(201, 162, 122, .4); }
.lightbox__box figcaption { color: var(--gold-light); text-align: center; font-family: var(--serif); font-size: 1.4rem; margin-top: 10px; }
.lightbox__close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--gold); color: var(--navy); font-size: 1.6rem; line-height: 1; cursor: pointer; }

.included { text-align: left; }
.steps--grid { grid-template-columns: 1fr 1fr; gap: 24px 40px; }
.values__title { font-size: 1.5rem; margin-top: 1.2em; }
.values--4 { grid-template-columns: 1fr 1fr; margin-top: 12px; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Reviews */
.review { margin: 0; padding: 30px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 12px; }
.review blockquote { margin: 0 0 16px; font-family: var(--serif); font-size: 1.25rem; line-height: 1.4; }
.review figcaption { font-weight: 700; color: var(--muted); }

.review-cta { max-width: 640px; margin: 0 auto; text-align: center; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px 28px; border-top: 4px solid var(--gold); }
.review-cta .stars { font-size: 1.6rem; margin-bottom: 14px; }
.review-cta p { color: var(--muted); margin-bottom: 24px; }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.8rem; color: var(--gold-dark); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding-bottom: 12px; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--navy), var(--navy-3)); color: var(--white); padding: 60px 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h2 { margin-bottom: .2em; }
.cta p { color: #c5cbdc; margin: 0; }
.cta__buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* Contacts */
.contact-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; }
.contact-list span { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dark); }
.contact-list a { text-decoration: none; font-weight: 600; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 600; transition: all .2s; }
.socials a:hover { background: var(--navy); color: var(--gold-light); border-color: var(--navy); }

/* ===== Image placeholders (replace with real <img>) ===== */
.ph {
  display: grid; place-items: center; text-align: center; border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, rgba(201, 162, 122, .08) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #e9e3d9, #d9cfbf);
  color: var(--gold-dark); font-weight: 700;
}
.ph small { font-weight: 500; opacity: .8; }
.ph--tall { aspect-ratio: 4 / 5; }
.ph--wide { aspect-ratio: 3 / 2; }
.ph--map { aspect-ratio: 4 / 3; }
.ph--portrait { aspect-ratio: 4 / 5; border-radius: 0; }
.section--dark .ph { background: repeating-linear-gradient(45deg, rgba(201, 162, 122, .08) 0 12px, transparent 12px 24px), var(--navy-2); color: var(--gold); }

/* ===== Footer ===== */
.footer { background: #010c20; color: #9aa3ba; padding: 50px 0 30px; }
.footer__inner { display: grid; gap: 24px; justify-items: center; text-align: center; }
.footer__logo { height: 64px; width: auto; }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: var(--gold-light); }
.footer__copy { font-size: .85rem; margin: 0; }

/* Floating call button */
.fab {
  display: none; position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  place-items: center;
}
.fab svg { width: 26px; height: 26px; fill: var(--navy); }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(1, 10, 28, .7); }
.modal__box { position: relative; width: 100%; max-width: 440px; animation: pop .25s ease; }
.modal__close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--muted); }
/* short screens (small phones, landscape): let the pop-up form scroll instead of being cut off */
@media (max-height: 720px) { .modal, .lightbox { align-items: start; overflow-y: auto; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }


/* ===== Messengers / share / cookie ===== */
.messengers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.messengers span { width: 100%; color: var(--muted); font-size: .85rem; }
/* quiet outlined chat buttons; a small coloured dot hints at each messenger */
.msg { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .85rem;
  transition: border-color .2s, background .2s; }
.msg::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.msg:hover { border-color: var(--gold); background: rgba(201, 162, 122, .08); }
.msg--tg::before { background: #229ed9; }
.msg--viber::before { background: #7360f2; }
.msg--wa::before { background: #25d366; }
.hero .msg { border-color: rgba(255, 255, 255, .18); color: #d8dcea; }
.hero .msg:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(201, 162, 122, .08); }

.share { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: .9rem; }
.share__btn { padding: 7px 14px; border: 1px solid rgba(201, 162, 122, .35); border-radius: 999px; background: none; color: var(--gold-light); text-decoration: none; font: 600 .85rem var(--sans); cursor: pointer; }
.share__btn:hover { background: var(--gold); color: var(--navy); }

.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 560px; margin: 0 auto;
  background: var(--white); color: var(--ink); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
  padding: 18px 20px; display: grid; gap: 12px; border-top: 3px solid var(--gold); font-size: .92rem;
}
.cookie p { margin: 0; }
.cookie__btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ===== Legal page ===== */
.container.legal { padding-top: 60px; padding-bottom: 90px; }
.legal ul { padding-left: 1.2em; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.6rem; margin-top: 1.6em; }
.legal p, .legal li { color: #3a4254; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .header__phone span { display: none; }
  .nav { gap: 18px; }
}
@media (max-width: 960px) {
  .burger { display: block; }
  .header__actions { margin-left: auto; }
  .hero__stats { justify-content: center; text-align: center; }
  .nav {
    position: fixed; top: 76px; left: 0; right: 0; bottom: 0; flex-direction: column; gap: 0;
    background: var(--navy); padding: 20px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 16px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1.1rem; }
  .nav__phone-mobile { display: block; color: var(--gold-light) !important; font-weight: 700; }
  .header__phone { display: none; }

  .hero { padding: 50px 0 60px; }
  .hero__inner, .split, .contacts { grid-template-columns: 1fr; gap: 40px; }
  .hero__emblem { display: none; }
  .container.legal { padding-top: 40px; padding-bottom: 60px; }
  .contacts__form { position: static; }
  .grid--services, .grid--team { grid-template-columns: repeat(2, 1fr); }
  .grid--reviews { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .fab { display: grid; }
  .cookie { bottom: 86px; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .header__inner { height: 68px; gap: 12px; }
  .nav { top: 68px; }
  .header__logo img { height: 40px; }
  .header__actions { gap: 6px; }
  .header__actions .btn--sm { padding: 9px 14px; font-size: .8rem; }
  .grid--services { grid-template-columns: 1fr; gap: 12px; }
  .service { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px; }
  .service__icon { width: 44px; height: 44px; font-size: 1.2rem; margin: 0; grid-row: span 2; }
  .service h3 { font-size: 1.2rem; margin-bottom: .2em; }
  .grid--team { grid-template-columns: 1fr; gap: 14px; }
  .member { padding: 22px 18px 18px; }
  .avatar { width: 76px; height: 76px; }
  .lightbox__close { top: 6px; right: 6px; }
  .steps--grid { grid-template-columns: 1fr; }
  .values--4 { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero__stats strong { font-size: 1.8rem; }
  .hero__stats span { font-size: .78rem; display: block; line-height: 1.35; margin-top: 4px; }
  .cta__buttons, .cta__buttons .btn { width: 100%; }
  /* hero: equal full-width buttons, messengers in one even row */
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .messengers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .messengers span, .hero .messengers--dark span { grid-column: 1 / -1; width: auto; }
  .msg { text-align: center; padding: 11px 6px; }
  /* bigger tap target for "Читати далі" */
  .member__more { padding: 10px 0 2px; }
  /* phones use the native share sheet, so hide the duplicate share links */
  .share.has-native .share__btn:not(#share-native) { display: none; }
}
