/* ===== ОБЩИЕ СТИЛИ ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1e293b;
  --secondary-color: #0f172a;
  --accent-color: #3b82f6;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --background-light: #f8fafc;
  --cta-color: #ffc107;
  --cta-color-hover: #e0a800;
  --white: #ffffff;
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --border-light: #e9ecef;
  --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-medium: 0 4px 8px rgba(0,0,0,0.15);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.2rem;
  text-align: center;
  color: var(--text-light);
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== КНОПКИ ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-cta {
  background-color: var(--cta-color);
  color: var(--text-dark);
}

.btn-cta:hover {
  background-color: var(--cta-color-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ===== HEADER ===== */
.header {
  background-color: var(--white);
  box-shadow: var(--shadow-light);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 70px;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.language-switcher {
  display: flex;
  gap: 10px;
}

.lang-link {
  padding: 6px 12px;
  text-decoration: none;
  color: var(--text-light);
  border-radius: 4px;
  transition: var(--transition);
  font-weight: 500;
}

.lang-link:hover,
.lang-link.active {
  background-color: var(--primary-color);
  color: var(--white);
}

/* ===== HERO СЕКЦИЯ ===== */
.hero {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.90) 0%, rgba(15, 23, 42, 0.90) 100%),
              url('/assets/img/hero-bg.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn {
  font-size: 1.1rem;
  padding: 15px 30px;
}

/* ===== КОНТАКТНАЯ ПОЛОСКА ===== */
.contact-bar {
  background-color: var(--white);
  padding: 20px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.contact-bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-dark);
  transition: var(--transition);
  padding: 8px 16px;
  border-radius: var(--border-radius);
}

.contact-bar-item:hover {
  background-color: var(--background-light);
  color: var(--primary-color);
}

.contact-bar-icon {
  font-size: 20px;
}

.contact-bar-text {
  font-weight: 500;
  font-size: 1rem;
}

.contact-bar-social {
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-bar-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--background-light);
  color: var(--primary-color);
  transition: var(--transition);
  text-decoration: none;
}

.contact-bar-social-link:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.contact-bar-social-link svg {
  width: 20px;
  height: 20px;
}

