:root {
  --bg: #FFFFFF;
  --bg-2: #F5F5F5;
  --bg-3: #EEEEEE;
  --bg-card: #FFFFFF;
  --text: #212121;
  --text-muted: #424242;
  --text-dim: #757575;
  --accent: #1565C0;
  --accent-hover: #0D47A1;
  --accent-light: #42A5F5;
  --cyan: #1565C0;
  --teal: #00838F;
  --border: rgba(0, 0, 0, 0.12);
  --heading: #111111;
  --font-heading: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

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

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 8px 16px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

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

.main-nav { display: flex; align-items: center; }
.nav-list { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav-link {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-link:hover, .nav-link.active { color: var(--accent); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(21, 101, 192, 0.07), transparent 60%),
    var(--bg);
  padding: 90px 0 70px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(30px, 5.4vw, 52px);
  line-height: 1.2;
  letter-spacing: 2px;
  text-transform: uppercase;
  max-width: 960px;
  margin: 0 auto;
  color: var(--heading);
}

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0 0 40px;
  color: var(--heading);
  position: relative;
  padding-bottom: 16px;
}
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 56px; height: 3px; background: var(--accent);
}

/* ===== About ===== */
.about-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.about-image img { border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18); }
.about-text p { margin: 0 0 18px; color: var(--text); }
.about-text p:last-child { margin-bottom: 0; }

/* ===== Stats ===== */
.stats { margin-top: 60px; background: var(--bg-2); border-radius: 8px; padding: 40px; border: 1px solid var(--border); }
.stats-label {
  font-family: var(--font-heading);
  font-weight: 400; font-size: 18px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 30px;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { position: relative; }
.stat::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  right: -12px;
  width: 1px;
  background: var(--border);
}
.stat:last-child::after { display: none; }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-icon { width: 34px; height: 34px; color: var(--accent); flex: none; }
.stat-number {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 56px; line-height: 1;
  color: var(--heading);
}
.stat-desc { margin-top: 8px; color: var(--text-muted); font-size: 14px; overflow-wrap: break-word; hyphens: auto; }

/* ===== Collapsible policy ===== */
.policy-section { padding: 40px 0; }
.doc-collapse { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; }
.doc-collapse summary {
  cursor: pointer; padding: 20px 28px;
  font-family: var(--font-heading); letter-spacing: 1px; text-transform: uppercase;
  color: var(--heading); list-style: none;
}
.doc-collapse summary::-webkit-details-marker { display: none; }
.doc-collapse summary::after { content: "+"; float: right; font-size: 22px; color: var(--accent); }
.doc-collapse[open] summary::after { content: "\2212"; }
.doc-collapse[open] summary { border-bottom: 1px solid var(--border); }

.doc-body { padding: 28px; font-size: 14px; color: var(--text-muted); }
.doc-body h3 {
  font-family: var(--font-heading); font-weight: 400; text-transform: uppercase;
  letter-spacing: 1px; color: var(--heading); font-size: 18px; margin: 0 0 20px;
}
.doc-body h4 {
  font-family: var(--font-heading); font-weight: 400; text-transform: uppercase;
  letter-spacing: 1px; color: var(--accent); font-size: 15px; margin: 24px 0 12px;
}
.doc-body p { margin: 0 0 12px; }
.doc-body ul { margin: 0 0 12px; padding-left: 20px; }
.doc-body li { margin: 6px 0; }

/* ===== Solutions ===== */
.solutions { background: var(--bg-3); }
.solutions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.solution-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px 22px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.solution-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14); }
.solution-name {
  font-family: var(--font-heading); font-weight: 500;
  font-size: 20px; letter-spacing: 1px; text-transform: uppercase; color: var(--heading);
}
.solution-sub { font-size: 13px; color: var(--text-muted); }
.solution-card::after { content: "\2192"; position: relative; align-self: flex-end; color: var(--accent); font-size: 18px; }

.solutions-note { color: var(--text-muted); max-width: 820px; }
.solutions-note p { margin: 0 0 14px; }
.solutions-note a { color: var(--cyan); }
.solutions-footnote { font-size: 13px; color: var(--text-dim); }

