
body.cart-open .menu-toggle {
    z-index: 1000 !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: none !important; /* отключаем анимацию */
}

/* ====================== */
/* БАЗОВЫЕ СТИЛИ И РЕСЕТ */
/* ====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #141414;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
  padding-right: 15px;
}

/* ====================== */
/* ШАПКА САЙТА */
/* ====================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  z-index: 1000;
  background: rgba(32, 32, 32, 0);
  transition: all 0.5s ease;
}

.header-permanent {
  height: 60px;
  background: rgba(40, 40, 40, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
  align-items: center;
}

.header-visible {
  height: 60px;
  background: rgba(40, 40, 40, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 20px;
}

.logo {
  padding-left: 20px;
  margin-right: 0;
  margin-top: 10px;
  font-size: 24px;
  font-weight: bold;
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.header-visible .logo {
  opacity: 1;
}

.logo:hover {
  color: #dab672;
}

/* ====================== */
/* КОРЗИНА В ШАПКЕ */
/* ====================== */
.cart-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  margin-top: 15px;
  padding-right: 60px;
}

.cart-icon {
  order: 2;
  position: relative;
  cursor: pointer;
}

.cart-icon svg {
  width: 28px;
  height: 28px;
  color: white;
  transition: transform 0.3s ease;
}

.cart-icon:hover svg {
  transform: scale(1.1);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #dab672;
  color: #000;
  font-size: 0.8rem;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-total {
  order: 1;
  color: #dab672;
  font-weight: 600;
  font-size: 1.1rem;
  min-width: 10px;
  margin-top: -5px;
}

/* ====================== */
/* БУРГЕР-МЕНЮ */
/* ====================== */
.menu-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 20001;
  /* Fix: Ensure menu toggle is above everything */
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(32, 32, 32, 0.7);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.5s ease;
  box-shadow: none !important;
  border: none !important;
  padding: 0;
}

.burger-icon {
  width: 28px;
  height: 28px;
  color: white;
  display: block;
  /*transition: transform 0.3s ease;*/
}

.menu-toggle:hover .burger-icon {
  transform: scale(1.1);
}

.side-menu {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #222222 100%);
  z-index: 20002;
  /* Fix: Ensure side menu is above everything including notifications */
  transition: right 0.4s ease;
  padding: 30px 0;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.4);
}

.side-menu.active~.menu-toggle {
  opacity: 0;
  visibility: hidden;
}

.header-visible+.menu-toggle,
.header-permanent+.menu-toggle {
  top: 5px;
  background: rgba(32, 32, 32, 0.0);
}

.menu-toggle:hover {
  background: rgba(20, 20, 20, 0.95);
}

/* ====================== */
/* НОВЫЕ СТИЛИ ИЗ TEST.HTML */
/* ====================== */

