/* ============================================================
   CENTRSPINA — СТИЛІ СТОРІНОК ПРОЦЕДУР
   Файл: wp-content/themes/YOUR-THEME/css/procedure.css

   Підключається через functions.php (див. нижче)
   Змінюєш тут — оновлює ВСІ сторінки процедур одразу
   ============================================================ */

/* ── RESET для сторінок процедур ─────────────────────────── */
.cs-page *,
.cs-page *::before,
.cs-page *::after {
  box-sizing: border-box;
}

/* Прибрати стандартні відступи теми на цих сторінках */
.cs-page .entry-content,
.cs-page .post-content,
.cs-page article,
.cs-page .site-content,
.cs-page main {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* ── ЗМІННІ ──────────────────────────────────────────────── */
.cs-page {
  --navy:    #0A1F35;
  --blue:    #1255CC;
  --blue2:   #1976D2;
  --teal:    #00897B;
  --teal2:   #00BFA5;
  --sky:     #EBF4FF;
  --warm:    #FAFAF7;
  --white:   #FFFFFF;
  --text:    #1A2B3C;
  --muted:   #5A6A7A;
  --border:  #D8E4F0;
  --r:       16px;
  --r-sm:    10px;
  --shadow:  0 4px 24px rgba(10,31,53,.08);
  --shadow-lg: 0 12px 48px rgba(10,31,53,.14);

  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

.cs-page h1, .cs-page h2 {
  font-family: 'Fraunces', serif;
  line-height: 1.2;
}
.cs-page h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); font-weight: 700; }
.cs-page h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; color: var(--navy); margin-bottom: 0; }
.cs-page h3 { font-size: 1rem; font-weight: 600; color: var(--navy); margin: 0; }
.cs-page p  { margin: 0; }

