/* =========================================================
   UFAOTDELKA.RU — CLEANED UI COMPONENTS
   Служебные UI-компоненты: tooltip, modal, кнопки, формы,
   хлебные крошки, CTA и служебные элементы интерфейса.
   Совместимо с UCOZ, без ломки структуры шаблона.
   ========================================================= */

/* =========================================================
   1. UI TOKENS
   ========================================================= */
:root {
  --ui-accent: #55b330;
  --ui-accent-dark: #469825;
  --ui-accent-soft: #eef8e8;
  --ui-text: #1f1f1f;
  --ui-text-muted: #697066;
  --ui-dark: #2c2f2b;
  --ui-dark-2: #363a35;
  --ui-surface: #ffffff;
  --ui-surface-soft: #f8faf6;
  --ui-line: #dde3d7;
  --ui-line-strong: #cfd6c8;
  --ui-radius-sm: 8px;
  --ui-radius-md: 12px;
  --ui-radius-lg: 18px;
  --ui-radius-pill: 999px;
  --ui-shadow-sm: 0 6px 18px rgba(28, 37, 24, .06);
  --ui-shadow-md: 0 14px 34px rgba(28, 37, 24, .10);
  --ui-shadow-lg: 0 20px 46px rgba(28, 37, 24, .16);
  --ui-transition: .22s ease;
}

/* =========================================================
   2. BUTTONS / CTA
   ========================================================= */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.sl_button,
.submit-btn,
.cinf_mf_send,
.ui-btn,
.ui-cta,
a.ui-btn,
a.ui-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--ui-radius-pill);
  background: linear-gradient(180deg, #62c43a 0%, var(--ui-accent) 100%);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(85, 179, 48, .22);
  transition:
    transform var(--ui-transition),
    box-shadow var(--ui-transition),
    background var(--ui-transition),
    opacity var(--ui-transition);
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
.sl_button:hover,
.submit-btn:hover,
.cinf_mf_send:hover,
.ui-btn:hover,
.ui-cta:hover,
a.ui-btn:hover,
a.ui-cta:hover {
  background: linear-gradient(180deg, #58bb30 0%, var(--ui-accent-dark) 100%);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(85, 179, 48, .28);
}

button:active,
input[type="button"]:active,
input[type="submit"]:active,
input[type="reset"]:active,
.sl_button:active,
.submit-btn:active,
.cinf_mf_send:active,
.ui-btn:active,
.ui-cta:active,
a.ui-btn:active,
a.ui-cta:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(85, 179, 48, .18);
}

button .fa,
input[type="button"] .fa,
input[type="submit"] .fa,
input[type="reset"] .fa,
.sl_button .fa,
.submit-btn .fa,
.cinf_mf_send .fa,
.ui-btn .fa,
.ui-cta .fa {
  font-size: 14px;
}

.ui-btn--dark,
a.ui-btn--dark {
  background: linear-gradient(180deg, #3b3f3a 0%, #2c2f2b 100%);
  box-shadow: 0 12px 24px rgba(26, 30, 25, .18);
}

.ui-btn--dark:hover,
a.ui-btn--dark:hover {
  background: linear-gradient(180deg, #333732 0%, #232622 100%);
}

.ui-btn--ghost,
a.ui-btn--ghost {
  border: 1px solid var(--ui-line-strong);
  background: #fff;
  color: var(--ui-text) !important;
  box-shadow: var(--ui-shadow-sm);
}

.ui-btn--ghost:hover,
a.ui-btn--ghost:hover {
  border-color: var(--ui-accent);
  background: var(--ui-accent-soft);
  color: var(--ui-accent-dark) !important;
}

/* =========================================================
   3. FORMS
   ========================================================= */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea,
select,
.cinf_mf_field,
.ui-input,
.ui-textarea,
.ui-select {
  display: block;
  width: 100%;
  border: 1px solid var(--ui-line-strong);
  border-radius: var(--ui-radius-sm);
  background: #fff;
  color: var(--ui-text);
  box-sizing: border-box;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.02);
  transition:
    border-color var(--ui-transition),
    box-shadow var(--ui-transition),
    background-color var(--ui-transition);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
select,
.cinf_mf_field,
.ui-input,
.ui-select {
  min-height: 46px;
  padding: 0 15px;
  font-size: 15px;
  line-height: 46px;
}

textarea,
.ui-textarea {
  min-height: 140px;
  padding: 12px 15px;
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
}

input::placeholder,
textarea::placeholder,
.cinf_mf_field::placeholder,
.ui-input::placeholder,
.ui-textarea::placeholder {
  color: #9aa095;
}

input:focus,
textarea:focus,
select:focus,
.cinf_mf_field:focus,
.ui-input:focus,
.ui-textarea:focus,
.ui-select:focus {
  border-color: rgba(85, 179, 48, .95) !important;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(85, 179, 48, .12);
  outline: none;
}

.form-group,
.ui-field,
.modern-form .form-row {
  margin: 0 0 16px;
}

.form-group label,
.ui-field label,
.modern-form label {
  display: block;
  margin: 0 0 7px;
  color: var(--ui-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.form-group label span,
.ui-field label span,
.modern-form label span {
  color: var(--ui-accent);
}

.security-code-wrap {
  padding: 14px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-sm);
  background: var(--ui-surface-soft);
}

.security-code-wrap img,
.security-code-wrap input,
.security-code-wrap span,
.security-code-wrap div,
.security-code-wrap a {
  max-width: 100%;
}

/* =========================================================
   4. BREADCRUMBS / PATH
   ========================================================= */
.path {
  margin-bottom: 24px;
  padding: 14px 18px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-pill);
  background: rgba(255,255,255,.94);
  box-shadow: var(--ui-shadow-sm);
  color: var(--ui-text-muted);
  font-size: 12px;
  line-height: 20px;
}

.path a {
  color: var(--ui-text);
  text-decoration: none;
  transition: color var(--ui-transition);
}

.path a:hover {
  color: var(--ui-accent-dark);
}

.path .fa-home {
  margin-right: 4px;
  color: var(--ui-accent);
  font-size: 15px;
}

.path .fa-angle-right,
.path .separator,
.path .sep {
  margin: 0 8px;
  color: #a4a89e;
}

#breadcrumbs span[itemprop="itemListElement"] {
  white-space: nowrap;
}

/* =========================================================
   5. TOOLTIP / TIPTIP
   ========================================================= */
#tiptip_holder {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 99999;
  display: none;
  pointer-events: none;
}

#tiptip_holder.tip_top {
  padding-bottom: 8px;
}

