:root {
  /* Цветовая схема Тетрада */
  --primary-color: #0E4C92; /* Основной синий */
  --primary-dark: #083166;
  --primary-light: #3A75B4;
  
  --secondary-color: #C42348; /* Красный акцент */
  --secondary-dark: #901A35;
  --secondary-light: #E15470;
  
  --tertiary-color: #1E9A4B; /* Зеленый акцент */
  --tertiary-dark: #14632F;
  --tertiary-light: #4AC379;
  
  --quaternary-color: #F08C00; /* Оранжевый акцент */
  --quaternary-dark: #B56800;
  --quaternary-light: #FFAB40;
  
  /* Нейтральные цвета */
  --dark: #222222;
  --dark-gray: #444444;
  --medium-gray: #777777;
  --light-gray: #EEEEEE;
  --white: #FFFFFF;
  
  /* Функциональные цвета */
  --success: #28a745;
  --warning: #ffc107;
  --danger: #dc3545;
  --info: #17a2b8;
  
  /* Тени */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  --shadow-neo: 5px 5px 0px rgba(0, 0, 0, 0.8);
  
  /* Закругления */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Переходы */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Основные стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rubik', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark);
}

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

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

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

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

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Заголовки секций */
.section-title {
  text-align: center;
  position: relative;
  margin-bottom: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 0.8rem auto 0;
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--medium-gray);
  font-size: 1.1rem;
}

/* Секции */
section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  padding: 15px 0;
  transition: var(--transition-normal);
}

.site-header.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

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

.logo {
  z-index: 1001;
}

.logo img {
  height: 50px;
  width: auto;
  transition: var(--transition-fast);
}

.site-header.scrolled .logo img {
  height: 40px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin: 0 10px;
}

.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 5px;
  position: relative;
  color: var(--dark);
}

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition-fast);
}

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

.burger-menu {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}

.burger-menu span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background-color: var(--dark);
  border-radius: 3px;
  transition: var(--transition-fast);
}

.burger-menu span:nth-child(1) {
  top: 0;
}

.burger-menu span:nth-child(2) {
  top: 8px;
}

.burger-menu span:nth-child(3) {
  top: 16px;
}

.burger-menu.active span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
}

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

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

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
  transform: translateY(30px);
  opacity: 0;
  animation: fadeInUp 1s forwards 0.5s;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--white);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Кнопки */
.btn, button, input[type='submit'] {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  font-family: 'Manrope', sans-serif;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: var(--shadow-neo);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.8);
  color: var(--white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  box-shadow: var(--shadow-neo);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.8);
}

/* Сервисы */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  border: 2px solid var(--dark);
}

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

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-normal);
}

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

.card-content {
  padding: 25px;
  flex-grow: 1;
  width: 100%;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* О нас */
.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
  position: relative;
}

.about-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-neo);
}

.about-text {
  flex: 1;
}

.about-text h3 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 20px;
  position: relative;
}

.about-text h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

/* Проекты */
.projects-carousel {
  margin-top: 2rem;
}

.carousel-container {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  padding: 0 15px;
}

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

.prev-btn, .next-btn {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  margin: 0 10px;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-md);
}

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

/* Внешние ресурсы */
.external-resources {
  background-color: var(--dark);
  color: var(--white);
  padding: 60px 0;
}

.external-resources .section-title {
  color: var(--white);
}

.external-resources .section-title::after {
  background-color: var(--quaternary-color);
}

.external-resources .section-description {
  color: var(--light-gray);
}

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

.resource-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: var(--radius-md);
  border: 2px solid var(--quaternary-color);
  box-shadow: var(--shadow-neo);
  transition: var(--transition-normal);
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 7px 7px 0px rgba(0, 0, 0, 0.8);
}

.resource-card h3 {
  color: var(--quaternary-color);
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.resource-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resource-card li {
  margin-bottom: 12px;
}

.resource-card a {
  color: var(--white);
  transition: var(--transition-fast);
  display: inline-block;
  position: relative;
  padding-left: 20px;
}

.resource-card a::before {
  content: '→';
  position: absolute;
  left: 0;
  transition: var(--transition-fast);
}

.resource-card a:hover {
  color: var(--quaternary-light);
  transform: translateX(5px);
}

/* Отзывы */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonials .card {
  text-align: left;
}

.rating {
  color: var(--quaternary-color);
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  padding: 0 10px;
}

.testimonial-text::before, .testimonial-text::after {
  content: '"';
  font-size: 2rem;
  color: var(--light-gray);
  position: absolute;
}

.testimonial-text::before {
  top: -10px;
  left: -5px;
}

.testimonial-text::after {
  bottom: -20px;
  right: -5px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: auto;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
  border: 3px solid var(--primary-light);
}

.testimonial-author h4 {
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
}

.testimonial-author p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--medium-gray);
}

