/* ================================================
   КОРПОРАТИВНЫЙ САЙТ DOMAIN - СТИЛИ
   Цветовая палитра: Electric Tangerine, Deep Violet, Lime Zest
   ================================================ */

:root {
  /* Основные цвета */
  --color-primary: #FF5E0E;      /* Electric Tangerine */
  --color-secondary: #5A18E8;    /* Deep Violet */
  --color-accent: #B2FF2B;       /* Lime Zest */
  --color-neutral-light: #F5F7FA;
  --color-neutral-dark: #1E1F25;
  
  /* Градиенты */
  --gradient-main: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
  --gradient-accent: linear-gradient(45deg, var(--color-accent), var(--color-primary));
  
  /* Тени и радиусы */
  --shadow-main: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius-main: 12px;
  
  /* Контейнер */
  --container-max-width: 1280px;
}

/* ==================== СБРОС И БАЗОВЫЕ СТИЛИ ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Предотвращение горизонтального скролла */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

/* Дополнительные стили для плавной прокрутки */
a[href^="#"] {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-neutral-dark);
  background-color: var(--color-neutral-light);
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== ТИПОГРАФИКА ==================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fadeIn 0.8s ease-in-out;
}

h1 {
  font-size: 3.5rem;
  color: var(--color-primary);
}

h2 {
  font-size: 2.5rem;
  color: var(--color-secondary);
}

