/* DESIGN SYSTEM: Bauhaus Constructivism */
:root {
  --bg-white: #f4f4f4;
  --bg-dark: #111111;
  --red: #d93025;
  --blue: #1a73e8;
  --yellow: #f9ab00;

  --border: 3px solid #111;
  --shadow: 6px 6px 0px #111;
  --shadow-hover: 10px 10px 0px #111;

  --font-head: "Archivo Black", sans-serif;
  --font-body: "Roboto Mono", monospace;

  --container: 1200px;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-white);
  color: var(--bg-dark);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* UTILS */
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  width: 100%;
  display: block;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  line-height: 1.1;
}
h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: 30px;
}
h2 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 20px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 100px 0;
  border-bottom: var(--border);
}
.center {
  text-align: center;
}
.narrow {
  max-width: 800px;
  margin: 0 auto;
}
.bg-dots {
  background-image: radial-gradient(#111 1px, transparent 1px);
  background-size: 20px 20px;
}

/* COLORS & HIGHLIGHTS */
.highlight-red {
  color: var(--red);
  background: #111;
  padding: 0 10px;
}
.highlight-blue {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 5px;
}
.bg-red {
  background-color: var(--red) !important;
  color: white;
}
.bg-blue {
  background-color: var(--blue) !important;
  color: white;
}
.bg-yellow {
  background-color: var(--yellow) !important;
  color: black;
}

/* BUTTONS */
.btn-geo {
  display: inline-block;
  padding: 15px 30px;
  background: var(--bg-dark);
  color: white;
  font-family: var(--font-head);
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}
.btn-geo:hover {
  background: var(--blue);
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow);
  color: white;
}

.btn-big {
  font-size: 1.2rem;
  padding: 20px 40px;
}

.btn-arrow {
  width: 60px;
  height: 60px;
  background: var(--bg-white);
  border: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.btn-arrow:hover {
  background: var(--bg-dark);
  color: white;
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow);
}

/* HEADER */
.b-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--bg-white);
  border-bottom: var(--border);
  z-index: 100;
}
.h-flex {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: var(--font-head);
  font-size: 1.2rem;
}
.logo-shape {
  width: 30px;
  height: 30px;
  background: var(--red);
  border: 2px solid #000;
  border-radius: 50%;
}

.b-nav {
  display: flex;
  gap: 30px;
}
.b-nav a {
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  transition: 0.2s;
}
.b-nav a:hover {
  border-bottom-color: var(--blue);
}

.h-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}
.link-contact {
  font-weight: 700;
  text-decoration: underline;
}
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.bar {
  width: 30px;
  height: 4px;
  background: #000;
}

/* MOBILE MENU */
.mob-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: var(--yellow);
  border-left: var(--border);
  z-index: 200;
  transform: translateX(100%);
  transition: 0.3s;
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.mob-menu.active {
  transform: translateX(0);
}
.mob-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
  font-family: var(--font-head);
  font-size: 1.5rem;
}
#closeMob {
  background: none;
  border: none;
  cursor: pointer;
}
.mob-links a {
  display: block;
  font-family: var(--font-head);
  font-size: 1.4rem;
  margin-bottom: 20px;
  border-bottom: 3px solid #000;
}
.mob-highlight {
  color: var(--bg-white);
  background: #000;
  padding: 5px;
}

/* HERO */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 50px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

/* ADAPTIVE HEADINGS FIX */
.responsive-h1 {
  word-break: break-word; /* Prevents overflow */
  hyphens: auto; /* Adds hyphens if needed */
}

.tag-box {
  display: inline-block;
  background: var(--bg-dark);
  color: white;
  padding: 5px 15px;
  font-weight: 700;
  margin-bottom: 20px;
  transform: rotate(-2deg);
}
.hero-desc {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 600px;
}
.hero-actions {
  display: flex;
  gap: 30px;
  align-items: center;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  line-height: 1.2;
  border-left: 4px solid var(--blue);
  padding-left: 15px;
}
.hero-stat strong {
  font-family: var(--font-head);
  font-size: 1.5rem;
}

