/* VARIABLES: Mondrian / Pop-Art / Neo-Brutalism */
:root {
  --bg: #ffffff;
  --text: #111111;

  --red: #ff3333;
  --blue: #3366ff;
  --yellow: #ffcc00;
  --grey: #f0f0f0;
  --yellow-light: #fff9cc;

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

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

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}
button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  border: var(--border);
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.1;
}
h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  margin-bottom: 25px;
  letter-spacing: -2px;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 20px;
}
h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  max-width: 700px;
  color: #333;
}
.lead {
  font-size: 1.3rem;
  font-weight: 500;
  border-left: 5px solid var(--blue);
  padding-left: 20px;
}
.bg-yellow {
  background: var(--yellow);
  padding: 0 10px;
}
.big-p {
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 30px;
}

/* UTILS */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.narrow {
  max-width: 800px;
  margin: 0 auto;
}
.section {
  padding: 100px 0;
  border-bottom: var(--border);
}
.center {
  text-align: center;
}
.full {
  width: 100%;
}
.bg-dots {
  background-image: radial-gradient(var(--text) 2px, transparent 2px);
  background-size: 20px 20px;
  background-color: #fafafa;
}
.bg-grey {
  background: var(--grey);
}
.bg-yellow-light {
  background: var(--yellow-light);
}

/* BUTTONS (Pop Art) */
.btn-pop {
  display: inline-block;
  padding: 15px 30px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  border: var(--border);
  box-shadow: var(--shadow);
  transition: 0.2s;
  text-align: center;
  font-family: var(--font-head);
}
.btn-pop:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}
.btn-pop:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

.btn-pop.red {
  background: var(--red);
  color: #fff;
}
.btn-pop.blue {
  background: var(--blue);
  color: #fff;
}
.btn-pop.yellow {
  background: var(--yellow);
  color: #000;
}
.btn-pop.white {
  background: #fff;
  color: #000;
}
.btn-pop.black {
  background: #000;
  color: #fff;
}

.btn-link {
  font-family: var(--font-head);
  text-decoration: underline;
  font-size: 1rem;
  text-transform: uppercase;
}
.btn-link:hover {
  background: var(--yellow);
}

/* POP ALERT */
.pop-alert {
  background: var(--text);
  color: #fff;
  padding: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: var(--border);
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
}
.icon-star {
  color: var(--yellow);
}

/* NAVBAR */
.navbar {
  border-bottom: var(--border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}
.nav-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: var(--font-head);
  font-size: 1.5rem;
}
.cube-logo {
  display: flex;
}
.sq {
  width: 20px;
  height: 20px;
  border: 2px solid #000;
}
.r {
  background: var(--red);
}
.b {
  background: var(--blue);
  margin-left: -5px;
  margin-top: 5px;
  z-index: 1;
}

.menu-links {
  display: flex;
  gap: 30px;
}
.menu-links a {
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
}
.menu-links a:hover {
  border-bottom-color: var(--red);
}

.burger-pop {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 2px solid #000;
  padding: 5px;
}
.burger-pop span {
  width: 25px;
  height: 3px;
  background: #000;
}

/* MONDRIAN HERO */
.mondrian-hero {
  padding: 0;
  border-bottom: var(--border);
  overflow: hidden;
}
.m-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.5fr;
  grid-template-rows: auto 200px;
  min-height: 80vh;
  padding: 0;
}
.cell {
  border-right: var(--border);
  padding: 40px;
  position: relative;
}
.cell:last-child {
  border-right: none;
}

.title-cell {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tag-sticker {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 5px 10px;
  font-weight: 700;
  transform: rotate(-2deg);
  width: fit-content;
  margin-bottom: 20px;
}
.hero-btns {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.color-cell-blue {
  background: var(--blue);
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  border-bottom: var(--border);
}
.image-cell {
  grid-column: 2 / 4;
  grid-row: 2 / 3;
  padding: 0;
  overflow: hidden;
}
.image-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}
.img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  background: #fff;
  border-top: var(--border);
  border-right: var(--border);
  padding: 5px 10px;
  font-weight: 700;
  font-size: 0.8rem;
}

.color-cell-red {
  background: var(--red);
  grid-column: 3 / 4;
  grid-row: 1 / 2;
  border-bottom: var(--border);
}

.stat-cell {
  display: none; /* Hidden on standard layout, used in mobile or specific large screens */
}

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

/* CONCEPT */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}
.deco-line {
  width: 100px;
  height: 10px;
  background: var(--red);
  margin-top: 20px;
}
.pop-list {
  list-style: square;
  padding-left: 20px;
  margin-top: 30px;
  font-weight: 700;
}
.pop-list li {
  margin-bottom: 10px;
}

/* BLOCKS (Cards) */
.blocks-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
}
.pop-card {
  border: var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  transition: 0.2s;
}
.pop-card:hover {
  transform: translate(-5px, -5px);
  box-shadow: var(--shadow-hover);
}

.pc-head {
  padding: 20px;
  border-bottom: var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pc-head h3 {
  margin: 0;
}
.bg-blue {
  background: var(--blue);
  color: #fff;
}
.bg-red {
  background: var(--red);
  color: #fff;
}
.bg-yellow {
  background: var(--yellow);
  color: #000;
}

.pc-body {
  padding: 30px;
}
.pc-meta {
  display: flex;
  gap: 15px;
  margin: 20px 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: #555;
}

/* TEST (QUIZ) */
.quiz-border {
  border: var(--border);
  background: #fff;
  padding: 60px;
  position: relative;
}
.quiz-border::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 100%;
  height: 100%;
  border: var(--border);
  z-index: -1;
  background: var(--grey);
}