/* ── УТИЛІТИ ────────────────────────────────────────────── */
.cs-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal2);
  display: block;
  margin-bottom: 8px;
}
.cs-con {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.cs-sec { padding: 72px 0; }
.cs-sec--alt  { background: var(--warm); }
.cs-sec--sky  { background: var(--sky); }
.cs-sec--dark { background: var(--navy); }

/* ── HERO ───────────────────────────────────────────────── */
.cs-hero {
  background: linear-gradient(140deg, var(--navy) 0%, #0D2D50 50%, #133F6E 100%);
  padding: 88px 0 80px;
  position: relative;
  overflow: hidden;
}
.cs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 70% at 85% 40%, rgba(0,191,165,.13) 0%, transparent 70%);
  pointer-events: none;
}
.cs-hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  align-items: center;
  position: relative;
}
.cs-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,191,165,.18);
  border: 1px solid rgba(0,191,165,.4);
  color: rgba(255,255,255,.9);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.cs-hero h1 { color: #fff; margin-bottom: 18px; }
.cs-hero-sub {
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 520px;
}
.cs-hero-price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.15);
  padding: 8px 18px;
  border-radius: var(--r-sm);
  margin-bottom: 28px;
  color: rgba(255,255,255,.7);
  font-size: .88rem;
}
.cs-hero-price strong {
  color: #fff;
  font-size: 1.3rem;
  font-family: 'Fraunces', serif;
}
.cs-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.cs-btn-p {
  background: var(--teal2);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  display: inline-block;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 20px rgba(0,191,165,.35);
}
.cs-btn-p:hover { background: var(--teal); transform: translateY(-2px); color: #fff; }

.cs-btn-g {
  color: rgba(255,255,255,.82);
  padding: 14px 20px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.22);
  display: inline-block;
  transition: border-color .2s;
}
.cs-btn-g:hover { border-color: rgba(255,255,255,.55); color: #fff; }

/* Hero card */
.cs-hero-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r);
  padding: 28px;
}
.cs-hero-card-ttl {
  font-size: .7rem;
  color: rgba(255,255,255,.45);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 16px;
}
.cs-irow {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.cs-irow:last-child { border-bottom: none; padding-bottom: 0; }
.cs-irow-icon {
  width: 34px; height: 34px;
  background: rgba(0,191,165,.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.cs-irow-lbl { font-size: .72rem; color: rgba(255,255,255,.45); }
.cs-irow-val { font-size: .88rem; color: #fff; font-weight: 700; margin-top: 1px; }

/* ── MECHANISM ──────────────────────────────────────────── */
.cs-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.cs-what-text { color: var(--muted); margin-bottom: 20px; line-height: 1.75; }
.cs-mech-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.cs-mech-item { display: flex; gap: 12px; align-items: flex-start; }
.cs-mech-dot {
  width: 8px; height: 8px;
  background: var(--teal2);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}
.cs-mech-item span { color: var(--muted); font-size: .94rem; }

.cs-device {
  background: var(--sky);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
}
.cs-device-icon { font-size: 2.8rem; margin-bottom: 16px; }
.cs-device h3   { font-size: 1.05rem; margin-bottom: 18px; }
.cs-spec {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.cs-spec:last-child { border-bottom: none; }
.cs-spec-l { color: var(--muted); }
.cs-spec-v { font-weight: 700; color: var(--navy); }
.cs-price-accent { color: var(--teal); font-size: 1.05rem; }

/* ── INDICATIONS ────────────────────────────────────────── */
.cs-ind-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.cs-ind-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  transition: box-shadow .2s, transform .2s;
}
.cs-ind-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.cs-ind-icon  { font-size: 1.5rem; margin-bottom: 10px; }
.cs-ind-card h3 { font-size: .92rem; margin-bottom: 5px; }
.cs-ind-card p  { font-size: .82rem; color: var(--muted); }

/* ── CONTRAINDICATIONS ──────────────────────────────────── */
.cs-contra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
}
.cs-contra-box { border-radius: var(--r); padding: 24px; }
.cs-contra-box--red { background: #FFF0F0; border: 1px solid #FFCDD2; }
.cs-contra-box--yel { background: #FFFDE7; border: 1px solid #FFF176; }
.cs-contra-box h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .97rem;
  margin-bottom: 16px;
}
.cs-contra-item {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: .88rem;
  margin-bottom: 7px;
  color: var(--text);
}

/* ── STEPS ──────────────────────────────────────────────── */
.cs-steps { position: relative; margin-top: 32px; }
.cs-steps::before {
  content: '';
  position: absolute;
  left: 26px; top: 28px; bottom: 28px;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal2), var(--blue));
}
.cs-step { display: flex; gap: 22px; padding: 20px 0; }
.cs-step-n {
  width: 52px; height: 52px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--teal2);
}
.cs-step-body { padding-top: 10px; }
.cs-step-body h3 { font-size: 1rem; margin-bottom: 5px; }
.cs-step-body p  { color: var(--muted); font-size: .9rem; }
.cs-step-time {
  display: inline-block;
  margin-top: 7px;
  font-size: .76rem;
  font-weight: 700;
  color: var(--teal);
  background: #F0FAF6;
  padding: 3px 11px;
  border-radius: 100px;
}

/* ── PRICE ──────────────────────────────────────────────── */
.cs-price-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 24px;
}
.cs-price-table thead   { background: var(--navy); }
.cs-price-table th {
  padding: 14px 22px;
  text-align: left;
  color: rgba(255,255,255,.65);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600;
}
.cs-price-table tbody tr { border-bottom: 1px solid var(--border); transition: background .15s; }
.cs-price-table tbody tr:hover { background: var(--sky); }
.cs-price-table tbody tr:last-child { border-bottom: none; }
.cs-price-table td { padding: 16px 22px; font-size: .95rem; }
.cs-price-name { font-weight: 600; color: var(--navy); }
.cs-price-dur  { color: var(--muted); }
.cs-price-val  { font-weight: 800; color: var(--teal); font-size: 1.08rem; font-family: 'Fraunces', serif; }
.cs-price-note {
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--sky);
  border-radius: var(--r-sm);
  font-size: .88rem;
  color: var(--muted);
  border-left: 4px solid var(--blue2);
}

