/* Основні стилі */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

a {
    text-decoration: none;
    color: black;
}

header {
    background: rgb(153, 153, 153);
    display: flex;
    align-items: center;
    padding: 10px 0;
}

/* Логотип */
header .logo {
    width: 20%;
    display: flex;
    justify-content: flex-end;
}

header .logo img {
    width: 130px;
    padding: 15px 10px;
}

/* Навігація */
header nav {
    width: 80%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
}

header nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li {
    padding: 5px 25px;
    color: white;
    font-size: 20px;
}

header nav ul li a {
    color: white;
}

header nav ul li a:hover {
    color: #97ca2d;
}

/* Контактна інформація */
.contacts {
    display: flex;
    align-items: center;
}

.contacts .phone {
    margin-right: 20px;
    font-weight: bold;
    color: white;
}

.contacts .telegram img {
    width: 30px;
    margin-right: 15px;
    cursor: pointer;
}

.contacts .telegram img:hover {
    transform: scale(1.2);
}

/* Кнопка консультації */
.consult {
    margin-left: 20px;
}

.btn-consult {
    width: 190px;
    border-radius: 20px;
    color: white;
    padding: 10px 10px;
    background: #97ca2d;
    border: none;
    cursor: pointer;
}

.btn-consult:hover {
    background-color: #6b9e23;
}

/* Кнопка "Детальніше" */
.btn-details {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background-color: #97ca2d;
    color: white;
    font-size: 16px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-details:hover {
    background-color: #86b327;
}

/* Гамбургер меню */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
}

/* Адаптивність */
@media (max-width: 768px) {
    header nav {
        flex-direction: column;
    }
    
    header nav ul {
        flex-direction: column;
        background-color: rgb(153, 153, 153);
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        display: none;
        z-index: 10;
    }
    
    header nav ul.active {
        display: flex;
    }

    header nav ul li {
        text-align: center;
        padding: 15px 0;
        width: 100%;
    }

    .hamburger {
        display: flex;
    }

    .contacts {
        display: none;
    }
}

.slider {
    position: relative;
    height: 78vh;
    overflow: hidden;
}

.slider-item {
    display: none;
    height: 89vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.slider-item.active {
    display: block;
    animation: fade 1.5s;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) contrast(1.2);
}

.slider-caption {
    width: 50%;
    position: absolute;
    top: 30%;
    left: 23%;
    color: white;
    padding: 15px 20px;
}

.slider-caption h2 {
    font-size: 48px; /* Збільшений розмір */
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6); /* Тінь для кращої видимості */
}

.slider-caption p {
    font-size: 20px; /* Збільшений розмір */
    max-width: 90%;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Тінь для тексту */
    line-height: 1.5;
}

.last-words {
    color: #97ca2d;
    font-weight: bold;
}

@keyframes fade {
    from {
        opacity: 0.5;
    }
    to {
        opacity: 1;
    }
}

/* Кнопки перемикання */
.slider-controls {
    position: absolute;
    width: 95%;
    top: 50%;
    display: flex;
    justify-content: space-between;
}

.slider-controls .prev, .slider-controls .next {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 15px;
    border-radius: 50%;
    margin: 0 10px;
}

.slider-controls .prev:hover, .slider-controls .next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
    .slider-caption {
        bottom: 20px;
        left: 20px;
        font-size: 14px;
        padding: 10px 15px;
    }

    .slider-caption h2 {
        font-size: 20px;
    }

    .slider-caption p {
        font-size: 14px;
    }

    .slider-controls .prev,
    .slider-controls .next {
        padding: 10px;
    }
}

/* Адаптивність для секцій */
@media (max-width: 768px) {
    section {
        padding: 20px;
    }

    section h2 {
        font-size: 24px;
    }
}

/* Стилі для індикаторів (кружечків) */
.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    position: absolute;
    z-index: 10;
    bottom: 30px;
    left: 48%;
}