/* FAQ Секция */
.accordion {
  max-width: 900px;
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: 1rem;
  border: 2px solid var(--dark);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-neo);
  background-color: var(--white);
}

.accordion-header {
  width: 100%;
  text-align: left;
  padding: 20px;
  background-color: var(--white);
  color: var(--dark);
  font-weight: 600;
  border: none;
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Manrope', sans-serif;
  font-size: 1.1rem;
}

.accordion-header::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 600;
}

.accordion-header.active {
  background-color: var(--tertiary-color);
  color: var(--white);
}

.accordion-header.active::after {
  content: '-';
}

.accordion-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content p {
  padding: 20px 0;
  margin: 0;
}

/* Команда */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.team .card-image {
  height: 300px;
  border-radius: 50% 50% 0 0;
}

.position {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1rem;
}

/* Вакансии */
.job-listings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 3rem;
}

.job-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--dark);
}

.job-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.job-header h3 {
  margin: 0;
  color: var(--white);
  font-size: 1.3rem;
}

.job-type {
  background-color: var(--quaternary-color);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.job-content {
  padding: 25px;
}

.job-content ul {
  margin-bottom: 25px;
}

.application-note {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 25px;
  background-color: var(--light-gray);
  border-radius: var(--radius-md);
  border: 2px solid var(--dark);
  box-shadow: var(--shadow-neo);
}

/* Статистика */
.statistics {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}

.statistics .section-title {
  color: var(--white);
}

.statistics .section-title::after {
  background-color: var(--white);
}

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

.stat-card {
  padding: 30px 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  border: 2px solid var(--white);
  box-shadow: var(--shadow-neo);
}

.stat-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 10px;
  font-family: 'Manrope', sans-serif;
}

.stat-card p {
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Контакты */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  margin-top: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.info-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.info-item p {
  margin-bottom: 0;
}

.map-container {
  margin-top: auto;
  height: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-neo);
  border: 2px solid var(--dark);
}

.contact-form-container {
  background-color: var(--white);
  padding: 30px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-neo);
  border: 2px solid var(--dark);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 0;
}

.form-group:last-child, .form-group:nth-last-child(2) {
  grid-column: span 2;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark);
}

input, select, textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--dark-gray);
  border-radius: var(--radius-sm);
  font-family: 'Rubik', sans-serif;
  font-size: 1rem;
  transition: var(--transition-fast);
  background-color: var(--white);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(14, 76, 146, 0.2);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* Footer */
.site-footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  grid-column: span 2;
}

.footer-logo p {
  margin-top: 15px;
  max-width: 300px;
}

.footer-links h3, .footer-social h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-links h3::after, .footer-social h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links ul, .footer-social ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li, .footer-social li {
  margin-bottom: 10px;
}

.footer-links a, .footer-social a {
  color: var(--light-gray);
  transition: var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover, .footer-social a:hover {
  color: var(--quaternary-light);
  transform: translateX(5px);
}

.footer-social a {
  display: flex;
  align-items: center;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Куки */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  color: var(--white);
  z-index: 9999;
  display: none;
}

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

.cookie-content p {
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.cookie-content button {
  background-color: var(--quaternary-color);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
}

.cookie-content button:hover {
  background-color: var(--quaternary-dark);
}

.cookie-content a {
  color: var(--quaternary-color);
  margin-left: 20px;
}

.cookie-content a:hover {
  color: var(--quaternary-light);
}

/* Success Page */
.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 30px;
  text-align: center;
}

.success-content {
  max-width: 600px;
  padding: 50px;
  background-color: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-neo);
  border: 2px solid var(--dark);
}

.success-content h1 {
  color: var(--tertiary-color);
  margin-bottom: 20px;
}

.success-icon {
  font-size: 80px;
  color: var(--tertiary-color);
  margin-bottom: 30px;
}

/* Privacy & Terms Pages */
.page-content {
  padding-top: 100px;
}

.page-content .container {
  max-width: 800px;
}

.page-content h1 {
  margin-bottom: 40px;
  text-align: center;
}

.page-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: var(--primary-color);
}

.page-content p, .page-content ul {
  margin-bottom: 20px;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Адаптивный дизайн */
@media (max-width: 1200px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .about-image, .about-text {
    width: 100%;
  }
}

@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    z-index: 1000;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  .main-nav li {
    margin: 15px 0;
  }
  
  .main-nav a {
    font-size: 1.2rem;
  }
  
  .burger-menu {
    display: block;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }
  
  .form-group:nth-last-child(2) {
    grid-column: span 1;
  }
  
  .form-group:last-child {
    grid-column: span 1;
  }
  
  .footer-logo {
    grid-column: span 1;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .card-image {
    height: 200px;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cookie-content button, .cookie-content a {
    margin-left: 0;
  }
}