/* EVERLEGAL — за Brand Guidelines 2026 (Edition 02)
   Палітра: Deep Harbor, Coastal Blue, Sky Blue + нейтральні Ink / Paper / White. Пропорція 60 / 30 / 10.
   Шрифт: лише Roboto (Light для дисплею, Bold для заголовків), Roboto Mono для даних. */
:root {
  --harbor: #134B71;      /* Deep Harbor — основа, заголовки, панелі */
  --harbor-120: #0E3552;  /* відтінок 120% */
  --harbor-60: #426F8E;
  --harbor-10: #E8EEF3;
  --coastal: #10B6E6;     /* Coastal Blue — акценти (як у логотипі) */
  --coastal-10: #EAF6FC;
  --sky: #71BADA;         /* Sky Blue */
  --ink: #15242E;
  --paper: #F4F7FA;
  --white: #FFFFFF;
  --line: #DCE4EB;
  --muted: #4A6377;       /* 6.3:1 на білому */
  --on-dark: #D5E2EC;     /* текст на Deep Harbor */
  --ok: #1F7A50;
  --err: #B3261E;
  --radius: 8px;
  --sans: Roboto, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --mono: 'Roboto Mono', ui-monospace, monospace;
  --mark: url('/img/mark.svg');
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; color: var(--harbor); }
h2 { font-weight: 700; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.01em; }
h3 { font-weight: 700; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 820px; }

/* Section kicker: коротка блакитна лінія + підпис Deep Harbor (AA-контраст) */
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--harbor); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 32px; height: 3px; background: var(--coastal); flex: none; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--white); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  border: 0; border-radius: var(--radius); padding: 15px 26px; cursor: pointer;
  font: 500 16px/1 var(--sans); letter-spacing: .02em; text-decoration: none; transition: background .15s;
}
.btn--ink { background: var(--harbor); color: var(--white); }
.btn--ink:hover { background: var(--harbor-120); }
.btn--gold { background: var(--coastal); color: var(--ink); }   /* Ink на Coastal — 7:1 */
.btn--gold:hover { background: #3EC4EB; }
.btn--ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.45); }
.btn--sm { padding: 12px 18px; font-size: 14px; min-height: 44px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* topbar — логотип у повному кольорі на білому */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: inline-flex; padding: 8px 0; }   /* мін. ширина 120px — дотримано */
.logo img { display: block; width: 174px; height: auto; }
.topbar__nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; font-weight: 500; }
.topbar__nav a { text-decoration: none; color: var(--harbor); }
.topbar__nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--coastal); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.topbar__phone { font: 500 15px var(--mono); text-decoration: none; white-space: nowrap; color: var(--harbor); }

/* hero — Deep Harbor + знак як «водяний знак» */
.hero { position: relative; overflow: hidden; color: var(--white); padding: 80px 0 88px;
  background: linear-gradient(90deg, rgba(14,53,82,.97) 0%, rgba(19,75,113,.9) 42%, rgba(19,75,113,.55) 72%, rgba(19,75,113,.75) 100%),
              url(/img/hero-lighthouse.jpg) 58% 60% / cover no-repeat var(--harbor); }
