:root {
  --dark-bg: #13181e;
  --light-bg: #efefef;
  --heading-color: #445568;
  --text-color: #13181e;
  --border-color: #445568;
  --accent-color: #980e2f;
  --mobile-font: 16px;
  --desktop-font: 18px;
  --max-width: 1294px;

  --arrow-top-right-red: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTUgMTcuNTlMMTUuNTkgN0g5VjVIMTlWMTVIMTdWOC40MUw2LjQxIDE5TDUgMTcuNTlaIiBmaWxsPSIjOTgwRTJGIi8+Cjwvc3ZnPg==");
  --arrow-top-right-black: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTUgMTcuNTlMMTUuNTkgN0g5VjVIMTlWMTVIMTdWOC40MUw2LjQxIDE5TDUgMTcuNTlaIiBmaWxsPSJibGFjayIvPgo8L3N2Zz4=");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto Flex", sans-serif;
  color: var(--text-color);
  background-color: var(--dark-bg);
  font-size: var(--mobile-font);
  line-height: 1.4;
}

img,
svg {
  width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: "Noto Sans", sans-serif;
  color: var(--heading-color);
  font-weight: 400;
  text-transform: uppercase;
}

h1 {
  font-weight: 800;
  font-size: 1.2rem;
}

.hero-content h1,
.hero-content h2 {
  color: white;
  font-size: 3rem;
}

img,
svg {
  pointer-events: none;
}

/* ===== ОБЩИЕ СТИЛИ ===== */
main {
  min-height: 800px;
  padding: 50px 0;
  background-color: white;
  margin: -30px 0;
  position: relative;
  z-index: 2;
  clip-path: polygon(
    30px 0,
    calc(100% - 30px) 0,
    100% 30px,
    100% calc(100% - 30px),
    calc(100% - 30px) 100%,
    30px 100%,
    0% calc(100% - 30px),
    0% 30px
  );
}
.container {
  width: 100%;
  padding: 0 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.container-wrap {
  display: grid;
  gap: 16px;
}

.col2 {
  grid-template-columns: 1fr 1fr;
}

.wrapper {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.link-gradient {
  background: linear-gradient(to right, var(--accent-color) 50%, white 50%);
  background-size: 200% 100%;
  background-position: right bottom;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.5s ease;
}

.link-gradient:hover {
  background-position: left bottom;
}

header a,
footer a {
  composes: link-gradient;
}

#drawing > div {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
}
#drawing > div a {
  height: 200px;
  border: 1px solid var(--light-bg);
}
#drawing img {
  object-fit: contain;
  height: 100%;
}

/* ===== HEADER & MOBILE MENU ===== */
.header {
  height: 64px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: height 0.4s ease;
}

.header .wrapper {
  flex-direction: row;
  padding: 16px;
}

.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header__bottom {
  display: none;
  flex-grow: 1;
  align-items: center;
}

