/* ============================================================
   Palleonn Global — design system
   Brand: deep navy + Canada red accent, light backgrounds
   Fonts: Montserrat (headings) + Manrope (body), loaded in HTML
   ============================================================ */

:root {
  --navy: #0f2b46;
  --navy-2: #16405f;
  --navy-3: #20567e;
  --red: #F2A900;
  --red-dark: #C77F00;
  --gold: #c9a24b;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --bg-navy: #0f2b46;
  --text: #1e2a38;
  --muted: #5a6b7c;
  --border: #e3eaf1;
  --ok: #1e8e5a;
  --err: #c0392b;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(15, 43, 70, .08);
  --shadow-lg: 0 18px 50px rgba(15, 43, 70, .14);
  --container: 1360px;
  --font-head: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --header-h: 76px;
  --header-bg: rgba(255,255,255,.92);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  /* Sticky footer: подвал всегда прижат к низу экрана */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
body > main { flex: 1 0 auto; }
body > footer { margin-top: auto; }
img, svg, video { max-width: 100%; height: auto; }
img.emoji { height: 1.15em; width: 1.15em; vertical-align: -0.2em; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.22;
  margin: 0 0 .55em;
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
a { color: var(--navy-3); }
a:hover { color: var(--red); }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }
strong { color: var(--navy); }
:focus-visible { outline: 3px solid rgba(242, 169, 0, .65); outline-offset: 2px; border-radius: 4px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--navy); color: #fff; padding: 10px 18px;
  border-radius: 10px; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; scroll-margin-top: 110px; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--bg-navy); color: #dce8f2; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head {
    margin: 0 auto 44px;
    text-align: center;
}
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }
.section--navy .section-head p { color: #b9cede; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: .8rem;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 28px; border-radius: 12px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  line-height: 1.25; text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--red); color: var(--navy); box-shadow: 0 8px 20px rgba(242, 169, 0, .35); }
.btn--primary:hover { background: var(--red-dark); color: var(--navy); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { color: var(--red); }
.btn--ghost-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--sm { padding: 10px 10px; font-size: 12px; text-align: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.btn-row--center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 120;
  background: var(--header-bg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 22px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 3px; text-decoration: none; flex-shrink: 0; margin: 20px 0; }
.brand-logo-mark { height: 38px; width: auto; display: block; }
.brand-word { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 1.28rem; letter-spacing: .07em; color: #04509A; line-height: 1.05; }
.brand-word small { display: block; font-size: .78rem; font-weight: 400; letter-spacing: .02em; color: #6FA8DC; text-align: right; }
.site-footer .brand-word { color: #fff; }
.main-nav { margin: 0 auto; }
.nav-ctas { display: none; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; align-items: center; justify-content: center; }
.main-nav a {
  display: block; padding: 10px 13px; border-radius: 9px;
  font-weight: 600; font-size: .95rem; color: var(--text); text-decoration: none;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--red-dark); background: rgba(242,169,0,.1); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch { display: flex; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; }
.lang-switch a {
  padding: 7px 11px; font-size: .82rem; font-weight: 700; text-decoration: none;
  color: var(--muted); border-left: 1.5px solid var(--border);
}
.lang-switch a:first-child { border-left: 0; }
.lang-switch a:hover { color: var(--red); background: var(--bg-soft); }
.lang-switch a[aria-current="true"] { background: var(--navy); color: #fff; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1.5px solid var(--border);
  border-radius: 11px; background: #fff; cursor: pointer; padding: 11px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; height: 2.5px; background: var(--navy); border-radius: 2px;
  position: relative; transition: transform .2s, opacity .2s; content: "";
}
.nav-toggle span::before { position: absolute; top: -7px; width: 100%; }
.nav-toggle span::after { position: absolute; top: 7px; width: 100%; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 58%, var(--navy-3) 100%); color: #eaf2f8; }
.hero::after {
  content: ""; position: absolute; right: -140px; top: -140px; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(242,169,0,.28), transparent 65%); pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding: 84px 22px 90px; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.28); border-radius: 100px;
  font-size: .84rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 22px;
  color: #ffe9ad; background: rgba(242,169,0,.16);
}
.hero h1 { color: #fff; font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.4; }
.hero p.lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.4; color: #c3d5e4; max-width: 640px; margin-bottom: 30px; }
.hero .btn-row { margin-bottom: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 0; padding: 0; font-size: .92rem; color: #a9c0d4; }
.hero-points li { display: flex; align-items: center; gap: 8px; margin: 0; }
.hero-points svg { flex-shrink: 0; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero-media .hero-card {
  position: absolute; left: -26px; bottom: 26px; background: #fff; color: var(--text);
  border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 14px; max-width: 280px;
}
.hero-card .num { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; color: var(--red); line-height: 1; }
.hero-card .cap { font-size: .84rem; color: var(--muted); line-height: 1.35; }

/* ---------- Photo zoom (ken burns) ---------- */
.photo-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: transparent; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; animation: kenburns 12s ease-in-out infinite alternate; will-change: transform; }
@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0) rotate(-1deg); }
  100% { transform: scale(1.08) translate(-1%, -1%) rotate(2deg); }
}
.reveal-grid { display: none !important; }

/* ---------- Feature / about block ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.feature {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px;
}
.feature .ico {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; background: rgba(242,169,0,.1); margin-bottom: 14px;
}
.feature h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feature p { font-size: .92rem; color: var(--muted); margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 0 0 26px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 13px; }
.check-list svg { flex-shrink: 0; margin-top: 4px; }

/* ---------- Services cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cddbea; }
.card .ico {
  width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center;
  justify-content: center; background: var(--navy); margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: .93rem; color: var(--muted); flex-grow: 1; }
.card-links { display: flex; gap: 14px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.link-more { font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--navy); }
.link-more:hover { color: var(--red); }
.link-form { font-weight: 700; font-size: .9rem; color: #8A5C00; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; text-decoration: underline; text-underline-offset: 3px; }
.link-form:hover { color: var(--red-dark); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.step {
  position: relative; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 24px 24px 78px;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 22px; top: 22px; width: 38px; height: 38px;
  border-radius: 50%; background: var(--navy); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 1.04rem; margin-bottom: 6px; }
.step p { font-size: .92rem; color: var(--muted); margin: 0; }
.note {
  margin-top: 26px; padding: 16px 20px; border-left: 4px solid var(--gold);
  background: #fdf8ee; border-radius: 0 12px 12px 0; font-size: .92rem; color: #6d5a2a;
}

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 22px; }
.why-item h3 { color: #fff; font-size: 1.02rem; display: flex; gap: 11px; align-items: flex-start; }
.why-item h3 svg { flex-shrink: 0; margin-top: 2px; }
.why-item p { font-size: .9rem; color: #b9cede; margin: 8px 0 0; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.review .stars { color: var(--gold); letter-spacing: 3px; font-size: 1rem; margin-bottom: 12px; }
.review blockquote { margin: 0 0 16px; font-size: .95rem; color: var(--text); flex-grow: 1; }
.review .who { display: flex; align-items: center; gap: 12px; }
.review .avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: .92rem; flex-shrink: 0;
}
.review .who .name { font-weight: 700; font-size: .92rem; color: var(--navy); }
.review .who .meta { font-size: .8rem; color: var(--muted); }
.reviews-note { text-align: center; margin: 34px 0 18px; color: var(--muted); }
/* Лента новостей из админки */
.news-feed { display: grid; gap: 18px; margin-top: 30px; }
#news .btn-row { margin-top: 20px; }
.news-feed[hidden] { display: none; }
.news-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; overflow: hidden; }
.news-card > img { width: calc(100% + 52px); max-width: none; margin: -24px -26px 18px; display: block; height: auto; }
.news-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.news-date { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.news-card p { margin: 0 0 12px; white-space: pre-line; }
.news-full[hidden] { display: none; }
.news-toggle { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: .92rem; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.news-toggle:hover { color: var(--red-dark); }
/* Подпись с кнопкой после карточек отзывов */
.reviews-foot { display: flex; align-items: center; justify-content: center; gap: 14px 26px; margin-top: 34px; flex-wrap: wrap; }
.reviews-foot p { margin: 0; max-width: 620px; color: var(--muted); }
@media (max-width: 640px) { .reviews-foot { text-align: center; } }
/* Шапка секции отзывов — по центру */
#reviews .section-head { text-align: center; }

/* ---------- Social block ---------- */
.social-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.social-card {
  border-radius: var(--radius-lg); padding: 34px 30px; color: #fff;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  min-height: 210px; justify-content: flex-end; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.social-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: #fff; }
.social-card h3 { color: #fff; margin: 0; }
.social-card p { color: rgba(255,255,255,.85); font-size: .92rem; margin: 0; }
.social-card--ig { background: linear-gradient(135deg, #833ab4, #fd1d1d 70%, #fcb045); }
.social-card--yt { background: linear-gradient(135deg, #b31217, #e52d27); }
.social-card .ico-circle {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center; margin-bottom: auto;
}
.yt-facade { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-top: 22px; border: 0; width: 100%; padding: 0; cursor: pointer; background: #0c1f33; display: block; }
.yt-facade img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; opacity: .85; }
.yt-facade .play {
  position: absolute; inset: 0; margin: auto; width: 74px; height: 74px;
  border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center;
  transition: transform .18s ease;
}
.yt-facade:hover .play { transform: scale(1.08); }
.yt-facade .cap { position: absolute; left: 22px; bottom: 16px; color: #fff; font-weight: 600; font-size: .95rem; text-shadow: 0 2px 10px rgba(0,0,0,.5); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .section-head { margin-bottom: 30px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(150deg, var(--navy), var(--navy-2) 70%, var(--navy-3)); color: #dbe7f1; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { max-width: 700px; margin: 0; font-size: 1.06rem; color: #b9cede; }
.breadcrumbs { font-size: .85rem; margin-bottom: 18px; color: #8fa9bf; }
.breadcrumbs a { color: #c7d9e8; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }

/* ---------- Service detail sections ---------- */
.svc { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding: 40px 0; border-bottom: 1px solid var(--border); }
.svc:last-child { border-bottom: 0; }
.svc h2 { font-size: 1.45rem; }
.svc .svc-side p { color: var(--muted); font-size: .95rem; }
.svc ul { columns: 2; column-gap: 34px; }
.svc li { break-inside: avoid; font-size: .96rem; }

/* ---------- Services accordion ---------- */
.svc-acc { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; background: #fff; overflow: hidden; }
.svc-acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 15px; padding: 16px 20px; font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--navy); }
.svc-acc summary::-webkit-details-marker { display: none; }
.svc-acc summary:hover { background: var(--bg-soft); }
.svc-acc summary:focus-visible { outline-offset: -3px; }
.svc-acc .ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(242,169,0,.1); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--navy); }
.svc-acc .chev { margin-left: auto; font-size: 1.5rem; line-height: 1; color: var(--muted); transition: transform .2s; flex-shrink: 0; }
.svc-acc[open] .chev { transform: rotate(90deg); }
.svc-acc ul { columns: 2; column-gap: 34px; padding: 6px 24px 24px 81px; margin: 0; }
.svc-acc li { break-inside: avoid; font-size: .96rem; }
@media (max-width: 640px) { .svc-acc ul { columns: 1; padding-left: 24px; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 19px 56px 19px 22px; position: relative;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 11px; height: 11px;
  border-right: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-item summary:hover { background: var(--bg-soft); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--muted); font-size: .96rem; }
.faq-item .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Contacts ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 26px; }
.contact-list li { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 18px; }
.contact-list .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-list .lbl { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.contact-list a { font-weight: 700; color: var(--navy); text-decoration: none; font-size: 1.04rem; }
.contact-list a:hover { color: var(--red); }
.online-note { display: flex; gap: 12px; align-items: flex-start; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; font-size: .93rem; color: var(--muted); }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 30px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .88rem; color: var(--navy); }
.field label .req { color: #8A5C00; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: 10px; background: #fff; color: var(--text); width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(32,86,126,.15);
}
.field .hint { font-size: .8rem; color: var(--muted); }
.field .error-msg { font-size: .82rem; color: var(--err); display: none; }
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: var(--err); }
.field--invalid .error-msg { display: block; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .87rem; color: var(--muted); grid-column: 1 / -1; flex-wrap: wrap; }
.consent .error-msg { font-size: .82rem; color: var(--err); display: none; flex-basis: 100%; margin: -4px 0 0 29px; }
.consent.field--invalid input { outline: 2px solid var(--err); outline-offset: 2px; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); flex-shrink: 0; }
.consent a { color: var(--navy); }
.form-status { grid-column: 1 / -1; display: none; padding: 14px 18px; border-radius: 10px; font-size: .93rem; }
.form-status--err { display: block; background: #fdecea; color: var(--err); border: 1px solid #f5c6c0; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(10, 25, 40, .62);
  display: none; align-items: flex-start; justify-content: center;
  padding: 40px 16px; overflow-y: auto;
}
.modal-overlay.is-open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius-lg); max-width: 640px; width: 100%;
  padding: 34px 32px; position: relative; box-shadow: var(--shadow-lg);
  margin: auto;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 42px; height: 42px;
  border: 0; border-radius: 50%; background: var(--bg-soft); cursor: pointer;
  font-size: 1.25rem; color: var(--navy); line-height: 1;
}
.modal-close:hover { background: var(--red); color: var(--navy); }
.modal h2 { font-size: 1.4rem; padding-right: 40px; }
.modal .modal-sub { color: var(--muted); font-size: .94rem; margin-bottom: 22px; }
body.modal-open { overflow: hidden; }

/* ---------- Fixed mobile CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 110; display: none;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.mobile-cta .btn { width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-navy); color: #a9c0d4; padding: 60px 0 0; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; }
.site-footer h3 { color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 9px; }
.site-footer a { color: #a9c0d4; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-brand p { margin: 14px 0 18px; font-size: .9rem; color: #8fa9bf; max-width: 300px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 11px; background: rgba(255,255,255,.09);
  display: flex; align-items: center; justify-content: center; transition: background .18s, transform .18s;
}
.footer-social a:hover { background: var(--red); transform: translateY(-2px); }
.footer-social a:hover svg [stroke] { stroke: var(--navy); }
.footer-social a:hover svg [fill]:not([fill="none"]) { fill: var(--navy); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; font-size: .85rem; color: #7d97ac; }
.footer-bottom nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; max-width: 420px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 20px 22px; display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.cookie-banner .btn-row { gap: 10px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 1360px; }
.legal h2 { font-size: 1.3rem; margin-top: 36px; }
.legal p, .legal li { color: var(--muted); }

/* ---------- Thank you ---------- */
.thanks-card { max-width: 640px; margin: 0 auto; text-align: center; }
.thanks-icon {
  width: 84px; height: 84px; border-radius: 50%; background: rgba(30,142,90,.12);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;
}

/* ---------- Reveal animation (subtle, respects reduced motion) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
/* ---------- Tablet: hero paddings below 1400px ---------- */
@media (max-width: 1400px) {
  .hero-inner { gap: 44px; padding: 64px 22px 72px; }
  .hero-media { max-width: 640px; width: 100%; margin: 0 auto; }
  .hero-media .hero-card { left: 12px; }
}

@media (max-width: 1020px) {
  .header-cta-consult { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .cards, .reviews, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-inner { gap: 40px; }
}

@media (max-width: 840px) {
  .section { padding: 54px 0; }
  .main-nav, .header-cta-assess { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .header-actions .lang-switch { margin-left: auto; }
  .nav-toggle { margin-left: 0; }

  .main-nav.is-open {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg); padding: 14px 22px 20px;
  }
  .main-nav.is-open ul { flex-direction: column; gap: 2px; }
  .main-nav.is-open a { padding: 13px 12px; font-size: 1.02rem; }
  .main-nav.is-open .nav-ctas { display: grid; gap: 10px; margin-top: 14px; }
  .main-nav.is-open .nav-ctas .btn { width: 100%; }

  .hero-inner { grid-template-columns: 1fr; padding: 56px 14px 64px; }
  .hero-media { order: -1; max-width: 520px; }
  .hero-media .hero-card { left: 12px; bottom: -18px; }
  .split, .contact-grid, .social-panel { grid-template-columns: 1fr; gap: 34px; }
  .steps { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; gap: 14px; padding: 32px 0; }
  .svc ul { columns: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .mobile-cta { display: block; }
  body { padding-bottom: 74px; }
  .modal { padding: 26px 20px; }
  .modal-overlay { padding: 20px 10px; }
}

@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .cards, .reviews, .why-grid, .features { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom nav { margin-left: 0; }
  .hero .btn-row .btn { width: 100%; }
  .btn-row .btn { flex: 1 1 auto; }
  .container .header-inner { gap: 12px; }
  .brand-logo-mark { height: 30px; }
  .brand-word { font-size: 1.02rem; }
}

@media (max-width: 500px) {
  .container { padding: 14px; }
  .header-inner { padding: 0 14px; margin: 0; width: 100%; box-sizing: border-box; max-width: 100%; }
  .lang-switch a { padding: 7px 9px; }
}

/* ---------- Landing: compact header menu ---------- */
@media (max-width: 1400px) {
  .header-inner { gap: 14px; }
  .main-nav a { padding: 10px 7px; font-size: .85rem; white-space: nowrap; }
  .lang-switch a { padding: 7px 8px; }
}
@media (max-width: 1380px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: block; }
  .main-nav.is-open {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg); padding: 14px 22px 20px;
  }
  .main-nav.is-open ul { flex-direction: column; gap: 2px; }
  .main-nav.is-open a { padding: 13px 12px; font-size: 1.02rem; white-space: normal; }
  .main-nav.is-open .nav-ctas { display: grid; gap: 10px; margin-top: 14px; }
  .main-nav.is-open .nav-ctas .btn { width: 100%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .photo-frame img { animation: none; }
  .photo-frame .reveal-grid { display: none !important; }
}
