/* ===========================================================
   components.css — кнопки, картки, прайс, кроки, FAQ, контакти
   =========================================================== */

/* ---------- Кнопки ---------- */
.btn {
  --pad-y: .9em;
  --pad-x: 1.5em;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: var(--pad-y) var(--pad-x);
  border: 0;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  text-align: center;
  letter-spacing: -0.01em;
  transition: transform .18s, box-shadow .22s, background .22s, color .22s, border-color .22s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--sm { --pad-y: .65em; --pad-x: 1.05em; font-size: .9rem; }
.btn--lg { --pad-y: 1.05em; --pad-x: 1.9em; font-size: 1.04rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: linear-gradient(135deg, var(--brass-500), var(--brass-400));
  color: #221504;
  box-shadow: 0 12px 28px rgba(201, 151, 74, .34);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(201, 151, 74, .46); }

.btn--ghost {
  background: transparent;
  color: var(--night-800);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--brass-500); color: var(--brass-600); }
.section--dark .btn--ghost { color: var(--mist); border-color: var(--line-d); }
.section--dark .btn--ghost:hover { border-color: var(--brass-400); color: var(--brass-300); }

/* ---------- Бейдж ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  background: rgba(201, 151, 74, .12);
  color: var(--brass-300);
  border: 1px solid rgba(201, 151, 74, .32);
  padding: .55em 1.05em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .84rem;
  letter-spacing: .01em;
}
.badge__pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brass-400);
  box-shadow: 0 0 0 0 rgba(219, 176, 105, .6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(219, 176, 105, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(219, 176, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(219, 176, 105, 0); }
}

/* ---------- Картки послуг ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: var(--gap);
}
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--brass-500), var(--brass-300));
  opacity: 0; transition: opacity .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(201,151,74,.4); }
.card:hover::before { opacity: 1; }
.card__icon {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: linear-gradient(145deg, var(--night-800), var(--night-600));
  color: var(--brass-300);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: .45rem; color: var(--night-900); }
.card p { color: var(--slate); font-size: .96rem; margin-bottom: 1.1rem; }
.card__price {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--night-800);
  border: 1px solid var(--line);
  background: var(--mist);
  padding: .4em .85em;
  border-radius: var(--r-sm);
  font-size: .92rem;
}

/* ---------- Прайс-лист ---------- */
.pricelist {
  max-width: 840px; margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.pricelist__row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 17px 26px;
  border-bottom: 1px solid var(--line);
}
.pricelist__row:last-child { border-bottom: 0; }
.pricelist__row--head {
  background: linear-gradient(135deg, var(--night-800), var(--night-700));
  color: var(--mist);
  font-family: var(--font-display); font-weight: 600; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase;
}
.pricelist__row:not(.pricelist__row--head):hover { background: var(--mist); }
.pricelist .price {
  font-family: var(--font-display); font-weight: 700; color: var(--night-800);
  text-align: right; white-space: nowrap;
}
.pricelist .price small {
  display: block; font-family: var(--font-body); font-weight: 600;
  color: var(--brass-600); font-size: .72rem;
}
.pricelist__note { text-align: center; color: var(--slate); font-size: .86rem; margin: 18px auto 0; max-width: 600px; }

/* ---------- Кроки ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: var(--gap);
}
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
}
.step__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 2.4rem;
  color: var(--mist-2);
  -webkit-text-stroke: 1px var(--brass-400);
  display: block; margin-bottom: .2rem; line-height: 1;
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--slate); font-size: .95rem; margin: 0; }

/* ---------- Симптоми (несправності) ---------- */
.symptoms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--gap);
}
.symptom {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass-500);
  border-radius: var(--r-md);
  padding: 22px 22px;
  transition: transform .2s, box-shadow .2s;
}
.symptom:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.symptom__ico {
  flex: none; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(201,151,74,.14); color: var(--brass-600);
}
.symptom h3 { font-size: 1.04rem; margin-bottom: .25rem; }
.symptom p { color: var(--slate); font-size: .92rem; margin: 0; }

/* ---------- Переваги ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: var(--gap);
}
.feature {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-d);
  border-radius: var(--r-lg);
  padding: 28px 26px;
}
.feature__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: rgba(201,151,74,.16); color: var(--brass-300);
  margin-bottom: 16px;
}
.feature h3 { color: var(--white); margin-bottom: .35rem; font-size: 1.1rem; }
.feature p { color: rgba(245,246,251,.66); font-size: .95rem; margin: 0; }

/* ---------- Статистика ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--gap);
  margin-top: clamp(34px, 5vw, 58px);
  text-align: center;
}
.stat { padding: 8px; }
.stat strong {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: var(--brass-400);
}
.stat span { color: rgba(245,246,251,.66); font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color .2s;
}
.faq__item[open] { border-color: rgba(201,151,74,.5); }
.faq__item summary {
  list-style: none; cursor: pointer;
  padding: 19px 24px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  color: var(--night-900);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; font-size: 1.5rem; color: var(--brass-600); transition: transform .25s; line-height: 1; flex: none;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 24px 22px; }
.faq__body p { color: var(--slate); margin: 0; }

/* ---------- Контакти ---------- */
.contacts__list { display: grid; gap: 16px; margin: 28px 0; }
.contacts__list li { display: flex; align-items: center; gap: 16px; }
.contacts__ico {
  display: grid; place-items: center;
  width: 50px; height: 50px; flex: none;
  background: linear-gradient(145deg, var(--night-800), var(--night-600));
  color: var(--brass-300);
  border-radius: var(--r-md);
}
.contacts__list small { display: block; color: var(--slate); font-size: .8rem; }
.contacts__list a, .contacts__list strong { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--night-900); }
.contacts__list a:hover { color: var(--brass-600); }

.contacts__messengers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.msg {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .75em 1.35em; border-radius: var(--r-sm); font-weight: 600; font-size: .92rem;
  font-family: var(--font-display);
  border: 1.5px solid transparent; transition: transform .18s, box-shadow .18s, opacity .18s;
}
.msg:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.msg--viber { background: #7360f2; color: #fff; }
.msg--tg { background: #2aabee; color: #fff; }
.msg--call { background: var(--night-800); color: #fff; }

/* ---------- Список з галочками ---------- */
.ticklist { display: grid; gap: 11px; margin: 20px 0 28px; }
.ticklist li { position: relative; padding-left: 32px; color: var(--slate); }
.ticklist li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--brass-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' stroke='%23000' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' stroke='%23000' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ---------- FAB ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: none; place-items: center;
  background: linear-gradient(135deg, var(--brass-500), var(--brass-400));
  color: #221504;
  box-shadow: 0 12px 30px rgba(201, 151, 74, .5);
  animation: pulse-fab 2.6s infinite;
}
@keyframes pulse-fab {
  0%   { box-shadow: 0 12px 30px rgba(201,151,74,.5), 0 0 0 0 rgba(201,151,74,.5); }
  70%  { box-shadow: 0 12px 30px rgba(201,151,74,.5), 0 0 0 16px rgba(201,151,74,0); }
  100% { box-shadow: 0 12px 30px rgba(201,151,74,.5), 0 0 0 0 rgba(201,151,74,0); }
}
