/* Базові стилі */

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

a {
  text-decoration: none;
  color: currentColor;
}

ul,
ol {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

address {
  font-style: normal;
}

button {
  cursor: pointer;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #242527;
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #fafafa;
}

.nav-link:hover,
.nav-link:focus {
  color: #923a3a;
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 16px 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  max-width: 204px; /* Обмежуємо розмір логотипу */
  height: auto;
}

.revision {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fafafa;
  gap: 8px;
  padding-right: 10px;
  font-size: 20px;
}

.button-tel {
  width: 64px;
  height: 64px;
}
.button-tel:hover,
.button-tel:focus {
  transform: scale(1.1);
}

/* Main Title */
.firma-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 32px;
  text-align: center;
  color: #fafafa;
  margin: 56px 0 0 0;
}

/* Advantages */
.advantage-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 56px;
  text-align: center;
  color: #923a3a;
  margin-top: 56px;
  background: linear-gradient(145deg, #2b2b2b, #0f0f0f);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    inset 0 -2px 4px rgba(0, 0, 0, 0.8),
    0 12px 30px rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  padding: 24px;
}

.div-price {
  background: linear-gradient(145deg, #2b2b2b, #0f0f0f);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    inset 0 -2px 4px rgba(0, 0, 0, 0.8),
    0 12px 30px rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  padding: 24px;
  width: fit-content;
  margin: 0 auto;
}
.advantage-ul {
  display: flex;
  gap: 24px;
  padding-top: 40px;
}

.advantage-li {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 18px;
  text-align: center;
  color: #fff;
  backdrop-filter: blur(20px);
  box-shadow:
    inset 0 4px 20px 0 rgba(255, 255, 255, 0.4),
    0 4px 4px 0 rgba(0, 0, 0, 0.25);
  background: rgba(145, 145, 145, 0.15);
  border-radius: 16px;
  width: 282px;
  height: 228px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* Prices */
.price-h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 56px;
  text-align: center;
  color: #923a3a;

  padding-bottom: 16px;
}

.price-h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 32px;
  color: #923a3a;
  text-align: center;
  padding-bottom: 16px;
}

.price-h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #fafafa;
  text-align: center;
  padding-bottom: 16px;
}

.price-h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #fafafa;
  text-align: center;
}

.table {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 32px;
  margin-bottom: 56px;
  background: linear-gradient(145deg, #2b2b2b, #0f0f0f);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    inset 0 -2px 4px rgba(0, 0, 0, 0.8),
    0 12px 30px rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
  color: #fafafa;
  background: linear-gradient(145deg, #2b2b2b, #0f0f0f);
  border-radius: 8px;
  overflow: hidden;
}

th,
td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

th {
  font-weight: 600;
  font-size: 20px;
  background: linear-gradient(145deg, #2b2b2b, #0f0f0f);
}

td {
  font-size: 18px;
}

.price-doc {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #fafafa;
  border-radius: 16px;
  max-width: 996px;
  backdrop-filter: blur(20px);
  box-shadow:
    inset 0 4px 20px 0 rgba(255, 255, 255, 0.4),
    0 4px 4px 0 rgba(0, 0, 0, 0.25);
  background: linear-gradient(145deg, #2b2b2b, #0f0f0f);
  margin: 0 auto;
  padding: 32px 102px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    inset 0 -2px 4px rgba(0, 0, 0, 0.8),
    0 12px 30px rgba(0, 0, 0, 0.7);
}

/* Services */

.services-h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 56px;
  text-align: center;
  color: #923a3a;
  /* padding-bottom: 40px;
  margin-top: 56px; */
}

.services-column-left {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 312px;
  padding-bottom: 32px;
}
.services-column-right {
  display: flex;
  justify-content: space-between;
  flex-direction: row-reverse;
  align-items: center;
  gap: 24px;
  min-height: 312px;
  padding-bottom: 32px;
}

.services-column-left img,
.services-column-right img {
  max-width: 486px;
  height: auto;
}

.services-p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 24px;
  text-align: center;
  color: #fafafa;
  flex: 1;
}

.contacts-h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 56px;
  text-align: center;
  color: #923a3a;
  padding-bottom: 24px;
  /* margin-top: 56px; */
}
.contacts-p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #923a3a;
  padding-top: 24px;
}
.contacts-p2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #fafafa;
}

.contacts-div {
  text-align: center;
}
.container-contacts {
  margin-bottom: 24px;
}

