/*
Theme Name: gto
Theme URI: https://geotechnicagto.ru/
Author: Ilya Shanidze
Description: "Геотехническое обоснование строительства в СПб" тема для WordPress с Bootstrap
Version: 1.0
*/

/* GraphikLCG Regular */
@font-face {
  font-family: 'Graphik';
  src: url('assets/fonts/GraphikLCG_Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* GraphikLCG Medium */
@font-face {
  font-family: 'Graphik-M';
  src: url('assets/fonts/GraphikLCG_Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* CoFo Display Bold */
@font-face {
  font-family: 'CoFo';
  src: url('assets/fonts/cofosans-regular.woff2') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html, body {
  overflow-x: hidden; /* Запрещает скролл вправо на уровне браузера */
  position: relative;
  width: 100%;
}

.container, .container-fluid {
  overflow: hidden; /* Обрезает вылеты внутри контейнеров */
}

/* --- 1. ТИПОГРАФИКА (ОБЩЕЕ) --- */
body, p, label, strong, b, td strong, p strong, a strong, li strong, strong a, .form-label {
  font-family: 'Graphik', sans-serif;
  font-style: normal;
  font-size: 18px;
  line-height: 1.66;
}


h1, h2, h3, h4, h5, h6 {
  text-transform: uppercase;
  font-family: "CoFo", sans-serif;
  color: #1b3472;
}

h1 { font-size: 3.1rem; }
h2 { font-size: 2rem; }

a, a:hover { text-decoration: none; }

/* О компании */


/* Стили для скругления картинок */
.rounded-5 {
  border-radius: 2rem !important;
}

/* Основные настройки стиля */

:root {
  --primary-blue: #0046fe; /* Тот самый синий из скринов */
  --light-gray: #f8f9fa;
}

/* Карточки без рамок, только с тенью */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 3rem rgba(0,0,0,.1) !important;
}

/* Иконки в стиле минимализма */
.icon-box {
  font-size: 2.5rem;
  background: var(--light-gray);
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  margin: 0 auto;
}

/* Акценты для кнопок */
.btn-primary {
  background-color: var(--primary-blue);
  border: none;
  font-weight: 500;
}

.badge {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
  padding: 0.5em 1em;
}



/* --- МЕНЮ --- */

/* Уменьшаем логотип на мобильных */
@media (max-width: 576px) {
  .logo { height: 32px !important; }
  .brand-text .fw-bold { font-size: 1rem !important; }
  .container { padding-left: 10px; padding-right: 10px; }
}

/* Стили бургера, если они вдруг ломаются */
.hamburger {
  width: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
}

/* Ограничиваем высоту шапки на больших экранах */
@media (min-width: 992px) {
  .custom-nav {
      height: 50px;
      display: flex;
      align-items: center;
  }
  /* Подгоняем логотип под высоту 50px */
  .custom-nav .navbar-brand img {
      max-height: 35px; 
      width: auto;
  }
}

/* Градиентный фон меню */
.custom-nav {
transition: all 0.3s ease;
backdrop-filter: blur(10px);
}

/* Стилизация ссылок меню */
.custom-nav .nav-link {
font-weight: 500;
transition: color 0.3s ease;
color: rgba(32, 32, 32, 0.9) !important;
}

.custom-nav .nav-link:hover {
  color: #1900f8 !important;
}

/* Анимация мобильного меню (снизу вверх) */
@media (max-width: 991.98px) {
.navbar-collapse {
    position: relative;
    background: #273F5B;
    margin-top: 10px;
    padding: 0px 20px; /* Убираем вертикальный паддинг по умолчанию */
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    
    /* Исправляем конфликт отображения */
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}

/* Когда меню открыто */
.navbar-collapse.show {
    padding: 20px;
    animation: slideInUp 0.4s ease-out;
}
}

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

/* Кнопка в мобилке */
@media (max-width: 991.98px) {
.navbar-collapse .btn {
    margin-top: 15px;
    width: 100%;
    text-align: center;
}
}

/* --- КОНЕЦ МЕНЮ --- */

video.img-fluid {
  object-fit: cover; /* Видео будет заполнять весь блок, как качественное фото */
  display: block;
}

/* Фоновая секция с инженерной сеткой */
.gto-services-dark {
  background-color: #1a3a8a; /* Глубокий синий */
  background-image: 
      linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px; /* Размер клетки сетки */
  position: relative;
  overflow: hidden;
}

/* Эффект свечения под сеткой (опционально) */
.gto-services-dark::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(50, 98, 241, 0.2) 0%, transparent 80%);
  pointer-events: none;
}

/* Стили карточек внутри темного блока */
.gto-services-dark .card-custom {
  background: rgba(255, 255, 255, 1); /* Чисто белые карточки для контраста */
  border: none;
  transition: transform 0.3s ease;
}

.gto-services-dark h2 {
  color: #ffffff;
}

/* --- ТЕКСТ --- */
.text-bb {
  color: #0046fe;
}
/* --- 3. КНОПКИ И ЭЛЕМЕНТЫ --- */
.money {
  font-family: "CoFo", serif;
  padding: 18px;
  background: linear-gradient(45deg, #0046fe, #048bff);
  color: #fdf5e6; /* Легкая охра */
  width: 260px;
  max-width: 95%;
  border-radius: 14px;
  box-shadow: 0px 10px 20px rgba(39, 63, 91, 0.3);
  font-size: 18px;
  font-weight: 600;
  display: block;
  margin: 0 3px 3px 0;
  text-align: center;
  text-decoration: none;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.money:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0px 12px 25px rgba(39, 63, 91, 0.5);
}

/* Эффект постоянного блика */
.money::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
      to right, 
      rgba(255, 255, 255, 0) 0%, 
      rgba(255, 255, 255, 0.4) 50%, 
      rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  
  /* Анимация: название, длительность, тип, повторение */
  animation: flash-infinite 3s ease-in-out infinite;
}

@keyframes flash-infinite {
  0% {
      left: -100%;
  }
  /* Блик пробегает быстро (до 30%), а остальное время "отдыхает" */
  30% {
      left: 150%;
  }
  100% {
      left: 150%;
  }
}
/* --- Конец КНОПКИ И ЭЛЕМЕНТЫ --- */


/* Позиционирование карточки на фото */

.gto-card {
  position: absolute;
  right: 25px;
  width: 320px;
  max-width: calc(100% - 50px); /* Чтобы всегда оставался зазор по бокам */
  z-index: 10;
}

/* Адаптивность для мобильных */
@media (max-width: 576px) {
  .gto-card {
      position: relative;
      right: auto; /* Сбрасываем правый отступ */
      margin: -30px auto 0; /* Центрируем и делаем наезд на фото */
      width: 95%; /* Занимает почти всю ширину контейнера */
      max-width: 100%;
      border-radius: 15px !important;
  }
}

/* Эффект Fade Up */
.fade-up-element {
  animation: fadeUp 1s ease-out forwards;
  opacity: 0;
}

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

/* --- Конец карточки фотки --- */


.wp-block-image img, iframe { border-radius: 25px; }
iframe { border-radius: 20px; } /* Переопределяет если нужно */


/* --- Карточки --- */
.transition-hover {
  transition: all 0.3s ease;
}
.transition-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 1rem 3rem rgba(0,0,0,.1) !important;
}
/* --- Конец карточки --- */

/* --- ЛАЙК --- */
.like-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.like-btn i {
  font-size: 1.4rem;
  color: #262626; /* Цвет как в инсте */
  transition: color 0.3s ease, cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Когда лайк нажат */
.like-btn.is-active i {
  color: #ed4956; /* Красный инстаграм */
}

.like-count {
  font-size: 1rem;
  font-weight: 400; /* Обычная толщина */
  color: #262626;
}

/* --- КОНЕЦ ЛАЙК --- */

/* --- 6. АДАПТИВНОСТЬ (MEDIA QUERIES) --- */
@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 2rem; }
  .logo { height: 30px; }
  #sert .img-fluid { max-width: 100%; height: auto; }
}

