:root {
  /* Тетрадная цветовая схема с элементами нео-брутализма */
  --primary-color: #0066FF;
  --primary-dark: #0045B5;
  --primary-light: #4D94FF;
  --secondary-color: #FF3C00;
  --secondary-dark: #CC2F00;
  --secondary-light: #FF7144;
  --tertiary-color: #9C00FF;
  --tertiary-dark: #7A00CC;
  --tertiary-light: #BC4DFF;
  --quaternary-color: #00CC66;
  --quaternary-dark: #009949;
  --quaternary-light: #4DDB8D;
  
  /* Нейтральные цвета */
  --dark: #111111;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --light-gray: #DDDDDD;
  --lighter-gray: #F5F5F5;
  --white: #FFFFFF;
  
  /* Цвета для интерфейса */
  --success: #00D68F;
  --warning: #FFD600;
  --error: #FF2D55;
  
  /* Тени */
  --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-large: 0 8px 24px rgba(0, 0, 0, 0.2);
  --neo-brutalist-shadow: 5px 5px 0px var(--dark);
  
  /* Радиусы */
  --radius-small: 4px;
  --radius-medium: 8px;
  --radius-large: 16px;
  
  /* Переходы */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Типографика */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Rubik', sans-serif;
}

/* ===== Базовые стили ===== */
html, body {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--dark);
  background-color: var(--lighter-gray);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.image-container {
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-small);
  transition: transform var(--transition-normal);
}

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

.image-container:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.section {
  padding: 4rem 0;
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
  color: var(--dark);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-color);
}

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

/* ===== Buttons ===== */
.button, 
button, 
.cta-button, 
.pricing-button,
.event-button,
.submit-button,
input[type="submit"] {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 3px solid var(--dark);
  border-radius: var(--radius-medium);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
  color: var(--white);
  background-color: var(--primary-color);
  box-shadow: var(--neo-brutalist-shadow);
  font-family: var(--font-heading);
}

.button:hover,
button:hover,
.cta-button:hover,
.pricing-button:hover,
.event-button:hover,
.submit-button:hover,
input[type="submit"]:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0px var(--dark);
  background-color: var(--primary-dark);
}

.button:active,
button:active,
.cta-button:active,
.pricing-button:active,
.event-button:active,
.submit-button:active,
input[type="submit"]:active {
  transform: translate(0, 0);
  box-shadow: 3px 3px 0px var(--dark);
}

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

.button.is-secondary:hover {
  background-color: var(--secondary-dark);
}

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

.button.is-tertiary:hover {
  background-color: var(--tertiary-dark);
}

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

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

/* ===== Карточки ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-medium);
  overflow: hidden;
  transition: transform var(--transition-normal);
  margin-bottom: 2rem;
  border: 3px solid var(--dark);
  box-shadow: var(--neo-brutalist-shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

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

/* ===== Header и Навигация ===== */
.navbar {
  box-shadow: var(--shadow-medium);
  background-color: var(--white);
  border-bottom: 3px solid var(--dark);
}

.navbar-item {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--dark);
  padding: 0.75rem 1rem;
}

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

.navbar-burger {
  margin-top: auto;
  margin-bottom: auto;
}

.navbar-burger span {
  height: 2px;
  width: 20px;
  background-color: var(--dark);
}

.navbar-menu.is-active {
  box-shadow: var(--shadow-large);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 0;
  margin-top: 0;
}

.hero-image {
  position: relative;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  color: var(--white);
  text-align: center;
  max-width: 800px;
  width: 100%;
}

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

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--white);
  opacity: 0.9;
}

.cta-button {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  padding: 1rem 2.5rem;
  background-color: var(--secondary-color);
}

.cta-button:hover {
  background-color: var(--secondary-dark);
}

.statistics-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.stat-widget {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: var(--radius-medium);
  border: 2px solid var(--white);
  min-width: 120px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  display: block;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--white);
  opacity: 0.8;
}

/* ===== About Section ===== */
.about-section {
  background-color: var(--lighter-gray);
}

.about-content {
  margin-bottom: 2rem;
}

