/* ===== CSS VARIABLES ===== */
:root {
  /* Триада цветовая схема */
  --primary-color: #ff6b35;
  --secondary-color: #35c4ff;
  --accent-color: #35ff6b;

  /* Дополнительные цвета для брутализма */
  --brutalist-dark: #1a1a1a;
  --brutalist-light: #f5f5f5;
  --brutalist-shadow: #000000;

  /* Текстовые цвета */
  --text-primary: #222222;
  --text-secondary: #666666;
  --text-light: #ffffff;
  --text-muted: #999999;

  /* Градиенты */
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  --gradient-accent: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
  --gradient-dark: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.6)
  );

  /* Шрифты */
  --font-heading: "Manrope", sans-serif;
  --font-body: "Rubik", sans-serif;

  /* Отступы и размеры */
  --container-max-width: 1200px;
  --section-padding: 80px 0;
  --border-radius: 12px;
  --brutalist-border: 4px solid var(--brutalist-dark);

  /* Анимации */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Тени */
  --shadow-brutal: 8px 8px 0px var(--brutalist-shadow);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-hover: 12px 12px 0px var(--brutalist-shadow);
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--brutalist-light);
  overflow-x: hidden;
}

/* ===== ТИПОГРАФИКА ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}
h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

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

/* ===== КОНТЕЙНЕРЫ И СЕТКА ===== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

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

.button {
  height: initial;
}
/* ===== КНОПКИ (ГЛОБАЛЬНЫЕ СТИЛИ) ===== */
.btn,
.button,
button,
input[type="submit"] {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: var(--brutalist-border);
  border-radius: var(--border-radius);
  background: var(--primary-color);
  color: var(--text-light);
  cursor: pointer;
  position: relative;
  transition: var(--transition-bounce);
  box-shadow: var(--shadow-brutal);
  transform: translate(0, 0);
}

.btn:hover,
.button:hover,
button:hover,
input[type="submit"]:hover {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-hover);
  background: var(--secondary-color);
  color: var(--text-light);
}

.btn:active,
.button:active,
button:active,
input[type="submit"]:active {
  transform: translate(4px, 4px);
  box-shadow: 4px 4px 0px var(--brutalist-shadow);
}

.btn.is-outlined,
.button.is-outlined {
  background: transparent;
  color: var(--primary-color);
  border: var(--brutalist-border);
}

.btn.is-outlined:hover,
.button.is-outlined:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

.btn.is-large,
.button.is-large {
  padding: 12px 30px;
  font-size: 1.2rem;
}

.btn.is-fullwidth,
.button.is-fullwidth {
  width: 100%;
}

/* ===== ХЕДЕР И НАВИГАЦИЯ ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--brutalist-light);
  border-bottom: var(--brutalist-border);
  box-shadow: var(--shadow-soft);
}

.navbar {
  padding: 1rem 0;
  background: transparent;
}

.brand-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-color);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.navbar-item {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  position: relative;
  transition: var(--transition-smooth);
}

.navbar-item:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.navbar-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--primary-color);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.navbar-item:hover::after {
  width: 80%;
}

.navbar-burger {
  color: var(--text-primary);
  border: none;
  background: transparent;
  cursor: pointer;
  display: none;
}

/* ===== HERO СЕКЦИЯ ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-dark);
  z-index: 1;
}

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

.hero-content {
  max-width: 600px;
}

.hero-title {
  color: var(--text-light) !important;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 2rem;
}

.hero-subtitle {
  color: var(--text-light) !important;
  font-size: 1.3rem;
  margin-bottom: 3rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-brutal);
  border: var(--brutalist-border);
}

/* ===== СТАТИСТИКИ ===== */
.statistics-section {
  background: var(--brutalist-light);
  position: relative;
}

.statistics-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(
      45deg,
      var(--primary-color) 25%,
      transparent 25%
    ),
    linear-gradient(-45deg, var(--primary-color) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--primary-color) 75%),
    linear-gradient(-45deg, transparent 75%, var(--primary-color) 75%);
  background-size: 200px 200px;
  background-position: 0 0, 0 100px, 100px -100px, -100px 0px;
  opacity: 0.02;
  z-index: 0;
}

