

/* HERO */

.hero {
  position: relative;
  padding: 7rem 1.5rem 7rem;
  text-align: center;
  overflow: hidden;
  background: #f8fafc;
}

/* Градієнтні світлові форми */
.hero-about {
  background:
    radial-gradient(1200px 600px at 50% -20%, rgba(99,102,241,0.45), transparent 65%),
    radial-gradient(900px 520px at 10% 30%, rgba(139,92,246,0.35), transparent 60%),
    radial-gradient(900px 520px at 90% 40%, rgba(147,51,234,0.30), transparent 60%),
    linear-gradient(180deg, #e0e7ff 0%, #f1f5ff 100%);
}

/* верхній blob */
.hero-about::before {
  content: "";
  position: absolute;
  width: 42rem;
  height: 42rem;
  top: -14rem;
  right: -14rem;
  z-index: 0;
  background: radial-gradient(circle, rgba(124,58,237,0.22), transparent 65%);
  filter: blur(2px);
}

/* нижній blob */
.hero-about::after {
  content: "";
  position: absolute;
  width: 44rem;
  height: 44rem;
  bottom: -18rem;
  left: -18rem;
  z-index: 0;
  background: radial-gradient(circle, rgba(79,70,229,0.18), transparent 65%);
  filter: blur(2px);
}

/* легкий grain */
.hero-grain {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.12;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(17,24,39,0.12) 1px, transparent 0);
  background-size: 14px 14px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 53rem;
  margin: 0 auto;
}

/* H1 */
.hero-about h1 {
  font-size: 3.8rem;
  font-weight: 900;
  margin: 1.5rem 0 1.25rem;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #0f172a;
}

