/* 
  Carparr - Основні стилі
*/

/* Змінні */
:root {
  --primary-color: #1d4ed8;
  --primary-color-dark: #1e40af;
  --primary-color-light: #3b82f6;
  --secondary-color: #374151;
  --secondary-color-dark: #1f2937;
  --secondary-color-light: #4b5563;
  --accent-color: #f59e0b;
  --accent-color-dark: #d97706;
  --accent-color-light: #fbbf24;
  --light-color: #f9fafb;
  --dark-color: #111827;
  --gray-color: #9ca3af;
  --border-color: #e5e7eb;
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  --text-color: #1f2937;
  --bg-color: #ffffff;
  --container-width: 1200px;
  --heading-font: "Montserrat", sans-serif;
  --body-font: "Open Sans", sans-serif;
  --transition: all 0.3s ease;
  --border-radius: 4px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Темна тема */
[data-theme="dark"] {
  --primary-color: #3b82f6;
  --primary-color-dark: #2563eb;
  --primary-color-light: #60a5fa;
  --secondary-color: #6b7280;
  --secondary-color-dark: #4b5563;
  --secondary-color-light: #9ca3af;
  --accent-color: #f59e0b;
  --accent-color-dark: #d97706;
  --accent-color-light: #fbbf24;
  --light-color: #1f2937;
  --dark-color: #f9fafb;
  --gray-color: #6b7280;
  --border-color: #374151;
  --text-color: #f9fafb;
  --bg-color: #111827;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --box-shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.3);
}

/* Загальні стилі */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--body-font);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: var(--transition);
  overflow-x: hidden;
}

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

a:hover {
  color: var(--primary-color-dark);
}

img {
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--secondary-color-dark);
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  padding: 4rem 0;
}

@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-color-dark);
  color: white;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--secondary-color-dark);
  color: white;
}

.btn-accent {
  background-color: var(--accent-color);
  color: white;
}

.btn-accent:hover {
  background-color: var(--accent-color-dark);
  color: white;
}

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

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Заголовки секцій */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-header h2:after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 1rem auto 0;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--secondary-color);
}

/* Шапка */
header {
  background-color: var(--bg-color);
  box-shadow: var(--box-shadow);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

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

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

nav {
  display: flex;
  align-items: center;
}

.menu {
  display: flex;
  gap: 1.5rem;
}

.menu a {
  color: var(--secondary-color-dark);
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
}

.menu a:hover,
.menu a.active {
  color: var(--primary-color);
}

.menu a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.menu a:hover:after,
.menu a.active:after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--secondary-color-dark);
}

@media (max-width: 992px) {
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    padding: 1rem;
    box-shadow: var(--box-shadow);
    flex-direction: column;
    align-items: center;
  }

  .menu.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

/* Переключатель темы */
.theme-switch-wrapper {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color);
  padding: 0.5rem;
  border-radius: 20px;
  box-shadow: var(--box-shadow);
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray-color);
  transition: var(--transition);
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: var(--transition);
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.toggle-text {
  margin-left: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary-color);
}

@media (max-width: 768px) {
  .theme-switch-wrapper {
    top: 10px;
    right: 10px;
  }

  .toggle-text {
    display: none;
  }
}

/* Подсказки (tooltips) */
[data-tooltip] {
  position: relative;
  cursor: pointer;
}

[data-tooltip]:before,
[data-tooltip]:after {
  position: absolute;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 1000;
}

[data-tooltip]:before {
  content: attr(data-tooltip);
  padding: 0.5rem 1rem;
  background-color: var(--secondary-color-dark);
  color: white;
  border-radius: var(--border-radius);
  white-space: nowrap;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.875rem;
}

[data-tooltip]:after {
  content: "";
  border-width: 6px;
  border-style: solid;
  border-color: var(--secondary-color-dark) transparent transparent transparent;
  bottom: calc(100% - 2px);
  left: 50%;
  transform: translateX(-50%);
}

[data-tooltip]:hover:before,
[data-tooltip]:hover:after {
  visibility: visible;
  opacity: 1;
}

