:root {
  --primary-color: #6a1b9a;
  --primary-light: #9c4dcc;
  --primary-dark: #38006b;
  --accent-color: #ff6d00;
  --accent-light: #ff9e40;
  --accent-dark: #c43c00;
  --text-light: #f5f5f5;
  --text-dark: #212121;
  --bg-light: #ffffff;
  --bg-dark: #121212;
  --bg-alt-light: #f5f5f5;
  --bg-alt-dark: #1e1e1e;
  --border-light: #e0e0e0;
  --border-dark: #333333;
  --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-dark: 0 4px 6px rgba(0, 0, 0, 0.3);
  --header-height: 80px;
  --footer-bg-light: #f5f5f5;
  --footer-bg-dark: #1a1a1a;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: "Roboto", Arial, sans-serif;
  line-height: 1.6;
  transition: var(--transition);
}

.light-theme {
  --text-color: var(--text-dark);
  --bg-color: var(--bg-light);
  --bg-alt: var(--bg-alt-light);
  --border-color: var(--border-light);
  --shadow: var(--shadow-light);
  --footer-bg: var(--footer-bg-light);
}

.dark-theme {
  --text-color: var(--text-light);
  --bg-color: var(--bg-dark);
  --bg-alt: var(--bg-alt-dark);
  --border-color: var(--border-dark);
  --shadow: var(--shadow-dark);
  --footer-bg: var(--footer-bg-dark);
}

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

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

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

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

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

.text-center {
  text-align: center;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.dark-theme .header {
  background-color: rgba(18, 18, 18, 0.9);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
}

.logo-text {
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-list li {
  margin-left: 1.5rem;
}

.nav-list a {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  transition: var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
  margin-right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: var(--transition);
}

.theme-toggle:hover {
  background-color: var(--bg-alt);
}

.light-theme .theme-toggle .fa-sun {
  display: none;
}

.dark-theme .theme-toggle .fa-moon {
  display: none;
}

.phone-link {
  display: flex;
  align-items: center;
  color: var(--text-color);
  font-weight: 500;
}

.phone-link i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  position: absolute;
  left: 0;
  transition: var(--transition);
}

.mobile-menu-toggle span:nth-child(1) {
  top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
  bottom: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(to right, var(--primary-color), var(--primary-light));
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

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

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

.btn-light:hover {
  background-color: var(--bg-alt-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Hero Section */
.hero {
  padding: calc(var(--header-height) + 3rem) 0 5rem;
  background: linear-gradient(135deg, rgba(106, 27, 154, 0.1), rgba(255, 109, 0, 0.1));
}

.dark-theme .hero {
  background: linear-gradient(135deg, rgba(106, 27, 154, 0.2), rgba(255, 109, 0, 0.2));
}

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

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: 3rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background-color: var(--bg-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-color);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(to right, var(--primary-color), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 1.8rem;
}

.service-card h3 {
  margin-bottom: 1rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  font-weight: 500;
}

.read-more i {
  margin-left: 0.5rem;
  transition: var(--transition);
}

.read-more:hover i {
  transform: translateX(5px);
}

/* Advantages Section */
.advantages {
  padding: 5rem 0;
  background-color: var(--bg-alt);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.advantage-item {
  text-align: center;
  padding: 1.5rem;
}

.advantage-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.5rem;
}

/* Projects Section */
.projects {
  padding: 5rem 0;
  background-color: var(--bg-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.project-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-image {
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  margin-bottom: 0.5rem;
}

.project-info p {
  color: #666;
  margin-bottom: 1rem;
}

.dark-theme .project-info p {
  color: #aaa;
}

/* CTA Section */
.cta {
  padding: 5rem 0;
  background: linear-gradient(to right, var(--primary-color), var(--primary-light));
  color: white;
}

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

.cta h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  background-color: var(--footer-bg);
  padding: 5rem 0 0;
  color: var(--text-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  transition: var(--transition);
}

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

.footer h3 {
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.8rem;
}

.footer ul li a {
  color: var(--text-color);
  transition: var(--transition);
}

.footer ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-contacts ul li {
  display: flex;
  align-items: flex-start;
}

.footer-contacts ul li i {
  margin-right: 0.8rem;
  color: var(--primary-color);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  text-align: center;
}

/* Page Header */
.page-header {
  padding: calc(var(--header-height) + 3rem) 0 3rem;
  background: linear-gradient(135deg, rgba(106, 27, 154, 0.1), rgba(255, 109, 0, 0.1));
  text-align: center;
}

.dark-theme .page-header {
  background: linear-gradient(135deg, rgba(106, 27, 154, 0.2), rgba(255, 109, 0, 0.2));
}

/* Service Detail */
.service-detail {
  padding: 5rem 0;
}

.service-detail.alt-bg {
  background-color: var(--bg-alt);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.service-detail-grid.reverse {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}

.service-detail-grid.reverse .service-detail-content {
  direction: ltr;
}

.service-detail-grid.reverse .service-detail-image {
  direction: ltr;
}

.service-features {
  list-style: none;
  margin: 1.5rem 0;
}

.service-features li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
}

.service-features li i {
  color: var(--accent-color);
  margin-right: 0.8rem;
  margin-top: 4px;
}

.service-detail-image img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* Pricing */
.pricing {
  padding: 5rem 0;
  background-color: var(--bg-alt);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background-color: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.pricing-header {
  background: linear-gradient(to right, var(--primary-color), var(--primary-light));
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.pricing-body {
  padding: 2rem;
}

.pricing-body ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.pricing-body ul li {
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-color);
}

/* Contact Info */
.contact-info {
  padding: 5rem 0 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.contact-card {
  text-align: center;
  padding: 2rem;
  border-radius: 8px;
  background-color: var(--bg-color);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

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

.contact-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.8rem;
}

/* Contact Form */
.contact-form-section {
  padding: 3rem 0 5rem;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form {
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(106, 27, 154, 0.2);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
}

.checkbox-label input {
  margin-right: 0.8rem;
  margin-top: 4px;
  width: auto;
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #666;
}

.dark-theme .map-note {
  color: #aaa;
}

/* Service Areas */
.service-areas {
  padding: 5rem 0;
  background-color: var(--bg-alt);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.area-item {
  display: flex;
  align-items: center;
  background-color: var(--bg-color);
  padding: 1rem;
  border-radius: 4px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.area-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.area-item i {
  color: var(--accent-color);
  margin-right: 0.8rem;
  font-size: 1.2rem;
}

/* Animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .service-detail-grid,
  .service-detail-grid.reverse,
  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-detail-grid.reverse {
    direction: ltr;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-buttons .btn {
    width: 100%;
  }
}

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

  h2 {
    font-size: 1.8rem;
  }

  .header {
    height: 70px;
  }

  .nav-list {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--bg-color);
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    transition: height 0.3s ease;
    box-shadow: var(--shadow);
  }

  .nav-list.active {
    height: calc(100vh - 70px);
    padding: 2rem 0;
    overflow-y: auto;
  }

  .nav-list li {
    margin: 1rem 0;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .phone-link span {
    display: none;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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