body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/*Шрифти для тексту*/

p {
  font-family: 'Helvetica', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', serif;
}

/*Хеадер */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #0a1a3a;
  padding: 10px 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  max-width: 90px;
  height: auto;
}

.site-header.transparent {
  background: rgba(49, 49, 49, 0.4); /* полупрозрачный тёмно-синий */
  border-bottom: solid 1px;
  border-color: #ffffff3b;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* для Safari */
  box-shadow: none;
}



/*Відео на головній сторінці*/

.fullscreen-video {
  position: relative;
  width: calc(100% + 1px);
  height: 100vh;
  overflow: hidden;
  margin-left: -1px;
}

.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.gif-overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  text-align: center;
  z-index: 2;
}

.gif-overlay-text h1 {
  font-size: 72px;
  margin-bottom: 10px;
  font-family: 'Times New Roman', serif;
}

.gif-overlay-text p {
  font-size: 20px;
  font-family: 'Helvetica', sans-serif;
  opacity: 0.9;
}

.white-text{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  max-width: 558px;
  max-height: 500px;
  transform: translate(-50%, -50%);
  opacity: 0.2;
  z-index: 1;
  pointer-events: none;
}

/*Слайдер на головній сторінці*/

.text-slider {
  position: relative;
  width: 100%;
  height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.slide-card {
  min-width: 100%;
  height: 700px;
  box-sizing: border-box;
  padding: 60px;
  background: #0b1e3d;
  color: white;
  font-size: 28px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  font-size: 48px;
  padding: 10px 20px;
  cursor: pointer;
  z-index: 1;
  transition: background 0.3s ease;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
}

.slider-arrow.left {
  left: 20px;
}

.slider-arrow.right {
  right: 20px;
}

#slider-background-image{
    position: absolute;
    pointer-events: none;
    width: 50vw;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.slide-card-title{
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 24px;
    font-weight: 400;
}
.slide-card-constitution-number{
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 60px;
    font-weight: 400;
    color: #EBCD77;
}
.slide-card-constitution-text{
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 20px;
    font-weight: 100;
    width: 900px;
    height: auto;
    font-style: italic;
}

/*Інтерфейс */
section {
  padding: 60px 20px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.service-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.service-item {
  flex: 1 1 30%;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 6px;
}

/* Послуги */

.portfolio-section {
  width: auto;
  padding: 60px 40px;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.portfolio-title {
  font-size: 28px;
  width: 100%;
  font-family: 'Georgia', serif;
  text-align: left;
  margin-bottom: 30px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: 386px 386px 386px;
    max-width: 1300px;
    margin: 0 auto;
}

.service-card {
  width: 386px;
  height: 386px;
  box-sizing: border-box;
  background-color: #122F4A;
  color: white;
  font-family: 'Georgia', serif;
  padding: 20px;
  border: 2px solid #5CA3FF;
  box-shadow: inset 0 0 50px #5ca3ff00;
  transition: box-shadow 0.4s ease;
}

.service-card:hover {
  box-shadow: inset 0 0 50px hsla(214, 100%, 68%, 0.41);
}

.service-category {
  font-size: 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid #ffffff55;
  font-family: "Roboto", sans-serif;
  font-weight: 200;
}

.service-desc {
  font-size: 14px;
  color: #d0d0d0;
}

#solutions-disclaimer{
    font-family: "Roboto", sans-serif;
    font-weight: 100;
    color: #353535;
    text-align: center;
    font-size: 12px;
    width: 500px;
    margin-top: 40px;
}

/* Секція з адресою офісів */

.branches {
    background-color: #181818 !important; /* Тёмный фон */
    padding: 10px 20px 60px 20px;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column; /* сверху вниз */
    align-items: center;    /* центр по горизонтали */
  }
  
  .branches-title {
    font-size: 32px;
    margin-bottom: 40px;
  }
  
  .branches-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 1300px;
  }
  
  .branch-image {
    background-color: #b9b9b9;
    height: 300px;
    border-radius: 12px;
    margin-bottom: 20px;
  }
  
  .branch-address {
    font-size: 24px;
    margin-bottom: 10px;
    font-family: 'Georgia', serif;
  }

  .branch-working-hours{
    font-size: 16px;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
  }
  
  .branch-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #26619800;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border: solid 2px #5CA3FF;
    transition: background 0.3s ease;
  }

  .branch-button:hover{
    background-color: #0056A6;
  }


/* Анімація для блоків з адресами */

.branch-card {
  position: relative; /* ОБЯЗАТЕЛЬНО для ::before */
  padding: 20px;
  width: 580px;
  box-sizing: border-box;
  border: 1px solid #353535;
  background: #181818;
  overflow: hidden; /* скрываем выходящие эффекты */
  transition: background 0.3s ease;
}

/* Градиент на фоне, который плавно появляется */
.branch-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.05) 30%, rgb(58, 58, 58) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none; /* не мешает кликам по кнопкам */
}

/* При наведении плавно проявляем подсветку */
.branch-card:hover::before {
  opacity: 1;
}

/* Весь контент поверх ::before */
.branch-card * {
  position: relative;
  z-index: 2;
}

/*Контакти */

.contact-section-frame{
    width: auto;
    height: auto;
    background-color: #181818;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 40px 20px;
  background: #181818;
  color: white;
  font-family: 'Georgia', serif;
  width: 1300px;
  height: auto;
}

#contact-box{
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 1160px;
    height: auto;
    padding: 20px 40px;
    border: 1px solid #353535;
    flex-wrap: wrap;
}

.contact-title {
  font-size: 32px;
  margin-bottom: 20px;
  text-align: left;
}