.art-comp {
  position: relative;
  height: 400px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.shape {
  position: absolute;
  border: var(--border);
}
.s-square {
  width: 200px;
  height: 200px;
  background: var(--blue);
  top: 0;
  right: 20px;
  z-index: 1;
}
.s-circle {
  width: 180px;
  height: 180px;
  background: var(--red);
  border-radius: 50%;
  bottom: 20px;
  left: 20px;
  z-index: 2;
}
.s-tri {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 120px solid var(--yellow);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  filter: drop-shadow(4px 4px 0 #000); /* Fake border for triangle */
}
.code-block {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #fff;
  border: var(--border);
  padding: 10px 20px;
  font-family: var(--font-body);
  font-weight: 700;
  z-index: 4;
  box-shadow: var(--shadow);
}

/* TICKER */
.ticker-border {
  border-top: var(--border);
  border-bottom: var(--border);
  padding: 15px 0;
  background: var(--blue);
  color: white;
  overflow: hidden;
}
.ticker-track {
  white-space: nowrap;
  font-family: var(--font-head);
  font-size: 1.5rem;
  animation: scroll 20s linear infinite;
}
.ticker-track span {
  margin: 0 20px;
}
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* METHODOLOGY */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.card-bauhaus {
  background: #fff;
  border: var(--border);
  padding: 30px;
  transition: 0.3s;
}
.card-bauhaus:hover {
  box-shadow: var(--shadow);
  transform: translate(-5px, -5px);
}
.cb-icon {
  width: 60px;
  height: 60px;
  border: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 50%;
}
.card-bauhaus h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

/* COURSES */
.courses-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.course-row {
  display: flex;
  gap: 40px;
  align-items: center;
  background: #fff;
  border: var(--border);
  padding: 30px;
  transition: 0.3s;
}
.course-row:hover {
  box-shadow: var(--shadow);
  transform: translate(-3px, -3px);
}
.cr-visual {
  width: 100px;
  height: 100px;
  border: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 2rem;
  flex-shrink: 0;
}
.cr-info {
  flex-grow: 1;
}
.cr-info h3 {
  margin-bottom: 10px;
  font-size: 1.8rem;
}
.cr-tags {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
.cr-tags span {
  background: #eee;
  border: 1px solid #000;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* FAQ */
.acc-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.acc-item {
  border: var(--border);
  background: #fff;
}
.acc-btn {
  width: 100%;
  padding: 20px;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-head);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
}
.acc-btn:hover {
  background: #f0f0f0;
}
.acc-icon {
  font-size: 2rem;
  font-weight: 400;
}
.acc-btn.active .acc-icon {
  transform: rotate(45deg);
}
.acc-content {
  max-height: 0;
  overflow: hidden;
  transition: 0.3s;
  padding: 0 20px;
  border-top: 3px solid transparent;
}
.acc-btn.active + .acc-content {
  border-top-color: #000;
}
.acc-content p {
  padding: 20px 0;
}

/* CONTACT */
.section-contact {
  background: var(--bg-white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.c-text h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}
.c-text p {
  font-size: 1.2rem;
  margin-bottom: 40px;
}
.c-address-box {
  border: var(--border);
  padding: 30px;
  background: #fff;
  box-shadow: var(--shadow);
}
.cab-row {
  margin-bottom: 20px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
}
.cab-row strong {
  display: block;
  font-family: var(--font-head);
}

.geo-form {
  background: var(--blue);
  padding: 40px;
  border: var(--border);
  color: white;
  box-shadow: var(--shadow);
}
.gf-group {
  margin-bottom: 20px;
}
.gf-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 5px;
  font-family: var(--font-head);
}
.gf-group input,
.gf-group select {
  width: 100%;
  padding: 15px;
  border: 3px solid #fff;
  background: transparent;
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
}
.gf-group input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.gf-group input:focus,
.gf-group select:focus {
  outline: none;
  background: rgba(0, 0, 0, 0.1);
}
.gf-group select option {
  color: #000;
}

.btn-geo-submit {
  width: 100%;
  padding: 20px;
  background: var(--yellow);
  color: black;
  border: 3px solid #fff;
  font-family: var(--font-head);
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.2s;
}
.btn-geo-submit:hover {
  background: white;
  color: var(--blue);
  border-color: var(--bg-dark);
}

/* FOOTER */
.b-footer {
  background: var(--bg-dark);
  color: #fff;
  padding: 80px 0 0;
  border-top: var(--border);
}
.f-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}
.f-logo {
  font-family: var(--font-head);
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--yellow);
}
.f-col h5 {
  color: var(--blue);
  margin-bottom: 20px;
  font-family: var(--font-head);
  font-size: 1.1rem;
}
.f-col a {
  display: block;
  color: #ccc;
  margin-bottom: 10px;
  border-bottom: 1px solid transparent;
  width: max-content;
}
.f-col a:hover {
  border-bottom-color: var(--red);
  color: #fff;
}

.f-contacts p {
  margin-bottom: 5px;
}
.f-contacts .hl {
  color: var(--yellow);
  text-decoration: underline;
  margin-top: 10px;
  display: block;
}

.f-bottom {
  background: #000;
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid #333;
  font-size: 0.8rem;
}

/* COOKIE */
.cookie-geo {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 300px;
  background: #fff;
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 15px;
  z-index: 500;
}
.btn-ck {
  padding: 10px;
  background: var(--bg-dark);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
}
.btn-ck:hover {
  background: var(--blue);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .b-nav,
  .h-cta .link-contact,
  .h-cta .btn-geo {
    display: none;
  }
  .burger {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stat {
    border-left: none;
    border-top: 4px solid var(--blue);
    padding-top: 10px;
    padding-left: 0;
  }

  .art-comp {
    height: 300px;
  }

  .grid-3,
  .f-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Special Handling for Cards on Mobile */
  .course-row {
    flex-direction: column;
    text-align: center;
  }
  .cr-tags {
    justify-content: center;
  }

  /* Heading Adjustments */
  h1 {
    font-size: clamp(2rem, 10vw, 3.5rem);
  } /* Fluid typography fix */
}

.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: 22px;
    margin-bottom: 30px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px;
    margin-top: 30px;
  }
  .margin {
    font-size: 28px;
  }
}

/* --- CONTACT PAGE SPECIFIC STYLES --- */
.contact-page-main {
  padding-top: 180px;
  padding-bottom: 120px;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cp-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  letter-spacing: -2px;
  color: var(--accent);
  margin-bottom: 30px;
  line-height: 1;
}

.cp-divider {
  width: 60px;
  height: 1px;
  background-color: var(--accent);
  margin: 0 auto 40px auto;
}

.cp-status {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
  display: inline-block;
  padding: 10px 20px;
  margin-bottom: 60px;
  background: #fcfcfc;
}

.cp-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cp-label {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.cp-phone-link {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--accent);
  line-height: 1.2;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
  margin-bottom: 40px;
}

.cp-phone-link:hover {
  border-bottom-color: var(--accent);
  opacity: 0.8;
}

.cp-address-box {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  width: 100%;
  max-width: 400px;
}

.cp-addr {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 10px;
}

.cp-email {
  font-family: var(--font-sans);
  color: var(--text-muted);
  font-size: 1rem;
}

.cp-email a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cp-email a:hover {
  color: var(--accent);
}

@media (max-width: 600px) {
  .contact-page-main {
    padding-top: 140px;
    text-align: center;
  }

  .cp-phone-link {
    font-size: 2rem;
  }
}