/* Медіа-запити для мобільних (до 767px) */
@media (max-width: 767px) {
  .container {
    max-width: 100%;
    padding: 0 8px;
  }

  .navigation {
    padding: 8px 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .logo {
    max-width: 116px;
  }

  .revision {
    padding-right: 0;
    justify-content: center;
    font-size: 16px;
  }

  .button-tel {
    width: 40px;
    height: 40px;
  }

  .firma-title {
    font-size: 24px;
    margin: 32px 20px 0 20px;
  }

  .advantage-title,
  .price-h2,
  .services-h2,
  .contacts-h2 {
    font-size: 36px;
    /* margin-top: 32px; */
  }

  .advantage-ul {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 24px;
  }

  .advantage-li {
    width: 100%;
    max-width: 300px;
    height: 150px;
    font-size: 18px;
    padding: 8px;
  }

  .price-h3 {
    font-size: 24px;
    padding-top: 24px;
  }

  .price-h4,
  .price-h5,
  .price-doc,
  .services-p,
  .contacts-p,
  .contacts-p2 {
    font-size: 18px;
  }

  .price-doc {
    padding: 16px 20px;
  }

  .services {
    padding: 16px 20px 0 20px;
  }

  .services-column-left {
    flex-direction: column;

    gap: 12px;
  }
  .services-column-right {
    flex-direction: column;

    gap: 12px;
  }

  .services-column-left img,
  .services-column-right img {
    max-width: 100%;
  }

  th,
  td {
    font-size: 14px;
    padding: 6px;
  }

  table {
    font-size: 14px;
  }
}

/* Базові стилі */
.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.burger-line {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
}

tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.05);
}

/* Мобільне меню */
@media (max-width: 1023px) {
  .nav-list {
    position: absolute;
    top: 40px;
    right: 0;
    background-color: #434445;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    display: none;
  }

  .nav-list.active {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    background: #242527;
  }

  .burger {
    display: flex;
    margin-left: auto;
  }

  .navigation {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}

.burger.open .burger-line:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.burger.open .burger-line:nth-child(2) {
  opacity: 0;
}
.burger.open .burger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

@media (max-width: 1200px) {
  .services-column-left {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    min-height: 312px;
  }
}

.scroll-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  font-size: 24px;
  background-color: rgba(146, 58, 58, 0.7);
  color: #fafafa;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition:
    opacity 0.3s ease-in-out,
    transform 0.3s ease-in-out;
  z-index: 1000;
}

.scroll-to-top:hover {
  background-color: rgba(181, 69, 69, 0.7);
  transform: scale(1.1);
}

.scroll-to-top.visible {
  display: flex;
  opacity: 1;
}

@media (max-width: 767px) {
  .scroll-to-top {
    width: 40px;
    height: 40px;
    font-size: 20px;
    bottom: 16px;
    right: 16px;
  }
}

.calc {
  text-align: center;
  color: #fafafa;
  padding-bottom: 20px;
}

.calcvart {
  text-align: center;
  color: #fafafa;
  padding-bottom: 20px;
  padding-top: 20px;
}

.services {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.services-h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 56px;
  text-align: center;
  color: #923a3a;
  /* padding-bottom: 40px;
  margin-top: 56px; */
}

/* Стилі для свайпера */
.swiper {
  width: 100%;
  height: 100%;
  padding: 20px 0 50px;
}

.swiper-slide {
  text-align: center;
  background: rgba(145, 145, 145, 0.15);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    inset 0 4px 20px 0 rgba(255, 255, 255, 0.4),
    0 4px 4px 0 rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(20px);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.swiper-slide:hover {
  transform: translateY(-5px);
  box-shadow:
    inset 0 4px 20px 0 rgba(255, 255, 255, 0.4),
    0 8px 15px 0 rgba(0, 0, 0, 0.3);
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 250px;
}

.swiper.mySwiper .swiper-wrapper .swiper-slide {
  width: 376px;
  height: auto;
  margin-right: 20px;
}

.services-p {
  padding: 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #fafafa;
  background: transparent;
}

/* Кастомні стрілки */
.swiper-nav-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.swiper-nav-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgb(146, 58, 58, 0.7);
  border: none;
  color: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.swiper-nav-btn:hover {
  background: rgba(181, 69, 69, 0.9);
  transform: scale(0.9);
}

.swiper-nav-btn:active {
  transform: scale(0.95);
}

/* Пагінація */
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #bdc3c7;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #923a3a;
}
.swiper-pagination {
  position: relative !important;
  bottom: auto !important;
  top: 10px !important;
  margin-bottom: 20px;
}