h3 {
  font-size: 1.8rem;
  color: var(--color-neutral-dark);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* ==================== АНИМАЦИИ ==================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==================== HEADER & NAVIGATION ==================== */
.header {
  background: white;
  box-shadow: var(--shadow-main);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  font-weight: 500;
  color: var(--color-neutral-dark);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-menu a:hover {
  background: var(--gradient-main);
  color: white;
  text-decoration: none;
}

/* ==================== ОСНОВНЫЕ СЕКЦИИ ==================== */
.section {
  padding: 4rem 0;
  margin-bottom: 2rem;
}

.section-card {
  background: white;
  border-radius: var(--radius-main);
  padding: 3rem;
  box-shadow: var(--shadow-main);
  margin-bottom: 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* ==================== HERO СЕКЦИЯ ==================== */
.hero {
  background: var(--gradient-main);
  color: white;
  text-align: center;
  padding: 6rem 0;
}

.hero h1 {
  color: white;
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: fadeIn 1s ease-in-out;
}

.hero p {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  animation: fadeIn 1.2s ease-in-out;
}

.cta-button {
  background: var(--color-accent);
  color: var(--color-neutral-dark);
  padding: 1rem 2rem;
  border-radius: var(--radius-main);
  font-weight: 600;
  font-size: 1.1rem;
  display: inline-block;
  transition: all 0.3s ease;
  animation: fadeIn 1.4s ease-in-out;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

/* ==================== GRID LAYOUTS ==================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: white;
  border-radius: var(--radius-main);
  padding: 2rem;
  box-shadow: var(--shadow-main);
  transition: all 0.3s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-main);
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

/* ==================== УСЛУГИ ==================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card-label {
  display: block;
  cursor: pointer;
}

.service-card {
  background: white;
  border-radius: var(--radius-main);
  padding: 2.5rem;
  box-shadow: var(--shadow-main);
  border: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.service-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
}

/* CSS для выделения выбранной карточки через radio button */
input[name="service-selection"]:checked + .service-card {
  border-color: var(--color-secondary);
  background: linear-gradient(145deg, #f8f9ff, white);
}

input[name="service-selection"]:checked + .service-card::after {
  content: "✓";
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--color-secondary);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.service-action {
  text-align: center;
  margin-top: 1.5rem;
}

.service-select-btn {
  background: var(--gradient-main);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

.service-select-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: white;
}

/* ==================== ПРЕИМУЩЕСТВА ==================== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.advantage-card {
  background: white;
  border-radius: var(--radius-main);
  padding: 1.5rem;
  box-shadow: var(--shadow-main);
  border-left: 4px solid var(--color-accent);
  transition: all 0.3s ease;
}

.advantage-card:hover {
  border-left-color: var(--color-primary);
  transform: translateX(5px);
}

/* ==================== ПРАЙС-ТАБЛИЦА ==================== */
.pricing-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  background: white;
  border-radius: var(--radius-main);
  padding: 2.5rem;
  box-shadow: var(--shadow-main);
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  border-color: var(--color-primary);
  transform: scale(1.02);
}

.pricing-card.featured {
  border-color: var(--color-secondary);
  background: linear-gradient(145deg, #f8f9ff, white);
}

.pricing-card.featured::before {
  content: "Beliebt";
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--color-accent);
  color: var(--color-neutral-dark);
  padding: 5px 40px;
  transform: rotate(45deg);
  font-weight: 600;
  font-size: 0.9rem;
}

.pricing-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-secondary);
}

.pricing-features {
  list-style: none;
  margin: 1.5rem 0;
}

.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* ==================== ФОРМА ==================== */
.form-section {
  background: var(--gradient-main);
  color: white;
  border-radius: var(--radius-main);
  padding: 3rem;
  margin: 3rem 0;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  color: var(--color-neutral-dark);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 94, 14, 0.3);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.2rem;
}

.submit-btn {
  background: var(--color-accent);
  color: var(--color-neutral-dark);
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.submit-btn:hover {
  background: #a3e625;
  transform: translateY(-2px);
}

/* ==================== ОТЗЫВЫ ==================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius-main);
  padding: 2rem;
  box-shadow: var(--shadow-main);
  border-left: 4px solid var(--color-primary);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  font-size: 4rem;
  color: var(--color-primary);
  position: absolute;
  top: -10px;
  left: 20px;
  opacity: 0.3;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  padding-left: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-secondary);
  text-align: right;
}

/* ==================== КОНТАКТЫ ==================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.contact-info {
  background: white;
  border-radius: var(--radius-main);
  padding: 2rem;
  box-shadow: var(--shadow-main);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.map-container {
  background: white;
  border-radius: var(--radius-main);
  padding: 1rem;
  box-shadow: var(--shadow-main);
  text-align: center;
}

.static-map {
  width: 100%;
  height: 200px;
  background: var(--color-neutral-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-neutral-dark);
  font-size: 1.1rem;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--color-neutral-dark);
  color: white;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 1rem;
  text-align: center;
  color: #999;
}

/* ==================== COOKIE BANNER ==================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(30, 31, 37, 0.95);
  color: white;
  padding: 1.5rem;
  z-index: 10000;
  transition: opacity 0.4s ease;
}

.cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
}

.cookie-content {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-text {
  flex: 1;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
}

.cookie-btn {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cookie-btn:hover {
  background: var(--color-secondary);
}

.cookie-btn.secondary {
  background: transparent;
  border: 1px solid #666;
}

.cookie-btn.secondary:hover {
  background: #666;
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  
  body {
    overflow-x: hidden; /* Убираем горизонтальную прокрутку */
  }
  
  .container {
    padding: 0 15px;
    max-width: 100%; /* Ограничиваем ширину контейнера */
  }
  
  /* Компактная шапка для мобильной версии */
  .header {
    padding: 0.5rem 0;
  }
  
  .nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .nav-menu {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    font-size: 0.9rem;
  }
  
  .nav-menu a {
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .pricing-table {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .section-card {
    padding: 1.5rem;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-actions {
    justify-content: center;
  }
  
  /* Исправляем переполнение для всех элементов */
  * {
    max-width: 100%;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  iframe {
    max-width: 100%;
  }
  
  .form-control, .submit-btn {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section {
    padding: 1.5rem 0;
  }
  
  .section-card {
    padding: 1rem;
  }
  
  .form-section {
    padding: 1.5rem;
  }
  
  /* Еще более компактная навигация для малых экранов */
  .nav-menu {
    gap: 0.3rem;
  }
  
  .nav-menu a {
    padding: 0.2rem 0.3rem;
    font-size: 0.8rem;
  }
  
  .logo {
    font-size: 1.3rem;
  }
  
  /* Убираем отступы для мобильных */
  .container {
    padding: 0 10px;
  }
  
  /* Дополнительные правила против горизонтального скролла */
  .section-title {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
}

/* ==================== УТИЛИТЫ ==================== */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--color-primary);
}

.text-secondary {
  color: var(--color-secondary);
}

.bg-gradient {
  background: var(--gradient-main);
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }