:root {
  --navy: #0a1128;
  --sand: #f4f1ea;
  --terracotta: #d8503b;
  --charcoal: #1b1b1b;
  --white: #ffffff;
  --border: rgba(10, 17, 40, 0.15);
  --transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--sand);
  color: var(--navy);
  font-family: "Inter", -apple-system, sans-serif;
  line-height: 1.7;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* TYPOGRAPHY - RESPONSIVE */
h1 {
  font-size: 3.2rem;
  line-height: 0.95;
  font-weight: 900;
  margin-bottom: 40px;
  text-transform: uppercase;
}
h2 {
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 45px;
  text-transform: uppercase;
}
h3 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  margin-bottom: 25px;
  text-transform: uppercase;
}
p {
  font-size: 18px;
  color: var(--charcoal);
  margin-bottom: 25px;
  max-width: 75ch;
}
.h-accent {
  color: var(--terracotta);
}

/* HEADER */
.arch-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--sand);
  border-bottom: 2px solid var(--navy);
  transition: var(--transition);
}
.header-grid {
  height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 900;
  font-size: 20px;
}
.nav-desktop a {
  text-decoration: none;
  color: var(--navy);
  margin-left: 30px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  transition: var(--transition);
}
.nav-desktop a:hover {
  color: var(--terracotta);
}
.cta-arch {
  border: 2px solid var(--navy);
  padding: 10px 20px;
}

/* SECTIONS - SPACING */
section {
  padding: clamp(60px, 10vw, 150px) 0;
  border-bottom: 1px solid var(--border);
}

/* HERO */
.pillar-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}
.top-label {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 5px;
  color: var(--terracotta);
  margin-bottom: 25px;
}
.hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 50px;
}

.visual-frame {
  border: 2px solid var(--navy);
  position: relative;
  padding: 20px;
  background: var(--white);
}
.visual-frame img {
  width: 100%;
  height: auto;
  filter: grayscale(1);
}

/* BUTTONS */
.btn-arch {
  background: var(--navy);
  color: var(--white);
  padding: 20px 40px;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  border: 2px solid var(--navy);
  transition: var(--transition);
  width: 80%;
}
.btn-arch:hover {
  background: transparent;
  color: var(--navy);
  transform: translateY(-5px);
}
.btn-ghost {
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 20px 40px;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  transition: var(--transition);
  width: 80%;
}
.btn-ghost:hover {
  background: var(--navy);
  color: var(--white);
}

/* PANEL */
.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.panel-image img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 20px 20px 0 var(--terracotta);
}

/* CURRICULUM */
.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}
.curr-card {
  background: var(--white);
  padding: 60px 40px;
  border: 1px solid var(--navy);
  transition: var(--transition);
}
.curr-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
}
.curr-card i {
  color: var(--terracotta);
  margin-bottom: 30px;
  width: 40px;
  height: 40px;
}

/* SPEED BOX */
.speed-box {
  background: var(--navy);
  color: var(--white);
  padding: 100px 60px;
  text-align: center;
}
.speed-content h2 {
  color: var(--white);
}
.speed-content p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto 40px;
}
.btn-white {
  background: var(--sand);
  color: var(--navy);
  padding: 20px 45px;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
}

/* METHOD */
.method-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.method-svg {
  color: var(--navy);
  opacity: 0.2;
  width: 100%;
}

/* BENTO */
.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}
.bento-item {
  background: var(--white);
  padding: 50px;
  border: 1px solid var(--navy);
}
.bento-item.main h3 {
  font-size: 80px;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 20px;
}