.stat-widget {
  background: var(--text-light);
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  border: var(--brutalist-border);
  box-shadow: var(--shadow-brutal);
  text-align: center;
  position: relative;
  z-index: 1;
  transition: var(--transition-bounce);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  transform: rotate(-1deg);
}

.stat-widget:nth-child(even) {
  transform: rotate(1deg);
}

.stat-widget:hover {
  transform: rotate(0deg) translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.stat-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stat-icon img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 0px var(--brutalist-shadow);
}

.stat-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.stat-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== ПРАЙСИНГ ===== */
.pricing-section {
  background: var(--gradient-primary);
  color: var(--text-light);
}

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

.pricing-section .subtitle {
  color: var(--text-light);
  opacity: 0.9;
}

.pricing-card {
  background: var(--text-light);
  border-radius: var(--border-radius);
  border: var(--brutalist-border);
  box-shadow: var(--shadow-brutal);
  overflow: hidden;
  position: relative;
  transition: var(--transition-bounce);
  display: flex;
  flex-direction: column;
  height: 100%;
  transform: rotate(-1deg);
}

.pricing-card:nth-child(even) {
  transform: rotate(1deg);
}

.pricing-card.featured {
  transform: scale(1.05) rotate(0deg);
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.pricing-card:hover {
  transform: rotate(0deg) translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.card-header {
  background: var(--gradient-primary);
  color: var(--text-light);
  padding: 2rem;
  text-align: center;
  position: relative;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.price {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.price span {
  font-size: 1rem;
  opacity: 0.8;
}

.popular-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--accent-color);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  transform: rotate(15deg);
}

.card-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.card-content img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  border: 3px solid var(--primary-color);
}

.features-list {
  list-style: none;
  margin-bottom: 2rem;
}

.features-list li {
  padding: 0.5rem 0;
  color: var(--text-primary);
  font-weight: 500;
}

.plan-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: auto;
}

.card-footer {
  padding: 1.5rem 2rem;
  background: var(--brutalist-light);
}

/* ===== ПАРТНЕРЫ ===== */
.partners-section {
  background: var(--brutalist-light);
}

.partner-card {
  background: var(--text-light);
  border-radius: var(--border-radius);
  border: var(--brutalist-border);
  box-shadow: var(--shadow-brutal);
  overflow: hidden;
  transition: var(--transition-bounce);
  display: flex;
  flex-direction: column;
  height: 100%;
  transform: rotate(1deg);
}

.partner-card:nth-child(even) {
  transform: rotate(-1deg);
}

.partner-card:hover {
  transform: rotate(0deg) translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.partner-card .card-image {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 250px;
}

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

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

.partner-card .card-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

/* ===== ВНЕШНИЕ РЕСУРСЫ ===== */
.resources-section {
  background: var(--secondary-color);
  color: var(--text-light);
}

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

.resources-section .subtitle {
  color: var(--text-light);
  opacity: 0.9;
}

.resource-card {
  background: var(--text-light);
  color: var(--text-primary);
  border-radius: var(--border-radius);
  border: var(--brutalist-border);
  box-shadow: var(--shadow-brutal);
  padding: 2rem;
  transition: var(--transition-bounce);
  transform: rotate(-1deg);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.resource-card:nth-child(even) {
  transform: rotate(1deg);
}

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

.resource-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
}

.resource-links .button {
  text-align: left;
  justify-content: flex-start;
}

/* ===== BEHIND THE SCENES ===== */
.behind-scenes-section {
  background: var(--accent-color);
  color: var(--text-primary);
}

.behind-scenes-content {
  padding-right: 2rem;
}

.behind-scenes-image {
  text-align: center;
}

.behind-scenes-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  border: var(--brutalist-border);
  box-shadow: var(--shadow-brutal);
  transform: rotate(2deg);
  transition: var(--transition-bounce);
}

.behind-scenes-image img:hover {
  transform: rotate(0deg) scale(1.05);
}

/* ===== АККОРДЕОН ===== */
.accordion {
  margin-top: 2rem;
}

.accordion-item {
  background: var(--text-light);
  border: var(--brutalist-border);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-brutal);
}

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

.accordion-header:hover {
  background: var(--gradient-accent);
}

.accordion-header h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-light);
  margin: 0;
}