/* ── ADVANTAGES ─────────────────────────────────────────── */
.cs-adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.cs-adv-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 20px;
  transition: box-shadow .2s, transform .2s;
}
.cs-adv-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cs-adv-icon { font-size: 1.7rem; margin-bottom: 13px; }
.cs-adv-card h3 { font-size: .93rem; margin-bottom: 7px; }
.cs-adv-card p  { font-size: .83rem; color: var(--muted); }

/* ── REVIEWS ────────────────────────────────────────────── */
.cs-rev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.cs-rev-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.cs-rev-card::before {
  content: '"';
  position: absolute;
  top: 10px; left: 16px;
  font-size: 4rem;
  color: var(--sky);
  font-family: 'Fraunces', serif;
  line-height: 1;
  z-index: 0;
}
.cs-rev-stars  { color: #F59E0B; margin-bottom: 12px; font-size: .9rem; }
.cs-rev-text   { font-size: .88rem; color: var(--text); margin-bottom: 16px; font-style: italic; position: relative; z-index: 1; }
.cs-rev-author { display: flex; align-items: center; gap: 10px; }
.cs-rev-av     { width: 36px; height: 36px; background: var(--sky); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cs-rev-name   { font-weight: 700; font-size: .86rem; }
.cs-rev-src    { font-size: .74rem; color: var(--muted); }

/* ── FAQ ────────────────────────────────────────────────── */
.cs-faq-list   { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.cs-faq-item   { border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.cs-faq-q {
  width: 100%;
  text-align: left;
  padding: 17px 20px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
  font-size: .96rem;
  font-weight: 600;
  color: var(--navy);
  gap: 14px;
}
.cs-faq-q:hover          { background: var(--sky); }
.cs-faq-arrow            { flex-shrink: 0; color: var(--teal2); font-size: 1.2rem; transition: transform .3s; line-height: 1; }
.cs-faq-item.open .cs-faq-arrow { transform: rotate(45deg); }
.cs-faq-a                { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.cs-faq-item.open .cs-faq-a    { max-height: 400px; }
.cs-faq-ai               { padding: 4px 20px 18px; color: var(--muted); font-size: .92rem; line-height: 1.78; }

/* ── CTA ────────────────────────────────────────────────── */
.cs-cta-wrap {
  background: linear-gradient(140deg, var(--navy), #1255CC);
  border-radius: 22px;
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cs-cta-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 110%, rgba(0,191,165,.2) 0%, transparent 70%);
  pointer-events: none;
}
.cs-cta-wrap h2    { color: #fff; margin-bottom: 12px; position: relative; }
.cs-cta-wrap p     { color: rgba(255,255,255,.72); margin-bottom: 30px; font-size: 1.02rem; position: relative; }
.cs-cta-btns       { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.cs-btn-white {
  background: #fff;
  color: var(--navy);
  padding: 15px 34px;
  border-radius: var(--r-sm);
  font-weight: 800;
  text-decoration: none;
  font-size: .95rem;
  transition: transform .15s;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
  display: inline-block;
}
.cs-btn-white:hover { transform: translateY(-2px); color: var(--navy); }
.cs-btn-outline-w {
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  padding: 15px 30px;
  border-radius: var(--r-sm);
  font-weight: 700;
  text-decoration: none;
  font-size: .95rem;
  transition: border-color .2s;
  display: inline-block;
}
.cs-btn-outline-w:hover { border-color: #fff; color: #fff; }
.cs-cta-pills { display: flex; gap: 24px; justify-content: center; margin-top: 22px; flex-wrap: wrap; position: relative; }
.cs-cta-pill  { color: rgba(255,255,255,.65); font-size: .83rem; }
.cs-cta-pill::before { content: '✓ '; color: var(--teal2); font-weight: 800; }

/* ── CONTACTS ───────────────────────────────────────────── */
.cs-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 28px;
}
.cs-contact-col { padding: 36px 28px; border-right: 1px solid var(--border); }
.cs-contact-col:last-child { border-right: none; }
.cs-contact-icon { font-size: 1.8rem; margin-bottom: 12px; }
.cs-contact-col h3  { margin-bottom: 10px; }
.cs-contact-col p,
.cs-contact-col a   { color: var(--muted); font-size: .93rem; text-decoration: none; }
.cs-contact-col a   { color: var(--blue); font-weight: 600; }
.cs-sch-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: .86rem;
}
.cs-sch-row:last-child { border-bottom: none; }
.cs-sch-time { color: var(--blue2); font-weight: 700; }

/* ── RELATED ────────────────────────────────────────────── */
.cs-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.cs-related-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  transition: all .2s;
}
.cs-related-card:hover                   { background: var(--navy); border-color: var(--navy); }
.cs-related-card:hover h3,
.cs-related-card:hover p                 { color: #fff; }
.cs-related-card .cs-ri                  { font-size: 1.7rem; margin-bottom: 10px; }
.cs-related-card h3 { font-size: .86rem; color: var(--navy); margin-bottom: 4px; transition: color .2s; font-family: 'DM Sans', sans-serif; }
.cs-related-card p  { font-size: .76rem; color: var(--muted); transition: color .2s; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 880px) {
  .cs-hero-grid    { grid-template-columns: 1fr; }
  .cs-hero-card    { display: none; }
  .cs-two,
  .cs-ind-grid,
  .cs-adv-grid,
  .cs-rev-grid,
  .cs-contra-grid,
  .cs-contact-grid { grid-template-columns: 1fr !important; }
  .cs-related-grid { grid-template-columns: 1fr 1fr; }
  .cs-cta-wrap     { padding: 40px 22px; }
}
@media (max-width: 560px) {
  .cs-sec          { padding: 52px 0; }
  .cs-ind-grid,
  .cs-adv-grid,
  .cs-rev-grid     { grid-template-columns: 1fr; }
  .cs-btn-outline-w { margin-left: 0; margin-top: 10px; }
}

/* ── SVG ІКОНКИ ДЛЯ ПОКАЗАНЬ ──────────────────────────────── */
/* Надійніші за emoji — виглядають однаково у всіх браузерах  */

.cs-ind-icon-wrap { margin-bottom: 14px; }

/* CSS SVG іконка */
.cs-ind-css-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.cs-ind-css-icon svg {
  width: 100%; height: 100%;
  stroke: currentColor;
  fill: none;
}

/* 6 кольорових варіантів */
.cs-color-1 { background: #E8F4FD; color: #1565C0; }
.cs-color-2 { background: #E8F8F5; color: #00897B; }
.cs-color-3 { background: #FEF9E7; color: #D68910; }
.cs-color-4 { background: #FDEDEC; color: #C0392B; }
.cs-color-5 { background: #F5EEF8; color: #7D3C98; }
.cs-color-6 { background: #EAF2FF; color: #1A5276; }

/* Emoji іконка (якщо введено вручну через | emoji | назва | опис) */
.cs-ind-emoji {
  font-size: 2rem;
  display: block;
  /* Фіксований розмір — щоб emoji не ставала картинкою */
  font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif;
  line-height: 1;
}

/* Emoji у hero chip та device */
.cs-proc-emoji,
.cs-device-emoji {
  font-family: "Segoe UI Emoji", "Noto Color Emoji", "Apple Color Emoji", sans-serif;
}
.cs-device-emoji { font-size: 2.8rem; margin-bottom: 16px; display: block; }