.contact-info {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.6;
}

#social-media-title{
    color: white;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 32px;
    margin: 50px 0 20px 0;
}

.social-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.social-btn {
  background-color: #ffffff;
  color: white;
  border: 1px solid #353535;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
  width: 386px;
  height: 386px;
}

#telegram-link-btn:hover {
  background-color: #00c3ff;
  transition: background 0.3s ease;
}

#meta-link-btn:hover {
  background-color: #006eff;
  transition: background 0.3s ease;
}

#instagram-link-btn:hover {
  background-color: #ff006f;
  transition: background 0.3s ease;
}

.btn-img{
    width: 100%;
    height: 100%;
}

/* Футер */

.site-footer {
  width: 100%;
  background-color: #181818;
  border-top: 1px solid #353535;
  padding: 20px 50px;
  box-sizing: border-box;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-text {
  flex: 1 1 100%;
  position: absolute;
  text-align: center;
  color: white;
  font-size: 14px;
  font-family: 'Georgia', serif;
  margin-bottom: 10px;
}

.footer-logos {
  display: flex;
  gap: 30px;
  justify-content: flex-end;
  width: 100%;
}

.footer-logos img {
  height: 60px;
}

/*Шрифт для тексту */

/*Мобільна версія сайту (для нормальних смартфоні) -------------------------------------------------------------------------------------------------------------------------------------*/

@media (max-width: 768px) {

  /* Основное */
  body {
    font-size: 16px;
  }

  .logo {
    max-width: 70px;
  }

  .gif-overlay-text h1 {
    font-size: 36px;
  }

  .gif-overlay-text p {
    font-size: 16px;
  }

  .white-text {
    width: 80%;
  }

  /* Слайдер */
  .text-slider {
    height: auto;
    padding: 0;
  }

  .slide-card {
    height: auto;
    padding: 40px 20px;
    font-size: 20px;
  }

  .slide-card-title {
    font-size: 18px;
  }

  .slide-card-constitution-number {
    font-size: 32px;
  }

  .slide-card-constitution-text {
    width: 100%;
    font-size: 16px;
  }

  .slider-arrow {
    font-size: 32px;
    padding: 6px 12px;
  }

  /* Послуги */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    width: 100%;
    height: auto;
  }

  /* Офіси */
  .branches-grid {
    flex-direction: column;
    width: 100%;
    gap: 30px;
  }

  .branch-card {
    width: 100%;
  }

  .branch-image iframe {
    height: 200px;
  }

  .branch-address,
  .branch-working-hours {
    font-size: 16px;
  }

  .branch-button {
    font-size: 14px;
  }

  /* Контакти */
  .contact-section {
    width: 100%;
    padding: 30px 15px;
  }

  #contact-box {
    width: 100%;
    padding: 20px;
  }

  .contact-title {
    font-size: 24px;
  }

  .contact-info {
    font-size: 16px;
  }

  #social-media-title {
    font-size: 24px;
    margin: 40px 0 20px 0;
  }

  .social-buttons {
    justify-content: center;
    align-items: center;
  }

  .social-btn {
    width: 160px;
    height: 160px;
    margin-bottom: 20px;
  }

  .btn-img {
    width: 100%;
    height: 100%;
  }

  /* Футер */
  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-text {
    position: relative;
    flex: none;
    text-align: center;
    margin-bottom: 20px;
  }

  .footer-logos {
    justify-content: center;
  }

  .footer-logos img {
    height: 40px;
  }
}

/*Мобільна версія сайту (для смартфонів Samsung) ---------------------------------------------------------------------------------------------*/

@media (max-width: 420px) {

    .slide-card-constitution-text{
        font-size: 10px;
        width: 300px;
    }

  .logo {
    max-width: 60px;
  }

  .gif-overlay-text h1 {
    font-size: 14px;
  }

  .gif-overlay-text p {
    font-size: 14px;
  }

  .slide-card {
    padding: 30px 15px;
    font-size: 18px;
  }

  .slide-card-title {
    font-size: 16px;
  }

  .slide-card-constitution-number {
    font-size: 26px;
  }

  .slider-arrow {
    font-size: 28px;
    padding: 5px 10px;
  }

  .branches-title,
  .contact-title,
  #social-media-title {
    font-size: 20px;
  }

  .branches-grid {
    width: 100%;
    gap: 20px;
  }

  .branch-card {
    padding: 15px;
  }

  .branch-address,
  .branch-working-hours {
    font-size: 14px;
  }

  .branch-button {
    padding: 8px 16px;
    font-size: 13px;
  }

  .contact-info {
    font-size: 14px;
    line-height: 1.4;
  }

  #contact-box {
    width: 100%;
    padding: 15px;
  }

  .social-btn {
    width: 80px;
    height: 80px;
    font-size: 10px;
  }

  .btn-img {
    width: 80px;
    height: 80px;
  }

  .service-card {
    padding: 15px;
  }

  .footer-text {
    font-size: 12px;
    margin-bottom: 15px;
  }

  .footer-logos img {
    height: 30px;
  }
}

@media (max-width: 600px) {

    #solutions-disclaimer{
        width: 300px;
        font-size: 10px;
    }
  .services-grid {
    grid-template-columns: 1fr !important;
  }

  .service-card,
  .branch-card,
  .contact-section,
  #contact-box {
    width: 100% !important;
  }

  .footer-logos img {
    height: 40px;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-text {
    position: static;
    text-align: center;
    margin: 10px 0;
  }

  .footer-logos {
    justify-content: center;
  }

  .branches-grid {
    flex-direction: column;
    width: 100%;
  }

  .branch-card {
    width: 100% !important;
  }

}

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');