:root {
  /* Тетрадная цветовая схема */
  --primary-color: #3273dc;
  --primary-dark: #205bbf;
  --primary-light: #4a89e8;
  
  --secondary-color: #e67e22;
  --secondary-dark: #c96a17;
  --secondary-light: #f39c12;
  
  --tertiary-color: #9b59b6;
  --tertiary-dark: #8e44ad;
  --tertiary-light: #a66bbe;
  
  --quaternary-color: #2ecc71;
  --quaternary-dark: #27ae60;
  --quaternary-light: #48d683;
  
  /* Нейтральные цвета */
  --light-color: #ffffff;
  --dark-color: #333333;
  --gray-color: #777777;
  --light-gray: #f5f5f5;
  --dark-gray: #4a4a4a;
  
  /* Размеры текста */
  --h1-size: 3.5rem;
  --h2-size: 2.8rem;
  --h3-size: 2.2rem;
  --h4-size: 1.8rem;
  --p-size: 1.1rem;
  
  /* Переходы и анимации */
  --transition-slow: 0.5s ease;
  --transition-medium: 0.3s ease;
  --transition-fast: 0.15s ease;
  
  /* Тени */
  --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
  --text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Общие стили */
html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6, .title, .subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-color);
}

.title.is-1 {
  font-size: var(--h1-size);
}

.title.is-2 {
  font-size: var(--h2-size);
  margin-bottom: 1.5rem;
}

.title.is-3 {
  font-size: var(--h3-size);
}

.title.is-4 {
  font-size: var(--h4-size);
}

p {
  font-size: var(--p-size);
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  transition: color var(--transition-medium);
}

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

/* Стилизация кнопок */
.button {
  transition: all var(--transition-medium);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
}

.button:active {
  transform: translateY(0);
}

.button.is-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: none;
}

.button.is-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.button.is-secondary {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  color: white;
  border: none;
}

.button.is-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
}

.pulse-button {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(50, 115, 220, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(50, 115, 220, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(50, 115, 220, 0);
  }
}

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

@keyframes morphing {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

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

/* Header */
.navbar {
  padding: 15px 0;
  transition: background-color var(--transition-medium);
}

.navbar.is-transparent {
  background-color: transparent;
}

.navbar-item {
  font-weight: 600;
  color: var(--dark-color);
  transition: color var(--transition-medium);
}

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

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

/* Hero Section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.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.3));
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  padding: 6rem 1.5rem;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  transform: translateY(-20px);
  opacity: 0;
  animation: fadeIn 1s ease 0.2s forwards;
}

.hero-subtitle {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transform: translateY(-20px);
  opacity: 0;
  animation: fadeIn 1s ease 0.4s forwards;
}

.hero-description {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  transform: translateY(-20px);
  opacity: 0;
  animation: fadeIn 1s ease 0.6s forwards;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--light-color);
  font-size: 2rem;
  cursor: pointer;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

/* Kurzy Section */
.kurzy-section {
  padding: 6rem 1.5rem;
  background: linear-gradient(135deg, var(--light-color) 0%, var(--light-gray) 100%);
}

.kurz-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  background-color: var(--light-color);
}

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

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

.card-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

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

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.content ul {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.content ul li {
  margin-bottom: 0.5rem;
}

/* Udrzitelnost Section */
.udrzitelnost-section {
  padding: 6rem 1.5rem;
  background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
}

.sustainability-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-medium);
}

.sustainability-image:hover {
  transform: scale(1.02);
}

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

/* External Resources */
.external-resources {
  padding: 6rem 1.5rem;
  background: linear-gradient(135deg, var(--light-gray) 0%, #e9ecef 100%);
}

.resource-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-medium);
  box-shadow: var(--box-shadow);
}

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

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

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

.resource-card a {
  color: var(--primary-color);
  transition: color var(--transition-medium);
}

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

/* Inovace Section */
.inovace-section {
  padding: 6rem 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--light-gray) 100%);
}

.innovation-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-medium);
  box-shadow: var(--box-shadow);
}

.innovation-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.innovation-card .card-image {
  overflow: hidden;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

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

/* Lektori Section */
.lektori-section {
  padding: 6rem 1.5rem;
  background: linear-gradient(135deg, var(--light-gray) 0%, #ffffff 100%);
}

.instructor-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition-medium);
  box-shadow: var(--box-shadow);
}

.instructor-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

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

.instructor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

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

.instructor-card .subtitle {
  color: var(--gray-color);
  font-weight: 500;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}