#tiptip_holder.tip_bottom {
  padding-top: 8px;
}

#tiptip_holder.tip_left {
  padding-right: 8px;
}

#tiptip_holder.tip_right {
  padding-left: 8px;
}

#tiptip_content {
  position: relative;
  max-width: 280px;
  padding: 9px 13px;
  border: 1px solid rgba(128, 214, 91, 0.18);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(45, 49, 43, 0.97) 0%, rgba(28, 31, 27, 0.97) 100%);
  color: #f4f7f0;
  font-size: 12px;
  line-height: 1.45;
  text-shadow: none;
  white-space: normal;
  box-shadow:
    0 14px 34px rgba(16, 20, 15, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

#tiptip_content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  pointer-events: none;
}

#tiptip_arrow,
#tiptip_arrow_inner {
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  border-color: transparent;
}

#tiptip_arrow_inner {
  display: none;
}

#tiptip_holder.tip_top #tiptip_arrow {
  bottom: 1px;
  left: 50%;
  margin-left: -8px;
  border-width: 8px 8px 0 8px;
  border-top-color: rgba(28, 31, 27, 0.97);
}

#tiptip_holder.tip_bottom #tiptip_arrow {
  top: 1px;
  left: 50%;
  margin-left: -8px;
  border-width: 0 8px 8px 8px;
  border-bottom-color: rgba(45, 49, 43, 0.97);
}

#tiptip_holder.tip_right #tiptip_arrow {
  top: 50%;
  left: 1px;
  margin-top: -8px;
  border-width: 8px 8px 8px 0;
  border-right-color: rgba(36, 40, 35, 0.97);
}

#tiptip_holder.tip_left #tiptip_arrow {
  top: 50%;
  right: 1px;
  margin-top: -8px;
  border-width: 8px 0 8px 8px;
  border-left-color: rgba(36, 40, 35, 0.97);
}

