:root {
  --bg-color: #f8f9fa;
  --text-main: #2d3436;        /* 1 графитовый */
  --text-secondary: #636e72;
  --accent-primary: #ff8c3b;   /* оранжевый акцент (можно заменить на глубокий синий: #1e3c72) */
  --accent-hover: #e07a30;
  --white: #ffffff;
  --container-width: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, Roboto, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 16px;
}
/* Кнопка */
.fon_bootn{
  margin-top: 60px;
  text-align: center;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; }

/* Header */
* { box-sizing: border-box; }
body { margin: 0; padding: 0; font-family: Arial, sans-serif; }

/* Контейнер для центрирования шапки */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* --- Шапка --- */
.header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-weight: 700;
  text-decoration: none;
  color: #333;
  font-size: 1.25rem;
}

.logo-descriptor{
  font-weight: 700;
  text-decoration: none;
  color: #464646;
  font-size: 0.75rem;
}

/* --- Десктопное меню --- */
.desktop-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
}
.nav-link {
  text-decoration: none;
  color: #444;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover { color: #ff8a00; }

/* --- Бургер (дефолтное состояние) --- */
.burger {
  display: none; /* скрыто на десктопе */
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger-line {
  display: block;
  width: 28px;
  height: 3px;
  background: #333;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Мобильное меню: оверлей (фон) --- */
.mobile-menu-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  backdrop-filter: blur(4px);
}
.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- Мобильная шторка (контент) --- */
.mobile-menu-wrapper {
  position: fixed;
  top: 0; right: 0;
  width: 85%;
  max-width: 360px;
  height: 100%;
  background: #fff;
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.mobile-menu-overlay.active .mobile-menu-wrapper {
  transform: translateX(0);
}

.close-burger {
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  float: right;
  margin-bottom: 24px;
}

.mobile-nav-list {
  list-style: none;
  margin: 0 0 32px 0;
  padding: 0;
}
.mobile-nav-link {
  display: block;
  padding: 14px 0;
  font-size: 1.1rem;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover { color: #007bff; }

.mobile-cta-block {
  margin-top: auto;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.mobile-phone {
  display: inline-block;
  font-weight: 700;
  color: #007bff;
  text-decoration: none;
  font-size: 1.2rem;
}

/* --- Адаптив: переключение видимости --- */
@media (max-width: 768px) {
  .desktop-nav { display: none; } /* скрываем десктоп-меню */
  .burger { display: block; }      /* показываем бургер */

  .header-container { height: 64px; }
  .logo { font-size: 1.1rem; }
}

/* Hero */
.hero-section {
  padding: 90px 0;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
              url('img/fon_glav.webp') no-repeat center / cover;
  min-height: 50vh; /* Чтобы экран был во всю высоту */
  width: 100%;
  position: relative;
}
.hero-title {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #ffffff;
}
.hero-subtitle {
  color: #ffffff;
  margin-bottom: 32px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.btn-cta {
  background: var(--accent-primary);
  color: var(--white);
  padding: 18px 40px;
  font-size: 18px;
  border-radius: 8px;
  font-weight: 600;
}
.btn-cta:hover { 
  background: var(--accent-hover); 
  transform: translateY(-2px); 
}

.hero-image-wrapper {
  width: 200px;
  margin-top: 60px;
  margin-left: auto;
  margin-right: auto;
}

.hero-image {
  width: 200px;
  
}

/* Общие секции */
.section-title {
  font-size: 38px;
  margin-bottom: 24px;
  text-align: center;
  padding: 100px 0px 40px 0px;
}
.section-description {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Portfolio (табы + карточки) */
.portfolio-section{
  padding-bottom: 120px;
}
.tabs-control {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.bootn_primra{
  padding: 10px;
  text-align: center;
}
.ttab-btn {
  background: #000000;
  color: var(--white);
  padding: 15px 25px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  font-weight: 600;
  
}
.ttab-btn.active, .ttab-btn:hover {
  background: #585858; 
  transform: translateY(-2px); 
}

.tab-btn {
  background: #585858;
  color: var(--white);
  padding: 15px 25px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  font-weight: 600;
  
}
.tab-btn.active, .tab-btn:hover {
  background: #000000;
  transform: translateY(-2px); 
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.portfolio-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.card-image-wrapper {
  height: 220px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}
.card-body { padding: 20px; }
.card-title { font-size: 20px; margin-bottom: 8px; }
.card-meta { color: var(--text-secondary); margin-bottom: 12px; font-size: 14px; }
.card-description { color: var(--text-secondary); margin-bottom: 16px; font-size: 14px; }

/* Цены (тарифы) */
.prices-section {
  padding-bottom: 120px;
}
.text_blok {
  color: #000000;
  font-size: 38px;
  margin-bottom: 24px;
  text-align: center;
}
.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.tariff-card {
  background: var(--white);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  border: 1px solid #f0f2f5;
}
.tariff-title { font-size: 20px; margin-bottom: 12px; }
.tariff-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 18px;
}
.tariff-features { 
  list-style: none; 
  margin-bottom: 20px; 
}
.tariff-features li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.tariff-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

/* Этапы работы */

.steps-section {
  padding-bottom: 120px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
              url('img/fon_blok_etaprabots.webp') no-repeat center / cover;;
}
.section-title1 {
  color: #ffffff;
  font-size: 38px;
  margin-bottom: 24px;
  text-align: center;
  padding: 100px 0px 40px 0px;
}

.steps-list { 
  list-style: none;
}

.step-item {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.step-info h3 { margin-bottom: 8px; }
.step-info p { color: var(--text-secondary); }

/* Отзывы */
.reviews-section{
  background-color:#33333386;
  padding-bottom: 120px;
}
.text_otsiv{
  color: #ffffff;
}
  
.reviews-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--white);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.review-header { display: flex; justify-content: space-between; margin-bottom: 12px; }
.review-rating { color: #ffd700; }
.review-text { color: var(--text-secondary); margin-bottom: 12px; }
.review-date { font-size: 13px; color: var(--text-secondary); }

/* Footer */
.site-footer {
  background: #1f2429;
  color: #d1d5db;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}
.footer-col h3 {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 16px;
}
.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 12px;
}
.footer-col p, .footer-col a {
  color: #d1d5db;
  line-height: 1.6;
}
.messenger-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent-primary);
  font-weight: 600;
}
.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 24px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}
.legal-text {
  margin-top: 8px;
  font-size: 13px;
}

/* Адаптив (Mobile First) */
@media (max-width: 768px) {
  .header-content { flex-direction: column; height: auto; padding: 16px 0; gap: 16px; }
  .hero-title { font-size: 30px; }
  .btn-cta { padding: 14px 24px; width: 100%; text-align: center; }
  .tabs-control { justify-content: flex-start; overflow-x: auto; }
  .step-item { flex-direction: column; text-align: center; }
  .step-number { margin: 0 auto 16px; }
}

/* Блок гарантии */
.guarantee-section {
  padding: 0px 0px 120px 0px;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
              url('img/fon_tarif.webp') no-repeat center / cover;;
}

.guarantee-content {
  text-align: center;
}

.section-title_1{
  color: #ffffff;
  font-size: 38px;
  margin-bottom: 24px;
  text-align: center;
  padding: 100px 0px 40px 0px;
}


.section-description_1 {
  text-align: center;
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.guarantee-item {
  background: var(--white);
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.137);
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
}

.guarantee-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.icon-box {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
}

.guarantee-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.guarantee-item p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

/* Адаптив: на очень узких экранах уменьшаем отступы */
@media (max-width: 480px) {
  .section-title {
  font-size: 28px;  
}
.section-title_1 {
  font-size: 28px;  
}
  .guarantee-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .guarantee-section {
    padding: 56px 0;
  }
}
