/* ============================================================
   UXCODE — страница «Репутация»
   Тёмная тема + брендовый красный uxcode.agency (#e84a3f).
   Контент скоупится под .reputation; классы собственные (.rep-*),
   чтобы не конфликтовать с шаблоном justixi и Webflow IX.
   ============================================================ */

/* Курсор (на сайте бывает cursor:none) — возвращаем обычный для контента */
.reputation, .reputation * { cursor: auto; }
.reputation a, .reputation button, .reputation input[type="submit"],
.reputation .rep-btn, .reputation label { cursor: pointer; }

/* ============================================================
   ТОКЕНЫ И БАЗА
   ============================================================ */
.reputation {
  --rep-bg: #0b0b0d;
  --rep-panel: #121214;
  --rep-panel-2: #17171b;
  --rep-border: rgba(255,255,255,.09);
  --rep-border-strong: rgba(255,255,255,.18);
  --rep-text: #ffffff;
  --rep-muted: rgba(255,255,255,.64);
  --rep-faint: rgba(255,255,255,.42);
  --rep-red: #e84a3f;
  --rep-red-dark: #a8170f;
  --rep-red-soft: rgba(232,74,63,.14);
  --rep-wa: #25d366;
  background-color: var(--rep-bg);
  color: var(--rep-text);
}

.rep-section {
  position: relative; z-index: 5;
  background-color: var(--rep-bg); color: var(--rep-text);
  padding: clamp(64px, 9vh, 120px) 5vw;
}
.rep-section.alt { background-color: #08080a; }
.rep-container { width: 100%; max-width: 1300px; margin: 0 auto; position: relative; }

.rep-head { max-width: 900px; margin-bottom: clamp(34px, 5vh, 56px); }
.rep-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============================================================
   ТИПОГРАФИКА
   ============================================================ */
.reputation .rep-eyebrow {
  font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--rep-red); margin: 0 0 16px;
}
.reputation .rep-hero-title {
  font-size: clamp(2.3rem, 5.2vw, 4.3rem);
  line-height: 1.04; letter-spacing: -.03em; font-weight: 600;
  margin: 0; max-width: 20ch; color: #fff;
}
.reputation .rep-title {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.1; letter-spacing: -.02em; font-weight: 600; margin: 0; color: #fff;
}
.reputation .rep-lead {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem); line-height: 1.45;
  color: var(--rep-muted); margin: 16px 0 0; max-width: 64ch;
}
.reputation .rep-card-title { font-size: 1.18rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.22; margin: 0; color: #fff; }
.reputation .rep-text { font-size: .98rem; line-height: 1.5; color: var(--rep-muted); margin: 0; }
.reputation .rep-strong { color: var(--rep-red); text-decoration: none; font-weight: 600; }

/* ============================================================
   КНОПКИ
   ============================================================ */
.rep-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.reputation .rep-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: .95rem 1.7rem; border-radius: 40px;
  font-weight: 600; font-size: .95rem; letter-spacing: -.2px;
  text-decoration: none; border: 1px solid transparent;
  transition: all .2s ease; white-space: nowrap;
}
.reputation .rep-btn--red { background: var(--rep-red); color: #fff; }
.reputation .rep-btn--red:hover { background: var(--rep-red-dark); }
.reputation .rep-btn--ghost { background: transparent; color: #fff; border-color: var(--rep-border-strong); }
.reputation .rep-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.04); }
.reputation .rep-btn--wa { background: var(--rep-wa); color: #06250f; }
.reputation .rep-btn--wa:hover { opacity: .9; }

/* ============================================================
   СЕТКИ И КАРТОЧКИ
   ============================================================ */
.rep-grid { display: grid; gap: 18px; }
.rep-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.rep-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.rep-grid.c4 { grid-template-columns: repeat(4, 1fr); }

.rep-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--rep-panel); border: 1px solid var(--rep-border);
  border-radius: 16px; padding: 26px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.rep-card:hover { border-color: var(--rep-border-strong); transform: translateY(-2px); }
.rep-card.active { background: var(--rep-red-soft); border-color: var(--rep-red); }

.rep-badge {
  align-self: flex-start; font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  color: #fff; background: var(--rep-red); border-radius: 100px; padding: 4px 10px;
}

