/* ===========================================================
   components.css — кнопки, картки, прайс, кроки, FAQ, контакти
   Інженерний стиль: гострі кути, рамки-лінії, кутові акценти.
   =========================================================== */

/* ---------- Кнопки ---------- */
.btn {
  --pad-y: .82em;
  --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: 700;
  font-size: .98rem;
  line-height: 1;
  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: .62em; --pad-x: 1.05em; font-size: .9rem; }
.btn--lg { --pad-y: 1.02em; --pad-x: 1.9em; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn--primary {
  background: linear-gradient(135deg, var(--aqua-600), var(--aqua-400));
  color: #04282a;
  box-shadow: 0 10px 26px rgba(15, 182, 189, .34);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(15, 182, 189, .48); }

.btn--solid {
  background: var(--steel-800);
  color: var(--ice-100);
}
.btn--solid:hover { transform: translateY(-2px); background: var(--steel-700); }

.btn--ghost {
  background: transparent;
  color: var(--steel-800);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--aqua-500); color: var(--aqua-600); }
.section--dark .btn--ghost { color: var(--ice-100); border-color: rgba(255,255,255,.25); }
.section--dark .btn--ghost:hover { border-color: var(--aqua-400); color: var(--aqua-300); }

/* ---------- Бейдж ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  background: rgba(25, 198, 201, .1);
  color: var(--steel-700);
  border: 1px solid rgba(25, 198, 201, .32);
  padding: .5em 1em;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
}
.badge__pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--aqua-500);
  box-shadow: 0 0 0 0 rgba(25, 198, 201, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(25, 198, 201, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(25, 198, 201, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 198, 201, 0); }
}

/* ---------- Картки послуг (кутовий інженерний акцент) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: var(--gap);
}
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px 26px;
  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: 34px; height: 34px;
  background: linear-gradient(135deg, var(--aqua-500) 0 50%, transparent 50%);
  opacity: .9;
  transition: width .3s, height .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--aqua-400); }
.card:hover::before { width: 46px; height: 46px; }
.card__icon {
  position: relative;
  display: inline-grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--ice-100);
  color: var(--steel-700);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: .4rem; }
.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(--steel-800);
  border: 1px solid var(--ice-200);
  background: var(--ice-050);
  padding: .4em .85em;
  border-radius: var(--r-sm);
  font-size: .92rem;
}

/* ---------- Прайс-таблиця ---------- */
.pricelist {
  max-width: 880px; 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: var(--steel-900); 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-050); }
.pricelist__row span:first-child { padding-left: 14px; position: relative; }
.pricelist__row:not(.pricelist__row--head) span:first-child::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 1px; background: var(--aqua-500);
}
.pricelist .price {
  font-family: var(--font-display); font-weight: 700; color: var(--steel-800);
  text-align: right; white-space: nowrap;
}
.pricelist .price small {
  display: block; font-family: var(--font-body); font-weight: 600;
  color: var(--aqua-600); font-size: .72rem;
}
.pricelist__note { text-align: center; color: var(--slate); font-size: .86rem; margin: 18px auto 0; max-width: 700px; }

/* ---------- Кроки ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--gap);
}
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px 26px;
}
.step__num {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1rem;
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border: 2px solid var(--aqua-500);
  color: var(--steel-800);
  border-radius: var(--r-sm);
  margin-bottom: 16px;
}
.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(240px, 1fr));
  gap: 14px;
}
.symptom {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--aqua-500);
  border-radius: var(--r-sm);
  padding: 18px 20px;
  transition: transform .2s, box-shadow .2s;
}
.symptom:hover { transform: translateX(3px); box-shadow: var(--shadow-sm); }
.symptom__ico {
  flex: none; color: var(--aqua-600); margin-top: 1px;
}
.symptom strong { display: block; font-family: var(--font-display); font-weight: 700; margin-bottom: 2px; }
.symptom span { color: var(--slate); font-size: .9rem; }

/* ---------- Переваги (на темному) ---------- */
.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 rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: 28px 24px;
}
.feature__icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  background: rgba(25, 198, 201, .14);
  color: var(--aqua-400);
  margin-bottom: 16px;
}
.feature h3 { color: var(--white); margin-bottom: .35rem; }
.feature p { color: rgba(231,240,246,.66); font-size: .95rem; margin: 0; }

/* ---------- Статистика ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--gap);
  margin-top: clamp(34px, 5vw, 58px);
}
.stat {
  text-align: center;
  padding: 22px 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
}
.stat strong {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  color: var(--aqua-400);
  letter-spacing: -0.02em;
}
.stat span { color: rgba(231,240,246,.66); font-size: .9rem; }

/* ---------- 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(--aqua-400); }
.faq__item summary {
  list-style: none; cursor: pointer;
  padding: 19px 22px;
  font-family: var(--font-display); font-weight: 700; 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: 12px; height: 12px;
  background: var(--aqua-600);
  -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='3' 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='3' 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 22px 20px; }
.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: 14px; }
.contacts__ico {
  display: grid; place-items: center;
  width: 48px; height: 48px; flex: none;
  background: var(--ice-100); color: var(--steel-700);
  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: 700; font-size: 1.12rem; }
.contacts__list a:hover { color: var(--aqua-600); }

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

/* ---------- Зображення / плейсхолдер ---------- */
.imgph {
  position: relative;
  display: grid; place-items: center;
  min-height: 240px;
  margin: 0;
  border-radius: var(--r-lg);
  border: 2px dashed var(--ice-200);
  color: var(--slate);
  text-align: center;
  background-color: var(--ice-050);
  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(--aqua-400); margin-bottom: 4px; }
.imgph__inner strong { font-family: var(--font-display); font-weight: 700; color: var(--steel-700); font-size: 1rem; }

/* ---------- Список з галочками ---------- */
.ticklist { display: grid; gap: 11px; margin: 18px 0 26px; }
.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(--aqua-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(--aqua-600), var(--aqua-400));
  color: #04282a;
  box-shadow: 0 10px 28px rgba(15, 182, 189, .5);
  animation: pulse-fab 2.4s infinite;
}
@keyframes pulse-fab {
  0%   { box-shadow: 0 10px 28px rgba(15,182,189,.5), 0 0 0 0 rgba(15,182,189,.5); }
  70%  { box-shadow: 0 10px 28px rgba(15,182,189,.5), 0 0 0 16px rgba(15,182,189,0); }
  100% { box-shadow: 0 10px 28px rgba(15,182,189,.5), 0 0 0 0 rgba(15,182,189,0); }
}
