@font-face {
  font-family: 'Akrobat';
  src: url("/static/fonts/Akrobat-SemiBold.958c85eacdec.woff2") format('woff2'),
       url("/static/fonts/Akrobat-SemiBold.137b0ec1b2f8.woff") format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Akrobat';
  src: url("/static/fonts/Akrobat-Thin.99bacbe7cc90.woff2") format('woff2'),
       url("/static/fonts/Akrobat-Thin.ac195fad54b3.woff") format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

h2 .thin {
  font-family: 'Akrobat', sans-serif;
  font-weight: 100; /* Akrobat Thin */
}

h2 strong {
  font-family: 'Akrobat', sans-serif;
  font-weight: 600; /* Akrobat SemiBold */
}





html, body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: scroll; 
    min-height: 100%;
}

body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

body {
    background: linear-gradient(to bottom, #ffffff, #f4f3ef); 
    font-family: 'Akrobat', sans-serif;
    font-weight: 600; /* используется SemiBold по умолчанию */
    margin: 0;
    padding: 0;
    letter-spacing: 0.1em;
    color: #423730;
    min-height: 100vh;
}

.red-letter {
    color: red;
}

@media (max-width: 768px) {
    .header-row {
        padding-left: 5vw;
        padding-right: 5vw;
        gap: 2vw;
    }
}

.header-row {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box; 
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between; /* элементы распределятся равномерно */
    padding-left: 12.19vw;
    padding-right: 12.19vw;

    gap: 1vw;
    min-width: 0; 
}

.header-row > * {
    min-width: 0; /* позволяет элементам сжиматься */
    flex-shrink: 1; /* разрешает сжатие */
}

.header-row h2 {
    white-space: nowrap; /* текст не переносится */
    overflow: hidden;
    text-overflow: ellipsis; /* добавляет ... при переполнении */
    min-width: 0;
}



.header-row form {
  position: relative;
  width: 250px; /* убираем фиксированную ширину */
  margin: 0 auto; /* горизонтальное центрирование */
  flex-shrink: 5; /* не сжимать форму */
  /* transform-origin: center; */
  transform: scale(0.75);  
  min-width: 100px;
}


.header-row .custom-search {
  width: 100%;
  padding: 10px 35px 10px 15px;
  border: 2px solid #423730;
  background: white;
  outline: none;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 50%, calc(100% - 30px) 100%, 0 100%);
  /* padding уже уменьшён */
  align-items: center;
}

.header-row form::before {
  content: '';
  position: absolute;
  right: -3px;
  top: 0;
  width: 35px;
  height: 100%;
  background:
      linear-gradient(to bottom left, transparent 48%, #423730 48%, #423730 52%, transparent 52%) top,
      linear-gradient(to top left, transparent 48%, #423730 48%, #423730 52%, transparent 52%) bottom;
  background-size: 100% 50%;
  background-repeat: no-repeat;
  z-index: 5;
}





.icons-group {
  display: flex; /* добавьте эту строку */
  gap: 2vw;
  align-items: center; /* опционально, для выравнивания по вертикали */
  flex-shrink: 0; /* запретить сжатие группы иконок */
}

.icons-group span {
    flex-shrink: 0; /* каждая иконка сохраняет размер */
}

.vpro { /* надпись василий, лого и пространство */
    gap: 1vw;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.menu-wrapper {
    width: 100%;
    background-color: transparent;
}

#menu {
    width: calc(100% - 12.19vw);
    background: linear-gradient(to bottom, #e8e6e5, #cdc9c8); 
    display: flex;
    justify-content: space-between; 
    align-items: flex-end;
    gap: 2vw;
    height: 20px;
    position: relative;
    box-sizing: border-box;
    padding-left: 12.19vw; 
}

#menu a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
    display: inline-block;
    padding: 0;
    transition: color 0.3s;
    position: relative;
    z-index: 2;

    padding-bottom: 0;
    line-height: 1;

    letter-spacing: 0.1em; /* увеличивает расстояние между буквами */
}

#menu a:hover { /*!!!!!!!!!!!*/
    color: #000;
}


/* Последний элемент прижимается к правому краю */
#menu a:last-child {
    margin-left: auto; /* занимает всё свободное пространство слева */
}

