/* Современный стиль для SEO сайтов */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #666;
  --border-radius: 8px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --header-height: 60px;
  --footer-padding: 20px;
}

/* Базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: white;
  overflow-x: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

/* Контейнер */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка сайта */
header {
  background-color: #2c3e50;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.logo a {
  color: #fff;
}

nav ul {
  font-size: 1.4rem;
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: #fff;
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

nav ul li a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav ul li a:hover:after {
  width: 100%;
}

/* Мобильное меню */
.mobile-menu-toggle {
  display: none;
  cursor: pointer;
}

/* Основное содержимое */
main {
  padding: 10px 0 0;
  flex: 1 0 auto;
}

/* Hero секция */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 80px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.hero h2 {
  font-size: 2rem;
  margin: 30px 0 20px;
  color: var(--secondary-color);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-image {
  margin: 40px 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

/* Секции */
section {
  margin-bottom: 80px;
}

section h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--secondary-color);
  text-align: center;
}

/* Блок с функциями/услугами */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature {
  background-color: var(--light-gray);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.feature h4 {
  font-size: 1.4rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

/* Отзывы */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial {
  background-color: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border-left: 4px solid var(--primary-color);
}

.testimonial blockquote {
  font-style: italic;
  margin-bottom: 15px;
}

.testimonial cite {
  font-weight: 600;
  display: block;
  text-align: right;
  color: var(--secondary-color);
}

/* Связанные статьи */
.related-posts {
  background-color: var(--light-gray);
  padding: 40px;
  border-radius: var(--border-radius);
  margin-bottom: 60px;
}

.related-posts h3 {
  margin-bottom: 20px;
  text-align: left;
}

.related-posts ul {
  list-style: none;
}

.related-posts li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.related-posts li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* Подвал */
footer {
  background-color: var(--secondary-color);
  color: #fff;
  padding: var(--footer-padding) 0;
  flex-shrink: 0;
}

footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav ul li {
  margin-bottom: 10px;
}

.footer-nav ul li a {
  color: white;
  opacity: 0.8;
}

.footer-nav ul li a:hover {
  opacity: 1;
}

footer p {
  margin-top: 15px;
  opacity: 0.8;
  font-weight: 700;
}

/* Кнопки */

.btnWrp {
  text-align: right;
}

.btn {
  display: inline-block;
  padding: 6px 20px;
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
}

.btn-accent {
  background-color: var(--accent-color);
  text-transform: uppercase;
}

/* Медиа запросы */
@media (max-width: 768px) {
  header {
    height: auto;
    padding: 15px 0;
  }

  /* 
  nav ul {
    display: none;
  } */

  .mobile-menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  section {
    margin-bottom: 60px;
  }

  .feature-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .related-posts {
    padding: 30px;
  }
}