/* Явно указываем цвет текста и плейсхолдера */
#consultationModal input,
#consultationModal textarea {
  color: #111; /* Тёмный текст */
  background-color: #fff; /* Светлый фон */
}

/* Чтобы placeholder был тоже видим */
#consultationModal input::placeholder,
#consultationModal textarea::placeholder {
  color: #777;
}


.footer {
  background-color: #222;
  color: #ddd;
  padding: 40px 20px 20px;
  font-size: 14px;
  font-family: 'Arial', sans-serif;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-contact,
.footer-links,
.footer-social {
  flex: 1 1 250px;
  min-width: 220px;
}

.footer h3 {
  color: #ffb400;
  margin-bottom: 15px;
  font-weight: 700;
}

.footer a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #ffb400;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.social-icons a {
  color: #ddd;
  font-size: 20px;
  margin-right: 15px;
  display: inline-block;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #ffb400;
}

.footer-bottom {
  border-top: 1px solid #444;
  margin-top: 30px;
  padding-top: 15px;
  text-align: center;
  color: #888;
}

/* Адаптивность */

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 30px;
  }

  .footer-contact,
  .footer-links,
  .footer-social {
    min-width: 100%;
  }
}

 .service-card {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 20px 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.service-card h2 {
  color: #ffb400;
}

.service-card p {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}
.btn {
  background: linear-gradient(to right, #ffcc00, #ff9900);
  color: #000;
  padding: 14px 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255, 153, 0, 0.3);
  transition: all 0.3s ease;
}

.btn:hover {
  background: linear-gradient(to right, #ffdd33, #ffaa00);
  box-shadow: 0 6px 14px rgba(255, 153, 0, 0.4);
  transform: translateY(-2px);
}
  

  /* Контейнер и заголовок */
  .contact-section {
    background: #f7f9fc;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
  }
  .container {
    max-width: 480px;
    width: 100%;
  }
  .section-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #222;
    text-align: center;
  }

  /* Форма */
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* Группа с иконкой и полем */
  .input-group {
    position: relative;
  }
  .input-group .icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: #bbb;
    pointer-events: none;
  }

  /* Поля ввода */
  .contact-form input,
  .contact-form textarea {
    padding: 15px 15px 15px 45px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s ease;
    width: 100%;
    resize: vertical;
  }
  .contact-form input:focus,
  .contact-form textarea:focus {
    border-color: #ffb400;
    outline: none;
    box-shadow: 0 0 6px rgba(255, 180, 0, 0.6);
  }

  /* Ошибка валидации */
  .error-message {
    color: #d9534f;
    font-size: 0.875rem;
    margin-top: 5px;
    min-height: 18px;
  }

  /* Кнопка */
  .btn-submit {
    position: relative;
    padding: 15px 0;
    background: linear-gradient(90deg, #ffb400, #ffa500);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.15s ease;
    overflow: hidden;
  }
  .btn-submit:hover:not(:disabled) {
    background: linear-gradient(90deg, #ffa500, #ffb400);
    transform: scale(1.05);
  }
  .btn-submit:active:not(:disabled) {
    transform: scale(0.98);
  }
  .btn-submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
  }

  /* Текст кнопки */
  .btn-text {
    position: relative;
    z-index: 2;
  }

  /* Спиннер */
  .spinner {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border: 3px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .btn-submit.loading .spinner {
    opacity: 1;
  }
  .btn-submit.loading .btn-text {
    opacity: 0.5;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  /* Модальное окно */
  .modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  .modal.hidden {
    display: none;
  }
  .modal-content {
    background: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  }
  .modal-content h4 {
    margin-bottom: 15px;
    font-size: 1.8rem;
  }
  .modal-content p {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  .btn-close {
    background: #ffb400;
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    font-size: 1rem;
    transition: background 0.3s ease;
  }
  .btn-close:hover {
    background: #ffa500;
  }

  /* Адаптив */
  @media (max-width: 480px) {
    .contact-section {
      padding: 40px 15px;
    }
  }

   /* Контейнер */
  .contact-section {
    background: #f7f9fc;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
  }
  .container {
    max-width: 480px;
    width: 100%;
  }

  /* Заголовок */
  .section-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #222;
    text-align: center;
  }

  /* Форма */
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  /* Поля ввода */
  .contact-form input,
  .contact-form textarea {
    padding: 15px 18px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s ease;
    resize: vertical;
  }

  .contact-form input:focus,
  .contact-form textarea:focus {
    border-color: #ffb400;
    outline: none;
    box-shadow: 0 0 6px rgba(255, 180, 0, 0.6);
  }

  /* Кнопка */
  .btn-submit {
    padding: 15px 0;
    background: linear-gradient(90deg, #ffb400, #ffa500);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.15s ease;
  }

  .btn-submit:hover {
    background: linear-gradient(90deg, #ffa500, #ffb400);
    transform: scale(1.05);
  }

  .btn-submit:active {
    transform: scale(0.98);
  }

  /* Адаптив */
  @media (max-width: 480px) {
    .contact-section {
      padding: 40px 15px;
    }
  }
    /* Сброс */
    * {
      margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
    body {
      background: #f9f9f9; color: #333; line-height: 1.5;
    }
    a {
      color: #f39c12; text-decoration: none;
    }
    a:hover {
      text-decoration: underline;
    }
    /* Контейнер */
    .container {
      max-width: 1100px; margin: 0 auto; padding: 0 15px;
    }
    /* Хедер */
    header {
      background: #fff;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      position: sticky;
      top: 0;
      z-index: 10;
    }
    .header-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 60px;
    }
    .logo {
      font-weight: 700;
      font-size: 1.5rem;
      color: #f39c12;
    }
    nav ul {
     display: flex;
  gap: 32px;
  align-items: center;
    }
	
   nav ul li a {
  color: #333;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

nav ul li a:hover {
  color: #00a859;
  border-bottom: 2px solid #00a859;
  transform: scale(1.05);
}

.menu a {
  color: #333;
  text-decoration: none;
  padding: 10px 16px;
  display: inline-block;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

.menu a:hover {
  color: #00a859;
  border-bottom: 2px solid #00a859;
}

.custom-cursor {
  cursor: default; /* обычный стрелочный курсор */
  color: gray;
  text-decoration: none;
}

    /* Мобильное меню */
    .menu-toggle {
      display: none;
      flex-direction: column;
      cursor: pointer;
      width: 25px;
      height: 20px;
      justify-content: space-between;
    }
    .menu-toggle div {
      height: 3px;
      background: #f39c12;
      border-radius: 2px;
    }
    @media (max-width: 768px) {
      nav ul {
        position: fixed;
        top: 60px;
        right: -100%;
        background: #fff;
        height: calc(100% - 60px);
        width: 200px;
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
        box-shadow: -2px 0 5px rgba(0,0,0,0.15);
        transition: right 0.3s ease;
      }
      nav ul.open {
        right: 0;
      }
      .menu-toggle {
        display: flex;
      }
    }

    /* Главный блок */
    .hero {
      background: url('images/paneli2.png') no-repeat center center/cover;
      height: 70vh;
      color: #fff;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: 0 20px;
      position: relative;
    }
	
	
    .hero::after {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(0,0,0,0.4);
      z-index: 0;
    }
    .hero-content {
      position: relative;
      z-index: 1;
      max-width: 700px;
    }
    .hero h1 {
      font-size: 3rem;
      margin-bottom: 20px;
      text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
    }
    .hero p {
      font-size: 1.2rem;
      margin-bottom: 30px;
      text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    }
    .btn-primary {
      background: #f39c12;
      padding: 15px 30px;
      border: none;
      border-radius: 5px;
      font-weight: 700;
      cursor: pointer;
      color: #fff;
      box-shadow: 0 4px 8px rgba(243,156,18,0.4);
      transition: background 0.3s ease;
    }
    .btn-primary:hover {
      background: #d47c0e;
    }

    /* Почему выбирают нас */
    .benefits {
      background: #fff;
      padding: 60px 20px;
      text-align: center;
    }
    .benefits h2 {
      font-size: 2.5rem;
      margin-bottom: 40px;
      color: #f39c12;
    }
    .benefits-grid {
      display: flex;
      justify-content: center;
      gap: 40px;
      flex-wrap: wrap;
    }
    .benefit {
      background: #fef6e4;
      padding: 20px;
      border-radius: 10px;
      max-width: 280px;
      box-shadow: 0 2px 8px rgba(243,156,18,0.2);
    }
    .benefit-icon {
      font-size: 3rem;
      margin-bottom: 15px;
      color: #f39c12;
    }
    .benefit h3 {
      margin-bottom: 10px;
      font-weight: 700;
      font-size: 1.2rem;
    }
    .benefit p {
      font-size: 1rem;
      color: #555;
    }

    /* Портфолио */
    .portfolio {
      padding: 60px 20px;
      text-align: center;
    }
    .portfolio h2 {
      font-size: 2.5rem;
      margin-bottom: 40px;
      color: #f39c12;
    }
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
      gap: 20px;
      max-width: 1100px;
      margin: 0 auto;
    }
    .gallery-grid img {
      width: 100%;
      height: 180px;
      object-fit: cover;
      border-radius: 10px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.15);
      cursor: pointer;
      transition: transform 0.3s ease;
    }
    .gallery-grid img:hover {
      transform: scale(1.05);
    }

    /* Форма обратной связи */
    .contact {
      background: #fff;
      padding: 60px 20px;
      text-align: center;
    }
    .contact h2 {
      font-size: 2.5rem;
      margin-bottom: 40px;
      color: #f39c12;
    }
    form {
      max-width: 500px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 15px;
    }
    form input, form textarea {
      padding: 12px;
      border: 1px solid #ccc;
      border-radius: 6px;
      font-size: 1rem;
      resize: vertical;
    }
    form button {
      padding: 15px;
      border: none;
      background: #f39c12;
      color: white;
      font-weight: 700;
      font-size: 1.1rem;
      border-radius: 6px;
      cursor: pointer;
      transition: background 0.3s ease;
    }
    form button:hover {
      background: #d47c0e;
    }

    /* Футер */
    footer {
      background: #222;
      color: #fff;
      text-align: center;
      padding: 20px 15px;
      font-size: 0.9rem;
    }
    footer a {
      color: #f39c12;
      margin: 0 10px;
      text-decoration: none;
    }
    footer a:hover {
      text-decoration: underline;
    }
	
	.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.modal-content input {
  margin: 10px 0;
  padding: 12px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.modal-content .btn-submit {
  margin-top: 15px;
  width: 100%;
}

.close-btn {
  background: none;
  color: #888;
  margin-top: 15px;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.burger span {
  display: block;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
    display: none;
  }

  .nav.active {
    display: flex;
  }
}

@media (max-width: 768px) {
  .header .text-right {
    display: none;
  }
}

.service-card {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 20px 25px;
  margin-bottom: 25px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.service-card i {
  min-width: 60px;
}

.service-card h2 {
  color: #ffb400;
  margin-bottom: 6px;
}

.service-card p {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

/* Адаптивность */

@media (max-width: 768px) {
  .service-card {
    flex-direction: column;
    text-align: center;
  }

  .service-card i {
    margin-bottom: 15px;
  }
}

   #toTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #ffb400;
  color: #000;
  border: none;
  padding: 12px 14px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 999;
  transition: background 0.3s ease, transform 0.2s ease;
}

#toTopBtn:hover {
  background-color: #e0a000;
  transform: translateY(-3px);
}

.services-ua {
  padding: 60px 20px;
  background-color: #fff;
}

.services-ua h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 40px;
  color: #333;
}

.services-ua .service-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.service-card {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  flex: 1 1 300px;
  max-width: 400px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #e0a000;
}

.service-card p {
  font-size: 16px;
  color: #555;
  line-height: 1.5;
  text-align: left;
}

.service-block {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
  }
  .service-text {
    flex: 1;
    padding-right: 20px;
  }
  .service-image {
    flex: 1;
    max-width: 400px;
  }
  .service-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  @media (max-width: 768px) {
    .service-block {
      flex-direction: column;
    }
    .service-text, .service-image {
      max-width: 100%;
      padding-right: 0;
    }
    .service-image {
      margin-top: 20px;
    }
  }
  
  img.serv {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

a svg {
  cursor: pointer;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px auto;
  max-width: 1200px;
  width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
 
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Растягивает карточку равномерно */
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.blog-card .content {
  padding: 16px;
  flex: 1; /* Контент занимает оставшееся пространство */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-card .date {
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
}

.blog-card h2 {
  font-size: 20px;
  color: #222;
  margin: 0 0 10px;
  transition: color 0.2s ease;
}

.blog-card:hover h2 {
  color: #FFB400;
}

.blog-card .content p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-bottom: auto;
}

.read-more {
  margin-top: 12px;
  display: inline-block;
  font-weight: 500;
  color: #FFB400;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }
}

/* 🌐 Мобильная адаптация */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    padding: 0 12px;
  }

  .blog-card img {
    height: 160px;
  }

  .blog-card h2 {
    font-size: 18px;
  }

  .blog-card .content p {
    font-size: 13px;
  }

  .read-more {
    font-size: 14px;
  }
}




.article-header {
  text-align: center;
  padding: 40px 20px 20px;
  background: linear-gradient(90deg, #fffbe6, #fff7cc);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 40px;
}

.article-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin: 0;
  line-height: 1.3;
  position: relative;
}

.article-header h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: #FFB400;
  margin: 16px auto 0;
  border-radius: 2px;
}