/**
 * HOLEP Home Page Styles
 * Loaded only on index.php – depends on style.css variables
 */

/* ==========================================================================
   Utilities
   ========================================================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn--navy {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 40, 75, 0.25);
}

.btn--navy:hover {
  background: #0a1d38;
  color: #ffffff;
  transform: translateY(-2px);
}

.check-icon--sm {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Home Hero – full-bleed background (same pattern as style.css .hero)
   ========================================================================== */
.home-hero {
  --home-hero-bg-pos-x: 82%;
  --home-hero-bg-pos-y: 40%;
  --home-hero-min-height: clamp(720px, 52vh, 880px);

  position: relative;
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  min-height: var(--home-hero-min-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #ffffff;
}

/* Background image layer – separate from gradient */
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/home/hero-bg.png");
  background-size: cover;
  background-position: var(--home-hero-bg-pos-x) var(--home-hero-bg-pos-y);
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

/* White → transparent gradient across full hero width */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 25%,
    rgba(255, 255, 255, 0.75) 40%,
    rgba(255, 255, 255, 0.35) 55%,
    rgba(255, 255, 255, 0.15) 65%,
    rgba(255, 255, 255, 0.05) 75%,
    rgba(255, 255, 255, 0) 85%
  );
  z-index: 1;
  pointer-events: none;
}

.home-hero__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 80px clamp(24px, 5vw, 80px);
  min-height: var(--home-hero-min-height);
  display: flex;
  align-items: center;
}

.home-hero__content {
  max-width: 560px;
  width: 100%;
  margin-left: max(0px, calc((100% - 1200px) / 2));
}

.home-hero__badge {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-green);
  background: var(--color-green-light);
  border-radius: 999px;
  margin-bottom: 24px;
}

.home-hero__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.home-hero__accent {
  color: var(--color-green);
}

.home-hero__text {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-paragraph);
  margin-bottom: 36px;
  max-width: 500px;
}

/* Payment card */
.home-hero__card {
  background: #ffffff;
  border-radius: 20px;
  padding: 28px 28px 24px;
  box-shadow: 0 16px 48px rgba(16, 40, 75, 0.12);
  border: 1px solid rgba(232, 232, 232, 0.9);
  max-width: 420px;
  container-type: inline-size;
  container-name: home-pay-card;
}

.home-hero__card-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 6px;
}

.home-hero__card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.home-hero__form {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.home-hero__input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--color-primary);
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: 12px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.home-hero__input::placeholder {
  color: #9ca3af;
}

.home-hero__input:focus {
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(103, 194, 58, 0.15);
}

.home-hero__submit {
  flex-shrink: 0;
  height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  gap: 8px;
}

/* Narrow card: stack form (mobile / small containers) */
@container home-pay-card (max-width: 380px) {
  .home-hero__form {
    flex-direction: column;
    gap: 12px;
  }

  .home-hero__input,
  .home-hero__submit {
    width: 100%;
    height: 52px;
    min-height: 52px;
    border-radius: 14px;
  }

  .home-hero__submit {
    justify-content: center;
  }
}

.home-hero__payments {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.home-hero__pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 40, 75, 0.04);
  line-height: 0;
  overflow: hidden;
}

.home-hero__pay-logo {
  display: block;
  width: 100%;
  max-width: 36px;
  height: 12px;
  object-fit: contain;
  object-position: center;
}

.home-hero__pay-logo--mc {
  max-width: 30px;
  height: 16px;
}

.home-hero__pay-logo--amex {
  max-width: 34px;
  height: 10px;
}

/* ==========================================================================
   Audience Cards Section
   ========================================================================== */
.home-audience {
  padding: 80px 0 72px;
  background: #ffffff;
}

.home-audience__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}

.home-audience__title {
  font-size: clamp(1.625rem, 2.6vw, 2rem);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.home-audience__subtitle {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-paragraph);
  margin: 0;
}

.home-audience__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.home-card {
  position: relative;
  display: block;
  border-radius: 24px;
  padding: 40px 42% 40px 40px;
  overflow: hidden;
  min-height: 460px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(16, 40, 75, 0.1);
}

.home-card--companies {
  background: #f3fbf0;
  border: 1.5px solid #bfe4a8;
  box-shadow: 0 4px 20px rgba(103, 194, 58, 0.08);
}

.home-card--debtors {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(16, 40, 75, 0.04);
}

