:root {
  /* Основная монохромная палитра */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-lighter: #60a5fa;
  --primary-lightest: #93c5fd;
  
  /* Оттенки серого для монохромной схемы */
  --gray-darkest: #1f2937;
  --gray-dark: #374151;
  --gray-medium: #6b7280;
  --gray-light: #9ca3af;
  --gray-lightest: #f3f4f6;
  
  /* Акцентные цвета */
  --accent-color: #0284c7;
  --accent-dark: #0369a1;
  --accent-light: #38bdf8;
  
  /* Цвета состояний */
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  
  /* Цвета фона */
  --bg-light: #ffffff;
  --bg-off-white: #f9fafb;
  --bg-light-blue: #f0f9ff;
  
  /* Цвета текста */
  --text-dark: #111827;
  --text-medium: #4b5563;
  --text-light: #ffffff;
  
  /* Тени */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  /* Переходы */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Радиусы скругления */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  
  /* Шрифты */
  --font-heading: 'Manrope', 'Tajawal', sans-serif;
  --font-body: 'Rubik', 'Cairo', sans-serif;
}

/* Общие стили */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  direction: rtl;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

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

/* Контейнеры и секции */
.section {
  padding: 5rem 1.5rem;
  position: relative;
}

.section:nth-child(odd) {
  background-color: var(--bg-off-white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Анимации появления элементов */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawIn {
  0% {
    opacity: 0;
    stroke-dashoffset: 100;
  }
  100% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s var(--transition-normal) forwards;
}

.stagger-item {
  opacity: 0;
}

/* Навигация */
.navbar {
  background-color: var(--bg-light);
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.3rem 0;
}

.navbar-item {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-dark);
  transition: color var(--transition-fast);
}

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

.navbar-burger {
  color: var(--text-dark);
}

/* Hero секция */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.7);
}

.hero-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
}

.hero-body {
  z-index: 2;
  position: relative;
}

.hero .title, 
.hero .subtitle, 
.hero p {
  color: var(--text-light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  animation: fadeIn 1s var(--transition-normal);
}

.hero .subtitle {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  animation: fadeIn 1s 0.3s var(--transition-normal) forwards;
  opacity: 0;
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  animation: fadeIn 1s 0.6s var(--transition-normal) forwards;
  opacity: 0;
}

/* Кнопки */
.button {
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.button.is-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
}

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

.button.is-light {
  background-color: var(--bg-light);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.button.is-light:hover {
  background-color: var(--primary-lightest);
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.animated-button {
  position: relative;
  overflow: hidden;
}

.animated-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.animated-button:hover::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  20% {
    transform: scale(25, 25);
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: scale(40, 40);
  }
}

/* Процесс - Our Process */
.process-timeline {
  position: relative;
  margin: 4rem 0;
}

.process-card {
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.process-card::before {
  content: attr(data-step);
  position: absolute;
  top: -15px;
  right: -15px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: bold;
  z-index: 2;
}

.process-image {
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-align: center;
}

.process-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-normal);
  margin: 0 auto;
}

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

.process-content {
  text-align: center;
}

.process-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Услуги - Services */
.accordion {
  margin: 2rem 0;
}

.accordion-item {
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-light);
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  background-color: var(--bg-light);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.accordion-header:hover {
  background-color: var(--bg-light-blue);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
  padding: 0 1.5rem;
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
  padding: 1.5rem;
}

.accordion-item.active .accordion-header {
  background-color: var(--primary-lightest);
}

.accordion-header .icon {
  transition: transform var(--transition-normal);
}

.accordion-item.active .accordion-header .icon {
  transform: rotate(180deg);
}

/* Истории успеха - Success Stories */
.carousel-container {
  position: relative;
  overflow: hidden;
  margin: 3rem 0;
}

.carousel-wrapper {
  display: flex;
  transition: transform var(--transition-normal);
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.carousel-control-prev,
.carousel-control-next {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: var(--primary-dark);
}

.carousel-dots {
  display: flex;
  margin: 0 1rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--gray-light);
  margin: 0 0.25rem;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.carousel-dot.active {
  background-color: var(--primary-color);
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.card-image {
  width: 100%;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.card-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-normal);
  margin: 0 auto;
}

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

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

/* Ресурсы - Resources */
.resource-card {
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.resource-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.resource-card p {
  margin-bottom: 1.5rem;
}

.resource-card .button {
  align-self: center;
}

/* За кулисами - Behind the Scenes */
.behind-image-container {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.behind-image-container img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.behind-content {
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.behind-content h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* Галерея - Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.gallery-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.gallery-modal-content {
  position: relative;
  max-width: 80%;
  max-height: 80%;
}

.gallery-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--text-light);
  font-size: 2rem;
  cursor: pointer;
}

.gallery-modal-image {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
}

.gallery-modal-caption {
  color: var(--text-light);
  text-align: center;
  padding: 1rem 0;
}

/* Портфолио - Portfolio */
.portfolio-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.portfolio-image {
  width: 100%;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.portfolio-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-normal);
  margin: 0 auto;
}

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

.portfolio-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

/* Инновации - Innovation */
.innovation-card {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.innovation-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-left: 1.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-lightest);
  border-radius: 50%;
}

.innovation-content {
  flex: 1;
}

.innovation-content h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Карьера - Careers */
.career-card {
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.career-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.career-card .subtitle {
  margin-bottom: 1.5rem;
  color: var(--gray-medium);
}

.career-card p {
  margin-bottom: 2rem;
}

.career-card .button {
  align-self: flex-start;
}

/* Контакты - Contact */
.contact-form-container {
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  margin-bottom: 2rem;
}

.contact-form .field {
  margin-bottom: 1.5rem;
}

.contact-form .label {
  color: var(--text-dark);
  font-weight: 600;
}

.contact-form .input,
.contact-form .textarea,
.contact-form .select select {
  border-radius: var(--radius-sm);
  border: 2px solid var(--gray-light);
  transition: border-color var(--transition-fast);
}

.contact-form .input:focus,
.contact-form .textarea:focus,
.contact-form .select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-lightest);
}

