﻿* {
  box-sizing: border-box;
}

:root {
  --primary-color: #4c1d95;
  --secondary-color: #f59e0b;
  --accent-color: #059669;
  --text-color: #1e293b;
  --bg-color: #f8fafc;
  --bg-secondary: #e5e7eb;
  --white: #ffffff;
  --dark: #111827;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: calc(1.575rem + 3.9vw); }
h2 { font-size: calc(1.425rem + 1.1vw); }
h3 { font-size: calc(1.375rem + .8vw); }
h4 { font-size: calc(1.275rem + .3vw); }
h5 { font-size: 1.375rem; }

p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  display: inline-block;
  transition: all .3s ease;
}

a:hover {
  color: var(--secondary-color);
  opacity: .9;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

input, button, select, textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.display-3 {
  font-size: calc(1.675rem + 4.2vw);
  font-weight: 700;
  line-height: 1.15;
}

.display-4 {
  font-size: calc(1.625rem + 3.6vw);
  font-weight: 700;
  line-height: 1.15;
}

.display-5 {
  font-size: calc(1.525rem + 2.4vw);
  font-weight: 600;
  line-height: 1.15;
}

.container {
  width: 100%;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
  margin-right: auto;
  margin-left: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -1rem;
  margin-left: -1rem;
}

.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
}

.col-12 { flex: 0 0 auto; width: 100%; }
.col-4 { flex: 0 0 auto; width: 33.33333333%; }
.col-6 { flex: 0 0 auto; width: 50%; }

.hero-section {
  background: linear-gradient(135deg, rgba(76, 29, 149, 0.9), rgba(245, 158, 11, 0.8)), 
              url('../gfx/nmats5.webp') center/cover no-repeat;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 25%, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.05) 50%, transparent 50%, transparent 75%, rgba(255,255,255,0.05) 75%);
  background-size: 60px 60px;
  pointer-events: none;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-color);
  color: white;
  padding: 1rem 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
}

.cookie-banner a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.navbar {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  text-decoration: none;
}

