* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========== SLIDER (with centered CTA) ========== */
.slider {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.slider-container {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.slide {
  flex: 0 0 100vw;
  height: 100vh;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Removed .slide-caption – no longer needed */

/* Arrows */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  border: none;
  color: white;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 20;
}

.slider-btn:hover {
  background: rgba(30, 58, 138, 0.9);
  transform: translateY(-50%) scale(1.05);
}

.slider-btn--prev {
  left: 20px;
}

.slider-btn--next {
  right: 20px;
}

.slider-btn svg {
  width: 28px;
  height: 28px;
  display: block;
  stroke: white;
  transition: stroke 0.3s;
}

.slider-btn:hover svg {
  stroke: #ffffff;
}

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 20;
}

.dot {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  padding: 0;
}

.dot.active {
  background: white;
  width: 24px;
  border-radius: 10px;
}

/* Centered CTA overlay (new) */
.slider-cta {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 25;
  width: 80%;
  max-width: 600px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  border-radius: 48px;
  padding: 2rem 2rem;
  border: 1px solid rgba(255,255,255,0.25);
  animation: fadeInUp 0.8s ease-out;
  pointer-events: auto;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(30px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }
}

.slider-cta h1 {
  font-size: 2rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  letter-spacing: -0.3px;
}

.slider-cta-btn {
  display: inline-block;
  background: #0f3b6f;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: 60px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border: none;
  cursor: pointer;
}

.slider-cta-btn:hover {
  background: #0f3b6f;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(30, 74, 143, 0.4);
}

/* ========== SERVICES SECTION ========== */
.services {
  margin-top: 70px;
  background: linear-gradient(135deg, #f9fafc 0%, #ffffff 100%);
  border-radius: 48px 48px 48px 24px;
  padding: 3rem 2rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(44,98,128,0.03) 0%, rgba(44,98,128,0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.services > * {
  position: relative;
  z-index: 1;
}

.example {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.example a{
    text-decoration: none;
    color: black;
}

.services h3 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #0e2a3a;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.faq_image{
  border-radius: 30px;
}

.faq_ {
  font-size: 1rem;
  line-height: 1.65;
  color: #1e2f3c;
  width: 100%;
  max-width: 620px;
  margin-bottom: 1.5rem;
}

.faq_ + .faq_ {
  margin-top: 1rem;
}

.example video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: #000;
  object-fit: contain;
}

.example video:hover {
  transform: scale(1.01);
  box-shadow: 0 25px 40px -14px rgba(0, 0, 0, 0.25);
}

/* ========== CATALOG SECTION ========== */
.catalog {
  margin: 70px auto;
  padding: 2rem;
  max-width: 1400px;
  background: linear-gradient(135deg, #f9fafc 0%, #ffffff 100%);
  border-radius: 48px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.03);
}

.catalog-header {
  text-align: left;
  margin-bottom: 3rem;
  padding-left: 1rem;
  border-left: 4px solid #2c6280;
}

.catalog-header h1 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #4b6f8c;
  margin: 0 0 0.25rem 0;
  font-weight: 600;
}

.catalog-header h3 {
  font-size: 2.2rem;
  font-weight: 600;
  margin: 0.25rem 0 0.5rem 0;
  color: #0e2a3a;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.catalog-header h4 {
  font-size: 1.2rem;
  font-weight: 500;
  color: #2c6280;
  margin: 0;
  padding-left: 0;
  border-left: none;
  white-space: normal;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2f6;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.15);
  border-color: #2c6280;
}

.product-card a {
  text-decoration: none;
  display: block;
  padding: 1rem;
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  /*overflow: hidden;*/
  border-radius: 16px;
  /*background: #f4f6f9;*/
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

#korob{
  margin: auto;
  width: auto;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-title {
  font-size: 1rem;
  line-height: 1.4;
  color: #1e2f3c;
  margin: 1rem 0 0.5rem 0;
  text-align: center;
  font-weight: 500;
}

.product-link {
  display: inline-block;
  font-size: 0.85rem;
  color: #2c6280;
  font-weight: 500;
  text-align: center;
  width: 100%;
  transition: all 0.2s;
  opacity: 0;
  transform: translateY(5px);
}

.product-card:hover .product-link {
  opacity: 1;
  transform: translateY(0);
}

/* ========== CTA CARD ========== */
.cta-card {
  max-width: 700px;
  margin: 2rem auto;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  border: 1px solid #eef2f6;
}

.cta-card:hover {
  box-shadow: 0 12px 28px rgba(44, 98, 128, 0.12);
  border-color: #2c6280;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 1.5rem 2rem;
  flex-wrap: wrap;
}

.cta-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.cta-card:hover .cta-icon {
  transform: scale(1.05);
}

.cta-text {
  text-align: left;
}

.cta-text p {
  font-size: 1.3rem;
  font-weight: 500;
  color: #0e2a3a;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

/* Fixed CTA phone button – solid blue background, white text */
.cta-phone {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  background: #1e4a8f;
  color: white;
  padding: 0.6rem 1.8rem;
  border-radius: 60px;
  transition: all 0.25s ease;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border: none;
}

.cta-phone:hover {
  background: #0f3b6f;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(30, 74, 143, 0.3);
  color: white;
}

/* ========== RESPONSIVE (uncommented and improved) ========== */
@media (max-width: 1024px) {
  .slider-cta h1 {
    font-size: 1.6rem;
  }
  .slider-cta-btn {
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
  }
  .services h3 {
    font-size: 1.8rem;
  }
  .catalog-header h3 {
    font-size: 1.8rem;
  }
  .catalog-header h4 {
    font-size: 1rem;
  }
}

/* Mobile landscape and smaller (max-width: 768px) */
@media (max-width: 768px) {
  /* Slider: reduce height to avoid full viewport on mobile */
  .slider {
    height: 70vh;  /* or 500px, adjust as needed */
    min-height: 400px;
  }
  .slide {
    height: 70vh;
    min-height: 400px;
  }
  .slider-cta {
    width: 90%;
    padding: 1.2rem 1.2rem;
    border-radius: 32px;
  }
  .slider-cta h1 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }
  .slider-cta-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
  }
  .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
  }
  .slider-btn--prev { left: 12px; }
  .slider-btn--next { right: 12px; }

  /* Services section: stack columns */
  .services {
    margin-top: 40px;
    padding: 2rem 1rem;
    border-radius: 32px;
  }
  .example {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .services h3 {
    font-size: 1.6rem;
    text-align: center;
  }
  .faq_ {
    max-width: 100%;
    font-size: 0.95rem;
  }
  .example video {
    order: -1;  /* video above text if needed, or leave as is */
  }

  /* Catalog section */
  .catalog {
    margin: 40px auto;
    padding: 1.5rem;
    border-radius: 32px;
  }
  .catalog-header {
    padding-left: 0.75rem;
    margin-bottom: 2rem;
  }
  .catalog-header h3 {
    font-size: 1.5rem;
  }
  .catalog-header h4 {
    font-size: 0.9rem;
  }
  .catalog-grid {
    gap: 1.5rem;
  }
  .product-card a {
    padding: 0.75rem;
  }
  .product-title {
    font-size: 0.9rem;
  }
  .product-link {
    opacity: 1;      /* always visible on mobile */
    transform: none;
    font-size: 0.8rem;
  }

  /* CTA card */
  .cta-card {
    margin: 1.5rem 1rem;
    border-radius: 32px;
  }
  .cta-content {
    gap: 1rem;
    padding: 1rem 1.2rem;
    flex-direction: column;
    text-align: center;
  }
  .cta-text {
    text-align: center;
  }
  .cta-text p {
    font-size: 1.1rem;
  }
  .cta-phone {
    font-size: 1.3rem;
    padding: 0.5rem 1.2rem;
  }
  .cta-icon svg {
    width: 40px;
    height: 40px;
  }
  .slider-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* Small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
  .slider {
    height: 60vh;
    min-height: 350px;
  }
  .slide {
    height: 60vh;
    min-height: 350px;
  }
  .slider-cta h1 {
    font-size: 1.1rem;
  }
  .slider-cta-btn {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
  }
  .services h3 {
    font-size: 1.4rem;
  }
  .catalog-header h3 {
    font-size: 1.3rem;
  }
  .cta-phone {
    font-size: 1.2rem;
  }
}

@media (pointer: coarse) {
  .slider-btn {
    display: none;
  }
}

/* Ensure images and videos never overflow */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* If you have any tables in other pages, add overflow-x: auto */
.table-responsive {
  overflow-x: auto;
}