.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.center {
    text-align: center;
}

.mt-24 {
    margin-top: 24px;
}

.navbar {
    background: #2a2a2c;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-link {
    color: var(--muted);
    font-weight: 500;
    margin-left: 15px;
}

.nav-link:hover {
    color: #333;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }

    .benefits {
        flex-direction: column;
        align-items: center;
    }

    .benefit-item {
        max-width: 100%;
    }

}

/* === Форма відгуків === */
.review-form-wrapper {
    margin-top: 24px;
}

.review-form {
    display: none;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 6px 18px rgba(22, 28, 36, 0.06);
}

.review-form-wrapper.active .review-form {
    display: block;
}

.input-group {
    position: relative;
    margin-bottom: 18px;
}

.input-group i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 12px 14px 12px 38px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fafbfd;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 169, 239, 0.15);
}

.input-group textarea {
    min-height: 110px;
    resize: vertical;
}

.input-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239aa4b2' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    padding-right: 42px;
}

/* Повідомлення */
.success-message,
.error-message {
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    font-size: 0.95rem;
}

.success-message {
    background: #e6fbf0;
    color: #007a3b;
}

.error-message {
    background: #fff0f1;
    color: #b02a37;
}

/* Адаптив */
@media (max-width: 576px) {
    .review-form {
        padding: 18px;
    }

    .input-group input,
    .input-group textarea,
    .input-group select {
        padding: 10px 12px 10px 36px;
    }
}

/* Кнопка форми відгуків — темний текст, без синьої обводки */
.btn-dark-outline {
    background: linear-gradient(to bottom, #f8f9fa, #d3d7db);
    color: var(--text);
    border: 1px solid var(--btn-border-light);
    box-shadow: var(--shadow);
    font-weight: 600;
    padding: .8rem 1.2rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-dark-outline:hover {
    background: var(--background-alt);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-dark-outline i {
    color: var(--muted);
    font-size: 1.1em;
}

/* Стилі для послуг з фоновими зображеннями */
.service-item {
    position: relative;
    height: 280px;
    /* фіксована висота для рівномірності */
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Фонові зображення для кожної послуги */
.service-1 {
    background-image: url('https://miralux.com.ua/img/images.jpg');
}

.service-2 {
    background-image: url('https://miralux.com.ua/img/images3.jpg');
}

.service-3 {
    background-image: url('https://miralux.com.ua/img/images2.jpg');
}



/* Контент послуги з напівпрозорим фоном */
.service-content {
    background: rgba(196, 199, 202, 0.473);
    /* темно-сірий з прозорістю */
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    max-width: 90%;
    backdrop-filter: blur(4px);
    /* опціонально: ефект скла */
    -webkit-backdrop-filter: blur(4px);
}

.service-content h3 {
    color: rgba(3, 145, 67, 0.986);
    margin-bottom: 12px;
    font-size: 1.3rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.service-content p {
    color: rgba(14, 87, 109, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-content i {
    font-size: 2.2rem;
    margin-bottom: 16px;
    color: #0da9ef;
    /* або white — за бажанням */
    display: block;
}

/* Адаптив */
@media (max-width: 768px) {
    .service-content {
        background: rgba(214, 215, 216, 0.705);
        max-width: 90%;            /* чуть шире для узких экранов */
        padding: 10px 12px;        /* меньше отступов, значит ниже по высоте */
        border-radius: 10px;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        display: flex;
        flex-direction: column;
        justify-content: center;   /* выравнивание по вертикали */
        align-items: center;       /* выравнивание по горизонтали */
        text-align: center;
        min-height: 120px;         /* ограничиваем минимальную высоту */
    }

    .service-content h3 {
        font-size: 1.12rem;
        margin-bottom: 6px;
    }

    .service-content p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
}


/* Іконка в квадраті/крузі */
.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    /* або 50% для круга */
    background: linear-gradient(135deg, #226b8dbe, #024e77bb);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 4px 12px rgba(13, 169, 239, 0.3);
}

.service-icon i {
    font-size: 28px;
    color: white;
}

/* Жовті зірочки відгуків */
.card-rating {
    margin: 0;
    color: #FFD700;
    /* жовтий колір (золотий) */
    font-size: 1.2rem;
    line-height: 1;
}

/* Додаткова гарантія рівної висоти */
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* ================== ФУТЕР ================== */
.site-footer {
  margin-top: 100px;
  padding: 60px 0 30px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo {
  display: inline-block;
  margin-bottom: 16px;
}
.footer-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.footer-links h3,
.footer-contacts h3,
.footer-cta h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--text);
}
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: var(--muted);
  transition: color 0.2s;
  text-decoration: underline;
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-contacts address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.6;
}
/* Контакти — без підкреслення */
.footer-contacts a {
  color: var(--muted);
  text-decoration: none; /* ✅ виправлено */
}
.footer-contacts a:hover {
  color: var(--primary);
  /* не обов’язково додавати підкреслення */
}
.footer-cta p {
  color: var(--muted);
  margin: 12px 0 20px;
}
.footer-cta .social-icons {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  text-decoration: none; /* ← змінено на 'none' */
}
.footer-cta .social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.2rem;
  transition: all 0.25s ease;
  text-decoration: none; /* ← змінено на 'none' */
}
.footer-cta .social-icons a:hover {
  background: var(--primary);
  color: #000;
  transform: translateY(-2px);
}
.footer-btn {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
}
.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ================== ФУТЕР ================== */
.site-footer {
  margin-top: 100px;
  padding: 60px 0 30px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: var(--text);
}
.footer-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 90%;
}
.footer-links h3,
.footer-contacts h3,
.footer-cta h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--text);
}
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-contacts address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.6;
}
.footer-contacts a {
  color: var(--muted);
  text-decoration: none;
}
.footer-contacts a:hover {
  color: var(--primary);
}
.footer-cta p {
  color: var(--muted);
  margin: 12px 0 20px;
  font-size: 0.95rem;
}
.footer-cta .social-icons {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}
.footer-cta .social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.2rem;
  transition: all 0.25s ease;
  text-decoration: none; /* ✅ без підкреслення */
}
.footer-cta .social-icons a:hover {
  background: var(--primary);
  color: #000;
  transform: translateY(-2px);
}
.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ================== АДАПТИВНІСТЬ ДЛЯ МОБІЛЬНИХ ================== */
@media (max-width: 768px) {
  .site-footer {
    padding: 40px 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-brand,
  .footer-links,
  .footer-contacts,
  .footer-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  .footer-desc {
    max-width: 90%;
  }

  .footer-links ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer-links li {
    margin: 0;
  }

  .footer-contacts address {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .footer-contacts p {
    margin: 0;
  }

  .footer-cta .social-icons {
    justify-content: center;
  }

  .footer-bottom {
    margin-top: 30px;
  }
  .footer-contacts h3 {
    display: none;
  }
}

/* Для дуже малих екранів */
@media (max-width: 480px) {
  .site-footer {
    padding: 30px 16px 16px;
  }

  .footer-grid {
    gap: 24px;
  }

  .footer-brand h2 {
    font-size: 1.3rem;
  }

  .footer-desc {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .footer-links h3,
  .footer-cta h3 {
    font-size: 1.15rem;
  }

  .footer-bottom p {
    font-size: 0.85rem;
  }
  .footer-contacts h3 {
    display: none;
  }
}