/* ========================================
   Profremont Almaty - Стили
   Профессиональный ремонт квартир и офисов
======================================== */

:root {
  --primary-color: #2c3e50;
  --secondary-color: #e67e22;
  --accent-color: #3498db;
  --text-color: #333;
  --text-light: #666;
  --bg-light: #f8f9fa;
  --bg-dark: #2c3e50;
  --white: #fff;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
  --transition: 0.3s ease;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--white);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

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

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

/* ========================================
   Header & Navigation
======================================== */

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

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

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

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: var(--white);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width var(--transition);
}

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

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

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--white);
  transition: var(--transition);
}

/* ========================================
   Hero Section
======================================== */

.hero {
  background: linear-gradient(rgba(44, 62, 80, 0.85), rgba(44, 62, 80, 0.85)),
              url('images/header-bg.jpg') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 120px 20px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 15px 35px;
  background: var(--secondary-color);
  color: var(--white);
  border-radius: 5px;
  font-weight: 600;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background: #d35400;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

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

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

/* ========================================
   Sections
======================================== */

section {
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.section-title p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   Services Grid
======================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-content {
  padding: 25px;
}

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

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

/* ========================================
   Features / Advantages
======================================== */

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-item {
  text-align: center;
  padding: 30px;
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: var(--secondary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.feature-item h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* ========================================
   Gallery
======================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 20px 15px 15px;
  color: var(--white);
  transform: translateY(100%);
  transition: transform var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
  transform: translateY(0);
}

.gallery-item-overlay p {
  font-size: 0.9rem;
  margin: 0;
}

/* ========================================
   About Section
======================================== */

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

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

.about-text ul {
  list-style: none;
  margin: 20px 0;
}

.about-text li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
}

.about-text li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

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

.about-image img {
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: 400px;
}

/* ========================================
   Contact Section
======================================== */

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: var(--max-width);
  margin: 0 auto;
}

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

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

.contact-item-icon {
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
}

.contact-item-text h4 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.contact-item-text p {
  color: var(--text-light);
}

.contact-item-text a {
  color: var(--secondary-color);
  font-weight: 500;
}

.contact-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* ========================================
   Services List (Services Page)
======================================== */

.services-list {
  max-width: var(--max-width);
  margin: 0 auto;
}

.service-category {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  overflow: hidden;
}

.service-category-header {
  background: var(--primary-color);
  color: var(--white);
  padding: 20px 25px;
}

.service-category-header h3 {
  font-size: 1.3rem;
}

.service-category-body {
  padding: 25px;
}

.service-category ul {
  list-style: none;
  columns: 2;
  gap: 20px;
}

.service-category li {
  padding: 10px 0;
  padding-left: 25px;
  position: relative;
  break-inside: avoid;
}

.service-category li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-size: 1.5rem;
  line-height: 1;
}

/* ========================================
   Footer
======================================== */

footer {
  background: var(--bg-dark);
  color: var(--white);
  padding: 50px 20px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto 30px;
}

.footer-section h4 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-section p {
  opacity: 0.8;
  margin-bottom: 10px;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  opacity: 0.8;
  transition: opacity var(--transition);
}

.footer-section a:hover {
  opacity: 1;
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* ========================================
   Lightbox
======================================== */

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.lightbox-close:hover {
  opacity: 1;
}

/* ========================================
   Responsive Design
======================================== */

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

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 20px;
    gap: 0;
  }

  nav ul.active {
    display: flex;
  }

  nav li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  nav a {
    display: block;
    padding: 15px 0;
  }

  .hero {
    padding: 80px 20px;
    min-height: 50vh;
  }

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

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

  section {
    padding: 50px 20px;
  }

  .section-title h2 {
    font-size: 1.6rem;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .service-category ul {
    columns: 1;
  }

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

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 12px 25px;
    font-size: 0.9rem;
  }

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

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