/* --- NEUBRUTALISM THEME --- */
:root {
  --c-black: #1a1a1a;
  --c-white: #ffffff;
  --c-accent: #b8f629; /* Acid Green */
  --c-accent-hover: #a3d922;
  --c-secondary: #9b51e0; /* Electric Purple */
  --c-bg: #f4f4f0;

  --border: 3px solid var(--c-black);
  --shadow-hard: 5px 5px 0px 0px var(--c-black);
  --shadow-hover: 2px 2px 0px 0px var(--c-black);

  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  --container: 1320px;
  --header-height: 80px;
}

/* --- RESET & BASE --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
}

/* --- UI ELEMENTS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  border: var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn--primary {
  background-color: var(--c-accent);
  color: var(--c-black);
  box-shadow: var(--shadow-hard);
}

.btn--primary:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-hover);
  background-color: var(--c-accent-hover);
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--c-white);
  border-bottom: var(--border);
  z-index: 1000;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 40px;
  max-width: 1920px;
  margin: 0 auto;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__logo-icon {
  width: 40px;
  height: 40px;
  background: var(--c-black);
  color: var(--c-white);
  font-family: var(--font-head);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--c-black);
}

.header__logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -1px;
}

/* Desktop Nav */
@media (min-width: 1024px) {
  .header__menu {
    display: flex;
    gap: 2px; /* For borders */
    background: var(--c-black);
    padding: 0 2px; /* Border trick */
    border: 2px solid var(--c-black);
  }

  .header__link {
    display: block;
    background: var(--c-white);
    padding: 10px 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background 0.3s;
  }

  .header__link:hover {
    background: var(--c-accent);
  }

  .header__mobile-footer,
  .header__burger {
    display: none;
  }
}

/* Mobile Nav */
@media (max-width: 1023px) {
  .header__inner {
    padding: 0 20px;
  }

  .header__cta {
    display: none;
  } /* Hide CTA button on mobile header, keep in menu */

  .header__burger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .burger-line {
    width: 30px;
    height: 3px;
    background: var(--c-black);
    transition: 0.3s;
  }

  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--c-white);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    border-top: var(--border);
    display: flex;
    flex-direction: column;
  }

  .header__nav.is-open {
    transform: translateX(0);
  }

  .header__menu {
    display: flex;
    flex-direction: column;
    list-style: none;
  }

  .header__link {
    display: block;
    padding: 20px;
    font-size: 1.5rem;
    font-family: var(--font-head);
    font-weight: 700;
    border-bottom: 1px solid #ddd;
  }

  .header__mobile-footer {
    margin-top: auto;
    padding: 20px;
    background: var(--c-bg);
    border-top: var(--border);
  }
}

/* --- FOOTER --- */
.footer {
  border-top: var(--border);
  background: var(--c-white);
  margin-top: 0; /* No margin in brutalism usually, connects directly */
}

/* Marquee Line */
.footer__marquee {
  background: var(--c-black);
  color: var(--c-accent);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: var(--border);
}

.marquee-content {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Grid Layout */
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
}

.footer__cell {
  padding: 40px;
  border-right: var(--border);
}

.footer__cell:last-child {
  border-right: none;
}

.footer__cell--dark {
  background: var(--c-black);
  color: var(--c-white);
}

.footer__big-logo {
  font-size: 4rem;
  line-height: 0.9;
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.footer__label {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.footer__links,
.footer__contacts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: 0.2s;
}

.footer__links a:hover {
  border-bottom-color: var(--c-accent);
  padding-left: 5px;
}

.footer__contacts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.95rem;
}

.footer__contacts span {
  color: #888;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.footer__bottom {
  padding: 15px;
  text-align: center;
  background: var(--c-black);
  color: var(--c-white);
  font-size: 0.8rem;
  font-family: var(--font-body);
  border-top: 1px solid #333;
}

/* Footer Responsive */
@media (max-width: 992px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__cell:nth-child(2) {
    border-right: none;
  }
  .footer__cell:nth-child(3) {
    border-top: var(--border);
    border-right: var(--border);
  }
  .footer__cell:nth-child(4) {
    border-top: var(--border);
  }
}

@media (max-width: 600px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__cell {
    border-right: none;
    border-bottom: var(--border);
  }
  .footer__cell:last-child {
    border-bottom: none;
  }
  .footer__big-logo {
    font-size: 3rem;
  }
}

/* --- HERO SECTION --- */
.hero {
  padding: 80px 0;
  background-color: var(--c-bg);
  border-bottom: var(--border);
  position: relative;
  overflow: hidden;
}

.hero__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

