@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");


body {
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-style: normal;
  background: #eee;
}
.wrapp {
  display: flex;
  flex-direction: column;
  height: 100%;
}
:root {
  --accent: #4ead5d;
}
.main {
  flex: 1;
}
.container {
  max-width: 1200px;
  padding: 0 15px;
  margin: 0 auto;
  width: 100%;
}
.spd-hero-block {
  width: 100%;
  min-height: 100vh;
  height: 100vh;

  background-image: url("../images/heroImg.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
}
.spd-hero-block.spd-hero-block-product {
  height: auto;
  background-position: bottom;
}
/* -----------------------------------------------------------
           ТЕКСТ И КНОПКА 
        ----------------------------------------------------------- */
.spd-hero-block .hero-content {
  flex-grow: 1;
  display: flex;
  align-items: center;
  height: 600px;
  position: relative;
  z-index: 5;
}

.spd-hero-block .content-container {
  max-width: 1100px;

  color: #fff;
}

.content-container h1 {
  font-size: 45px;
  font-weight: 700;

  text-transform: uppercase;
  margin-bottom: 10px;
}

.content-container p {
  font-family: "Montserrat", sans-serif;

  font-size: 22px;

  margin-bottom: 60px;

  color: rgba(255, 255, 255, 0.9);
}

.spd-hero-block .hero-btn-read {
  display: inline-block;
  color: #fff;
  text-decoration: none;

  text-transform: uppercase;
  letter-spacing: 0.08em;

  padding: 10px 25px;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.spd-hero-block .hero-btn-read:hover {
  background: #fff;
  color: #000;
}
.hero__badge-container {
  display: inline-block;
  background: #272727;
  padding: 37px 0;

  color: var(--accent);
  font-size: 22px;
  font-weight: bold;
  width: 100%;
  text-align: center;
}
.hero__badge {
  background: rgba(217, 217, 217, 0.25);
  border-radius: 10px;
  width: 700px;
  margin: 0 auto;
}
.div-breadcrumbs {
  background: #272727;
  padding: 37px 0;
  font-size: 17px;
  color: #eee;
  text-transform: uppercase;
}

.breadcrumbs-list {
  display: inline-block;
  gap: 12px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(217, 217, 217, 0.25);
}

.post.post-page.current-item {
  color: var(--accent);
}

/* --- ABOUT SECTION --- */
.about {
  padding: 100px 0;
}

.about__header {
  text-align: right;
  margin-bottom: 60px;
}

.about__badge {
  background: rgba(217, 217, 217, 0.3);
  padding: 10px 25px;
  font-weight: bold;
  border-radius: 5px;
  font-size: 32px;
}

.about__item {
  display: flex;
  align-items: stretch;
  gap: 50px;
  margin-bottom: 80px;
  flex-direction: row;
}

.about .about__item:nth-child(odd) {
  flex-direction: row-reverse;
}

.about .about__item .about__info ul {
  position: relative;
  list-style: none;
  padding-left: 0;
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #111;
  opacity: 0.8;
}

.about .about__item .about__info ul li {
  position: relative;
  padding-left: 16px;
  margin: 0;
}

.about .about__item .about__info ul li::before {
  content: "-";
  position: absolute;
  left: 0;
  top: 0;
}

.about__image {
  flex: 1;
  height: 100%;
  min-height: 495px;
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about__info .about__subtitle {
  font-size: 22px;
  font-weight: 600;
  color: #111;
  margin-bottom: 15px;
}
.about__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: disc;
  opacity: 0.8;
}
.about__list li {
  font-size: 22px;
  color: #111;
}
.about__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about__info p {
  color: #111;
  font-size: 22px;
  font-weight: 300;
  opacity: 0.8;
}
.about__info p:not(:last-child) {
  margin-bottom: 20px;
}

.about__info h2,
.title-container h1,
.about-text h2 {
  font-size: 35px;
  opacity: 80%;
  color: #111;
  margin-bottom: 20px;
  font-weight: 600;
  position: relative;
  padding-left: 15px;
  border-left: 5px solid var(--accent);
}

/* --- PRODUCTS --- */

.products-content .about__header {
  text-align: left;
}

.products__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;

  padding: 20px 0;
  padding-right: 15px;
}
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.prod-products {
  padding: 50px 0;
}
.product-card {
  width: 100%;
  height: 100%;
}
.products__image {
  width: 100%;
  height: 100%;
  max-height: 280px;
  padding: 0;
  overflow: hidden;
}

.products__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.products__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.products__title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.products__description p {
  font-size: 16px;

  color: #111;
  opacity: 0.8;
  margin-bottom: 25px;
  display: -webkit-box;
  -webkit-line-clamp: 10;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.products__btn-more {
  display: inline-block;
  padding: 10px 25px;
  background-color: rgba(217, 217, 217, 0.4);
  color: #4ead5d;
  text-decoration: none;
  font-family: "Inder", sans-serif;
  font-size: 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.products__btn-more:hover {
  background-color: rgba(78, 173, 93, 0.2);
  transform: translateY(-2px);
}
.products-content .splide__arrow {
  background: transparent !important;
}
.products-content .splide__arrow.splide__arrow--prev {
  left: 35%;
  top: 105%;
}
.products-content .splide__arrow.splide__arrow--next {
  right: 35%;
  top: 105%;
}
.gallery {
  padding: 100px 0;
}
.gallery-content .about__header {
  text-align: center;
}
.gallery-slide {
  height: 468px;
  overflow: hidden;
}
.gallery-slide-img {
  width: 100%;
  height: 100%;
  transition: 0.3s all;
  object-fit: cover;
  display: block;
}
.gallery-slide-img:hover,
.gallery-content:hover .gallery-slide-img {
  scale: 1.05;
}
.gallery-content .splide__slide {
  height: 468px;
}
.gallery-content .splide__track {
  width: 100%;
  max-width: 898px;
  margin: 0 auto;
}
.splide__pagination {
  position: relative !important;
  margin-top: 16px !important;
}
.splide__pagination__page {
  background: #666 !important;
}
.splide__pagination__page.is-active {
  background: var(--accent) !important;
}

/* Gallery Arrow Controls */
.gallery-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
  position: relative;
  z-index: 20;
}

.gallery-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  color: #000;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.gallery-arrow:hover {
  background: transparent;
  border-color: transparent;
  color: #333;
  transform: scale(1.1);
}

.gallery-arrow svg {
  width: 24px;
  height: 24px;
}

/* Gallery content wrapper for side arrows on hover */
.gallery-content {
  position: relative;
}

.splide-gallery-wrapper {
  position: relative;
}

/* Side arrow wrapper */
.gallery-side-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  max-width: 898px;
  padding: 0 16px;
  margin: 0 auto;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 15;
}

