/* style.css – общие стили для проекта Маркировка PRO */

/* Базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

body.light-theme {
  background: #f8fafc;
  color: #0f172a;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Шапка */
header {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  z-index: 1000;
  transition: background 0.3s;
}

body.light-theme header {
  background: rgba(255, 255, 255, 0.9);
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 20px;
}

.nav-menu a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-menu a:hover {
  color: #38bdf8;
}

body.light-theme .nav-menu a {
  color: #0f172a;
}

body.light-theme .nav-menu a:hover {
  color: #0284c7;
}

.burger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #e2e8f0;
}

body.light-theme .burger {
  color: #0f172a;
}

.phone {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

body.light-theme .phone {
  color: #0284c7;
}

/* Переключатель темы */
.theme-toggle {
  cursor: pointer;
  font-size: 20px;
  margin-left: 15px;
  color: #e2e8f0;
}

body.light-theme .theme-toggle {
  color: #0f172a;
}

/* Герой с фоном */
.hero-bg {
  padding: 180px 0 120px;
  background:
    linear-gradient(rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.88)),
    url('img/hero-marking-16x9.png') center/cover no-repeat;
  text-align: center;
}

body.light-theme .hero-bg {
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
    url('img/hero-marking-16x9.png') center/cover no-repeat;
  color: #0f172a;
}

.hero-bg h1 {
  font-size: 44px;
  margin-bottom: 20px;
}

.hero-bg p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #cbd5e1;
}

body.light-theme .hero-bg p {
  color: #334155;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 14px 30px;
  background: #38bdf8;
  color: #0f172a;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #0ea5e9;
}

body.light-theme .btn {
  background: #0284c7;
  color: #ffffff;
}

body.light-theme .btn:hover {
  background: #0369a1;
}

/* Секции */
section {
  padding: 80px 0;
}

h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}

/* Карточки услуг (кликабельные) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card-link:hover {
  transform: translateY(-5px);
}

.card {
  background: #1e293b;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  height: 100%;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

body.light-theme .card {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.card i {
  font-size: 48px;
  color: #38bdf8;
  margin-bottom: 20px;
}

body.light-theme .card i {
  color: #0284c7;
}

.card h3 {
  margin-bottom: 15px;
  color: #38bdf8;
}

body.light-theme .card h3 {
  color: #0284c7;
}

/* Калькулятор */
.calculator {
  background: #1e293b;
  border-radius: 12px;
  padding: 30px;
  max-width: 600px;
  margin: 0 auto;
}

body.light-theme .calculator {
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.calculator .form-group {
  margin-bottom: 20px;
}

.calculator label {
  display: block;
  margin-bottom: 8px;
  color: #cbd5e1;
}

body.light-theme .calculator label {
  color: #334155;
}

.calculator input[type="number"],
.calculator input[type="checkbox"] {
  margin-right: 10px;
}

.calculator input[type="number"] {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #e2e8f0;
}

body.light-theme .calculator input[type="number"] {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

.total-price {
  font-size: 28px;
  font-weight: 700;
  color: #38bdf8;
  margin: 20px 0;
}

body.light-theme .total-price {
  color: #0284c7;
}

/* Этапы работы */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.step {
  text-align: center;
  background: #1e293b;
  padding: 25px;
  border-radius: 12px;
}

body.light-theme .step {
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.step .step-num {
  width: 50px;
  height: 50px;
  background: #38bdf8;
  color: #0f172a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 20px;
}

body.light-theme .step .step-num {
  background: #0284c7;
  color: #ffffff;
}

/* Отзывы */
.review-card {
  background: #1e293b;
  padding: 25px;
  border-radius: 12px;
  text-align: left;
}

body.light-theme .review-card {
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.review-card i {
  color: #38bdf8;
  font-size: 32px;
  margin-bottom: 15px;
}

body.light-theme .review-card i {
  color: #0284c7;
}

.review-card h4 {
  margin-top: 15px;
  color: #94a3b8;
}

body.light-theme .review-card h4 {
  color: #475569;
}

/* Форма */
.contact-form {
  max-width: 600px;
  margin: 40px auto 0;
  background: #1e293b;
  padding: 40px;
  border-radius: 12px;
}

body.light-theme .contact-form {
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #e2e8f0;
  font-family: 'Inter', sans-serif;
}

body.light-theme .form-group input,
body.light-theme .form-group textarea,
body.light-theme .form-group select {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #38bdf8;
}

/* Карта */
.map-container {
  margin-top: 40px;
  border-radius: 12px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* Блог */
.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.blog-card {
  background: #1e293b;
  padding: 25px;
  border-radius: 12px;
  text-align: left;
}

body.light-theme .blog-card {
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.blog-card .date {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 10px;
}

body.light-theme .blog-card .date {
  color: #475569;
}

.blog-card h3 {
  margin-bottom: 10px;
}

.blog-card a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}

body.light-theme .blog-card a {
  color: #0284c7;
}

/* Таблица стоимости (для страницы услуги) */
.price-table {
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  width: 100%;
}

.price-table th,
.price-table td {
  border: 1px solid #334155;
  padding: 15px;
  text-align: left;
}

body.light-theme .price-table th,
body.light-theme .price-table td {
  border-color: #cbd5e1;
}

.price-table th {
  background: #1e293b;
  font-weight: 600;
}

body.light-theme .price-table th {
  background: #e2e8f0;
}

/* Преимущества (список с галочками) */
.benefits-list {
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
}

.benefits-list li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
}

.benefits-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #38bdf8;
  font-weight: 700;
}

body.light-theme .benefits-list li::before {
  color: #0284c7;
}

/* FAQ */
.faq-item {
  background: #1e293b;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 15px;
}

body.light-theme .faq-item {
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.faq-question {
  font-weight: 700;
  margin-bottom: 10px;
  color: #38bdf8;
}

body.light-theme .faq-question {
  color: #0284c7;
}

/* Футер */
footer {
  background: #020617;
  padding: 40px 0;
  text-align: center;
  color: #94a3b8;
}

body.light-theme footer {
  background: #e2e8f0;
  color: #334155;
}

.footer-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
}

body.light-theme .footer-links a {
  color: #334155;
}

.footer-links a:hover {
  color: #38bdf8;
}

body.light-theme .footer-links a:hover {
  color: #0284c7;
}

/* WhatsApp-кнопка */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 30px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 999;
  transition: 0.3s;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  background: #20ba5a;
}

/* Анимации при скролле */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 768px) {
  .hero-bg h1 {
    font-size: 28px;
  }
  .burger {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #0f172a;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 15px;
    border-top: 1px solid #334155;
  }
  body.light-theme .nav-menu {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
  }
  .nav-menu.active {
    display: flex;
  }
  .map-container iframe {
    height: 300px;
  }
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}