:root {
  /* Триадная цветовая схема */
  --primary: #3F51B5;  /* Основной синий */
  --primary-dark: #303F9F;
  --primary-light: #7986CB;
  
  --secondary: #FF5722;  /* Оранжевый акцент */
  --secondary-dark: #E64A19;
  --secondary-light: #FFAB91;
  
  --tertiary: #4CAF50;  /* Зеленый акцент */
  --tertiary-dark: #388E3C;
  --tertiary-light: #A5D6A7;
  
  /* Нейтральные цвета */
  --dark: #212121;
  --medium: #757575;
  --light: #F5F5F5;
  --white: #FFFFFF;
  
  /* Брутализм + Эко-минимализм */
  --border-radius: 0;
  --box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.2);
  --transition-speed: 0.3s;
  
  /* Системные переменные */
  --header-height: 80px;
  --footer-padding: 60px 0;
  --section-padding: 80px 0;
}

/* ====== ОБЩИЕ СТИЛИ ====== */
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1 {
  font-size: 3.5rem;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h3 {
  font-size: 1.8rem;
}

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

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

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

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

section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  margin-bottom: 50px;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 15px;
  text-align: center;
  color: var(--dark);
  font-weight: 800;
}

.section-subtitle {
  font-size: 1.2rem;
  text-align: center;
  color: var(--medium);
  max-width: 700px;
  margin: 0 auto 30px;
}

/* ====== КНОПКИ И ФОРМЫ ====== */
.btn, 
button, 
input[type="submit"] {
  display: inline-block;
  padding: 12px 24px;
  border: 3px solid var(--primary);
  background-color: var(--primary);
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition-speed);
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
}

.btn:hover, 
button:hover, 
input[type="submit"]:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
  background-color: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

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

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

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

.btn-tertiary {
  background-color: var(--tertiary);
  border-color: var(--tertiary);
  color: var(--white);
}

.btn-tertiary:hover {
  background-color: var(--tertiary-dark);
  border-color: var(--tertiary-dark);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1.1rem;
}

.form-control {
  border: 3px solid var(--medium);
  border-radius: var(--border-radius);
  padding: 12px;
  margin-bottom: 20px;
  width: 100%;
  background-color: var(--white);
  transition: all var(--transition-speed);
  font-family: 'Open Sans', sans-serif;
}

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

label {
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

/* ====== НАВИГАЦИЯ ====== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: var(--header-height);
  transition: all 0.4s ease;
}

.header.scrolled {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background-color: var(--white);
}

.navbar {
  padding: 0;
  height: var(--header-height);
}

.navbar-brand {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: -1px;
}

.navbar-toggler {
  border: none;
  padding: 0;
  width: 30px;
  height: 30px;
  position: relative;
  background-color: transparent;
  box-shadow: none;
}

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

.navbar-toggler-icon {
  background-image: none;
  position: relative;
  width: 30px;
  height: 2px;
  background-color: var(--dark);
  display: inline-block;
  transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  background-color: var(--dark);
  left: 0;
  transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler-icon::after {
  bottom: -8px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  transform: rotate(-45deg);
  bottom: 0;
}

.nav-link {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--dark);
  padding: 15px !important;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  background-color: var(--primary);
  bottom: 5px;
  left: 15px;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: calc(100% - 30px);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

@media (max-width: 991px) {
  .navbar-collapse {
    background-color: var(--white);
    padding: 20px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }
  
  .nav-link {
    padding: 10px 15px !important;
  }
  
  .nav-link::after {
    bottom: 10px;
  }
}

/* ====== HERO СЕКЦИЯ ====== */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0;
  margin-top: var(--header-height);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  z-index: -1;
}

.hero-content {
  padding: 30px;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  color: var(--white);
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease;
}

.hero-text {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: both;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  animation: fadeInUp 1s ease 0.4s;
  animation-fill-mode: both;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-text {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
  }
}

/* ====== SERVICES СЕКЦИЯ ====== */
.services-section {
  background-color: var(--white);
}

.services-grid {
  margin-top: 30px;
}

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

.service-card:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

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

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

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

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

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

.card-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--secondary);
}

.toggle-switch {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

.toggle-input {
  display: none;
}

.toggle-label {
  position: relative;
  display: inline-block;
  padding-left: 25px;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  transition: all var(--transition-speed);
}

.toggle-label::before {
  content: '+';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2rem;
  color: var(--primary);
  transition: all var(--transition-speed);
}

.toggle-input:checked + .toggle-label::before {
  transform: rotate(45deg);
}

.service-details {
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-speed);
}

.toggle-input:checked ~ .service-details {
  max-height: 300px;
  margin-top: 15px;
}

.service-details ul {
  padding-left: 20px;
  text-align: left;
}

.service-details li {
  margin-bottom: 10px;
}

/* ====== PORTFOLIO СЕКЦИЯ ====== */
.portfolio-section {
  background-color: var(--light);
  position: relative;
}

