﻿.ach-slot {
  width: 100%;
  margin: 28px auto 36px;
  box-sizing: border-box;
  color: #071222;
}

.ach-slot a {
  text-decoration: none;
}

.ach-disclosure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #384942;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ach-slot--marquee,
.ach-slot--banner-grid,
.ach-slot--cards,
.ach-slot--text-links {
  padding: clamp(14px, 2vw, 22px);
  border: 1px dashed rgba(7, 18, 34, 0.2);
  border-radius: 18px;
  background: radial-gradient(circle at 8% 20%, rgba(232, 238, 225, 0.72), transparent 34%), linear-gradient(90deg, rgba(250, 251, 248, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 18px 44px rgba(7, 18, 34, 0.04);
}

.ach-slot--marquee {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 10px clamp(12px, 2vw, 18px);
  align-items: center;
  overflow: hidden;
}

.ach-slot--marquee > .ach-disclosure {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.ach-marquee {
  min-width: 0;
  overflow: hidden;
}

.ach-marquee__track {
  display: flex;
  width: 100%;
  gap: 0;
  align-items: center;
  will-change: transform;
  transition: transform 380ms ease;
}

.ach-banner {
  width: 100%;
  height: 66px;
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 1px solid rgba(7, 18, 34, 0.13);
  border-radius: 14px;
  background: #fff;
  color: #071222;
  box-shadow: 0 10px 26px rgba(7, 18, 34, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ach-banner:hover,
.ach-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 75, 255, 0.4);
  box-shadow: 0 16px 34px rgba(7, 18, 34, 0.1);
}

.ach-banner img {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.ach-banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.ach-banner-grid .ach-banner {
  width: 100%;
}

.ach-slot__head {
  margin-bottom: 16px;
}

.ach-slot__head h2 {
  margin: 8px 0 0;
  color: #071222;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  line-height: 1.08;
}

.ach-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.ach-card {
  min-height: 164px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(7, 18, 34, 0.13);
  border-radius: 16px;
  background: #fff;
  color: #071222;
  box-shadow: 0 10px 26px rgba(7, 18, 34, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ach-card img {
  max-width: 100%;
  max-height: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
  align-self: center;
}

.ach-card span {
  color: #765122;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ach-card strong {
  font-size: 1.08rem;
  line-height: 1.16;
}

.ach-card p {
  margin: 0;
  color: #4f5f5a;
  font-size: 0.94rem;
  line-height: 1.45;
}

.ach-card em {
  color: #071222;
  font-size: 0.78rem;
  line-height: 1;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ach-slot--text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}

.ach-slot--text-links a {
  color: #071222;
  font-weight: 800;
  border-bottom: 1px solid rgba(7, 18, 34, 0.22);
}

.ach-placeholder {
  margin: 20px 0;
  padding: 12px;
  border: 1px dashed #bbb;
  border-radius: 8px;
  color: #555;
  background: #fafafa;
}

.ach-lead-popup {
  position: fixed;
  inset: auto 22px 22px auto;
  z-index: 99999;
  width: min(420px, calc(100vw - 32px));
  color: #071222;
}

.ach-lead-popup[hidden] {
  display: none;
}

.ach-lead-popup__panel {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(7, 18, 34, 0.14);
  border-radius: 24px;
  background: radial-gradient(circle at 12% 0%, rgba(94, 118, 255, 0.16), transparent 32%), #fff;
  box-shadow: 0 24px 80px rgba(7, 18, 34, 0.18);
}

.ach-lead-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(7, 18, 34, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #071222;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.ach-lead-popup__eyebrow,
.ach-quiz__intro span {
  display: inline-block;
  margin-bottom: 10px;
  color: #3551ff;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ach-lead-popup strong {
  display: block;
  max-width: 330px;
  font-size: 1.45rem;
  line-height: 1.08;
}

.ach-lead-popup p {
  margin: 12px 0 18px;
  color: #4f5f5a;
  line-height: 1.45;
}

.ach-lead-form,
.ach-quiz__form {
  display: grid;
  gap: 12px;
}

.ach-lead-form label,
.ach-quiz label {
  display: grid;
  gap: 6px;
  color: #071222;
  font-weight: 800;
}

.ach-lead-form input[type="text"],
.ach-lead-form input[type="email"],
.ach-quiz input[type="text"],
.ach-quiz input[type="email"] {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  border: 1px solid rgba(7, 18, 34, 0.16);
  border-radius: 14px;
  padding: 10px 12px;
  font: inherit;
  color: #071222;
  background: #fff;
}

.ach-lead-form__consent {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 9px !important;
  color: #4f5f5a !important;
  font-size: 0.84rem;
  font-weight: 600 !important;
  line-height: 1.35;
}

.ach-lead-form__consent input {
  margin-top: 2px;
}

.ach-lead-form button,
.ach-quiz button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: #071222;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ach-lead-form button:disabled,
.ach-quiz button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.ach-lead-form small,
.ach-quiz small {
  min-height: 18px;
  color: #3551ff;
  font-weight: 800;
}

.ach-quiz {
  width: min(1120px, calc(100vw - 32px));
  margin: 48px auto;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 32px;
  background: radial-gradient(circle at 85% 18%, rgba(255, 126, 51, 0.16), transparent 30%), linear-gradient(135deg, #f8faf5, #fff);
  color: #071222;
  box-shadow: 0 28px 80px rgba(7, 18, 34, 0.08);
}

.ach-quiz__intro {
  max-width: 760px;
  margin-bottom: 24px;
}

.ach-quiz__intro h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
}

.ach-quiz__intro p {
  max-width: 680px;
  margin: 16px 0 0;
  color: #4f5f5a;
  font-size: 1.08rem;
  line-height: 1.55;
}

.ach-quiz fieldset {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(7, 18, 34, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.ach-quiz legend {
  padding: 0 8px;
  font-weight: 900;
}

.ach-quiz fieldset label {
  grid-template-columns: 18px 1fr;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(7, 18, 34, 0.1);
  border-radius: 14px;
  background: #fff;
}

.ach-quiz__identity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ach-dashboard {
  width: min(1240px, calc(100vw - 32px));
  margin: 34px auto;
  color: #071222;
}

.ach-dashboard--admin {
  width: calc(100% - 20px);
  margin: 20px 0;
}

.ach-dashboard__hero,
.ach-dashboard__panel,
.ach-dashboard__kpis article {
  border: 1px solid rgba(7, 18, 34, 0.12);
  border-radius: 24px;
  background: linear-gradient(135deg, #fbfcf8, #fff);
  box-shadow: 0 18px 48px rgba(7, 18, 34, 0.06);
}

.ach-dashboard__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: clamp(26px, 5vw, 48px);
  background: radial-gradient(circle at 85% 10%, rgba(53, 81, 255, 0.22), transparent 34%), linear-gradient(135deg, #071222, #17245a);
  color: #fff;
}

.ach-dashboard__hero span,
.ach-dashboard__panel header span,
.ach-dashboard__kpis span {
  display: inline-block;
  color: #6f86ff;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ach-dashboard__hero h1 {
  margin: 10px 0;
  color: #fff;
  font-size: clamp(2.4rem, 7vw, 5.8rem);
  line-height: 0.9;
}

.ach-dashboard__hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.55;
}

.ach-dashboard__hero dl {
  display: grid;
  gap: 10px;
  min-width: 240px;
  margin: 0;
}

.ach-dashboard__hero dl div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.ach-dashboard__hero dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ach-dashboard__hero dd {
  margin: 4px 0 0;
  color: #fff;
  font-weight: 900;
}

.ach-dashboard__kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.ach-dashboard__kpis article {
  padding: 18px;
}

.ach-dashboard__kpis strong {
  display: block;
  margin: 8px 0;
  font-size: 2.4rem;
  line-height: 1;
}

.ach-dashboard__kpis em {
  color: #4f5f5a;
  font-style: normal;
  font-weight: 700;
}

.ach-dashboard__panel {
  padding: clamp(18px, 3vw, 28px);
  margin-bottom: 18px;
}

.ach-dashboard__panel h2 {
  margin: 8px 0 0;
  color: #071222;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  line-height: 1.05;
}

.ach-flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.ach-flow__step {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid rgba(7, 18, 34, 0.12);
  border-radius: 18px;
  background: #fff;
}

.ach-flow__step strong {
  font-size: 0.98rem;
}

.ach-flow__step small {
  color: #4f5f5a;
  line-height: 1.35;
}

.ach-flow__step--ok {
  border-color: rgba(31, 122, 62, 0.28);
  background: linear-gradient(135deg, rgba(230, 246, 235, 0.92), #fff);
}

.ach-flow__step--setup {
  border-color: rgba(255, 126, 51, 0.35);
  background: linear-gradient(135deg, rgba(255, 245, 235, 0.95), #fff);
}

.ach-flow__step--waiting {
  border-color: rgba(53, 81, 255, 0.25);
  background: linear-gradient(135deg, rgba(236, 240, 255, 0.95), #fff);
}

.ach-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ach-dashboard__list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.ach-dashboard__list > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(7, 18, 34, 0.08);
}

.ach-dashboard__list small {
  color: #4f5f5a;
  text-align: right;
}

.ach-dashboard__table {
  margin-top: 18px;
  overflow-x: auto;
}

.ach-dashboard__table table {
  width: 100%;
  border-collapse: collapse;
}

.ach-dashboard__table th,
.ach-dashboard__table td {
  padding: 11px 8px;
  border-bottom: 1px solid rgba(7, 18, 34, 0.1);
  text-align: left;
  vertical-align: top;
}

.ach-dashboard__table th {
  color: #4f5f5a;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ach-dashboard__setup {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.ach-dashboard__setup div {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(7, 18, 34, 0.1);
  border-radius: 16px;
  background: #fff;
}

.ach-dashboard code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #17245a;
  background: rgba(53, 81, 255, 0.08);
  padding: 6px 8px;
  border-radius: 8px;
}

.ach-affiliate-disclosure {
  width: min(900px, calc(100vw - 32px));
  margin: 36px auto;
  padding: 22px;
  border: 1px dashed rgba(7, 18, 34, 0.22);
  border-radius: 20px;
  background: linear-gradient(135deg, #fbfcf8, #fff);
  color: #071222;
}

.ach-affiliate-disclosure span {
  color: #3551ff;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ach-affiliate-disclosure h2 {
  margin: 8px 0;
  color: #071222;
}

.ach-affiliate-disclosure p {
  margin: 0 0 10px;
  color: #4f5f5a;
}

@media (max-width: 760px) {
  .ach-slot--marquee {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .ach-banner {
    width: 100%;
    height: 60px;
  }

  .ach-card-grid,
  .ach-banner-grid {
    grid-template-columns: 1fr;
  }

  .ach-lead-popup {
    inset: auto 12px 12px 12px;
    width: auto;
  }

  .ach-quiz__identity {
    grid-template-columns: 1fr;
  }

  .ach-dashboard__hero,
  .ach-dashboard__grid,
  .ach-dashboard__setup {
    grid-template-columns: 1fr;
  }

  .ach-dashboard__kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ach-flow {
    grid-template-columns: 1fr;
  }
}
