/* Fortis BM — site stilleri */

:root {
  --navy: #0f2747;
  --navy-2: #163560;
  --blue: #1f64d1;
  --blue-dark: #1750ad;
  --blue-50: #eaf1fc;
  --ink: #14213d;
  --text: #465366;
  --muted: #6b778a;
  --line: #e1e6ee;
  --bg-soft: #f4f6fa;
  --success: #1b7f3b;
  --danger: #b42318;
  --radius: 10px;
  --container: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

svg.i { width: 22px; height: 22px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 8px;
  border: 1px solid var(--blue); background: var(--blue); color: #fff;
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn svg.i { width: 18px; height: 18px; }
.btn-light { background: #fff; border-color: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-50); border-color: var(--blue-50); color: var(--navy); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.08); border-color: #fff; color: #fff; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { background: var(--bg-soft); border-color: var(--line); color: var(--ink); }
.btn[disabled] { opacity: .6; pointer-events: none; }


/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { font-size: 1.45rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; margin-right: auto; }
.brand span { color: var(--blue); }
.brand:hover { color: var(--navy); }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink); font-weight: 500; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--blue); }
.nav a.active { color: var(--blue); border-bottom-color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 9px 18px; }
.lang-toggle, .nav-toggle {
  font: inherit; font-size: .85rem; font-weight: 600;
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); cursor: pointer;
}
.lang-toggle:hover { border-color: var(--blue); color: var(--blue); }
.nav-toggle { display: none; line-height: 0; padding: 7px 8px; }
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #c9d3e3; padding: 84px 0 96px; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.12rem; max-width: 560px; margin-bottom: 1.8em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.hero .kicker { color: #8fb4f0; }
.hero-diagram { width: 100%; max-width: 460px; justify-self: end; }

/* Highlights under hero */
.highlights { border-bottom: 1px solid var(--line); background: #fff; }
.highlights .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.highlight { display: flex; gap: 14px; align-items: center; padding: 26px 20px; border-left: 1px solid var(--line); }
.highlight:first-child { border-left: 0; padding-left: 0; }
.highlight strong { display: block; color: var(--ink); font-size: .98rem; }
.highlight small { color: var(--muted); font-size: .86rem; }

.icon-box {
  display: inline-grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--blue-50); color: var(--blue);
}