#indicator {
    position: absolute;
    width: 10px; /* ширина квадратика */
    height: 10px; /* высота квадратика */
    background-color: red;
    bottom: 3px; /* позиция от низа */
    left: 12.19vw; /* начальная позиция - не подчиняется отступу */
    transition: transform 0.3s ease, left 0.3s ease;
    pointer-events: none; /* не мешает кликам */
    z-index: 3;
}

/*----------------------------------------------------------*/

/* Контейнер для секции */
.design-section {
    display: flex;
    align-items: flex-start;
    width: 100%;
    position: relative;
}

/* Вертикальная навигация */
#page-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: absolute;
    right: calc(100% - 12.19vw + 20px); /* 20px левее от края карусели */
    padding-top: 20px;
    /* transform: translateY(-50%); */
    z-index: 10;
}


#page-nav button {
    /* Убираем все визуальные элементы кнопки */
    background: none;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    
    /* Стили текста */
    font-size: 18px;
    font-weight: 500;
    color: #333;
    text-align: right;
    padding: 0;
    letter-spacing: 0.1em;
    
    /* Плавный переход */
    transition: all 0.3s ease;
}

#page-nav button:hover {
    color: #ff6b6b; /* цвет при наведении */
    transform: translateX(-5px); /* лёгкое смещение влево */
}

#page-nav button:focus {
    outline: none; /* убираем обводку при клике */
}

#page-nav button:active {
    color: #ff5252;
}

/* Карусель */
.carousel-container {
    width: 100%;
    padding-left: 12.19vw;
    padding-right: 12.19vw;
    padding-top: 25px;
    box-sizing: border-box;
    pointer-events: none;
}

#photo-carousel {
  width: 100%;
  /* height: 70vh; */
  /* min-height: 400px;
  max-height: 900px;  */
  overflow: hidden;
  position: relative;
  aspect-ratio: 1449 / 1015; /* соотношение сторон */
  pointer-events: none;
}

.carousel-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.carousel-photo.active {
    opacity: 1;
}


/* Иконки соцсетей справа */
#social-icons {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: absolute;
    right: calc(5.2vw);
    top: 100px;
    z-index: 10;
  }
  
  /* Стили для иконок */
  #social-icons img {
    display: block;
    cursor: pointer;
  } 


  /* ----------------------------------------------*/

  .service-cube {
    position: absolute;
    left: max(10px, calc(12.19vw - 170px));
    top: min(10px, calc(-9vh));
    width: min(150px, calc(12.19vw)); /* сжимается при малом экране */
    height: auto; /* сохраняет пропорции */
    max-width: 150px;
    z-index: 10;
}
  
  .service-cube img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

 /* Стили для первой плитки: первый ряд */
 .first-grid {
    display: grid;
    grid-template-columns: 1.87fr 1fr; /* первая карточка шире */
    gap: 0;
    width: 100%;
    height: 130px; /* высота ряда */
    padding-left: 12.19vw; /* отступ слева */
    box-sizing: border-box;
  }

  /* Изображения карточек - видны полностью */