/* Градієнтний акцент */
.hero-about .accent {
  background: linear-gradient(90deg, #4f46e5 0%, #8b5cf6 45%, #9333ea 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* TEXT */
.hero-about p {
  max-width: 46rem;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #64748b;
  margin: 0 auto;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .hero {
    padding: 6rem 1.5rem;
  }

  .hero-about h1 {
    font-size: 2.6rem;
  }

  .hero-about p {
    font-size: 1.1rem;
  }
}

/* ================= GRID ================= */

/* ================= CONTACT SECTION (FULL) ================= */

.contact-section {
  padding: 7.5rem 1.25rem; /* 120px 20px */
}

.contact-grid {
  max-width: 75rem; /* 1200px */
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem; /* 80px */
  align-items: start;
}

/* ================= INFO ================= */

.contact-info h2 {
  font-size: 1.75rem; /* 28px */
  margin-bottom: 2.5rem; /* 40px */
}

.info-item {
  display: flex;
  gap: 1rem; /* 16px */
  margin-bottom: 1.75rem; /* 28px */
}

.info-item span {
  font-weight: 600;
  color: #0f172a;
}

.info-item a,
.info-item p {
  color: #555;
  text-decoration: none;
  margin: 0.25rem 0 0;
}

/* IMPORTANT: icon styles scoped to contact info so form won't break */
.contact-info .icon {
  width: 3rem; /* 48px */
  height: 3rem; /* 48px */
  background: #f3f4f6;
  border-radius: 0.75rem; /* 12px */
  display: flex;
  align-items: center;
  justify-content: center;

  color: #4f46e5;
  border: 0.0625rem solid rgba(79,70,229,0.12);

  flex-shrink: 0;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.contact-info .icon svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.contact-info .info-item:hover .icon {
  background: #ede9fe;
  box-shadow: 0 0.75rem 1.75rem rgba(124,58,237,0.16);
}

/* ================= CHAT ================= */

.chat-box {
  margin-top: 2.5rem; /* 40px */
  background: #f9fafb;
  padding: 1.75rem; /* 28px */
  border-radius: 1.25rem; /* 20px */
  border: 0.0625rem solid rgba(15,23,42,0.06);
}

.chat-box h3 {
  margin-bottom: 0.75rem; /* 12px */
  color: #0f172a;
}

.chat-box p {
  font-size: 0.875rem; /* 14px */
  color: #666;
  margin-bottom: 1.25rem; /* 20px */
  line-height: 1.6;
}

.chat-box button {
  width: 100%;
  padding: 0.875rem; /* 14px */
  border-radius: 0.875rem; /* 14px */
  background: #111;
  color: #fff;
  border: none;
  cursor: pointer;

  transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.25s ease;
}

.chat-box button:hover {
  transform: translateY(-0.25rem);
  background: #0b0b0b;
  box-shadow: 0 1.25rem 2.5rem rgba(0,0,0,0.18);
}

.chat-box button:active {
  transform: translateY(-0.0625rem);
  box-shadow: 0 0.75rem 1.5rem rgba(0,0,0,0.14);
}

.chat-box button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 0.25rem rgba(79,70,229,0.18),
    0 1.25rem 2.5rem rgba(0,0,0,0.16);
}

/* ================= FORM ================= */

.contact-form {
  background: #fff;
  border: 0.0625rem solid #e5e7eb; /* 1px */
  border-radius: 1.5rem; /* 24px */
  padding: 3rem; /* 48px */
}

.contact-form h2 {
  font-size: 1.75rem; /* 28px */
  margin-bottom: 2rem; /* 32px */
  color: #0f172a;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem; /* 24px */
}

.field {
  margin-bottom: 1.75rem; /* 28px */
}

.field label {
  display: block;
  margin-bottom: 0.5rem; /* 8px */
  font-size: 0.875rem; /* 14px */
  color: #334155;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.875rem 1rem; /* 14px 16px */
  border-radius: 0.875rem; /* 14px */
  border: 0.0625rem solid #d1d5db; /* 1px */
  font-size: 0.9375rem; /* 15px */
  outline: none;
  background: #fff;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #111;
  box-shadow: 0 0 0 0.125rem rgba(17,17,17,0.15); /* 2px */
}

textarea {
  resize: none;
}

/* BUTTON */
.submit-btn {
  width: 100%;
  padding: 1.125rem; /* 18px */
  border-radius: 1rem; /* 16px */
  background: #111;
  color: #fff;
  border: none;
  font-size: 1rem; /* 16px */
  cursor: pointer;

  transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.25s ease;
}

.submit-btn:hover {
  transform: translateY(-0.25rem);
  background: #0b0b0b;
  box-shadow: 0 1.25rem 2.5rem rgba(0,0,0,0.18);
}

.submit-btn:active {
  transform: translateY(-0.0625rem);
  box-shadow: 0 0.75rem 1.5rem rgba(0,0,0,0.14);
}

.submit-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 0.25rem rgba(17,17,17,0.18),
    0 1.25rem 2.5rem rgba(0,0,0,0.16);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 64rem) { /* 1024px */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-form {
    padding: 2.25rem;
  }
}

@media (max-width: 40rem) { /* 640px */
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: 5.5rem 1.25rem;
  }
}


/* ================= FAQ (LIKE SCREENSHOT) ================= */

.contact-faq {
  padding: 7.5rem 1.25rem; /* 120px 20px */
  background: #f9fafb;
  text-align: center;
}

