/* Подключение шрифтов Montserrat */
@font-face {
    font-family: 'Montserrat';
    src: local('Montserrat Light'), local('Montserrat-Light'),
         url('/static/fonts/Montserrat-Light.woff2') format('woff2'),
         url('/static/fonts/Montserrat-Light.woff') format('woff'),
         url('/static/fonts/Montserrat-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: local('Montserrat Bold'), local('Montserrat-Bold'),
         url('/static/fonts/Montserrat-Bold.woff2') format('woff2'),
         url('/static/fonts/Montserrat-Bold.woff') format('woff'),
         url('/static/fonts/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: #333;
}

/* Заголовки используют Bold */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

/* Кнопки и формы используют Light */
button, .btn, input, textarea, select {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
}


/* Стили для 404 страницы */
.error-container {
    max-width: 600px;
    margin: 100px auto;
    text-align: center;
    padding: 40px 20px;
}

.error-container h1 {
    font-size: 8rem;
    color: #e74c3c;
    margin: 0;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.error-container h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin: 20px 0;
    font-weight: 300;
}

.error-container p {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin: 30px 0;
    line-height: 1.6;
}

.error-container code {
    background: #ecf0f1;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    color: #e74c3c;
}

.btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #2980b9;
}

/* Шапка */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #2563eb;
}

.header-phone {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

/* ============= ОБНОВЛЕННАЯ HERO СЕКЦИЯ ============= */

.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px 40px;
  min-height: auto;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Главный заголовок - во всю ширину */
.hero-main-title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  text-align: center;
  width: 100%;
  margin-top: -20px;
}

/* Описание под заголовком */
.hero-main-subtitle {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 50px;
  line-height: 1.4;
  font-weight: 400;
}

.hero-main-subtitle .highlight {
  color: #FFD700;
  font-weight: 700;
  font-size: 1.6rem;
}

/* Основной контент - пункты слева, фото+кнопки справа */
.hero-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.hero-text {
  display: block;
}

.hero-image-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* Блок с изображением */
.hero-image {
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.02);
}

/* Список преимуществ */
.advantages-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.advantages-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.advantages-list li:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(3px);
}

/* Иконка галочки */
.check-icon {
  font-size: 1rem;
  margin-right: 12px;
  margin-top: 1px;
  flex-shrink: 0;
}

/* Контент преимущества */
.advantage-content strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 3px;
  color: #fff;
  line-height: 1.2;
  font-weight: 700;
}

.advantage-content p {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.85;
  line-height: 1.3;
}

/* Кнопки CTA */
.hero-image-block .cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}

.hero-image-block .btn {
  padding: 15px 25px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.hero-image-block .btn-primary {
  background: #28a745;
  color: white;
}

.hero-image-block .btn-primary:hover {
  background: #218838;
  transform: translateY(-1px);
}

.hero-image-block .btn-secondary {
  background: #6c757d;
  color: white;
}

.hero-image-block .btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-1px);
}

/* Адаптивность */
@media (max-width: 968px) {
  .hero-body {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .hero-main-title {
    font-size: 3rem;
    margin-top: -15px;
  }
  
  .hero-main-subtitle {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 20px 20px;
    min-height: auto;
  }
  
  .hero-main-title {
    font-size: 2.5rem;
    margin-top: -10px;
  }
  
  .hero-main-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
  }
  
  .advantages-list li {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
  }
  
  .check-icon {
    margin-bottom: 10px;
  }
  
  .hero-image-block .btn {
    flex: 0 0 auto;
    min-width: 120px;
  }
}

@media (max-width: 480px) {
  .hero-main-title {
    font-size: 2rem;
    margin-top: -5px;
  }
  
  .hero-main-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-main-subtitle .highlight {
    font-size: 1.2rem;
  }
  
  .advantages-list li {
    padding: 8px 12px;
    margin-bottom: 10px;
  }
  
  .advantage-content strong {
    font-size: 1rem;
  }
  
  .advantage-content p {
    font-size: 0.75rem;
  }
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 16px 32px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: #22c55e;
  color: white;
}

.btn-primary:hover {
  background: #16a34a;
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

/* Индикатор рабочих часов */
.working-hours-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}

.working-hours-indicator.working {
  background-color: #22c55e;
}

.working-hours-indicator.non-working {
  background-color: #ef4444;
}

/* Секция преимуществ */
.features {
  padding: 80px 20px;
  background: #f8fafc;
}

.features-content {
  max-width: 1200px;
  margin: 0 auto;
}

.features h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: #1f2937;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07);
  text-align: center;
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #1f2937;
}

.feature-card p {
  color: #6b7280;
  font-size: 16px;
}

