/*solar-power-plant-type_style.css*/
/* СПІЛЬНИЙ шаблонний стиль для сторінок-типів СЕС:
   /solar-power-plant/hybrid, /grid, /off-grid.
   Самодостатній: залежить лише від токенів у глобальному styles.css
   (--accent, --accent-dark, --dark, --muted, --bg, --radius, --shadow,
    --shadow-hover, --max-width). Нових кольорів не вводить.
   Один файл — три сторінки. Міняючи контент у PHP, CSS чіпати не треба. */

/* =========================
   BASE
========================= */
* { margin: 0; padding: 0; }

body { background: var(--bg); color: var(--dark); line-height: 1.7; }

section { width: 100%; padding: 50px 10px; }

.container { width: 100%; max-width: var(--max-width); margin: auto; }

h1, h2, h3 { color: var(--dark); line-height: 1.15; font-weight: 800; }
h1 { font-size: clamp(42px, 6vw, 72px); margin-bottom: 24px; }
h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 22px; }
h3 { font-size: 22px; margin-bottom: 14px; }
p  { color: var(--muted); margin-bottom: 16px; }

ul { list-style: none; padding-left: 0; }
li { margin-bottom: 10px; }

button {
  padding: 12px 24px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 600;
}
button:hover { opacity: .9; }