.portfolio-timeline {
  position: relative;
  padding: 30px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--primary);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  margin-bottom: 50px;
  position: relative;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background-color: var(--secondary);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 20px;
  z-index: 10;
}

.timeline-content {
  width: 45%;
  padding: 0;
  position: relative;
}

.timeline-content.reverse {
  margin-left: 55%;
}

.timeline-image {
  width: 100%;
  border: 3px solid var(--dark);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.timeline-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.timeline-text {
  background-color: var(--white);
  padding: 25px;
  margin-top: -5px;
  border: 3px solid var(--dark);
  border-top: none;
  box-shadow: var(--box-shadow);
}

.timeline-text h3 {
  margin-top: 0;
  color: var(--primary);
}

.timeline-date {
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 15px;
  display: inline-block;
}

@media (max-width: 991px) {
  .portfolio-timeline::before {
    left: 20px;
  }
  
  .timeline-dot {
    left: 20px;
  }
  
  .timeline-content,
  .timeline-content.reverse {
    width: calc(100% - 40px);
    margin-left: 40px;
  }
}

/* ====== INNOVATION СЕКЦИЯ ====== */
.innovation-section {
  background-color: var(--white);
  position: relative;
}

.innovation-grid {
  margin-top: 30px;
}

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

.innovation-card:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.innovation-card .card-image {
  width: 100%;
  height: 300px;
}

.innovation-card .card-content {
  padding: 25px;
  text-align: center;
}

.innovation-card h3 {
  color: var(--tertiary);
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.innovation-card h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--tertiary);
}

/* ====== MEDIA СЕКЦИЯ ====== */
.media-section {
  background-color: var(--light);
  position: relative;
}

.resources-grid {
  margin-top: 30px;
}

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

.resource-card:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.resource-card .card-image {
  width: 100%;
  height: 200px;
}

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

.resource-card h3 {
  color: var(--secondary);
  margin-bottom: 15px;
}

.resource-link {
  display: inline-block;
  margin-top: 15px;
  font-weight: 600;
  color: var(--primary);
  position: relative;
  padding-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.resource-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-speed);
}

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

/* ====== CONTACT СЕКЦИЯ ====== */
.contact-section {
  background-color: var(--white);
  position: relative;
}

.contact-info {
  padding-right: 30px;
}

.contact-details {
  margin-top: 30px;
}

.contact-item {
  margin-bottom: 30px;
}

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

.contact-form-wrapper {
  position: relative;
}

.contact-form-container {
  background-color: var(--light);
  border: 3px solid var(--dark);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
}

.contact-form-container h3 {
  margin-bottom: 20px;
  color: var(--dark);
  text-align: center;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form .btn {
  width: 100%;
  margin-top: 10px;
}

/* ====== FOOTER ====== */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding-top: 80px;
  position: relative;
}

.footer h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary);
}

.footer p {
  margin-bottom: 20px;
  color: #ccc;
}

.footer-brand {
  margin-bottom: 30px;
}

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

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

.social-links ul li a,
.footer-nav ul li a,
.legal-links ul li a {
  color: #ccc;
  transition: all var(--transition-speed);
}

.social-links ul li a:hover,
.footer-nav ul li a:hover,
.legal-links ul li a:hover {
  color: var(--white);
  padding-left: 5px;
}

.newsletter {
  margin-top: 40px;
}

.newsletter-form {
  margin-top: 20px;
}

.newsletter-form .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.newsletter-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .btn {
  width: 100%;
  margin-top: 10px;
}

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

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

/* ====== SUCCESS PAGE ====== */
.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 50px 20px;
}

.success-container {
  max-width: 600px;
  padding: 40px;
  background-color: var(--white);
  border: 3px solid var(--dark);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

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

.success-title {
  color: var(--dark);
  margin-bottom: 20px;
}

.success-message {
  margin-bottom: 30px;
}

/* ====== PRIVACY & TERMS PAGES ====== */
.page-content {
  padding-top: 150px;
  padding-bottom: 80px;
}

.page-title {
  margin-bottom: 40px;
  color: var(--primary);
}

/* ====== COOKIE CONSENT ====== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(33, 33, 33, 0.95);
  color: var(--white);
  z-index: 9999;
  padding: 15px 0;
}

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

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

.cookie-button {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 8px 20px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color var(--transition-speed);
}

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

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-content p {
    margin-bottom: 15px;
    padding-right: 0;
  }
}

/* ====== ANIMATIONS ====== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* ====== RESPONSIVE ADJUSTMENTS ====== */
@media (max-width: 991px) {
  :root {
    --section-padding: 60px 0;
  }
  
  h1 {
    font-size: 2.8rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  .contact-info {
    padding-right: 0;
    margin-bottom: 40px;
  }
}

@media (max-width: 767px) {
  :root {
    --section-padding: 50px 0;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .section-header {
    margin-bottom: 30px;
  }
  
  .btn, button, input[type="submit"] {
    width: 100%;
  }
}