@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --color-primary: #E63946;
  --color-secondary: #F1FAEE;
  --color-accent: #1D3557;
  --color-text: #1a1a1a;
  --color-text-light: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f9fafb;

  --font-family: 'Space Grotesk', sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);

  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-family);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  min-height: 44px;
  min-width: 44px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  border: none;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

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

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

.btn-accent {
  background-color: var(--color-accent);
  color: white;
  border: none;
}

.btn-accent:hover {
  background-color: #2a4a7a;
  transform: scale(1.05);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--color-text);
  transition: var(--transition-base);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background-color: var(--color-primary);
  clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 75% 100%, 0% 100%);
}

.nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    gap: var(--space-lg);
  }
}

.nav-link {
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  color: var(--color-text);
  position: relative;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.hamburger {
  width: 30px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-text);
  transition: var(--transition-base);
}

.menu-toggle.active .hamburger span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.menu-toggle.active .hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background-color: var(--color-text);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  transition: var(--transition-slow);
  z-index: 1000;
}

.nav-mobile.active {
  right: 0;
}

.nav-mobile .nav-link {
  color: white;
  font-size: 1.5rem;
}

.hero {
  padding-top: 120px;
  padding-bottom: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: var(--space-md);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
  color: var(--color-text-light);
  max-width: 600px;
}

.hero-image-wrap {
  position: relative;
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 4px solid var(--color-primary);
  z-index: -1;
}

.hero-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
}

.section {
  padding: var(--space-2xl) 0;
}

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

.section-title-wrap {
  margin-bottom: var(--space-xl);
  position: relative;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-sm);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 8px;
  background-color: var(--color-primary);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.card {
  background-color: white;
  border: 2px solid var(--color-text);
  padding: var(--space-lg);
  transition: var(--transition-base);
  position: relative;
}

.card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--color-text);
}

.card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-primary);
  margin-bottom: var(--space-md);
  clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.card p {
  color: var(--color-text-light);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(200px, auto));
  gap: var(--space-md);
}

.bento-item {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--color-text);
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.bento-item:hover img {
  transform: scale(1.05);
}

.bento-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-md);
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
}

.bento-1 { grid-column: span 2; grid-row: span 2; }
.bento-2 { grid-column: span 2; grid-row: span 1; }
.bento-3 { grid-column: span 1; grid-row: span 1; }
.bento-4 { grid-column: span 1; grid-row: span 1; }

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .bento-item { grid-column: span 1; grid-row: span 1; }
}

.testimonial-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  -webkit-overflow-scrolling: touch;
}

.testimonial-slider::-webkit-scrollbar {
  height: 4px;
}

.testimonial-slider::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
}

.testimonial-slider::-webkit-scrollbar-thumb {
  background: var(--color-primary);
}

.testimonial-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background-color: var(--color-accent);
  color: white;
  padding: var(--space-xl);
  border-left: 10px solid var(--color-primary);
}

@media (min-width: 768px) {
  .testimonial-card {
    flex: 0 0 calc(50% - var(--space-lg));
  }
}

.testimonial-quote {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.author-info h4 {
  margin-bottom: 2px;
}

.author-info span {
  font-size: 0.875rem;
  opacity: 0.7;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #ddd;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
}

.faq-icon {
  width: 20px;
  height: 20px;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--color-primary);
  transition: var(--transition-base);
}

.faq-icon::before {
  width: 100%;
  height: 2px;
  top: 9px;
  left: 0;
}

.faq-icon::after {
  width: 2px;
  height: 100%;
  top: 0;
  left: 9px;
}

.faq-item.active .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: var(--space-lg);
}

.footer {
  background-color: var(--color-text);
  color: white;
  padding: var(--space-2xl) 0 var(--space-lg);
}

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

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.footer-contact p {
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links h4 {
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

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

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

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

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: 0.875rem;
  opacity: 0.8;
}

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-accent);
  color: white;
  padding: var(--space-md) 0;
  z-index: 2000;
  transform: translateY(100%);
  transition: var(--transition-slow);
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

@media (min-width: 768px) {
  .cookie-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

.cookie-btns {
  display: flex;
  gap: var(--space-sm);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-text);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 4px 4px 0 var(--color-primary);
}

.data-notice {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-top: var(--space-sm);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(29, 53, 87, 0.6);
  z-index: 1;
}

.texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Ffilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.diagonal-bg {
  position: relative;
}

.diagonal-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  clip-path: polygon(0 0, 100% 15%, 100% 100%, 0 85%);
  z-index: -1;
  opacity: 0.05;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 3fr 2fr;
  }
}

.map-container {
  height: 400px;
  background-color: #eee;
  border: 2px solid var(--color-text);
  overflow: hidden;
}

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

.syllabus-list {
  list-style: none;
}

.syllabus-item {
  padding: var(--space-md);
  border-left: 4px solid var(--color-primary);
  background-color: var(--color-bg-alt);
  margin-bottom: var(--space-sm);
}

.syllabus-item h4 {
  color: var(--color-accent);
  margin-bottom: 5px;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-xl);
}

.pricing-table th, .pricing-table td {
  padding: var(--space-md);
  border: 2px solid var(--color-text);
  text-align: left;
}

.pricing-table th {
  background-color: var(--color-accent);
  color: white;
  text-transform: uppercase;
}

.pricing-table tr:nth-child(even) {
  background-color: var(--color-bg-alt);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

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

.team-image-wrap {
  width: 200px;
  height: 200px;
  margin: 0 auto var(--space-md);
  position: relative;
}

.team-image-wrap::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-primary);
  z-index: -1;
}

.team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 8px;
  z-index: 2001;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}
