/* Article Styles - Serrurier Dépannage 24 */

:root {
  /* Использование цветовой палитры из основного сайта */
  --primary-color: #2C3E50;
  --secondary-color: #E67E22;
  --accent-color: #27AE60;
  --dark-color: #1A252F;
  --light-color: #ECF0F1;
  --text-color: #34495E;
  --danger-color: #E74C3C;
  --warning-color: #F39C12;
  --success-color: #27AE60;
  --info-color: #3498DB;

  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
  --gradient-hero: linear-gradient(165deg, #1A252F 0%, #2C3E50 50%, #34495E 100%);
  --gradient-accent: linear-gradient(135deg, #E67E22 0%, #F39C12 100%);

  /* Тени */
  --shadow-sm: 0 2px 4px rgba(44, 62, 80, 0.1);
  --shadow-md: 0 4px 12px rgba(44, 62, 80, 0.15);
  --shadow-lg: 0 8px 24px rgba(44, 62, 80, 0.2);
  --shadow-xl: 0 16px 48px rgba(44, 62, 80, 0.25);
}

/* Reset для статьи */
.article-main * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Header для статьи */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(44, 62, 80, 0.08);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: var(--shadow-md);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-color);
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 0.875rem;
  color: var(--text-color);
  opacity: 0.8;
}

.header-actions {
  display: flex;
  gap: 1rem;
}

.home-link,
.blog-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.home-link {
  background: var(--gradient-accent);
  color: white;
  box-shadow: var(--shadow-sm);
}

.home-link:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

.blog-link {
  background: white !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color);
}

.blog-link:hover {
  background: var(--primary-color) !important;
  color: white !important;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Main Article Content */
.article-main {
  padding-top: 100px;
  min-height: 100vh;
  background: linear-gradient(to bottom, #f8f9fa 0%, white 100%);
}

.article-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.article {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.article::before {
  content: '🔐';
  position: absolute;
  top: -40px;
  right: -40px;
  font-size: 150px;
  opacity: 0.05;
  transform: rotate(-15deg);
}

/* Article Title */
.article-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark-color);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Article Meta */
.article-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(44, 62, 80, 0.1);
  flex-wrap: wrap;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  font-size: 0.95rem;
}

.article-meta svg {
  color: var(--secondary-color);
}

/* Featured Image */
.featured-image {
  margin: 2rem -3rem;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.featured-image figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(26, 37, 47, 0.9) 0%, transparent 100%);
  color: white;
  padding: 1.5rem;
  font-size: 0.9rem;
  font-style: italic;
}

/* Article Intro */
.article-intro {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-color);
  padding: 2rem;
  margin: 2rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 4px solid var(--secondary-color);
  border-radius: 8px;
  position: relative;
}

.article-intro::before {
  content: '🔑';
  position: absolute;
  top: 1.5rem;
  left: -2rem;
  font-size: 2rem;
  background: white;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

/* Article Content */
.article-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-color);
}

.article-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-color);
  margin: 3rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--secondary-color);
  position: relative;
}

.article-content h2::before {
  content: '🔓';
  position: absolute;
  left: -40px;
  font-size: 1.5rem;
  opacity: 0.3;
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 2rem 0 1rem;
}

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

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

.article-content li {
  margin-bottom: 0.75rem;
  position: relative;
}

.article-content ul li::before {
  content: '✓';
  position: absolute;
  left: -1.5rem;
  color: var(--accent-color);
  font-weight: bold;
}

.article-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
  border-left: 4px solid var(--secondary-color);
  border-radius: 8px;
  font-style: italic;
  color: var(--text-color);
  box-shadow: var(--shadow-sm);
}

.article-content strong {
  color: var(--dark-color);
  font-weight: 600;
}

.article-content em {
  color: var(--secondary-color);
}

.article-content a {
  color: var(--secondary-color);
  text-decoration: underline;
  transition: all 0.3s ease;
}

.article-content a:hover {
  color: var(--primary-color);
}

/* Article Conclusion */
.article-conclusion {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--gradient-primary);
  border-radius: 16px;
  color: white;
  position: relative;
  overflow: hidden;
}

.article-conclusion::before {
  content: '🏆';
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 80px;
  opacity: 0.1;
}

.conclusion-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.article-conclusion p {
  font-size: 1.125rem;
  line-height: 1.6;
  opacity: 0.95;
}

.article-conclusion a {
  color: var(--warning-color);
  font-weight: 600;
}

