/* --- GLOBAL VARIABLES --- */
:root {
  --bg-color: #0d0d0f;
  --card-bg: #16161a;
  --text-main: #e0e0e0;
  --text-muted: #8a8a95;
  --accent: #00f0ff; /* Electric Cyan */
  --accent-hover: #00b8c4;
  --border-color: #2a2a30;

  --font-main: "Inter", sans-serif;
  --font-tech: "JetBrains Mono", monospace;

  --gap: 1.5rem;
  --container-width: 1280px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

/* --- UTILS --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(13, 13, 15, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.header__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__logo-text {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.05em;
  color: #fff;
}

.header__logo-dot {
  color: var(--accent);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__menu {
  display: flex;
  gap: 2rem;
}

.header__link {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
}

.header__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.header__link:hover {
  color: #fff;
}

.header__link:hover::after {
  width: 100%;
}

.header__cta {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-tech);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  background: transparent;
}

.header__cta:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.header__burger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* --- MOBILE MENU --- */
@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-color);
    flex-direction: column;
    justify-content: center;
    transition: right 0.4s ease;
    border-top: 1px solid var(--border-color);
  }

  .header__nav.is-active {
    right: 0;
  }

  .header__menu {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .header__burger {
    display: block;
  }
}

/* --- FOOTER (Bento Grid) --- */
.footer {
  background-color: var(--bg-color);
  padding: 60px 20px;
  border-top: 1px solid var(--border-color);
  margin-top: auto; /* Push to bottom if content is short */
}

.footer__grid {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 1px; /* Gap for borders */
  background-color: var(
    --border-color
  ); /* Creates borders between grid items */
  border: 1px solid var(--border-color);
}