.home-card__body {
  position: relative;
  z-index: 2;
  max-width: 340px;
}

.home-card__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 12px;
}

.home-card__title {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.home-card__text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-paragraph);
  margin-bottom: 22px;
}

.home-card__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.home-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-primary);
}

.home-card__btn {
  gap: 8px;
  padding: 14px 22px;
  font-size: 0.9375rem;
  border-radius: 14px;
}

.home-card--debtors .home-card__btn {
  border-width: 1.5px;
}

.home-card__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.home-card__image {
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: right center;
  filter: drop-shadow(0 18px 36px rgba(16, 40, 75, 0.18));
}

.home-card__image--laptop {
  max-height: 92%;
  width: 118%;
  max-width: none;
  margin-right: -18%;
  margin-bottom: -4%;
}

.home-card__image--mobile {
  max-height: 96%;
  width: auto;
  margin-right: -12%;
  margin-bottom: -2%;
}

/* ==========================================================================
   Responsive – Large Desktop (same breakpoints as style.css)
   ========================================================================== */
@media (min-width: 1440px) {
  .home-hero {
    --home-hero-bg-pos-x: 84%;
    --home-hero-bg-pos-y: 38%;
    --home-hero-min-height: clamp(760px, 54vh, 920px);
  }
}

@media (min-width: 1680px) {
  .home-hero {
    --home-hero-bg-pos-x: 86%;
    --home-hero-bg-pos-y: 36%;
    --home-hero-min-height: clamp(800px, 56vh, 960px);
  }
}

@media (min-width: 1920px) {
  .home-hero {
    --home-hero-bg-pos-x: 88%;
    --home-hero-bg-pos-y: 34%;
    --home-hero-min-height: clamp(840px, 58vh, 1000px);
  }
}

@media (min-width: 2560px) {
  .home-hero {
    --home-hero-bg-pos-x: 90%;
    --home-hero-bg-pos-y: 32%;
    --home-hero-min-height: clamp(880px, 60vh, 1080px);
  }
}

@media (max-width: 1440px) {
  .home-hero {
    --home-hero-bg-pos-x: 80%;
    --home-hero-bg-pos-y: 40%;
  }

  .home-hero__container {
    padding: 72px clamp(32px, 4vw, 64px);
  }
}

@media (max-width: 1280px) {
  .home-hero {
    --home-hero-bg-pos-x: 78%;
    --home-hero-bg-pos-y: 42%;
    --home-hero-min-height: 680px;
  }
}

@media (max-width: 1200px) {
  .home-hero {
    --home-hero-bg-pos-x: 75%;
    --home-hero-bg-pos-y: 42%;
    --home-hero-min-height: 640px;
  }

  .home-hero__container {
    padding: 60px clamp(24px, 3vw, 40px);
  }

  .home-hero__content {
    margin-left: 0;
  }

  .home-card {
    padding: 36px 44% 36px 32px;
    min-height: 420px;
  }

  .home-card__body {
    max-width: 300px;
  }

  .home-card__image--laptop {
    width: 130%;
    margin-right: -28%;
  }

  .home-card__image--mobile {
    margin-right: -18%;
  }
}

@media (max-width: 1024px) {
  .home-audience__grid {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin-inline: auto;
    gap: 24px;
  }

  .home-card {
    padding: 36px 42% 36px 36px;
    min-height: 400px;
  }

  .home-card__body {
    max-width: 320px;
  }

  .home-hero {
    --home-hero-bg-pos-x: 70%;
    --home-hero-bg-pos-y: 45%;
    --home-hero-min-height: 600px;
  }
}