.first-grid .service-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    transition: opacity 0.3s ease;
    display: block;
    margin: 0;
    padding: 0;
    border: none;

    object-fit: fill;
    /* object-position: top; */
  }

  
  /* Стили для второй плитки: остальные ряды */
  .second-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* две колонки равной ширины */
    grid-template-rows: 300px 320px 250px; /* два ряда по 300px + последний 400px */
    gap: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .card-7 {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
  }
  
  /* Общие стили карточек */
  .service-card {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
  }
  
  /* Изображения карточек */
  .service-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    transition: opacity 0.3s ease;
    display: block;
    margin: 0;
    padding: 0;
    border: none;

    object-fit: fill;
    /* object-position: top; */
  }
  
  .service-card .default-img {
    opacity: 1;
    z-index: 1;
    position: absolute;
  }
  
  .service-card .hover-img {
    opacity: 0;
    z-index: 2;
    position: absolute;
  }
  
  .service-card:hover .default-img {
    opacity: 0;
  }
  
  .service-card:hover .hover-img {
    opacity: 1;
  }
  

  /* --------------------------------------------------*/

  #why-us {
    position: relative;
  }
  
  .content-with-heart {
    display: flex;
    
    align-items: flex-start;
    margin-bottom: 20px;
  }
  
  .text-content {
    flex: 1; /* текст занимает всё доступное пространство */
    max-width: calc(100% - 200px); /* оставляем место для сердечка */
  }
  
  .heart-container {
    flex-shrink: 0;
    width: 150px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px; /* отступ сверху, если нужно */
  }
  
  .heart {
    width: 100%;
    height: auto;
    max-width: 150px;
  }
  
  .remaining-text {
    width: 100%;
  }
  
  /* Адаптивность для мобильных */
  @media (max-width: 768px) {
    .content-with-heart {
      flex-direction: column;
    }
    
    .text-content {
      max-width: 100%;
    }
    
    .heart-container {
      width: 100%;
      justify-content: flex-end;
    }
  }
  

  /* --------------------------------------------*/ 


  .pricing-layout {
    display: flex;
    gap: 40px; /* расстояние между изображениями и текстом */
    align-items: flex-start;
    padding-left: 12.19vw;
    padding-right: 12.19vw;
    box-sizing: border-box;
  }
  
  /* Левая колонка с изображениями */
  .images-column {
    display: flex;
    flex-direction: column; /* вертикальное расположение */

    flex-shrink: 0; /* изображения не сжимаются */
    width: 200px; /* ширина колонки с изображениями */

  }
  
  .pricing-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;

  }

  
  /* Правая колонка с контентом */
  .content-column {
    flex: 1; /* занимает всё оставшееся пространство */
    padding-top: 0; /* выравнивание с верхом изображений */

  }
  
  .content-column h2 {
    margin-top: 0;
    margin-bottom: 20px;

  }
  
  .content-column p {
    line-height: 1.6;

  }

  #pricing {
    position: relative;
    padding-bottom: 100px; /* добавьте отступ снизу, чтобы не перекрывать контент */

  }
  
  .triangle-bottom {
    position: absolute;
    bottom: 120px; 
    left: 12.19vw; /* отступ слева как у колонки */
    width: 200px; /* ширина изображения */
    height: auto;
    z-index: -1;
    
  }
  
  
  /* Адаптивность для мобильных */
  @media (max-width: 768px) {
    .pricing-layout {
      flex-direction: column;
      padding-left: 20px;
      padding-right: 20px;
    }
    
    .images-column {
      width: 100%;
      flex-direction: row; /* горизонтально на мобильных */
      justify-content: center;
    }
    
    .pricing-image {
      max-width: 150px;
    }
  }
  

/* --------------------------------------------*/ 

#order {
    margin-left: 12.19vw;
    margin-right: 12.19vw;
    position: relative;
  }
  
  /* Фото полноширинное без отступов */
  #order img {
    width: calc(100% + 24.38vw); /* компенсируем отступы слева и справа */
    max-width: none;
    margin-left: -12.19vw;
    margin-right: -12.19vw;
    display: block;
    height: auto;
    position: relative; /* чтобы было ниже по слою, можно указать z-index: 0 */
    z-index: 0;
  }
  
  /* Текст поверх фото */
  .skidki {
    position: absolute;
    top: 60px;
    max-width: calc(25.88vw); 
    max-height: 75%;
    box-sizing: border-box;
    color: black;
    background: transparent;
    padding: 10px;
    line-height: 1.4;
    font-size: 14px;
    overflow: auto; /* скроллер появляется только если нужен */
    overflow-wrap: break-word;
    z-index: 10;
  }
  

  img.inline-icon {
    width: 35px !important;    /* фиксированная ширина */
    height: 35px !important;   /* фиксированная высота */
    max-width: none !important;
    max-height: none !important;
    vertical-align: middle !important;
    display: inline-block !important;
    margin: 0 4px !important;
  }
  

  a.clickable-line {
    color: inherit; /* наследовать цвет родителя, не синий */
    text-decoration: underline; /* подчёркивание */
    cursor: pointer;
  }
  
  a.clickable-line:hover {
    color: inherit; /* сохранять цвет при наведении, менять можно при желании */
    text-decoration: underline; /* пусть подчёркивание остаётся */
  }
  

