/* ================ */
/* GLOBAL VARIABLES */
/* ================ */
:root {
  /* Color Palette */
  --primary: #2c3e50; /* Deep Navy - professionalism */
  --primary-light: #3d566e;
  --accent: #e74c3c; /* Vibrant Red - calls to action */
  --accent-light: #ec7063;
  --neutral: #f9f9f9; /* Light background */
  --text: #333333; /* Main text color */
  --text-light: #777777; /* Secondary text */
  --white: #ffffff;
  --border: #e1e1e1;

  /* Typography */
  --font-main: "Roboto", system-ui, sans-serif;
  --font-secondary: "Open Sans", -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============ */
/* BASE STYLES */
/* ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--neutral);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============ */
/* TYPOGRAPHY */
/* ============ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  margin-top: var(--space-xl);
}

h2 {
  font-size: 2rem;
  margin-top: var(--space-lg);
}

h3 {
  font-size: 1.5rem;
}

p,
ul,
ol {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: var(--space-md);
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

/* ============ */
/* COMPONENTS */
/* ============ */
/* Navigation */
.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.logo-icon {
  margin-right: var(--space-sm);
  color: var(--accent);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: var(--space-lg);
}

.nav-link {
  font-weight: 500;
  padding: var(--space-sm) 0;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.phone-link {
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
}

.phone-icon {
  margin-right: var(--space-xs);
}

/* Product Cards */
.product-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal);
  margin-bottom: var(--space-lg);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.product-image-container {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background-color: var(--accent);
  color: var(--white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.product-content {
  padding: var(--space-md);
}

.product-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.product-price {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
  margin: var(--space-sm) 0;
}

.product-specs {
  list-style: none;
  margin-bottom: var(--space-md);
}

.product-specs li {
  margin-bottom: var(--space-xs);
  position: relative;
  padding-left: var(--space-md);
}

.product-specs li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Forms */
.contact-form {
  background: var(--white);
  padding: var(--space-lg);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.1);
}

.checkbox-group {
  margin: var(--space-md) 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-sm);
  cursor: pointer;
}

.checkbox-input {
  margin-right: var(--space-sm);
}

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-light);
  border-color: var(--accent-light);
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: var(--white);
  padding: var(--space-xl) 0;
  margin-top: var(--space-xl);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.footer-logo {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--white);
}

.footer-links h3 {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============ */
/* UTILITIES */
/* ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0 !important;
}
.mb-0 {
  margin-bottom: 0 !important;
}

/* ============ */
/* RESPONSIVE */
/* ============ */
@media (max-width: 768px) {
  .navbar {
    position: relative;
  }

  .nav-container {
    flex-direction: column;
  }

  .logo {
    margin-bottom: var(--space-md);
  }

  .nav-menu {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .nav-item {
    margin: var(--space-sm) 0;
  }

  .phone-link {
    margin-top: var(--space-md);
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 992px) {
  .product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}
/* Плавное появление элементов */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fadeIn 0.6s ease forwards;
}

/* Задержка для эффекта каскада */
.product-card:nth-child(1) {
  animation-delay: 0.1s;
}
.product-card:nth-child(2) {
  animation-delay: 0.3s;
}
.product-card:nth-child(3) {
  animation-delay: 0.5s;
}
.btn-primary {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.7s;
  z-index: -1;
}

.btn-primary:hover::before {
  left: 100%;
}
.form-control {
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border);
  border-radius: 0;
  padding-left: 0;
}

.form-control:focus {
  border-bottom-color: var(--accent);
  box-shadow: none;
}
/* Purchase Page Specific Styles */
.purchase-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.benefit-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition-normal);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  margin-bottom: 1rem;
  height: 48px;
  width: 48px;
}

.purchase-process ol {
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}

.purchase-process li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.price-examples ul {
  list-style: none;
  margin: 1.5rem 0;
}

.price-examples li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.price-examples li::before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
}
.payment-methods ul {
  list-style: none;
  margin: 1.5rem 0;
}

.payment-methods li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  color: red;
  font-weight: 700;
  font-size: 1.5rem;
}

.payment-methods li::before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
}

.methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.method-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: var(--white);
  border-radius: 4px;
  box-shadow: var(--shadow-xs);
}

