/* Основные стили для сайта "Asktop" */
:root {
  --primary-color: #2D6A4F; /* Основной зелёный - ассоциируется со строительством и экологичностью */
  --secondary-color: #40916C; /* Более светлый зелёный */
  --accent-color: #FF8427; /* Акцентный оранжевый - строительные элементы */
  --dark-color: #1B3A27; /* Тёмный зелёный для текста */
  --light-color: #F8FAF8; /* Светлый фон */
  --text-color: #2D3548; /* Цвет текста */
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --box-shadow: 0 10px 30px rgba(45, 106, 79, 0.15);
  --card-shadow: 8px 8px 30px rgba(45, 106, 79, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--light-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 3D-эффект блоков - уникальная фишка сайта */
.construction-block {
  position: relative;
  border-radius: 16px;
  background: var(--light-color);
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.construction-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--accent-color);
  transform: translateZ(10px);
}

.construction-block:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 20px 40px rgba(45, 106, 79, 0.2);
}

/* Интерактивный курсор-строительный */
.cursor-blueprint {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px dashed var(--accent-color);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease;
  z-index: 9999;
  opacity: 0;
  mix-blend-mode: difference;
}

/* Основные контейнеры */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
  position: relative;
}

/* Шапка сайта */
header {
  position: sticky;
  top: 0;
  background: rgba(248, 250, 248, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  padding: 20px 0;
  border-bottom: 1px solid rgba(45, 106, 79, 0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 28px;
}

/* Навигация */
nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  font-size: 16px;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--primary-color);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Герой-секция */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 40%;
  height: 80%;
  background: radial-gradient(circle, rgba(64, 145, 108, 0.15) 0%, rgba(45, 106, 79, 0) 70%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: morph 15s ease-in-out infinite;
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 40%;
  height: 80%;
  background: radial-gradient(circle, rgba(255, 132, 39, 0.1) 0%, rgba(255, 132, 39, 0) 70%);
  border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
  animation: morph 15s ease-in-out infinite alternate;
  z-index: -1;
}

@keyframes morph {
  0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
  50% { border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; }
  100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.hero-content {
  max-width: 650px;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.2;
  margin-bottom: 24px;
  font-weight: 800;
  color: var(--dark-color);
}

.hero-highlight {
  color: var(--accent-color);
  position: relative;
  display: inline-block;
}

.hero-highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(255, 132, 39, 0.3);
  z-index: -1;
}

.hero p {
  font-size: 18px;
  margin-bottom: 32px;
  color: var(--text-color);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--primary-color);
  color: white;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: var(--box-shadow);
}

.cta-button:hover {
  background: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(45, 106, 79, 0.2);
}

/* Секции */
.section-title {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--dark-color);
}

.section-subtitle {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 60px;
  color: var(--text-color);
  opacity: 0.8;
}

/* Карточки экспертов и категорий */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  padding: 30px;
  border-radius: 16px;
  transition: all 0.3s;
}

.card-icon {
  font-size: 40px;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.card h3 {
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--dark-color);
}

.card p {
  color: var(--text-color);
  opacity: 0.9;
}

/* О компании */
.about-section {
  position: relative;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-size: 40px;
  margin-bottom: 24px;
  color: var(--dark-color);
}

.about-text p {
  margin-bottom: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat {
  text-align: center;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(45, 106, 79, 0.05), rgba(64, 145, 108, 0.1));
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.stat-text {
  font-size: 16px;
  color: var(--text-color);
}

/* Процесс работы */
.process {
  position: relative;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.step {
  padding: 30px;
  border-radius: 16px;
  background: white;
  box-shadow: var(--card-shadow);
  position: relative;
}

.step-number {
  position: absolute;
  top: -15px;
  left: 30px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: white;
  font-weight: 700;
  border-radius: 50%;
}

.step h3 {
  margin-top: 15px;
  margin-bottom: 15px;
  font-size: 20px;
  color: var(--dark-color);
}

/* Контакты */
.contact-section {
  position: relative;
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 50px;
  box-shadow: var(--card-shadow);
}

.contact-info {
  margin-top: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 24px;
  color: var(--accent-color);
  margin-right: 15px;
}

.contact-text {
  font-size: 18px;
}

.contact-text a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-text a:hover {
  text-decoration: underline;
}

/* Подвал */
footer {
  background: var(--dark-color);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* FAQ раздел */
.faq-item {
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  background: white;
  font-weight: 600;
  color: var(--dark-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 5px 20px rgba(45, 106, 79, 0.05);
  transition: all 0.3s;
}

.faq-question:hover {
  background: rgba(45, 106, 79, 0.05);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
  background: white;
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 1000px;
}

/* CTA секция */
.cta-section {
  background: var(--gradient);
  padding: 80px 0;
  color: white;
  text-align: center;
  border-radius: 20px;
  margin: 0 20px;
}

.cta-section h2 {
  font-size: 40px;
  margin-bottom: 20px;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 40px;
}

.cta-button-white {
  background: white;
  color: var(--primary-color);
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cta-button-white:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Адаптивность */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 44px;
  }
  
  .section-title {
    font-size: 36px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .stats {
    margin-top: 30px;
  }
  
  .contact-content {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 20px;
  }
  
  nav ul {
    gap: 20px;
  }
  
  .hero {
    padding: 80px 0;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .section-subtitle {
    font-size: 16px;
  }
  
  .stats {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .cta-button {
    width: 100%;
    justify-content: center;
  }
  
  .card-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeIn 0.5s ease forwards;
}

/* Blueprint анимированные линии для фона */
.blueprint-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
  background-size: 50px 50px;
  background-image:
    linear-gradient(var(--primary-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--primary-color) 1px, transparent 1px);
}