:root {
  --navy: #0f1f3d;
  --navy-mid: #1a3260;
  --gold: #c9a84c;
  --gold-light: #e4c97a;
  --bg: #f6f8fc;
  --white: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(15, 31, 61, 0.08);
  --font: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1140px, 92%); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}
.brand { flex-shrink: 0; }
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: flex-end;
}
.brand img { height: 40px; width: auto; }
.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.lang-switch {
  position: relative;
  flex-shrink: 0;
}
.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.lang-switch__btn:hover,
.lang-switch.open .lang-switch__btn {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 31, 61, 0.08);
}
.lang-switch__flag {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  box-shadow: 0 0 0 1px rgba(15, 31, 61, 0.08);
}
.lang-switch__menu a .lang-switch__flag {
  flex-shrink: 0;
}
.lang-switch__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 200;
}
.lang-switch__menu li { margin: 0; }
.lang-switch__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.lang-switch__menu a:hover { background: #f8fafc; }
.lang-switch__menu a span:first-child {
  font-size: 20px;
  line-height: 1;
}
.nav > a, .nav-dropdown > button {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
.nav > a:hover, .nav-dropdown > button:hover { background: #f1f5f9; }
.nav > a.active { color: var(--navy-mid); font-weight: 600; }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
}
.nav-dropdown-menu a:hover { background: #f8fafc; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(201,168,76,.35); }
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
}
.btn-outline-dark {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--navy);
}
.btn-sm { padding: 8px 14px; font-size: 13px; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--navy);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, #243f75 100%);
  color: #fff;
  padding: 88px 0 96px;
}
.hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 20px;
  max-width: 720px;
}
.hero p {
  font-size: 1.125rem;
  color: rgba(255,255,255,.85);
  max-width: 640px;
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: #fff;
  padding: 64px 0 72px;
}
.page-hero h1 { margin: 0 0 12px; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.page-hero p { margin: 0; color: rgba(255,255,255,.85); max-width: 680px; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin: 0 0 12px; color: var(--navy); }
.section-head p { margin: 0; color: var(--text-muted); }
.tagline {
  text-align: center;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 40px;
  letter-spacing: .02em;
}

/* Cards grid */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-logo {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
  object-fit: contain;
  object-position: left;
}
.card-logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.card h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--navy); }
.card .verb {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.card p { margin: 0 0 20px; color: var(--text-muted); font-size: 14px; }
.card > p:not(.legal-note) { flex: 1; }
.card-bottom {
  margin-top: auto;
  display: grid;
  grid-template-rows: auto minmax(2.5em, auto);
  gap: 12px;
  align-items: start;
}
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.legal-note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
  min-height: 2.5em;
}

/* Cycle table */
.cycle-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cycle-table th, .cycle-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.cycle-table th { background: #f8fafc; color: var(--navy); font-weight: 600; }
.cycle-table tr:last-child td { border-bottom: none; }

/* Group schema */
.group-schema {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.8;
  color: var(--navy);
  overflow-x: auto;
}

/* Entity blocks */
.entity-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.entity-card h3 { margin: 0 0 16px; color: var(--navy); }
.entity-card ul { margin: 0; padding-left: 20px; color: var(--text-muted); }
.entity-card li { margin-bottom: 8px; }

/* News */
.news-card .date { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.contact-form { position: relative; }
.form-status {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
}
.form-status.is-pending {
  background: #f3f6fb;
  color: var(--navy);
}
.form-status.is-success {
  background: #e8f6ee;
  color: #1b5e35;
}
.form-status.is-error {
  background: #fdecea;
  color: #8a1f1a;
}
.contact-form .btn[disabled] {
  opacity: .65;
  cursor: wait;
}
.turnstile-slot {
  margin: 0 0 14px;
  min-height: 65px;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  padding: 56px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: #fff; margin: 0 0 16px; font-size: 14px; }
.footer-grid a, .footer-grid p { font-size: 13px; color: rgba(255,255,255,.7); display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
}
.footer-legal strong { color: rgba(255,255,255,.85); }
.company-ids {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.company-ids li {
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text-muted);
}
.company-ids strong {
  color: var(--text);
  font-weight: 600;
}
.phone-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}
.phone-list li {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.phone-list strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
  margin-bottom: 2px;
}
.map-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.presence-map {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.footer-bottom {
  margin-top: 20px;
  font-size: 12px;
  color: rgba(255,255,255,.45);
}

/* Solution detail */
.solution-block {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.solution-block:last-child { border-bottom: none; }
.solution-block img.card-logo,
.solution-block > img {
  max-height: 56px;
  width: auto;
}

@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .header-tools { margin-left: auto; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .header-inner { position: relative; flex-wrap: wrap; }
  .nav-dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 12px; }
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .solution-block { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