.about-text {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.certifications {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-medium);
  border: 3px solid var(--dark);
  box-shadow: var(--neo-brutalist-shadow);
}

.certifications h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.certification-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary-light);
  color: var(--white);
  border-radius: var(--radius-small);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== Services Section ===== */
.services-section {
  background-color: var(--white);
}

.service-card {
  margin-bottom: 2rem;
  height: 100%;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.service-description {
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
}

/* ===== Advantages Section ===== */
.advantages-section {
  background-color: var(--lighter-gray);
}

.advantage-card {
  display: flex;
  margin-bottom: 2rem;
  background-color: var(--white);
  border-radius: var(--radius-medium);
  padding: 1.5rem;
  border: 3px solid var(--dark);
  box-shadow: var(--neo-brutalist-shadow);
  transition: transform var(--transition-normal);
  height: 100%;
}

.advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 0px var(--dark);
}

.advantage-icon {
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.advantage-icon img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.advantage-content {
  flex-grow: 1;
}

.advantage-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
  background-color: var(--white);
  padding-bottom: 6rem;
}

.testimonial-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card .card-image {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1.5rem 0;
}

.testimonial-card .image-container {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
}

.testimonial-card .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rating {
  color: var(--warning);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--medium-gray);
  flex-grow: 1;
}

.client-name {
  font-weight: 700;
  color: var(--dark);
}

/* ===== Pricing Section ===== */
.pricing-section {
  background-color: var(--lighter-gray);
  position: relative;
}

.pricing-card {
  height: 100%;
  transition: transform var(--transition-normal);
}

.pricing-card.featured {
  border-color: var(--secondary-color);
  transform: scale(1.05);
  box-shadow: 5px 5px 0 var(--secondary-dark);
}

.pricing-card.featured:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 8px 8px 0 var(--secondary-dark);
}

.pricing-title {
  font-size: 1.8rem;
  color: var(--dark);
  margin-bottom: 1.5rem;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 2px dashed var(--light-gray);
}

.pricing-list {
  margin-bottom: 2rem;
}

.pricing-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--light-gray);
  font-weight: 500;
}

.pricing-list li:last-child {
  border-bottom: none;
}

.service-name {
  color: var(--dark-gray);
}

.service-price {
  font-weight: 700;
  color: var(--primary-color);
}

.pricing-button {
  margin-top: auto;
  align-self: center;
  width: 100%;
  background-color: var(--primary-color);
}

.pricing-card.featured .pricing-button {
  background-color: var(--secondary-color);
}

.pricing-card.featured .pricing-button:hover {
  background-color: var(--secondary-dark);
}

.pricing-note {
  margin-top: 2rem;
  color: var(--medium-gray);
  font-style: italic;
}

/* ===== Portfolio Section ===== */
.portfolio-section {
  background-color: var(--white);
}

.portfolio-card {
  height: 100%;
}

.portfolio-card .card-image {
  height: 250px;
}

.portfolio-card .image-container {
  width: 100%;
  height: 100%;
}

.portfolio-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.portfolio-description {
  color: var(--medium-gray);
}

/* ===== Resources Section ===== */
.resources-section {
  background-color: var(--lighter-gray);
}

.resource-card {
  background-color: var(--white);
  border-radius: var(--radius-medium);
  padding: 2rem;
  height: 100%;
  border: 3px solid var(--dark);
  box-shadow: var(--neo-brutalist-shadow);
  transition: transform var(--transition-normal);
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 0px var(--dark);
}

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

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

.resource-list li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--light-gray);
}

