:root {
  --primary: #1a365d;
  --primary-light: #2c5282;
  --secondary: #4a5568;
  --accent: #3182ce;
  --bg-light: #f7fafc;
  --bg-white: #ffffff;
  --text-dark: #1a202c;
  --text-muted: #718096;
  --border: #e2e8f0;
  --shadow: rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: var(--bg-white);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 32px;
}

nav a {
  text-decoration: none;
  color: var(--secondary);
  font-weight: 500;
  transition: color 0.3s;
  font-size: 0.95rem;
}

nav a:hover,
nav a.active {
  color: var(--accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 100px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto 30px;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(49, 130, 206, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
}

section {
  padding: 80px 20px;
}

section.alt {
  background: var(--bg-light);
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 50px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.card {
  background: var(--bg-white);
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.card p {
  color: var(--text-muted);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--secondary);
  margin-bottom: 15px;
}

.features-list {
  list-style: none;
  margin-top: 25px;
}

.features-list li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
  color: var(--secondary);
}

.features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  background: var(--primary);
  color: white;
  padding: 40px;
  border-radius: 12px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 15px;
}

.contact-item span {
  font-size: 1.4rem;
}

.contact-form {
  background: var(--bg-white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  padding: 60px 0;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.stat-item p {
  color: var(--text-muted);
  font-size: 1rem;
}

footer {
  background: var(--primary);
  color: white;
  padding: 60px 20px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  opacity: 0.9;
}

.footer-section p {
  opacity: 0.8;
  line-height: 1.8;
}

.footer-section a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  display: block;
  margin-bottom: 10px;
  transition: opacity 0.3s;
}

.footer-section a:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.page-header p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.text-content {
  max-width: 800px;
  margin: 0 auto;
}

.text-content h2 {
  color: var(--primary);
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.6rem;
}

.text-content p {
  color: var(--secondary);
  margin-bottom: 15px;
}

.text-content ul {
  margin: 20px 0;
  padding-left: 25px;
  color: var(--secondary);
}

.text-content li {
  margin-bottom: 10px;
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) > * {
  direction: ltr;
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.service-detail p {
  color: var(--secondary);
  margin-bottom: 15px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.cta-section p {
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 4px 10px var(--shadow);
  }

  nav.active {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .grid-2,
  .grid-3,
  .about-content,
  .contact-grid,
  .service-detail,
  .service-detail:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
  }

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

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

  .section-title {
    font-size: 1.8rem;
  }

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