/* Hero секция */
.hero {
  padding: 5rem 0;
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 992px) {
  .hero {
    padding: 4rem 0;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    position: relative;
    width: 100%;
    height: 300px;
    margin-top: 2rem;
  }
}

/* Карточки преимуществ */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.advantage-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.advantage-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.advantage-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.advantage-card h3 {
  margin-bottom: 1rem;
}

.advantage-card p {
  color: var(--secondary-color);
}

/* Карточки продуктов */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.product-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
}

.product-card h3 {
  margin: 1.5rem 0 1rem;
  font-size: 1.25rem;
}

.product-card p {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.product-card .btn {
  margin-top: 1rem;
}

.products-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Карточки блога */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition);
}

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

.blog-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--secondary-color-light);
}

.blog-date,
.blog-category {
  display: flex;
  align-items: center;
}

.blog-meta i {
  margin-right: 0.5rem;
}

.blog-card h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.blog-card p {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.blog-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Отзывы */
.testimonials {
  background-color: var(--light-color);
}

.testimonials-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 2rem;
  padding: 1rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testimonials-slider::-webkit-scrollbar {
  display: none;
}

.testimonial {
  scroll-snap-align: start;
  min-width: 300px;
  flex: 1 0 300px;
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--box-shadow);
  position: relative;
}

.testimonial:before {
  content: "\201C";
  font-size: 5rem;
  color: var(--primary-color-light);
  position: absolute;
  top: -10px;
  left: 10px;
  opacity: 0.1;
  font-family: serif;
}

.testimonial-content {
  position: relative;
  z-index: 1;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 1.5rem;
}

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

.testimonial-author h4 {
  margin-bottom: 0;
  font-size: 1rem;
}

.testimonial-rating {
  color: var(--accent-color);
}

/* CTA секция */
.cta-section {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 4rem 0;
}

.cta-content h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-content p {
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
}

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

.cta-content .btn:hover {
  background-color: var(--light-color);
}

/* Футер */
footer {
  background-color: var(--secondary-color-dark);
  color: var(--light-color);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo img {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-logo p {
  color: var(--gray-color);
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--gray-color);
  transition: var(--transition);
}

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

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: var(--gray-color);
}

.footer-contact i {
  margin-right: 0.75rem;
  color: var(--primary-color-light);
}

.footer-contact a {
  color: var(--gray-color);
}

.footer-contact a:hover {
  color: white;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  color: var(--gray-color);
  font-size: 0.875rem;
}

.footer-policy-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-policy-links a {
  color: var(--gray-color);
}

.footer-policy-links a:hover {
  color: white;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-policy-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Cookie consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-color);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  z-index: 9999;
  display: none;
}

.cookie-consent.active {
  display: block;
}

.cookie-content {
  max-width: var(--container-width);
  margin: 0 auto;
}

.cookie-content h3 {
  margin-bottom: 0.75rem;
}

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

.cookie-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cookie-more-info {
  font-size: 0.875rem;
  color: var(--secondary-color);
}

@media (max-width: 768px) {
  .cookie-buttons {
    flex-direction: column;
  }
}

/* Блог страница */
.page-header {
  background-color: var(--light-color);
  text-align: center;
  padding: 3rem 0;
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--secondary-color);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.blog-subscribe {
  background-color: var(--light-color);
  padding: 3rem 0;
  margin-top: 3rem;
}

.subscribe-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.subscribe-form {
  display: flex;
  margin-top: 2rem;
  gap: 1rem;
}

.subscribe-form input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
}

@media (max-width: 576px) {
  .subscribe-form {
    flex-direction: column;
  }
}

/* Статья блога */
.blog-post {
  margin-bottom: 3rem;
}

