:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --accent-color: #198754;
  --light-color: #f8f9fa;
  --dark-color: #212529;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: var(--light-color);
  color: var(--dark-color);
  font-family: 'Segoe UI', sans-serif;
}

/* Navigation link styling */
.nav-link {
  position: relative;
  padding-bottom: .25rem;
}

.nav-link.active {
  color: var(--primary-color) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link.active::after {
  width: 100%;
}

.hero {
  background-color: #0d6efd;
  color: #fff;
}

.marketing h2 {
  color: #0d6efd;
}

.marketing {
  margin-top: 2rem;
}

/* Heading styles */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark-color);
  font-weight: 400;
  margin-bottom: 1rem;
}

/* Card formatting */
.card {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: 600;
}

.card-title {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

/* Hero image styling */
.hero-img {
  max-height: 500px;
  object-fit: cover;
  filter: brightness(60%);
}

/* New hero media container */
.hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  filter: brightness(60%);
}

/* Default hero background */
.hero-media.default {
  background-image: url('https://via.placeholder.com/1920x600');
}

/* Extra vertical padding utility */
.py-6 {
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}

/* Partner logo styling */
.partner-logo {
  width: 200px;
  height: 80px;
  object-fit: cover;
}

/* Testimonial photo styling */
.testimonial-photo {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

/* Ensure carousel controls remain visible */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.5));
}

/* Image/text section layout */
.image-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 5%;
}

.image-section.reverse {
  flex-direction: row-reverse;
}

.image-section > div {
  flex: 1;
}

@media (max-width: 768px) {
  .image-section {
    flex-direction: column;
    text-align: center;
  }
  .image-section.reverse {
    flex-direction: column;
  }
}

.aboutus-section,
.expertise-section {
 padding: 60px 20px;
}

/* Consistent image sizing */
.standard-image {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 12px;
  margin: 1rem auto;
  display: block;
}

@media (max-width: 768px) {
  .standard-image {
    width: 70vw;
    height: 70vw;
  }
}

/* About page card hover effects */
.card-hover {
  transition: transform 0.3s ease;
}

.card-hover:hover {
  transform: scale(1.05);
}

.hover-zoom {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Testimonial carousel */
.carousel-container {
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

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

.testimonial-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  box-sizing: border-box;
  padding: 20px;
}

.testimonial-img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-text blockquote {
  font-size: 1.1rem;
  color: #333;
  margin: 0 0 10px;
}

.testimonial-text footer {
  font-style: italic;
  color: #555;
}

.slide-image {
  width: 120px; 
  height: 120px; 
  border-radius: 8px; 
  object-fit: cover;
}

.full-visual-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  margin: 20px auto;
}

@media (max-width: 768px) {
  .full-visual-img {
    max-width: 100%;
  }
}

.expertise-section h2 {
  margin-top: 20px;
  margin-bottom: 20px;
}

.expertise-section p {
  margin-bottom: 16px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .expertise-section {
    padding: 40px 16px;
  }
}


/* Services section shared styling */
.services-section {
  padding: 60px 5%;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: #1d1e4c;
  margin-bottom: 50px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.service-item img {
  width: 320px;
  max-width: 100%;
  border-radius: 12px;
  flex-shrink: 0;
}

.service-text h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #1d1e4c;
}

.service-text p {
  font-size: 1rem;
  color: #555;
  max-width: 600px;
}

/* Mobile styles */
@media (max-width: 768px) {
  .service-item {
    flex-direction: column;
    text-align: center;
  }

  .service-item img {
    width: 100%;
  }

  .service-text {
    padding: 0 10px;
  }
}

.services-button-wrapper {
  text-align: center;
  margin-top: 40px;
}

.services-button {
  background-color: #3B82F6;
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.services-button:hover {
  background-color: #2563eb;
}

.faq-section {
  padding: 60px 5%;
  background-color: #f8f9fa;
  border-radius: 20px;
  font-family: 'Segoe UI', sans-serif;
}

.faq-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #1d1e4c;
  margin-bottom: 40px;
}

.faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.faq-item input {
  display: none;
}

.faq-question {
  display: block;
  font-weight: bold;
  font-size: 1.2rem;
  cursor: pointer;
  position: relative;
  padding-left: 25px;
  color: #222;
}

.faq-question::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  color: #3B82F6;
  font-size: 1.2rem;
}

.faq-item input:checked + .faq-question::before {
  content: "–";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 1rem;
  color: #555;
  padding-left: 25px;
}