@media (max-width: 768px) {
  .home-hero {
    --home-hero-min-height: auto;
  }

  .home-hero::after {
    display: none;
  }

  .home-hero::before {
    display: none;
  }

  .home-hero__container {
    padding: 40px 16px 48px;
    min-height: auto;
  }

  .home-hero__content {
    max-width: 100%;
  }

  .home-hero__badge {
    margin-bottom: 14px;
  }

  .home-hero__title {
    margin-bottom: 14px;
  }

  .home-hero__text {
    margin-bottom: 24px;
  }

  .home-hero__card {
    max-width: 100%;
    width: 100%;
    padding: 22px 18px 20px;
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(16, 40, 75, 0.1);
  }

  .home-hero__card-label {
    font-size: 0.625rem;
    margin-bottom: 8px;
  }

  .home-hero__card-title {
    font-size: 1.125rem;
    margin-bottom: 18px;
    line-height: 1.3;
  }

  .home-hero__form {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
  }

  .home-hero__input {
    width: 100%;
    height: 52px;
    padding: 0 14px;
    font-size: 1rem;
    border-radius: 14px;
  }

  .home-hero__submit {
    width: 100%;
    height: 52px;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 14px;
    font-size: 1rem;
    justify-content: center;
  }

  .home-hero__payments {
    justify-content: flex-start;
    gap: 8px;
    padding-top: 2px;
  }

  .home-hero__pay {
    width: 56px;
    height: 32px;
    border-radius: 8px;
  }

  .home-audience {
    padding: 56px 0 64px;
  }

  .home-audience__header {
    margin-bottom: 36px;
  }

  .home-card {
    padding: 28px 24px 0;
    min-height: auto;
    overflow: hidden;
  }

  .home-card__body {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .home-card__media {
    position: relative;
    width: 100%;
    height: 240px;
    justify-content: center;
    align-items: flex-end;
  }

  .home-card__image--laptop,
  .home-card__image--mobile {
    width: auto;
    max-width: 85%;
    max-height: 230px;
    margin-right: 0;
    margin-bottom: -8px;
  }
}

@media (max-width: 480px) {
  .home-hero__container {
    padding: 32px 14px 40px;
  }

  .home-hero__title {
    font-size: 1.75rem;
  }

  .home-hero__text {
    font-size: 0.9375rem;
    margin-bottom: 20px;
  }

  .home-hero__card {
    padding: 20px 16px 18px;
    border-radius: 16px;
  }

  .home-hero__card-title {
    font-size: 1.0625rem;
    margin-bottom: 16px;
  }

  .home-hero__form {
    gap: 10px;
    margin-bottom: 14px;
  }

  .home-hero__input {
    height: 50px;
    padding: 0 14px;
    font-size: 0.9375rem;
  }

  .home-hero__input::placeholder {
    font-size: 0.875rem;
  }

  .home-hero__submit {
    height: 50px;
    min-height: 50px;
    font-size: 0.9375rem;
  }

  .home-hero__payments {
    gap: 8px;
    width: 100%;
  }

  .home-hero__pay {
    flex: 0 0 auto;
    width: 54px;
    height: 30px;
    padding: 0 8px;
  }

  .home-hero__pay-logo {
    max-width: 34px;
    height: 12px;
  }

  .home-hero__pay-logo--mc {
    max-width: 28px;
    height: 15px;
  }

  .home-hero__pay-logo--amex {
    max-width: 32px;
    height: 10px;
  }

  .home-card__title {
    font-size: 1.125rem;
  }

  .home-card__btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Trust Stats Bar
   ========================================================================== */
.home-trust {
  padding: 0 0 64px;
  background: #ffffff;
}

.home-trust__panel {
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 28px 32px;
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(16, 40, 75, 0.04);
}

.home-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 16px;
  align-items: center;
}

.home-trust__item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.home-trust__item--badge {
  gap: 16px;
}

.home-trust__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #f5f7fa;
  color: var(--color-green);
}

.home-trust__copy {
  min-width: 0;
}

.home-trust__value {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.home-trust__label {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--color-paragraph);
  margin: 0;
}

.home-trust__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 2px dashed var(--color-green);
  border-radius: 12px;
  background: var(--color-green-light);
}

.home-trust__badge-mark {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-green);
}

.home-trust__badge-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
  margin: 0 0 4px;
}

.home-trust__item--badge .home-trust__label {
  font-size: 0.75rem;
  line-height: 1.35;
}

/* ==========================================================================
   Trusted Partners – seamless infinite logo marquee
   ========================================================================== */
.home-partners {
  --partners-gap: clamp(48px, 7vw, 80px);
  --partners-speed: 32s;

  padding: 0 0 72px;
  background: #ffffff;
}

.home-partners__eyebrow {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b0b8c4;
  margin: 0 0 36px;
}

.home-partners__marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}

.home-partners__track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: home-partners-scroll var(--partners-speed) linear infinite;
  will-change: transform;
}

.home-partners__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Equal margin after EVERY logo (including last) = seamless loop, no blank gap */
.home-partners__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: var(--partners-gap);
}