.method-icon {
  margin-bottom: 0.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.gallery-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform var(--transition-slow);
}

.gallery-image:hover {
  transform: scale(1.02);
}

.urgent-contact {
  background: var(--primary);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
  text-align: center;
}

.urgent-phone {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 1rem 0;
  text-decoration: none;
}

@media (max-width: 768px) {
  .purchase-benefits {
    grid-template-columns: 1fr;
  }

  .methods-grid {
    grid-template-columns: 1fr;
  }
}
/* Footer Styles */
.footer {
  background-color: #2c3e50; /* Темно-синий фон */
  color: #ecf0f1; /* Светло-серый основной текст */
  padding: 40px 0 20px;
  font-size: 16px;
  line-height: 1.6;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}

.footer-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

.phone-link {
  color: #f9f9f9;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

/*.phone-link:hover {
  color: #e74c3c;
}*/

.footer-heading {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: #e74c3c;
}

.footer-links {
  list-style: none;
}

.footer-link {
  color: #bdc3c7;
  text-decoration: none;
  display: block;
  padding: 8px 0;
  transition: all 0.3s;
}

.footer-link:hover {
  color: #e74c3c;
  padding-left: 5px;
}

.footer-text {
  margin-bottom: 12px;
  color: #ecf0f1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
}

.footer-copyright {
  color: #bdc3c7;
  font-size: 14px;
}

/* Адаптивность */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-heading {
    margin-bottom: 15px;
  }
}
.footer p,
.footer a,
.footer h3,
.footer div {
  color: white;
}
.phone-link {
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  /* Удаляем transition и hover эффекты */
}
/* Footer Styles */
.footer {
  background-color: #2c3e50;
  color: white; /* Устанавливаем белый цвет для всего текста */
}

.footer a,
.footer p,
.footer h3,
.footer h4,
.footer div,
.footer span {
  color: white !important; /* Принудительно устанавливаем белый цвет для всех элементов */
}

.footer-link {
  color: white !important; /* Ссылки тоже белые */
}

.footer-link:hover {
  color: #e74c3c !important; /* При наведении становятся красными */
}
.urgent-contact {
  background: var(--primary); /* Темно-синий фон */
  color: white; /* Белый текст */
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 2rem;
  text-align: center;
}

.urgent-contact h3 {
  color: white; /* Белый цвет для заголовка */
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.urgent-contact p {
  color: white; /* Белый цвет для текста */
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.urgent-phone {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: white; /* Белый цвет для номера */
  margin: 1rem 0;
  text-decoration: none;
  transition: all 0.3s;
}

.urgent-phone:hover {
  color: #e74c3c; /* Красный при наведении */
  text-decoration: underline;
}
.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  width: 100% !important;
}
.news-alert {
  background-color: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 1rem;
  margin-bottom: 2rem;
  color: #333;
}

.news-alert p {
  margin: 0;
  color: #333;
}

.news-article {
  background: var(--white);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.news-article h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.read-more:hover {
  color: var(--accent-light);
}
.breadcrumbs {
  padding: 10px 0;
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.breadcrumbs a {
  color: #2c3e50;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #e74c3c;
  text-decoration: underline;
}
/* Article Styles */
.news-article {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.article-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1rem 0;
  object-fit: cover;
}

.article-content {
  line-height: 1.7;
  font-size: 1.05rem;
}

.article-content h2,
.article-content h3 {
  margin: 1.5rem 0 1rem;
  color: #2c3e50;
}

.article-content p {
  margin-bottom: 1.2rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-tags {
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: #f5f5f5;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #555;
  text-decoration: none;
  transition: all 0.3s;
}

.tag:hover {
  background: #e74c3c;
  color: white;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 0.8rem;
}

.vk {
  background: #4a76a8;
}
.fb {
  background: #3b5998;
}
.tg {
  background: #0088cc;
}

/* Related Articles */
.related-articles {
  margin-top: 3rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Popular Articles */
.popular-articles ul {
  list-style: none;
}

.popular-articles li {
  margin-bottom: 0.8rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed #ddd;
}

.popular-articles a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.popular-articles a:hover {
  color: #e74c3c;
}
