/* === БАЗА === */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: 'Inter', sans-serif; background:#0f0f1a; color:#fff; overflow-x:hidden; }
.container { max-width:1200px; margin:0 auto; padding:0 20px; }

/* === HEADER === */
.header {
  position:fixed; top:0; left:0; right:0;
  background:rgba(15,15,26,0.95); backdrop-filter:blur(10px);
  z-index:1000; padding:20px 0;
}
.header .container { display:flex; justify-content:space-between; align-items:center; }
.logo { font-weight:700; font-size:24px; }
.nav a { color:#fff; margin-left:30px; text-decoration:none; font-weight:600; }
.header-btn { background:#ffcc00; color:#000; padding:10px 20px; border-radius:8px; font-weight:700; }

/* === HERO === */
.hero { height:100vh; position:relative; overflow:hidden; }
.hero-video { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; }
.hero-overlay { position:absolute; top:0; left:0; right:0; bottom:0; background:linear-gradient(transparent, rgba(0,0,0,0.7)); }
.hero-content { position:relative; z-index:2; text-align:center; padding-top:200px; }
.hero-content h1 { font-size:52px; margin-bottom:16px; }
.hero-content p { font-size:20px; margin-bottom:30px; color:#ccc; }
.btn.primary { background:#ffcc00; color:#000; padding:16px 36px; border-radius:8px; font-weight:700; font-size:18px; }

/* === ПРОЕКТЫ === */
.projects { padding:120px 0; }
.projects h2 { text-align:center; font-size:40px; margin-bottom:60px; }
.projects-grid {
  display:grid; grid-template-columns:repeat(auto-fit, minmax(380px, 1fr)); gap:30px;
}
.project-card {
  position:relative; border-radius:18px; overflow:hidden; cursor:pointer;
  transition:transform 0.4s, box-shadow 0.4s;
}
.project-card:hover { transform:translateY(-12px); box-shadow:0 20px 40px rgba(0,0,0,0.4); }
.project-card img { width:100%; height:260px; object-fit:cover; }
.card-content {
  position:absolute; bottom:0; left:0; right:0;
  background:linear-gradient(transparent, rgba(0,0,0,0.85));
  padding:30px 20px 20px; text-align:center; color:#fff;
}
.card-content h3 { font-size:22px; margin-bottom:8px; }
.card-content p { font-size:16px; font-weight:600; }
.more { color:#ffcc00; font-weight:700; }

/* === АДАПТИВ === */
@media (max-width:768px) {
  .hero-content { padding-top:120px; }
  .hero-content h1 { font-size:36px; }
  .projects-grid { grid-template-columns:1fr; }
  .header .nav { display:none; }
}
/* === КОНТАКТЫ === */
.contact {
  padding: 120px 0;
  background: #111;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-form, .contact-info {
  background: #1a1a1a;
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.contact-form h2, .contact-info h2 {
  font-size: 32px;
  margin-bottom: 16px;
  color: #fff;
}
.contact-form p, .contact-info p {
  color: #aaa;
  margin-bottom: 30px;
  line-height: 1.6;
}
.contact-form input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: #2d2d2d;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
}
.contact-form input::placeholder { 
  color: #888; 
}
.contact-form input:focus {
  outline: none;
  background: #333;
  box-shadow: 0 0 0 2px #ffcc00;
}

/* Кнопка в форме */
.contact-form button {
  width: 100%;
  padding: 16px;
  background: #ffcc00;
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.contact-form button:hover {
  background: #ffd633;
  transform: translateY(-2px);
}
.contact-form button:active {
  transform: translateY(0);
}

/* Сообщение об успехе */
.contact-form .success {
  margin-top: 16px;
  color: #0f0;
  font-weight: 600;
  text-align: center;
}

/* Информация справа */
.contact-info .info-item {
  margin-bottom: 28px;
}
.contact-info .info-item h4 {
  color: #ffcc00;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-info .info-item p {
  margin: 0;
  color: #ddd;
  font-size: 16px;
}
.contact-info .info-item a {
  color: #ffcc00;
  text-decoration: none;
  transition: color 0.3s;
}
.contact-info .info-item a:hover {
  color: #ffd633;
  text-decoration: underline;
}

/* Карта */
.map {
  width: 100%;
  height: 400px;
  overflow: hidden;
}
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(100%) brightness(0.9);
  transition: filter 0.4s;
}
.map iframe:hover {
  filter: grayscale(0%) brightness(1);
}

/* === АДАПТИВ === */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .contact-form, .contact-info {
    padding: 32px;
  }
}
@media (max-width: 576px) {
  .contact {
    padding: 80px 0;
  }
  .contact-form h2, .contact-info h2 {
    font-size: 28px;
  }
  .contact-form button {
    font-size: 16px;
    padding: 14px;
  }
}
/* === АДМИН-ПАНЕЛЬ === */
.admin { padding:100px 0; background:#111; }
.admin h2 { text-align:center; font-size:36px; margin-bottom:16px; }
.leads-table {
  width:100%; border-collapse:collapse; margin-top:30px; background:#1a1a1a; border-radius:12px; overflow:hidden;
}
.leads-table th, .leads-table td {
  padding:14px; text-align:left; border-bottom:1px solid #333;
}
.leads-table th { background:#222; color:#ffcc00; font-weight:600; }
.leads-table td a { color:#ffcc00; text-decoration:none; }
.comment-input, .status-select {
  width:100%; padding:8px; background:#2d2d2d; border:none; border-radius:6px; color:#fff;
}
.status-select option { background:#111; }

/* КНОПКА ВХОДА */
.admin-btn {
  background:#333; color:#ffcc00; padding:8px 16px; font-size:14px; margin-left:20px;
}
/* === СТРАНИЦА ЛОГИНА === */
.login-page {
  background: #0a0a1a;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.login-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}
.login-box {
  background: #1a1a1a;
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  text-align: center;
}
.login-box h2 {
  margin-bottom: 24px;
  color: #ffcc00;
  font-size: 28px;
}
.login-box input {
  width: 100%;
  padding: 14px;
  margin-bottom: 16px;
  background: #2d2d2d;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
}
.login-box input::placeholder { color: #888; }
.login-box button {
  width: 100%;
  padding: 14px;
  background: #ffcc00;
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
.login-box button:hover {
  background: #ffd633;
}
/* === ДЕТАЛИ УСЛУГИ === */
.service-details {
  padding: 100px 0;
  background: #111;
  display: none;
}
.service-details h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: #ffcc00;
}

/* ПОДКАТЕГОРИИ */
.subcategories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 60px;
}
.subcat-btn {
  background: #2d2d2d;
  color: #fff;
  border: 1px solid #444;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  cursor: default;
}
.subcat-btn:hover {
  background: #ffcc00;
  color: #000;
  border-color: #ffcc00;
}

/* КЕЙСЫ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.case-card {
  background: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s;
}
.case-card:hover {
  transform: translateY(-8px);
}
.case-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.case-card h4 {
  padding: 16px 20px 8px;
  font-size: 18px;
  color: #fff;
}
.case-card p {
  padding: 0 20px 20px;
  color: #aaa;
  font-size: 14px;
}
/* === ВТОРАЯ ШАПКА — УСЛУГИ === */
.services-hero {
  padding: 140px 0 100px;
  text-align: center;
  background: #0a0a1a;
}
.services-hero h1 {
  font-size: 48px;
  margin-bottom: 16px;
}
.hero-desc {
  font-size: 20px;
  color: #ccc;
  margin-bottom: 60px;
}

/* БЛАГОУСТРОЙСТВО — ЦЕНТР */
.main-service-inline {
  display: inline-block;
  background: linear-gradient(135deg, #ffcc00, #ffb347);
  color: #000;
  padding: 16px 40px;
  border-radius: 12px;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
  cursor: pointer;
  transition: transform 0.3s;
}
.main-service-inline:hover { transform: scale(1.05); }

/* ГОРИЗОНТАЛЬНЫЙ СПИСОК */
.services-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.services-inline-list button {
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #444;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}
.services-inline-list button:hover {
  background: #ffcc00;
  color: #000;
  border-color: #ffcc00;
}

/* Теги подкатегорий */
.tag {
  display: inline-block;
  background: #2d2d2d;
  color: #aaa;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  margin: 4px;
}
/* === КАРТОЧКИ ПРОЕКТОВ (ОГРАНИЧЕНИЕ РАЗМЕРА) === */
.card,
.project-card,
.case-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  background: #1a1a1a;
}

.card img,
.project-card img,
.case-card img {
  width: 100%;
  height: 240px;           /* ФИКСИРОВАННАЯ ВЫСОТА */
  object-fit: cover;       /* ОБРЕЗАЕТ, НЕ РАСТЯГИВАЕТ */
  object-position: center;
  display: block;
  transition: transform 0.4s;          
}

.card:hover img,
.project-card:hover img,
.case-card:hover img {
  transform: scale(1.05);
}

/* === СЕТКИ — АДАПТИВНЫЕ КАРТОЧКИ === */
.grid,
.projects-grid,
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* === МОБИЛЬНАЯ ВЕРСИЯ === */
@media (max-width: 768px) {
  .card img,
  .project-card img,
  .case-card img {
    height: 200px;
  }
}
/* === КАРУСЕЛЬ ПРОЕКТОВ === */
.projects-carousel {
  padding: 100px 0;
  background: #111;
  overflow: hidden;
}
.projects-carousel h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 36px;
}
.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.project-card {
  min-width: 300px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s;
}
.project-card:hover { transform: scale(1.05); }
.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
  padding: 30px 16px 16px;
  text-align: center;
}
.card-overlay h3 { font-size: 18px; }

/* Кнопки карусели */
.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff; border: none;
  width: 50px; height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
}
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

/* === МОДАЛЬНОЕ ОКНО === */
.project-modal {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.95);
  z-index: 1000;
  align-items: center; justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.project-modal.active { display: flex; }

.modal-content {
  background: #1a1a1a;
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 15px; right: 20px;
  font-size: 32px; color: #aaa;
  cursor: pointer; z-index: 10;
}
.modal-close:hover { color: #fff; }

.modal-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.modal-carousel::-webkit-scrollbar { display: none; }
.modal-carousel img {
  width: 100%; height: auto;
  max-height: 70vh;
  object-fit: contain;
  scroll-snap-align: start;
  flex-shrink: 0;
}
.modal-carousel img.active { display: block; }

.modal-info {
  padding: 30px;
  max-height: 40vh;
  overflow-y: auto;
}
.modal-info h3 {
  font-size: 28px; margin-bottom: 16px; color: #ffcc00;
}
.modal-info p {
  margin-bottom: 20px; color: #ddd;
}
.modal-info ul {
  list-style: none; padding: 0;
}
.modal-info li {
  margin-bottom: 8px; color: #aaa;
}
.modal-info li:before {
  content: "Checkmark"; color: #ffcc00; margin-right: 8px;
}

/* Адаптив */
@media (max-width: 768px) {
  .project-card { min-width: 260px; }
  .modal-content { border-radius: 16px; }
  .modal-info { padding: 20px; }
}