/* Подвал */
.footer {
  background: #1f2937;
  color: white;
  text-align: center;
  padding: 40px 20px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.footer p {
  margin-bottom: 30px;
  opacity: 0.8;
}

.footer-cta {
  margin-bottom: 30px;
}

/* Модальные окна */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 7px;
  padding: 40px 30px 30px;
  width: 100%;
  max-width: 550px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-height: 90vh;
  overflow-y: auto;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #ccc;
  cursor: pointer;
  padding: 5px;
}

.close-btn:hover {
  color: #999;
}

.phone-icon {
  width: 80px;
  height: 80px;
  background: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
}

.phone-icon::before {
  content: "📱";
  font-size: 35px;
}

/* Отступ только для формы обратного звонка */
#callbackModal .subtitle {
  margin: 0;
  margin-bottom: 14px;
}

.order-icon {
  width: 80px;
  height: 80px;
  background: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
}

.order-icon::before {
  content: "📋";
  font-size: 35px;
}

.modal h2 {
  color: #333;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.modal .subtitle {
  color: #666;
  font-size: 14px;
  margin-bottom: 30px;
  line-height: 1.4;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #555;
}

.phone-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0;
  background: white;
}

.phone-input-wrapper.error {
  border-color: #ef4444;
}

.flag {
  padding: 15px 12px;
  border-right: 1px solid #eee;
  font-size: 18px;
}

.phone-input, .text-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 15px 12px;
  font-size: 16px;
  border-radius: 4px;
}

.text-input {
  width: 100%;
  border: 1px solid #ddd;
}

.text-input.error {
  border-color: #ef4444;
}

.textarea-input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px 12px;
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
  min-height: 130px;
}

.textarea-input.error {
  border-color: #ef4444;
}

.phone-input::placeholder, .text-input::placeholder, .textarea-input::placeholder {
  color: #999;
}
.optional-text {
  font-weight: normal;
}

/* Добавить новый CSS для текста согласия: */
.privacy-notice {
  font-size: 11px;
  color: #999;
  text-align: center;
  margin-top: 10px;
  line-height: 1.3;
}

.privacy-notice a {
  color: #007bff;
  text-decoration: none;
}

.privacy-notice a:hover {
  text-decoration: underline;
}

.submit-btn {
  width: 100%;
  background: #22c55e;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-btn:hover {
  background: #16a34a;
}

.submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.status {
  margin-top: 15px;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  display: none;
}

.status-working {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.status-success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.status-error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Анимированный индикатор загрузки */
.loading-dots::after {
  content: '';
  animation: loading-dots 1.5s steps(4, end) infinite;
}

@keyframes loading-dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* Стили для красных звездочек */
.required {
  color: #ef4444;
  margin-left: 2px;
  font-weight: bold;
}

/* Стили для сообщения успеха */
.success-icon {
  width: 80px;
  height: 80px;
  background: #d1fae5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 40px;
}

.success-message {
  color: #065f46;
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 600;
}

.success-phone {
  color: #666;
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.working-hours-note {
  color: #666;
  font-size: 12px;
  margin-top: 10px;
  line-height: 1.3;
}

#callback-success-content h2 {
  color: #065f46;
  margin-bottom: 15px;
}

#order-success-content h2 {
  color: #065f46;
  margin-bottom: 15px;
}


/* Cookie Banner Styles */
.cookie-banner {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.95);
color: white;
padding: 15px 20px;
z-index: 9999;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
backdrop-filter: blur(10px);
border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-banner-content {
max-width: 1200px;
margin: 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
flex-wrap: wrap;
}

.cookie-banner-text {
flex: 1;
min-width: 250px;
}

.cookie-banner-text p {
margin: 0;
font-size: 14px;
line-height: 1.4;
opacity: 0.9;
}

.cookie-banner-text a {
color: #22c55e;
text-decoration: none;
font-weight: 500;
}

.cookie-banner-text a:hover {
text-decoration: underline;
}

.cookie-banner-actions {
flex-shrink: 0;
}

.cookie-accept-btn {
background: #22c55e;
color: white;
border: none;
border-radius: 6px;
padding: 12px 24px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
font-family: inherit;
}

.cookie-accept-btn:hover {
background: #16a34a;
transform: translateY(-1px);
}

.cookie-accept-btn:active {
transform: translateY(0);
}

/* Анимации для баннера */
.cookie-banner.show {
animation: slideUpBanner 0.5s ease-out forwards;
}

.cookie-banner.hide {
animation: slideDownBanner 0.3s ease-in forwards;
}

@keyframes slideUpBanner {
from {
transform: translateY(100%);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}

@keyframes slideDownBanner {
from {
transform: translateY(0);
opacity: 1;
}
to {
transform: translateY(100%);
opacity: 0;
}
}

/* Responsive */
@media (max-width: 768px) {
.cookie-banner {
padding: 15px;
}

.cookie-banner-content {
flex-direction: column;
align-items: stretch;
text-align: center;
gap: 15px;
}

.cookie-banner-text p {
font-size: 13px;
}

.cookie-accept-btn {
width: 100%;
padding: 14px 24px;
}
}