/* ---------------------------------------------- */

#Контакты {
    display: flex;
    align-items: baseline; /* выравниваем первый и третий по базовой линии */
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Первый блок - отступ слева 12.19vw */
.left-block {
    margin-left: 12.19vw;
    position: sticky;
    bottom: 1px;
    /* top: auto; */
    white-space: nowrap;
    display: inline-block;
    z-index: 1;
  }

.global-info-wrapper {
    position: sticky;
    bottom: 0;
    margin: 40px 0 0;
    z-index: 20;
    background: transparent;
    overflow: hidden;
    isolation: isolate;
}

.global-info-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("../images/kontakt.5f41ecedeee5.png");
    background-size: 29vw auto;
    background-repeat: no-repeat;
    background-position: left bottom;
    z-index: -1;
}

.global-info-blocks {
    display: flex;
    justify-content: space-between;
    gap: 2vw;
    align-items: flex-end;
    margin-left: 12.19vw;
    margin-right: 12.19vw;
}

.global-info-block {
    flex: 1;
    background: transparent;
    padding: 0;
    box-sizing: border-box;
    letter-spacing: 0.05em;
}

.info-block-brand {
    text-align: right;
}

.info-block-contacts h2 {
    margin: 0 0 12px;
}

@media (max-width: 900px) {
    .global-info-wrapper {
        margin: 40px 8vw 20px;
    }

    .global-info-blocks {
        flex-direction: column;
        gap: 20px;
    }
}
  
  /* Второй блок - отступ слева 25.88vw, поднимаем выше */
  .center-block {
    margin-left: calc(50% - 12.19vw);
    margin-right: calc(50% - 12.19vw);
    width: calc(100% - 24.38vw);
    position: relative;
    text-align: left;
  }
  
  /* Третий блок - отступ справа 12.19vw, текст вправо */
  .right-block {
    margin-right: 12.19vw;
    text-align: right;
    max-width: 30%;
    position: relative;
    top: 130px
  }
  
  /* Для адаптива */
  @media (max-width: 768px) {
    #Контакты {
      flex-direction: column;
      align-items: flex-start;
    }
    .left-block, .center-block, .right-block {
      margin: 0 0 20px 0;
      max-width: 100%;
      text-align: left;
      position: static;
      top: auto;
    }

  .global-info-wrapper::before {
    content: none;
  }
  }
  

  /* ---------------------------------------------------------------- */

  /* Галерея */