/* FAQ */
.faq-accordion {
  max-width: 900px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--navy);
  margin-bottom: 15px;
}
.faq-trigger {
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.active .faq-content {
  max-height: 300px;
  padding-bottom: 30px;
}
.faq-item.active i {
  transform: rotate(180deg);
  color: var(--terracotta);
}

/* FORM */
.form-monolith {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border: 4px solid var(--navy);
  padding: clamp(40px, 8vw, 100px);
}
.arch-form {
  display: flex;
  flex-direction: column;
  gap: 35px;
}
.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.form-group input {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--navy);
  background: transparent;
  padding: 15px 0;
  font-size: 16px;
  outline: none;
}
.captcha-group {
  flex-direction: row;
  align-items: center;
  gap: 30px;
}
.submit-btn {
  background: var(--navy);
  color: var(--white);
  padding: 25px;
  border: none;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}
.submit-btn:hover {
  background: var(--terracotta);
  letter-spacing: 5px;
}

/* FOOTER - REWORKED */
.arch-footer {
  background: var(--navy);
  color: var(--white);
  padding: 120px 0 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 60px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.f-brand p {
  color: rgba(255, 255, 255, 0.5);
  margin-top: 25px;
  font-size: 15px;
}
.f-nav h4,
.f-legal h4,
.f-contact h4 {
  font-size: 12px;
  letter-spacing: 3px;
  margin-bottom: 35px;
  color: var(--terracotta);
}
.f-nav nav a,
.f-legal nav a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 15px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s;
}
.f-nav nav a:hover,
.f-legal nav a:hover {
  color: var(--white);
  padding-left: 5px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.8);
}
.contact-item i {
  width: 18px;
  color: var(--terracotta);
  flex-shrink: 0;
}
.contact-item span {
  font-size: 14px;
  line-height: 1.4;
}
.footer-bottom {
  padding-top: 40px;
  text-align: center;
  font-size: 12px;
  opacity: 0.4;
  letter-spacing: 1px;
}

/* MOBILE NAVIGATION */
.burger-arch {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 10px;
}
.burger-arch span {
  display: block;
  width: 35px;
  height: 3px;
  background: var(--navy);
  transition: var(--transition);
}
.panel-overlay {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 2000;
  display: flex;
  transform: translateX(100%);
  transition: var(--transition);
}
.panel-overlay.active {
  transform: translateX(0);
}
.panel-container {
  padding: 60px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.panel-close {
  align-self: flex-end;
  font-size: 60px;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
}
.panel-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 60px;
}
.panel-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
}

/* COOKIE */
.cookie-popup {
  position: fixed;
  bottom: 40px;
  left: 40px;
  width: 380px;
  background: var(--white);
  border: 4px solid var(--navy);
  padding: 30px;
  z-index: 5000;
  display: none;
  box-shadow: 20px 20px 0 rgba(0, 0, 0, 0.1);
}
#acceptCookie {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  margin-top: 20px;
  font-weight: 800;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .nav-desktop {
    display: none;
  }
  .burger-arch {
    display: flex;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .panel-grid,
  .curriculum-grid,
  .method-layout,
  .grid-2,
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .visual-frame {
    order: -1;
  }
  h1 {
    font-size: 1.7rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .pillar-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  div h2 {
    font-size: 1.7rem !important;
  }
  .hero-pillar {
    margin-top: 100px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 25px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .speed-box {
    padding: 60px 30px;
  }
  .cookie-popup {
    left: 20px;
    right: 20px;
    width: auto;
  }
}
.pages {
  padding: 120px 0;
}

.pages-wrap {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto 20px;
}

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f8fafc;
  padding: 50px 40px;
  border-radius: 20px;
  line-height: 1.8;
}

.text-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 5px;
}

.text-wrapper h3 {
  color: #000000;
  margin-bottom: 20px;
}

.text-wrapper p {
  color: #64748b;
  margin-bottom: 20px;
}

.text-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #1e293b;
}

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
  top: 0;
}

.text-wrapper strong {
  color: var(--color-error);
}

.text-wrapper a {
  color: #001eff;
  text-decoration: underline;
  font-weight: 600;
}

.text-wrapper ol {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #000000;
}

.margin {
  margin: 120px 0 50px;
  font-size: 40px;
  color: var(--accent);
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px;
    margin-top: 30px;
  }
  .margin {
    font-size: 28px;
  }
}