/* Side arrow buttons (appear on hover) */
.gallery-prev-side,
.gallery-next-side {
  position: relative;
  transform: none;
  width: 50px;
  height: 50px;
  background: rgba(74, 173, 93, 0.9);
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: auto;
  z-index: 15;
}

.gallery-prev-side {
}

.gallery-next-side {
}

.gallery-content:hover .gallery-side-controls .gallery-prev-side,
.gallery-content:hover .gallery-side-controls .gallery-next-side {
  opacity: 1;
  pointer-events: auto;
}

.gallery-prev-side:hover,
.gallery-next-side:hover {
  background: #3d8a4a;
  transform: scale(1.05);
}

.gallery-prev-side svg,
.gallery-next-side svg {
  width: 24px;
  height: 24px;
}

.contacts {
  padding: 60px 0;

  font-family: "Montserrat", sans-serif;
}

.contacts__main-title {
  font-size: 24px;
  font-weight: 700;
  color: #262626;
  margin-bottom: 40px;
}

.contacts__grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Стили для таблицы данных */
.contacts__row {
  display: flex;
  padding: 15px 0;
}

.contacts__label {
  flex: 0 0 200px; /* Фиксированная ширина левой колонки */
  font-weight: 500;
  color: #262626;
  font-size: 16px;
}

.contacts__value {
  flex: 1;
  color: #4a4a4a;
  font-size: 16px;
  text-decoration: none;
}

a.contacts__value:hover {
  color: #4ead5d;
}

.contacts__map-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.contacts__map {
  border: 1px solid #ccc;
  line-height: 0;
  aspect-ratio: 3 / 1;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: auto !important;
}

.contacts__map img {
  width: 100%;
  height: 100% !important;
  display: block;
  object-fit: cover;
}

.gallery {
  padding: 60px 0;
}

