/* Main Styling */
:root {
  /* Color System */
  --primary: #1e88e5;
  --primary-dark: #1565c0;
  --primary-light: #42a5f5;
  --secondary: #212121;
  --secondary-light: #484848;
  --secondary-dark: #121212;
  --accent: #ff9800;
  --accent-dark: #f57c00;
  --success: #4caf50;
  --warning: #ff9800;
  --error: #f44336;
  --text-light: #ffffff;
  --text-dark: #212121;
  --text-muted: #757575;
  --background-dark: rgba(18, 18, 18, 0.9);
  --background-light: #f5f5f5;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-size-base: 16px;
  --line-height-body: 1.5;
  --line-height-heading: 1.2;

  /* Spacing (8px system) */
  --space-1: 0.5rem;
  /* 8px */
  --space-2: 1rem;
  /* 16px */
  --space-3: 1.5rem;
  /* 24px */
  --space-4: 2rem;
  /* 32px */
  --space-5: 2.5rem;
  /* 40px */
  --space-6: 3rem;
  /* 48px */

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: var(--line-height-body);
  color: var(--text-light);
  background: var(--secondary-dark);
  overflow-x: hidden;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: var(--line-height-heading);
  margin-bottom: var(--space-2);
  font-weight: 700;
}

p {
  margin-bottom: var(--space-2);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
}

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

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Hero Section */
.background-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 0;
  pointer-events: none;
  /* чтобы не мешал кликам */
}

.hero-title {
  position: relative;
  height: 400px;
  /* или подгони по размеру твоей картинки */
}

.hero-logo {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  max-height: 100%;
  width: auto;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* Benefits Section */
.benefits-section {
  background-color: var(--secondary-dark);
  padding: var(--space-6) 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-3);
}

.benefit-card {
  background: var(--secondary);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  text-align: center;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.benefit-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-1);
}

.benefit-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Services Section */
.services-section {
  background-color: var(--secondary);
  padding: var(--space-6) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
}

.service-card {
  display: flex;
  gap: var(--space-2);
  background: var(--secondary-light);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 2rem;
  color: var(--accent);
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-1);
}

.service-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
  background-color: var(--secondary-dark);
  padding: var(--space-6) 0;
  text-align: center;
}

.contact-subtitle {
  font-size: 1.1rem;
  margin-bottom: var(--space-3);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.operating-hours {
  margin-top: var(--space-4);
}

.operating-hours h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-1);
}

/* Footer */
.footer {
  background-color: var(--secondary-dark);
  padding: var(--space-4) 0 var(--space-2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.footer-logo h3 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.footer-logo span {
  color: var(--primary);
}

.footer-links {
  display: flex;
  gap: var(--space-3);
}

.footer-links a {
  color: var(--text-light);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: var(--space-2);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
}

.btn-whatsapp:hover {
  background-color: #1da851;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

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

.btn-call:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

/* Scroll Mouse Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 1s ease 1s forwards;
  opacity: 0;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid white;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 10px;
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: white;
  border-radius: 2px;
  animation: scrollWheel 1.5s infinite;
}

.scroll-arrow {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
  margin: 10px 0;
  animation: scrollArrow 1.5s infinite;
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: var(--space-2);
  }

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

  .contact-buttons {
    flex-direction: column;
    gap: var(--space-2);
  }

  .footer-content {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media screen and (max-width: 576px) {
  .section-container {
    padding: var(--space-4) var(--space-2);
  }

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

  .service-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Main Styling */
:root {
  /* Shared Variables */
  --primary: #1e88e5;
  --primary-dark: #1565c0;
  --primary-light: #42a5f5;
  --accent: #ff9800;
  --accent-dark: #f57c00;
  --success: #4caf50;
  --warning: #ff9800;
  --error: #f44336;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-size-base: 16px;
  --line-height-body: 1.5;
  --line-height-heading: 1.2;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
}

/* Light Theme (Default) */
:root {
  --secondary: #f5f5f5;
  --secondary-light: #ffffff;
  --secondary-dark: #e0e0e0;

  --text-light: #212121;
  --text-dark: #000000;
  --text-muted: #757575;

  --background-dark: #ffffff;
  --background-light: #f9f9f9;
}

/* Dark Theme (auto applied via browser preference) */
@media (prefers-color-scheme: dark) {
  :root {
    --secondary: #212121;
    --secondary-light: #484848;
    --secondary-dark: #121212;

    --text-light: #ffffff;
    --text-dark: #e0e0e0;
    --text-muted: #bdbdbd;

    --background-dark: rgba(18, 18, 18, 0.9);
    --background-light: #1e1e1e;
  }
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: var(--line-height-body);
  color: var(--text-light);
  background: var(--secondary-dark);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Headings, Text, Links */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: var(--line-height-heading);
  margin-bottom: var(--space-2);
  font-weight: 700;
}

p {
  margin-bottom: var(--space-2);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
}

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

/* Layout Container */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Hero Section */
.hero-section {
  position: relative;
  background-image: url('almaty-map');
  /* replace with your map path */
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 1;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-top: -110px;
  /* поднимает элемент вверх */
  margin-bottom: var(--space-2);
  /* уменьшил расстояние снизу */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease 0.2s forwards;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease 0.4s forwards;
}

/* Sections */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-3);
}

.section-title {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: var(--space-5);
  position: relative;
  padding-bottom: var(--space-2);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary);
}

/* Benefits */
.benefits-section {
  background-color: var(--secondary-dark);
  padding: var(--space-6) 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-3);
}

.benefit-card {
  background: var(--secondary);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.benefit-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-1);
}

.benefit-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background-color: var(--secondary-dark);
  padding: var(--space-4) 0 var(--space-2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.footer-logo h3 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

.footer-logo span {
  color: var(--primary);
}

.footer-links {
  display: flex;
  gap: var(--space-3);
}

.footer-links a {
  color: var(--text-light);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: var(--space-2);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-2);
  font-size: 0.9rem;
  color: var(--text-muted);
}