.contact-info {
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-icon {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-left: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-lightest);
  border-radius: 50%;
}

.contact-text {
  flex: 1;
}

.social-media {
  margin-top: 2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.social-links a {
  margin: 0 0.75rem;
  color: var(--primary-color);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: var(--primary-dark);
}

/* Футер - Footer */
.footer {
  background-color: var(--gray-darkest);
  color: var(--text-light);
  padding: 4rem 1.5rem 2rem;
}

.footer .title {
  color: var(--text-light);
}

.footer p {
  color: var(--gray-light);
}

.footer-links {
  list-style: none;
  padding: 0;
}

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

.footer-links a {
  color: var(--gray-light);
  transition: color var(--transition-fast);
}

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

.footer .social-links {
  justify-content: flex-start;
}

.footer .social-links a {
  color: var(--gray-light);
  margin-left: 1.5rem;
  margin-right: 0;
}

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

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-dark);
  text-align: center;
}

/* Всплывающее окно с куками */
.cookie-popup {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: rgba(33, 37, 41, 0.95);
  color: #fff;
  padding: 1rem;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

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

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

/* Страница Успешной отправки - Success */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.success-container {
  max-width: 800px;
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 3rem;
  animation: fadeIn 1s var(--transition-normal);
}

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

.success-title {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.success-message {
  margin-bottom: 2.5rem;
}

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

.content-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.content-page h1 {
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.content-page h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
}

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

/* Адаптивность */
@media (max-width: 1023px) {
  .hero .title {
    font-size: 2.5rem;
  }
  
  .hero .subtitle {
    font-size: 1.5rem;
  }
  
  .process-card::before {
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
  }
  
  .behind-image-container img {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .hero .title {
    font-size: 2rem;
  }
  
  .hero .subtitle {
    font-size: 1.3rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .contact-icon {
    margin-bottom: 0.5rem;
    margin-left: 0;
  }
  
  .cookie-content {
    flex-direction: column;
  }
  
  .cookie-content p {
    margin-bottom: 1rem;
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .hero .title {
    font-size: 1.8rem;
  }
  
  .hero .subtitle {
    font-size: 1.2rem;
  }
  
  .innovation-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .innovation-icon {
    margin-bottom: 1rem;
    margin-left: 0;
  }
  
  .gallery-modal-content {
    max-width: 95%;
  }
  
  .process-image img,
  .card-image img,
  .portfolio-image img {
    height: 200px;
  }
}

/* About, Contacts, Privacy, Terms pages */
.about-page,
.contacts-page,
.privacy-page,
.terms-page {
  padding-top: 100px;
  padding-bottom: 4rem;
}

.page-header {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 3rem 0;
  margin-bottom: 3rem;
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 100"><path fill="%23FFFFFF" d="M0,50 C150,100 350,0 500,50 C650,100 850,0 1000,50 C1150,100 1350,0 1440,50 L1440,100 L0,100 Z"></path></svg>');
  background-size: cover;
  background-position: bottom;
}