.gallery-section {
    padding: 40px 12.19vw;
  }
  
  .gallery-section h1 {
    margin-bottom: 40px;
    text-align: center;
  }
  
  .gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 столбца */
    grid-template-rows: repeat(6, 240px); /* 6 строк по 300px */
    gap: 15px;
    width: 100%;

  }
  
  .gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0;
  }
  
  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
  }
  
  .gallery-item:hover img {
    transform: scale(1.05);
  }
  
  /* Оверлей с текстом при наведении */
  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .gallery-item:hover .overlay {
    opacity: 1;
  }
  
  .overlay .text {
    color: white;
    font-size: 1.2rem;
    text-align: center;
    padding: 20px;
  }
  
  /* Lightbox */
  .lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
  }
  
  .lightbox.active {
    display: flex;
  }
  
  .lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
  }
  
  .close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
  }
  
  .prev-btn,
  .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background 0.3s ease;
  }
  
  .prev-btn:hover,
  .next-btn:hover {
    background: rgba(255, 255, 255, 0.4);
  }
  
  .prev-btn {
    left: 30px;
  }
  
  .next-btn {
    right: 30px;
  }
  
  /* Адаптивность */
  @media (max-width: 768px) {
    .gallery-container {
      grid-template-columns: repeat(2, 1fr); /* 2 столбца на планшетах */
      grid-template-rows: repeat(9, 200px); /* 9 строк */
    }
  }
  
  @media (max-width: 480px) {
    .lightbox img {
      max-width: 95vw;
      max-height: 85vh;
    }
    .gallery-container {
      grid-template-columns: 1fr; /* 1 столбец на мобильных */
      grid-template-rows: repeat(18, 250px);
    }
  }
  

  .gallery-background {
    position: absolute;
    bottom: 0;
    
    left: 0;
    width: 100vw; /* вся ширина окна */
    height: 951px; /* нужная высота, можно изменить */
    z-index: -1; /* фон под основным контентом */
    pointer-events: none; /* чтобы клики проходили сквозь фон */
    overflow: hidden; /* чтобы изображение не выходило за пределы */
  }
  
  .gallery-background img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* чтобы картинка покрывала весь блок */
    display: block;
    pointer-events: none;
  }
  

  /* ------------------------------------------------------------------------------------*/

  /* Секции каталога */
  .catalog-section {
    padding: 60px 12.19vw;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    background-color: #f4f3f0;
  }
  
  .catalog-section:nth-child(even) {
    background-color: #ffffff;
  }
  
  .section-content {
    width: 100%;
  }
  
  .section-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
  }
  
  .section-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
  }
  
  /* Адаптивность */
  @media (max-width: 768px) {
    .catalog-section {
      padding: 40px 20px;
    }
    
    .section-content h2 {
      font-size: 24px;
    }
  }
  
  .zastavka-container {
    width: 100%;
    padding-left: 12.19vw;
    padding-right: 12.19vw;
    padding-top: 25px;
    padding-bottom: 0 !important; /*강제 убрать padding внизу */
    margin-bottom: 0 !important; /* убрать margin внизу */
    box-sizing: border-box;
  }
  
  #photo-zastavka {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  #photo-zastavka img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0; /* убрать пустую строку под картинкой */
    font-size: 0; /* убрать встроенный отступ от текста */
  }
  
  /* Убрать margin у первой секции */
  .catalog-section:first-of-type {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  
  
  .products-container {
    padding: 40px 12.19vw;
  }
  
  .subcategory-section {
    margin-bottom: 60px;
  }
  
  .subcategory-section h3 {
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
  }
  
  .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
  }
  
  .product-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    text-decoration: none;
    color: inherit;
    display: block;
  }
  
  .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
  
  .product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
  }
  
  .product-info {
    padding: 15px;
  }
  
  .product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
  }
  
  .product-size {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
  }
  
  .product-price {
    font-size: 18px;
    font-weight: bold;
    color: #000;
  }
  
  @media (max-width: 768px) {
    .products-container {
      padding: 20px 20px;
    }
  
    .products-grid {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 15px;
    }
  
    .product-card img {
      height: 200px;
    }
  
    .subcategory-section h3 {
      font-size: 20px;
    }
  }
  

/*---------------------------------------------------------------*/

/* КАТАЛОГ: КАРТОЧКИ КАТЕГОРИЙ И ПОДКАТЕГОРИЙ */

.catalog-header {
  width: 100%;
  padding-left: 12.19vw;
  padding-right: 12.19vw;
  padding-top: 25px;
  padding-bottom: 10px;
  box-sizing: border-box;
}

.catalog-breadcrumb {
  font-size: 20px;
  letter-spacing: 0.1em;
}

.breadcrumb-part {
  text-transform: uppercase;
}

.catalog-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.catalog-breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-root {
  font-weight: 800;
}

.breadcrumb-muted {
  opacity: 0.7;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: red;
}

