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

/* ---------- Кнопки ---------- */
.btn {
  --pad-y: .9em;
  --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: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .98rem;
  line-height: 1;
  text-align: center;
  transition: transform .18s, box-shadow .22s, background .22s, color .22s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--sm { --pad-y: .65em; --pad-x: 1.05em; font-size: .9rem; border-radius: 11px; }
.btn--lg { --pad-y: 1.05em; --pad-x: 1.9em; font-size: 1.06rem; border-radius: 16px; }
.btn--block { width: 100%; }

.btn--primary {
  background: linear-gradient(135deg, var(--azure-500), var(--mint-500));
  color: #fff;
  box-shadow: var(--shadow-ice);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 46px rgba(46,159,222,.36); }

.btn--ghost {
  background: var(--white);
  color: var(--azure-600);
  border: 2px solid var(--ice-200);
}
.btn--ghost:hover { border-color: var(--mint-500); color: var(--mint-500); transform: translateY(-2px); }

.btn--light {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 2px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
}
.btn--light:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); }

/* ---------- Бейдж ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  background: var(--white);
  color: var(--deep-800);
  border: 1px solid var(--ice-200);
  padding: .55em 1.05em;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
  box-shadow: var(--shadow-sm);
}
.badge__pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--mint-500);
  box-shadow: 0 0 0 0 rgba(31, 199, 182, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(31, 199, 182, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(31, 199, 182, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 199, 182, 0); }
}

/* ---------- Картки послуг ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 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; inset: 0 0 auto 0; height: 0;
  background: linear-gradient(135deg, rgba(46,159,222,.07), rgba(31,199,182,.07));
  transition: height .3s;
  z-index: 0;
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: var(--frost); }
.card:hover::before { height: 100%; }
.card > * { position: relative; z-index: 1; }
.card__icon {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ice-100), var(--ice-200));
  color: var(--azure-600);
  margin-bottom: 17px;
  border: 1px solid var(--ice-200);
}
.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: 700;
  color: var(--azure-600);
  background: var(--ice-50);
  border: 1px solid var(--ice-200);
  padding: .4em .9em;
  border-radius: 999px;
  font-size: .92rem;
}

/* ---------- Прайс-лист ---------- */
.pricelist {
  max-width: 860px; 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(--deep-900), var(--deep-800));
  color: var(--ice-100);
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase;
}
.pricelist__row:not(.pricelist__row--head):hover { background: var(--ice-50); }
.pricelist__name { font-weight: 600; }
.pricelist__name small { display: block; color: var(--slate); font-size: .82rem; font-weight: 500; }
.pricelist .price {
  font-family: var(--font-display); font-weight: 700; color: var(--azure-600);
  text-align: right; white-space: nowrap; font-size: 1.02rem;
}
.pricelist__note { text-align: center; color: var(--slate); font-size: .87rem; margin: 18px auto 0; max-width: 700px; }

/* ---------- Кроки ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
}
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px 26px;
  box-shadow: var(--shadow-sm);
}
.step__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.05rem;
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--azure-500), var(--mint-500));
  color: #fff;
  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(250px, 1fr));
  gap: var(--gap);
}
.feature {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  backdrop-filter: blur(6px);
  transition: transform .25s, border-color .25s, background .25s;
}
.feature:hover { transform: translateY(-5px); border-color: rgba(143,234,223,.45); background: rgba(255,255,255,.09); }
.feature__icon {
  display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 14px;
  background: rgba(143,234,223,.16); color: var(--mint-300);
  margin-bottom: 15px;
}
.feature h3 { color: var(--white); margin-bottom: .4rem; }
.feature p { color: rgba(231,242,251,.72); 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 strong {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  background: linear-gradient(135deg, var(--mint-300), var(--sky-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { color: rgba(231,242,251,.72); 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, box-shadow .2s;
}
.faq__item[open] { border-color: var(--frost); box-shadow: var(--shadow-sm); }
.faq__item summary {
  list-style: none; cursor: pointer;
  padding: 19px 24px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.04rem;
  color: var(--deep-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: ""; flex: none;
  width: 22px; height: 22px;
  background: var(--azure-500);
  -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(135deg); }
.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;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}
.contacts__ico {
  display: grid; place-items: center;
  width: 48px; height: 48px; flex: none;
  background: linear-gradient(135deg, var(--ice-100), var(--ice-200));
  border-radius: 14px; color: var(--azure-600);
}
.contacts__list small { display: block; color: var(--slate); font-size: .8rem; }
.contacts__list a, .contacts__list strong { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--deep-900); }
.contacts__list a:hover { color: var(--azure-500); }

.contacts__messengers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.msg {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .72em 1.3em; border-radius: 12px; font-weight: 700; font-size: .92rem;
  font-family: var(--font-display);
  border: 2px 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: linear-gradient(135deg, var(--azure-500), var(--mint-500)); 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: 7px;
  background: linear-gradient(135deg, var(--azure-500), var(--mint-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;
}

/* ---------- Сітка несправностей ---------- */
.faults { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.fault {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 18px 20px;
  transition: transform .2s, box-shadow .2s;
}
.fault:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.fault__ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ice-100), var(--frost));
  color: var(--azure-600);
}
.fault h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.fault p { margin: 0; color: var(--slate); font-size: .9rem; }

/* ---------- Плейсхолдер зображення ---------- */
.imgph {
  position: relative;
  display: grid; place-items: center;
  min-height: 220px;
  margin: 0;
  border-radius: var(--r-lg);
  border: 2px dashed var(--frost);
  color: var(--slate);
  text-align: center;
  background-color: var(--ice-50);
  background-image:
    linear-gradient(135deg, rgba(46,159,222,.06), rgba(31,199,182,.06));
  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: var(--sky-400); margin-bottom: 4px; }
.imgph__inner strong { font-family: var(--font-display); font-weight: 600; color: var(--azure-600); font-size: 1rem; }
.imgph__inner small { font-size: .78rem; color: var(--slate); }

/* ---------- FAB (плаваюча кнопка) ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: none; place-items: center;
  background: linear-gradient(135deg, var(--azure-500), var(--mint-500));
  color: #fff;
  box-shadow: 0 12px 30px rgba(46,159,222,.5);
  animation: pulse-fab 2.4s infinite;
}
@keyframes pulse-fab {
  0%   { box-shadow: 0 12px 30px rgba(46,159,222,.5), 0 0 0 0 rgba(46,159,222,.5); }
  70%  { box-shadow: 0 12px 30px rgba(46,159,222,.5), 0 0 0 16px rgba(46,159,222,0); }
  100% { box-shadow: 0 12px 30px rgba(46,159,222,.5), 0 0 0 0 rgba(46,159,222,0); }
}