.qb-interface {
  margin-top: 40px;
  max-width: 600px;
}
.step-slide {
  display: none;
  animation: popIn 0.3s;
}
.step-slide.active {
  display: block;
}
@keyframes popIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.step-opts button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 20px;
  background: #fff;
  border: var(--border);
  margin-bottom: 15px;
  font-weight: 700;
  transition: 0.2s;
}
.step-opts button:hover {
  background: var(--text);
  color: #fff;
}

.res-sticker {
  display: inline-block;
  background: var(--yellow);
  padding: 5px 15px;
  border: var(--border);
  font-weight: 700;
  transform: rotate(-5deg);
  margin-bottom: 20px;
}

/* BLOG (Text) */
.text-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.txt-item {
  padding: 30px 0;
}
.divider {
  height: 3px;
  background: #000;
  width: 100%;
}
.ti-date {
  font-weight: 700;
  background: var(--text);
  color: #fff;
  display: inline-block;
  padding: 2px 8px;
  margin-bottom: 15px;
  font-size: 0.8rem;
}
.read-more {
  font-weight: 700;
  background: var(--yellow);
  padding: 2px 5px;
}

/* PRICING */
.price-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.pl-col {
  border: var(--border);
  background: #fff;
  padding: 40px 30px;
  text-align: center;
}
.pl-col.highlight {
  transform: scale(1.05);
  box-shadow: var(--shadow);
  border-width: 4px;
  position: relative;
}
.pl-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  border: var(--border);
  padding: 5px 15px;
  font-weight: 700;
}
.pl-head {
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.pl-price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
}
.pl-price span {
  font-size: 1rem;
  color: #666;
}
.pl-col ul {
  text-align: left;
  margin-bottom: 30px;
  font-weight: 500;
}
.pl-col li {
  margin-bottom: 10px;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
}

/* FAQ */
.accordion-pop details {
  border: var(--border);
  background: #fff;
  margin-bottom: 15px;
  padding: 20px;
  box-shadow: 4px 4px 0 #ddd;
  transition: 0.2s;
}
.accordion-pop details[open] {
  box-shadow: var(--shadow);
  background: var(--yellow-light);
}
.accordion-pop summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  font-size: 1.1rem;
}
.accordion-pop p {
  margin-top: 15px;
  margin-bottom: 0;
}

/* FORM */
.join-box {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  border: var(--border);
  padding: 60px;
  background: #fff;
  box-shadow: var(--shadow);
}
.jb-left {
  border-right: var(--border);
  padding-right: 40px;
}
.jb-contacts {
  margin-top: 40px;
}
.jb-contacts p {
  margin-bottom: 10px;
  font-weight: 700;
}

.jb-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row label {
  display: block;
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.form-row input {
  width: 100%;
  border: var(--border);
  padding: 15px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fff;
}
.form-row input:focus {
  background: var(--yellow-light);
  outline: none;
}
.form-check {
  font-size: 0.9rem;
}
.form-check a {
  text-decoration: underline;
  font-weight: 700;
}

/* FOOTER */
.footer {
  background: var(--text);
  color: #fff;
  padding: 80px 0 20px;
  margin-top: 80px;
}
.f-cont {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.f-brand {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--yellow);
  display: block;
  margin-bottom: 15px;
}
.f-col p {
  color: #ccc;
}
.f-col h5 {
  color: var(--red);
  margin-bottom: 20px;
  border-bottom: 2px solid #fff;
  display: inline-block;
}
.f-col a {
  display: block;
  margin-bottom: 10px;
  color: #fff;
}
.f-col a:hover {
  color: var(--yellow);
  text-decoration: underline;
}
.f-btm {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid #333;
  text-align: center;
  color: #666;
}

/* MOBILE MENU */
.mobile-cover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--blue);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 30px;
  transform: translateX(100%);
  transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-cover.active {
  transform: translateX(0);
}
#closeMob {
  align-self: flex-end;
  background: none;
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.5rem;
}
.mc-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}
.mc-links a {
  font-family: var(--font-head);
  font-size: 2rem;
  color: #fff;
  text-transform: uppercase;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}
.mc-foot {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

/* COOKIE */
.cookie-mondrian {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #fff;
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 20px;
  display: none;
  align-items: center;
  gap: 20px;
  z-index: 5000;
}
.cb-text {
  font-weight: 700;
}
#acceptCookie {
  background: var(--text);
  color: #fff;
  padding: 10px 20px;
  font-weight: 700;
  font-family: var(--font-head);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .desktop {
    display: none;
  }
  .burger-pop {
    display: flex;
  }

  h1 {
    font-size: 3rem;
  }
  .m-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .cell {
    border-right: none;
    border-bottom: var(--border);
  }
  .color-cell-blue,
  .color-cell-red {
    height: 50px;
  }

  .split-layout,
  .blocks-wrapper,
  .price-layout,
  .join-box,
  .f-cont {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .jb-left {
    border-right: none;
    border-bottom: var(--border);
    padding-right: 0;
    padding-bottom: 40px;
  }
  .pl-col.highlight {
    transform: scale(1);
  }
}

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