/* Tisk Section */
.tisk-section {
  padding: 6rem 1.5rem;
  background: linear-gradient(135deg, #e9ecef 0%, var(--light-gray) 100%);
}

.press-card {
  height: 100%;
  padding: 2.5rem;
  border-radius: 12px;
  transition: all var(--transition-medium);
  box-shadow: var(--box-shadow);
  background-color: var(--light-color);
}

.press-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

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

.press-card .quote {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 4px solid var(--tertiary-color);
}

.press-card .date {
  font-size: 0.9rem;
  color: var(--gray-color);
  text-align: right;
}

/* Kontakt Section */
.kontakt-section {
  padding: 6rem 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--light-gray) 100%);
}

.contact-info {
  padding: 2rem;
  border-radius: 12px;
  background-color: var(--light-color);
  box-shadow: var(--box-shadow);
}

.contact-info strong {
  color: var(--primary-color);
}

.contact-form {
  padding: 2rem;
  border-radius: 12px;
  background-color: var(--light-color);
  box-shadow: var(--box-shadow);
}

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

.contact-form .input, .contact-form .textarea {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  transition: border-color var(--transition-medium);
  padding: 0.75rem 1rem;
}

.contact-form .input:focus, .contact-form .textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(50, 115, 220, 0.25);
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  background-color: var(--light-color);
}

.map {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

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

/* Footer */
.footer {
  padding: 5rem 1.5rem 3rem;
  background-color: var(--dark-color);
  color: var(--light-gray);
}

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

.footer p {
  color: var(--light-gray);
}

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

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

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

.footer-links a:hover, .footer-social a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

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

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

.newsletter .input {
  border-radius: 4px 0 0 4px;
}

.newsletter .button {
  border-radius: 0 4px 4px 0;
}

/* Modals */
.modal-card {
  border-radius: 12px;
  overflow: hidden;
}

.modal-card-head {
  background-color: var(--primary-color);
}

.modal-card-title {
  color: var(--light-color);
  font-weight: 600;
  width: calc(100% - 60px);
}

.modal-card-body {
  padding: 2rem;
}

.modal-card-foot {
  background-color: var(--light-gray);
  border-top: 1px solid #e0e0e0;
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, var(--light-color) 0%, var(--light-gray) 100%);
}

.success-container {
  max-width: 600px;
  padding: 3rem;
  text-align: center;
  background-color: var(--light-color);
  border-radius: 12px;
  box-shadow: var(--box-shadow);
}

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

.success-message {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.success-actions {
  margin-top: 2rem;
}

/* Privacy & Terms Pages */
.page-content {
  padding-top: 100px;
  min-height: calc(100vh - 440px); /* Учитываем высоту футера */
}

.page-content .container {
  max-width: 900px;
  padding: 3rem;
  background-color: var(--light-color);
  border-radius: 12px;
  box-shadow: var(--box-shadow);
}

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

.page-content h2 {
  font-size: 2rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.page-content h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

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

.page-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.page-content ul li {
  margin-bottom: 0.5rem;
}

/* Responsive Styles */
@media screen and (max-width: 1023px) {
  .title.is-1 {
    font-size: 2.8rem;
  }
  
  .title.is-2 {
    font-size: 2.4rem;
  }
  
  .title.is-3 {
    font-size: 2rem;
  }
  
  .title.is-4 {
    font-size: 1.6rem;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.8rem;
  }
  
  .kurz-card .card-content, .innovation-card .card-content, .instructor-card .card-content {
    padding: 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  .title.is-1 {
    font-size: 2.4rem;
  }

  .navbar-burger {
    display: none !important;
  }

  .navbar.is-fixed-top {
    position: relative !important;
  }

  body {
    padding-top: 0 !important;
  }
  
  .title.is-2 {
    font-size: 2rem;
  }
  
  .title.is-3 {
    font-size: 1.8rem;
  }
  
  .title.is-4 {
    font-size: 1.4rem;
  }
  
  .hero-title {
    font-size: 2.4rem;
  }
  
  .hero-subtitle {
    font-size: 1.6rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .kurz-card, .innovation-card, .instructor-card, .press-card {
    margin-bottom: 2rem;
  }
  
  .footer {
    padding: 3rem 1.5rem 2rem;
  }
  
  .page-content .container {
    padding: 2rem;
  }
}

/* Cookie consent */
#cookie-consent {
  border-radius: 0;
  font-family: 'IBM Plex Sans', sans-serif;
}

#accept-cookies {
  transition: all var(--transition-medium);
  font-weight: 600;
}

#accept-cookies:hover {
  background-color: #3e8e41;
  transform: translateY(-2px);
}

/* Дополнительные анимации и эффекты */
.navbar.is-fixed-top {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.card img {
  margin: 0 auto;
}

/* Стили для Read More ссылок */
.read-more-link {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-medium);
}

.read-more-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-medium);
}

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

.read-more-link:hover:after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Стили для изображений с морфинг-эффектом */
.morphing-image {
  animation: morphing 8s infinite;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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