/* css/agentstvo.css */

/* ─── HERO ─── */
.agn-hero {
  background: var(--surface);
  padding: 25px 0 40px;
}

.agn-hero__card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 52px 56px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.agn-hero__body {
  flex: 1 1 0;
  min-width: 0;
}

.agn-hero__img-wrap {
  flex: 0 0 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agn-hero__img {
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
}

.agn-hero__title {
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 14px;
}

.agn-hero__sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.agn-hero__list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agn-hero__list li {
  font-size: 15px;
  color: var(--ink);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}

.agn-hero__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.agn-hero__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── ДЛЯ КОГО ─── */
.agn-for {
  padding: 0 0 40px;
}

.agn-for__title {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 20px;
}

.agn-for__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.agn-for__card {
  background: var(--red);
  border-radius: var(--r-lg);
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
}

.agn-for__name {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.agn-for__text {
  font-size: 14px;
  color: rgba(255, 255, 255, .8);
  line-height: 1.65;
}

/* ─── УСЛОВИЯ ПАРТНЁРСТВА ─── */
.agn-terms {
  padding: 0 0 40px;
}

.agn-terms__title {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 20px;
}

.agn-terms__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.agn-terms__card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 28px 32px;
}

.agn-terms__icon {
  color: var(--red);
  margin-bottom: 14px;
}

.agn-terms__name {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.agn-terms__text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── КАК СТАТЬ ПАРТНЁРОМ ─── */
.agn-steps {
  padding: 0 0 40px;
}

.agn-steps__title {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 20px;
}

.agn-steps__flow {
  display: flex;
  align-items: stretch;
}

.agn-step {
  flex: 1;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.agn-steps__arr {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  color: var(--muted);
}

.agn-step__num {
  width: 36px;
  height: 36px;
  background: var(--red-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 12px;
  flex-shrink: 0;
}

.agn-step__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 8px;
}

.agn-step__text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ─── БЛОК С МЕНЕДЖЕРОМ ─── */
.agn-promo { padding: 0 0 40px; }

.agn-promo__card {
  background: var(--white);
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  overflow: hidden;
}

.agn-promo__person {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px 40px 52px;
  gap: 12px;
}

.agn-promo__photo {
  width: 200px;
  height: 240px;
  border-radius: var(--r-md);
  object-fit: cover;
  object-position: top center;
  display: block;
}

.agn-promo__caption {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.agn-promo__caption strong {
  color: var(--ink);
  font-weight: 600;
}

.agn-promo__body { padding: 52px 56px; }

.agn-promo__title {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 8px;
}

.agn-promo__sub {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.agn-promo__direct-phone {
  display: block;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  line-height: 1.2;
  margin-bottom: 4px;
  transition: opacity .15s;
}

.agn-promo__direct-phone:hover { opacity: .8; }

.agn-promo__direct-email {
  display: block;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color .15s;
}

.agn-promo__direct-email:hover { color: var(--ink); }

.agn-promo__divider {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}

.agn-promo__fields {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 12px;
}

.agn-promo__input {
  flex: 1 1 200px;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  transition: border-color .15s;
  outline: none;
}

.agn-promo__input:focus { border-color: var(--red); }
.agn-promo__input::placeholder { color: #b0b0b0; }

.agn-promo__agree {
  font-size: 12px;
  color: var(--muted);
}

.agn-promo__agree a { color: var(--muted); text-decoration: underline; }

/* ─── АДАПТИВ ─── */
@media (max-width: 900px) {
  .agn-hero__card   { padding: 36px 32px; gap: 32px; }
  .agn-hero__img-wrap { flex: 0 0 180px; }
  .agn-for__grid    { grid-template-columns: repeat(2, 1fr); }
  .agn-terms__grid  { grid-template-columns: repeat(2, 1fr); }
  .agn-promo__body  { padding: 36px 32px; }
}

@media (max-width: 860px) {
  .agn-hero__card     { flex-direction: column; align-items: flex-start; }
  .agn-hero__img-wrap { flex: none; align-self: center; }
  .agn-hero__img      { max-width: 160px; }

  .agn-steps__flow    { flex-direction: column; gap: 4px; }
  .agn-steps__arr     { transform: rotate(90deg); height: 28px; width: 100%; }

  .agn-promo__card    { align-items: start; }
  .agn-promo__person  { grid-column: 1; grid-row: 1; flex-direction: column; align-items: flex-start; padding: 28px 0 0 24px; gap: 0; }
  .agn-promo__photo   { width: 90px; height: 110px; }
  .agn-promo__caption { display: none; }
  .agn-promo__body    { display: contents; }
  .agn-promo__title   { grid-column: 2; grid-row: 1; align-self: center; font-size: clamp(18px, 4vw, 24px); padding: 28px 24px 0 16px; margin-bottom: 0; }
  .agn-promo__rest    { grid-column: 1 / -1; grid-row: 2; padding: 16px 24px 28px; }
}

@media (max-width: 560px) {
  .agn-hero__card       { padding: 28px 24px; }
  .agn-hero__btns .btn  { width: 100%; justify-content: center; }
  .agn-for__grid        { grid-template-columns: 1fr; }
  .agn-terms__grid      { grid-template-columns: 1fr; }
  .agn-promo__fields    { flex-direction: column; }
  .agn-promo__input     { flex: 1 1 100%; }
}
