:root {
  /* Триадная цветовая схема */
  --primary-color: #4a5de8;
  --primary-darker: #3546c0;
  --primary-lighter: #6b7ced;

  --secondary-color: #e84a7b;
  --secondary-darker: #c03460;
  --secondary-lighter: #ed6b96;

  --tertiary-color: #4ae8b3;
  --tertiary-darker: #30c092;
  --tertiary-lighter: #6bedc4;

  /* Нейтральные цвета */
  --dark: #222222;
  --medium-dark: #333333;
  --medium: #666666;
  --light: #f5f5f7;
  --white: #ffffff;

  /* Гласморфизм */
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.1);
  --glass-blur: 10px;

  /* Тени */
  --box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.navbar{
  background-color: #fff !important;
}

/* Базовые стили */
body {
  font-family: "Open Sans", sans-serif;
  color: var(--medium-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--light);
}

img {
  object-fit: cover;
}

h1,
h2,
h3,
h4,
h5,
h6,
.title,
.subtitle {
  font-family: "Raleway", sans-serif;
  font-weight: 600;
  color: var(--dark);
}

a {
  color: var(--primary-color);
  transition: all 0.3s ease;
}

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

.button {
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.button.is-primary {
  background-color: var(--primary-color);
}

.button.is-primary:hover {
  background-color: var(--primary-darker);
}

.button.is-light {
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--primary-color);
}

.button.is-light:hover {
  background-color: var(--white);
  color: var(--primary-darker);
}

.glassmorphism-button {
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

input,
textarea,
select {
  border-radius: 8px !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 2px rgba(74, 93, 232, 0.2) !important;
}

/* Гласморфизм */
.glassmorphism {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--box-shadow);
}

/* Навигация */
.navbar {
  padding: 10px 0;
  transition: all 0.3s ease;
}

.navbar-item {
  font-weight: 600;
  color: var(--dark);
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.navbar-item:hover {
  color: var(--primary-color);
  background: transparent !important;
}

.navbar-burger {
  height: 4rem;
  width: 4rem;
}

.navbar-menu.is-active {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Hero секция */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}

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

.hero .title,
.hero .subtitle,
.hero p {
  color: var(--white) !important;
  text-shadow: var(--text-shadow);
}

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

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.parallax-section .container {
  position: relative;
  z-index: 2;
}

.parallax-section .title,
.parallax-section .subtitle {
  color: var(--white);
  text-shadow: var(--text-shadow);
}

/* Секции */
.section {
  padding: 5rem 1.5rem;
}

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

.section .title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  width: 60px;
  background: var(--primary-color);
  border-radius: 3px;
}

#estudios .card {
  background-color: #fff !important;
}

/* Карточки */
.card {
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  height: fit-content;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

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

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

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

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

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content .title {
  color: var(--dark);
  margin-bottom: 1rem;
}

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

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

/* Сервисы */
.service-card {
  text-align: center;
  height: 100%;
}

.service-card .image-container {
  border-radius: 16px 16px 0 0;
  height: 200px;
}

.service-card .card-content {
  text-align: left;
}

/* Проекты/Каталог */
.project-card {
  height: 100%;
}

.project-card .image-container {
  border-radius: 16px 16px 0 0;
  height: 220px;
}

/* Статистика */
.statistic-card {
  text-align: center;
  padding: 2rem;
  transition: all 0.3s ease;
}

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

.statistic-card .title {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.statistic-card .subtitle {
  color: var(--white);
  opacity: 0.9;
}

.counter-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
}

/* История */
.history-content {
  padding: 0 1rem;
}

.history-content .title {
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.history-content p {
  margin-bottom: 1rem;
  color: var(--medium-dark);
}

/* Отзывы */
.review-card {
  height: 100%;
}

.review-card .media-left figure {
  margin-right: 1rem;
}

.review-card .content {
  margin-top: 1rem;
}

.review-card .stars {
  color: var(--secondary-color);
  margin-top: 1rem;
}

/* Карьера */
.careers-content {
  padding-right: 2rem;
}

.careers-content .title {
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.careers-content p {
  margin-bottom: 1rem;
  color: var(--medium-dark);
}

.career-positions .position-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.career-positions .position-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.career-positions .title {
  color: var(--dark);
  margin-bottom: 0.5rem;
}

/* Контакты */
.contact-info .contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.contact-info .icon {
  margin-right: 1rem;
  color: var(--primary-color);
}

.contact-form .label {
  color: var(--dark);
}

.map-container {
  overflow: hidden;
  border-radius: 8px;
}

.map-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Внешние ресурсы */
.resource-card {
  height: 100%;
  text-align: center;
  padding: 2rem;
}

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

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

/* Футер */
.footer {
  padding: 3rem 1.5rem;
  background: var(--light);
}

.footer .title {
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.footer p {
  color: var(--medium-dark);
}

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

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

.footer ul li a {
  color: var(--medium);
  transition: all 0.3s ease;
}

.footer ul li a:hover {
  color: var(--primary-color);
}

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

.social-links a {
  color: var(--medium);
  transition: all 0.3s ease;
  display: inline-block;
}

.social-links a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

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

.success-content {
  max-width: 600px;
  padding: 3rem;
}

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

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

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

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

.page-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

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

/* Адаптивность */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    position: absolute;
    width: 100%;
    top: 4rem;
    left: 0;
    z-index: 100;
    border-radius: 0 0 16px 16px;
  }

  .careers-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .history-content {
    padding: 0;
    margin-top: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .section {
    padding: 3rem 1rem;
  }

  .hero-body {
    padding: 3rem 1rem;
  }

  .statistic-card {
    margin-bottom: 1.5rem;
  }

  .card {
    margin-bottom: 1.5rem;
  }

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

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

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

.scale-in {
  animation: scaleIn 0.8s ease forwards;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
  animation: slideInRight 0.8s ease forwards;
}

/* Градиенты для карточек */
.card.glassmorphism {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.1)
  );
}

/* Морфинг для кнопок */
.button {
  position: relative;
  overflow: hidden;
}

.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.7s ease;
}

.button:hover::before {
  left: 100%;
}

/* Cookie-consent стили */
#cookie-consent {
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 15px;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 9999;
}

#accept-cookies {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#accept-cookies:hover {
  background-color: var(--primary-darker);
}
