/* Qwerty Group – static site */
:root {
  --navy: #14213d;
  --navy-2: #1f2f57;
  --accent: #2f6fed;
  --accent-dark: #1f55c4;
  --text: #2a2f3a;
  --muted: #5f6878;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --border: #e2e6ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 33, 61, .08);
  --max: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3, h4 { color: var(--navy); line-height: 1.3; margin: 0 0 .6em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px; gap: 20px;
}
.logo img { height: 46px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a {
  display: block; padding: 8px 16px; border-radius: 8px;
  color: var(--navy); font-weight: 600; font-size: .98rem;
}
.main-nav a:hover { background: var(--bg-soft); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--accent); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 8px; width: 44px; height: 44px; cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--navy);
  margin: 0 auto; position: relative; content: ""; transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 20px 16px; }
  .main-nav a { padding: 12px 10px; }
  .logo img { height: 38px; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--navy); color: #dfe5f2; }
.section.dark h2, .section.dark h3, .section.dark h4, .section.dark strong { color: #fff; }
.section.dark a { color: #9cc0ff; }

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.split.reverse > .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.media-stack { display: grid; gap: 20px; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > .split-media { order: 0; }
  .section { padding: 52px 0; }
}

.lead { font-size: 1.08rem; }
.narrow { max-width: 860px; }
.center { text-align: center; }

/* ---------- Brand logos ---------- */
.brand-logo { max-height: 90px; width: auto; margin: 0 0 28px; }
.brand-logo.wide { max-width: 420px; max-height: none; }
.center .brand-logo { margin-left: auto; margin-right: auto; }

.brand-nav {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  padding: 18px 0; border-bottom: 1px solid var(--border); background: #fff;
}
.brand-nav a {
  padding: 6px 16px; border: 1px solid var(--border); border-radius: 999px;
  font-size: .92rem; font-weight: 600; color: var(--navy);
}
.brand-nav a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ---------- Feature grid ---------- */
.features {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px; margin-top: 28px;
}
.feature {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; font-size: .97rem;
}
.feature strong { color: var(--navy); }
.section.soft .feature { background: #fff; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 28px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}

.check-list { padding-left: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 14px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
}

.cta-box {
  background: var(--navy-2); border-radius: var(--radius); padding: 40px;
  color: #fff; text-align: center;
}
.cta-box p { margin-bottom: .4em; }
.cta-box strong { color: #fff; }
.cta-mail { font-size: 1.25rem; margin-top: 18px !important; color: #9cc0ff; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.address {
  font-style: normal; background: var(--bg-soft); border-radius: var(--radius);
  padding: 22px 26px; margin-bottom: 18px; line-height: 1.75;
}
.legal-note { font-size: .92rem; color: var(--muted); }

.map {
  width: 100%; height: 340px; border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow); margin-top: 10px;
}

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 111, 237, .15);
}
.form-field textarea { min-height: 160px; resize: vertical; }
.req { color: #d33; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; font-size: .97rem; }
.checkbox input { margin-top: 6px; }
.hp { position: absolute; left: -9999px; }

.btn {
  display: inline-block; background: var(--accent); color: #fff; border: 0;
  padding: 13px 34px; font: inherit; font-weight: 700; border-radius: 10px; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); }

.form-msg { padding: 14px 18px; border-radius: 10px; margin-bottom: 18px; display: none; }
.form-msg.ok { display: block; background: #e6f6ec; color: #17603a; }
.form-msg.err { display: block; background: #fdecec; color: #8a1f1f; }

/* ---------- Legal pages ---------- */
.legal h3 { margin-top: 1.6em; }
.legal h4 { margin-top: 1.4em; }
.legal hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }
.legal ul, .legal ol { padding-left: 1.4em; }
.legal li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy); color: #c3cbe0; padding: 34px 0; font-size: .95rem;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
.site-footer a { color: #c3cbe0; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---------- Cookie consent ---------- */
.cc-banner {
  position: fixed; z-index: 1000; right: 20px; bottom: 20px;
  width: 440px; max-width: calc(100vw - 32px); max-height: calc(100vh - 40px); overflow-y: auto;
  background: #fff; color: var(--text); border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(20, 33, 61, .28); padding: 22px 24px 16px;
  font-size: .9rem; line-height: 1.55;
}
.cc-banner[hidden] { display: none; }
.cc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cc-head h2 { font-size: 1.1rem; margin: 0; }
.cc-close { background: none; border: 0; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.cc-text { margin-bottom: 14px; }
.cc-prefs { margin-bottom: 14px; }
.cc-cat { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; background: var(--bg-soft); }
.cc-cat summary {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer; font-weight: 700; color: var(--navy); list-style: none;
}
.cc-cat summary::-webkit-details-marker { display: none; }
.cc-cat summary > span:first-child::before { content: "▸ "; color: var(--muted); }
.cc-cat[open] summary > span:first-child::before { content: "▾ "; }
.cc-cat p { margin: 0; padding: 0 14px 12px; font-size: .84rem; color: var(--muted); }
.cc-always { font-weight: 600; font-size: .8rem; color: #17803d; }
.cc-switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.cc-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.cc-switch i { position: absolute; inset: 0; background: #c5cbd6; border-radius: 22px; transition: .2s; cursor: pointer; }
.cc-switch i::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.cc-switch input:checked + i { background: var(--accent); }
.cc-switch input:checked + i::before { transform: translateX(18px); }
.cc-switch input:focus-visible + i { box-shadow: 0 0 0 3px rgba(47, 111, 237, .3); }
.cc-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cc-btn {
  font: inherit; font-weight: 700; padding: 10px 12px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--navy);
}
.cc-btn:hover { border-color: var(--accent); }
.cc-btn[hidden] { display: none; }
.cc-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.cc-primary:hover { background: var(--accent-dark); }
.cc-ghost { grid-column: 1 / -1; background: #fff; }
.cc-links { display: flex; justify-content: center; gap: 18px; margin-top: 12px; font-size: .82rem; }
@media (max-width: 520px) {
  .cc-banner { left: 16px; right: 16px; bottom: 16px; width: auto; }
}
.footer-links a[data-cc-open] { cursor: pointer; }