#tiptip_content a {
  color: #8dd36a;
  text-decoration: none;
}

#tiptip_content a:hover {
  color: #a6e283;
  text-decoration: underline;
}

#tiptip_content strong,
#tiptip_content b {
  color: #fff;
}

/* =========================================================
   6. MODAL / UCOZ POPUP AREA
   ========================================================= */


.modal {
 display: none;
 position: fixed;
 z-index: 1000;
 left: 0;
 top: 0;
 width: 100%;
 height: 100%;
 overflow: auto;
 background-color: rgba(0,0,0,0.4);
}

.modal-content {
 background-color: #fefefe;
 margin: 10% auto;
 padding: 20px;
 border: 1px solid #888;
 width: 90%;
 max-width: 500px;
 border-radius: 8px;
 box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.close {
 color: #aaa;
 float: right;
 font-size: 28px;
 font-weight: bold;
 cursor: pointer;
}

.close:hover {
 color: black;
}
/* =========================================================
   7. CTA BLOCKS / FLOATING BUTTONS
   ========================================================= */
.feedback-button,
.ui-float-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #62c43a 0%, var(--ui-accent) 100%);
  color: #fff !important;
  box-shadow: 0 18px 34px rgba(85, 179, 48, .28);
  font-size: 16px;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform var(--ui-transition), box-shadow var(--ui-transition), background var(--ui-transition);
}