.slider-indicators .indicator {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-indicators .indicator.active {
    background-color: #97ca2d;
}

/* Секції після слайдера */
section {
    padding: 50px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

section h2 {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}



/* Основний блок */
#projects {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    padding: 20px;
    align-items: center;
}

/* Карточка проекту */
.project-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 40%;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card.expanded {
    width: 78%; /* Тепер розтягується на всю ширину */
}

.project-header {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.project-header img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.project-info {
    display: flex;
    flex-direction: column;
}

.btn-details {
    background-color: #97ca2d;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    margin-top: 10px;
    cursor: pointer;
}

/* Розгорнута частина */
.project-details {
    display: none;
    gap: 20px;
    background-color: #f9f9f9;
    padding: 20px;
}

.details-content {
    display: flex;
    gap: 20px;
    width: 100%;
}

.left-part {
    flex: 2;
    background: #fff;
    border: 2px solid #97ca2d;
    border-radius: 15px;
    padding: 15px 15px;
}


.right-part {
    display: flex;
    align-items: center;
    flex-direction: column;
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

/* Комплектація */
.equipment-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.equipment-item img {
    width: 20%;
    /* height: 50px; */
    object-fit: cover;
    border-radius: 5px;
}

.equipment-info {
    display: flex;
    flex-direction: column;
}


.price-block {
    display: flex;
    gap: 10px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
}

.new-price {
    color: red;
    font-weight: bold;
}

/* Вартість комплекту */
.cost-block {
    margin-bottom: 15px;
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.total-price {
    color: #d91212;
    font-size: 32px;
    font-weight: bold;
    border-block: 2px dashed black;
    padding: 10px 0px;
}

.count-act {
    width: 90%;
    display: flex;
    justify-content: space-between;
}

.count-act-p {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.count-act-details {
    list-style: none; /* Забираємо стандартні маркери */
    padding-left: 0;
    margin-left: 20px; /* Відступ для гарного вигляду */
    text-align: left;
}

.count-act-details li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Іконка перед пунктом */
.count-act-details li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #97ca2d;
    font-size: 14px;
}

.pgreen {
    color: #97ca2d;
}

.install-price {
    color: #666;
}

.actions {
    display: flex;
    gap: 10px;
}


.btn-buy, .btn-calc {
    background-color: #0057b7;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-buy:hover, .btn-calc:hover {
    background-color: #003f8e;
}

.ups-section {
    margin: 20px;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 8px;
}
.block-power-ups {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-evenly;
}

.power-selection {
    text-align: center;
    margin-bottom: 20px;
}

.radio-group {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    position: relative;
    padding-left: 30px;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #4CAF50;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 5px;
    transition: border-color 0.3s;
}

/* Анімація при виборі */
.radio-group input[type="radio"]:checked + .radio-custom {
    background-color: #4CAF50;
    border-color: #388E3C;
}

.radio-group input[type="radio"]:checked + .radio-custom::after {
    content: "";
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 4px;
    left: 4px;
    animation: pop 0.3s ease forwards;
}

/* Анімація вибору */
@keyframes pop {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

.checkbox-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 18px;
    cursor: pointer;
}

.chart-container {
    margin: 20px auto;
    max-width: 700px;
    height: 400px; /* або 400px за потреби */
}

#upsChart {
    width: 100% !important;
    height: 100% !important;
}

.devices-info-block {
    width: 35%;
}

.info-text {
    display: block;
    text-align: center;
    font-size: 16px;
}

.devices-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.device {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.device img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
}

.device p {
    margin: 5px 0;
    font-size: 14px;
}

#selectedPower {
    font-weight: bold;
    margin-top: 10px;
}

/* Чому Ми? */

.why-us-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.why-us-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 700;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-us-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.why-us-item:hover {
    transform: translateY(-5px);
}

.why-us-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.why-us-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.why-us-item p {
    font-size: 14px;
    color: #333;
}

.faq-section.dual-layout {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background: #f7f9f8;
    border-radius: 12px;
}

.faq-layout {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.faq-left {
    flex: 1 1 60%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-right {
    flex: 1 1 35%;
}

.faq-support-box {
    background: #eaf4ee;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-support-box h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a3d2c;
}

.faq-support-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-support-box ul li {
    margin-bottom: 5px;
    font-size: 15px;
}

.btn-cta {
    background-color: #97ca2d;
    color: white;
    border: none;
    padding: 12px 18px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.btn-cta:hover {
    background-color: #87b329;
}

.faq-support-box .note {
    font-size: 13px;
    color: #666;
    margin-top: -10px;
}


.faq-section {
    padding: 40px;
    background: #f9f9f9;
    border-radius: 12px;
    max-width: 1000px;
    margin: 40px auto;
}

.faq-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    padding: 15px 20px;
    background: #e9f5ec;
    border: none;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
    font-size: 18px;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #d2ead7;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    background: #fff;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 15px 20px;
}

.consultation-section {
  background: url('/img/solar-bg.webp') center/cover no-repeat;
  padding: 80px 20px;
  position: relative;
}

#consultationForm {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.65);
  padding: 40px 30px;
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.form-container h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
}

.form-container p {
  font-size: 16px;
  margin-bottom: 25px;
  text-align: center;
}

.form-container input,
.form-container textarea {
  width: 80%;
  padding: 14px 16px;
  margin-bottom: 18px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
}

.form-container textarea {
  resize: vertical;
  min-height: 100px;
}

.form-container button {
  width: 100%;
  padding: 14px 16px;
  background-color: #97ca2d;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.form-container button:hover {
  background-color: #7fa827;
}
























/* Стилі для модального вікна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 20px;
    cursor: pointer;
}


.about-section {
  padding: 80px 20px;
  background-color: #f9fafe;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

.about-text {
  flex: 1 1 500px;
}

.about-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0f172a;
}

.about-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #1e293b;
}

.about-highlight {
  background-color: #f3fbea;
  border-left: 6px solid #97ca2d;
  border-radius: 12px;
  padding: 24px 30px;
  font-size: 17px;
  font-weight: 500;
  color: #4a700f;
  box-shadow: 0 4px 12px rgba(151, 202, 45, 0.15);
  line-height: 1.6;
}

.about-highlight strong {
  color: #608f1b;
  font-weight: 700;
}

/* Галерея */
.about-gallery {
  flex: 1 1 400px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.about-img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  height: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-img.large {
  grid-column: span 2;
  height: 200px;
}

.about-img.small {
  height: 140px;
}

@media (max-width: 768px) {
  .about-grid {
    flex-direction: column;
  }

  .about-gallery {
    grid-template-columns: 1fr 1fr;
  }
}



.main-footer {
  background: #0f172a;
  color: #f1f5f9;
  padding: 60px 20px 30px;
  font-family: 'Segoe UI', sans-serif;
  position: relative;
  overflow: hidden;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.footer-brand h2 {
  font-size: 28px;
  font-weight: 700;
  color: #97ca2d;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 16px;
  color: #cbd5e1;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  margin-bottom: 12px;
  font-size: 18px;
  color: #ffffff;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #97ca2d;
}

.footer-contact p {
  font-size: 15px;
  margin-bottom: 8px;
  color: #cbd5e1;
}

.footer-social .social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.footer-social a {
  font-size: 18px;
  color: #97ca2d;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
}

/* Фонове сяйво */
.main-footer::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(151,202,45,0.12) 0%, transparent 70%);
  animation: pulse 15s infinite;
  z-index: 1;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 0.5; }
  100% { transform: scale(1); opacity: 0.7; }
}