.header__bottom.active {
  display: flex;
  background-color: var(--dark-bg);
  flex-direction: column;
  position: absolute;
  left: 0;
  top: 64px;
  width: 100%;
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

.header__logo {
  width: 160px;
  height: 100%;
  padding: 8px 16px 8px 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header__logo img {
  width: 100%;
  height: auto;
}

.header__menu {
  flex-grow: 1;
  width: 100%;
  padding: 0;
}

.header__nav {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header__nav a {
  color: white;
  text-decoration: none;
  padding: 1rem 1.5rem;
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s ease;
  background: linear-gradient(to right, var(--accent-color) 50%, white 50%);
  background-size: 200% 100%;
  background-position: right bottom;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.5s ease;
}
.header__nav a.active {
  color: var(--accent-color);
  font-weight: bold;
  -webkit-background-clip: text;
  background-clip: text;
}

.header__nav a:hover {
  background-position: left bottom;
}

.header__bottom.active .header__nav a {
  opacity: 1;
  transform: translateX(0);
}

.header__nav a:nth-child(1) {
  transition-delay: 0.1s;
}
.header__nav a:nth-child(2) {
  transition-delay: 0.15s;
}
.header__nav a:nth-child(3) {
  transition-delay: 0.2s;
}
.header__nav a:nth-child(4) {
  transition-delay: 0.25s;
}

.header__price,
.header__contacts {
  padding: 1.5rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.3s ease;
}

.header__bottom.active .header__price,
.header__bottom.active .header__contacts {
  opacity: 1;
  transform: translateX(0);
  width: 100%;
}

.header__bottom.active .header__price {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Задержки для последовательного появления */
.header__nav a:nth-child(1) {
  transition-delay: 0.1s;
}
.header__nav a:nth-child(2) {
  transition-delay: 0.15s;
}
.header__nav a:nth-child(3) {
  transition-delay: 0.2s;
}
.header__nav a:nth-child(4) {
  transition-delay: 0.25s;
}
.header__price {
  transition-delay: 0.3s;
}
.header__contacts {
  transition-delay: 0.35s;
}

.header__price {
  transition-delay: 0.3s;
  margin: 1rem 1.5rem;
}

.price-download {
  display: flex;
  flex-direction: column;
  color: white;
}

.price-download a {
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.price-download a::after {
  content: "";
  width: 24px;
  height: 24px;
  background-image: var(--arrow-top-right-red);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.price-download p {
  font-size: 0.8rem;
}

.header__contacts {
  transition-delay: 0.35s;
  margin: 0 1.5rem 1rem;
  display: flex;
  flex-direction: column;
}

.header__contacts a {
  display: block;
  margin-bottom: 0.5rem;
}

.header__contacts .phone {
  font-size: 1.2rem;
  font-weight: 800;
}

.header__contacts .email {
  font-size: 0.8rem;
  font-weight: 800;
}

/* Бургер меню */
.header__burger {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1001;
}

.header__burger-icon,
.header__burger-icon::before,
.header__burger-icon::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background-color: white;
  transition: all 0.3s ease;
  position: absolute;
}

.header__burger-icon::before {
  transform: translateY(-8px);
}

.header__burger-icon::after {
  transform: translateY(8px);
}

.header__burger.active .header__burger-icon {
  background-color: transparent;
}

.header__burger.active .header__burger-icon::before {
  transform: rotate(45deg);
}

.header__burger.active .header__burger-icon::after {
  transform: rotate(-45deg);
}

/* Блюр для контента при открытом меню */
.content-blur {
  transition: filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 64px;
}

.content-blur.blurred {
  filter: blur(5px);
  pointer-events: none;
}

.breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin-bottom: 1.5rem;
}

.breadcrumbs ul li {
  margin-right: 0.5rem;
  font-size: 1rem;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumbs a:hover {
  color: white;
}

.breadcrumbs ul li:last-child {
  color: white;
  font-weight: 600;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 60vh;
  width: 100%;
  overflow: hidden;
  z-index: 1;
}
.hero-page,
.hero-product {
  position: relative;
  height: 46vh;
  width: 100%;
  overflow: hidden;
  z-index: 1;
  background-color: #666;
  background-position: top center;
  background-size: cover;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark-bg);
  opacity: 0;
  transition: opacity 1s ease;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.slide.active {
  opacity: 1;
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  color: white;
  background: linear-gradient(
    to bottom,
    rgba(19, 24, 30, 0.9) 0%,
    rgba(19, 24, 30, 0) 100%
  );
  display: flex;
}

.hero-content .wrapper {
  flex-direction: column;
  justify-content: center;
  padding: 0 16px;
}

.hero-page h1 {
  font-size: 2rem;
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.hero-product h2,
.hero-page h2 {
  font-size: 2rem;
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.hero-content p {
  font-size: 1rem;
  max-width: 100%;
}

.slider-previews-wrap {
  display: none;
  position: relative;
  height: 0px;
}
.slider-previews {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  position: absolute;
  z-index: 10;
  bottom: 0px;
  right: 100px;
}

.preview {
  width: 120px;
  height: 90px;
  position: relative;
  overflow: hidden;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  z-index: 11;

  clip-path: polygon(calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%, 0 0);
  /* Альтернатива для лучшей поддержки */

  -webkit-clip-path: polygon(
    calc(100% - 30px) 0,
    100% 30px,
    100% 100%,
    0 100%,
    0 0
  );
}

.preview.active {
  opacity: 1;
}

section {
  background-color: white;
}

/* ===== CATALOG SECTION ===== */
.catalog-section {
  padding: 4rem 0;
  background-color: white;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2rem;
}

.catalog-link {
  text-decoration: none;
  font-size: 1.1rem;
  background: linear-gradient(
    to right,
    var(--accent-color) 50%,
    var(--text-color) 50%
  );
  background-size: 200% 100%;
  background-position: right bottom;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.5s ease;
  display: flex;
  gap: 24px;
}
.catalog-link::after {
  content: "";
  width: 24px;
  height: 24px;
  background-image: var(--arrow-top-right-red);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.catalog-link:hover {
  background-position: left bottom;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.catalog-item {
  height: 264px;
  background-color: var(--light-bg);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  align-items: end;
  justify-content: end;
  padding-right: 10%;
  transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.catalog-item img {
  mix-blend-mode: multiply;
  filter: contrast(1.1) brightness(1.05);
  background-color: var(--light-bg);
  height: 100%;
  width: auto;
}

.catalog-item::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 30px 30px 0;
  border-color: transparent white transparent transparent;
  transition: border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.catalog-item:hover::after {
  border-color: transparent var(--accent-color) transparent transparent;
}

.catalog-item-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.catalog-item-content h3 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
  width: 50%;
  color: var(--text-color);
}

.catalog-item:hover h3 {
  color: var(--accent-color);
}

/* -- product card -- */

.products-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}
.block-product {
  height: 264px;
  background-color: var(--light-bg);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  align-items: start;
  justify-content: end;
  padding-right: 10%;
  transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.block-product img {
  mix-blend-mode: multiply;
  filter: contrast(1.1) brightness(1.05);
  background-color: var(--light-bg);
  height: 70%;
  width: auto;
}

.block-product::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 30px 30px 0;
  border-color: transparent white transparent transparent;
  transition: border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.block-product:hover::after {
  border-color: transparent var(--accent-color) transparent transparent;
}

.block-product h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-color);
}

.block-product:hover h3 {
  color: var(--accent-color);
}
/* --  -- */

.catalog-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.bottom-item {
  height: 250px;
  padding: 2rem;
  position: relative;
}
.bottom-item a {
  font-size: 1.2rem;
  text-decoration: none;
}
.bottom-item a span {
  font-size: 1.8rem;
  display: block;
  font-weight: 800;
  text-transform: uppercase;
}

.bottom-item.dark {
  background-color: var(--dark-bg);
  background-image: url(../images/Sertifikat-dillera-1024x724.jpg);
  background-repeat: no-repeat;
  background-position: center 120px;
  background-size: contain;
}
.bottom-item.dark a {
  color: white;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bottom-item.dark h3 {
  color: white;
}

.bottom-item.light {
  background-color: var(--light-bg);
  background-image: url(../images/price-image.png);
  background-repeat: no-repeat;
  background-position: 70% bottom;
  background-size: 50%;
}
.bottom-item.light a {
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: end;
}
.bottom-item a:hover {
  color: var(--accent-color);
}

.price-wrap,
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

#price .right-item {
  background-color: var(--light-bg);
  background-image: url(../images/price-image.png);
  background-repeat: no-repeat;
  background-position: 70% bottom;
  background-size: 50%;
  height: 300px;
  padding: 2rem;
  position: relative;
}
#price .right-item a {
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: end;
  font-size: 1.2rem;
  text-decoration: none;
}
#price .right-item a:hover {
  color: var(--accent-color);
}
#price .right-item a span {
  font-size: 1.8rem;
  display: block;
  font-weight: 800;
  text-transform: uppercase;
}

/* ===== NEWS SECTION ===== */
.news-section {
  padding: 4rem 0;
  overflow: hidden;
}

.news-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.title-line {
  height: 2px;
  background-color: var(--heading-color);
  width: 100%;
  margin-bottom: 2.5rem;
  position: relative;
}

.news-items-container {
  width: 100%;
  overflow: hidden;
  cursor: grab;
  padding-bottom: 1rem;
}

.news-items-container::-webkit-scrollbar {
  display: none;
}

.news-items-container.grabbing {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.news-slider {
  position: relative;
  width: 100%;
}

.news-slider-controls {
  position: absolute;
  top: -60px;
  right: 0;
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  height: 40px;
  background-color: white;
}

.slider-arrow {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0;
  transition: opacity 0.3s ease;
}
.slider-arrow::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  transition: all 0.3s ease;
}

.slider-arrow.prev::before {
  border-width: 10px 15px 10px 0;
  border-color: transparent var(--heading-color) transparent transparent;
}

.slider-arrow.next::before {
  border-width: 10px 0 10px 15px;
  border-color: transparent transparent transparent var(--heading-color);
}

.slider-arrow:hover::before {
  border-color: transparent var(--accent-color) transparent transparent;
}

.slider-arrow.next:hover::before {
  border-color: transparent transparent transparent var(--accent-color);
}

.slider-arrow:disabled {
  cursor: not-allowed;
  opacity: 0.3;
}

.slider-arrow:disabled::before {
  border-color: transparent rgba(68, 85, 104, 0.3) transparent transparent;
}

.slider-arrow.next:disabled::before {
  border-color: transparent transparent transparent rgba(68, 85, 104, 0.3);
}

.news-items {
  display: flex;
  transition: transform 0.3s ease;
  will-change: transform;
}

.news-item {
  flex: 0 0 calc(100% - 2rem);
  background-color: var(--light-bg);
  padding: 1.5rem;
  margin-right: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  position: relative;
  overflow: hidden;
}
.news-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background-color: var(--accent-color);
  transition: left 0.4s ease-in-out;
  z-index: 2;
}
.news-item:hover::before {
  left: 0;
}
.news-item:hover {
  /*
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);*/
}

.news-item:last-child {
  margin-right: 0;
}

.news-item a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.2rem;
  line-height: 1.2;
}

.news-item h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.news-item a:hover h3 {
  color: var(--accent-color);
}
.news-date {
  font-size: 1rem;
  color: #666;
  display: block;
  margin-bottom: 1.4rem;
}

#posts .news-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
#posts .news-items .news-item {
  margin: 0;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(0);
  }
  40% {
    transform: translateX(-5px);
  }
  60% {
    transform: translateX(-3px);
  }
}