.footer__col {
  background-color: var(--bg-color); /* Inner bg */
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.footer__title {
  font-family: var(--font-tech);
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.5rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  display: inline-block;
}

.footer__logo-text {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.footer__tagline {
  color: var(--accent);
  font-family: var(--font-tech);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  text-transform: uppercase;
}

.footer__desc {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 250px;
}

.footer__copyright {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-tech);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer__link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition:
    color 0.3s ease,
    transform 0.2s ease;
}

.footer__link:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.footer__contacts-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__icon {
  color: var(--accent);
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__col {
    padding: 30px 20px;
  }
}

/* --- HERO SECTION --- */
.hero {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 60px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto 150px;
  gap: 1.5rem;
  width: 100%;
  /* Схема Bento Grid */
  grid-template-areas:
    "main visual"
    "main info"
    "main sec";
}

/* Common Box Style */
.hero__box {
  background-color: rgba(22, 22, 26, 0.5);
  border: 1px solid var(--border-color);
  padding: 40px;
  position: relative;
  overflow: hidden;
  /* Tech corners logic usually handled by pseudo-elements, 
       but simplified here with borders */
}

/* Box Specifics */
.hero__box--main {
  grid-area: main;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__box--visual {
  grid-area: visual;
  padding: 0;
  min-height: 400px;
  background-color: #000;
  position: relative;
  border: 1px solid var(--accent); /* Accent border for visual */
}

.hero__box--info {
  grid-area: info;
  grid-row: 2;
  grid-column: 2;
}

.hero__box--sec {
  grid-area: sec;
  grid-row: 3; /* If we had 3 rows, or share space */
  /* Adjusting grid for just 2 bottom boxes on right */
  grid-row: 2;
  grid-column: 2;
  display: none; /* Hidden for now in this layout logic to keep it simple, or re-enable below */
}

/* Let's adjust grid for 2 bottom boxes side-by-side on right? 
   Actually, let's stack them or make visual take full height then split bottom.
   Better layout for Bento: 
   Left: Main (Full Height)
   Right Top: Visual
   Right Bottom: Info
*/

.hero__container {
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 1fr 0.3fr;
  grid-template-areas:
    "main visual"
    "main info";
  height: auto;
}

.hero__box--sec {
  display: none; /* Simplify to 3 blocks for cleaner look */
}

/* Typography & Content */
.hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2rem;
  font-family: var(--font-tech);
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: blink 2s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.hero__title {
  font-size: 4.5rem;
  line-height: 0.9;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero__title-accent {
  color: transparent;
  -webkit-text-stroke: 1px var(--text-main);
  font-family: var(--font-tech);
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 3rem;
}

/* CTA Button */
.hero__actions {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--accent);
  color: #000;
  padding: 1rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  font-family: var(--font-tech);
  transition: all 0.3s ease;
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
}

.hero__btn:hover {
  background-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.hero__stat {
  display: flex;
  flex-direction: column;
}

.hero__stat-num {
  font-family: var(--font-tech);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.hero__stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Info Box */
.hero__box--info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 4px solid var(--accent);
}

.hero__icon {
  color: var(--accent);
  margin-bottom: 10px;
  width: 32px;
  height: 32px;
}

.hero__subtitle {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.hero__subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Canvas & Decor */
#heroCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__overlay-text {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  font-family: var(--font-tech);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Deco Corners */
.hero__deco-corner-tl {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.hero__deco-corner-br {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__title {
    font-size: 3.5rem;
  }

  .hero__container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "visual"
      "info";
    grid-template-rows: auto 300px auto;
  }
}

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

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

/* --- SECTIONS COMMON --- */
.section-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0;
}

.section-title__dot {
  color: var(--accent);
}

.section-desc {
  font-family: var(--font-tech);
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* --- BENTO GRID SYSTEM --- */
.methodology {
  padding: 80px 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

/* Card Styles */
.bento-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Modifiers for Grid Span */
.bento-card--large {
  grid-column: span 1;
  grid-row: span 2;
  background: linear-gradient(180deg, var(--card-bg) 0%, #1a1a20 100%);
}

.bento-card--wide {
  grid-column: span 2;
}

.bento-card--accent {
  border-top: 2px solid var(--accent);
}

/* Card Content */
.bento-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.bento-card__num {
  font-family: var(--font-tech);
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

.bento-card:hover .bento-card__num {
  color: var(--accent);
  opacity: 0.5;
}

.bento-card__icon {
  color: var(--text-main);
  width: 24px;
  height: 24px;
}

.bento-card__title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.bento-card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.text-accent {
  color: var(--accent);
}

/* Tech Decorations inside cards */
.hud-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin-top: auto;
  padding-top: 2rem;
  opacity: 0.3;
}

/* Wide card layout */
.bento-card__content-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  height: 100%;
}

.bento-card__info {
  flex: 1;
}

.bento-card__graphic {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 60px;
  opacity: 0.5;
}

.graphic-bar {
  width: 10px;
  background-color: var(--accent);
  transition: height 0.3s ease;
}

.bento-card:hover .graphic-bar {
  opacity: 1;
  box-shadow: 0 0 10px var(--accent);
}

/* Responsive */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-card--large {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card--wide {
    grid-column: span 1;
  }

  .bento-card__content-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- TECHNOLOGY SECTION --- */
.technology {
  padding: 100px 0;
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
}

.technology__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Left Col */
.technology__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--accent);
  font-family: var(--font-tech);
  font-size: 0.8rem;
  margin-bottom: 2rem;
  border-radius: 4px;
}

.technology__badge-icon {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}

.technology__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 450px;
}

.technology__highlight {
  color: #fff;
  font-family: var(--font-tech);
  background-color: #1a1a20;
  padding: 2px 6px;
}

.technology__specs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-family: var(--font-tech);
  font-size: 0.9rem;
  color: #fff;
}

.technology__specs li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.technology__specs i {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* Right Col: Terminal Interface */
.technology__interface {
  position: relative;
}

.technology__interface::before {
  /* Декоративная рамка сзади */
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--border-color);
  z-index: 0;
}

.tech-terminal {
  background-color: #000;
  border: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
  font-family: var(--font-tech);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.tech-terminal__header {
  background-color: #1a1a20;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
}

.tech-terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #333;
}

.tech-terminal__dot:nth-child(1) {
  background-color: #ff5f56;
}
.tech-terminal__dot:nth-child(2) {
  background-color: #ffbd2e;
}
.tech-terminal__dot:nth-child(3) {
  background-color: #27c93f;
}

.tech-terminal__title {
  margin-left: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tech-terminal__body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Terminal Items */
.tech-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tech-item__head {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #e0e0e0;
}

.tech-item__status {
  font-size: 0.8rem;
  font-weight: 700;
}

.status--active {
  color: #27c93f;
}
.status--process {
  color: #ffbd2e;
}
.status--standby {
  color: var(--text-muted);
}

.tech-item__bar-bg {
  width: 100%;
  height: 4px;
  background-color: #333;
  position: relative;
}

.tech-item__bar-fill {
  height: 100%;
  background-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.tech-code {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .technology__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .technology__interface::before {
    display: none;
  }
}

/* --- REVIEWS / RESULTS --- */
.reviews {
  padding: 80px 0;
  position: relative;
}

.reviews__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-tech);
  font-size: 0.8rem;
  color: #ffd700; /* Goldish for award */
  border: 1px solid #ffd700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

/* Review Card Tech Style */
.review-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 25px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.review-card::before {
  /* Top accent line */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.5;
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
}

.review-card__avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%; /* Circle avatar */
  object-fit: cover;
  border: 1px solid var(--text-muted);
}

.review-card__meta {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.review-card__name {
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
}

.review-card__id {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.review-card__verify {
  color: var(--accent);
  width: 20px;
  height: 20px;
}

.review-card__body {
  flex: 1;
  margin-bottom: 2rem;
}

.review-card__text {
  font-size: 0.95rem;
  color: #e0e0e0;
  font-style: italic;
  line-height: 1.6;
}

.review-card__footer {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.review-card__stat {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: var(--font-tech);
  font-size: 0.85rem;
}

.stat-label {
  color: var(--text-muted);
  text-transform: uppercase;
}

.text-green {
  color: #27c93f;
  font-weight: 700;
}

.review-card__progress {
  width: 100%;
  height: 4px;
  background-color: #333;
  border-radius: 2px;
}

.progress-bar {
  height: 100%;
  background-color: #27c93f;
  border-radius: 2px;
}

/* Stats Strip at bottom */
.reviews__stats-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  border-top: 1px solid var(--border-color);
  padding-top: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-item__num {
  display: block;
  font-family: var(--font-tech);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.stat-item__text {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  font-size: 1.5rem;
  color: var(--border-color);
}

/* Responsive */
@media (max-width: 900px) {
  .reviews__grid {
    grid-template-columns: 1fr;
  }

  .reviews__stats-strip {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat-divider {
    display: none;
  }
}

/* --- FAQ SECTION --- */
.faq {
  padding: 80px 0;
  background-color: var(--bg-color);
}

.faq__container {
  max-width: 800px; /* Узкий контейнер для читаемости */
}

.faq__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-color);
}

.faq__item {
  border-bottom: 1px solid var(--border-color);
}

.faq__question {
  width: 100%;
  background: none;
  border: none;
  padding: 25px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
}

.faq__question:hover .faq__q-text {
  color: var(--accent);
}

.faq__q-num {
  font-family: var(--font-tech);
  color: var(--accent);
  opacity: 0.5;
  font-size: 0.9rem;
  margin-right: 20px;
  min-width: 50px;
}

.faq__q-text {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  transition: color 0.3s ease;
}

.faq__icon {
  color: var(--text-muted);
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

/* Active State Styles */
.faq__item.is-open .faq__icon {
  transform: rotate(45deg); /* Превращаем плюс в крестик */
  color: #fff;
}

.faq__item.is-open .faq__q-text {
  color: var(--accent);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.faq__answer-inner {
  padding: 0 0 30px 70px; /* Отступ слева под номер */
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 600px) {
  .faq__answer-inner {
    padding: 0 0 20px 0;
  }

  .faq__q-num {
    display: none; /* Скрываем номера на мобильном */
  }
}

/* --- CONTACT SECTION --- */
.contact {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-color) 0%, #08080a 100%);
  position: relative;
}

.contact__container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: flex-start;
}

/* Content Left */
.contact__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact__steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact__step {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1rem;
  color: #fff;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--accent);
  font-family: var(--font-tech);
  font-weight: 700;
}

/* Form Wrapper Right */
.contact__form-wrapper {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 2px; /* For double border effect inner */
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.form {
  background-color: #0d0d0f;
  padding: 40px;
  display: flex; /* Default display */
  flex-direction: column;
  gap: 20px;
}

.form__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.form__title {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.form__indicators {
  display: flex;
  gap: 5px;
}

.indicator {
  width: 6px;
  height: 6px;
  background-color: #333;
  border-radius: 50%;
}

.indicator.active {
  background-color: var(--accent);
  box-shadow: 0 0 5px var(--accent);
}

/* Inputs */
.form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form__label {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 500;
}

.form__input-wrapper {
  position: relative;
}

.form__input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 12px 15px 12px 40px; /* Space for icon */
  color: #fff;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form__input:focus {
  outline: none;
  border-color: var(--accent);
  background-color: rgba(0, 240, 255, 0.05);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.form__icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.form__input:focus + .form__icon {
  color: var(--accent);
}

/* Error States */
.form__error {
  font-size: 0.75rem;
  color: #ff5f56;
  display: none; /* Hidden by default */
  margin-top: -5px;
}

.form__input.is-invalid {
  border-color: #ff5f56;
}

.form__input.is-invalid + .form__icon {
  color: #ff5f56;
}

/* Custom Checkboxes */
.custom-checkbox-container {
  display: flex;
  align-items: center; /* Center vertically */
  gap: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  user-select: none;
}

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

/* Standard Checkbox Style */
.checkmark {
  height: 18px;
  width: 18px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0; /* Prevent shrinking */
  transition: all 0.2s ease;
}

/* Captcha "Not a robot" Style */
.box-style {
  background-color: #f9f9f9; /* Light bg like real captcha */
  border: 1px solid #d3d3d3;
  padding: 15px;
  border-radius: 4px;
  width: 100%;
  max-width: 200px;
  color: #555;
  margin-bottom: 5px;
}

.box-style .checkmark-box {
  height: 24px;
  width: 24px;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  background-color: #fff;
  margin-right: 10px;
  display: inline-block;
  position: relative;
}

.box-style .checkbox-text {
  font-family: sans-serif;
  font-weight: 500;
}

/* Check logic */
.custom-checkbox-container input:checked ~ .checkmark {
  background-color: var(--accent);
  border-color: var(--accent);
}

.custom-checkbox-container input:checked ~ .checkmark::after {
  content: "";
  width: 5px;
  height: 10px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.custom-checkbox-container input:checked ~ .checkmark-box {
  border-color: #27c93f;
}

.custom-checkbox-container input:checked ~ .checkmark-box::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 7px;
  width: 6px;
  height: 12px;
  border: solid #27c93f;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.custom-checkbox-container a {
  color: var(--accent);
  text-decoration: underline;
}

/* Submit Button */
.form__submit {
  margin-top: 10px;
  width: 100%;
  padding: 14px;
  background-color: var(--accent);
  border: none;
  color: #000;
  font-family: var(--font-tech);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.form__submit:hover {
  background-color: #fff;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

/* Success Message */
.contact__success {
  display: none; /* Hidden */
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px;
  animation: fadeIn 0.5s ease;
}

.success-icon {
  width: 60px;
  height: 60px;
  color: #27c93f;
  margin-bottom: 20px;
}

.success-icon svg {
  width: 100%;
  height: 100%;
}

.success-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #fff;
}

.success-text {
  color: var(--text-muted);
  margin-bottom: 30px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 900px) {
  .contact__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: -100px; /* Сховано за межами екрану */
  left: 0;
  width: 100%;
  background-color: rgba(13, 13, 15, 0.95);
  border-top: 1px solid var(--accent);
  backdrop-filter: blur(10px);
  z-index: 9999;
  padding: 20px;
  transition: bottom 0.5s ease;
}

.cookie-popup.is-visible {
  bottom: 0;
}

.cookie-popup__content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-popup__text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.cookie-popup__btn {
  padding: 10px 25px;
  background-color: var(--accent);
  color: #000;
  border: none;
  font-family: var(--font-tech);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.cookie-popup__btn:hover {
  background-color: #fff;
  box-shadow: 0 0 15px var(--accent);
}

@media (max-width: 600px) {
  .cookie-popup__content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-popup__btn {
    width: 100%;
  }
}

/* --- LEGAL PAGES STYLES --- */
.pages {
  padding: 120px 0 80px; /* Відступ зверху під фіксований хедер */
  min-height: 80vh;
}

.pages .container {
  max-width: 800px;
  background-color: var(--card-bg);
  padding: 40px;
  border: 1px solid var(--border-color);
}

.pages h1 {
  font-family: var(--font-tech);
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--accent);
  text-transform: uppercase;
}

.pages h2 {
  font-family: var(--font-tech);
  font-size: 1.5rem;
  color: #fff;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.pages p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.pages ul {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
}

.pages li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.pages li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-tech);
}

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

.pages strong {
  color: #fff;
}

/* --- MOBILE FIXES --- */
@media (max-width: 768px) {
  /* Робимо секцію гнучкою по висоті, щоб нічого не обрізалось */
  .hero {
    min-height: auto;
    height: auto;
    padding-top: 100px; /* Відступ від хедера */
    padding-bottom: 60px;
    align-items: flex-start; /* Вирівнювання по верху, а не по центру */
  }

  .hero__container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  /* Зменшуємо гігантський заголовок */
  .hero__title {
    font-size: clamp(2.2rem, 8vw, 3rem); /* Адаптивний розмір */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    word-wrap: break-word; /* Щоб довгі слова переносились */
  }

  /* Коригуємо розмір тексту опису */
  .hero__desc {
    font-size: 1rem;
    max-width: 100%;
    margin-bottom: 2rem;
  }

  /* Кнопка та рейтинг в стовпчик або компактно */
  .hero__actions {
    flex-direction: column;
    align-items: stretch; /* Розтягнути на всю ширину */
    gap: 1.5rem;
    width: 100%;
  }

  .hero__btn {
    justify-content: center;
    width: 100%; /* Кнопка на всю ширину екрану на мобілці */
    padding: 1rem;
  }

  .hero__stat {
    flex-direction: row;
    align-items: center;
    gap: 15px;
    justify-content: center; /* Центруємо рейтинг */
  }

  .hero__stat-num {
    font-size: 1.8rem; /* Трохи більше акцент на цифрі */
  }

  /* Приховуємо декоративні кутики, якщо вони заважають, або зменшуємо їх */
  .hero__deco-corner-tl,
  .hero__deco-corner-br {
    width: 10px;
    height: 10px;
  }

  /* Канвас з анімацією робимо меншим або приховуємо на дуже малих екранах, 
       якщо він заважає скролу, але краще залишити як фон */
  .hero__box--visual {
    min-height: 250px; /* Фіксована висота для блоку з анімацією */
    order: -1; /* Можна перенести візуал НАД текстом, якщо хочеш (опціонально) */
  }
}