.article-conclusion a:hover {
  color: white;
}

/* Related Posts */
.related-posts {
  margin: 3rem 0;
}

.related-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.related-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

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

.related-post {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid rgba(44, 62, 80, 0.08);
}

.related-post:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--secondary-color);
}

.related-post-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
}

.related-post-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--gradient-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.related-post-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.related-post-meta {
  font-size: 0.875rem;
  color: var(--text-color);
  opacity: 0.7;
}

/* CTA Section */
.article-cta {
  background: var(--gradient-primary);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.article-cta::before {
  content: '🔐';
  position: absolute;
  top: -30px;
  right: -30px;
  font-size: 120px;
  opacity: 0.1;
  transform: rotate(-15deg);
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-phone,
.cta-form {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.cta-phone {
  background: white;
  color: var(--primary-color);
}

.cta-phone:hover {
  background: var(--light-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.cta-form {
  background: var(--gradient-accent);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-form:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  border-color: white;
}

/* Fixed Call Button */
.fixed-call-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 65px;
  height: 65px;
  background: var(--gradient-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 25px rgba(230, 126, 34, 0.4);
  z-index: 9999;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.fixed-call-button:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 8px 35px rgba(230, 126, 34, 0.6);
}

.fixed-call-button svg {
  width: 30px;
  height: 30px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 5px 25px rgba(230, 126, 34, 0.4);
  }
  50% {
    box-shadow: 0 5px 35px rgba(230, 126, 34, 0.6);
  }
  100% {
    box-shadow: 0 5px 25px rgba(230, 126, 34, 0.4);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header-container {
    padding: 0.75rem 1rem;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
  }

  .logo-title {
    font-size: 1.1rem;
  }

  .logo-subtitle {
    font-size: 0.75rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .home-link,
  .blog-link {
    padding: 0.6rem 1rem;
  }

  .home-link span,
  .blog-link span {
    display: none;
  }

  .article-main {
    padding-top: 80px;
  }

  .article-container {
    padding: 1rem;
  }

  .article {
    padding: 2rem 1.5rem;
    border-radius: 12px;
  }

  .article-title {
    font-size: 1.75rem;
  }

  .article-meta {
    gap: 1rem;
    font-size: 0.875rem;
  }

  .featured-image {
    margin: 1.5rem -1.5rem;
  }

  .article-intro {
    font-size: 1.1rem;
    padding: 1.5rem;
  }

  .article-intro::before {
    display: none;
  }

  .article-content {
    font-size: 1rem;
  }

  .article-content h2 {
    font-size: 1.5rem;
  }

  .article-content h2::before {
    display: none;
  }

  .article-content h3 {
    font-size: 1.25rem;
  }

  .article-conclusion {
    padding: 1.5rem;
  }

  .conclusion-title {
    font-size: 1.5rem;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  .article-cta {
    padding: 2rem 1.5rem;
  }

  .cta-content h2 {
    font-size: 1.75rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-phone,
  .cta-form {
    width: 100%;
    justify-content: center;
  }

  .fixed-call-button {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }

  .fixed-call-button svg {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 480px) {
  .article {
    padding: 1.5rem 1rem;
  }

  .article-title {
    font-size: 1.5rem;
  }

  .featured-image {
    margin: 1rem -1rem;
  }

  .article-intro {
    font-size: 1rem;
    padding: 1rem;
    margin: 1.5rem 0;
  }

  .article-content {
    font-size: 0.95rem;
  }

  .article-cta {
    border-radius: 0;
    margin: 2rem -1rem 0;
  }
}

/* Минимальные экраны (375px) */
@media (max-width: 375px) {
  .header-container {
    padding: 0.5rem;
  }

  .logo-section {
    gap: 0.5rem;
  }

  .logo-icon {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }

  .logo-title {
    font-size: 1rem;
  }

  .logo-subtitle {
    display: none;
  }

  .header-actions {
    gap: 0.35rem;
  }

  .home-link,
  .blog-link {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
  }

  .home-link svg,
  .blog-link svg {
    width: 18px;
    height: 18px;
  }

  .article-container {
    padding: 0.75rem;
  }

  .article {
    padding: 1.25rem 0.75rem;
  }

  .article-title {
    font-size: 1.35rem;
  }

  .article-content {
    font-size: 0.9rem;
  }

  .cta-content h2 {
    font-size: 1.5rem;
  }
}