.project-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.project-item {
  position: relative;
  height: 250px;
  overflow: hidden;
}
.project-item img {
  width: 100%;
  line-height: 0;
  object-fit: cover;
}
.project-item a {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 5;
  color: white;
  background: linear-gradient(
    to bottom,
    rgba(19, 24, 30, 0) 0%,
    rgba(19, 24, 30, 0.8) 100%
  );
  display: flex;
  text-decoration: none;
  flex-direction: column;
  justify-content: end;
  padding: 24px;
}
.project-item a h2 {
  color: white;
  font-weight: 700;
}
.project-item::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 30px 30px 0;
  border-color: transparent white transparent transparent;
  transition: border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-item:hover::after {
  border-color: transparent var(--accent-color) transparent transparent;
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  background-color: var(--heading-color);
  z-index: 1;
}

.footer-content {
  background-color: var(--dark-bg);
  color: white;
  position: relative;
  z-index: 3;
}

.footer-upper {
  border-bottom: 1px solid var(--border-color);
}

.footer-column {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 32px;
}

.footer-column:last-child {
  border-bottom: none;
}

.footer-column a {
  color: white;
  text-decoration: none;
  font-size: 1.4rem;
  text-transform: uppercase;
  font-family: "Noto Sans", sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-column a::after {
  content: "";
  width: 24px;
  height: 24px;
  background-image: var(--arrow-top-right-red);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.footer-column p {
  color: white;
  font-size: 1rem;
}

.price-column .price-download {
  color: white;
}

.footer-middle {
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-middle-column {
  padding: 1.5rem;
}

.footer-middle-column h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-middle-column ul {
  list-style: none;
}

.footer-middle-column ul li {
  margin-bottom: 0.5rem;
}

.footer-middle-column ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 1rem;
  background: linear-gradient(to right, var(--accent-color) 50%, white 50%);
  background-size: 200% 100%;
  background-position: right bottom;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.5s ease;
}

.footer-middle-column ul li a:hover {
  background-position: left bottom;
}

.footer-lower {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem;
  text-align: center;
  font-size: 1rem;
}

.footer-image {
  aspect-ratio: 16 / 7;
  max-height: 600px;
  position: relative;

  background: no-repeat center center;
  background-size: cover;
  z-index: 1;
  container-type: inline-size;
  container-name: bigtext;
  width: 100%;
}

.footer-content::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(
    to top,
    rgba(19, 24, 30, 0.9) 0%,
    rgba(19, 24, 30, 0) 100%
  );
  z-index: 10;
}

.footer-image::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 30px;
  background-color: var(--dark-bg);
  clip-path: polygon(0 0, 0% 100%, 100% 100%);
}