.home-partners__logo-img {
  display: block;
  height: clamp(24px, 2.6vw, 32px);
  width: auto;
  max-width: clamp(100px, 14vw, 150px);
  object-fit: contain;
  object-position: center;
  filter: grayscale(100%) brightness(0.4) contrast(1.15);
  opacity: 0.88;
}

@keyframes home-partners-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-partners__marquee {
    mask-image: none;
    -webkit-mask-image: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .home-partners__marquee::-webkit-scrollbar {
    display: none;
  }

  .home-partners__track {
    animation: none;
    width: 100%;
    justify-content: center;
  }

  .home-partners__group[aria-hidden="true"] {
    display: none;
  }
}

/* ==========================================================================
   Consultation CTA – white card matching design
   ========================================================================== */
.home-consultation {
  padding: 0 0 80px;
  background: #ffffff;
}

.home-consultation__panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding: 28px 36px;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(16, 40, 75, 0.04);
}

.home-consultation__main {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  flex: 1;
}

.home-consultation__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eef8e8;
  color: #67c23a;
}

.home-consultation__copy {
  min-width: 0;
}

.home-consultation__title {
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  font-weight: 700;
  color: #10284b;
  line-height: 1.3;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.home-consultation__text {
  font-size: 0.9375rem;
  line-height: 1.5;
  font-weight: 400;
  color: #757575;
  margin: 0;
}

.home-consultation__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.home-consultation__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #10284b;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.home-consultation__phone:hover {
  color: #67c23a;
}

.home-consultation__phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #67c23a;
  line-height: 0;
}

.home-consultation__btn {
  white-space: nowrap;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  gap: 10px;
}

/* ==========================================================================
   Trust / Partners / CTA – Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .home-trust__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-trust__item--badge {
    grid-column: span 2;
  }
}

@media (max-width: 1024px) {
  .home-consultation__panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 28px;
    gap: 24px;
  }

  .home-consultation__actions {
    width: 100%;
    justify-content: space-between;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .home-trust {
    padding: 0 0 48px;
  }

  .home-trust__panel {
    padding: 24px 20px;
  }

  .home-trust__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }

  .home-trust__item--badge {
    grid-column: 1 / -1;
  }

  .home-partners {
    --partners-gap: 40px;
    --partners-speed: 26s;
    padding: 0 0 56px;
  }

  .home-consultation {
    padding: 0 0 64px;
  }

  .home-consultation__main {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .home-consultation__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .home-consultation__phone {
    justify-content: center;
  }

  .home-consultation__btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Home FAQ
   ========================================================================== */
.home-faq {
  padding: 0 0 88px;
  background: #ffffff;
}

.home-faq__header {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.home-faq__eyebrow {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-green);
}

.home-faq__title {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #111827;
}

.home-faq__subtitle {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #6b7280;
}

.home-faq__list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-faq__item {
  border: 1px solid #e8ecf1;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 40, 75, 0.04);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-faq__item[open] {
  border-color: rgba(103, 194, 58, 0.35);
  box-shadow: 0 8px 22px rgba(16, 40, 75, 0.06);
}

.home-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  list-style: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: #111827;
}

.home-faq__question::-webkit-details-marker {
  display: none;
}

.home-faq__question::marker {
  content: "";
}

.home-faq__question-text {
  flex: 1;
  min-width: 0;
}

.home-faq__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--color-green);
  background: #eef9e8;
  transition: transform 0.2s ease;
}

.home-faq__item[open] .home-faq__icon {
  transform: rotate(180deg);
}

.home-faq__answer {
  padding: 0 20px 18px;
}

.home-faq__answer p {
  margin: 0;
  padding-top: 2px;
  border-top: 1px solid #eef1f5;
  padding-top: 14px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #4b5563;
}

.home-faq__footer {
  max-width: 820px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #6b7280;
}

.home-faq__footer a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-faq__footer a:hover {
  color: var(--color-green);
}

@media (max-width: 768px) {
  .home-faq {
    padding: 0 0 64px;
  }

  .home-faq__header {
    margin-bottom: 24px;
    text-align: left;
  }

  .home-faq__question {
    padding: 16px;
    font-size: 0.9375rem;
    align-items: flex-start;
  }

  .home-faq__answer {
    padding: 0 16px 16px;
  }

  .home-faq__footer {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .home-trust__grid {
    grid-template-columns: 1fr;
  }

  .home-trust__item--badge {
    grid-column: auto;
  }
}