.contact-faq h2 {
  font-size: 2.75rem; /* трошки як на скріні */
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.faq-sub {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 3.5rem; /* більше повітря */
}

/* сам список по центру */
.contact-faq details {
  max-width: 50rem;          /* ширше як на скріні */
  margin: 0 auto 1.25rem;    /* 20px */
  background: #ffffff;
  border-radius: 1.25rem;    /* 20px */
  text-align: left;

  box-shadow:
    0 1.25rem 2.5rem rgba(0,0,0,0.06),
    0 0 0 0.0625rem rgba(0,0,0,0.04);

  overflow: hidden; /* щоб радіус тримався */
 transition:
    transform 0.25s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

/* більш помітний ефект */
.contact-faq details:hover {
  transform: translateY(-0.25rem);

  box-shadow:
    0 2rem 4rem rgba(0,0,0,0.12),
    0 0 0 0.0625rem rgba(0,0,0,0.06);
}

/* summary — жирний, як заголовок пункту */
.contact-faq summary {
  cursor: pointer;
  list-style: none;
  user-select: none;

  padding: 1.5rem 1.75rem 1.5rem 3.25rem; /* місце під трикутник */
  font-weight: 700;
  color: #0f172a;
  font-size: 1.1rem;

  position: relative;
}

/* прибираємо дефолтний маркер */
.contact-faq summary::-webkit-details-marker {
  display: none;
}

/* наш трикутник зліва */
.contact-faq summary::before {
  content: "▶";
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #0f172a;
  opacity: 0.9;
}

/* коли відкрито — трикутник вниз */
.contact-faq details[open] summary::before {
  content: "▼";
}

/* контент */
.contact-faq details p {
  margin: 0;
  padding: 0 1.75rem 1.5rem 3.25rem;
  color: #475569;
  line-height: 1.7;
  font-size: 1rem;
}

/* hover — дуже легкий (як на скріні) */
.contact-faq details:hover {
  box-shadow:
    0 1.75rem 3.5rem rgba(0,0,0,0.08),
    0 0 0 0.0625rem rgba(0,0,0,0.05);
}

/* фокус для клавіатури */
.contact-faq summary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 0.1875rem rgba(99,102,241,0.25);
}

/* адаптив */
@media (max-width: 48rem) {
  .contact-faq details {
    max-width: 100%;
  }

  .contact-faq summary {
    padding: 1.25rem 1.25rem 1.25rem 2.75rem;
  }

  .contact-faq summary::before {
    left: 1.1rem;
  }

  .contact-faq details p {
    padding: 0 1.25rem 1.25rem 2.75rem;
  }
}


/* ===== SUBMIT button hover (like your subscribe) ===== */
.submit-btn {
  transition: box-shadow 0.3s ease, transform 0.2s ease, background 0.25s ease;
}

.submit-btn:hover {
  transform: translateY(-0.125rem); /* -2px */
  box-shadow: 0 0.75rem 1.75rem rgba(0,0,0,0.18);
}

.submit-btn:active {
  transform: translateY(-0.0625rem);
  box-shadow: 0 0.5rem 1.25rem rgba(0,0,0,0.14);
}

/* ===== TOASTS ===== */

#toast-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 9999;

  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toast {

  background: #f8f7ff;
  color: #111827;

  padding: 1rem 1.5rem;

  border-radius: 1rem;

  min-width: 17.5rem;

  box-shadow:
    0 1.5rem 3rem rgba(0,0,0,0.15),
    0 0 0 0.0625rem rgba(0,0,0,0.05);

  opacity: 0;
  transform: translateX(120%);

  transition: opacity 0.35s ease, transform 0.35s ease;

  font-size: 0.95rem;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}


/* SUCCESS */

.toast.success {
  border-left: 0.25rem solid #7c3aed;
}


/* ERROR */

.toast.error {
  border-left: 0.25rem solid #ef4444;
}


/* content */

.toast__content {

  display: flex;
  align-items: center;
  gap: 0.75rem;

  font-weight: 600;

}


/* icon */

.toast__icon {

  width: 1.6rem;
  height: 1.6rem;

  border-radius: 0.6rem;

  background: rgba(17,24,39,0.08);

  display: inline-flex;
  align-items: center;
  justify-content: center;

}

.toast__icon svg {

  width: 1rem;
  height: 1rem;

  stroke: #22c55e;
  fill: none;

  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;

}


/* mobile */

@media (max-width: 40rem) {

  #toast-container {
    left: 1rem;
    right: 1rem;
    top: 1rem;
  }

  .toast {
    min-width: auto;
    width: 100%;
  }

}

/* ================= MODAL ================= */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10000;
}

.modal.active {
  display: block;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.55);
  backdrop-filter: blur(4px);
}

.modal-box {
  position: relative;
  width: min(32rem, calc(100% - 2rem));
  margin: 15vh auto 0;

  background: #ffffff;
  border-radius: 1.25rem;
  padding: 2rem;

  box-shadow:
    0 2rem 4rem rgba(0,0,0,0.2),
    0 0 0 0.0625rem rgba(0,0,0,0.05);

  transform: translateY(0.75rem);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.modal.active .modal-box {
  transform: translateY(0);
  opacity: 1;
}

.modal-box h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: #0f172a;
}

.modal-box p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;

  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.75rem;
  border: 0.0625rem solid rgba(15,23,42,0.1);
  background: #fff;
  cursor: pointer;
  font-size: 1.2rem;

  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.modal-close:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.75rem 1.5rem rgba(0,0,0,0.12);
}

