:root {
  --primary-color: #483D8B;
  --accent-light: #f5f3ff;
  --text-dark: #2c2c2c;
  --text-light: #666666;
  --border-color: #e0e0e0;
  --background-white: #ffffff;
  --transition: all 0.26s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.06rem;
  line-height: 1.69;
  color: var(--text-dark);
  background-color: var(--background-white);
  overflow-x: hidden;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--background-white);
  box-shadow: 0 2px 8px rgba(72, 61, 139, 0.08);
  z-index: 1000;
  transition: var(--transition);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: -0.5px;
}

.logo:hover {
  opacity: 0.8;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav a:hover::after {
  width: 100%;
}

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

main {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

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

h1 {
  font-size: 2.69rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-align: center;
}

h2 {
  font-size: 1.97rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.2rem;
  margin-top: 2rem;
  color: var(--text-dark);
}

h3 {
  font-size: 1.44rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.69;
}

strong {
  color: var(--text-dark);
  font-weight: 600;
}

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--background-white) 100%);
  padding: 6rem 2rem;
  text-align: center;
  overflow: hidden;
  margin-bottom: 3rem;
}

.hero-image {
  width: 100%;
  max-width: 800px;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin: 2rem auto 0;
  box-shadow: 0 8px 24px rgba(72, 61, 139, 0.12);
  display: block;
}

.section {
  padding: 4rem 2rem;
  background-color: var(--background-white);
}

.section:nth-child(even) {
  background-color: #fafafa;
}

.section-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.section-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(72, 61, 139, 0.12);
}

.section-text {
  max-width: 600px;
}

.content-grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.col-12 {
  grid-column: 1 / -1;
}

.col-6 {
  grid-column: span 6;
}

.col-4 {
  grid-column: span 4;
}

.card {
  background-color: var(--background-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card:hover {
  box-shadow: 0 12px 32px rgba(72, 61, 139, 0.15);
  transform: translateY(-4px);
}

.card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.8rem;
}

.card-text {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.card-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.card-link:hover {
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: var(--background-white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--primary-color);
  cursor: pointer;
  font-size: 0.95rem;
}

.btn:hover {
  background-color: rgba(72, 61, 139, 0.9);
  box-shadow: 0 8px 16px rgba(72, 61, 139, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--accent-light);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.faq-section {
  max-width: 800px;
  margin: 3rem auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border-color);
}

.faq-question {
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  user-select: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--primary-color);
}

.faq-answer {
  display: none;
  margin-top: 1rem;
  color: var(--text-light);
  line-height: 1.69;
}

.faq-answer.active {
  display: block;
}

.faq-toggle {
  font-size: 1.5rem;
  transition: var(--transition);
}

.faq-toggle.active {
  transform: rotate(45deg);
  color: var(--primary-color);
}

footer {
  background-color: #f0f0f0;
  color: var(--text-dark);
  padding: 3rem 2rem 1.5rem;
  border-top: 2px solid var(--border-color);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.7rem;
}

.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

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

.footer-section p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
}

.educational-notice {
  background-color: var(--accent-light);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  border-radius: 6px;
  margin: 2rem 0;
  color: var(--text-dark);
}

.educational-notice strong {
  color: var(--primary-color);
}

form {
  max-width: 600px;
  margin: 2rem auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

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

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  color: var(--text-dark);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(72, 61, 139, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--background-white);
  border-top: 2px solid var(--primary-color);
  padding: 1.5rem 2rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: none;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

.cookie-banner.show {
  display: flex;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
}

.cookie-text strong {
  color: var(--primary-color);
}

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

.cookie-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.cookie-accept {
  background-color: var(--primary-color);
  color: var(--background-white);
}

.cookie-accept:hover {
  background-color: rgba(72, 61, 139, 0.9);
}

.cookie-decline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.cookie-decline:hover {
  background-color: var(--accent-light);
}

@media (max-width: 768px) {
  header {
    position: relative;
  }

  main {
    margin-top: 0;
  }

  .header-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    text-align: center;
  }

  h1 {
    font-size: 1.97rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .section-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .col-6,
  .col-4 {
    grid-column: 1 / -1;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    flex-direction: column;
    gap: 1rem;
  }

  .cookie-text {
    min-width: unset;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }

  .cookie-btn {
    flex: 1;
    min-width: 120px;
  }

  .hero-image {
    height: 200px;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .section {
    padding: 2rem 1rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 0.95rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .container,
  .content-grid-12 {
    padding: 0 1rem;
  }

  nav ul {
    gap: 0.25rem;
  }

  nav a {
    font-size: 0.85rem;
  }

  .section-image,
  .hero-image {
    border-radius: 8px;
  }

  .card {
    padding: 1.5rem;
  }

  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .footer-section h3 {
    font-size: 0.9rem;
  }

  .footer-section p,
  .footer-section a {
    font-size: 0.8rem;
  }
}