/* СЕКЦИЯ ПОПУЛЯРНЫЕ ПРОЕКТЫ (новая) */
.popular-projects-section {
  padding: 60px 0;
  background: #141414;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 2.2rem;
  color: #fff;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #dab672;
  margin: 15px auto 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.project-card-new {
  background: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #333;
  height: 100%;
}

.project-card-new:hover {
  transform: translateY(-8px);
  border-color: #dab672;
  box-shadow: 0 15px 30px rgba(218, 182, 114, 0.2);
}

.project-image-new {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.project-image-new img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card-new:hover .project-image-new img {
  transform: scale(1.08);
}

.project-overlay-new {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card-new:hover .project-overlay-new {
  opacity: 1;
}

.project-info-new {
  padding: 20px;
}

.project-info-new h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #fff;
  line-height: 1.3;
}

.project-meta-new {
  display: flex;
  justify-content: space-between;
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid #333;
}

.project-price-new {
  color: #dab672;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
}

.view-all-new {
  text-align: center;
  margin-top: 25px;
  margin-bottom: 25px;
}

.btn-new {
  display: inline-block;
  padding: 12px 30px;
  background: #dab672;
  color: #000;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #dab672;
  font-size: 1rem;
  cursor: pointer;
}

.btn-new:hover {
  background: transparent;
  color: #dab672;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(218, 182, 114, 0.3);
}

.btn-outline-new {
  background: transparent;
  color: #dab672;
  border: 2px solid #dab672;
}

.btn-outline-new:hover {
  background: #dab672;
  color: #000;
}

/* СЕКЦИЯ ВЫБЕРИТЕ СВОЙ ВАРИАНТ (компактная) */
.services-new-section {
  background: #1a1a1a;
  padding: 60px 0;
}

.services-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.service-card-new {
  background: linear-gradient(135deg, #1e1e1e 0%, #242424 100%);
  border-radius: 18px;
  padding: 35px;
  text-align: center;
  border: 1px solid #333;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #dab672;
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card-new:hover::before {
  transform: scaleX(1);
}

.service-card-new:hover {
  transform: translateY(-5px);
  border-color: #dab672;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.service-icon-new {
  width: 70px;
  height: 70px;
  background: rgba(218, 182, 114, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 1.8rem;
  color: #dab672;
  transition: transform 0.3s ease;
}

.service-card-new:hover .service-icon-new {
  transform: scale(1.05);
}

.service-card-new h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #fff;
  font-weight: 600;
}

.service-features-new {
  list-style: none;
  margin-bottom: 25px;
  text-align: left;
}

.service-features-new li {
  padding: 8px 0;
  color: #ccc;
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.service-features-new li:not(:last-child) {
  border-bottom: 1px solid #2a2a2a;
}

.service-features-new li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #dab672;
  font-weight: bold;
  font-size: 1rem;
}

.service-price-new {
  font-size: 1.4rem;
  color: #dab672;
  font-weight: bold;
  margin-bottom: 12px;
}

.service-time-new {
  color: #aaa;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* СЕКЦИЯ ЧАСТЫЕ ВОПРОСЫ (компактная) */
.faq-section {
  padding: 60px 0;
  background: #141414;
}

.faq-container-new {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item-new {
  background: #1a1a1a;
  border-radius: 12px;
  margin-bottom: 15px;
  border: 1px solid #333;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item-new:hover {
  border-color: #444;
}

.faq-question-new {
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
  color: #fff;
  background: #222;
}

.faq-question-new:hover {
  background: #252525;
}

.faq-question-new::after {
  content: '+';
  font-size: 1.5rem;
  color: #dab672;
  transition: transform 0.4s ease;
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 15px;
}

.faq-item-new.active .faq-question-new::after {
  transform: rotate(45deg);
}

.faq-answer-new {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  color: #ccc;
  line-height: 1.6;
  font-size: 1rem;
}

.faq-item-new.active .faq-answer-new {
  padding: 25px 25px 20px;
  max-height: 500px;
}

/* СЕКЦИЯ ОТЗЫВЫ (компактная) */
.reviews-section {
  background: #1a1a1a;
  padding: 60px 0;
}

.reviews-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.review-card-new {
  background: #1e1e1e;
  border-radius: 15px;
  padding: 25px;
  border: 1px solid #333;
  transition: all 0.3s ease;
  height: 100%;
}

.review-card-new:hover {
  border-color: #dab672;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(218, 182, 114, 0.1);
}

.review-header-new {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.review-avatar-new {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #dab672;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  margin-right: 15px;
  color: #000;
  flex-shrink: 0;
}

.review-info-new h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: #fff;
  font-weight: 600;
}

.review-project-new {
  color: #dab672;
  font-size: 0.9rem;
}

.review-stars-new {
  color: #dab672;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.review-text-new {
  color: #ccc;
  line-height: 1.5;
  font-style: italic;
  font-size: 0.95rem;
}

.review-form-container-new {
  background: #1e1e1e;
  border-radius: 18px;
  padding: 40px;
  border: 1px solid #333;
  max-width: 800px;
  margin: 0 auto;
}

.review-form-container-new h3 {
  text-align: center;
  margin-bottom: 25px;
  color: #dab672;
  font-size: 1.6rem;
  font-weight: 600;
}

.form-group-new {
  margin-bottom: 20px;
}

.form-group-new label {
  display: block;
  margin-bottom: 8px;
  color: #ccc;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-group-new input,
.form-group-new textarea,
.form-group-new select {
  width: 100%;
  padding: 14px 16px;
  background: #242424;
  border: 1px solid #333;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form-group-new select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  padding-right: 40px;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
}

.form-group-new input:focus,
.form-group-new textarea:focus,
.form-group-new select:focus {
  outline: none;
  border-color: #dab672;
}

.form-group-new select option {
  background: #242424;
  color: #fff;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.form-group-new textarea {
  height: 120px;
  resize: vertical;
}

.form-submit-new {
  text-align: center;
  margin-top: 25px;
}

.form-submit-new .btn-new {
  padding: 12px 35px;
  font-size: 1rem;
}

/* ====================== */
/* БОКОВОЕ МЕНЮ */
/* ====================== */
/* .side-menu moved to top of file with fix */

.menu-header {
  padding: 0 30px 25px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(218, 182, 114, 0.2);
}

.menu-header h3 {
  color: #dab672;
  font-size: 1.5rem;
  margin: 0;
  text-align: center;
  font-weight: 600;
  letter-spacing: 1px;
}

.side-menu.active {
  right: 0;
}

.close-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 32px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 1003;
}

.close-btn:hover {
  transform: rotate(90deg);
}

.menu {
  display: flex;
  flex-direction: column;
  margin-top: 0;
  padding: 0 25px;
  gap: 8px;
}

.menu-item {
  display: flex;
  align-items: center;
  color: #e0e0e0;
  padding: 18px 25px;
  font-size: 16px;
  border-radius: 10px;
  margin: 0;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  font-weight: 500;
}

.menu-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(to bottom, #dab672, #c9a45e);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: 2px;
}

.menu-item::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #dab672;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-item:hover {
  color: #dab672;
  background: rgba(218, 182, 114, 0.08);
  border-color: rgba(218, 182, 114, 0.2);
  transform: translateX(8px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.menu-item:hover::before {
  transform: scaleX(1);
}

.menu-item:hover::after {
  opacity: 1;
}

.menu-text {
  flex: 1;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
}

.menu-item {
  opacity: 0;
  transform: translateX(30px);
  animation: menuItemAppear 0.6s ease forwards;
}

.menu-item:nth-child(2) {
  animation-delay: 0.1s;
}

.menu-item:nth-child(3) {
  animation-delay: 0.15s;
}

.menu-item:nth-child(4) {
  animation-delay: 0.2s;
}

.menu-item:nth-child(5) {
  animation-delay: 0.25s;
}

.menu-item:nth-child(6) {
  animation-delay: 0.3s;
}

@keyframes menuItemAppear {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.menu-item.active {
  color: #dab672;
  background: rgba(218, 182, 114, 0.12);
  border-color: rgba(218, 182, 114, 0.3);
}

.menu-item.active::before {
  transform: scaleX(1);
}

.menu-item.active::after {
  opacity: 1;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.overlay.active {
  display: block;
}

/* ====================== */
/* ГЛАВНАЯ СЕКЦИЯ (HERO) */
/* ====================== */
.hero-arch {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(20, 20, 20, 0.85) 0%, rgba(34, 34, 34, 0.9) 100%),
    url('Все изображения/Изображения на главный экран/Main_render.webp');
  background-size: cover;
  background-position: center;
}

.hero-arch::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  /* Уменьшили с 200px */
  background: linear-gradient(to bottom, transparent 0%, #141414 100%);
  z-index: 1;
  /* Уменьшили с 100 */
}

.hero-content-new {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-text {
  flex: 1;
  max-width: 700px;
  margin-left: 0;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.logo-container {
  position: relative;
  margin-bottom: 30px;
}

.logo-main {
  font-size: 4.5rem;
  font-weight: bold;
  color: white;
  line-height: 1;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.logo-subtitle {
  font-size: 1.4rem;
  color: #ccc;
  font-weight: 300;
  margin-bottom: 40px;
  position: relative;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #ccc;
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.btn {
  display: inline-block;
  background: transparent;
  color: #dab672;
  border: 2px solid #dab672;
  padding: 12px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}

.btn:hover {
  background: #dab672;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background: #dab672;
  color: #000;
}

.btn-primary:hover {
  background: transparent;
  color: #dab672;
}

.features {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  align-items: center;
  gap: 15px;
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(218, 182, 114, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dab672;
  font-size: 1.2rem;
}

.feature-text {
  display: flex;
  flex-direction: column;
}

.feature-title {
  font-weight: 600;
  margin-bottom: 5px;
  color: white;
}

.feature-desc {
  font-size: 0.9rem;
  color: #aaa;
}

.visual-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  min-height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  background: #222;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
  font-size: 1.4rem;
  color: #dab672;
  margin-bottom: 25px;
  text-align: center;
  width: 100%;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: #dab672;
}

.stats-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  width: 100%;
  margin-bottom: 30px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  flex: 1;
  min-width: 140px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-card:hover {
  transform: translateY(-5px);
  background: rgba(218, 182, 114, 0.1);
  border-color: rgba(218, 182, 114, 0.3);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(218, 182, 114, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dab672;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: bold;
  color: #dab672;
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: #ccc;
  text-align: center;
}

.benefits-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.benefit-item:hover {
  background: rgba(218, 182, 114, 0.05);
  border-color: rgba(218, 182, 114, 0.2);
  transform: translateX(5px);
}

.benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(218, 182, 114, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dab672;
  font-size: 1rem;
  flex-shrink: 0;
}

.benefit-text {
  display: flex;
  flex-direction: column;
}

.benefit-title {
  font-weight: 600;
  margin-bottom: 3px;
  color: white;
  font-size: 1rem;
}

.benefit-desc {
  font-size: 0.85rem;
  color: #aaa;
}

/* ====================== */
/* СЕКЦИЯ ПРОЕКТОВ */
/* ====================== */
.projects-section {
  padding: 30px 0;
  background-color: #222222;
  border-radius: 10px;
}

.container {
  max-width: 1545px;
  margin: 0 auto;
  padding: 0 15px;
}

.projects-link {
  text-decoration: none;
  color: white;
  position: relative;
  transition: color 0.3s;
}

.projects-link:hover {
  color: #dab672;
}

.projects-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #dab672;
  transition: width 0.3s ease;
}

.projects-link:hover::after {
  width: 100%;
}

.carousel-wrapper {
  position: relative;
}

.projects-carousel {
  display: flex;
  overflow-x: auto;
  gap: 25px;
  padding: 15px 5px 30px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.project-card {
  min-width: 280px;
  scroll-snap-align: start;
  flex: 0 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background: #323232;
  border: 1px solid #333;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  border-color: #dab672;
}

.project-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.project-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.08);
}

.project-area {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  backdrop-filter: blur(2px);
  z-index: 10;
}

.project-area-2 {
  position: absolute;
  bottom: 15px;
  left: 90px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  backdrop-filter: blur(2px);
  z-index: 10;
}

.project-title {
  padding: 18px 15px;
  margin: 0;
  font-size: 1.15rem;
  text-align: center;
  color: white;
}



/* ====================== */
/* СЕКЦИЯ УСЛУГ */
/* ====================== */
#services {
  margin-bottom: 60px;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
  color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: #222;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: #dab672;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 25px;
  color: #dab672;
}

.service-card h3 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.service-card p {
  color: #aaa;
  margin-bottom: 30px;
  line-height: 1.7;
}

.btn-service {
  display: inline-block;
  background: #dab672;
  color: #000;
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-service:hover {
  background: #c9a45e;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ====================== */
/* СЕКЦИЯ ПРЕИМУЩЕСТВ */
/* ====================== */
.benefits {
  padding: 60px 20px;
  background: #1a1a1a;
  border-radius: 10px;
  margin: 40px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.benefit-card {
  background: #222;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.benefit-card:hover {
  transform: translateY(-5px);
  border-color: #dab672;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.benefit-card h3 {
  color: #dab672;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.benefit-card p {
  color: #ccc;
  line-height: 1.6;
}

/* ====================== */
/* СЕКЦИЯ БЛОГА */
/* ====================== */
.blog-section {
  background: #1a1a1a;
  padding: 60px 20px;
  border-radius: 10px;
  margin: 40px 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}

.loading-articles {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
  font-size: 1.1rem;
  grid-column: 1 / -1;
}

.no-articles {
  text-align: center;
  padding: 40px 20px;
  color: #aaa;
  grid-column: 1 / -1;
}

.no-articles p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.article-card {
  background: #222;
  border: 1px solid #333;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: #dab672;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.article-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.article-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #aaa;
}

.article-date {
  color: #aaa;
}

.article-category {
  background: #dab672;
  color: #000;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
}

.article-content h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 15px;
  line-height: 1.3;
}

.article-content p {
  color: #aaa;
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
  flex: 1;
}

.read-more {
  color: #dab672;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s;
  margin-top: auto;
}

.read-more:hover {
  color: #fff;
  transform: translateX(5px);
}

.read-more::after {
  content: "→";
  margin-left: 8px;
  transition: transform 0.3s;
}

.read-more:hover::after {
  transform: translateX(5px);
}

.text-center {
  text-align: center;
  margin-top: 40px;
}

/* ====================== */
/* CTA СЕКЦИЯ */
/* ====================== */
.cta-section {
  background: linear-gradient(135deg,
      rgba(218, 182, 114, 0.1),
      rgba(32, 32, 32, 0.9));
  padding: 80px 20px;
  text-align: center;
  border-radius: 10px;
  margin: 60px 0;
  position: relative;
  overflow: hidden;
}

.cta-section h2 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-section p {
  color: #ccc;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

.btn-custom {
  display: inline-block;
  background: #dab672;
  color: #000;
  font-weight: bold;
  padding: 15px 45px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-custom:hover {
  background: #c9a45e;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* ====================== */
/* ВИДЖЕТ МЕССЕНДЖЕРОВ - Перенесено в footer.css */

/* ====================== */
/* ВИДЖЕТ КОРЗИНЫ */
/* ====================== */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1999;
  display: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cart-overlay.active {
  display: block;
}

.cart-widget {
  position: fixed;
  top: 0;
  right: -400px;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: #222;
  z-index: 2000;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
  transition: right 0.4s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cart-widget.active {
  right: 0;
}

.cart-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px;
  background: #1a1a1a;
  border-bottom: 1px solid #333;
}

.cart-widget-header h3 {
  color: #dab672;
  font-size: 1.5rem;
  margin: 0;
}

.close-cart {
  background: none;
  border: none;
  color: #aaa;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.close-cart:hover {
  color: #dab672;
}

.cart-widget-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: #aaa;
}

.cart-item {
  background: #2a2a2a;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid #333;
}

.cart-item-top {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 10px;
}

.cart-item-thumb {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #333;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  display: block;
  color: #dab672;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 5px;
  transition: opacity 0.3s;
}

.cart-item-title:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.cart-item-price {
  color: #fff;
  font-weight: bold;
}

.cart-item-base {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 4px;
}

.cart-item-options {
  padding-top: 10px;
  border-top: 1px solid #333;
  margin-top: 10px;
}

.option-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: #aaa;
  position: relative;
}

.option-name {
  flex: 1;
}

.option-price {
  color: #dab672;
}

.remove-option {
  background: none;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  margin-left: 10px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.remove-option:hover {
  color: #ff6b6b;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #e74c3c;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 5px;
  transition: opacity 0.3s;
  transform: scale(2);
}

.cart-item-remove:hover {
  opacity: 0.8;
}

.cart-widget-summary {
  padding: 25px;
  background: #1a1a1a;
  border-top: 1px solid #333;
  z-index: 1001;
}

.cart-widget-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #fff;
}

.cart-widget-total-price {
  color: #dab672;
  font-weight: bold;
}

.btn-order {
  width: 100%;
  padding: 15px;
  background: #dab672;
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 10px;
  text-align: center;
  text-decoration: none;
  display: block;
}

.btn-order:disabled {
  background: #555;
  cursor: not-allowed;
}

.btn-order:not(:disabled):hover {
  background: #c9a45e;
}

.btn-order.in-cart {
  background: #333 !important;
  border: 1px solid #dab672 !important;
  color: #dab672 !important;
}

.btn-order.in-cart:hover {
  background: #444 !important;
}

/* ====================== */
/* ПОДВАЛ - Перенесено в footer.css */

/* Основное исправление для иконок */
.service-card-new .service-icon-new {
  width: 70px !important;
  height: 70px !important;
  border-radius: 50% !important;
  background: rgba(218, 182, 114, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 25px !important;
  font-size: 1.8rem;
  color: #dab672;
  transition: transform 0.3s ease;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}
/* ====================== */
/* ШИРОКИЙ КОНТЕЙНЕР ДЛЯ ПОПУЛЯРНЫХ ПРОЕКТОВ */
/* ====================== */
.container-wide {
    max-width: 1600px; /* Увеличиваем максимальную ширину */
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ====================== */
/* МЕДИА-ЗАПРОСЫ (ПОЛНОСТЬЮ ПЕРЕПИСАНО С УЧЕТОМ ВСЕХ ИСПРАВЛЕНИЙ) */
/* ====================== */

/* 1. ОБЩИЙ ФИКС ДЛЯ КАРТОЧЕК СТАТЕЙ */
.articles-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.article-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #222;
  border: 1px solid #333;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.article-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-content p {
  flex: 1;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* 2. МОБИЛЬНЫЕ УСТРОЙСТВА (до 767px) */
@media (max-width: 767px) {

  /* Общие стили */
  body {
    font-size: 15px;
    line-height: 1.5;
    overflow-x: hidden;
  }

  .container {
    padding: 0 15px;
    width: 100%;
  }

  /* Шапка */
  .header-container {
    padding: 0 10px;
  }

  .logo {
    font-size: 20px;
    padding-left: 10px;
  }

  .cart-container {
    padding-right: 55px;
  }

  .header-visible+.menu-toggle,
  .header-permanent+.menu-toggle {
    top: 10px;
    right: 15px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    top: 15px;
    right: 15px;
  }

  /* Убираем тень на мобильных */
  .menu-toggle,
  .side-menu,
  .cart-widget {
    box-shadow: none !important;
  }

  /* Герой секция */
  .hero-arch {
    height: auto;
    min-height: 100vh;
    padding: 70px 0 30px;
    background-attachment: scroll;
  }

  .hero-content-new {
    padding: 0 15px;
  }

  .hero-main {
    flex-direction: column;
    gap: 40px;
  }

  .hero-text {
    text-align: center;
  }

  .logo-main {
    font-size: 2.5rem;
    margin-bottom: 5px;
  }

  .logo-subtitle {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .features {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .feature {
    max-width: 100%;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  /* Визуальная часть */
  .visual-container {
    padding: 20px;
    max-width: 100%;
    margin: 0 auto;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
  }

  .stat-card {
    padding: 15px;
  }

  .stat-value {
    font-size: 1.8rem;
  }

  /* Популярные проекты */
  .popular-projects-section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
  }

  .projects-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 0;
  }

  .project-card-new {
    width: 100%;
    max-width: 100%;
  }

  .project-image-new {
    height: 200px;
  }

  /* Кнопка "Смотреть все проекты" - ВСЕГДА ПО ЦЕНТРУ */
  .view-all-new {
    text-align: center !important;
    display: flex;
    justify-content: center;
    margin-top: 25px;
    margin-bottom: 25px;
    width: 100%;
  }

  .view-all-new .btn-new {
    margin: 0 auto;
  }

  /* Секция "Выберите свой вариант" */
  .services-new-section {
    padding: 40px 0;
  }

  .services-grid-new {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .service-card-new {
    width: 100% !important;
    padding: 25px 20px;
  }

  /* ФИКС: Исправляем подложку иконок в сервисах */
  .service-icon-new {
    width: 70px !important;
    height: 70px !important;
    margin: 0 auto 25px;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Центрируем текст в карточках сервисов */
  .service-card-new h3,
  .service-features-new,
  .service-price-new,
  .service-time-new,
  .service-card-new .btn-new {
    text-align: center;
  }

  /* FAQ */
  .faq-section {
    padding: 40px 0;
  }

  .faq-question-new {
    padding: 18px 20px;
    font-size: 1rem;
  }

  /* Отзывы */
  .reviews-section {
    padding: 40px 0;
  }

  .reviews-grid-new {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .review-card-new {
    width: 100%;
  }

  /* Статьи - 1 колонка на мобильных */
  .blog-section {
    padding: 40px 0;
  }

  .articles-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  .article-card {
    width: 100%;
  }

  /* Боковое меню */
  .side-menu {
    width: 85%;
    max-width: 300px;
    right: -85%;
    box-shadow: none !important;
  }

  /* КОРЗИНА - ФИКС ДЛЯ МОБИЛЬНЫХ */
  .cart-widget {
    width: 100% !important;
    max-width: 100% !important;
    right: -100% !important;
    box-shadow: none !important;
  }

  .cart-widget.active {
    right: 0 !important;
  }

  /* Виджеты */
  .messenger-widget {
    bottom: 20px;
    right: 20px;
  }

  /* Футер */
  .footer-container {
    flex-direction: column;
    gap: 25px;
  }

  .footer-column {
    min-width: 100%;
  }
}

/* 3. ПЛАНШЕТЫ (768px - 1023px) - iPad Mini, iPad Air */
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    max-width: 720px;
    padding: 0 20px;
  }
.container-wide {
        max-width: 720px;
    }
  /* Герой секция - убираем обрезку */
  .hero-arch {
    min-height: 100vh;
    height: auto;
    padding: 80px 0 40px;
  }

  .hero-main {
    flex-direction: column;
    text-align: center;
    gap: 50px;
  }

  .hero-text {
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  .logo-main {
    font-size: 3.5rem;
  }

  .logo-subtitle {
    font-size: 1.2rem;
    margin-bottom: 25px;
  }

  .hero-description {
    max-width: 80%;
    margin: 0 auto 30px;
  }

  .hero-actions {
    justify-content: center;
  }

  .features {
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
  }

  .feature {
    min-width: calc(50% - 15px);
    max-width: calc(50% - 15px);
    text-align: left;
  }

  /* УЛУЧШЕННЫЙ БЛОК ПОПУЛЯРНЫЕ ПРОЕКТЫ на планшетах */
  .popular-projects-section {
    padding: 50px 0;
  }

  /* На планшетах делаем 2 колонки */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .project-card-new {
    width: 100%;
  }

  .project-image-new {
    height: 220px;
  }

  /* Кнопка "Смотреть все проекты" */
  .view-all-new {
    text-align: center !important;
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
    width: 100%;
  }

  .view-all-new .btn-new {
    margin: 0 auto;
  }

  /* Секция услуг на планшетах */
  .services-new-section {
    padding: 50px 0;
  }

  .services-grid-new {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-card-new {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
  }

  /* ФИКС: Подложки иконок */
  .service-icon-new {
    width: 70px !important;
    height: 70px !important;
    margin: 0 auto 25px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Отзывы на планшетах */
  .reviews-section {
    padding: 50px 0;
  }

  .reviews-grid-new {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  /* Статьи на планшетах - 2 колонки ШИРОКИЕ */
  .blog-section {
    padding: 50px 0;
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .article-card {
    width: 100%;
  }

  /* Боковое меню на планшетах */
  .side-menu {
    width: 350px;
  }

  /* Виджеты на планшетах */
  .messenger-widget {
    bottom: 25px;
    right: 25px;
  }

  /* КОРЗИНА - ФИКС ДЛЯ ПЛАНШЕТОВ (iPad Mini, iPad Air) */
  .cart-widget {
    width: 100% !important;
    max-width: 100% !important;
    right: -100% !important;
  }

  .cart-widget.active {
    right: 0 !important;
  }
}

/* 4. IPAD PRO (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
  .container {
    max-width: 960px;
    padding: 0 20px;
  }
.container-wide {
        max-width: 1200px;
    }
  /* УЛУЧШЕННЫЙ БЛОК ПОПУЛЯРНЫЕ ПРОЕКТЫ на iPad Pro */
  /* Делаем 3 колонки с адаптивной шириной */
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .project-card-new {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .project-image-new {
    height: 220px;
    flex-shrink: 0;
  }

  /* Кнопка "Смотреть все проекты" */
  .view-all-new {
    text-align: center !important;
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
    width: 100%;
  }

  .view-all-new .btn-new {
    margin: 0 auto;
  }

  /* Секция "Выберите свой вариант" */
  .services-grid-new {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .service-card-new {
    width: 100% !important;
  }

  /* ФИКС: Подложки иконок */
  .service-icon-new {
    width: 70px !important;
    height: 70px !important;
    margin: 0 auto 25px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Отзывы на iPad Pro */
  .reviews-grid-new {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  /* Статьи на iPad Pro - 3 колонки ШИРОКИЕ */
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .article-card {
    width: 100%;
  }

  /* Боковое меню на iPad Pro */
  .side-menu {
    width: 320px;
  }

  /* КОРЗИНА - ФИКС ДЛЯ IPAD PRO */
  .cart-widget {
    width: 400px !important;
    max-width: 400px !important;
    right: -400px !important;
  }

  .cart-widget.active {
    right: 0 !important;
  }
  
}

/* 5. ДЕСКТОПЫ (1200px и больше) - ОСНОВНОЙ ФИКС ДЛЯ КАРТОЧЕК СТАТЕЙ */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
  .container-wide {
        max-width: 1600px;
        padding: 0 40px; /* Увеличиваем отступы для широкого экрана */
    }

  /* УЛУЧШЕННЫЙ БЛОК ПОПУЛЯРНЫЕ ПРОЕКТЫ на десктопах */
  /* 4 колонки с широкими карточками */
  .projects-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }

  .project-image-new {
    height: 240px;
  }

  .project-card-new {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  /* Кнопка "Смотреть все проекты" */
  .view-all-new {
    text-align: center !important;
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
    width: 100%;
  }

  .view-all-new .btn-new {
    margin: 0 auto;
  }

  /* ОСНОВНОЙ ФИКС: Статьи на десктопах - 4 колонки ШИРОКИЕ */
  .articles-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px;
  }

  .article-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto;
    display: flex !important;
    flex-direction: column !important;
  }

  .article-image {
    height: 220px;
    flex-shrink: 0;
    width: 100%;
  }

  .article-content {
    flex: 1;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0;
  }

  .article-content h3 {
    flex-shrink: 0;
    font-size: 1.4rem;
    margin-bottom: 15px;
  }

  .article-content p {
    flex: 1;
    overflow: hidden;
    margin-bottom: 20px;
  }

  .article-card:hover {
    transform: translateY(-5px);
  }

  /* КОРЗИНА - ДЕСКТОПНАЯ ВЕРСИЯ */
  .cart-widget {
    width: 400px !important;
    max-width: 400px !important;
    right: -400px !important;
  }

  .cart-widget.active {
    right: 0 !important;
  }
}

/* 6. ОЧЕНЬ БОЛЬШИЕ ЭКРАНЫ (1440px и больше) */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
.container-wide {
        max-width: 1800px; /* Еще шире на очень больших экранах */
    }
  /* УЛУЧШЕННЫЙ БЛОК ПОПУЛЯРНЫЕ ПРОЕКТЫ на больших экранах */
  .projects-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
  }

  .project-image-new {
    height: 260px;
  }

  .project-card-new:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(218, 182, 114, 0.25);
  }

  /* Кнопка "Смотреть все проекты" */
  .view-all-new {
    text-align: center !important;
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
    width: 100%;
  }

  .view-all-new .btn-new {
    margin: 0 auto;
  }

  /* Статьи на больших экранах - 5 колонок ШИРОКИЕ */
  .articles-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
  }

  .article-card {
    width: 100%;
  }
}

/* 7. СПЕЦИАЛЬНЫЕ УСТРОЙСТВА */

/* iPad Pro (1024x1366) - портретная ориентация */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: portrait) {

  /* Популярные проекты - 3 колонки */
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Статьи - 3 колонки */
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Отзывы - 2 колонки */
  .reviews-grid-new {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Surface Pro 7 (912x1368) */
@media (min-width: 912px) and (max-width: 1368px) {
  .hero-arch {
    height: auto;
    min-height: 100vh;
    padding: 80px 0;
  }

  /* Популярные проекты - 3 колонки */
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Статьи - 3 колонки */
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Отзывы - 2 колонки */
  .reviews-grid-new {
    grid-template-columns: repeat(2, 1fr);
  }

  /* КОРЗИНА - ФИКС ДЛЯ SURFACE PRO 7 */
  .cart-widget {
    width: 400px !important;
    max-width: 400px !important;
    right: -400px !important;
  }

  .cart-widget.active {
    right: 0 !important;
  }
}

/* Nest Hub (1024x600) */
@media (min-width: 1024px) and (max-height: 600px) {
  .hero-arch {
    height: auto;
    min-height: 100vh;
    padding: 60px 0;
  }

  /* Популярные проекты - 4 колонки */
  .projects-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Статьи - 4 колонки */
  .articles-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Отзывы - 2 колонки */
  .reviews-grid-new {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Nest Hub Max (1280x800) */
@media (min-width: 1280px) and (max-height: 800px) {

  /* Популярные проекты - 5 колонок */
  .projects-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  /* Статьи - 5 колонок */
  .articles-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* 8. ЛАНДШАФТНАЯ ОРИЕНТАЦИЯ */
@media (max-height: 600px) and (orientation: landscape) {
  .hero-arch {
    min-height: auto;
    padding: 40px 0 30px;
  }

  .hero-main {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .hero-text {
    max-width: 60%;
    text-align: left;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .features {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .feature {
    min-width: calc(50% - 10px);
    max-width: calc(50% - 10px);
    flex-direction: row;
    text-align: left;
  }

  /* Популярные проекты в ландшафте */
  .popular-projects-section {
    padding: 30px 0;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .project-image-new {
    height: 180px;
  }

  /* Статьи в ландшафте */
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* КОРЗИНА - ФИКС ДЛЯ ЛАНДШАФТНОЙ ОРИЕНТАЦИИ */
  .cart-widget {
    width: 400px !important;
    max-width: 400px !important;
    right: -400px !important;
  }

  .cart-widget.active {
    right: 0 !important;
  }
}

/* 9. iOS SAFE AREA */
@supports (padding: max(0px)) {
  @media (max-width: 767px) {

    .hero-arch,
    .popular-projects-section,
    .services-new-section,
    .faq-section,
    .reviews-section {
      padding-left: max(15px, env(safe-area-inset-left));
      padding-right: max(15px, env(safe-area-inset-right));
    }

    .menu-toggle {
      top: max(15px, env(safe-area-inset-top));
      right: max(15px, env(safe-area-inset-right));
    }

    .messenger-widget {
      bottom: max(20px, env(safe-area-inset-bottom));
      right: max(20px, env(safe-area-inset-right));
    }
  }
}

/* 10. РЕСПОНСИВНАЯ ТИПОГРАФИКА */
@media (max-width: 767px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: calc(1.8rem + 1vw);
  }

  h2 {
    font-size: calc(1.5rem + 0.8vw);
  }

  h3 {
    font-size: calc(1.2rem + 0.6vw);
  }
}

/* 11. REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 12. ПРЕДОТВРАЩЕНИЕ ГОРИЗОНТАЛЬНОГО СКРОЛЛА */
@media (max-width: 767px) {
  body {
    overflow-x: hidden;
  }
.container-wide {
        padding: 0 15px; /* Стандартные отступы для мобильных */
    }
    
    .container-wide .projects-grid {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }
  .container,
  .hero-content-new {
    overflow-x: hidden;
  }

  img,
  video,
  iframe {
    max-width: 100%;
    height: auto;
  }
}

/* 13. ФИНАЛЬНЫЕ ФИКСЫ */

/* Гарантируем круглые подложки иконок на всех устройствах */
.service-card-new .service-icon-new {
  width: 70px !important;
  height: 70px !important;
  border-radius: 50% !important;
  background: rgba(218, 182, 114, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 25px !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}

/* Гарантируем центрирование заголовков секций */
.section-title {
  text-align: center !important;
  width: 100%;
}

/* Центрируем кнопку "Смотреть все проекты" всегда */
.view-all-new {
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 30px 0 !important;
}

.view-all-new .btn-new {
  display: inline-block;
  margin: 0 auto;
}

/* Финальный фикс для карточек статей */
@media (min-width: 1200px) {
  .blog-section .articles-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .blog-section .article-card {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* Финальный фикс для края корзины на всех устройствах */
@media (max-width: 1023px) {
  .cart-widget {
    width: 100% !important;
    max-width: 100% !important;
    right: -100% !important;
  }

  .cart-widget.active {
    right: 0 !important;
  }
}

/* Исключение для iPad Pro и десктопов */
@media (min-width: 1024px) {
  .cart-widget {
    width: 400px !important;
    max-width: 400px !important;
    right: -400px !important;
  }

  .cart-widget.active {
    right: 0 !important;
  }
    .features {
    gap: 30px; /* было 40px */
  }
  .feature-icon {
    width: 44px;  /* было 50px */
    height: 44px; /* было 50px */
    font-size: 1rem; /* было 1.2rem */
  }
  .feature-title {
    font-size: 1rem;     /* если нужно уменьшить заголовок */
  }
  .feature-desc {
    font-size: 0.85rem;  /* было 0.9rem */
  }
}

.service-card-new {
  width: 100% !important;
  box-sizing: border-box;
}

.structured-links {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: -100;
}