.accordion-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  transition: var(--transition-smooth);
}

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

.accordion-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

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

/* ===== КОНТАКТЫ ===== */
.contact-section {
  background: var(--brutalist-light);
}

.contact-form-container {
  background: var(--text-light);
  border-radius: var(--border-radius);
  border: var(--brutalist-border);
  box-shadow: var(--shadow-brutal);
  overflow: hidden;
  transform: rotate(-1deg);
  transition: var(--transition-bounce);
}

.contact-form-container:hover {
  transform: rotate(0deg);
  box-shadow: var(--shadow-hover);
}

.contact-form-header {
  position: relative;
  overflow: hidden;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-form {
  padding: 3rem;
}

.field {
  margin-bottom: 2rem;
}

.label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: block;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.input,
.textarea,
.select select {
  width: 100%;
  padding: 1rem;
  border: 3px solid var(--brutalist-dark);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--brutalist-light);
  color: var(--text-primary);
  transition: var(--transition-smooth);
  box-shadow: 4px 4px 0px var(--brutalist-shadow);
}

.input:focus,
.textarea:focus,
.select select:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--text-light);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--brutalist-shadow);
}

.textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
  transform: scale(1.2);
}

.submit-btn {
  background: var(--gradient-primary);
  border: var(--brutalist-border);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== ФУТЕР ===== */
.footer {
  background: var(--brutalist-dark);
  color: var(--text-light);
  padding: 4rem 0 2rem;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient-primary);
}

.footer-brand h4 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  line-height: 1.6;
}

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

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

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition-smooth);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: 2px solid var(--text-light);
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.footer-contact {
  margin-top: 1.5rem;
}

.footer-contact p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-divider {
  border: none;
  height: 2px;
  background: var(--text-muted);
  margin: 3rem 0 2rem;
  opacity: 0.3;
}

/* ===== АНИМАЦИИ ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

.parallax-bg {
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ СТРАНИЦЫ ===== */
.page-header {
  padding-top: 100px;
  padding-bottom: 2rem;
  background: var(--gradient-primary);
  color: var(--text-light);
  text-align: center;
}

.page-content {
  padding: 4rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: var(--text-light);
  text-align: center;
}

.success-content {
  max-width: 600px;
  padding: 3rem;
  background: var(--text-light);
  color: var(--text-primary);
  border-radius: var(--border-radius);
  border: var(--brutalist-border);
  box-shadow: var(--shadow-brutal);
  transform: rotate(-2deg);
  animation: successPulse 2s ease-in-out infinite alternate;
}

@keyframes successPulse {
  0% {
    transform: rotate(-2deg) scale(1);
  }
  100% {
    transform: rotate(2deg) scale(1.02);
  }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 60px 0;
  }

  .hero-buttons {
    justify-content: center;
  }

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

@media (max-width: 768px) {
  .navbar-burger {
    display: block;
  }

  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--text-light);
    border: var(--brutalist-border);
    border-top: none;
    box-shadow: var(--shadow-soft);
  }

  .navbar-menu.is-active {
    display: block;
  }

  .navbar-end {
    flex-direction: column;
    padding: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .stat-widget,
  .pricing-card,
  .partner-card,
  .resource-card {
    transform: rotate(0deg);
    margin-bottom: 2rem;
  }

  .social-links {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 40px 0;
  }

  .container {
    padding: 0 0.5rem;
  }

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

  .hero-subtitle {
    font-size: 1.1rem;
  }

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

  .stat-number {
    font-size: 2rem;
  }

  .pricing-card.featured {
    transform: none;
  }

  .contact-form {
    padding: 1.5rem 1rem;
  }
}

/* ===== УЛУЧШЕНИЯ ПРОИЗВОДИТЕЛЬНОСТИ ===== */
.parallax-bg {
  will-change: transform;
}

.animate-on-scroll {
  will-change: opacity, transform;
}

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

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .parallax-bg {
    background-attachment: scroll;
  }
}

/* ===== ПЕЧАТЬ ===== */
@media print {
  .header,
  .footer,
  .btn,
  .button {
    display: none !important;
  }

  .section {
    padding: 20px 0;
  }

  * {
    box-shadow: none !important;
    transform: none !important;
  }
}