.swiper-pagination-bullet {
  background: rgba(8, 8, 8, 0.7) !important;
  opacity: 1 !important;
}

/* Активний буллет */
.swiper-pagination-bullet-active {
  background: rgba(146, 58, 58, 1) !important;
  transform: scale(1.2);
}
/* Адаптивність */
@media (max-width: 768px) {
  .services-h2 {
    font-size: 36px;
  }

  .swiper-slide img {
    height: 200px;
  }

  .services-p {
    font-size: 18px;
    padding: 15px;
  }

  .swiper-nav-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .advantage-item {
    width: 150px;
    height: 150px;
  }

  .services {
    padding: 40px 15px;
  }

  .services-h2 {
    font-size: 32px;
  }

  .swiper-slide img {
    height: 180px;
  }

  .services-p {
    font-size: 16px;
  }

  .swiper-nav-btn {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  .div-price {
    margin: 0 8px 0 8px;
  }
}

.services {
  padding: 60px 0;
}

.services-h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  background: linear-gradient(145deg, #2b2b2b, #0f0f0f);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    inset 0 -2px 4px rgba(0, 0, 0, 0.8),
    0 12px 30px rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  padding: 24px;
  width: fit-content;
  margin: 0 auto;
}

/* Контейнер біжучої строки */
.running-line-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.running-line {
  width: 100%;
}

.running-line-track {
  display: flex;
  animation: runningLine 5s linear infinite;
}

.running-line-content {
  display: flex;
  flex-shrink: 0;
  gap: 30px;
}

/* Стилі для кожного елементу послуги */
.service-item {
  flex: 0 0 auto;
  width: 300px;
  text-align: center;

  border-radius: 12px;
  padding: 20px;
  background: linear-gradient(145deg, #2b2b2b, #0f0f0f);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    inset 0 -2px 4px rgba(0, 0, 0, 0.8),
    0 12px 30px rgba(0, 0, 0, 0.7);
}

.service-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.services-p {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fafafa;
  margin: 0;
}

/* Анімація біжучої строки */
@keyframes runningLine {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Контроль анімації */
.animation-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.control-btn {
  background: rgba(146, 58, 58, 0.8);
  border: none;
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.control-btn:hover {
  background: rgba(146, 58, 58, 1);
  transform: scale(1.05);
}

/* Адаптивність */
@media (max-width: 768px) {
  .service-item {
    width: 250px;
  }

  .running-line-content {
    gap: 20px;
  }

  .services-h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .service-item {
    width: 200px;
  }

  .service-item img {
    height: 150px;
  }

  .services-p {
    font-size: 1rem;
  }
}

/* Додайте цей стиль */
.content-gap {
  width: 30px; /* Ширина проміжку */
  flex-shrink: 0;
}

.advantage-list {
  width: 100%; /* або конкретна ширина, наприклад 30rem */
  position: relative;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
}

.inner {
  display: flex;
  gap: 1rem;
  width: fit-content;
  animation: loop 20s linear infinite; /* можна налаштувати швидкість */
  padding-top: 40px;
  padding-bottom: 40px;
}

.advantage-item {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 18px;
  text-align: center;
  color: #fff;
  backdrop-filter: blur(20px);
  box-shadow:
    inset 0 4px 20px 0 rgba(255, 255, 255, 0.4),
    0 4px 4px 0 rgba(0, 0, 0, 0.25);
  background: rgba(145, 145, 145, 0.15);
  border-radius: 16px;
  width: 250px;
  height: 155px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #242527,
    transparent 30%,
    transparent 70%,
    #242527
  );
}

@keyframes loop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 767px) {
  .advantage-item {
    width: 150px;
    height: 150px;
  }
}

/* БАЗА */
.animate {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  will-change: opacity, transform;
}

.animate.show {
  opacity: 1;
  transform: none;
}

/* НАПРЯМКИ */
.fade-up {
  transform: translateY(40px);
}

.fade-left {
  transform: translateX(-40px);
}

.fade-right {
  transform: translateX(40px);
}

/* ЗАТРИМКИ */
.delay-1 {
  transition-delay: 0.15s;
}
.delay-2 {
  transition-delay: 0.3s;
}
.delay-3 {
  transition-delay: 0.45s;
}

.animate {
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  will-change: opacity, transform;
}

.animate.show {
  opacity: 1;
  transform: scale(1);
}

.zoom-center {
  transform-origin: center center;
}

.typewriter {
  visibility: hidden;
  white-space: pre-wrap;
}

.typewriter.show {
  visibility: visible;
}

/* Курсор */
.typewriter::after {
  content: '|';
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50%,
  100% {
    opacity: 1;
  }
  25%,
  75% {
    opacity: 0;
  }
}

.typewriter::after {
  content: '|';
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s infinite;
}

.typewriter.done::after {
  content: '';
  animation: none;
}

.contacts {
  padding-bottom: 64px;
}

@media (max-width: 480px) {
  .contacts {
    padding-bottom: 32px;
  }
}

.contacts-h2 {
  text-align: center;
  margin-bottom: 2.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  background: linear-gradient(145deg, #2b2b2b, #0f0f0f);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    inset 0 -2px 4px rgba(0, 0, 0, 0.8),
    0 12px 30px rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  padding: 24px;
  width: fit-content;
  margin: 0 auto;
  margin-bottom: 42px;
}

/* GRID НА FLEX */
.contacts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(145deg, #2b2b2b, #0f0f0f);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    inset 0 -2px 4px rgba(0, 0, 0, 0.8),
    0 12px 30px rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  padding: 24px;
}

/* ОДИН РЯДОК */
.contact-item {
  flex: 1 1 420px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: #fafafa;
}

/* ЛЕЙБЛ */
.contact-label {
  min-width: 140px;
  font-weight: 600;
  color: #923a3a;
}

/* ЗНАЧЕННЯ */
.contact-value {
  color: #fafafa;
  line-height: 1.5;
}

.glass-link {
  text-decoration: none;
}

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

/* 📱 MOBILE */
@media (max-width: 767px) {
  .contact-item {
    flex-direction: column;
  }

  .contact-label {
    min-width: auto;
  }
}

.logo {
  filter: drop-shadow(0 0 8px rgba(146, 58, 58, 0.6))
    drop-shadow(0 0 16px rgba(146, 58, 58, 0.4));
  transition: filter 0.3s ease;
  animation: glow-pulse 2s infinite alternate;
}

@keyframes glow-pulse {
  0% {
    filter: drop-shadow(0 0 4px rgba(146, 58, 58, 0.4))
      drop-shadow(0 0 12px rgba(146, 58, 58, 0.2));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(146, 58, 58, 0.8))
      drop-shadow(0 0 24px rgba(146, 58, 58, 0.6));
  }
  100% {
    filter: drop-shadow(0 0 8px rgba(146, 58, 58, 0.6))
      drop-shadow(0 0 16px rgba(146, 58, 58, 0.4));
  }
}

/* Пульсуюча зелена стрілка */
@keyframes blink-green {
  0%,
  50%,
  100% {
    opacity: 1;
  }
  25%,
  75% {
    opacity: 0.3;
  }
}

/* Пульсуюча червона стрілка */
@keyframes blink-red {
  0%,
  50%,
  100% {
    opacity: 1;
  }
  25%,
  75% {
    opacity: 0.3;
  }
}

/* Класи для стрілок */
.blink-green {
  animation: blink-green 1s infinite;
  color: green;
  font-weight: bold;
}

.blink-red {
  animation: blink-red 1s infinite;
  color: red;
  font-weight: bold;
}

/* Базовий стан рядка — невидимий і трохи знизу */
#dynamic-prices tr {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

/* Рядки, які з’являються */
#dynamic-prices tr.show {
  opacity: 1;
  transform: translateY(0);
}

/* Можна окремо зробити заголовок завжди видимим */
#dynamic-prices thead tr {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

#dynamic-prices tr {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

#dynamic-prices tr.show {
  opacity: 1;
  transform: translateY(0);
  background: linear-gradient(145deg, #2b2b2b, #0f0f0f);
}

/* Стрілки мерехтять */
@keyframes blink-green {
  0%,
  50%,
  100% {
    opacity: 1;
  }
  25%,
  75% {
    opacity: 0.3;
  }
}
@keyframes blink-red {
  0%,
  50%,
  100% {
    opacity: 1;
  }
  25%,
  75% {
    opacity: 0.3;
  }
}

.blink-green {
  animation: blink-green 1s infinite;
  color: green;
  font-weight: bold;
}
.blink-red {
  animation: blink-red 1s infinite;
  color: red;
  font-weight: bold;
}

#snow-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: transparent;
}