.navbar-nav {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-nav .nav-item {
  margin-left: 2rem;
}

.navbar-nav .nav-link {
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

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

.navbar-toggler {
  display: none;
  background: none;
  border: 2px solid var(--primary-color);
  border-radius: 4px;
  padding: 0.5rem;
}

.navbar-toggler-icon {
  width: 24px;
  height: 24px;
  background: var(--primary-color);
  mask: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 16 16' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E") no-repeat center;
}

.navbar-collapse {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
}

.collapse:not(.show) {
  display: flex !important;
}

.form-label {
  margin-bottom: .75rem;
  display: inline-block;
  font-weight: 500;
  color: var(--text-color);
}

.form-control, .form-select {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-color);
  background-color: var(--white);
  border: 2px solid #e2e8f0;
  border-radius: .75rem;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.form-control:focus, .form-select:focus {
  outline: 0;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(76, 29, 149, 0.15);
}

.form-select {
  padding-right: 3rem;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 12px;
  appearance: none;
}

.form-check {
  display: block;
  min-height: 1.5rem;
  padding-left: 2rem;
  margin-bottom: 0;
}

.form-check-input {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.125rem;
  margin-left: -2rem;
  vertical-align: top;
  background-color: var(--white);
  border: 2px solid #dee2e6;
  border-radius: 0.375rem;
  appearance: none;
  transition: all .3s ease;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3E%3C/svg%3E");
}

.form-check-label {
  cursor: pointer;
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  user-select: none;
  border: 2px solid transparent;
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: .75rem;
  transition: all .3s ease;
  text-decoration: none;
}

.btn-action-1 {
  background: linear-gradient(135deg, var(--primary-color), #6366f1);
  color: white;
  border-color: var(--primary-color);
}

.btn-action-1:hover {
  background: linear-gradient(135deg, #3730a3, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(76, 29, 149, 0.3);
  color: white;
}

.btn-outline-light {
  color: white;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.2);
  border-color: white;
  color: white;
}

.btn-outline-dark {
  color: var(--text-color);
  border-color: var(--text-color);
  background: transparent;
}

.btn-outline-dark:hover {
  background: var(--text-color);
  color: white;
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.bg-bg-2 {
  background-color: var(--bg-secondary);
}

.bg-bg-3 {
  background-color: var(--bg-color);
}

.bg-action-1 {
  background: linear-gradient(135deg, var(--primary-color), #6366f1);
}

.bg-dark {
  background-color: var(--dark) !important;
}

.bg-white {
  background-color: var(--white);
}

.text-action-1 {
  color: var(--primary-color);
}

.text-white {
  color: white !important;
}

.text-white-50 {
  color: rgba(255,255,255,0.5) !important;
}

.text-muted {
  color: #6b7280;
}

.min-vh-100 {
  min-height: 100vh;
}

.d-flex { display: flex !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-none { display: none !important; }

.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }

.text-center { text-align: center !important; }
.text-start { text-align: left !important; }

.rounded { border-radius: .75rem !important; }
.rounded-2 { border-radius: .75rem !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-pill { border-radius: 50rem !important; }

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

.list-unstyled {
  padding-left: 0;
  list-style: none;
}

.opacity-75 { opacity: 0.75 !important; }
.opacity-90 { opacity: 0.9 !important; }

.border-white-50 {
  border-color: rgba(255,255,255,0.5) !important;
}

.ms-auto { margin-left: auto !important; }
.me-3 { margin-right: 1rem !important; }
.me-4 { margin-right: 1.25rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-5 { margin-bottom: 1.25rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-7 { margin-bottom: 1.75rem !important; }
.mb-8 { margin-bottom: 2rem !important; }
.mb-9 { margin-bottom: 2.25rem !important; }
.mb-16 { margin-bottom: 4rem !important; }
.my-6 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }

.p-3 { padding: 0.75rem !important; }
.p-4 { padding: 1rem !important; }
.p-7 { padding: 1.75rem !important; }
.p-8 { padding: 2rem !important; }
.p-9 { padding: 2.25rem !important; }
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-10 { padding-top: 2.75rem !important; padding-bottom: 2.75rem !important; }
.py-11 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-7 { padding-left: 1.75rem !important; padding-right: 1.75rem !important; }

.fs-1 { font-size: 1.625rem !important; }
.fs-2 { font-size: 1.4375rem !important; }
.fs-3 { font-size: 1.1875rem !important; }

@media (min-width: 576px) {
  .container { max-width: 540px; }
}

@media (max-width: 767.98px) {
  .navbar {
    background: var(--white);
    position: fixed;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .navbar-toggler {
    display: block;
  }
  
  .navbar-collapse {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }
  
  .navbar-collapse.show {
    display: block !important;
  }
  
  .navbar-nav {
    flex-direction: column;
  }
  
  .navbar-nav .nav-item {
    margin: 0;
    margin-bottom: 1rem;
  }
  
  .hero-section {
    padding-top: 80px;
  }
  
  .col-4 { width: 100%; margin-bottom: 1rem; }
  
  .d-flex.flex-column.flex-md-row {
    flex-direction: column;
  }
}

@media (min-width: 768px) {
  .container { max-width: 720px; }
  
  .col-md-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-md-5 { flex: 0 0 auto; width: 41.66666667%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
  .col-md-7 { flex: 0 0 auto; width: 58.33333333%; }
  .col-md-8 { flex: 0 0 auto; width: 66.66666667%; }
  
  .flex-md-row { flex-direction: row !important; }
  .text-md-start { text-align: left !important; }
  .mb-md-0 { margin-bottom: 0 !important; }
  .mb-md-16 { margin-bottom: 4rem !important; }
  
  .py-md-21 { padding-top: 5.25rem !important; padding-bottom: 5.25rem !important; }
}

@media (min-width: 992px) {
  .container { max-width: 960px; }
  
  .col-lg-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-lg-5 { flex: 0 0 auto; width: 41.66666667%; }
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.66666667%; }
  
  .py-lg-21 { padding-top: 5.25rem !important; padding-bottom: 5.25rem !important; }
  .mb-lg-0 { margin-bottom: 0 !important; }
  .text-lg-start { text-align: left !important; }
}

@media (min-width: 1200px) {
  .container { max-width: 1140px; }
  
  .col-xl-3 { flex: 0 0 auto; width: 25%; }
  .col-xl-5 { flex: 0 0 auto; width: 41.66666667%; }
  .col-xl-6 { flex: 0 0 auto; width: 50%; }
  
  h1 { font-size: 4.5rem; }
  h2 { font-size: 2.5rem; }
  .display-3 { font-size: 4.5rem; }
  .display-4 { font-size: 3.75rem; }
  .display-5 { font-size: 3rem; }
}

@media (min-width: 1400px) {
  .container { max-width: 1320px; }
  
  .col-xxl-3 { flex: 0 0 auto; width: 25%; }
  .col-xxl-4 { flex: 0 0 auto; width: 33.33333333%; }
  .col-xxl-5 { flex: 0 0 auto; width: 41.66666667%; }
}

.border-start {
  border-left: 4px solid var(--primary-color) !important;
}

.ps-7 {
  padding-left: 1.75rem !important;
}

hr {
  margin: 1rem 0;
  color: inherit;
  background-color: currentColor;
  border: 0;
  opacity: 0.25;
}

hr:not([size]) {
  height: 1px;
}