.post-header {
  margin-bottom: 2rem;
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  color: var(--secondary-color-light);
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.post-date,
.post-category,
.post-author {
  display: flex;
  align-items: center;
}

.post-meta i {
  margin-right: 0.5rem;
}

.post-featured-image {
  margin-bottom: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
}

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

.post-content {
  margin-bottom: 2rem;
}

.post-content h2,
.post-content h3 {
  margin-top: 2rem;
}

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

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

.post-content ul {
  list-style-type: disc;
}

.post-content ol {
  list-style-type: decimal;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-share {
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-share h3 {
  margin-bottom: 0;
  font-size: 1rem;
}

.share-buttons {
  display: flex;
  gap: 0.75rem;
}

.share-buttons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--light-color);
  border-radius: 50%;
  color: var(--secondary-color-dark);
  transition: var(--transition);
}

.share-facebook:hover {
  background-color: #1877f2;
  color: white;
}

.share-twitter:hover {
  background-color: #1da1f2;
  color: white;
}

.share-telegram:hover {
  background-color: #0088cc;
  color: white;
}

.share-viber:hover {
  background-color: #665cac;
  color: white;
}

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.post-prev,
.post-next {
  position: relative;
}

.post-prev a,
.post-next a {
  display: flex;
  flex-direction: column;
  color: var(--text-color);
}

.post-prev a {
  align-items: flex-start;
}

.post-next a {
  align-items: flex-end;
  text-align: right;
}

.post-prev i,
.post-next i {
  color: var(--primary-color);
  margin: 0 0.5rem;
}

.post-prev span,
.post-next span {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--secondary-color-light);
  margin-bottom: 0.5rem;
}

.post-prev p,
.post-next p {
  margin-bottom: 0;
  font-weight: 600;
}

.related-posts {
  margin-bottom: 3rem;
}

.related-posts h3 {
  margin-bottom: 2rem;
  text-align: center;
}

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

.related-post {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.related-post:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.related-post img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center;
}

.related-post h4 {
  padding: 1rem 1rem 0.5rem;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.related-post .read-more {
  display: block;
  padding: 0 1rem 1rem;
  color: var(--primary-color);
  font-weight: 600;
}

.related-post .read-more:hover {
  color: var(--primary-color-dark);
}

@media (max-width: 768px) {
  .post-navigation {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .post-next a {
    align-items: flex-start;
    text-align: left;
  }
}

/* Страница Продукция */
.category-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  background-color: var(--light-color);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

.product-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
}

.product-section:last-child {
  border-bottom: none;
}

.product-card {
  position: relative;
}

.product-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.product-labels {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-labels span {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  border-radius: var(--border-radius);
}

.label-new {
  background-color: var(--primary-color);
}

.label-sale {
  background-color: var(--error-color);
}

.label-bestseller {
  background-color: var(--accent-color);
}

.product-content {
  padding: 1.5rem;
}

.product-features {
  margin-bottom: 1rem;
}

.product-features p {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary-color);
}

.product-features i {
  color: var(--primary-color);
}

.product-price {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.old-price {
  text-decoration: line-through;
  color: var(--secondary-color-light);
  font-size: 0.875rem;
}

.current-price {
  color: var(--primary-color);
  font-size: 1.25rem;
}

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

.section-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Страница Услуги */
.services-intro {
  margin-bottom: 2rem;
}

.intro-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.intro-text h2 {
  margin-bottom: 1.5rem;
}

.intro-text p {
  margin-bottom: 1.5rem;
}

.intro-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.intro-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.benefit-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--light-color);
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.benefit-content h3 {
  margin-bottom: 0.5rem;
}

.benefit-content p {
  color: var(--secondary-color);
}

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

.service-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  background-color: var(--primary-color);
  color: white;
  font-size: 2.5rem;
}

.service-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  margin-bottom: 1rem;
}