/* @media (max-width: 600px) {
  .calculator label,
  .calculator select,
  .calculator input,
  .calculator button,
  .calculator p {
    width: 100%;
    display: block;
    margin-bottom: 10px;
  }

  #cart-table th,
  #cart-table td {
    font-size: 14px;
    padding: 4px;
  }

  #clear-cart-btn,
  #add-to-cart-btn {
    width: 100%;
    margin-top: 5px;
    margin-left: 0 !important;
  }
} */

.calculator button {
  padding: 8px 16px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  background-color: #d9534f;
  color: white;
  margin-left: 16px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    inset 0 -2px 4px rgba(0, 0, 0, 0.8),
    0 12px 30px rgba(0, 0, 0, 0.7);
}

.calculator-btn {
  padding: 24px 20px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  color: white;
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.calculator-label {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.div-metal-type {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding-bottom: 24px;
}

.select-metal-type {
  width: 200px;
}

.input-number {
  width: 194px;
}

.calculator {
  margin-top: 40px;
}

.total-price {
  text-align: center;
  color: #fafafa;
  padding-bottom: 50px;
  padding-top: 20px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: #111;
  color: #fff;
  padding: 25px;
  max-width: 400px;
  width: 90%;
  border-radius: 12px;
  animation: scaleIn 0.3s ease;
  box-shadow: 0 0 30px rgba(162, 29, 58, 0.3);
}

.modal-close {
  font-size: 26px;
  cursor: pointer;
  float: right;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: #111;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
}

.metal-name {
  cursor: pointer;
}

.price-row {
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s ease;
}

.price-row.show {
  opacity: 1;
  transform: translateY(0);
}

.metal-name {
  cursor: pointer;
}

.metal-name:hover {
  color: #923a3a;
}
.price-row {
  opacity: 0;
  transform: translateY(14px);
}

.price-row.show {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s ease;
}

/* Стилі модалки */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none; /* спочатку прихована */
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal.show {
  display: flex;
}

.modal-content {
  padding: 20px 30px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 20px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 24px;

  padding: 14px 24px;
  background: #111;
  border-radius: 16px;

  /* 3D ефект */
  box-shadow:
    inset 0 4px 20px 0 rgba(255, 255, 255, 0.4),
    0 4px 4px 0 rgba(0, 0, 0, 0.25);
  background: linear-gradient(145deg, #2b2b2b, #0f0f0f);

  transform: translateZ(0);
}

.nav-li {
  list-style: none;
}

.nav-link {
  display: inline-block;
  padding: 8px 14px;

  color: #fff;
  text-decoration: none;
  font-weight: 500;

  background: linear-gradient(145deg, #1a1a1a, #0c0c0c);
  border-radius: 10px;

  /* Обʼєм */
  box-shadow:
    inset 0 4px 20px 0 rgba(255, 255, 255, 0.4),
    0 4px 4px 0 rgba(0, 0, 0, 0.25);
  background: rgba(145, 145, 145, 0.15);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.nav-list {
  gap: clamp(14px, 2vw, 24px);
  padding: clamp(10px, 1.6vw, 16px) clamp(16px, 2.5vw, 28px);
  border-radius: clamp(12px, 2vw, 18px);
}

.nav-link {
  padding: clamp(6px, 1.2vw, 10px) clamp(10px, 2vw, 16px);
  font-size: clamp(14px, 1.1vw, 16px);
  border-radius: clamp(8px, 1.5vw, 12px);
}

.nav {
  height: clamp(64px, 7vw, 80px);
  padding-inline: clamp(16px, 3vw, 48px);
}

@media (max-width: 1024px) {
  .burger {
    display: flex;
  }
}

@media (min-width: 1024px) {
  .burger {
    display: none;
  }
}

.nav {
  max-width: 1440px;
  margin-inline: auto;
}

.nav-list {
  box-shadow: 0 clamp(6px, 1.2vw, 10px) clamp(18px, 3vw, 30px)
    rgba(0, 0, 0, 0.7);
}

/* ===== MOBILE / TABLET (≤1023px) ===== */
@media (max-width: 1023px) {
  .nav-list {
    display: none;
  }

  .burger {
    display: flex;
  }
}

/* ===== DESKTOP (≥1024px) ===== */
@media (min-width: 1024px) {
  .nav-list {
    display: flex;
  }

  .burger {
    display: none;
  }
}

@media (max-width: 1023px) {
  .nav-list {
    top: clamp(56px, 8vw, 70px);
    right: 16px;

    width: 220px;
    padding: 18px;

    flex-direction: column;

    z-index: 1000;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);

    transition: 0.3s ease;
  }

  .nav-list.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (max-width: 1023px) {
  .nav-list.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    top: 95px;
    right: 20px;
  }
}

@media (max-width: 767px) {
  .nav-list.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    top: 45px;
    right: 10px;
  }
}

@media (max-width: 424px) {
  .nav-list.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    top: 45px;
    right: 10px;
  }
}

@media (max-width: 376px) {
  .nav-list.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    top: 45px;
    right: 10px;
  }
}

.advantage-list {
  position: relative;
  perspective: 1200px;
  margin: 40px auto;
}

.inner {
  display: flex;
  gap: 24px;
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
}

.advantage-item {
  min-width: 280px;
  padding: 20px 24px;

  background: linear-gradient(145deg, #2b2b2b, #0f0f0f);
  color: #fff;
  border-radius: 16px;

  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    inset 0 -2px 4px rgba(0, 0, 0, 0.8),
    0 12px 30px rgba(0, 0, 0, 0.7);

  transform: translateZ(40px);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.advantage-item:hover {
  transform: translateZ(80px);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    inset 0 -2px 6px rgba(0, 0, 0, 0.9),
    0 20px 50px rgba(0, 0, 0, 0.9);
}

.fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glass-links {
  display: flex;
  gap: 12px;
}

.glass-link {
  display: flex;
  align-items: center;
  gap: 6px;

  padding: 6px 14px;
  border-radius: 12px;

  color: #fff;
  text-decoration: none;
  font-size: 14px;

  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);

  transition: all 0.35s ease;
}

.glass-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Hover */
.glass-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* Акценти */
.glass-link.linkedin:hover {
  color: #0a66c2;
}

.glass-link.telegram:hover {
  color: #29a9eb;
}

/* ========== КОМПАКТНИЙ КОШИК ДЛЯ МОБІЛЬНИХ ========== */

/* Контейнер карток */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  max-height: 400px;
  overflow-y: auto;
}

/* Повідомлення про порожній кошик */
.empty-cart {
  text-align: center;
  padding: 30px;
  color: #ccc;
  background: linear-gradient(145deg, #2b2b2b, #0f0f0f);
  border-radius: 12px;
  font-size: 14px;
}

/* Картка товару */
.cart-card {
  background: linear-gradient(145deg, #2b2b2b, #0f0f0f);
  backdrop-filter: blur(5px);
  border-radius: 16px;
  padding: 14px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

/* Заголовок картки */
.cart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.cart-card-metal {
  font-weight: bold;
  font-size: 18px;
  color: white;
}

/* Кнопка видалення */
.cart-card-remove {
  background: #d9534f;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.cart-card-remove:hover {
  background: #c9302c;
  transform: scale(1.05);
}

.cart-card-remove:active {
  transform: scale(0.95);
}

/* Деталі картки - сітка */
.cart-card-details {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 14px;
}

.cart-card-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.cart-card-detail-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.cart-card-detail-value {
  font-weight: 600;
  color: #fff;
}

.cart-card-detail-value strong {
  color: white;
  font-size: 16px;
}

/* Загальна сума */
.cart-total {
  margin-top: 16px;
  margin-bottom: 56px;
  padding: 16px 20px;
  background: linear-gradient(145deg, #2b2b2b, #0f0f0f);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    inset 0 -2px 4px rgba(0, 0, 0, 0.8),
    0 12px 30px rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
}

.cart-total span:first-child {
  font-size: 16px;
}

.cart-total span:nth-child(2) {
  font-size: 24px;
  margin: 0 5px;
  color: white;
}

/* Кнопка очищення (доналаштування існуючої) */
/* #clear-cart-btn {
  width: 100%;
  margin-top: 12px;
  background-color: #d9534f !important;
} */

/* Адаптація для дуже маленьких екранів */
@media (max-width: 480px) {
  .cart-card-details {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cart-card-detail {
    padding: 4px 0;
  }

  .cart-card-metal {
    font-size: 16px;
  }

  .cart-total {
    font-size: 14px;
    padding: 12px 16px;
  }

  .cart-total span:nth-child(2) {
    font-size: 20px;
  }
}

input,
select,
textarea {
  font-size: 16px !important;
}