/* ===== Clients ===== */
.clients-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: center;
}
.client {
  background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 20px;
  display: flex; align-items: center; justify-content: center;
  min-height: 90px;
}
.client img { height: 55px; width: auto; max-width: 100%; object-fit: contain; }
.client[href]:hover { opacity: 0.85; }

/* ===== Contacts ===== */
.contacts-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; }
.contacts-info h3 {
  font-family: var(--font-heading); font-weight: 400; text-transform: uppercase;
  letter-spacing: 1px; color: var(--heading); font-size: 20px; margin: 0 0 14px;
}
.contacts-info p { color: var(--text-muted); margin: 0 0 12px; }
.contacts-info p:last-of-type { margin-bottom: 30px; }
.contacts-info a { color: var(--cyan); }

/* ===== Form ===== */
.contacts-form { background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 34px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; }

.honeypot { position: absolute !important; left: -9999px !important; top: -9999px !important; height: 0; width: 0; overflow: hidden; }

.consent-check { margin-bottom: 10px; }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-muted); cursor: pointer; }
.checkbox-label input { width: auto; margin-top: 3px; accent-color: var(--accent); }
.checkbox-label + .checkbox-label { margin-top: 12px; }
.checkbox-label a { color: var(--cyan); text-decoration: underline; }
.consent-note { font-size: 12px; color: var(--text-dim); margin: 0 0 20px; }

.btn-submit {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 400; letter-spacing: 2px; text-transform: uppercase;
  font-size: 16px;
  color: #fff;
  background: var(--accent);
  border: none; border-radius: 6px;
  padding: 14px 42px;
  cursor: pointer;
  transition: background .2s;
}
.btn-submit:hover { background: var(--accent-hover); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status { margin-top: 16px; font-size: 14px; min-height: 20px; }
.form-status.success { color: #2E7D32; }
.form-status.error { color: #C62828; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-3); border-top: 1px solid var(--border); padding: 60px 0 30px; font-size: 14px; color: var(--text-muted); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-col h4 {
  font-family: var(--font-heading); font-weight: 400; text-transform: uppercase;
  letter-spacing: 1px; color: var(--heading); font-size: 16px; margin: 0 0 16px;
}
.footer-col p { margin: 0 0 10px; }
.footer-col ul { margin: 0; padding-left: 18px; }
.footer-col li { margin: 6px 0; }
.footer-col a { color: var(--cyan); }
.footer-copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); text-align: center; color: var(--text-dim); font-size: 13px; }

/* ===== Modal ===== */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); }
.modal-dialog {
  position: relative; z-index: 1;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-width: 760px; width: 100%;
  max-height: 86vh;
  display: flex; flex-direction: column;
}
.modal-close {
  position: absolute; top: 10px; right: 14px; z-index: 2;
  background: none; border: none; color: var(--text); font-size: 30px; line-height: 1; cursor: pointer;
}
.modal-close:hover { color: var(--accent); }
.modal-scroll { overflow-y: auto; padding: 28px; }
.modal-scroll h3 {
  font-family: var(--font-heading); font-weight: 400; text-transform: uppercase;
  letter-spacing: 1px; color: var(--heading); font-size: 20px; margin: 0 0 16px; padding-right: 30px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat::after { display: none; }
  .stat:nth-child(odd)::after { display: block; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts-layout { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  .nav-toggle { display: flex; }
  .nav-list {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg-3); flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-list.open { display: flex; }
  .nav-list li { border-bottom: 1px solid var(--border); }
  .nav-link { display: block; padding: 14px 24px; border-bottom: none; }
  .stats { padding: 24px 20px; }
  .stats-grid { grid-template-columns: 1fr; gap: 20px; }
  .stat::after {
    display: block;
    top: auto; bottom: -10px; left: 0; right: 0;
    width: auto; height: 1px;
  }
  .solutions-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 60px 0 48px; }
  .section { padding: 56px 0; }
  .stat-number { font-size: 42px; }
}