.footer-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 30px;
  background-color: var(--dark-bg);
  clip-path: polygon(100% 0%, 100% 100%, 0% 100%);
}

.footer-text {
  position: absolute;
  bottom: -0.5em;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: "Noto Sans", sans-serif;
  font-size: 14cqw;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  z-index: 2;
}

/* ===== PRODUCT CONTENT ===== */
.product-content {
  padding: 4rem 0;
  background-color: white;
}

.product-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.product-image,
.project-image {
  width: 100%;
  height: 400px;
  background-color: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  order: 2;
}
.project-image {
  aspect-ratio: 3/2;
  height: auto;
}

.product-image img,
.project-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-info {
  padding: 1rem;
  font-size: 1rem;
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.product-info h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.product-description {
  margin-bottom: 2rem;
  line-height: 1.2;
  flex-grow: 1;
}

.order-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1.2rem;
}

.order-button:hover {
  background-color: #7a0b25;
}

/* ===== PRODUCT TABS ===== */
.product-tabs {
  width: 100%;
  min-height: 400px;
}

.tabs-header {
  display: flex;
  margin-bottom: 2rem;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
}

.tab-button {
  padding: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--heading-color);
  position: relative;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 0;
  border-top: 1px solid var(--light-bg);
  border-bottom: 1px solid var(--light-bg);
}
.tab-button:not(:last-child) {
  border-right: 1px solid var(--light-bg);
}