.service-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-content li {
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.service-price {
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.service-price small {
  display: block;
  font-size: 0.75rem;
  font-weight: normal;
  color: var(--secondary-color-light);
  margin-top: 0.25rem;
}

.service-card .btn {
  margin-top: auto;
  align-self: center;
}

.process-steps {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.process-steps:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40px;
  width: 2px;
  background-color: var(--primary-color-light);
}

.process-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background-color: var(--primary-color);
  color: white;
  font-size: 2rem;
  font-weight: 700;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.step-content {
  padding-top: 1rem;
}

.step-content h3 {
  margin-bottom: 0.5rem;
}

.pricing-tabs {
  max-width: 900px;
  margin: 0 auto;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background-color: var(--light-color);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.pricing-table th,
.pricing-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.pricing-table th {
  background-color: var(--light-color);
  font-weight: 600;
}

.pricing-table tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.pricing-note {
  font-size: 0.875rem;
  color: var(--secondary-color-light);
  text-align: center;
  margin-bottom: 2rem;
}

.pricing-cta {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.pricing-cta p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

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

.testimonial-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.testimonial-info h3 {
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
}

.testimonial-rating {
  color: var(--accent-color);
  font-size: 0.875rem;
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-content p {
  font-style: italic;
  color: var(--secondary-color);
}

.testimonial-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--secondary-color-light);
}

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

.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem;
  background-color: var(--light-color);
  cursor: pointer;
  transition: var(--transition);
}

.accordion-header:hover {
  background-color: var(--primary-color-light);
  color: white;
}

.accordion-header h3 {
  margin-bottom: 0;
  font-size: 1.125rem;
}

.accordion-header i {
  transition: var(--transition);
}

.accordion-item.active .accordion-header i {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.accordion-item.active .accordion-content {
  padding: 1.25rem;
  max-height: 1000px;
}

.faq-cta {
  text-align: center;
  margin-top: 3rem;
}

.faq-cta p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

@media (max-width: 992px) {
  .intro-content {
    grid-template-columns: 1fr;
  }

  .intro-text {
    order: 2;
  }

  .intro-image {
    order: 1;
  }

  .intro-buttons {
    justify-content: center;
  }

  .process-steps:before {
    display: none;
  }

  .process-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
}

/* Страница Контакты */
.contact-info {
  margin-bottom: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background-color: var(--primary-color-light);
  color: white;
  font-size: 1.5rem;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
}

.contact-content h3 {
  margin-bottom: 1rem;
}

.contact-content p {
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

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

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

.social-contacts h3 {
  margin-bottom: 1.5rem;
}

.social-contacts .social-icons {
  justify-content: center;
}

.form-map-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.contact-form-wrapper h2 {
  margin-bottom: 1rem;
}

.contact-form-wrapper p {
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: var(--body-font);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-checkbox input {
  width: 20px;
  height: 20px;
  margin-top: 0.25rem;
}

.form-checkbox label {
  margin-bottom: 0;
  font-weight: normal;
  font-size: 0.875rem;
  color: var(--secondary-color);
}

.form-submit {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  margin-bottom: 1.5rem;
}

.map-info h3 {
  margin-bottom: 1rem;
}

.map-info p {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--secondary-color);
}

.map-info i {
  color: var(--primary-color);
}

.contact-faq {
  margin-bottom: 3rem;
}

.contact-faq h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  align-items: center;
  justify-content: center;
}

.popup.active {
  display: flex;
}

.popup-content {
  background-color: var(--bg-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary-color);
}

.popup-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background-color: var(--success-color);
  color: white;
  font-size: 2rem;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
}

.popup h2 {
  margin-bottom: 1rem;
}

.popup p {
  margin-bottom: 2rem;
  color: var(--secondary-color);
}

@media (max-width: 992px) {
  .form-map-wrapper {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Дополнительные стили для продуктовых страниц */
.product-image {
  position: relative;
}

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

.product-labels {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
}

.product-labels span {
  display: inline-block;
  padding: 5px 10px;
  margin-right: 5px;
  font-size: 12px;
  font-weight: bold;
  color: white;
  border-radius: 3px;
}

.product-features {
  margin-bottom: 15px;
}

.product-features p {
  margin-bottom: 5px;
}

.product-actions {
  display: flex;
  justify-content: space-between;
}

/* Медиа-запросы */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 60px 0;
  }

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

  .advantages-grid,
  .products-grid,
  .blog-posts-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons,
  .product-actions {
    flex-direction: column;
    gap: 10px;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .post-next {
    margin-top: 20px;
  }
}
