/* style.css - Общие стили для сайта Идея 22 */

:root {
  --primary-color: #5a17d6;
  --accent-color: #ff7e5f;
  --gradient-start: #5a17d6;
  --gradient-end: #4361ee;
  --text-color: #333;
  --light-text: #fff;
  --background: #fafafa;
  --card-bg: #ffffff;
  --shadow: 0 8px 30px rgba(90, 23, 214, 0.1);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --container-width: 1280px;
  --header-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-color);
  background-color: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Глобальные стили для текста */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: 2.5rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.75rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

/* Анимации и эффекты */
.blur-bg {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 23, 214, 0.1) 0%, rgba(255, 126, 95, 0.05) 70%, rgba(255, 255, 255, 0) 100%);
  filter: blur(80px);
  z-index: -1;
}

/* Хедер */
.header {
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
}

.logo span {
  color: var(--accent-color);
}

.logo-icon {
  font-size: 2rem;
  margin-right: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
  transition: var(--transition);
  border-radius: 3px;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Главный контент */
.main-content {
  margin-top: var(--header-height);
  padding: 4rem 0;
  min-height: calc(100vh - var(--header-height) - 80px);
}

/* Герой секция */
.hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  flex: 1;
  z-index: 1;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.cta-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
  color: var(--light-text);
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(90, 23, 214, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(90, 23, 214, 0.4);
  color: var(--light-text);
}

/* Секции */
.section {
  margin-bottom: 5rem;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 2.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  height: 4px;
  width: 60px;
  background: var(--accent-color);
  bottom: -10px;
  left: 0;
  border-radius: 2px;
}

/* Карточки услуг */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(90, 23, 214, 0.1);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(90, 23, 214, 0.15);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* О компании */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content {
  max-width: 600px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
}

/* Контакты */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 500px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.contact-text h4 {
  margin-bottom: 0.25rem;
}

.contact-text p, .contact-text a {
  margin-bottom: 0;
}

/* Футер */
.footer {
  background-color: #f5f5f7;
  padding: 3rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-logo {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.copyright {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.9rem;
}

/* Медиа запросы */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .about-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    order: 2;
  }
  
  .section-title {
    text-align: center;
    display: block;
  }
  
  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .nav-links {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
}

/* Особая фишка - неоморфные карточки на главной */
.neomorphic-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.05),
    -8px -8px 16px rgba(255, 255, 255, 0.8);
  padding: 2rem;
  transition: var(--transition);
  border: none;
}

.neomorphic-card:hover {
  box-shadow: 
    12px 12px 20px rgba(0, 0, 0, 0.07),
    -12px -12px 20px rgba(255, 255, 255, 0.9);
  transform: translateY(-5px);
}

/* Эффект плавающих элементов */
.floating {
  animation: floating 5s ease-in-out infinite;
}

@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Фирменный градиентный бордюр */
.gradient-border {
  position: relative;
  border-radius: var(--border-radius);
  padding: 4px;
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
}

.gradient-border-content {
  background: var(--card-bg);
  border-radius: calc(var(--border-radius) - 4px);
  padding: 2rem;
}

/* Анимация появления элементов */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}