/* ---------- Page head ---------- */
.page-head { background: var(--navy); color: #c9d3e3; padding: 56px 0 52px; }
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head p { max-width: 680px; margin: 0; font-size: 1.08rem; }
.breadcrumb { font-size: .86rem; color: #8d9bb3; margin-bottom: 10px; }
.breadcrumb a { color: #c9d3e3; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 700px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.group-title { display: flex; align-items: center; gap: 12px; font-size: 1rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 18px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.group + .group { margin-top: 40px; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
a.card:hover { border-color: #b9cbea; box-shadow: 0 6px 18px rgba(15, 39, 71, .07); color: var(--text); }
.card .icon-box { margin-bottom: 18px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; font-size: .9rem; color: var(--blue); }
.card .more svg.i { width: 16px; height: 16px; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.top { align-items: start; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list svg.i { width: 20px; height: 20px; color: var(--blue); margin-top: 2px; }

/* Service models */
.model { display: flex; flex-direction: column; }
.model ul { margin: 16px 0 0; padding-left: 1.1em; color: var(--text); font-size: .93rem; }
.model li { margin-bottom: 4px; }

/* Sectors */
.sector { display: flex; gap: 14px; align-items: flex-start; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.sector h3 { font-size: 1rem; margin-bottom: .2em; }
.sector p { font-size: .9rem; color: var(--muted); margin: 0; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-top: 18px; border-top: 3px solid var(--blue); }
.steps li::before { content: "0" counter(step); display: block; font-weight: 700; color: var(--blue); font-size: .9rem; margin-bottom: 6px; }
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: .94rem; margin: 0; }


/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--blue);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; color: var(--muted); }


/* ---------- Services page ---------- */
.services-layout { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; padding-bottom: 40px; }

/* Desktop: sticky side menu */
.service-nav { position: sticky; top: 96px; margin-top: 56px; }
.side-group + .side-group { margin-top: 22px; }
.side-group h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 8px; }
.side-group ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.side-group a {
  display: flex; align-items: center; gap: 10px;
  margin-left: -2px; padding: 7px 12px;
  border-left: 2px solid transparent;
  font-size: .93rem; color: var(--text);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.side-group a svg.i { width: 17px; height: 17px; color: #9aa6b8; transition: color .15s ease; }
.side-group a:hover { color: var(--blue); background: var(--bg-soft); }
.side-group a.active { color: var(--blue); border-left-color: var(--blue); font-weight: 600; background: var(--blue-50); }
.side-group a:hover svg.i, .side-group a.active svg.i { color: var(--blue); }
.side-help { margin-top: 28px; padding: 18px; border-radius: var(--radius); background: var(--bg-soft); font-size: .9rem; }
.side-help p { margin: 0 0 10px; color: var(--ink); font-weight: 500; }
.side-help a { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-top: 4px; }
.side-help svg.i { width: 16px; height: 16px; }

/* Mobile: sticky "go to service" select (hidden on desktop) */
.service-jump { display: none; }

.service-group-head { padding: 56px 0 8px; }
.service-group-head h2 { margin-bottom: .3em; }
.service-group-head p { color: var(--muted); max-width: 720px; margin: 0; }

.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 44px 0; border-bottom: 1px solid var(--line); }
.service-detail:last-child { border-bottom: 0; }
.service-detail .title { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.service-detail .title h3 { font-size: 1.3rem; margin: 0; }
.service-detail p { margin: 0; }
.scope { background: var(--bg-soft); border-radius: var(--radius); padding: 22px 24px; }
.scope h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.scope .check-list { margin: 0; gap: 8px; font-size: .95rem; }
.scope .check-list svg.i { width: 18px; height: 18px; }

/* ---------- About page ---------- */
.prose { max-width: 780px; }

/* ---------- Contact page ---------- */
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-card h3 { font-size: .95rem; margin-bottom: .15em; }
.contact-card p, .contact-card a { margin: 0; color: var(--text); }
.contact-card a:hover { color: var(--blue); }

.form-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 500; font-size: .9rem; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); padding: 11px 13px;
  border: 1px solid #cfd6e0; border-radius: 8px; background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(31, 100, 209, .18); border-color: var(--blue); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .87rem; color: var(--muted); margin-bottom: 20px; }
.consent input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; font-size: .95rem; display: none; }
.form-status.ok { display: block; color: var(--success); }
.form-status.err { display: block; color: var(--danger); }

.map { margin-top: 48px; height: 400px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Legal page ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.note { padding: 14px 18px; border-left: 3px solid var(--blue); background: var(--blue-50); border-radius: 0 8px 8px 0; font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0b1d36; color: #9fadc4; font-size: .93rem; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.site-footer .brand { color: #fff; display: inline-block; margin-bottom: 12px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: #9fadc4; }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg.i { width: 17px; height: 17px; margin-top: 3px; color: #6f86ad; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .highlights .container { grid-template-columns: repeat(2, 1fr); }
  .highlight:nth-child(3) { border-left: 0; padding-left: 0; }
  .highlight { border-top: 1px solid var(--line); }
  .highlight:nth-child(-n+2) { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-layout { grid-template-columns: 230px 1fr; gap: 40px; }
  .service-detail { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .header-actions .btn { display: none; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 6px 20px 14px;
    box-shadow: 0 10px 20px rgba(15, 39, 71, .08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a.active { border-bottom-color: var(--line); }
  .hero .container, .split, .contact-layout, .service-detail { grid-template-columns: 1fr; }
  .hero-diagram { justify-self: center; max-width: 380px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .service-detail { gap: 20px; }
  .services-layout { display: block; }
  .service-side { display: none; }
  .service-nav { position: sticky; top: 72px; z-index: 10; margin: 0 -20px; }
  .service-jump {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 20px; background: #fff; border-bottom: 1px solid var(--line);
  }
  .service-jump label { font-size: .85rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
  .service-jump select {
    flex: 1; min-width: 0; font: inherit; font-size: .95rem; color: var(--ink);
    padding: 9px 12px; border: 1px solid #cfd6e0; border-radius: 8px; background: #fff;
  }
  html { scroll-padding-top: 140px; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .service-nav { margin: 0 -16px; }
  .service-jump { padding: 10px 16px; }
  .grid-4, .steps, .form-row, .footer-grid, .highlights .container { grid-template-columns: 1fr; }
  .highlight { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .highlight:nth-child(2) { border-top: 1px solid var(--line); }
  .highlight:first-child { border-top: 0; }
  .form-card { padding: 22px; }
  .info-table th { width: 40%; }
  .map { height: 300px; }
}
.note:empty { display: none; }