.hero::after { display: none; } /* знак уже є на фото маяка */
.hero::after {
  content: ''; position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  width: 62%; aspect-ratio: 201 / 147; background: var(--mark) center / contain no-repeat; opacity: .07; pointer-events: none;
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.hero__copy { display: flex; flex-direction: column; gap: 26px; }
.award-pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white);
  border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 16px 6px 6px; font-size: 13px; font-weight: 500;
}
.award-pill span { white-space: nowrap; flex: none; background: var(--coastal); color: var(--ink); border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.award-pill:hover { border-color: var(--coastal); }
.hero h1 { color: var(--white); font-weight: 300; font-size: clamp(38px, 5vw, 64px); line-height: 1.08; letter-spacing: -.015em; }
.hero h1 em { font-style: normal; font-weight: 700; color: var(--coastal); }
.hero__lead { font-size: 19px; font-weight: 300; color: var(--on-dark); margin: 0; max-width: 600px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { padding-left: 32px; position: relative; color: var(--white); }
.ticks b { font-weight: 500; }
/* Знак як маркер списку (Brand Guidelines, «Accent & bullet») */
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 6px; width: 18px; height: 13px;
  background: var(--coastal); -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat;
}
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hero__stats div { border-top: 2px solid var(--coastal); padding-top: 12px; display: grid; gap: 2px; }
.hero__stats b { font-size: 38px; font-weight: 700; line-height: 1.05; color: var(--white); }
.hero__stats span { font-size: 14px; color: var(--sky); }

/* form */
.card { background: var(--white); color: var(--ink); border-radius: 12px; box-shadow: 0 24px 60px -30px rgba(14, 53, 82, .55); }
.form { padding: 32px; display: grid; gap: 16px; position: relative; }
.form__title { font-size: 26px; font-weight: 700; line-height: 1.2; color: var(--harbor); }
.form__sub { color: var(--muted); font-size: 15px; margin-top: 4px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--harbor); }
.field input, .field select, .field textarea {
  font: 400 16px var(--sans); color: var(--ink); width: 100%; min-height: 48px;
  border: 1px solid #C4D1DC; border-radius: var(--radius); padding: 13px 14px; background: var(--paper); transition: border .15s, box-shadow .15s;
}
.field input[type="tel"] { font-family: var(--mono); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--coastal); box-shadow: 0 0 0 3px rgba(16, 182, 230, .25); background: var(--white); }
.field.is-invalid input { border-color: var(--err); }
.field__err { color: var(--err); font-weight: 500; }
.field__err:empty { display: none; }
.form__legal { font-size: 13px; color: var(--muted); margin: 0; display: flex; gap: 8px; align-items: flex-start; }
.form__legal svg { flex: none; margin-top: 3px; color: var(--harbor); }
.form__legal a { color: var(--harbor); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__ok { position: absolute; inset: 0; background: var(--white); border-radius: 12px; display: grid; place-content: center; text-align: center; padding: 30px; gap: 8px; }
.form__ok b { font-size: 24px; color: var(--harbor); }
.form__ok .ok-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--coastal-10); color: var(--harbor); display: grid; place-items: center; font-size: 30px; margin: 0 auto 8px; }
.form__error { color: var(--err); font-size: 14px; font-weight: 500; margin: 0; }

/* awards strip — як «Who we are»: блакитні лінії зверху, Deep Harbor */
.awards { background: var(--paper); border-bottom: 1px solid var(--line); }
.awards__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.awards__grid div { border-top: 2px solid var(--coastal); padding-top: 12px; }
.awards b { display: block; color: var(--harbor); font-weight: 700; font-size: 17px; }
.awards span { font-size: 14px; color: var(--muted); }

