/* Современный стиль для SEO сайтов */
:root {
  --primary-color: #2980b9;
  --secondary-color: #34495e;
  --accent-color: #e67e22;
  --text-color: #2c3e50;
  --light-gray: #f8f9fa;
  --medium-gray: #dee2e6;
  --dark-gray: #6c757d;
  --border-radius: 12px;
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  --transition: all 0.35s ease;
  --max-width: 1200px;
  --header-height: 65px;
  --footer-padding: 25px;
}

/* Базовые стили */
* {
  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.65;
  color: var(--text-color);
  background-color: #fdfdfd;
  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: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
  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: 45px 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: perspective(1000px) rotateX(2deg);
  transition: var(--transition);
}

.hero-image:hover {
  transform: perspective(1000px) rotateX(0deg);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Секции */
section {
  margin-bottom: 85px;
  position: relative;
}

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: linear-gradient(145deg, var(--light-gray) 0%, #ffffff 100%);
  padding: 35px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid var(--medium-gray);
}

.feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.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: linear-gradient(145deg, #ffffff 0%, var(--light-gray) 100%);
  padding: 35px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border-left: 5px solid var(--primary-color);
  position: relative;
  overflow: hidden;
}

.testimonial::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  opacity: 0.1;
  border-radius: 0 var(--border-radius) 0 100%;
}

.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: linear-gradient(135deg, var(--secondary-color) 0%, #2c3e50 100%);
  color: #fff;
  padding: var(--footer-padding) 0;
  flex-shrink: 0;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
}

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: 8px 24px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #3498db 100%);
  color: white;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  box-shadow: 0 3px 10px rgba(41, 128, 185, 0.3);
}

.btn:hover {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #2c3e50 100%);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(52, 73, 94, 0.4);
}

.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;
  }
}