/* теги-чипы */
.dir-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.dir-tag {
  display: inline-flex; align-items: center; padding: 7px 12px;
  font-size: .82rem; font-weight: 500; color: var(--rep-muted);
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px;
}
.rep-card.active .dir-tag { border-color: rgba(232,74,63,.4); color: #fff; }

/* ============================================================
   ПЛЕЙСХОЛДЕРЫ (заполнит пользователь). Пропорции фиксируем.
   ============================================================ */
.img-ph {
  width: 100%; display: grid; place-items: center; text-align: center;
  color: var(--rep-faint); font-size: .85rem; font-weight: 500;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 14px, rgba(255,255,255,.04) 14px 28px);
  border: 1px dashed rgba(255,255,255,.18); border-radius: 14px; padding: 16px;
}
.img-ph::before { content: "⌗"; display: block; font-size: 1.4rem; opacity: .5; margin-bottom: 6px; }
.img-ph.r-16x9 { aspect-ratio: 16 / 9; }
.img-ph.r-4x3  { aspect-ratio: 4 / 3; }
.img-ph.r-3x2  { aspect-ratio: 3 / 2; }
.img-ph.r-1x1  { aspect-ratio: 1 / 1; }
.dir-ico {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  border: 1px dashed rgba(255,255,255,.2); border-radius: 12px;
  background: rgba(255,255,255,.03); color: var(--rep-faint); font-size: 1.1rem;
}
.rep-card.active .dir-ico { border-color: var(--rep-red); color: var(--rep-red); }

/* ============================================================
   HERO
   ============================================================ */
.rep-hero { padding-top: clamp(120px, 16vh, 200px); }
.rep-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.rep-hero .img-ph { min-height: 240px; }

/* ============================================================
   ПРОЦЕСС
   ============================================================ */
.rep-step { display: flex; flex-direction: column; gap: 14px; }
.rep-step .step-head { display: flex; align-items: center; gap: 12px; }
.rep-num {
  flex: none; width: 34px; height: 34px; border-radius: 100%;
  background: var(--rep-red); color: #fff; font-size: .9rem; font-weight: 700;
  display: grid; place-items: center;
}
.rep-timeline {
  display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 36px;
  padding: 22px 26px; border: 1px solid var(--rep-border);
  border-radius: 16px; background: var(--rep-panel);
}
.rep-timeline .ti { display: flex; align-items: baseline; gap: 10px; }
.rep-timeline .ti b { font-size: 1.15rem; font-weight: 600; color: var(--rep-red); }
.rep-timeline .ti span { color: var(--rep-muted); font-size: .95rem; }
.rep-timeline .sep { width: 1px; align-self: stretch; background: var(--rep-border); }

/* ============================================================
   ФАКТЫ
   ============================================================ */
.rep-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rep-fact { background: var(--rep-panel); border: 1px solid var(--rep-border); border-radius: 16px; padding: 26px; }
.rep-fact-num { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -.02em; line-height: 1; color: var(--rep-red); }
.rep-fact-label { color: var(--rep-muted); font-size: .95rem; margin-top: 10px; line-height: 1.35; }

/* ============================================================
   ТАРИФЫ
   ============================================================ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--rep-panel); border: 1px solid var(--rep-border);
  border-radius: 18px; padding: 30px; position: relative;
}
.price-card.featured { background: var(--rep-red-soft); border-color: var(--rep-red); }
.price-badge {
  position: absolute; top: 22px; right: 22px;
  font-size: .72rem; font-weight: 600; color: #fff; background: var(--rep-red);
  border-radius: 100px; padding: 4px 10px;
}
.price-name { font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.price-cost { font-size: 1.05rem; color: var(--rep-muted); }
.price-cost b { color: #fff; font-weight: 600; }
.price-divider { height: 1px; background: var(--rep-border); margin: 2px 0; }
.price-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--rep-muted); font-size: .95rem; line-height: 1.4; }
.price-list li::before { content: "✓"; color: var(--rep-red); font-weight: 700; flex: none; }
.price-card .rep-btn { margin-top: auto; justify-content: center; }
.price-note { margin-top: 18px; color: var(--rep-muted); font-size: .95rem; }

/* ============================================================
   ОТЗЫВЫ
   ============================================================ */
