/* ============================================= */
/* СТИЛИ ДЛЯ СТРАНИЦЫ "О МАСТЕРЕ" */
/* ============================================= */

/* === Блок с главной фотографией мастера === */
.master-hero {
  min-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.master-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.7)),
              url('img/master-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.master-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* === Блок с фото мастера в hero-секции === */
.master-hero-flex {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.master-hero-text {
  flex: 1;
  min-width: 0;
}

.master-hero-photo {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.master-photo-frame {
  width: 192px;
  height: 192px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(218, 165, 32, 0.3);
  box-shadow: 
    0 0 20px rgba(218, 165, 32, 0.4),
    inset 0 0 20px rgba(0, 0, 0, 0.5);
  position: relative;
  background: var(--metal-dark);
  animation: photoGlow 3s ease-in-out infinite alternate;
}

@keyframes photoGlow {
  0% {
    box-shadow: 
      0 0 20px rgba(218, 165, 32, 0.4),
      inset 0 0 20px rgba(0, 0, 0, 0.5);
  }
  100% {
    box-shadow: 
      0 0 35px rgba(218, 165, 32, 0.6),
      inset 0 0 15px rgba(0, 0, 0, 0.7);
  }
}

.master-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.master-photo-frame:hover img {
  transform: scale(1.05);
}

.master-photo-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg, 
    rgba(218, 165, 32, 0.1) 0%, 
    transparent 50%,
    rgba(139, 69, 19, 0.1) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* === Временная шкала === */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background: var(--bronze-gradient);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  border-radius: 3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
  margin-bottom: 3rem;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  padding: 2rem;
  background: var(--metal-gradient);
  border-radius: var(--border-radius-lg);
  position: relative;
  border: 1px solid rgba(218, 165, 32, 0.2);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  border-color: var(--bronze-medium);
}

.timeline-year {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.timeline-description {
  color: #ccc;
  line-height: 1.6;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -12px;
  background-color: var(--gold-light);
  border: 4px solid var(--metal-dark);
  top: 20px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(even)::after {
  left: -13px;
}

/* === Галерея наград === */
.awards-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.award-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(218, 165, 32, 0.2);
  transition: var(--transition);
}

.award-item:hover {
  transform: translateY(-5px);
  border-color: var(--bronze-medium);
  box-shadow: var(--shadow-glow);
}

.award-icon {
  font-size: 3rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.award-year {
  color: var(--steel-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.award-title {
  color: var(--gold-light);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.award-description {
  color: #ccc;
  font-size: 0.9rem;
}

/* === Блок философии === */
.philosophy-block {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(45, 45, 45, 0.9));
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  margin: 3rem 0;
  border-left: 5px solid var(--bronze-medium);
  position: relative;
  overflow: hidden;
}

.philosophy-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(218,165,32,0.05)"/></svg>');
  background-size: cover;
  z-index: 0;
}

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

.philosophy-quote {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  text-align: center;
}

.philosophy-author {
  text-align: right;
  color: var(--steel-light);
  font-size: 1rem;
}

/* === Блок с географией работ === */
.geo-map {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  border-radius: var(--border-radius-lg);
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
}

.geo-point {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--gold-gradient);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 2s infinite;
}

.geo-label {
  position: absolute;
  background: rgba(26, 26, 26, 0.9);
  border: 1px solid rgba(218, 165, 32, 0.3);
  border-radius: var(--border-radius);
  padding: 0.5rem 1rem;
  color: var(--gold-light);
  font-size: 0.9rem;
  transform: translateX(-50%);
  white-space: nowrap;
  margin-top: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.geo-point:hover .geo-label {
  opacity: 1;
}

/* === Блок с оборудованием === */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.equipment-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(218, 165, 32, 0.1);
  transition: var(--transition);
}

.equipment-item:hover {
  border-color: var(--bronze-medium);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.equipment-icon {
  font-size: 2.5rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.equipment-name {
  color: var(--gold-light);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.equipment-description {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* === Breadcrumbs (хлебные крошки) === */
.breadcrumbs {
  background: rgba(26, 26, 26, 0.7);
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(218, 165, 32, 0.2);
  margin-bottom: 2rem;
}

.breadcrumbs-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--steel-light);
  font-size: 0.9rem;
}

.breadcrumbs-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs-item:not(:last-child)::after {
  content: '/';
  color: var(--steel-light);
  margin-left: 0.5rem;
}

.breadcrumbs-link {
  color: var(--steel-light);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumbs-link:hover {
  color: var(--gold-light);
}

.breadcrumbs-current {
  color: var(--gold-light);
}

/* ============================================= */
/* СТИЛИ ДЛЯ СТРАНИЦЫ "КОНТАКТЫ" */
/* ============================================= */

/* === Герой-секция для страницы контактов === */
.contacts-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 0 2rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, 
    rgba(26, 26, 26, 0.9) 0%, 
    rgba(45, 45, 45, 0.9) 50%, 
    rgba(10, 10, 10, 0.9) 100%);
}

.contacts-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(218, 165, 32, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 69, 19, 0.1) 0%, transparent 50%);
  z-index: -1;
}

/* === Сетка контактной информации === */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1400px;
  padding: 0 2rem;
}

/* === Карточки контактов === */
.contact-card {
  background: linear-gradient(135deg, 
    rgba(26, 26, 26, 0.8) 0%, 
    rgba(45, 45, 45, 0.8) 100%);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  border: 1px solid rgba(218, 165, 32, 0.3);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bronze-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.contact-card:hover::before {
  transform: scaleX(1);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  border-color: var(--bronze-medium);
}

/* Заголовок карточки с иконкой справа */
.contact-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.contact-card-icon-right {
  font-size: 1.8rem;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(218, 165, 32, 0.1);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-card:hover .contact-card-icon-right {
  background: rgba(218, 165, 32, 0.2);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 20px rgba(218, 165, 32, 0.3);
}

.contact-card-title {
  color: var(--gold-light);
  font-size: 1.4rem;
  margin: 0;
  font-weight: 600;
  flex: 1;
}

/* Скрываем старые иконки */
.contact-card-icon {
  display: none;
}

.contact-card-content {
  color: #ddd;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* === Списки контактов === */
.contact-list {
  list-style: none;
  margin-top: 1rem;
}

.contact-list li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: #ddd;
}

.contact-list li i {
  color: var(--gold-light);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.contact-link {
  color: var(--steel-light);
  text-decoration: none;
  transition: var(--transition);
  border-bottom: 1px dashed rgba(176, 196, 222, 0.3);
  padding-bottom: 2px;
}

.contact-link:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

/* === Карта === */
.map-container-large {
  margin: 2rem auto;
  max-width: 1400px;
  padding: 0 2rem;
}

.map-wrapper {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 2px solid rgba(218, 165, 32, 0.3);
  box-shadow: var(--shadow-md);
  height: 500px;
  position: relative;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, 
    transparent 70%, 
    rgba(10, 10, 10, 0.8) 100%);
  pointer-events: none;
}

/* === География работ === */
.work-areas {
  margin: 3rem auto;
  max-width: 1400px;
  padding: 0 2rem;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.area-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  border: 1px solid rgba(218, 165, 32, 0.1);
  transition: var(--transition);
  text-align: center;
}

.area-card:hover {
  border-color: var(--bronze-medium);
  transform: translateY(-3px);
}

.area-icon {
  font-size: 2rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.area-title {
  color: var(--gold-light);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.area-list {
  list-style: none;
  text-align: left;
  margin-top: 1rem;
}

.area-list li {
  margin-bottom: 0.5rem;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.area-list li:before {
  content: '✓';
  color: var(--gold-light);
  font-weight: bold;
}

/* === Форма обратной связи === */
.contact-form-section {
  background: rgba(26, 26, 26, 0.7);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin: 2rem auto;
  max-width: 1400px;
  width: calc(100% - 2rem);
  border: 1px solid rgba(218, 165, 32, 0.2);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.form-info {
  color: #ddd;
}

.form-info h3 {
  color: var(--gold-light);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.form-info ul {
  list-style: none;
  margin-top: 1rem;
}

.form-info li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.form-info li i {
  color: var(--gold-light);
  margin-top: 0.2rem;
}

.contact-form {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(218, 165, 32, 0.2);
}

.contact-form .form-group {
  margin-bottom: 1.2rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.4rem;
  color: #ddd;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(218, 165, 32, 0.3);
  border-radius: var(--border-radius);
  color: white;
  font-family: inherit;
  font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--bronze-medium);
  box-shadow: 0 0 0 2px rgba(218, 165, 32, 0.2);
}

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

.social-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.social-contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ddd;
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 1px solid rgba(218, 165, 32, 0.1);
}

.social-contact-link:hover {
  background: rgba(218, 165, 32, 0.1);
  color: var(--gold-light);
  border-color: var(--bronze-medium);
  transform: translateY(-2px);
}

.social-contact-link i {
  font-size: 1.2rem;
}

/* === SEO-контент блок === */
.seo-content-block {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin: 2rem auto;
  max-width: 1400px;
  border: 1px solid rgba(218, 165, 32, 0.1);
}

.seo-content-block h2 {
  color: var(--gold-light);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

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

.seo-column h3 {
  color: var(--gold-light);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.seo-column h3 i {
  color: var(--gold-light);
}

/* ============================================= */
/* АДАПТИВНЫЕ СТИЛИ ДЛЯ ОБЕИХ СТРАНИЦ */
/* ============================================= */

/* === Адаптивность для страницы "О мастере" === */

/* Адаптивность временной шкалы */
@media (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-item::after {
    left: 18px;
  }
  
  .timeline-item:nth-child(even)::after {
    left: 18px;
  }
  
  .breadcrumbs {
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
  }
  
  .master-hero {
    padding-top: 100px;
    min-height: auto;
  }
  
  .master-hero-content {
    padding-top: 20px;
  }
  
  .master-hero-flex {
    gap: 1.2rem;
    margin-bottom: 1.2rem;
  }
  
  .master-hero-photo {
    margin-top: 10px;
  }
  
  .master-photo-frame {
    width: 132px;
    height: 132px;
    border-width: 2px;
  }
}

/* Размеры фото мастера для разных устройств */
@media (min-width: 1400px) {
  .master-photo-frame {
    width: 204px;
    height: 204px;
  }
}

@media (max-width: 1400px) and (min-width: 1201px) {
  .master-photo-frame {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 1200px) {
  .master-photo-frame {
    width: 156px;
    height: 156px;
  }
  
  .master-hero-flex {
    gap: 2rem;
  }
}

@media (max-width: 992px) {
  .master-hero-flex {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .master-hero-photo {
    order: -1;
    margin-top: 0.5rem;
  }
  
  .master-photo-frame {
    width: 144px;
    height: 144px;
  }
}

@media (max-width: 576px) {
  .master-hero {
    padding-top: 30px;
    padding-bottom: 1rem;
  }
  
  .master-hero-content {
    padding-top: 30px;
  }
  
  .master-hero-flex {
    gap: 1rem;
    margin-bottom: 1rem;
  }
  
  .master-hero-photo {
    margin-top: 25px;
  }
  
  .master-photo-frame {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .master-hero {
    padding-top: 30px;
  }
  
  .master-hero-content {
    padding-top: 40px;
  }
  
  .master-hero-photo {
    margin-top: 30px;
  }
  
  .master-photo-frame {
    width: 108px;
    height: 108px;
  }
}

@media (max-width: 400px) {
  .master-hero {
    padding-top: 40px;
  }
  
  .master-hero-content {
    padding-top: 50px;
  }
  
  .master-hero-photo {
    margin-top: 35px;
  }
  
  .master-photo-frame {
    width: 96px;
    height: 96px;
    border-width: 2px;
  }
}

@media (max-width: 360px) {
  .master-photo-frame {
    width: 84px;
    height: 84px;
  }
}

/* === Адаптивность для страницы "Контакты" === */

/* Адаптивность для иконок в контактах */
@media (max-width: 1200px) {
  .contact-card-icon-right {
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
  }
}

@media (max-width: 992px) {
  .contact-card-icon-right {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .contact-card-title {
    font-size: 1.3rem;
  }
  
  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .map-wrapper {
    height: 400px;
  }
  
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .contacts-hero {
    padding: 5rem 0 1.5rem;
    min-height: 60vh;
  }
  
  .map-wrapper {
    height: 350px;
  }
  
  .contact-form-section {
    padding: 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .seo-columns-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-card {
    padding: 1.5rem;
  }
  
  /* Фикс для выравнивания иконок на мобильных */
  .contact-card-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  
  .contact-card-icon-right {
    width: 45px;
    height: 45px;
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-left: 1rem;
  }
  
  .contact-card-title {
    font-size: 1.2rem;
    flex: 1;
    text-align: left;
  }
}

@media (max-width: 576px) {
  .map-wrapper {
    height: 300px;
  }
  
  .contact-card-icon-right {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    margin-left: 0.8rem;
  }
  
  .contact-card-title {
    font-size: 1.1rem;
  }
  
  .contact-card {
    padding: 1.2rem;
  }
  
  .social-contacts {
    flex-direction: column;
  }
  
  .social-contact-link {
    justify-content: center;
  }
  
  .contact-card-header {
    align-items: center;
    gap: 0.8rem;
  }
}

@media (max-width: 400px) {
  .contact-card-icon-right {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
    margin-left: 0.5rem;
  }
  
  .contact-card-title {
    font-size: 1rem;
    line-height: 1.3;
  }
  
  .contact-card {
    padding: 1rem;
  }
  
  .contact-list li {
    font-size: 0.9rem;
  }
  
  /* Специальный фикс для вертикального выравнивания */
  .contact-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
  }
  
  .contact-card-title {
    display: flex;
    align-items: center;
    height: 100%;
  }
}

/* Специальные фиксы для центрирования иконок на мобильных */
@media (max-width: 768px) {
  .contact-card-header {
    display: flex;
    align-items: center;
  }
  
  .contact-card-icon-right {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .contact-card-title {
    display: flex;
    align-items: center;
    min-height: 45px;
  }
}


    /* Стили для анкерных ссылок внутри страницы */
    .faq-anchor-nav {
      background: rgba(26, 26, 26, 0.7);
      border-radius: var(--border-radius);
      padding: 1.5rem;
      margin: 2rem auto;
      border: 1px solid rgba(218, 165, 32, 0.3);
      max-width: 1400px;
    }
    .faq-anchor-links {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      justify-content: center;
    }
    .faq-anchor-link {
      display: inline-block;
      padding: 0.6rem 1.2rem;
      background: rgba(218, 165, 32, 0.1);
      border: 1px solid rgba(218, 165, 32, 0.3);
      border-radius: 30px;
      color: var(--steel-light);
      text-decoration: none;
      font-size: 0.9rem;
      transition: var(--transition);
      white-space: nowrap;
    }
    .faq-anchor-link:hover {
      background: rgba(218, 165, 32, 0.2);
      color: var(--gold-light);
      transform: translateY(-2px);
    }
    /* Стили для расширенной таблицы-сравнения */
    .comparison-table {
      width: 100%;
      border-collapse: collapse;
      margin: 2rem 0;
      background: rgba(255, 255, 255, 0.03);
      border-radius: var(--border-radius);
      overflow: hidden;
      border: 1px solid rgba(218, 165, 32, 0.2);
    }
    .comparison-table th {
      background: linear-gradient(135deg, rgba(218, 165, 32, 0.3), rgba(139, 69, 19, 0.3));
      color: var(--gold-light);
      padding: 1.2rem;
      text-align: left;
      font-weight: 600;
      border-bottom: 2px solid rgba(218, 165, 32, 0.4);
    }
    .comparison-table td {
      padding: 1rem 1.2rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      color: #ddd;
      vertical-align: top;
    }
    .comparison-table tr:last-child td {
      border-bottom: none;
    }
    .comparison-table tr:hover {
      background: rgba(218, 165, 32, 0.05);
    }
    .pros-cons-list {
      list-style: none;
      padding-left: 0;
    }
    .pros-cons-list li {
      padding: 0.3rem 0;
      display: flex;
      align-items: flex-start;
      gap: 0.5rem;
    }
    .pros-cons-list li i.fa-check {
      color: #28a745;
    }
    .pros-cons-list li i.fa-times {
      color: #dc3545;
    }
    /* Адаптивность для таблицы */
    @media (max-width: 768px) {
      .comparison-table {
        display: block;
        overflow-x: auto;
      }
      .faq-anchor-links {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
      }
      .faq-anchor-link {
        flex-shrink: 0;
      }
    }
    
    /* НОВЫЙ СТИЛЬ ДЛЯ СТРАНИЦЫ ОТЗЫВОВ */
    /* Стили для фильтра отзывов */
    .reviews-filter {
      background: rgba(26, 26, 26, 0.7);
      border-radius: var(--border-radius);
      padding: 1.5rem;
      margin: 2rem auto;
      border: 1px solid rgba(218, 165, 32, 0.3);
      max-width: 1400px;
    }
    .filter-title {
      color: var(--gold-light);
      font-size: 1.2rem;
      margin-bottom: 1rem;
      text-align: center;
    }
    .filter-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 0.8rem;
      justify-content: center;
    }
    .filter-btn {
      padding: 0.6rem 1.2rem;
      background: rgba(218, 165, 32, 0.1);
      border: 1px solid rgba(218, 165, 32, 0.3);
      border-radius: 30px;
      color: var(--steel-light);
      cursor: pointer;
      transition: var(--transition);
      font-size: 0.9rem;
    }
    .filter-btn:hover,
    .filter-btn.active {
      background: rgba(218, 165, 32, 0.2);
      color: var(--gold-light);
      border-color: var(--gold-light);
    }
    /* Стили для рейтинга в отзывах */
    .review-rating-stars {
      color: var(--gold-light);
      font-size: 0.9rem;
      letter-spacing: 2px;
    }
    .review-rating-stars .empty {
      color: var(--steel-light);
    }
    /* Стили для ответа мастера */
    .master-response {
      background: rgba(218, 165, 32, 0.05);
      border-left: 3px solid var(--gold-light);
      padding: 1rem;
      margin-top: 1rem;
      border-radius: 0 var(--border-radius) var(--border-radius) 0;
    }
    .master-response-title {
      color: var(--gold-light);
      font-weight: 600;
      margin-bottom: 0.5rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .master-response-title i {
      color: var(--gold-light);
    }
    .master-response-text {
      color: #ddd;
      line-height: 1.6;
      font-size: 0.95rem;
    }
    /* Стили для статистики отзывов */
    .reviews-stats {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1.5rem;
      margin: 2rem auto;
      max-width: 1400px;
    }
    .stat-card {
      background: rgba(255, 255, 255, 0.03);
      border-radius: var(--border-radius);
      padding: 1.5rem;
      text-align: center;
      border: 1px solid rgba(218, 165, 32, 0.2);
      transition: var(--transition);
    }
    .stat-card:hover {
      border-color: var(--bronze-medium);
      transform: translateY(-5px);
    }
    .stat-number {
      font-size: 2.5rem;
      font-weight: 700;
      background: var(--gold-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      margin-bottom: 0.5rem;
    }
    .stat-label {
      color: var(--steel-light);
      font-size: 0.95rem;
    }
    /* Стили для формы добавления отзыва */
    .add-review-form {
      background: rgba(26, 26, 26, 0.7);
      border-radius: var(--border-radius);
      padding: 1.5rem;
      margin: 3rem auto;
      border: 2px solid rgba(218, 165, 32, 0.3);
      max-width: 800px;
    }
    .add-review-title {
      color: var(--gold-light);
      font-size: 1.8rem;
      margin-bottom: 1.5rem;
      text-align: center;
    }
    .rating-input {
      display: flex;
      justify-content: center;
      gap: 0.5rem;
      margin-bottom: 1.5rem;
      direction: rtl;
    }
    .rating-input input {
      display: none;
    }
    .rating-input label {
      font-size: 2rem;
      color: var(--steel-light);
      cursor: pointer;
      transition: var(--transition);
    }
    .rating-input label:hover,
    .rating-input label:hover ~ label,
    .rating-input input:checked ~ label {
      color: var(--gold-light);
    }
    /* Адаптивность */
    @media (max-width: 768px) {
      .reviews-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
      }
      .stat-card {
        padding: 1rem;
      }
      .stat-number {
        font-size: 2rem;
      }
      .filter-buttons {
        gap: 0.5rem;
      }
      .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
      }
    }
    @media (max-width: 480px) {
      .reviews-stats {
        grid-template-columns: 1fr;
      }
    }
    
  /* ============================================= */
/* СТИЛИ ДЛЯ СТРАНИЦЫ БЛОГА  */
/* ============================================= */
    
    .blog-page {
      padding-top: 80px;
      min-height: 100vh;
    }
    
    /* ГЕРОЙ БЛОГА */
    .blog-hero {
      background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(45, 45, 45, 0.95));
      padding: 3rem 2rem;
      margin-bottom: 2rem;
      text-align: center;
      border-bottom: 2px solid rgba(218, 165, 32, 0.3);
    }
    
    .blog-hero h1 {
      font-size: 2.8rem;
      margin-bottom: 1rem;
      background: linear-gradient(135deg, var(--gold-light), var(--bronze-medium));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    
    .blog-subtitle {
      font-size: 1.2rem;
      color: var(--steel-light);
      max-width: 800px;
      margin: 0 auto 1.5rem;
      line-height: 1.6;
    }
    
    /* ФИЛЬТРЫ */
    .blog-filters {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 0.8rem;
      margin: 2rem auto;
      max-width: 1200px;
      padding: 0 1rem;
    }
    
    .filter-btn {
      padding: 0.6rem 1.2rem;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(218, 165, 32, 0.3);
      color: #ddd;
      border-radius: 25px;
      cursor: pointer;
      transition: var(--transition);
      font-size: 0.9rem;
      white-space: nowrap;
    }
    
    .filter-btn:hover,
    .filter-btn.active {
      background: rgba(218, 165, 32, 0.15);
      color: var(--gold-light);
      border-color: var(--bronze-medium);
      transform: translateY(-2px);
    }
    
    /* ОСНОВНОЙ КОНТЕЙНЕР */
    .blog-main-container {
      display: flex;
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 1rem;
      gap: 2rem;
    }
    
    /* СЕТКА СТАТЕЙ */
    .blog-articles-grid {
      flex: 1;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
      gap: 1.5rem;
      margin-bottom: 3rem;
    }
    
    /* КАРТОЧКА СТАТЬИ */
    .article-card {
      background: var(--metal-gradient);
      border-radius: var(--border-radius);
      overflow: hidden;
      transition: var(--transition);
      border: 1px solid rgba(218, 165, 32, 0.1);
      height: 100%;
      display: flex;
      flex-direction: column;
    }
    
    .article-card:hover {
      transform: translateY(-5px);
      box-shadow: var(--shadow-lg);
      border-color: var(--bronze-medium);
    }
    
    .article-image {
      width: 100%;
      height: 200px;
      overflow: hidden;
      position: relative;
    }
    
    .article-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.6s ease;
    }
    
    .article-card:hover .article-image img {
      transform: scale(1.05);
    }
    
    .article-category {
      position: absolute;
      top: 1rem;
      left: 1rem;
      background: var(--bronze-gradient);
      color: white;
      padding: 0.3rem 0.8rem;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 600;
    }
    
    .article-content {
      padding: 1.5rem;
      flex: 1;
      display: flex;
      flex-direction: column;
    }
    
    .article-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1rem;
      font-size: 0.85rem;
      color: var(--steel-light);
    }
    
    .article-date i,
    .article-read-time i {
      margin-right: 0.3rem;
    }
    
    .article-title {
      font-size: 1.3rem;
      margin-bottom: 0.8rem;
      color: var(--gold-light);
      line-height: 1.3;
    }
    
    .article-title a {
      color: inherit;
      text-decoration: none;
      transition: var(--transition);
    }
    
    .article-title a:hover {
      color: var(--bronze-light);
    }
    
    .article-excerpt {
      color: #ccc;
      line-height: 1.6;
      margin-bottom: 1.2rem;
      flex: 1;
      font-size: 0.95rem;
    }
    
    .article-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 1rem;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .article-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
    }
    
    .article-tag {
      background: rgba(255, 255, 255, 0.05);
      color: var(--steel-light);
      padding: 0.2rem 0.6rem;
      border-radius: 12px;
      font-size: 0.7rem;
    }
    
    .read-more-btn {
      background: transparent;
      color: var(--gold-light);
      border: 1px solid var(--bronze-medium);
      padding: 0.4rem 1rem;
      border-radius: var(--border-radius);
      cursor: pointer;
      transition: var(--transition);
      font-size: 0.9rem;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
    }
    
    .read-more-btn:hover {
      background: rgba(218, 165, 32, 0.1);
      transform: translateX(3px);
    }
    
    /* БОКОВАЯ ПАНЕЛЬ */
    .blog-sidebar {
      width: 300px;
      flex-shrink: 0;
    }
    
    .sidebar-widget {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(218, 165, 32, 0.2);
      border-radius: var(--border-radius);
      padding: 1.5rem;
      margin-bottom: 1.5rem;
    }
    
    .widget-title {
      color: var(--gold-light);
      font-size: 1.2rem;
      margin-bottom: 1rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid rgba(218, 165, 32, 0.3);
    }
    
    .recent-articles {
      list-style: none;
    }
    
    .recent-article {
      margin-bottom: 0.8rem;
      padding-bottom: 0.8rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .recent-article:last-child {
      margin-bottom: 0;
      padding-bottom: 0;
      border-bottom: none;
    }
    
    .recent-article a {
      color: #ddd;
      text-decoration: none;
      transition: var(--transition);
      font-size: 0.9rem;
      line-height: 1.4;
    }
    
    .recent-article a:hover {
      color: var(--gold-light);
    }
    
    .recent-article-date {
      font-size: 0.8rem;
      color: var(--steel-light);
      margin-top: 0.2rem;
    }
    
    .tag-cloud {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }
    
    .tag-cloud a {
      background: rgba(255, 255, 255, 0.05);
      color: #ccc;
      padding: 0.3rem 0.8rem;
      border-radius: 20px;
      text-decoration: none;
      font-size: 0.85rem;
      transition: var(--transition);
    }
    
    .tag-cloud a:hover {
      background: rgba(218, 165, 32, 0.15);
      color: var(--gold-light);
    }
    
    /* ПОИСК */
    .blog-search {
      position: relative;
      margin-bottom: 1.5rem;
    }
    
    .blog-search input {
      width: 100%;
      padding: 0.8rem 1rem 0.8rem 2.5rem;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(218, 165, 32, 0.3);
      border-radius: var(--border-radius);
      color: white;
      font-family: inherit;
    }
    
    .blog-search i {
      position: absolute;
      left: 0.8rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--steel-light);
    }
    
    /* ПОЛНАЯ СТАТЬЯ */
    .article-full-view {
      display: none;
      max-width: 900px;
      margin: 0 auto;
      padding: 2rem;
    }
    
    .article-full-view.active {
      display: block;
      animation: fadeIn 0.5s ease;
    }
    
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    
    .full-article {
      background: rgba(26, 26, 26, 0.8);
      border-radius: var(--border-radius-lg);
      border: 1px solid rgba(218, 165, 32, 0.2);
      padding: 2rem;
    }
    
    .full-article-header {
      margin-bottom: 2rem;
      text-align: center;
    }
    
    .full-article-title {
      font-size: 2.2rem;
      color: var(--gold-light);
      margin-bottom: 1rem;
      line-height: 1.3;
    }
    
    .full-article-meta {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 2rem;
      margin-bottom: 1.5rem;
      color: var(--steel-light);
      font-size: 0.9rem;
    }
    
    .full-article-image {
      width: 100%;
      height: 400px;
      border-radius: var(--border-radius);
      overflow: hidden;
      margin-bottom: 2rem;
    }
    
    .full-article-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .full-article-content {
      color: #ddd;
      line-height: 1.7;
      font-size: 1.05rem;
    }
    
    .full-article-content h2 {
      color: var(--gold-light);
      margin: 2rem 0 1rem;
      font-size: 1.6rem;
    }
    
    .full-article-content h3 {
      color: var(--bronze-light);
      margin: 1.5rem 0 0.8rem;
      font-size: 1.3rem;
    }
    
    .full-article-content p {
      margin-bottom: 1.2rem;
    }
    
    .full-article-content ul,
    .full-article-content ol {
      margin-left: 1.5rem;
      margin-bottom: 1.2rem;
    }
    
    .full-article-content li {
      margin-bottom: 0.5rem;
    }
    
    .back-to-blog {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      color: var(--gold-light);
      text-decoration: none;
      margin-top: 2rem;
      padding: 0.8rem 1.5rem;
      background: rgba(218, 165, 32, 0.1);
      border-radius: var(--border-radius);
      transition: var(--transition);
      border: 1px solid rgba(218, 165, 32, 0.3);
    }
    
    .back-to-blog:hover {
      background: rgba(218, 165, 32, 0.2);
      transform: translateX(-5px);
    }
    
    /* ПАГИНАЦИЯ */
    .blog-pagination {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 0.5rem;
      margin: 3rem auto;
      padding: 1rem;
    }
    
    .pagination-btn {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(218, 165, 32, 0.3);
      color: #ddd;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: var(--transition);
      font-size: 0.9rem;
    }
    
    .pagination-btn:hover:not(.disabled) {
      background: rgba(218, 165, 32, 0.15);
      color: var(--gold-light);
      border-color: var(--bronze-medium);
    }
    
    .pagination-btn.active {
      background: var(--bronze-gradient);
      color: white;
      border-color: var(--bronze-medium);
    }
    
    .pagination-btn.disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }
    
    /* АДАПТИВНОСТЬ */
    @media (max-width: 1200px) {
      .blog-main-container {
        flex-direction: column;
      }
      
      .blog-sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
      }
      
      .sidebar-widget {
        margin-bottom: 0;
      }
    }
    
    @media (max-width: 992px) {
      .blog-hero {
        padding: 2rem 1rem;
      }
      
      .blog-hero h1 {
        font-size: 2.2rem;
      }
      
      .blog-subtitle {
        font-size: 1.1rem;
      }
      
      .blog-articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.2rem;
      }
    }
    
    @media (max-width: 768px) {
      .blog-page {
        padding-top: 70px;
      }
      
      .blog-hero {
        padding: 1.5rem 1rem;
      }
      
      .blog-hero h1 {
        font-size: 1.8rem;
      }
      
      .blog-filters {
        gap: 0.5rem;
      }
      
      .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
      }
      
      .blog-articles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
      }
      
      .article-full-view {
        padding: 1rem;
      }
      
      .full-article {
        padding: 1.5rem;
      }
      
      .full-article-title {
        font-size: 1.8rem;
      }
      
      .full-article-image {
        height: 250px;
      }
      
      .full-article-meta {
        flex-direction: column;
        gap: 0.5rem;
      }
    }
    
    @media (max-width: 480px) {
      .blog-hero h1 {
        font-size: 1.6rem;
      }
      
      .blog-subtitle {
        font-size: 1rem;
      }
      
      .article-content {
        padding: 1.2rem;
      }
      
      .article-title {
        font-size: 1.2rem;
      }
      
      .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
      }
      
      .article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
      }
    }
    
    /* ГОРИЗОНТАЛЬНАЯ ОРИЕНТАЦИЯ НА МОБИЛЬНЫХ */
    @media (max-width: 768px) and (orientation: landscape) {
      .blog-articles-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      
      .article-image {
        height: 150px;
      }
      
      .article-title {
        font-size: 1.1rem;
      }
      
      .article-excerpt {
        font-size: 0.9rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }
    }
 /* Дополнительные стили для страницы статьи */
    .full-article-page {
      max-width: 1200px;
      margin: 0 auto;
      padding: 40px 20px;
    }
    .back-to-blog-btn {
      display: inline-block;
      margin-bottom: 30px;
      color: var(--gold-light, #c9a03d);
      text-decoration: none;
      font-size: 16px;
      transition: color 0.3s;
    }
    .back-to-blog-btn:hover {
      color: var(--gold-dark, #a07d2e);
      text-decoration: underline;
    }
    .full-article-title {
      font-size: 2.5rem;
      margin-bottom: 20px;
      color: var(--gold-light, #c9a03d);
      line-height: 1.2;
    }
    .full-article-meta {
      margin-bottom: 30px;
      color: #aaa;
      display: flex;
      gap: 20px;
      flex-wrap: wrap;
      font-size: 14px;
    }
    .full-article-image {
      margin-bottom: 30px;
    }
    .full-article-image img {
      width: 100%;
      max-height: 500px;
      object-fit: cover;
      border-radius: 10px;
    }
    .full-article-content {
      color: #ddd;
      line-height: 1.8;
      font-size: 16px;
    }
    .full-article-content h2 {
      color: var(--gold-light, #c9a03d);
      margin-top: 30px;
      margin-bottom: 15px;
      font-size: 1.8rem;
    }
    .full-article-content h3 {
      color: var(--gold-light, #c9a03d);
      margin-top: 25px;
      margin-bottom: 12px;
      font-size: 1.5rem;
    }
    .full-article-content h4 {
      color: var(--gold-light, #c9a03d);
      margin-top: 20px;
      margin-bottom: 10px;
      font-size: 1.3rem;
    }
    .full-article-content p {
      margin-bottom: 15px;
    }
    .full-article-content ul, .full-article-content ol {
      margin: 15px 0;
      padding-left: 25px;
    }
    .full-article-content li {
      margin-bottom: 8px;
    }
    .full-article-content blockquote {
      border-left: 4px solid var(--gold-light, #c9a03d);
      margin: 20px 0;
      padding: 15px 20px;
      background: rgba(201, 160, 61, 0.1);
      font-style: italic;
      border-radius: 0 10px 10px 0;
    }
    .full-article-content strong {
      color: var(--gold-light, #c9a03d);
    }
    @media (max-width: 768px) {
      .full-article-title {
        font-size: 1.8rem;
      }
      .full-article-meta {
        gap: 10px;
        font-size: 12px;
      }
      .full-article-content {
        font-size: 14px;
      }
    }   
    
 /* ============================================= */
/* СТИЛИ ДЛЯ СТРАНИЦЫ ПОРТФОЛИО */
/* ============================================= */
    .portfolio-full-section {
      padding: 2rem 0;
    }
    .portfolio-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 1.5rem;
      padding: 0 2rem;
      max-width: 1400px;
      margin: 0 auto;
    }
    .portfolio-item {
      aspect-ratio: 1 / 1;
      overflow: hidden;
      border-radius: var(--border-radius);
      box-shadow: var(--shadow-md);
      cursor: pointer;
      transition: var(--transition);
      background: var(--metal-medium);
      position: relative;
    }
    .portfolio-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }
    .portfolio-item:hover {
      transform: translateY(-5px) scale(1.02);
      box-shadow: var(--shadow-glow);
    }
    .portfolio-item:hover img {
      transform: scale(1.1);
    }
    @media (max-width: 768px) {
      .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
        padding: 0 1rem;
      }
    }
    
    .portfolio-full-section {
    padding: 2rem 0;
  }
  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
  }

  /* Анимация появления */
  .portfolio-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--border-radius, 12px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.15));
    cursor: pointer;
    background: var(--metal-medium, #f0f0f0);
    position: relative;
    opacity: 0;
    transform: translateY(30px) rotateY(-10deg);
    transition: 
      transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275),
      opacity 0.6s ease-out,
      box-shadow 0.3s ease;
  }

  /* Когда элемент "в зоне видимости" */
  .portfolio-item.animate-in {
    opacity: 1;
    transform: translateY(0) rotateY(0);
  }

  .portfolio-item:hover {
    transform: translateY(-8px) scale(1.03) rotateY(2deg);
    box-shadow: var(--shadow-glow, 0 12px 24px rgba(0,0,0,0.25));
    z-index: 2;
  }

  .portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .portfolio-item:hover img {
    transform: scale(1.12);
  }

  @media (max-width: 768px) {
    .portfolio-grid {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 1rem;
      padding: 0 1rem;
    }
    .portfolio-item {
      transform: translateY(20px) rotateY(-5deg);
    }
    .portfolio-item.animate-in {
      transform: translateY(0) rotateY(0);
    }
  }

  /* Эффект "поворота" при наведении (опционально) */
  @keyframes flipIn {
    0% {
      transform: perspective(800px) rotateY(-90deg);
      opacity: 0;
    }
    100% {
      transform: perspective(800px) rotateY(0);
      opacity: 1;
    }
  }
  
  