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

/* ---------- Кнопки ---------- */
.btn {
  --pad-y: .85em;
  --pad-x: 1.5em;
  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;
  letter-spacing: -0.01em;
  text-align: center;
  transition: transform .16s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  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.06rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: var(--yellow-500);
  color: var(--graphite-950);
  box-shadow: 0 8px 22px rgba(255, 212, 0, .34);
}
.btn--primary:hover { transform: translateY(-2px); background: var(--yellow-400); box-shadow: 0 14px 32px rgba(255, 212, 0, .5); }

.btn--dark {
  background: var(--graphite-900);
  color: var(--white);
}
.btn--dark:hover { transform: translateY(-2px); background: var(--graphite-800); box-shadow: var(--shadow-md); }

.btn--ghost {
  background: transparent;
  color: var(--graphite-900);
  border: 2px solid var(--graphite-900);
}
.btn--ghost:hover { background: var(--graphite-900); color: var(--white); }
.section--dark .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.4); }
.section--dark .btn--ghost:hover { background: var(--white); color: var(--graphite-900); border-color: var(--white); }

/* ---------- Бейдж ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  background: var(--graphite-900);
  color: var(--white);
  padding: .55em 1.05em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .85rem;
}
.badge__pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--yellow-500);
  box-shadow: 0 0 0 0 rgba(255, 212, 0, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 212, 0, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(255, 212, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 212, 0, 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;
  transition: transform .22s, box-shadow .22s, border-color .22s;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--yellow-500), var(--amber-500));
  transform: scaleY(0); transform-origin: top;
  transition: transform .28s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--graphite-900); }
.card:hover::before { transform: scaleY(1); }
.card__icon {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--graphite-900);
  color: var(--yellow-500);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--slate); font-size: .96rem; margin-bottom: 1.1rem; }
.card__price {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--graphite-900);
  border: 1.5px solid var(--line);
  padding: .4em .85em;
  border-radius: var(--r-xs);
  font-size: .92rem;
}
.card__price b { color: var(--amber-500); }

/* ---------- Прайс-лист ---------- */
.pricelist {
  max-width: 880px; margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  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: var(--graphite-900); color: var(--white);
  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(--paper); }
.pricelist__row span:first-child { font-weight: 500; }
.pricelist .price {
  font-family: var(--font-display); font-weight: 600; color: var(--graphite-900);
  text-align: right; white-space: nowrap;
}
.pricelist .price b { color: var(--amber-500); }
.pricelist__note { text-align: center; color: var(--slate); font-size: .86rem; margin: 18px 0 0; }

/* ---------- Кроки ---------- */
.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 {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  background: var(--graphite-900);
  color: var(--yellow-500);
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--slate); font-size: .95rem; margin: 0; }

/* ---------- Переваги ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: var(--gap);
}
.feature {
  background: var(--graphite-850);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: 28px 26px;
}
.feature__icon {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: var(--r-sm);
  background: rgba(255,212,0,.12); color: var(--yellow-500);
  margin-bottom: 16px;
}
.feature h3 { color: var(--white); margin-bottom: .4rem; }
.feature p { color: rgba(246,247,249,.66); font-size: .95rem; margin: 0; }

/* ---------- Статистика ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: var(--gap);
  margin-top: clamp(34px, 5vw, 58px);
}
.stat {
  padding: 22px 18px;
  border-left: 2px solid var(--yellow-500);
}
.stat strong {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: var(--white); letter-spacing: -0.03em;
}
.stat span { color: rgba(246,247,249,.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: var(--graphite-900); }
.faq__item summary {
  list-style: none; cursor: pointer;
  padding: 19px 24px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none;
  width: 18px; height: 18px;
  background: var(--graphite-900);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .25s;
}
.faq__item[open] summary::after { transform: rotate(45deg); background: var(--amber-500); }
.faq__body { padding: 0 24px 21px; }
.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: 15px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
}
.contacts__ico {
  display: grid; place-items: center;
  width: 48px; height: 48px; flex: none;
  background: var(--graphite-900); color: var(--yellow-500);
  border-radius: var(--r-sm);
}
.contacts__list small { display: block; color: var(--slate); font-size: .82rem; }
.contacts__list a, .contacts__list strong {
  font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--graphite-900);
}
.contacts__list a:hover { color: var(--amber-500); }

.contacts__messengers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.msg {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .75em 1.3em; border-radius: var(--r-sm); font-weight: 600; font-size: .92rem;
  font-family: var(--font-display);
  border: 2px solid transparent; transition: transform .16s, box-shadow .16s, opacity .16s;
}
.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(--yellow-500); color: var(--graphite-950); }

/* ---------- Список з галочками ---------- */
.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: var(--r-xs);
  background: var(--yellow-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;
  background-blend-mode: normal;
}
.section--dark .ticklist li { color: rgba(246,247,249,.78); }

/* ---------- Плейсхолдер зображення ---------- */
.imgph {
  position: relative;
  display: grid; place-items: center;
  min-height: 220px;
  margin: 0;
  border-radius: var(--r-lg);
  border: 2px dashed #c8ccd4;
  color: var(--slate);
  text-align: center;
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(45deg, rgba(13,14,17,.035) 0 14px, transparent 14px 28px);
  overflow: hidden;
}
img.imgph { display: block; object-fit: cover; width: 100%; height: 100%; border-style: solid; border-color: var(--line); }
.imgph__inner { display: grid; justify-items: center; gap: 4px; padding: 16px; }
.imgph__inner svg { color: #aab0bc; margin-bottom: 4px; }
.imgph__inner strong { font-family: var(--font-display); font-weight: 600; color: var(--graphite-800); font-size: 1rem; }
.imgph__inner small { font-size: .78rem; color: #9aa0ac; }

/* ---------- FAB ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: none; place-items: center;
  background: var(--yellow-500);
  color: var(--graphite-950);
  box-shadow: 0 10px 28px rgba(255, 212, 0, .55);
  animation: pulse-fab 2.4s infinite;
}
@keyframes pulse-fab {
  0%   { box-shadow: 0 10px 28px rgba(255,212,0,.5), 0 0 0 0 rgba(255,212,0,.5); }
  70%  { box-shadow: 0 10px 28px rgba(255,212,0,.5), 0 0 0 16px rgba(255,212,0,0); }
  100% { box-shadow: 0 10px 28px rgba(255,212,0,.5), 0 0 0 0 rgba(255,212,0,0); }
}