/* Badges */
.hero__badges {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.badge {
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 2px solid var(--c-black);
  letter-spacing: 0.5px;
}

.badge--dark {
  background: var(--c-black);
  color: var(--c-white);
}

.badge--accent {
  background: var(--c-accent);
  color: var(--c-black);
  box-shadow: 4px 4px 0 var(--c-black); /* Hard shadow */
}

/* Typography */
.hero__title {
  font-size: 4.5rem; /* Giant font */
  line-height: 1;
  margin-bottom: 30px;
  color: var(--c-black);
}

.text-outline {
  /* Ефект контурного тексту (Stroke) */
  color: transparent;
  -webkit-text-stroke: 2px var(--c-black);
  position: relative;
  z-index: 1;
}

.text-outline::after {
  /* Декоративна тінь для тексту */
  content: "НОВОГО ПОКОЛЕНИЯ";
  position: absolute;
  left: 4px;
  top: 4px;
  color: var(--c-accent);
  -webkit-text-stroke: 0;
  z-index: -1;
  opacity: 0.8;
}

.hero__desc {
  font-size: 1.15rem;
  max-width: 500px;
  margin-bottom: 40px;
  font-weight: 500;
  border-left: 4px solid var(--c-accent);
  padding-left: 20px;
}

/* Actions */
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.hero__btn {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.hero__note {
  font-size: 0.8rem;
  color: #666;
  font-family: var(--font-head);
  font-weight: 600;
}

/* Visual Side (Brutalist Image) */
.hero__visual {
  position: relative;
  padding: 20px;
}

.hero__img-wrapper {
  position: relative;
  border: var(--border);
  background: var(--c-white);
  padding: 10px;
  box-shadow: var(--shadow-hard);
  transition: transform 0.3s;
}

.hero__img-wrapper:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--c-black);
}

.hero__img {
  width: 100%;
  height: auto;
  filter: grayscale(100%); /* Ч/Б фото для стилю */
  border: 2px solid var(--c-black);
}

/* Floating Elements */
.hero__float-box {
  position: absolute;
  background: var(--c-white);
  border: 2px solid var(--c-black);
  padding: 10px 20px;
  font-weight: 700;
  font-family: var(--font-head);
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--c-black);
  z-index: 2;
}

.hero__float-box--top {
  top: -20px;
  right: -20px;
  background: var(--c-accent);
  transform: rotate(3deg);
}

.hero__float-box--bottom {
  bottom: -15px;
  left: -30px;
  background: var(--c-secondary);
  color: var(--c-white);
  transform: rotate(-2deg);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__visual {
    order: -1; /* Картинка зверху на мобайлі */
    margin-bottom: 20px;
    max-width: 500px;
  }
}

@media (max-width: 500px) {
  .hero__title {
    font-size: 2.2rem;
  }

  .hero__float-box {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
}

/* --- GENERAL SECTION STYLES --- */
.section {
  padding: 100px 0;
  border-bottom: var(--border);
}

.section-title {
  font-size: 3.5rem;
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 60px;
  color: #555;
  font-family: var(--font-head);
}

.highlight {
  background-color: var(--c-accent);
  padding: 0 10px;
}

.mt-auto {
  margin-top: auto;
}

/* --- SECTION: STRATEGY --- */
.steps-grid {
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.step-card {
  flex: 1;
  border: var(--border);
  background: var(--c-white);
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-hard);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 0 var(--c-black);
}

.step-card--accent {
  background: var(--c-secondary);
  color: var(--c-white);
}

.step-card--accent .step-card__badge {
  background: var(--c-white);
  color: var(--c-black);
}

.step-card__num {
  font-size: 4rem;
  font-weight: 700;
  font-family: var(--font-head);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 20px;
}

.step-card__content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.step-card__badge {
  margin-top: auto;
  display: inline-block;
  padding: 5px 10px;
  border: 2px solid currentColor;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-arrow {
  width: 40px;
  height: 40px;
}

/* --- SECTION: BENEFITS (Bento Grid) --- */
.section--benefits {
  background-color: var(--c-white);
}

.benefits-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 20px;
}

.benefit-box {
  border: var(--border);
  padding: 30px;
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  transition: 0.3s;
}

.benefit-box:hover {
  background: var(--c-accent);
}

.benefit-box--title {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  background: var(--c-white);
  justify-content: flex-start;
}

.benefit-box--large {
  grid-column: 2 / 4;
  grid-row: 1 / 2;
  background: var(--c-white);
}

.benefit-box--dark {
  background: var(--c-black);
  color: var(--c-white);
}

.benefit-box--dark:hover {
  background: #333; /* Dark hover */
}

.benefit-icon {
  width: 50px;
  height: 50px;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 50%;
}

.benefit-box h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* --- SECTION: CASES (Window Style) --- */
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
}

.link-arrow {
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 3px solid var(--c-accent);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.window-card {
  border: var(--border);
  background: var(--c-white);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-hard);
  transition: transform 0.3s;
}

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

.window-card__bar {
  border-bottom: var(--border);
  padding: 8px 15px;
  background: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 12px;
  height: 12px;
  border: 2px solid var(--c-black);
  border-radius: 50%;
  background: var(--c-white);
}