.faq-item input:checked + .faq-question + .faq-answer {
  max-height: 200px;
  margin-top: 10px;
}

/* Основной блок */
section.home-about {
    padding: 60px 0;
    background-color: #f8f9fa;
}

/* Картинка — уже скруглена inline, но можно продублировать */
.home-about img {
    border-radius: 20px;
    max-width: 100%;
    height: auto;
}

/* Заголовок */
.home-about h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0b1534;
    margin-bottom: 20px;
}

/* Параграфы */
.home-about p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Кнопка "Learn More" */
.home-about .btn {
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: #3b82f6;
    border: none;
}

.home-about .btn:hover {
    transform: scale(1.05);
    background-color: #1e40af;
    color: #fff;
}

.animate-scroll:hover {
  animation-play-state: paused;
}

.logo-scroll {
  display: flex;
  gap: 10px;
  animation: scroll-left 80s linear infinite;
  width: max-content;
  align-items: center;
}

.logo-scroll img {
  height: 70px; /* было 50px */
  margin: 0 40px; /* добавим расстояние между логотипами */
  opacity: 0.95;
  object-fit: contain;
}



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


  .service-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 16px;
    background: #ffffff;
    padding: 20px;
    height: 100%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); /* 🔹 постоянная тень */
  }

  .service-box:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15); /* 🔹 усиливается при наведении */
  }

  .service-box img {
    border-radius: 12px;
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
  }

  .service-box h5,
  .service-box p {
    transition: transform 0.3s ease;
  }

  .service-box:hover img,
  .service-box:hover h5,
  .service-box:hover p {
    transform: scale(1.03);
  }

.background {
  background: url('/images/contact.png') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.full-width-override {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

/* Общая раскладка секций (ПК) */
.image-section {
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Чтобы текст и картинка делили ширину пополам на десктопе */
.image-section > .text-col,
.image-section > .image-col {
  flex: 1 1 0;
}

/* Адаптив: на мобильных складываем в колонку и переносим картинку наверх */
@media (max-width: 768px) {
  .image-section {
    flex-direction: column;
    gap: 24px;
  }
  .image-section .image-col {
    order: -1;           /* картинка станет над текстом */
    width: 100%;
  }
}

/* Картинки адаптивные + лёгкое скругление */
.full-visual-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}


@media (max-width: 768px) {
    .img-spacing {
        margin-top: 20px; /* Отступ сверху */
    }
}

/* секция на всю ширину окна */
.hero-bleed {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}


 #our-services img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
}



.service-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}


.service-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px; /* закругление как у Firewall */
}

.service-image img[alt="VPS Hosting Service"] {
    border-radius: 12px;
}


/* По умолчанию (десктоп) картинка не заходит за контейнер */
.our-services-img {
  width: 100%;
  height: auto;
}

/* На мобильных — во всю ширину экрана */
@media (max-width: 768px) {
  .our-services-img {
    width: 100vw;           /* ширина экрана */
    margin-left: -15px;     /* убрать отступ контейнера */
    margin-right: -15px;
    max-width: 100vw;
  }
}

/* Обертка всей карусели специалистов */
.experts-carousel {
  margin-top: 3rem; /* увеличенный отступ сверху */
}

/* Карточка специалиста */
.expert-card { 
  padding-top: 1rem;           
  margin: 0 1rem;              
}

.expert-avatar {
  width: 120px;                 /* увеличенный размер круглой мини-картинки */
  height: 120px;
  margin: 0 auto 0.75rem;       /* больше отступ снизу под подпись */
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  background: rgba(0,0,0,.03);
}

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

.expert-title {
  margin: 0;
  font-style: italic;
  color: #6c757d;              
  white-space: nowrap;         
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: 1.05rem;           /* чуть крупнее текст */
}

/* Больше аватарка на мобильных */
@media (max-width: 576px) {
  .expert-avatar { 
    width: 140px; 
    height: 140px; 
  }
  .expert-title { font-size: 1.1rem; }
}


.server-card img {
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 14px 14px 0 0;
}

.badge-sale {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #b1c300;
    color: #fff;
    font-weight: 700;
    padding: .4rem .6rem;
    border-radius: 999px;
    font-size: .9rem;
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
}

@media (max-width: 576px) {
    .server-card img {
        aspect-ratio: 1/1;     /* квадрат на мобилках */
        border-radius: 12px 12px 0 0;
    }
}