/* =========================
   DARK SECTION
========================= */
.section-dark { background: #0f172a; }
.section-dark > .container > .section-heading h2 { color: #fff; }
.section-dark > .container > .section-heading p  { color: rgba(255,255,255,.72); }
.section-dark .section-label { color: rgba(255,255,255,.55); }

/* =========================
   SECTION HEADER
========================= */
.section-heading { margin-bottom: 40px; }
.section-heading.center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }

.section-label {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

/* =========================
   BREADCRUMBS
========================= */
.breadcrumbs { padding: 16px 10px 0; }
.breadcrumbs .container {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 14px; color: var(--muted);
}
.breadcrumbs a { color: var(--muted); text-decoration: none; transition: color .2s; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs-current { color: var(--dark); font-weight: 600; }

/* =========================
   HERO
========================= */
.hero {
  overflow: hidden;
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
  isolation: isolate;
}
.hero h1, .hero h2, .hero h3 { color: #fff; }
.hero p, .hero li, .hero span { color: #cbd5e1; }

.background-image-hero {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  z-index: 0;
}
.hero::after {
  content: ""; position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(rgba(15,23,42,.75), rgba(15,23,42,.75));
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }

.hero-label { display: inline-block; font-size: 14px; opacity: .85; margin-bottom: 12px; }
.hero-subtitle { max-width: 850px; margin: 20px auto; color: rgba(255,255,255,.85); }
.hero-list { list-style: none; max-width: 700px; margin: 20px auto; }
.hero-list li {
  background: rgba(255,255,255,.08);
  padding: 12px; border-radius: 10px; margin-bottom: 10px;
  backdrop-filter: blur(6px); text-align: left;
}
.hero-btn {
  padding: 20px 40px;
  font-size: clamp(18px, 2vw, 22px);
  border-radius: 10px; font-weight: 700; min-width: 260px;
  box-shadow: 0 15px 40px rgba(0,195,255,.3);
  transition: all .3s ease;
}
.hero-btn:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,195,255,.5); }

/* =========================
   ПРИНЦИП РОБОТИ — timeline-інфографіка (НОВИЙ компонент для сторінки-типу)
   Горизонтальна стрічка з номерами-кружками та з'єднувальною лінією.
   На мобільному перетворюється на вертикальний timeline.
========================= */
.flow {
  display: flex;
  flex-wrap: nowrap;
  counter-reset: flow;
  margin-top: 10px;
}
.flow-step {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 78px 12px 0;
}
/* номер-кружок */
.flow-step::before {
  counter-increment: flow;
  content: counter(flow);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  z-index: 2;
  box-shadow: 0 6px 18px rgba(0,195,255,.35);
}
/* з'єднувальна лінія до наступного кроку */
.flow-step::after {
  content: "";
  position: absolute;
  top: 27px;
  left: 50%;
  width: 100%;
  height: 3px;
  background: rgba(0,195,255,.35);
  z-index: 1;
}
.flow-step:last-child::after { display: none; }

.flow-step h3 { font-size: 16px; margin-bottom: 6px; color: var(--dark); }
.flow-step p  { font-size: 13px; color: var(--muted); margin-bottom: 0; }

/* на темній секції — світлий текст */
.section-dark .flow-step h3 { color: #fff; }
.section-dark .flow-step p  { color: rgba(255,255,255,.72); }

/* мобільний вигляд — вертикальний timeline */
@media (max-width: 768px) {
  .flow { flex-direction: column; }
  .flow-step {
    text-align: left;
    padding: 4px 0 26px 72px;
    min-height: 54px;
  }
  .flow-step::before { left: 0; transform: none; }
  .flow-step::after {
    top: 54px;
    left: 27px;
    width: 3px;
    height: 100%;
  }
}

/* =========================
   ПЕРЕВАГИ — інфографіка "за / проти"
========================= */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.pc-panel {
  background: #fff; border: 1px solid rgba(15,23,42,.08);
  border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow);
}
.pc-pros { border-top: 4px solid var(--accent); }
.pc-cons { border-top: 4px solid #94a3b8; }
.pc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.pc-head h3 { margin: 0; color: var(--dark); }
.pc-badge {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; line-height: 1;
}
.pc-badge--yes { background: rgba(0,195,255,.14); color: var(--accent-dark); }
.pc-badge--no  { background: rgba(148,163,184,.18); color: #475569; }
.pc-list li { position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--dark); font-weight: 500; }
.pc-list li:last-child { margin-bottom: 0; }
.pc-list li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.pc-pros .pc-list li::before { content: "✓"; color: var(--accent); }
.pc-cons .pc-list li::before { content: "–"; color: #94a3b8; }

/* =========================
   КОМУ ПІДХОДИТЬ — 2 колонки (дім / бізнес)
========================= */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.audience-card {
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.audience-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-hover); }
.audience-card h3 { color: var(--dark); }
.audience-card ul { margin: 16px 0 22px; }
.audience-card li {
  position: relative; padding-left: 26px; margin-bottom: 12px;
  color: var(--dark); font-weight: 500;
}
.audience-card li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(0,195,255,.15);
}

/* =========================
   КОМПОНЕНТИ (спільні з home): category / power / process / cases / hub / reading / faq / callout
========================= */

/* callout */
.callout-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px; background: rgba(0,195,255,.06); border-left: 4px solid var(--accent);
  border-radius: 14px; padding: 24px 28px;
}
.callout-box p { margin-bottom: 0; max-width: 640px; color: var(--dark); }
.callout-link {
  flex: 0 0 auto; display: inline-block; white-space: nowrap;
  background: var(--accent); color: #fff; font-weight: 700;
  padding: 12px 22px; border-radius: 10px; text-decoration: none; transition: transform .2s;
}
.callout-link:hover { transform: translateY(-2px); }

/* обладнання — category cards */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.category-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fff; border-radius: var(--radius); padding: 28px 20px;
  box-shadow: var(--shadow); text-decoration: none; color: var(--dark);
  transition: transform .25s, box-shadow .25s;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.category-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(0,195,255,.12); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.category-icon svg { width: 26px; height: 26px; }
.category-card h3 { font-size: 18px; margin-bottom: 8px; color: var(--dark); }
.category-card p  { font-size: 14px; margin-bottom: 0; color: var(--muted); }

/* потужність / комплекти — power cards (темний текст навіть у .section-dark) */
.power-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.power-card {
  display: block;
  position: relative; background: #fff; border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow);
  border-top: 4px solid transparent; transition: transform .25s, box-shadow .25s;
  text-decoration: none; color: inherit;
}
.power-card:hover .power-link { text-decoration: underline; }
.power-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.power-card--featured { border-top-color: var(--accent); }
.power-badge {
  position: absolute; top: 16px; right: 16px;
  background: rgba(0,195,255,.12); color: var(--accent-dark);
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.power-value { display: block; font-size: 30px; font-weight: 800; color: var(--accent); margin-bottom: 10px; line-height: 1; }
.power-card h3, .section-dark .power-card h3 { color: var(--dark); font-size: 18px; margin-bottom: 8px; }
.power-card p,  .section-dark .power-card p  { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.power-link, .section-dark .power-card .power-link {
  display: inline-block; color: var(--accent-dark); font-weight: 700; font-size: 14px; text-decoration: none;
}
.power-link:hover { text-decoration: underline; }

/* вартість / етапи — process cards (темний текст навіть у .section-dark) */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.process-card { background: #fff; border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); text-align: center; }
.process-card span { display: block; font-size: 30px; font-weight: 800; color: var(--accent); opacity: .5; margin-bottom: 10px; }
.process-card h3, .section-dark .process-card h3 { color: var(--dark); font-size: 17px; margin-bottom: 8px; }
.process-card p,  .section-dark .process-card p  { color: var(--muted); font-size: 14px; margin-bottom: 0; }

/* кейси — карусель */
.cases-carousel { position: relative; margin-top: 20px; }
.cases-viewport { overflow: hidden; }
.cases-track { display: flex; transition: transform .6s ease; }
.case-slide { min-width: 33.3333%; padding: 12px; box-sizing: border-box; }
.case-slide-inner {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); height: 100%; transition: transform .35s, box-shadow .35s;
}
.case-slide-inner:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.case-slide-inner img { width: 100%; height: 200px; object-fit: cover; display: block; }
.case-slide-body { padding: 22px; }
.case-slide-badge {
  display: inline-block; background: rgba(0,195,255,.12); color: var(--accent-dark);
  font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.case-slide-body h3 { font-size: 19px; margin-bottom: 8px; color: var(--dark); text-align: left; }
.case-slide-body p  { font-size: 14px; color: var(--muted); margin-bottom: 0; text-align: left; }
.cases-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: var(--accent); border: none; color: #fff; font-size: 24px;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; z-index: 5; margin: 0;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.15);
}
.cases-btn:hover { opacity: .9; }
.cases-btn.left  { left: -12px; }
.cases-btn.right { right: -12px; }

/* =========================
   ПОРІВНЯЛЬНА ТАБЛИЦЯ ТИПІВ (НОВИЙ компонент для сторінки-типу)
   Колонку поточного типу підсвічуємо класом .is-current
========================= */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.compare-table {
  width: 100%;
  min-width: 620px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.compare-table th,
.compare-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(15,23,42,.08);
  font-size: 15px;
  color: var(--dark);
}

.compare-table thead th {
  background: #0f172a;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.compare-table tbody tr:last-child td { border-bottom: none; }

.compare-table td:first-child,
.compare-table th:first-child {
  font-weight: 600;
  color: var(--dark);
  background: var(--bg);
}

.compare-table thead th:first-child { background: #0f172a; color: #fff; }

/* підсвічена колонка поточного типу */
.compare-table .is-current { background: rgba(0,195,255,.08); }
.compare-table thead th.is-current {
  background: var(--accent);
  color: #fff;
  position: relative;
}
.compare-table td.is-current { border-left: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.compare-table tbody tr:last-child td.is-current { border-bottom: 2px solid var(--accent); }

.cmp-yes { color: var(--accent-dark); font-weight: 700; }
.cmp-no  { color: #94a3b8; }

/* кнопки під стовпцями порівняльної таблиці (у <tfoot>) */
.compare-table tfoot td {
  padding: 16px 12px;
  background: #fff;
  border-bottom: none;
  border-top: 1px solid rgba(15,23,42,.08);
  vertical-align: top;
}
.compare-table tfoot td:first-child { background: var(--bg); }
.compare-table tfoot td.is-current {
  border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}
.compare-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-sizing: border-box;
  transition: transform .2s, background .2s;
}
a.compare-cta { background: var(--accent); color: #fff; }
a.compare-cta:hover { transform: translateY(-2px); }
.compare-cta--current {
  background: transparent;
  color: var(--accent-dark);
  border: 2px solid var(--accent);
  cursor: default;
}

/* =========================
   ЧИТАЙТЕ ТАКОЖ — list (темна секція)
========================= */
.reading-list { border-top: 1px solid rgba(255,255,255,.12); }
.reading-list li { margin-bottom: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.reading-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 4px; text-decoration: none; color: inherit;
  transition: padding-left .2s, background-color .2s;
}
.reading-list a:hover { padding-left: 14px; background: rgba(255,255,255,.04); }
.reading-list-title { flex: 0 0 auto; min-width: 260px; font-weight: 700; color: #fff; }
.reading-list-desc  { flex: 1; color: #cbd5e1; font-size: 14px; }
.reading-list-arrow { flex: 0 0 auto; color: var(--accent); font-size: 20px; transition: transform .2s; }
.reading-list a:hover .reading-list-arrow { transform: translateX(4px); }

/* =========================
   FAQ — accordion (темна секція)
========================= */
.faq-list { border-top: 1px solid rgba(255,255,255,.12); }
.faq-item {
  background: none; padding: 0; border-radius: 0; margin-bottom: 0;
  border-bottom: 1px solid rgba(255,255,255,.12); cursor: pointer;
}
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none; padding: 22px 4px;
  font-size: 17px; font-weight: 700; color: #fff; text-align: left;
  font-family: inherit; cursor: pointer; margin-bottom: 0;
}
.faq-question:hover { opacity: 1; }
.faq-icon { flex: 0 0 auto; font-size: 22px; font-weight: 400; color: var(--accent); transition: transform .25s; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; padding: 0 4px; transition: max-height .3s ease, padding .3s ease; }
.faq-item.active .faq-answer { max-height: 260px; padding-bottom: 22px; }
.faq-answer p { color: #cbd5e1; margin-bottom: 0; }

/* =========================
   ІНШІ ТИПИ / ДИВІТЬСЯ ТАКОЖ — hub cards на БІЛОМУ фоні
========================= */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.hub-card {
  display: flex; align-items: flex-start; gap: 16px; padding: 28px 24px;
  border-radius: 16px; background: #fff; border: 1px solid rgba(15,23,42,.08);
  text-decoration: none; color: var(--dark); box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative; overflow: hidden;
}
.hub-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform .35s ease; transform-origin: left;
}
.hub-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-hover); }
.hub-card:hover::before { transform: scaleX(1); }
.hub-card-body { flex: 1; }
.hub-card-body h3 { color: var(--dark); font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.hub-card-body p  { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.hub-arrow { color: var(--accent); font-size: 20px; flex-shrink: 0; align-self: center; transition: transform .3s ease; }
.hub-card:hover .hub-arrow { transform: translateX(4px); }

/* =========================
   CONTACT FORM overrides
========================= */
.contact-form-section h1,
.contact-form-section h2,
.contact-form-section h3 { color: #fff; background: linear-gradient(135deg,#0f172a,#111827); }
.contact-form-title h2 { color: #fff; }
.section-dark.contact-form-section h2,
.section-dark.contact-form-section h1,
.section-dark.contact-form-section h3 { color: #fff !important; }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 992px) {
  section { padding: 40px 0; }
  .container { padding: 0 16px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .case-slide { min-width: 50%; }
}
@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  p  { font-size: 15px; }
  .hero-btn { min-width: auto; width: 100%; padding: 16px; }
  .pros-cons, .two-col { grid-template-columns: 1fr; }
  .power-grid, .category-grid { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: 1fr; }
  .hub-card { padding: 20px 18px; }
  .callout-box { flex-direction: column; align-items: flex-start; }
  .case-slide { min-width: 100%; }
  .cases-btn { display: none; }
}
@media (max-width: 480px) {
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .hero-list li { font-size: 14px; }
}