.window-title {
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
}

.window-card__body {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.meta-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-secondary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.window-card__body h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  line-height: 1.2;
}

.window-card--highlight {
  background: var(--c-accent);
}
.window-card--highlight .window-card__bar {
  background: #a3d922;
}

.read-more {
  margin-top: auto;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  padding-top: 20px;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 992px) {
  .steps-grid {
    flex-direction: column;
  }
  .step-connector {
    transform: rotate(90deg);
    margin: 10px 0;
    display: none; /* Hide arrows on mobile for cleaner look */
  }

  .benefits-layout {
    display: flex;
    flex-direction: column;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2.5rem;
  }
}

/* --- CONTACT SECTION --- */
.section--contact {
  background-color: var(--c-bg);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-desc {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #444;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-head);
}

.contact-list li i {
  color: var(--c-accent-hover); /* Darker green */
}

/* --- FORM BOX --- */
.form-box {
  background: var(--c-white);
  border: var(--border);
  box-shadow: var(--shadow-hard);
  position: relative;
  overflow: hidden;
}

.form-header {
  background: var(--c-black);
  color: var(--c-white);
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: var(--border);
}

.form-title {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 1px;
}

.form-dots {
  display: flex;
  gap: 5px;
}

.form-dots span {
  width: 10px;
  height: 10px;
  background: var(--c-accent);
  border-radius: 50%;
}

.brutal-form {
  padding: 30px;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 15px;
  border: 3px solid var(--c-black);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--c-bg);
  outline: none;
  transition: 0.2s;
  font-weight: 600;
}

.form-input:focus {
  background: var(--c-accent);
  box-shadow: 4px 4px 0 var(--c-black);
  transform: translate(-2px, -2px);
}

.form-input.error {
  border-color: #ff4757;
  background: #ffe0e3;
}

.error-msg {
  color: #ff4757;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 5px;
  display: none;
}

.form-input.error + .error-msg {
  display: block;
}

/* --- CUSTOM CHECKBOXES --- */
.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 1rem;
  user-select: none;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  height: 24px;
  width: 24px;
  background-color: var(--c-white);
  border: 3px solid var(--c-black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  flex-shrink: 0;
}

.custom-checkbox:hover input ~ .checkmark {
  background-color: #eee;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--c-accent);
}

.checkmark:after {
  content: "";
  display: none;
  width: 6px;
  height: 12px;
  border: solid var(--c-black);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-text a {
  text-decoration: underline;
  font-weight: 700;
}

.small-checkbox .checkmark {
  height: 20px;
  width: 20px;
}

.small-checkbox .checkbox-text {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.3;
}

.btn--block {
  width: 100%;
  justify-content: center;
  padding: 18px;
  font-size: 1.2rem;
  margin-top: 10px;
}

/* --- SUCCESS MESSAGE --- */
.success-message {
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--c-accent);
  border: 3px solid var(--c-black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--c-black);
}

.success-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 3px;
}

.success-message h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  .contact-info {
    margin-bottom: 30px;
  }
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: -100%; /* Hidden by default */
  left: 20px;
  max-width: 500px;
  width: calc(100% - 40px);
  background: var(--c-black);
  color: var(--c-white);
  border: 3px solid var(--c-white);
  padding: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 10px 10px 0 var(--c-accent); /* Green hard shadow */
  transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-popup.show {
  bottom: 20px;
}

.cookie-text {
  font-size: 0.9rem;
  font-weight: 500;
}

.cookie-text a {
  color: var(--c-accent);
  text-decoration: underline;
}

.cookie-btn {
  padding: 8px 16px;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* --- POLICY PAGES STYLING (privacy.html etc) --- */
/* Ці стилі працюватимуть на окремих сторінках */
.pages {
  padding: 120px 0 80px;
  background-color: var(--c-bg);
  min-height: 80vh;
}

.pages .container {
  background: var(--c-white);
  border: var(--border);
  padding: 60px;
  box-shadow: var(--shadow-hard);
}

.pages h1 {
  font-size: 3rem;
  margin-bottom: 40px;
  border-bottom: 3px solid var(--c-black);
  padding-bottom: 20px;
  color: var(--c-black);
}

.pages h2 {
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--c-secondary);
}

.pages p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #333;
}

.pages ul {
  list-style: none;
  margin-bottom: 20px;
  padding-left: 20px;
}

.pages li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

/* Custom list bullet */
.pages li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--c-accent);
  border: 2px solid var(--c-black);
}

.pages a {
  color: var(--c-secondary);
  font-weight: 700;
  border-bottom: 2px solid currentColor;
}

.pages a:hover {
  background: var(--c-accent);
  color: var(--c-black);
}

/* Mobile fix for pages */
@media (max-width: 768px) {
  .pages .container {
    padding: 30px;
  }
  .pages h1 {
    font-size: 2rem;
  }
  .cookie-popup {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}