.feedback-button:hover,
.ui-float-btn:hover {
  background: linear-gradient(180deg, #58bb30 0%, var(--ui-accent-dark) 100%);
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(85, 179, 48, .34);
}

#go-top,
.ui-go-top {
  position: fixed;
  right: 20px;
  bottom: 96px;
  z-index: 999;
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, #62c43a 0%, var(--ui-accent) 100%);
  color: #fff !important;
  font-size: 18px;
  line-height: 44px;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 14px 28px rgba(85, 179, 48, .24);
  transition: transform var(--ui-transition), box-shadow var(--ui-transition), background var(--ui-transition);
}

#go-top:hover,
.ui-go-top:hover {
  background: linear-gradient(180deg, #58bb30 0%, var(--ui-accent-dark) 100%);
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(85, 179, 48, .30);
}

.ui-cta-box,
.akcent,
.aside-block {
  padding: 16px;
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius-md);
  background: #fff;
  box-shadow: var(--ui-shadow-sm);
}

.akcent {
  margin: 15px 0;
}

.aside-block {
  display: inline-block;
  margin: 10px 0;
  font-size: 13px;
}

.aside-block li:before {
  content: '— ';
  color: var(--ui-accent);
}

/* =========================================================
   8. UTILITY TEXT / HELPERS
   ========================================================= */
.note {
  color: #696a6a;
  font: italic 1.05em/1.45 'Times New Roman', Times, serif;
  text-align: center;
}

.tel,
a[href^='tel'] {
  text-decoration: none !important;
}

.tel {
  border-bottom: 1px dotted var(--ui-accent);
}

.red {
  color: var(--ui-accent);
}

.boldtext {
  font-weight: 700;
}

.center {
  margin-left: auto;
  margin-right: auto;
}

.right {
  text-align: right;
}

/* =========================================================
   FAQ / АККОРДЕОН — UFAOTDELKA.RU modern lite
   ========================================================= */

.faq-block {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

.faq-item {
  overflow: hidden;
  border: 1px solid #dde3d7;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(28, 37, 24, 0.06);
  transition:
    border-color .22s ease,
    box-shadow .22s ease,
    transform .22s ease,
    background-color .22s ease;
}

.faq-item:hover {
  border-color: #cfd9c7;
  box-shadow: 0 14px 30px rgba(28, 37, 24, 0.09);
}

.faq-item.active {
  border-color: rgba(85, 179, 48, 0.38);
  box-shadow:
    0 18px 38px rgba(28, 37, 24, 0.10),
    0 0 0 4px rgba(85, 179, 48, 0.06);
  background: linear-gradient(180deg, #ffffff 0%, #f8fcf4 100%);
}

.faq-question {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  margin: 0;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  color: #1f1f1f;
  font: 700 16px/1.45 "PT Sans Caption", Arial, sans-serif;
  letter-spacing: .2px;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.faq-question span {
  display: block;
  flex: 1 1 auto;
}

.faq-question .fa {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eef8e8;
  color: #55b330;
  font-size: 18px;
  line-height: 34px;
  text-align: center;
  transition:
    transform .22s ease,
    background-color .22s ease,
    color .22s ease,
    box-shadow .22s ease;
}

.faq-item:hover .faq-question .fa {
  background: #e3f5d9;
}

.faq-item.active .faq-question .fa {
  background: linear-gradient(180deg, #62c43a 0%, #55b330 100%);
  color: #fff;
  transform: rotate(180deg);
  box-shadow: 0 10px 20px rgba(85, 179, 48, 0.20);
}

.faq-answer {
  display: none;
  padding: 0 22px 20px;
}

.faq-answer-inner {
  padding: 16px 18px;
  border-top: 1px solid #e6ece0;
  color: #5f665c;
  font-size: 15px;
  line-height: 1.75;
}

.faq-answer-inner p:last-child {
  margin-bottom: 0;
}

.faq-answer-inner a {
  color: #55b330;
  text-decoration: none;
  border-bottom: 1px solid rgba(85, 179, 48, 0.25);
  transition: color .2s ease, border-color .2s ease;
}

.faq-answer-inner a:hover {
  color: #469825;
  border-color: rgba(70, 152, 37, 0.45);
}

/* компактный вариант внутри сайдбара или узкого блока */
.faq-block.faq-block--compact .faq-question {
  padding: 16px 18px;
  font-size: 15px;
}

.faq-block.faq-block--compact .faq-answer {
  padding: 0 18px 16px;
}

.faq-block.faq-block--compact .faq-answer-inner {
  padding: 14px 0 0;
  font-size: 14px;
}

/* адаптив */
@media (max-width: 767px) {
  .faq-block {
    gap: 12px;
    margin: 22px 0;
  }

  .faq-item {
    border-radius: 14px;
  }

  .faq-question {
    gap: 14px;
    padding: 16px 16px;
    font-size: 15px;
    line-height: 1.4;
  }

  .faq-question .fa {
    width: 30px;
    height: 30px;
    font-size: 16px;
    line-height: 30px;
  }

  .faq-answer {
    padding: 0 16px 16px;
  }

  .faq-answer-inner {
    padding: 14px 0 0;
    font-size: 14px;
    line-height: 1.65;
  }
}

@media (max-width: 480px) {
  .faq-question {
    padding: 14px 14px;
    font-size: 14px;
  }

  .faq-answer {
    padding: 0 14px 14px;
  }

  .faq-answer-inner {
    font-size: 13px;
  }
}

/* =========================================================
   9. RESPONSIVE
   ========================================================= */
@media (max-width: 767px) {
  .path {
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 11px;
    line-height: 18px;
    white-space: normal;
  }

  #breadcrumbs span[itemprop="itemListElement"] {
    white-space: normal;
  }

  .modal-content,
  .ui-modal,
  .ui-dialog {
    width: 94%;
    margin: 18% auto;
    padding: 20px;
  }

  .feedback-button,
  .ui-float-btn {
    right: 14px;
    bottom: 18px;
    width: 54px;
    height: 54px;
  }

  #go-top,
  .ui-go-top {
    right: 14px;
    bottom: 82px;
    width: 40px;
    height: 40px;
    line-height: 40px;
  }
}

@media (max-width: 600px) {
  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  .sl_button,
  .submit-btn,
  .cinf_mf_send,
  .ui-btn,
  .ui-cta,
  a.ui-btn,
  a.ui-cta {
    min-height: 42px;
    padding: 0 16px;
    font-size: 12px;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="password"],
  select,
  .cinf_mf_field,
  .ui-input,
  .ui-select {
    min-height: 44px;
    font-size: 14px;
    line-height: 44px;
  }

  textarea,
  .ui-textarea {
    min-height: 120px;
    font-size: 14px;
  }

  #tiptip_content {
    max-width: 220px;
    padding: 8px 11px;
    font-size: 11px;
    line-height: 1.4;
    border-radius: 8px;
  }
}