.breadcrumb-clickable {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.breadcrumb-clickable:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.cards-container {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.catalog-card-grid {
  display: grid;
  width: calc(100% - 24.38vw);
  max-width: calc(100% - 24.38vw);
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.catalog-card {
  cursor: pointer;
  background: #ffffff;
  border-radius: 0;
  box-shadow: 6px 8px 18px rgba(0, 0, 0, 0.12);
  padding: 16px 16px 20px 16px;
  box-sizing: border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.catalog-card:hover {
  transform: translate(-4px, -6px);
  box-shadow: 14px 18px 35px rgba(0, 0, 0, 0.25);
}

.catalog-card-image-wrapper {
  width: calc(100% + 32px);
  position: relative;
  overflow: hidden;
  border-radius: 0;
  margin: -16px -16px 12px -16px;
}

/* Квадратное соотношение сторон */
.catalog-card-image-wrapper::before {
  content: "";
  display: block;
  padding-top: 100%; /* 1:1 квадрат */
}

.catalog-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-card-image-wrapper.no-image {
  width: 100%;
  background: #f6f4f0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

.catalog-card-placeholder {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #423730;
}

.catalog-card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.catalog-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.catalog-card-list li {
  margin-bottom: 4px;
}

.catalog-card-list-empty {
  opacity: 0.6;
}

@media (max-width: 768px) {
  .catalog-card-grid {
    width: calc(100% - 24.38vw);
    max-width: calc(100% - 24.38vw);
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }
}

.product-detail-container {
  width: min(1400px, calc(100% - 24.38vw));
  margin: 0 auto;
  margin-top: -15px;
  padding: 40px 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #a10000;
  text-decoration: none;
  font-size: 16px;
}

.back-link:hover {
  text-decoration: underline;
}

.product-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
  align-items: flex-start;
}

.main-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 0;
}

.additional-images {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.additional-images img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 4px; 
  border: 2px solid transparent;
  transition: border 0.3s;
}

.additional-images img:hover {
  border-color: #333;
}

.additional-images img.is-active {
  border-color: #000;
}

.product-info h1 {
  font-size: 32px;
  margin-bottom: 20px;
}

.product-meta {
  margin: 0 0 20px;
}

.product-meta .category {
  margin: -15px 0 10px;
}

.price-section {
  margin: 30px 0;
  /* padding: 20px; */
  background: #f0f0f0;
  border-radius: 8px;
}

.price {
  font-size: 28px;
  font-weight: bold;
  color: #000;
}

.description, .specifications, .variants, .product-links, .model-3d {
  margin-bottom: 30px;
}

.description h3, .specifications h3, .variants h3, .product-links h3, .model-3d h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.specifications table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.specifications table tr {
  border-bottom: 1px solid #ddd;
}

.specifications table td {
  padding: 10px;
}

.variant-group {
  margin-bottom: 15px;
}

.variant-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.variant-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 0;
  background: #fff;
}

.variant-option-image {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid #e0e0e0;
}

.variant-option-label {
  font-size: 14px;
  font-weight: 600;
}

.product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.link-btn {
  display: inline-block;
  padding: 10px 15px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

.link-btn:hover {
  background: #0056b3;
}

.order-btn {
  padding: 15px 40px;
  background: #000000;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 0px;
}

.order-btn:hover {
  background: #c10000;
}

.related-products {
  margin-top: 60px;
}

.related-products h2 {
  font-size: 28px;
  margin-bottom: 30px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.product-card {
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card .product-info {
  padding: 15px;
}

.product-card .product-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-card .product-price {
  font-size: 16px;
}

@media (max-width: 768px) {
  .product-detail-container {
    width: calc(100% - 24.38vw);
    padding: 20px 0 40px;
  }
  .product-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-info h1 {
    font-size: 24px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


.right-block2 {
  padding-right: 12.19vw;
  text-align: right;
  max-width: 100%;
  position: relative;
  top: 130px
}

/* Страница "О себе" */
.about-container {
  padding: 40px 12.19vw;
  box-sizing: border-box;
}

.about-title {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
  text-align: left;
  color: #a39794;
}

.about-main-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.about-text-block {
  flex: 1;
  font-size: 16px;
  line-height: 1.8;
  color: #423730;
}

.about-text-block p {
  margin: 0;
}

.about-image-block {
  flex-shrink: 0;
  width: 200px;
}

.about-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.about-bottom-text {
  font-size: 16px;
  line-height: 1.8;
  color: #423730;
  margin-bottom: 60px;
}

.about-bottom-text p {
  margin: 0;
}

.about-mobile-page {
  display: none;
  padding: 24px 6vw 50px;
  background: linear-gradient(to bottom, #ffffff, #f4f3ef);
  box-sizing: border-box;
  color: #423730;
}

.about-mobile-title {
  font-size: clamp(24px, 6vw, 34px);
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
  color: #a39794;
  margin-bottom: 30px;
}

.about-mobile-title span {
  font-size: clamp(18px, 4.8vw, 26px);
}

.about-mobile-hero {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.about-mobile-photo {
  width: clamp(120px, 32vw, 180px);
  height: auto;
  display: block;
}

.about-mobile-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.7;
}

.about-mobile-text p {
  margin: 0 0 18px;
}

.about-mobile-history {
  font-size: 15px;
  line-height: 1.7;
}

.about-mobile-history em {
  font-style: normal;
  color: #a39794;
}

.about-desktop-content {
  display: block;
}

@media (max-width: 768px) {
  .about-mobile-page {
    display: block;
  }

  .about-desktop-content {
    display: none;
  }

  .about-mobile-hero {
    flex-direction: column;
  }

  .about-mobile-photo {
    width: min(70vw, 220px);
  }
}

.catalog-page-lower-info {
  width: 100%;
  box-sizing: border-box;
  padding: 60px 12.19vw 50px 12.19vw;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.catalog-page-lower-info .contacts-block {
  margin-left: 0;
}

/* Страница блога */
.blog-container {
  padding: 40px 12.19vw;
  box-sizing: border-box;
}

.blog-content {
  font-size: 16px;
  line-height: 1.8;
  color: #423730;
}

.blog-content p {
  margin-bottom: 20px;
}

.blog-topics-title {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 40px;
  margin-bottom: 20px;
}

.blog-topics-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-topics-list li {
  margin-bottom: 15px;
}

.blog-topics-list a {
  color: #423730;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.blog-topics-list a:hover {
  color: #a39794;
  text-decoration: underline;
}

.blog-article-title {
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 20px;
  margin-bottom: 30px;
  color: #423730;
}

.blog-article-content {
  margin-top: 30px;
  margin-left: -12.19vw;
  margin-right: -12.19vw;
  padding-left: 12.19vw;
  padding-right: 12.19vw;
  line-height: 1.8;
  box-sizing: border-box;
}

.blog-article-content p {
  margin-bottom: 15px;
}

.blog-article-content h1,
.blog-article-content h2,
.blog-article-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 700;
}

.blog-article-content ul,
.blog-article-content ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

.blog-article-content li {
  margin-bottom: 8px;
}

.blog-article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
}

@media (max-width: 768px) {
  .blog-container {
    padding: 20px 20px;
  }
}

/* Страница партнеров */
.partners-container {
  padding: 40px 12.19vw;
  box-sizing: border-box;
}

.partners-title {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
  text-align: left;
  color: #423730;
}

.partners-service-block {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 50px;
}

.partners-image-block {
  flex-shrink: 0;
  width: 200px;
}

.partners-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.partners-text-block {
  flex: 1;
  font-size: 16px;
  line-height: 1.8;
  color: #423730;
}

.partners-text-block p {
  margin: 0;
}

.partners-text-block strong {
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .partners-container {
    padding: 20px 20px;
  }

  .partners-service-block {
    flex-direction: column;
    gap: 20px;
  }

  .partners-image-block {
    width: 100%;
    max-width: 300px;
  }
}

/* Мобильная версия страницы "Услуги" */
.mobile-uslugi-page {
  display: none;
  padding: 24px 6vw 0;
  background: linear-gradient(to bottom, #ffffff, #f4f3ef);
  box-sizing: border-box;
}

.desktop-uslugi-content {
  display: block;
}

.mobile-uslugi-hero {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
}

.mobile-uslugi-logo img {
  height: 60px;
  width: auto;
  display: block;
}

.mobile-uslugi-brand {
  height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  align-items: flex-start;
  margin-left: 10px;
}

.mobile-uslugi-name,
.mobile-uslugi-home {
  margin: 0;
  letter-spacing: 0.1em;
  color: #423730;
}

.mobile-uslugi-name {
  font-size: clamp(26px, 5vw, 26px);
}

.mobile-uslugi-home {
  font-size: clamp(28px, 4.2vw, 22px);
}

.mobile-uslugi-stair {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  font-size: clamp(20px, 4.2vw, 22px);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a69996;
}

.mobile-uslugi-stair span {
  display: block;
}

.mobile-uslugi-stair span:nth-child(2) {
  margin-left: 10vw;
}

.mobile-uslugi-stair span:nth-child(3) {
  margin-left: 20vw;
}

.mobile-uslugi-carousel {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 100vw;
  margin: 20px 0;
}

.mobile-carousel-viewport {
  width: 100%;
  overflow: hidden;
}

.mobile-carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.mobile-carousel-track img {
  width: 100vw;
  flex: 0 0 100%;
  object-fit: contain;
  height: auto;
  display: block;
}

.mobile-uslugi-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: #423730;
}

.mobile-uslugi-text p {
  margin: 0;
}

.mobile-uslugi-text-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.mobile-text-cube {
  width: 20px;
  height: 20px;
  background: #aa1c1c;
  flex-shrink: 0;
  margin-left: -6vw;
  margin-top: 6px;
}

.mobile-uslugi-contact {
  margin: 30px -6vw 0;
  padding: 0;
  background: transparent;
  position: relative;
  overflow: hidden;
  width: calc(100% + 12vw);
}

.mobile-contact-content {
  position: relative;
  z-index: 1;
  color: #000000;
  padding: 45px 6vw;
  box-sizing: border-box;
}

.mobile-contact-content::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-image: url("../images/kontakt.5f41ecedeee5.png");
  background-size: 105% auto;
  background-repeat: no-repeat;
  background-position: left bottom;
  z-index: -1;
}

.mobile-contact-content h3 {
  margin: 0 0 15px;
  font-size: clamp(32px, 5vw, 26px);
  letter-spacing: 0.1em;
  color: #000000;
}

.mobile-contact-content p {
  margin: 0;
  line-height: 1.6;
  font-size: 22px;
}

@media (max-width: 768px) {
  .mobile-uslugi-page {
    display: block;
  }

  .desktop-uslugi-content {
    display: none;
  }

  .global-info-wrapper.global-info-uslugi {
    display: none;
  }
}

@media (max-width: 768px) {
  body,
  html {
    height: auto;
    min-height: 100%;
  }

  body {
    display: flex;
    flex-direction: column;
  }

  body > .mobile-uslugi-page {
    flex: 1 0 auto;
  }

  body > .global-info-wrapper {
    margin-top: auto;
  }
}

/* Мобильный блок контактов для каталога */
.catalog-mobile-contact {
  display: none;
}

@media (max-width: 768px) {
  .catalog-mobile-contact {
    display: block;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 30px;
    overflow: hidden;
  }

  .catalog-mobile-contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("../images/kontakt.5f41ecedeee5.png");
    background-size: cover;
    background-position: left bottom;
    z-index: 0;
  }

  .catalog-mobile-contact-content {
    position: relative;
    z-index: 1;
    padding: 40px 6vw;
    color: #000000;
    box-sizing: border-box;
  }

  .catalog-mobile-contact-content h3 {
    margin: 0 0 15px;
    font-size: clamp(28px, 5vw, 26px);
    letter-spacing: 0.1em;
    color: #000000;
  }

  .catalog-mobile-contact-content p {
    margin: 0;
    line-height: 1.6;
    font-size: 18px;
  }
}