.gallery__grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery__item {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery__item:nth-child(-n + 2),
.gallery__item:nth-last-child(-n + 2) {
  grid-column: span 2;
}

.about {
  padding: 42px 0;
}
.container {
}
.about-text {
  margin-bottom: 27px;
}
.about-text h3 {
  font-size: 30px;
  font-weight: 600;
  color: #111;
  margin-bottom: 15px;
}

.about-text p {
  font-size: 22px;
  color: #111;
  margin-bottom: 20px;
  opacity: 0.8;
}
.stats-list {
  list-style: disc;
  padding-left: 20px;
}
.about-content-list h2 {
  font-size: 36px;
  font-weight: 600;
  color: #111;
  margin-bottom: 15px;
}
.stats-list li {
  position: relative;
  opacity: 0.8;
  margin-bottom: 8px;
}

.highlight-box {
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}
.about-content-list {
  margin-bottom: 80px;
}
.stats-list {
}
.about-content-techn {
  margin-bottom: 40px;
}
.about-content-techn h2 {
  font-size: 36px;
  font-weight: 600;
  color: #111;
  margin-bottom: 15px;
}
.about-text h4 {
  padding-left: 10px;
  border-left: 3px solid var(--accent);
  font-size: 22px;
  margin-bottom: 20px;
  opacity: 0.8;
  font-family: "Inder", sans-serif !important;
}
.about-content-techn p {
  font-size: 22px;
  color: #111;
  opacity: 0.8;
  margin-bottom: 20px;
}

.about_gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 24px;
}
.about_gallery img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}
.bullet-list {
  list-style: disc;
  padding-left: 20px;
  font-size: 22px;
  opacity: 0.8;
}
.bullet-list li {
  margin-bottom: 20px;
}
.lumber-block {
  padding: 40px 0;
  width: 100%;
  display: flex;
  align-items: stretch;
  gap: 20px;
  font-weight: 400;
}
.lumber-block > * {
  height: 100%;
}
.column-beams,
.column-boards-pallets {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.column-boards-pallets-box {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.column-beams{
  height: 100%;
}

.lumber-block .image-column {
  flex: 0 1 50%;
  max-width: 50%;
  min-width: 280px;
  display: flex;
  align-items: stretch;
}
.lumber-block.layout-2 > .column-beams,
.lumber-block.layout-2 > .column-boards-pallets,
.lumber-block.layout-2 > .image-column {
  flex: 1 1 calc((100% - 20px) / 2);
  max-width: calc((100% - 20px) / 2);
}
.lumber-block.layout-3 > .column-beams,
.lumber-block.layout-3 > .column-boards-pallets,
.lumber-block.layout-3 > .image-column {
  flex: 1 1 calc((100% - 40px) / 3);
  max-width: calc((100% - 40px) / 3);
}
.lumber-block p {
  font-size: 22px;
  color: #000;
}
.lumber-block h1,
.palets-beams h1 {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 36px;
  padding-left: 15px;
  border-left: 5px solid var(--accent);
}
.title-container,
.palets-beams h1 {
  margin-bottom: 30px;
}

.column-beams > strong,
.boards-section > strong,
.pallets-section > strong {
  font-size: 24px;
  font-weight: 700;
  display: block;
  margin-bottom: 24px;
}
.column-beams > p {
  font-size: 22px;
}
.column-beams ul,
.boards-section ul,
.pallets-section ul,
.palets-beams ul,
.about-text ul {
  position: relative;
  padding-left: 20px;
  font-size: 22px;
  list-style: disc;
  margin-bottom: 8px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #111;
  opacity: 0.8;
}
.column-beams ul li,
.boards-section ul li,
.pallets-section ul li,
.palets-beams ul li,
.about-text ul li {
  color: inherit;
}
.column-beams ul ul,
.boards-section ul ul,
.pallets-section ul ul,
.palets-beams ul ul,
.about-text ul ul {
  color: inherit;
  opacity: inherit;
}
.column-beams ul ul li,
.boards-section ul ul li,
.pallets-section ul ul li,
.palets-beams ul ul li,
.about-text ul ul li {
  color: inherit;
  opacity: inherit;
}
.column-beams strong,
.column-boards-pallets strong,
.boards-section strong,
.pallets-section strong,
.palets-beams strong,
.about-text strong {
  font-weight: 700;
  color: #000;
}
.about-text ul {
  margin-bottom: 20px;
}
.boards-section {
  margin-bottom: 40px;
}

.lumber-block .image-column img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}
.back-button-container {
  margin-top: 60px;
}

.back-button {
  display: inline-block;
  background: linear-gradient(to right, #3c8f4a, #63c874);
  color: white;
  padding: 10px 60px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s all;
}

.back-button:hover {
  background: linear-gradient(to right, #388444, #57af65);
}

.back-button:active {
  transform: translateY(1px);
}
.palets-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.palets-block .image-column {
  height: 400px;
}
.palets-block {
  padding: 40px 0;
}
.image img,
.image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 1030px) {
  .lumber-block {
    display: flex;
    flex-wrap: wrap;
  }
  .lumber-block.layout-2 > .column-beams,
  .lumber-block.layout-2 > .column-boards-pallets,
  .lumber-block.layout-2 > .image-column,
  .lumber-block.layout-3 > .column-beams,
  .lumber-block.layout-3 > .column-boards-pallets,
  .lumber-block.layout-3 > .image-column {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .lumber-block .image-column {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
  }
  .column-beams,
  .column-boards-pallets {
    width: 100%;
  }
  .lumber-block .image-column img {
    height: 400px;
  }
}

@media (max-width: 950px) {
  .products__item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
  }
  .products__image {
    height: 300px;
  }

  .products__btn-more {
    margin-top: auto;
  }
  .products__item {
    margin-bottom: 0;
  }
  .products__info {
    padding: 0 10px 10px 10px;
  }
  .products__description {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
  }
}

@media (max-width: 768px) {
  .products__item {
    flex-direction: column;
    text-align: left;
  }

  .products__image {
    flex: none;
    width: 100%;
  }

  .products__title {
    font-size: 22px;
  }
  .about .about__item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .about .about__item:nth-child(odd) {
    flex-direction: column;
  }

  .about .about__info,
  .about .about__image {
    width: 100%;
  }

  .about .about__info {
    order: 1;
  }

  .about .about__image {
    order: 2;
  }
  
  .products__info {
    width: 100%;
  }
  .hero__title {
    font-size: 32px;
  }
  .hero__badge {
    width: 100%;
    margin: 0;
    font-size: 16px;
  }
  .contacts__row {
    flex-direction: column;
    gap: 5px;
  }

  .contacts__label {
    flex: none;
    font-size: 14px;
  }

  .contacts__value {
    font-size: 14px;
  }

  .contacts__main-title {
    font-size: 20px;
  }
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__item:nth-child(-n + 2),
  .gallery__item:nth-last-child(-n + 2) {
    grid-column: span 2;
  }

  .gallery__item {
    grid-column: span 1;
  }

  .gallery-content .splide__slide,
  .gallery-slide,
  .gallery__item {
    aspect-ratio: 16 / 9;
  }

  /* iOS Telegram in-app browser can misrender aspect-ratio on slides. */
  .gallery-content .splide__slide {
    height: calc((100vw - 30px) * 9 / 16);
    max-height: 360px;
    min-height: 180px;
    overflow: hidden;
  }

  .gallery-slide {
    display: block;
    width: 100%;
    height: 100%;
  }

  .gallery-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .image-grid {
    grid-template-columns: 1fr;
  }
  .about-text p,
  .about-content-techn p,
  .bullet-list,
  .column-beams ul,
  .boards-section ul,
  .pallets-section ul,
  .palets-beams ul,
  .about .about__item .about__info ul {
    font-size: 18px;
  }
  .about-content-techn h2,
  .about-content-list h2,
  .lumber-block h1,
  .palets-block h1,
  .title-container h1,
  .about-text h2,
  .content-container h1 {
    font-size: 28px;
  }
  .lumber-block {
    grid-template-columns: 1fr;
    padding: 30px 0;
    gap: 20px;
  }
  .palets-block {
    grid-template-columns: 1fr;
    padding: 30px 0;
    gap: 20px;
  }
  .image {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .spd-hero-block {
    min-height: auto;
    height: auto;
    padding: 96px 0 20px;
  }

  .spd-hero-block .hero-content {
    height: auto;
    min-height: 0;
    padding: 12px 0;
  }

  .spd-hero-block .hero-title {
    font-size: 32px;
  }
  .spd-hero-block .hero-desc {
    font-size: 18px;
  }
  .spd-hero-block .content-container {
    max-width: 100%;
  }
  .about__badge,
  .about__title {
    font-size: 24px;
  }
  .about {
    padding: 50px 0;
  }
  .about__image {
    flex: none;
  }
  .about__info p {
    font-size: 16px;
  }
  .about__list {
    align-items: flex-start;
  }
  .about__list li {
    font-size: 16px;
  }
  .about__info-box {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .about__info{
    width: 100%;
  }
  .about__info-box p {
    margin-top: 12px;
  }
  .about__header {
    margin-bottom: 32px;
  }
  .gallery {
    padding: 100px 0 50px 0;
  }
  .div-breadcrumbs {
    font-size: 16px;
  }
  .gallery.gallery-gallery {
    padding: 50px 0;
  }
  .column-beams ul,
  .boards-section ul,
  .pallets-section ul,
  .palets-beams ul,
  .about-text ul,
  .about .about__item .about__info ul {
    
    line-height: 1;
    text-align: justify;
  }
  .about__info p {
    text-align: justify;
  }
}
@media (max-width: 530px) {
  .logo-link img {
    height: 50px;
  }
  .spd-hero-block .hero-title {
    font-size: 24px;
  }
  .spd-hero-block .hero-desc {
    font-size: 14px;
  }
  .spd-hero-block {
    min-height: auto;
    height: auto;
    padding: 120px 0 18px;
  }
  .about__list {
    align-items: center;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .div-breadcrumbs {
    font-size: 14px;
  }
  .gallery__grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .gallery__item:nth-child(-n + 2),
  .gallery__item:nth-last-child(-n + 2),
  .gallery__item {
    grid-column: span 1;
  }

  .gallery__item {
    aspect-ratio: 16 / 9;
  }
  .content-container p {
    font-size: 15px;
  }
  .content-container h1 {
    font-size: 33px;
  }
  .column-beams ul,
  .boards-section ul,
  .pallets-section ul,
  .palets-beams ul,
  .about-text ul,
  .about .about__item .about__info ul {
    font-size: 15px;
    
  }
 

  .about__info h2,
  .title-container h1,
  .about-text h2 {
    font-size: 26px;
  }
  .products-content .about__header {
    text-align: center;
  }
  .about__header {
    text-align: center;
  }
  .about-text h4 {
    font-size: 18px;
  }
  .about-text p,
  .about-content-techn p,
  .bullet-list,
  .column-beams ul,
  .boards-section ul,
  .pallets-section ul,
  .palets-beams ul,
  .about-text h4 {
    font-size: 15px;
  }
  .about-text h3 {
    font-size: 20px;
}
.about_gallery {
    display: block;
}
.about_gallery img {
    padding: 10px 0px;
}

.about__info p {
        font-size: 15px;
    }
    main#mainabout h2 {
    font-size: 20px;
    text-align: left;
}
.about__image {
    height: 250px;
    width: 100%;
}

.about__image img {

    object-fit: cover;
}
.column-beams ul, .boards-section ul, .pallets-section ul, .palets-beams ul, .about-text ul {
        font-size: 15px;
    }

.about .about__item .about__info ul {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .detail .lumber-block {
    padding: 24px 0;
    gap: 16px;
  }

  .detail .title-container {
    margin-bottom: 16px;
  }

  .detail .column-beams > strong,
  .detail .boards-section > strong,
  .detail .pallets-section > strong {
    margin-bottom: 12px;
    font-size: 22px;
  }

  .detail .column-beams p,
  .detail .boards-section p,
  .detail .pallets-section p {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 10px;
  }

  .detail .column-beams ul,
  .detail .boards-section ul,
  .detail .pallets-section ul,
  .detail .palets-beams ul {
    font-size: 17px;
    line-height: 1.35;
    gap: 6px;
    margin-bottom: 14px;
    text-align: left;
  }

  .detail .boards-section {
    margin-bottom: 24px;
  }

  .detail .back-button-container {
    margin-top: 24px;
  }

  .detail .back-button {
    padding: 10px 36px;
  }
}

@media (max-width: 530px) {
  .detail .lumber-block {
    padding: 18px 0;
    gap: 14px;
  }

  .detail .title-container {
    margin-bottom: 12px;
  }

  .detail .column-beams p,
  .detail .boards-section p,
  .detail .pallets-section p {
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 8px;
  }

  .detail .column-beams ul,
  .detail .boards-section ul,
  .detail .pallets-section ul,
  .detail .palets-beams ul {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 10px;
  }

  .detail .back-button-container {
    margin-top: 14px;
  }

  .detail .back-button {
    padding: 9px 28px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .fancybox__slide.has-image .fancybox__content {
    width: min(100vw - 24px, 100%) !important;
    max-width: min(100vw - 24px, 100%) !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    overflow: hidden;
  }

  .fancybox__slide.has-image .fancybox__image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}