/* ===== УСЛУГИ ===== */
.services {
  background-color: var(--background-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.service-card {
  background-color: var(--white);
  padding: 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.service-icon {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.service-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  margin-top: 15px;
  padding: 0 15px;
  color: var(--text-dark);
  line-height: 1.3;
}

.service-text {
  color: var(--text-light);
  line-height: 1.6;
  padding: 0 15px 20px;
  margin: 0;
}

/* ===== КАРУСЕЛЬ ===== */
.gallery {
  padding: 80px 0;
}

.carousel-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.carousel-nav:hover {
  background-color: rgba(0,0,0,0.7);
}

.carousel-prev {
  left: 15px;
}

.carousel-next {
  right: 15px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--border-light);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background-color: var(--primary-color);
}

/* ===== ФОРМА ===== */
.order-form {
  background-color: var(--background-light);
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.client-type-toggle {
  display: flex;
  margin-bottom: 30px;
  background-color: var(--background-light);
  border-radius: var(--border-radius);
  padding: 4px;
}

.client-type-option {
  flex: 1;
  padding: 12px 20px;
  text-align: center;
  background-color: transparent;
  border: none;
  border-radius: calc(var(--border-radius) - 4px);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.client-type-option.active {
  background-color: var(--primary-color);
  color: var(--white);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-label.required::after {
  content: " *";
  color: var(--danger);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-light);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--white);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: var(--danger);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: var(--danger);
  font-size: 0.875rem;
  margin-top: 5px;
  display: none;
}

.form-error.show {
  display: block;
}

/* ===== ЗАГРУЗКА ФАЙЛОВ ===== */
.file-upload-area {
  border: 2px dashed var(--border-light);
  border-radius: var(--border-radius);
  padding: 40px 20px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  background-color: var(--background-light);
}

.file-upload-area:hover,
.file-upload-area.dragover {
  border-color: var(--primary-color);
  background-color: rgba(0, 102, 204, 0.05);
}

.file-upload-icon {
  font-size: 48px;
  color: var(--text-light);
  margin-bottom: 15px;
}

.file-upload-text {
  color: var(--text-light);
  margin-bottom: 10px;
}

.file-upload-input {
  display: none;
}

.file-list {
  margin-top: 20px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background-color: var(--background-light);
  border-radius: var(--border-radius);
  margin-bottom: 10px;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-name {
  font-weight: 500;
}

.file-size {
  color: var(--text-light);
  font-size: 0.875rem;
}

.file-remove {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 18px;
  padding: 5px;
  border-radius: 50%;
  transition: var(--transition);
}

.file-remove:hover {
  background-color: rgba(220, 53, 69, 0.1);
}

.progress-bar {
  width: 100%;
  height: 4px;
  background-color: var(--border-light);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-fill {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

/* ===== ЧЕКБОКСЫ ===== */
.checkbox-group {
  margin: 20px 0;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
}

.checkbox-input {
  margin-top: 2px;
}

.checkbox-label {
  font-size: 0.9rem;
  line-height: 1.4;
  cursor: pointer;
}

.checkbox-label a {
  color: var(--primary-color);
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

/* ===== FAQ ===== */
.faq {
  padding: 80px 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white);
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  box-shadow: var(--shadow-light);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px;
  background-color: transparent;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background-color: var(--background-light);
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 20px 20px;
  max-height: 300px;
}

/* ===== КОНТАКТЫ ===== */
.contacts {
  background-color: var(--background-light);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
}

.contact-details h4 {
  margin-bottom: 5px;
  color: var(--text-dark);
}

.contact-details p {
  color: var(--text-light);
  margin: 0;
}

.contact-link {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--text-dark);
  color: var(--white);
  padding: 40px 0 20px;
}

.footer-content {
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--primary-color);
}

.footer-copyright {
  color: var(--text-light);
  font-size: 0.9rem;
  border-top: 1px solid #444;
  padding-top: 20px;
  margin-top: 20px;
}

/* ===== КУКИ БАННЕР ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--text-dark);
  color: var(--white);
  padding: 20px;
  z-index: 1001;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 250px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.cookie-btn-accept {
  background-color: var(--primary-color);
  color: var(--white);
}

.cookie-btn-decline {
  background-color: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

.cookie-btn:hover {
  opacity: 0.8;
}

/* ===== МОДАЛЬНЫЕ ОКНА ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  text-align: center;
  transform: scale(0.7);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
}

/* ===== TOAST УВЕДОМЛЕНИЯ ===== */
.toast {
  position: fixed;
  top: 90px;
  right: 20px;
  background-color: var(--white);
  padding: 15px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  z-index: 1003;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  min-width: 300px;
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.error {
  border-left: 4px solid var(--danger);
}

.toast.warning {
  border-left: 4px solid var(--warning);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .service-card {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .service-icon {
    height: 180px;
    flex-shrink: 0;
  }
  
  .service-icon img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
  }
  
  .service-title {
    font-size: 1rem;
    margin-top: 12px;
    padding: 0 12px;
  }
  
  .service-text {
    font-size: 0.9rem;
    padding: 0 12px 15px;
  }
  
  .contacts-grid {
    grid-template-columns: 1fr;
  }
  
  .form-container {
    padding: 20px;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    justify-content: center;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
  
  .contact-bar-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .contact-bar-item {
    width: 100%;
    justify-content: center;
  }
  
  .language-switcher {
    gap: 5px;
  }
  
  .lang-link {
    padding: 4px 8px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .hero {
    padding: 120px 0 60px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .carousel-prev {
    left: 10px;
  }
  
  .carousel-next {
    right: 10px;
  }
}

/* ===== УТИЛИТЫ ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.hidden { display: none; }
.visible { display: block; }

/* ===== АНИМАЦИИ ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out;
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* ===== LOADING СОСТОЯНИЯ ===== */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