.tab-button:last-child {
  background: var(--dark-bg);
  color: white;
}

.tab-button.active {
  color: var(--accent-color);
}

.tab-button.active::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent-color);
}

.tab-button:hover {
  color: var(--accent-color);
}

.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: tabFadeIn 0.4s ease-out;
}

/* Анимация появления контента таба */
@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Плавная смена активного состояния кнопок */
.tab-button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-button.active {
  background-color: rgba(152, 14, 47, 0.05);
}

/* Анимация для спецификаций */
.specifications-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.specifications-table tr {
  border-bottom: 1px solid var(--light-bg);
  animation: fadeInRow 0.5s ease-out;
  animation-fill-mode: both;
}

.specifications-table tr:nth-child(1) {
  animation-delay: 0.1s;
}
.specifications-table tr:nth-child(2) {
  animation-delay: 0.15s;
}
.specifications-table tr:nth-child(3) {
  animation-delay: 0.2s;
}
.specifications-table tr:nth-child(4) {
  animation-delay: 0.25s;
}
.specifications-table tr:nth-child(5) {
  animation-delay: 0.3s;
}
.specifications-table tr:nth-child(6) {
  animation-delay: 0.35s;
}

@keyframes fadeInRow {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Анимация для файлов */

.files-list {
  list-style: none;
}
.files-list li {
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: var(--light-bg);
  animation: slideInLeft 0.4s ease-out;
  animation-fill-mode: both;
}

.files-list li:nth-child(1) {
  animation-delay: 0.1s;
}
.files-list li:nth-child(2) {
  animation-delay: 0.15s;
}
.files-list li:nth-child(3) {
  animation-delay: 0.2s;
}
.files-list li:nth-child(4) {
  animation-delay: 0.25s;
}

.files-list a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
}