.resource-list li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.resource-list a {
  display: block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.resource-list a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ===== Events Section ===== */
.events-section {
  background-color: var(--white);
}

.event-card {
  height: 100%;
  overflow: hidden;
}

.event-card .card-image {
  height: 300px;
}

.event-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.event-date {
  color: var(--tertiary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.event-description {
  margin-bottom: 1.5rem;
  color: var(--medium-gray);
  flex-grow: 1;
}

.event-button {
  align-self: flex-start;
  background-color: var(--tertiary-color);
}

.event-button:hover {
  background-color: var(--tertiary-dark);
}

/* ===== Contact Section ===== */
.contact-section {
  background-color: var(--lighter-gray);
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item h3 {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.contact-icon {
  font-style: normal;
  margin-right: 0.75rem;
  font-size: 1.5rem;
}

.map-container {
  height: 300px;
  overflow: hidden;
  border-radius: var(--radius-medium);
  border: 3px solid var(--dark);
  box-shadow: var(--neo-brutalist-shadow);
}

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

.contact-form-container {
  background-color: var(--white);
  border-radius: var(--radius-medium);
  padding: 2rem;
  height: 100%;
  border: 3px solid var(--dark);
  box-shadow: var(--neo-brutalist-shadow);
}

.contact-form-container h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.field {
  margin-bottom: 1.5rem;
}

.label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--dark);
}

.input, .textarea, .select select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--dark);
  border-radius: var(--radius-small);
  background-color: var(--white);
  transition: border-color var(--transition-fast);
}

.input:focus, .textarea:focus, .select select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 102, 255, 0.2);
}

.submit-button {
  background-color: var(--quaternary-color);
  width: 100%;
  margin-top: 1rem;
}

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

/* ===== Footer ===== */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 4rem 0 2rem;
  position: relative;
}

.footer-title {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

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

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

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

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

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

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-social {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

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

.footer-social a {
  color: var(--light-gray);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.footer-social a:hover {
  color: var(--white);
}

.footer-certification {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: var(--light-gray);
}

.footer-certification p {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: var(--light-gray);
}

/* ===== 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;
  background-color: var(--white);
  border-radius: var(--radius-medium);
  padding: 3rem;
  border: 3px solid var(--dark);
  box-shadow: var(--neo-brutalist-shadow);
}

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

.success-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.success-message {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--medium-gray);
}

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

.content-page .container {
  background-color: var(--white);
  padding: 3rem;
  border-radius: var(--radius-medium);
  border: 3px solid var(--dark);
  box-shadow: var(--neo-brutalist-shadow);
}

.content-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--dark);
}

.content-subtitle {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  color: var(--dark);
}

.content-text {
  margin-bottom: 1.5rem;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1023px) {
  .section-title {
    font-size: 2rem;
  }

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

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

  .statistics-container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .stat-widget {
    width: 80%;
  }

  .advantage-card {
    flex-direction: column;
  }

  .advantage-icon {
    margin-right: 0;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
  }
  
  .card-image {
    height: auto;
  }
  
  .portfolio-card .card-image,
  .event-card .card-image {
    height: auto;
  }
}

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

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

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

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

  .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .contact-form-container {
    margin-top: 2rem;
  }
  
  .footer {
    padding: 3rem 0 1.5rem;
  }
}

/* ===== Animations ===== */
@keyframes morphIn {
  0% {
    clip-path: circle(0% at 50% 50%);
    opacity: 0;
  }
  100% {
    clip-path: circle(100% at 50% 50%);
    opacity: 1;
  }
}

@keyframes morphText {
  0% {
    letter-spacing: -0.5em;
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    letter-spacing: normal;
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card, .service-card, .advantage-card, .testimonial-card, .pricing-card, 
.portfolio-card, .event-card, .resource-card {
  animation: fadeUp 0.6s ease-out forwards;
}

.hero-content {
  animation: morphIn 1s ease-out forwards;
}

.hero-title, .section-title {
  animation: morphText 0.8s ease-out forwards;
}

/* Apply animations with delay for sequential elements */
.card:nth-child(1), .service-card:nth-child(1), .advantage-card:nth-child(1) {
  animation-delay: 0.1s;
}
.card:nth-child(2), .service-card:nth-child(2), .advantage-card:nth-child(2) {
  animation-delay: 0.2s;
}
.card:nth-child(3), .service-card:nth-child(3), .advantage-card:nth-child(3) {
  animation-delay: 0.3s;
}
.card:nth-child(4), .service-card:nth-child(4), .advantage-card:nth-child(4) {
  animation-delay: 0.4s;
}