/* ========== VARIABLES ET RESET ========== */
:root {
  --primary: #00bcd4;
  --accent: #ff6f61;
  --text: #333333;
  --background: #f9f9f6;
  --ui-peach: #ffd27f;
  --ui-jade: #00a78e;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.2);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--background);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* ========== ANIMATIONS CSS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

/* ========== LAYOUT CONTAINERS ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
  animation: fadeIn 0.6s ease-out;
}

.section-alt {
  background-color: var(--white);
}

/* ========== HEADER ========== */
.header {
  background: linear-gradient(135deg, var(--primary), var(--ui-jade));
  color: var(--white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--shadow);
  transition: var(--transition);
}

.header:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px var(--shadow-dark);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideInLeft 0.8s ease-out;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--white);
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
  color: var(--ui-peach);
}

.nav {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--ui-peach);
  transition: var(--transition);
}

.nav a:hover::after {
  width: 100%;
}

.nav a:hover {
  color: var(--ui-peach);
  transform: translateY(-2px);
}

/* ========== HERO SECTION ========== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--ui-jade) 100%);
  color: var(--white);
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('./img/FkW4y3.jpg') center center/cover;
  opacity: 0.1;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff8a65);
  color: var(--white);
  opacity: 1;
  visibility: visible;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(255, 111, 97, 0.4);
  animation: pulse 0.6s ease-in-out;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--ui-peach), #ffdf9e);
  color: var(--text);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 210, 127, 0.4);
}

/* ========== SERVICES GRID ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px var(--shadow);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-dark);
}

.service-image {
  width: 100%;
  height: 200px;
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

/* ========== FEATURES ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 3px 10px var(--shadow);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--shadow-dark);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent), #ff8a65);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ========== PROCESS STEPS ========== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 50px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--ui-jade));
  z-index: -1;
}

.process-step:last-child::after {
  display: none;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--ui-jade), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  transition: var(--transition);
}

.process-step:hover .step-number {
  transform: scale(1.1) rotate(5deg);
  animation: pulse 0.6s ease-in-out;
}

/* ========== FAQ ========== */
.faq-item {
  background: var(--white);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: 0 5px 15px var(--shadow-dark);
}

.faq-question {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--ui-peach), #ffdf9e);
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background: linear-gradient(135deg, #ffdf9e, var(--ui-peach));
}

.faq-answer {
  padding: 1.5rem;
  border-top: 1px solid #eee;
}

/* ========== FORM ========== */
.form-container {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px var(--shadow);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--background);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1rem;
}

.form-checkbox input {
  margin-top: 5px;
}

/* ========== FOOTER ========== */
.footer {
  background: linear-gradient(135deg, var(--text), #2c2c2c);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--ui-peach);
  margin-bottom: 1rem;
}

.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #444;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ========== COOKIE BANNER ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--text), #2c2c2c);
  color: var(--white);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 10000;
  transform: translateY(100%);
  transition: var(--transition);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-text {
  flex: 1;
  font-size: 0.9rem;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
}

.cookie-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.cookie-accept {
  background: var(--primary);
  color: var(--white);
}

.cookie-accept:hover {
  background: var(--ui-jade);
  transform: scale(1.05);
}

.cookie-decline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

.cookie-decline:hover {
  background: var(--white);
  color: var(--text);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  .header {
    padding: 0.75rem 0;
  }

  .header-content {
    flex-direction: column;
    gap: 0.75rem;
  }

  .logo {
    font-size: 1.5rem;
  }
  
  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
    justify-content: center;
    font-size: 0.9rem;
  }

  .hero {
    padding: 80px 0;
  }
  
  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .container {
    padding: 0 15px;
    max-width: 100%;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .form-container {
    padding: 2rem 1.5rem;
    max-width: 100%;
  }
  
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  
  .cookie-actions {
    width: 100%;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .process-step::after {
    display: none;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-image {
    height: 150px;
  }

  /* Адаптация сетки локализации для мобильных */
  div[style*="grid-template-columns: 1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 2rem !important;
  }

  /* Все элементы должны помещаться на экране */
  * {
    max-width: 100%;
    box-sizing: border-box;
  }

  img, iframe {
    max-width: 100%;
    height: auto;
  }

  .hero-content,
  .service-card,
  .feature-item,
  .process-step {
    max-width: 100%;
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    max-width: 250px;
  }
  
  .service-card {
    padding: 1.5rem;
    margin: 0;
  }

  .service-image {
    height: 120px;
  }
  
  .form-container {
    padding: 1.5rem 1rem;
    width: 100%;
  }

  .container {
    padding: 0 10px;
  }

  .section {
    padding: 40px 0;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  /* Компактная шапка для очень малых экранов */
  .header {
    padding: 0.5rem 0;
  }

  .logo {
    font-size: 1.3rem;
  }

  .nav {
    font-size: 0.85rem;
    gap: 0.75rem;
  }

  .nav a {
    padding: 0.25rem 0.5rem;
  }
}

/* ========== UTILITY CLASSES ========== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
.fade-in { animation: fadeIn 0.6s ease-out; }
.slide-in-left { animation: slideInLeft 0.8s ease-out; }
.fade-in-up { animation: fadeInUp 1s ease-out; } 