﻿:root {
  --primary: #0a3d62;
  --primary-dark: #062a45;
  --accent: #1e90ff;
  --accent-hover: #0d7ad9;
  --text: #1a1a1a;
  --text-light: #3d3d3d;
  --bg: #ffffff;
  --bg-alt: #f0f5fa;
  --border: #c5d0de;
  --focus: #ff8c00;
  --success: #0d8050;
  --card-bg: #f0f5fa;
  --header-bg: #0a3d62;
  --hero-gradient: linear-gradient(135deg, #0a3d62 0%, #0c4d7a 100%);
}

[data-theme="dark"] {
  --primary: #4da3ff;
  --primary-dark: #0d1b2a;
  --accent: #3b9eff;
  --accent-hover: #1e7fd6;
  --text: #e8eef5;
  --text-light: #b0c0d0;
  --bg: #0d1b2a;
  --bg-alt: #152536;
  --border: #2a3f55;
  --focus: #ffb347;
  --success: #3dd68c;
  --card-bg: #152536;
  --header-bg: #0a1929;
  --hero-gradient: linear-gradient(135deg, #0a1929 0%, #12263a 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  font-size: 1.05rem;
  transition: background-color 0.3s, color 0.3s;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary);
  color: white;
  padding: 0.8rem 1.3rem;
  z-index: 1000;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

header {
  background: var(--header-bg);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1.3rem;
}
.logo:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.logo svg {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.logo-text { line-height: 1.2; }
.logo-text small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}
nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.5rem;
  border-radius: 5px;
}
nav a:hover, nav a:focus { background: rgba(255,255,255,0.15); }
nav a:focus-visible { outline: 3px solid var(--focus); }

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.lang-switcher { display: flex; gap: 0.3rem; }
.lang-btn {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: white;
  padding: 0.28rem 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  min-width: 38px;
}
.lang-btn:hover, .lang-btn:focus, .lang-btn.active {
  background: white;
  color: #0a3d62;
  border-color: white;
}
[data-theme="dark"] .lang-btn:hover,
[data-theme="dark"] .lang-btn:focus,
[data-theme="dark"] .lang-btn.active {
  color: #0a1929;
}
.lang-btn:focus-visible { outline: 3px solid var(--focus); }

.theme-toggle {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.5);
  color: white;
  width: 42px;
  height: 38px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.theme-toggle:hover, .theme-toggle:focus {
  background: rgba(255,255,255,0.15);
}
.theme-toggle:focus-visible { outline: 3px solid var(--focus); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 0.35rem 0.7rem;
  border-radius: 5px;
  font-size: 1.25rem;
  cursor: pointer;
}

.hero {
  background: var(--hero-gradient);
  color: white;
  padding: 4.8rem 1.25rem;
  text-align: center;
}
.hero-inner { max-width: 900px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 2.85rem);
  margin-bottom: 1.1rem;
  line-height: 1.25;
}
.hero p { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.95; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.95rem 1.9rem;
  border-radius: 7px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  transition: background 0.2s;
}
.btn:hover, .btn:focus { background: var(--accent-hover); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

section { padding: 4.2rem 1.25rem; }
.container { max-width: 1100px; margin: 0 auto; }

h2 {
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  color: var(--primary);
  margin-bottom: 1.4rem;
  text-align: center;
}
.lead {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2.6rem;
  color: var(--text-light);
  font-size: 1.12rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.7rem;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 1.8rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}
.card h3 { color: var(--primary); margin-bottom: 0.7rem; font-size: 1.25rem; }

.about { background: var(--bg-alt); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info {
  background: var(--header-bg);
  color: white;
  border-radius: 12px;
  padding: 2.2rem;
}
.contact-info a { color: #a8d4ff; }
.contact-info a:focus-visible { outline: 3px solid var(--focus); }
.phone {
  font-size: 1.55rem;
  font-weight: 700;
  margin: 1rem 0;
  display: block;
}

.form-group { margin-bottom: 1.3rem; }
label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}
input, textarea, select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: 7px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30,144,255,0.3);
}
textarea { min-height: 140px; resize: vertical; }

.form-note {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.success-msg {
  display: none;
  background: rgba(13,128,80,0.15);
  border: 2px solid var(--success);
  color: var(--success);
  padding: 1rem 1.2rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.success-msg.show { display: block; }

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}
.legal-content h3 {
  color: var(--primary);
  margin: 1.8rem 0 0.7rem;
}
.legal-content p, .legal-content ul { margin-bottom: 1rem; }

footer {
  background: var(--primary-dark);
  color: #aaa;
  padding: 2.2rem 1.25rem;
  text-align: center;
  font-size: 0.95rem;
}
footer a { color: #8ec8ff; margin: 0 0.6rem; }
footer a:focus-visible { outline: 3px solid var(--focus); }
.footer-links { margin-bottom: 1rem; }

@media (prefers-contrast: high) {
  :root, [data-theme="dark"] { --border: currentColor; }
  .card, input, textarea, select { border-width: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, body { transition: none; }
}

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  nav { display: none; width: 100%; }
  nav.open { display: block; }
  nav ul {
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.7rem 0 0.3rem;
  }
  .logo-text small { display: none; }
}

.page-section { display: none; }
.page-section.active { display: block; }