:root {
  /* Основные цвета */
  --primary-color: #3a3a3a;
  --secondary-color: #555555;
  --accent-color: #7c7c7c;
  --light-color: #f5f5f5;
  --dark-color: #212121;

  /* Акцентные цвета */
  --accent-light: #a0a0a0;
  --accent-dark: #4a4a4a;

  /* Цвета для текста */
  --text-dark: #333333;
  --text-light: #ffffff;
  --text-muted: #6c757d;

  /* Цвета для кнопок */
  --btn-primary: #5a5a5a;
  --btn-primary-hover: #444444;
  --btn-secondary: #e0e0e0;
  --btn-secondary-hover: #c8c8c8;

  /* Тени */
  --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 10px 20px rgba(0, 0, 0, 0.15);

  /* Переходы */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Радиусы */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  /* Размеры контейнеров */
  --container-padding: 2rem;
  --section-spacing: 5rem;
}

/* Основные стили */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text-dark);
  background-color: var(--light-color);
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1 {
  font-size: 3.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: 50px;
  height: 3px;
  background-color: var(--accent-color);
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
}

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

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

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

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

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

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

.btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  z-index: -1;
}

.btn:hover::after {
  height: 100%;
}

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

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

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

.btn-secondary:hover {
  background-color: var(--btn-secondary-hover);
  border-color: var(--btn-secondary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Навигация */
header {
  background-color: var(--dark-color);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

header.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(33, 33, 33, 0.9);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-light) !important;
}

.navbar-nav .nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: all var(--transition-fast);
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-light);
  transition: width var(--transition-normal);
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.navbar-toggler {
  border: none;
  background-color: transparent;
}

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

/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  padding: 0;
  margin-top: 0;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-content h1 {
  color: var(--text-light);
  font-size: 4rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

.hero-content p {
  color: var(--text-light);
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.3s;
}

.hero-content .btn {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Карточки */
.card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: white;
  border: none;
}

.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: transform var(--transition-slow);
}

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

.card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

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

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

.card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Параллакс секции */
.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.parallax-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

/* Секция Accolades */
#accolades {
  background-color: var(--light-color);
}

#accolades .card {
  text-align: center;
}

/* Секция History */
#history {
  position: relative;
}

.accordion-button:not(.collapsed) {
  background-color: var(--accent-light);
  color: var(--text-dark);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--accent-color);
}

/* Секция Testimonials */
#testimonials {
  background-color: var(--light-color);
}

.stars {
  color: #ffc107;
  font-size: 1.2rem;
}

/* Секция Success Stories */
#success-stories {
  position: relative;
}

/* Секция Resources */
#resources {
  background-color: var(--light-color);
}

/* Секция Clientele */
#clientele {
  position: relative;
}

.progress {
  height: 8px;
  margin-bottom: 1rem;
  background-color: #e9ecef;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.progress-bar {
  background-color: var(--accent-color);
  transition: width 1.5s ease;
}

/* Секция Events Calendar */
#events {
  background-color: var(--light-color);
}

.text-muted {
  color: var(--text-muted) !important;
}

/* Секция Careers */
#careers {
  position: relative;
}

/* Секция Contact */
#contact {
  background-color: var(--light-color);
}

.map-container {
  height: 300px;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

form label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.form-control,
.form-select {
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  border: 1px solid #ced4da;
  transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(122, 122, 122, 0.25);
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--text-light);
  padding: 4rem 0 2rem;
}

footer h4 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

footer h4::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-light);
}

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

footer a:hover {
  color: var(--accent-light);
  text-decoration: none;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer .input-group {
  margin-top: 1rem;
}

/* Cookie Consent */
#cookieConsent {
  background-color: rgba(33, 33, 33, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 1.5rem;
}

#cookieConsent p {
  margin-bottom: 1rem;
}

/* Дополнительные страницы */
.page-content {
  padding-top: 100px;
  min-height: calc(100vh - 400px);
}

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

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

.success-icon {
  font-size: 5rem;
  color: #28a745;
  margin-bottom: 2rem;
}

/* Privacy & Terms Pages */
.privacy-content,
.terms-content {
  padding-top: 100px;
  padding-bottom: 3rem;
}

.privacy-content h2,
.terms-content h2 {
  margin-top: 2.5rem;
}

/* Медиа запросы */
@media (max-width: 991.98px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.2rem;
  }

  .navbar-collapse {
    background-color: var(--dark-color);
    padding: 1rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .card-image {
    height: 200px;
  }
}

@media (max-width: 767.98px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  section {
    padding: 4rem 0;
  }

  .hero-content {
    padding: 1rem;
  }

  .card-content {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
  }

  .card-image {
    height: 180px;
  }
}

/* Анимации */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

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

/* Читать далее ссылки */
.read-more {
  display: inline-block;
  color: var(--accent-color);
  font-weight: 500;
  position: relative;
  padding-right: 1.5rem;
  transition: all var(--transition-fast);
}

.read-more::after {
  content: "→";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition-fast);
}

.read-more:hover {
  color: var(--accent-dark);
}

.read-more:hover::after {
  transform: translate(5px, -50%);
}

/* Иконки социальных сетей в футере */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  color: var(--text-light);
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  color: var(--accent-light);
  transform: translateY(-3px);
}

/* Адаптивная типография */
@media (min-width: 1200px) {
  html {
    font-size: 18px;
  }
}

@media (max-width: 1199.98px) {
  html {
    font-size: 16px;
  }
}

@media (max-width: 991.98px) {
  html {
    font-size: 15px;
  }
}

@media (max-width: 767.98px) {
  html {
    font-size: 14px;
  }
}

/* Улучшения для доступности */
:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.section {
  padding-block: 130px 0;
  background: rgba(255, 255, 255, 0.95);
  margin: 2rem 0;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.section:hover {
  transform: translateY(-5px);
}

.section-header {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>');
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.section-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.section-content {
  padding: 2rem;
}

/* FAQ Styles */
.faq-item {
  border-bottom: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  padding: 1.5rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #28a745;
}

.faq-toggle {
  width: 24px;
  height: 24px;
  background: #28a745;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #666;
  line-height: 1.6;
}

.faq-answer.active {
  max-height: 200px;
  padding-bottom: 1.5rem;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* Job Search Styles */
.job-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.job-listings {
  display: grid;
  gap: 1rem;
}

.job-card {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 1.5rem;
  border-left: 4px solid #28a745;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.job-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 0.5rem;
}

.job-location {
  color: #666;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.job-description {
  color: #555;
  margin-bottom: 1rem;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.job-tag {
  background: #e8f5e8;
  color: #28a745;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.ball-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: #28a745;
  border-radius: 50%;
  margin-right: 0.5rem;
  position: relative;
}

.ball-icon::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border: 1px solid white;
  border-radius: 50%;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .job-form {
    grid-template-columns: 1fr;
  }

  .faq-question {
    font-size: 1rem;
  }

  .section-header {
    padding: 1.5rem;
  }

  .section-content {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
  }

  .faq-question {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .faq-toggle {
    align-self: flex-end;
  }
}
