:root {
  --primary: #1a2847;
  --secondary: #2d5f8d;
  --accent: #d4a574;
  --text-light: #f5f5f5;
  --text-dark: #1a2847;
  --bg-light: #ffffff;
  --bg-dark: #0f1626;
  --border: #e5e7eb;
  --error: #ef4444;
  --success: #10b981;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  transition: background 0.3s, color 0.3s;
  line-height: 1.6;
}

body.dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  text-align: center;
  margin-bottom: 60px;
}

.logo {
  max-width: 150px;
  margin: 0 auto 20px;
}

.logo img {
  max-width: 100%;
  height: auto;
}

h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 18px;
  color: var(--secondary);
  margin-bottom: 20px;
  font-weight: 500;
}

.tagline {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 40px;
}

body.dark .tagline {
  color: #9ca3af;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 60px;
  flex-grow: 1;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.service-card {
  background: var(--bg-light);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

body.dark .service-card {
  background: #1a2d42;
  border-color: #374151;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

body.dark .service-card:hover {
  box-shadow: 0 12px 24px rgba(212, 165, 116, 0.1);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--primary);
}

body.dark .service-card h3 {
  color: var(--accent);
}

.service-card p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 20px;
}

body.dark .service-card p {
  color: #d1d5db;
}

.service-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s;
  border: 2px solid var(--secondary);
}

.service-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-dark);
}

.newsletter {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 40px;
  color: white;
}

.newsletter h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.newsletter p {
  margin-bottom: 24px;
  opacity: 0.95;
}

form {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

input[type="email"] {
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  width: 280px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s;
}

input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.15);
}

button[type="submit"] {
  padding: 12px 28px;
  border-radius: 6px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--text-dark);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 14px;
}

button[type="submit"]:hover {
  background: transparent;
  color: var(--accent);
}

.msg {
  font-size: 13px;
  margin-top: 12px;
  color: white;
  min-height: 20px;
}

footer {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}

body.dark footer {
  border-top-color: #374151;
  color: #9ca3af;
}

.controls {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  font-size: 13px;
}

.controls label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.controls input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.hidden {
  display: none;
}

a {
  color: var(--secondary);
  transition: color 0.3s;
}

body.dark a {
  color: var(--accent);
}

a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  h1 {
    font-size: 36px;
  }

  .subtitle {
    font-size: 16px;
  }

  .services {
    grid-template-columns: 1fr;
  }

  input[type="email"] {
    width: 100%;
    max-width: 100%;
  }

  .newsletter {
    padding: 30px;
  }
}