:root {
  /* Пастельная цветовая схема */
  --primary-color: #c5e0dc;
  --primary-dark: #9ccbc8;
  --secondary-color: #f9d5e5;
  --secondary-dark: #eabccd;
  --accent-color: #ffb6b9;
  --accent-dark: #ff9ea2;
  --text-dark: #333333;
  --text-light: #ffffff;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --bg-dark: #222222;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --transition-speed: 0.3s;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.15);
  --gradient-overlay: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}

/* Общие стили */
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  transition: transform var(--transition-speed);
}

section {
  padding: 5rem 0;
  position: relative;
}

.container {
  position: relative;
  z-index: 1;
}

/* Брутализм и блочное строение */
.brutalist-block {
  background-color: var(--bg-white);
  border: 3px solid var(--text-dark);
  border-radius: var(--border-radius);
  box-shadow: 8px 8px 0 var(--text-dark);
  transform: translateZ(0);
  transition: all var(--transition-speed);
}

.brutalist-block:hover {
  transform: translate(-5px, -5px);
  box-shadow: 13px 13px 0 var(--text-dark);
}

/* Кнопки */
.btn, 
button, 
input[type='submit'] {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 2px solid transparent;
}

html {
  overflow-x: hidden;
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  z-index: -1;
  transform: skewX(-25deg) translateX(-100%);
  transition: all 0.5s;
}

.btn:hover:before {
  transform: skewX(-25deg) translateX(0);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-dark);
  border-color: var(--primary-dark);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--text-dark);
}

/* Хедер */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-white);
  box-shadow: var(--box-shadow);
  padding: 1rem 0;
  transition: all var(--transition-speed);
}

.header.scrolled {
  padding: 0.5rem 0;
}

.navbar-brand {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: color var(--transition-speed);
}

.navbar-brand:hover {
  color: var(--primary-dark);
}

.navbar-nav .nav-link {
  font-weight: 600;
  padding: 0.5rem 1rem;
  color: var(--text-dark);
  position: relative;
  transition: color var(--transition-speed);
}

.navbar-nav .nav-link:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-speed);
}

.navbar-nav .nav-link:hover {
  color: var(--accent-color);
}

.navbar-nav .nav-link:hover:before {
  transform: scaleX(1);
}

.navbar-toggler {
  border: none;
  padding: 0;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

/* Hero секция */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-light);
  margin-top: -76px;
  padding-top: 76px;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  transform: translateZ(30px);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 80%;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  transform: translateZ(20px);
}

/* Карточки продуктов */
.products {
  background-color: var(--bg-white);
}

.card {
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  transition: all var(--transition-speed);
  height: 100%;
  box-shadow: var(--box-shadow);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.card-text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.card-price {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-top: auto;
  margin-bottom: 1.5rem;
}

.list-group-item {
  border: none;
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
}

.list-group-item:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* Методология */
.methodology {
  background-color: var(--bg-light);
}

.methodology .image-container {
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.methodology img {
  transition: transform 0.5s;
}

.methodology .image-container:hover img {
  transform: scale(1.05);
}

.stat-widget {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: all var(--transition-speed);
}

.stat-widget:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.stat-widget h4 {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.stat-widget p {
  margin-bottom: 0;
  color: var(--text-dark);
}

/* Процесс */
.our-process {
  background-color: var(--bg-white);
}

.process-timeline {
  position: relative;
  padding: 2rem 0;
}

.process-timeline:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 2rem;
  width: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.process-step {
  position: relative;
  padding-left: 5rem;
  margin-bottom: 3rem;
}

.process-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 4rem;
  height: 4rem;
  background-color: var(--primary-color);
  color: var(--text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Raleway', sans-serif;
  z-index: 1;
  box-shadow: var(--box-shadow);
  transition: all var(--transition-speed);
}

.process-step:hover .process-number {
  transform: scale(1.1);
  background-color: var(--primary-dark);
}

.process-content h3 {
  margin-bottom: 1rem;
}

.process-content p {
  color: var(--text-muted);
}

/* Медиа */
.media {
  background-color: var(--bg-light);
}

/* Команда */
.team {
  background-color: var(--bg-white);
}

.team .card-image {
  height: 300px;
  border-radius: 50%;
  width: 300px;
  margin: 2rem auto 1rem;
  overflow: hidden;
}

.team .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.team .card:hover .card-image img {
  transform: scale(1.05);
}

.team .card-subtitle {
  color: var(--primary-color);
  font-weight: 600;
}

/* Контакты */
.contact {
  background-color: var(--bg-light);
}

.contact-form {
  background-color: var(--bg-white);
  box-shadow: var(--box-shadow);
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: var(--text-dark);
  border-radius: 50%;
  font-size: 1.2rem;
}

.form-control {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  border: 2px solid var(--bg-light);
  border-radius: var(--border-radius);
  transition: all var(--transition-speed);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: none;
}

/* Футер */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding-top: 5rem;
}

.footer h3 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

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

.footer-links a, 
.social-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--transition-speed);
  display: inline-block;
  position: relative;
}

.footer-links a:before, 
.social-links a:before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width var(--transition-speed);
}

.footer-links a:hover, 
.social-links a:hover {
  color: var(--text-light);
}

.footer-links a:hover:before, 
.social-links a:hover:before {
  width: 100%;
}

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

.newsletter input {
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-light);
}

.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter input:focus {
  background-color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  color: rgba(255, 255, 255, 0.5);
}

/* Страница успеха */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 0;
}

.success-content {
  max-width: 600px;
  padding: 3rem;
  background-color: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
}

.success-icon {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

/* Страницы Privacy и Terms */
.content-page {
  padding-top: 120px;
  padding-bottom: 5rem;
}

.content-page h1 {
  margin-bottom: 3rem;
}

.content-page h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.content-page p {
  margin-bottom: 1.5rem;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  color: var(--text-light);
  padding: 1rem;
  z-index: 9999;
  display: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-content p {
  margin-bottom: 0;
  flex: 1;
}

/* Анимации и 3D эффекты */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.fadeInUp {
  animation: fadeInUp 1s;
}

/* Респонсивность */
@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .hero h1 {
    font-size: 3.2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
    max-width: 100%;
  }
  
  .process-timeline:before {
    left: 1.5rem;
  }
  
  .process-number {
    width: 3rem;
    height: 3rem;
    font-size: 1.2rem;
  }
  
  .process-step {
    padding-left: 4rem;
  }
  
  .team .card-image {
    height: 250px;
    width: 250px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .footer {
    padding-top: 3rem;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-content p {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .btn, button, input[type='submit'] {
    padding: 0.6rem 1.2rem;
  }
  
  .team .card-image {
    height: 200px;
    width: 200px;
  }
}