.rep-testi { background: var(--rep-panel); border: 1px solid var(--rep-border); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.rep-stars { display: flex; gap: 5px; }
.rep-stars i { width: 8px; height: 8px; border-radius: 100%; background: var(--rep-red); display: inline-block; }
.rep-stars i.off { background: rgba(255,255,255,.22); }
.rep-quote { font-size: 1.05rem; line-height: 1.45; color: #fff; }
.rep-author { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.rep-avatar { width: 44px; height: 44px; border-radius: 100%; flex: none; overflow: hidden; background: rgba(255,255,255,.08); }
.rep-author .nm { font-weight: 600; font-size: .95rem; color: #fff; }
.rep-author .rl { color: var(--rep-muted); font-size: .85rem; }

/* ============================================================
   FAQ — собственные классы (Webflow IX их не трогает)
   ============================================================ */
.reputation .rep-faq { display: flex; flex-direction: column; gap: 10px; max-width: 920px; }
.reputation .rep-faq-item { background: var(--rep-panel); border: 1px solid var(--rep-border); border-radius: 12px; overflow: hidden; }
.reputation .rep-faq-item.is-open { border-color: var(--rep-red); }
.reputation .rep-faq-q {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 20px 22px;
  background: none; border: none; text-align: left; color: #fff; font: inherit;
  font-weight: 600; font-size: 1.02rem; letter-spacing: -.2px; line-height: 1.25;
}
.reputation .rep-faq-num {
  flex: none; width: 32px; height: 32px; border-radius: 100%;
  background: var(--rep-red); color: #fff; font-size: .85rem; font-weight: 600;
  display: grid; place-items: center;
}
.reputation .rep-faq-q .rep-faq-txt { flex: 1; }
.reputation .rep-faq-ic { flex: none; position: relative; width: 15px; height: 15px; }
.reputation .rep-faq-ic::before, .reputation .rep-faq-ic::after { content: ""; position: absolute; background: #fff; transition: transform .3s ease; }
.reputation .rep-faq-ic::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.reputation .rep-faq-ic::after { left: 50%; top: 0; width: 1.5px; height: 100%; transform: translateX(-50%); }
.reputation .rep-faq-item.is-open .rep-faq-ic::after { transform: translateX(-50%) scaleY(0); }
.reputation .rep-faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.reputation .rep-faq-item.is-open .rep-faq-a { max-height: 600px; }
.reputation .rep-faq-a p { margin: 0; padding: 0 22px 22px 68px; color: var(--rep-muted); font-size: .98rem; line-height: 1.55; }
@media (max-width: 640px) { .reputation .rep-faq-a p { padding-left: 22px; } }

/* ============================================================
   КОНТАКТ РУКОВОДИТЕЛЯ (Милитина Павловна)
   ============================================================ */
.mil-grid { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 44px; align-items: center; }
.mil-photo { max-width: 360px; }
.mil-name { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 600; letter-spacing: -.02em; color: #fff; }
.mil-role { color: var(--rep-muted); font-size: 1.02rem; margin-top: 6px; }
.mil-text { color: var(--rep-muted); font-size: 1rem; line-height: 1.5; margin-top: 18px; max-width: 52ch; }

/* ============================================================
   ФОРМА ЗАЯВКИ (самодостаточные поля)
   ============================================================ */
.rep-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.reputation .rep-form { display: flex; flex-direction: column; gap: 12px; }
.reputation .rep-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.reputation .rep-input, .reputation .rep-textarea {
  width: 100%; color: #fff; font: inherit; font-size: 16px; font-weight: 400;
  background-color: rgba(255,255,255,0); border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px; min-height: 52px; padding: 14px 16px; transition: border-color .2s ease;
}
.reputation .rep-textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
.reputation .rep-input:focus, .reputation .rep-textarea:focus { border-color: var(--rep-red); outline: none; }
.reputation .rep-input::placeholder, .reputation .rep-textarea::placeholder { color: rgba(255,255,255,.4); }
.rep-consent { display: flex; gap: 10px; align-items: flex-start; color: var(--rep-faint); font-size: .82rem; line-height: 1.4; margin-top: 4px; }
.rep-consent input { margin-top: 2px; flex: none; width: 16px; height: 16px; accent-color: var(--rep-red); }
.rep-consent a { color: var(--rep-muted); text-decoration: underline; }
.reputation .rep-submit {
  appearance: none; -webkit-appearance: none;
  background: var(--rep-red); color: #fff;
  border: none; border-radius: 40px; font-weight: 600; font-size: 1rem;
  letter-spacing: -.2px; padding: 1rem 1.9rem; width: auto; align-self: flex-start;
  margin-top: 6px; box-shadow: none; transition: background .2s ease; cursor: pointer;
}
.reputation .rep-submit:hover { background: var(--rep-red-dark); }
.reputation .rep-done {
  display: none; margin-top: 14px;
  background: var(--rep-red-soft); border: 1px solid var(--rep-red);
  color: #ffd9d4; padding: 18px 20px; border-radius: 12px; font-size: .98rem;
}
.rep-form-aside { background: var(--rep-panel); border: 1px solid var(--rep-border); border-radius: 18px; padding: 30px; }
.rep-form-aside ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rep-form-aside li { display: flex; gap: 10px; align-items: flex-start; color: var(--rep-muted); font-size: .98rem; line-height: 1.4; }
.rep-form-aside li::before { content: "→"; color: var(--rep-red); flex: none; }

/* ============================================================
   АДАПТИВ (высоты не ломаем — только перестроение сеток)
   ============================================================ */
@media (max-width: 991px) {
  .rep-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .rep-grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .rep-grid.c3 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; }
  .rep-facts { grid-template-columns: repeat(2, 1fr); }
  .mil-grid { grid-template-columns: 1fr; gap: 28px; }
  .mil-photo { max-width: 320px; }
  .rep-form-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .rep-section { padding: clamp(48px, 8vh, 80px) 20px; }
  .rep-grid.c2, .rep-grid.c3, .rep-grid.c4 { grid-template-columns: 1fr; }
  .rep-facts { grid-template-columns: 1fr 1fr; }
  .reputation .rep-form-row { grid-template-columns: 1fr; }
  .rep-timeline .sep { display: none; }
}