/* sections */
.section { padding: 100px 0; }
.section--dark { position: relative; overflow: hidden; background: var(--harbor); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--soft { background: var(--paper); }
.section__head { max-width: 760px; margin-bottom: 48px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.more { font-weight: 500; color: var(--harbor); }

/* situations */
.sit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sit { background: var(--paper); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 12px; border-top: 3px solid transparent; transition: border-color .2s, background .2s; }
.sit:hover { background: var(--white); border-top-color: var(--coastal); box-shadow: 0 16px 40px -28px rgba(14,53,82,.5); }
/* Іконки: 2px stroke, rounded, Deep Harbor, сітка 24px */
.sit__ico { width: 32px; height: 32px; fill: none; stroke: var(--harbor); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sit h3 { font-size: 20px; }
.sit p { margin: 0; color: var(--muted); flex: 1; font-size: 16px; }
.sit__cta { align-self: flex-start; background: none; border: 0; padding: 6px 0; min-height: 44px; color: var(--harbor); font: 500 15px var(--sans); cursor: pointer; text-decoration: underline; text-decoration-color: var(--coastal); text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* why — Deep Harbor із водяним знаком */
#why::after {
  content: ''; position: absolute; right: -8%; bottom: -18%; width: 46%; aspect-ratio: 201 / 147;
  background: var(--mark) center / contain no-repeat; opacity: .06; pointer-events: none;
}
#why .wrap { position: relative; z-index: 1; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.why { border-top: 2px solid var(--coastal); padding-top: 22px; }
.why__n { font: 400 14px var(--mono); color: var(--coastal); }
.why h3 { font-size: 19px; margin: 10px 0 10px; }
.why p { margin: 0; color: var(--on-dark); font-size: 16px; }
.quote-hero { margin: 72px 0 0; font-weight: 300; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.4; max-width: 920px; color: var(--white); }
.quote-hero cite { display: block; font: 500 14px var(--sans); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); margin-top: 16px; }

/* steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { counter-increment: s; border-top: 2px solid var(--harbor); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.steps li:nth-child(n+3) { border-top-color: var(--coastal); }
.steps li::before { content: counter(s, decimal-leading-zero); font: 400 14px var(--mono); color: var(--harbor-60); }
.steps b { font-size: 18px; color: var(--harbor); font-weight: 700; }
.steps span { color: var(--muted); font-size: 16px; }

/* cases */
.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.case { background: var(--white); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; align-content: start; }
.case b { font-size: 16px; color: var(--harbor); }
.case span { font-size: 15px; color: var(--muted); }
.case--cta { background: var(--harbor); align-content: center; gap: 16px; }
.case--cta b { color: var(--white); font-size: 22px; font-weight: 300; }

/* news */
.news { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.news__item { background: var(--paper); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.news__item h3 { font-size: 18px; line-height: 1.4; }
.news__item p { margin: 0; color: var(--on-dark); font-weight: 300; }
.news__item a { margin-top: auto; font-weight: 500; color: var(--harbor); }
.news__meta { font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.news__item--feature { position: relative; overflow: hidden; grid-column: span 2; grid-row: span 2; background: var(--harbor); padding: 40px; gap: 18px; }
.news__item--feature::after { content: ''; position: absolute; right: -60px; bottom: -40px; width: 260px; aspect-ratio: 201/147; background: var(--mark) center/contain no-repeat; opacity: .08; }
.news__item--feature > * { position: relative; z-index: 1; }
.news__item--feature h3 { color: var(--white); font-size: clamp(26px, 2.6vw, 34px); font-weight: 300; line-height: 1.2; }
.news__item--feature .news__meta { color: var(--sky); }
.news__item--feature a { color: var(--coastal); }

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.review { margin: 0; background: var(--white); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; border-left: 3px solid var(--coastal); }
.review blockquote { margin: 0; font-weight: 300; font-size: 19px; line-height: 1.45; color: var(--harbor); }
.review figcaption { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { background: var(--harbor-10); color: var(--harbor); border-radius: 999px; padding: 9px 16px; font-size: 15px; font-weight: 500; }
.chips--ind { margin-top: 18px; }
.chips--ind span { background: transparent; border: 1px solid var(--line); color: var(--muted); font-weight: 400; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; font-weight: 500; font-size: 18px; color: var(--harbor); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--coastal); font-size: 26px; font-weight: 300; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); margin: 12px 0 0; }

/* final */
#final { background: linear-gradient(180deg, rgba(14,53,82,.93), rgba(14,53,82,.82)), url(/img/whale.jpg) center 65% / cover no-repeat var(--harbor-120); }

/* фото з бренд-бука */
.photo-band { position: relative; min-height: 420px; display: grid; align-items: end; color: var(--white);
  background: linear-gradient(0deg, rgba(14,53,82,.96) 0%, rgba(14,53,82,.82) 40%, rgba(19,75,113,.25) 75%, rgba(19,75,113,0) 100%), url(/img/mountains.jpg) center 70% / cover no-repeat var(--harbor); }
.photo-band .wrap { padding-top: 56px; padding-bottom: 56px; }
.photo-band .slogan-big { margin: 0; font-weight: 300; font-size: clamp(28px, 4vw, 52px); letter-spacing: .08em; text-transform: uppercase; line-height: 1.1; }
.photo-band p { margin: 12px 0 0; color: var(--on-dark); font-size: 18px; font-weight: 300; max-width: 640px; }
.steps-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: center; }
.steps-photo { margin: 0; border-radius: 4px; overflow: hidden; aspect-ratio: 610 / 341; background: var(--harbor-10); }
.steps-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.steps-wrap .steps { grid-template-columns: repeat(2, 1fr); }
.final { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.final p { color: var(--on-dark); font-size: 18px; font-weight: 300; }
.contacts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.contacts li { display: grid; color: var(--white); }
.contacts span { font-size: 12px; text-transform: uppercase; letter-spacing: .2em; color: var(--sky); font-weight: 500; }
.contacts a { font: 500 18px var(--mono); text-decoration: none; color: var(--white); }

.footer { background: var(--ink); color: #AFC0CD; padding: 48px 0 100px; font-size: 14px; }
.footer__in { display: grid; gap: 10px; }
.footer__logo { width: 174px; height: auto; margin-bottom: 8px; }
.slogan { margin: 0; font-size: 20px; font-weight: 400; letter-spacing: .04em; color: var(--coastal); }
.footer p { margin: 0; }
.footer__copy a { color: var(--sky); }

.mobile-cta { display: none; }

/* банер згоди на cookies */
.cookie { position: fixed; left: 24px; bottom: 24px; z-index: 80; max-width: 520px; background: var(--ink); color: #D5E2EC;
  border-radius: 12px; padding: 20px 22px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.5); display: grid; gap: 14px; font-size: 14px; line-height: 1.55; }
.cookie p { margin: 0; }
.cookie a { color: var(--sky); }
.cookie__btns { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.footer__copy button { background: none; border: 0; padding: 0; font: inherit; color: var(--sky); text-decoration: underline; cursor: pointer; }

/* партнери */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
@media (max-width: 1080px) { .partners { grid-template-columns: repeat(3, 1fr); } }
.partner { display: grid; gap: 6px; align-content: start; text-decoration: none; color: inherit; }
.partner img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: var(--harbor-10); margin-bottom: 8px; }
.partner b { font-size: 17px; color: var(--harbor); }
.partner small { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--harbor-60); font-weight: 500; }
.partner span { font-size: 14px; color: var(--muted); line-height: 1.5; }
.partner:hover b { text-decoration: underline; text-decoration-color: var(--coastal); text-underline-offset: 5px; text-decoration-thickness: 2px; }
.partners__note { margin: 32px 0 0; display: flex; gap: 12px; align-items: center; color: var(--harbor); font-size: 17px; font-weight: 500; }
.partners__note::before { content: ''; flex: none; width: 32px; height: 3px; background: var(--coastal); }
.sit.is-match { outline: 2px solid var(--coastal); outline-offset: -2px; }

/* responsive */
@media (max-width: 1080px) {
  .hero__grid, .final { grid-template-columns: 1fr; }
  .why-grid, .steps, .cases, .reviews, .awards__grid { grid-template-columns: repeat(2, 1fr); }
  .sit-grid, .news { grid-template-columns: repeat(2, 1fr); }
  .news__item--feature { grid-row: auto; }
  .topbar__nav { display: none; }
  .topbar__phone { margin-left: auto; }
  .hero::after { width: 90%; right: -30%; }
  .hero { background: linear-gradient(180deg, rgba(14,53,82,.92) 0%, rgba(19,75,113,.8) 55%, rgba(19,75,113,.62) 100%), url(/img/hero-lighthouse.jpg) 50% 70% / cover no-repeat var(--harbor); }
  .steps-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .photo-band { min-height: 440px; background-position: center, 72% 40%; }
  .photo-band .wrap { padding-top: 40px; padding-bottom: 40px; }
  .steps-wrap .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 52px; }
  .hero__lead { font-size: 17px; }
  .hero__stats { gap: 14px; }
  .hero__stats b { font-size: 26px; }
  .hero__stats span { font-size: 12px; }
  .section { padding: 64px 0; }
  .sit-grid, .why-grid, .steps, .cases, .reviews, .form__row, .news, .awards__grid { grid-template-columns: 1fr; }
  .news__item--feature { grid-column: auto; padding: 28px; }
  .topbar__in { height: 64px; }
  .logo img { width: 140px; }
  .topbar__phone, .topbar .btn { display: none; }
  .form { padding: 22px; }
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(19, 75, 113, .98);
  }
  .cookie { left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); padding: 16px; }
  .cookie__btns .btn { flex: 1; }
  .partners { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
