/* Shared styles for SEO landing pages — matches main site tokens */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #eef4fb;
  --surface: #ffffff;
  --ink: #0f2744;
  --muted: #4a6076;
  --line: #c9d9ea;
  --blue: #1b6fd4;
  --blue-deep: #0f4fa8;
  --blue-soft: #e8f1fb;
  --blue-ring: rgba(27, 111, 212, 0.2);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Manrope", sans-serif;
  --fs-xs: 1rem;
  --fs-sm: 1.1875rem;
  --fs-base: 1.3125rem;
  --fs-md: 1.4375rem;
  --fs-h1: clamp(2.1rem, 4.5vw, 3.1rem);
  --page: 1140px;
  --radius: 16px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.wrap { width: min(var(--page), calc(100% - 2.25rem)); margin-inline: auto; }

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; min-height: 72px; min-width: 0;
}
.logo {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1;
  min-width: 0; flex-shrink: 1;
}
.logo-name { color: var(--ink); }
.logo-mark {
  color: #fff; background: var(--blue);
  padding: 0.28rem 0.58rem 0.32rem; border-radius: 9px;
  font-size: 0.92em; box-shadow: 0 6px 14px rgba(27, 111, 212, 0.28);
}
.nav-links {
  display: flex; gap: 1.4rem; list-style: none;
  font-size: var(--fs-sm); font-weight: 650; color: var(--muted);
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 0.55rem; flex-shrink: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.1rem; padding: 0.7rem 1.25rem; border-radius: 14px;
  font-weight: 700; font-size: var(--fs-base); border: 1.5px solid transparent;
  cursor: pointer; transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 2.85rem; padding: 0.6rem 1.1rem; font-size: var(--fs-sm); }
.btn-lg { min-height: 3.55rem; padding: 0.95rem 1.55rem; font-size: var(--fs-md); }
.btn-main { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(27, 111, 212, 0.28); }
.btn-main:hover { background: var(--blue-deep); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-tg { background: #1789c4; color: #fff; box-shadow: 0 10px 24px rgba(23, 137, 196, 0.28); }
.btn-tg:hover { background: #1477ab; }
.btn-tg svg { width: 1.15em; height: 1.15em; }

.page-hero {
  position: relative; padding: 2.6rem 0 1.8rem; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(680px 380px at 92% 8%, rgba(27, 111, 212, 0.16), transparent 60%),
    linear-gradient(165deg, #f8fbff 0%, #eaf2fb 55%, #dfeaf7 100%);
}
.crumb {
  font-size: var(--fs-xs); color: var(--muted); margin-bottom: 0.85rem;
}
.crumb a { color: var(--blue); }
.crumb a:hover { text-decoration: underline; }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-h1); letter-spacing: -0.035em; line-height: 1.12;
  max-width: 18ch; margin-bottom: 0.85rem;
}
.page-lead {
  max-width: 42rem; color: var(--muted); font-size: var(--fs-md);
  margin-bottom: 1.35rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.section { padding: 2.2rem 0; }
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.55rem, 2.8vw, 2rem); letter-spacing: -0.03em;
  margin-bottom: 0.55rem;
}
.section-lead { color: var(--muted); margin-bottom: 1.25rem; max-width: 40rem; }

.prose { max-width: 42rem; color: var(--muted); display: grid; gap: 0.85rem; }
.prose strong { color: var(--ink); }

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 0.85rem;
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem 1.2rem;
  min-height: 3rem;
}
.card h3 {
  font-family: var(--font-display); font-size: 1.2rem;
  letter-spacing: -0.02em; margin-bottom: 0.35rem;
}
.card p { color: var(--muted); font-size: var(--fs-sm); }
.card a { color: var(--blue); font-weight: 700; }
.card a:hover { text-decoration: underline; }

.link-list { display: grid; gap: 0.45rem; list-style: none; }
.link-list a {
  display: flex; align-items: center; min-height: 3rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 0.85rem 1rem; font-weight: 650;
}
.link-list a:hover { border-color: var(--blue); color: var(--blue); }

#contact { background: var(--bg); padding-bottom: 3rem; }
.contact-shell {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem;
}
.contact-info, form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.4rem;
}
.phones { display: grid; gap: 0.2rem; margin: 0.55rem 0 1.15rem; }
.phones a {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem); letter-spacing: -0.02em;
}
.phones a:hover { color: var(--blue); }
.meta { display: grid; gap: 0.8rem; }
.meta dt {
  font-size: var(--fs-xs); font-weight: 750; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 0.15rem;
}
.meta dd { color: var(--muted); font-size: var(--fs-sm); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.1rem; }

form { display: grid; gap: 0.75rem; }
label {
  display: grid; gap: 0.3rem; font-size: var(--fs-sm);
  font-weight: 600; color: var(--muted);
}
input, textarea {
  width: 100%; padding: 0.85rem 1rem; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
input:focus, textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-ring);
}
textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1.6fr 0.7fr; gap: 0.75rem; }
.hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  left: 0 !important;
  top: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.form-status { font-size: var(--fs-sm); }
.form-status.ok { color: #0f7a45; }
.form-status.err { color: #b42318; }
form.is-sending .btn { opacity: 0.7; pointer-events: none; }
form .btn { width: 100%; }

footer {
  border-top: 1px solid var(--line); padding: 1.4rem 0 5.5rem;
  color: var(--muted); font-size: var(--fs-sm);
}
.foot {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.75rem;
}

.fab {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  display: flex; flex-direction: column; gap: 0.45rem;
}
.fab a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.65rem 1.1rem; border-radius: 999px;
  font-weight: 700; font-size: var(--fs-sm); color: #fff;
  box-shadow: 0 10px 24px rgba(15, 39, 68, 0.2);
}
.fab-call { background: var(--blue); }
.fab-tg { background: #1789c4; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .contact-shell { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .page-hero h1 { max-width: none; }
  .wrap { width: min(var(--page), calc(100% - 1.5rem)); }
  .nav-row { min-height: 58px; gap: 0.5rem; }
  .logo { font-size: 1.05rem; }
  .nav-actions .btn-main { display: none; }
  .nav-actions .btn-tg span { display: none; }
  .nav-actions .btn-tg {
    width: 2.6rem; min-height: 2.6rem; min-width: 2.6rem; padding: 0;
  }
}
@media (max-width: 520px) {
  .nav-actions { display: none !important; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .fab {
    left: max(0.75rem, env(safe-area-inset-left));
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    flex-direction: row;
  }
  .fab a { flex: 1; min-height: 3rem; }
  footer { padding-bottom: 6.5rem; }
  body { padding-bottom: 0; }
  .card-grid { grid-template-columns: 1fr; }
}