.files-list a::before {
  content: "";
  width: 24px;
  height: 24px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23980e2f"><path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-right: 1rem;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Анимация для связанных товаров */
.related-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.related-product {
  background-color: var(--light-bg);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
  animation: scaleIn 0.4s ease-out;
  animation-fill-mode: both;
}

.related-product:nth-child(1) {
  animation-delay: 0.1s;
}
.related-product:nth-child(2) {
  animation-delay: 0.15s;
}
.related-product:nth-child(3) {
  animation-delay: 0.2s;
}
.related-product:nth-child(4) {
  animation-delay: 0.25s;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.related-product:hover {
  transform: translateY(-5px) scale(1.02);
}

.related-product img {
  max-width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.related-product h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.related-product a {
  text-decoration: none;
  color: var(--text-color);
}

/* Адаптивность для десктопа */
@media (min-width: 950px) {
  .tabs-header {
    flex-direction: row;
  }

  .tab-content.active {
    animation: tabFadeInDesktop 0.5s ease-out;
  }

  @keyframes tabFadeInDesktop {
    from {
      opacity: 0;
      transform: translateY(15px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.post-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.post-title h1 {
  font-size: 1.2rem;
  margin-bottom: 24px;
}
.post-thumbnail {
  margin-bottom: 48px;
}
.post-thumbnail img {
  width: 100%;
  height: auto;
}

.post-navigation {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}
.nav-label {
  display: block;
  font-size: 0.8rem;
}
.post-navigation a {
  text-decoration: none;
  font-family: "Noto Sans", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--heading-color);
  display: block;
}
.post-navigation a:hover {
  color: var(--accent-color);
}
.nav-previous,
.nav-next {
  padding: 16px;
  background-color: var(--light-bg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  position: relative;
  overflow: hidden;
}
.nav-previous::before,
.nav-next::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background-color: var(--accent-color);
  transition: left 0.4s ease-in-out;
  z-index: 2;
}
.nav-previous:hover::before,
.nav-next:hover::before {
  left: 0;
}

/* ===== MEDIA QUERIES ===== */
@media (min-width: 950px) {
  body {
    font-size: calc(var(--mobile-font) + 2px);
  }
  /* Product content desktop */
  .product-top {
    grid-template-columns: 50% 50%;
  }
  #posts .news-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  #drawing > div {
    grid-template-columns: repeat(4, 1fr);
  }
  .product-image {
    height: 600px;
    order: 1;
  }
  .product-info {
    order: 2;
  }
  .news-section h2,
  .section-header h2 {
    font-size: 3rem;
  }

  .wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    flex-direction: row;
  }
  .post-title h1 {
    font-size: 1.6rem;
  }
  .post-wrap {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-page,
  .hero-product {
    height: 600px;
  }

  /* Header desktop styles */
  .header {
    position: absolute;
  }

  .header__top {
    display: flex;
    width: auto;
  }

  .header__bottom {
    display: flex;
    position: static;
    background: none;
    flex-direction: row;
  }

  .header .wrapper {
    padding: 0;
  }

  .header__logo {
    width: 160px;
    height: 100%;
    border-right: 1px solid var(--border-color);
    padding: 8px 16px 8px 0;
    flex-shrink: 0;
  }

  .header__menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    transform: none;
    position: relative;
    height: auto;
    top: 0;
    width: auto;
  }

  .header__nav {
    display: flex;
    flex-direction: row;
    border-bottom: none;
    padding: 0;
    gap: 2rem;
    flex-grow: 1;
    justify-content: space-evenly;
  }

  .header__nav a {
    opacity: 1;
    transform: none;
    border-bottom: none;
    padding: 0;
    font-size: 1rem;
  }

  .header__price,
  .header__contacts {
    opacity: 1;
    transform: none;
    margin: 0;
    padding: 8px 16px;
    background: none;
    border-left: 1px solid var(--border-color);
    height: 100%;
    width: auto;
  }

  .header__price {
    display: flex;
  }

  .header__contacts {
    display: flex;
  }

  .header__burger {
    display: none;
  }

  .content-blur {
    margin-top: 0;
    filter: none !important;
  }

  /* Hero desktop */
  .hero {
    position: relative;
    height: 96vh;
    width: 100%;
    overflow: hidden;
    z-index: 1;
  }
  .hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
  }
  .hero-product h2,
  .hero-page h2 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
  }

  .hero-content p {
    font-size: 1.5rem;
    max-width: 60%;
  }

  .slider-previews-wrap {
    display: block;
    position: relative;
    height: 0px;
  }

  /* Catalog desktop */
  .catalog-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  /* Все элементы по умолчанию занимают 1 колонку */
  .catalog-item {
    grid-column: span 1;
  }

  /* Широкие элементы в нечетных строках */
  .catalog-section .catalog-item:nth-child(6n + 1) {
    grid-column: span 2;
  }

  /* Широкие элементы в четных строках */
  .catalog-section .catalog-item:nth-child(6n + 6) {
    grid-column: span 2;
  }

  .catalog-item-content h3 {
    width: 70%;
  }

  .catalog-bottom,
  .price-wrap,
  .contact-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
  .bottom-item {
    height: 386px;
  }
  #price .right-item {
    height: 400px;
  }

  /* Footer desktop */

  .footer-column {
    border-bottom: none;
    border-right: 1px solid var(--border-color);
    flex: 1;
    text-align: left;
  }

  .footer-column:last-child {
    border-right: none;
  }

  .footer-middle {
    grid-template-columns: repeat(3, 1fr);
  }

  /* News desktop */
  .news-item {
    flex: 0 0 calc(33.333% - 1.5rem);
  }

  .scroll-indicator {
    display: block;
  }

  .footer-image::before,
  .footer-image::after {
    width: 60px;
    height: 60px;
  }
  .preview {
    width: 160px;
    height: 90px;
  }
  tabs-header {
    display: flex;
    margin-bottom: 2rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .project-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  body {
    font-size: var(--desktop-font);
  }
  main {
    min-height: 700px;
    padding: 100px 0;
    background-color: white;
    margin: -60px 0;
    position: relative;
    z-index: 2;
    clip-path: polygon(
      60px 0,
      calc(100% - 60px) 0,
      100% 60px,
      100% calc(100% - 60px),
      calc(100% - 60px) 100%,
      60px 100%,
      0% calc(100% - 60px),
      0% 60px
    );
  }
  .hero-content h1,
  .hero-product h2,
  .hero-page h2 {
    font-size: 6rem;
  }
  #posts .news-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .project-item {
    height: 400px;
  }
  .preview {
    width: 210px;
    height: 140px;
  }

  .catalog-item {
    width: 100%;
  }

  .bottom-item {
  }
  .tabs-header {
    flex-direction: row;
  }
}

/* ===== CONTACT FORM SECTION ===== */
.contact-form-section {
  padding: 4rem 0;
  background-color: var(--light-bg);
}

.contact-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form-wrapper h2 {
  font-size: 2rem;
  color: var(--heading-color);
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-weight: 400;
}

/* Стили формы */
.wpcf7-form {
  width: 100%;
}

.form-row {
  margin-bottom: 2rem;
  position: relative;
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  background-color: white;
  color: var(--text-color);
  font-family: "Roboto Flex", sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.form-input {
  height: 56px;
}

.form-textarea {
  height: 120px;
  resize: vertical;
  min-height: 120px;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(152, 14, 47, 0.1);
}

/* Стили для плейсхолдера */
.form-input::placeholder,
.form-textarea::placeholder {
  color: #999;
  font-size: 0.9rem;
}

/* Стили для чекбоксов согласия */
.wpcf7-acceptance {
  margin: 1.5rem 0;
}

.wpcf7-list-item {
  display: block;
  margin-bottom: 1rem;
}

.wpcf7-list-item-label {
  display: flex;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-color);
  cursor: pointer;
}

.wpcf7-list-item-label input[type="checkbox"] {
  margin-right: 0.5rem;
  margin-top: 0.2rem;
  accent-color: var(--accent-color);
}

/* Стили кнопки отправки */
.submit-btn {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: "Noto Sans", sans-serif;
  width: 100%;
}

.submit-btn:hover {
  background-color: #7a0b26;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(152, 14, 47, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Стили для ошибок валидации */
.wpcf7-not-valid-tip {
  color: var(--accent-color);
  font-size: 0.8rem;
  margin-top: 0.25rem;
  display: block;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  border-color: var(--accent-color);
  background-color: rgba(152, 14, 47, 0.1);
  color: var(--text-color);
  padding: 1rem;
  margin: 1rem 0 0 0;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: #46b450;
  background-color: rgba(70, 180, 80, 0.1);
  color: var(--text-color);
  padding: 1rem;
  margin: 1rem 0 0 0;
}

/* Скрытое поле для защиты от спама */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Анимация загрузки */
.wpcf7 .ajax-loader {
  display: none;
  margin: 0 auto;
}

.wpcf7-form.submitting .ajax-loader {
  display: block;
}

/* Состояния полей */
.wpcf7-form-control-wrap {
  display: block;
  position: relative;
}

.wpcf7-form-control.wpcf7-not-valid {
  border-color: var(--accent-color);
  background-color: rgba(152, 14, 47, 0.05);
}

/* Стили для скрытых полей */
.wpcf7-form-control[type="hidden"] {
  display: none;
}

/* Адаптивность для формы */
@media (min-width: 950px) {
  .contact-form-wrapper h2 {
    font-size: 3rem;
  }

  .form-row {
    margin-bottom: 2.5rem;
  }

  .submit-btn {
    width: auto;
    min-width: 200px;
  }

  .contact-form-section {
    padding: 6rem 0;
  }
}

/* Анимация появления формы */
.contact-form-wrapper {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Стили для фокуса с клавиатуры */
.form-input:focus-visible,
.form-textarea:focus-visible,
.submit-btn:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.product-image {
  flex: 1;
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  min-height: 300px;
  background: #f5f5f5;
}

@media (max-width: 950px) {
  .product-image {
    min-height: 250px;
  }
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
}
.product-image-wrapper img {
  mix-blend-mode: multiply;
  filter: contrast(1.1) brightness(1.05);
  background-color: var(--light-bg);
}

.product-image-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-slide.active {
  opacity: 1;
  pointer-events: all;
}

.product-image img,
.project-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.product-info {
  flex: 1;
}
.product-info h1 {
  font-size: 2rem;
}

/* Стили для превью (скрыты на мобильных) */
.product-gal-thumb {
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 25px 0 0 0;
  justify-content: start;
  display: none;
}
.project-thumb .product-gal-thumb {
  justify-content: start;
  display: flex;
  flex-wrap: wrap;
}

.project-content {
  padding: 48px;
  background-color: var(--light-bg);
  margin-top: 48px;
}

@media (min-width: 950px) {
  .post-navigation {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }
}

.product-gal-thumb li {
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  padding: 3px;
  line-height: 0;
}

.product-gal-thumb li.active {
  border-color: var(--accent-color);
  transform: scale(1.05);
}

.product-gal-thumb li:hover {
  border-color: vat(--accent-color);
}

.product-gal-thumb img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.product-gal-thumb li.active img,
.product-gal-thumb li:hover img {
  opacity: 1;
}

/* Индикаторы для мобильных */
.slider-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

@media (min-width: 950px) {
  .slider-indicators {
    display: none;
  }
  .project-thumb .product-gal-thumb {
    justify-content: center;
  }
  .product-gal-thumb {
    display: flex;
  }
  .product-gal-thumb img {
    width: 90px;
    height: 90px;
  }
}

.slider-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: all 0.3s ease;
  cursor: pointer;
}

.slider-indicator.active {
  background: #2563eb;
  transform: scale(1.2);
}

/* Загрузочное состояние */
.slider-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  background: #f5f5f5;
  border-radius: 8px;
}

/* ===== TABLE STYLES ===== */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
  background-color: white;
  padding: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Roboto Flex", sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-color);
  background-color: white;
}