img { 
  max-width: 100%;
  pointer-events: none;      /* Вот это отключает клики и наведение */
  user-select: none;         /* Запрещает выделение */
  -webkit-user-drag: none;   /* Запрещает перетаскивание */
}

/* Уникальный контейнер GTO */
.gto-cube-wrapper {
  width: 250px;
  height: 250px;
  perspective: 1000px;
  margin: 40px auto;
  pointer-events: none; /* Чтобы нельзя было взаимодействовать, как ты просил */
}

.gto-cube-body {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: gto-rotate-logic 12s infinite linear;
}

.gto-cube-face {
  position: absolute;
  width: 200px;
  height: 200px;
  /* Градиент имитирует расчетную сетку напряжений (от синего к красному) */
  background: radial-gradient(circle at 70% 30%, #ff4d00 0%, #3262f1 60%, #001a66 100%);
  /* Наложение мелкой сетки */
  background-image: 
    linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px),
    radial-gradient(circle at 70% 30%, rgba(255, 77, 0, 0.8) 0%, rgba(50, 98, 241, 0.9) 60%, rgba(0, 26, 102, 1) 100%);
  background-size: 20px 20px, 20px 20px, 100% 100%;
  
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

/* Позиционирование граней */
.gto-face-front  { transform: translateZ(100px); }
.gto-face-back   { transform: rotateY(180deg) translateZ(100px); }
.gto-face-right  { transform: rotateY(90deg) translateZ(100px); }
.gto-face-left   { transform: rotateY(-90deg) translateZ(100px); }
.gto-face-top    { transform: rotateX(90deg) translateZ(100px); }
.gto-face-bottom { transform: rotateX(-90deg) translateZ(100px); }

/* Плавная анимация вращения */
@keyframes gto-rotate-logic {
  0% { transform: rotateX(0deg) rotateY(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

hr.dotted {
  border: none;
  border-top: 2px dotted #3262f1; /* Стиль dotted */
  height: 0;
  opacity: 0.3;
}

/* Делаем переключение слайдов плавным (Fade эффект вместо скролла) */
.carousel-item {
  transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

/* Кнопки управления */
.btn-outline-primary.rounded-circle {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: #3262f1;
  color: #3262f1;
}

.btn-outline-primary.rounded-circle:hover {
  background-color: #3262f1;
  color: white;
}

/* Фикс высоты изображений, чтобы слайдер не дергался */
.carousel-item img {
  height: 350px;
  object-fit: cover;
}

@media (max-width: 991px) {
  .carousel-item img {
      height: auto;
  }
}

/* Кнопки навигации (стрелочки) */
.gto-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #3262f1;
  background: transparent;
  color: #3262f1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

.gto-nav-btn:hover {
  background-color: #3262f1;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(50, 98, 241, 0.2);
}

/* Настройка карусели для плавности */
.carousel-item {
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Добавляем пространство для текста на больших экранах */
@media (min-width: 992px) {
  .ps-lg-5 {
      padding-left: 3rem !important;
  }
}

/* Стиль галочки (Badge) */
.badge.bg-primary.rounded-circle {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

/* Эффект для превью лицензий */
.gto-cert-link {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.gto-cert-link:hover {
  transform: translateY(-5px);
}

.gto-cert-link img {
  filter: grayscale(10%); /* Легкий эффект строгости */
  transition: filter 0.3s ease;
}

.gto-cert-link:hover img {
  filter: grayscale(0%);
}

/* Акцентная полоса на карточках текста */
.border-primary {
  border-color: #3262f1 !important;
}

.nav-icon-box {
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s;
}

.nav-icon-box:hover {
  background-color: #e9ecef !important;
}

/* Стиль всплывающего уведомления */
.copy-tooltip {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #3262f1;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.copy-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #3262f1 transparent transparent transparent;
}

.copy-tooltip.show {
  opacity: 1;
  visibility: visible;
  top: -45px;
}

/* Фиксируем визуальный баланс иконок */
.align-items-start img {
  max-width: 100px; /* Ограничиваем размер иконки */
  width: 100%;
  height: auto;
}

/* На мобильных устройствах немного уменьшаем заголовки услуг */
@media (max-width: 768px) {
  .h4 {
      font-size: 1.15rem !important;
  }
  .text-secondary {
      font-size: 0.9rem;
  }
}

/* Базовые стили десктопных кнопок (уже есть, убедись что d-md-flex применен) */
.gto-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid #3262f1;
  background: white;
  color: #3262f1;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* Стили мобильной стрелки */
.gto-nav-btn-mobile {
  background: #3262f1;
  color: white;
  border: none;
  border-radius: 30px; /* Делаем форму пилюли */
  padding: 8px 16px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(50, 98, 241, 0.2);
  transition: background-color 0.2s;
}

.gto-nav-btn-mobile:active {
  background-color: #264bbd;
  transform: scale(0.95);
}

.gto-nav-btn-mobile span {
  font-size: 0.75rem;
  letter-spacing: 1px;
}