table th {
  background-color: var(--dark-bg);
  color: white;
  font-family: "Noto Sans", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  text-align: left;
  padding: 1.2rem 1rem;
  border: none;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

table td {
  padding: 1.2rem 1rem;
  border-bottom: 1px solid var(--light-bg);
  background-color: white;
  transition: all 0.3s ease;
}

table tr:last-child td {
  border-bottom: none;
}

table tr:hover td {
  background-color: rgba(152, 14, 47, 0.03);
}

/* Alternating row colors */
table tr:nth-child(even) td {
  background-color: rgba(239, 239, 239, 0.3);
}

table tr:nth-child(even):hover td {
  background-color: rgba(152, 14, 47, 0.05);
}

/* Header cells with accent color */
table th:first-child {
  border-top-left-radius: 4px;
}

table th:last-child {
  border-top-right-radius: 4px;
}

/* Responsive table */
@media (max-width: 950px) {
  .table-wrapper {
    margin: 1.5rem -1rem;
    width: calc(100% + 2rem);
  }

  table {
    font-size: 0.9rem;
  }

  table th,
  table td {
    padding: 1rem 0.8rem;
  }
}

/* ===== LIGHTBOX STYLES ===== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  z-index: 1;
}

.lightbox__content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  z-index: 2;
  pointer-events: none;
}

/* Внутренние элементы контента должны блокировать события */
.lightbox__image-container,
.lightbox__close,
.lightbox__nav,
.lightbox__caption,
.lightbox__counter {
  pointer-events: auto;
}

.lightbox__image-container {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease;
}

.lightbox__caption {
  color: white;
  text-align: center;
  margin-top: 1rem;
  font-size: 1.1rem;
  max-width: 600px;
}

.lightbox__counter {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.lightbox__close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 3;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  z-index: 3;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox__prev {
  left: 2rem;
}

.lightbox__next {
  right: 2rem;
}

/* Стили для триггеров */
.lightbox-trigger {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.lightbox-trigger:hover {
  transform: scale(1.02);
}

.lightbox-gallery {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Адаптивность */
@media (max-width: 950px) {
  .lightbox__content {
    padding: 1rem;
  }

  .lightbox__close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }

  .lightbox__nav {
    width: 40px;
    height: 40px;
  }

  .lightbox__prev {
    left: 0.5rem;
  }

  .lightbox__next {
    right: 0.5rem;
  }

  .lightbox__caption {
    font-size: 1rem;
    padding: 0 1rem;
  }
}
