@import url(font.css);

/*@import "tailwindcss";*/

/*@theme {
  --font-helvetica: 'Helvetica', sans-serif;
  --breakpoint-xlDesktop: 1441px;
  --breakpoint-desktop: 1280px;
  --breakpoint-lgDesktop: 1160px;
  --breakpoint-smDesktop: 1024px;
  --breakpoint-xlTablet: 960px;
  --breakpoint-lgTablet: 860px;
  --breakpoint-tablet: 768px;
  --breakpoint-mobile: 640px;
  --breakpoint-xsMobile: 520px;
  --breakpoint-mini: 460px;
  --breakpoint-xs: 400px;
  --breakpoint-sm: 360px;
}*/

:root {
    
  /* ОБЩИЙ МАСШТАБ ВСЕГО ЛОГОТИПА */
  --logo-scale: 1.2;
  
  /* БАЗОВЫЕ РАЗМЕРЫ В ПИКСЕЛЯХ (фиксированные пропорции) */
  --base-logo-width: 600px;
  --base-logo-height: 200px;
  
  /* РАЗМЕРЫ ЧАСТЕЙ (в пикселях, фиксированные пропорции) */
  --part1-size: 150px;
  --part2-height: 90px;
  --part3-height: 30px;
  
  /* РАССТОЯНИЯ (в пикселях, фиксированные) */
  --gap-between-parts: 35px;
  --gap-between-text: 0px;
  --text-block-width: 400px;
}

html,
body {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

body {
  overflow-x: hidden;
}

button {
  cursor: pointer;
}

.wrapper {
  position: relative;
  overflow-x: hidden;
}

.section-padding {
  box-sizing: border-box;
  padding-left: 48px;
  padding-right: 48px;
}

.input-field {
  border-radius: 10px;
  padding: 10px;
  width: 100%;
  height: 40px;
  background: rgba(217, 217, 217, 0.2);
  font-family: 'Helvetica', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  color: #000;
}

.input-field:focus {
  outline: #bd5544;
  border: 2px solid #bd5544;
}

.form-btn {
  border-radius: 100px;
  padding: 15px 30px;
  width: 100%;
  height: 40px;
  background: #cc4d3d;
  font-family: 'Helvetica', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 100%;
  text-align: center;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s ease;
}

.form-btn:hover {
    background: #b83625;
}

.wpcf7-not-valid-tip {
  border: 2px solid #bd5544;
  border-radius: 20px;
  box-sizing: border-box;
  padding: 2px 5px;
  margin-top: 5px;
}

/* ОСНОВНОЙ КОНТЕЙНЕР ЛОГОТИПА */
.logo-container {
  position: relative;
  z-index: 3;
  width: calc(var(--base-logo-width) * var(--logo-scale));
  height: calc(var(--base-logo-height) * var(--logo-scale));
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Внутренняя обертка */
.logo-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Десктопная раскладка */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: calc(var(--gap-between-parts) * var(--logo-scale));
  width: 100%;
  height: 100%;
  opacity: 0;
}

/* Блок для текстовых частей */
.logo-text-block {
  display: flex;
  flex-direction: column;
  gap: calc(var(--gap-between-text) * var(--logo-scale));
  width: calc(var(--text-block-width) * var(--logo-scale));
  flex-shrink: 0;
}

/* Общий стиль для частей логотипа */
.logo-part {
  position: relative;
  overflow: hidden; /* КЛЮЧЕВОЕ СВОЙСТВО ДЛЯ ЭФФЕКТА МАСКИ */
}

/* Часть 1 (шестигранник/символ) */
.part1 {
  flex: 0 0 auto;
  width: calc(var(--part1-size) * var(--logo-scale));
  height: calc(var(--part1-size) * var(--logo-scale));
  cursor: default;
}

/* Часть 2 (название) и часть 3 (подпись) */
.part2,
.part3 {
  width: 100%;
  position: relative;
}

.part2 {
  height: calc(var(--part2-height) * var(--logo-scale));
}

.part3 {
  height: calc(var(--part3-height) * var(--logo-scale));
}

/* Изображения SVG внутри логотипа */
.logo-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  will-change: transform, opacity; /* Оптимизация анимации */
}

/* Начальное состояние для всех SVG */
.part1 .logo-svg,
.part2 .logo-svg,
.part3 .logo-svg {
  opacity: 0;
  transform: translateY(60px); /* Начальная позиция внизу */
}

/* Для первой части SVG - сохраняем пропорции */
.part1 .logo-svg {
  aspect-ratio: 1 / 1;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Индикатор скролла */
.scroll-indicator {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0;
  cursor: default;
}

/* Мышка с анимацией */
.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  position: relative;
  animation: mouse-float 2s ease-in-out infinite;
}

/* Колёсико мышки */
.wheel {
  width: 4px;
  height: 10px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheel-scroll 1.5s ease-in-out infinite;
}

/* Кнопка возврата наверх */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  outline: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

/* Стрелка вверх */
.arrow-up {
  position: relative;
  width: 20px;
  height: 20px;
}

.arrow-up::before,
.arrow-up::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
}

.arrow-up::before {
  width: 14px;
  height: 2px;
  top: 70%;
  left: 0;
  transform: translateY(-50%) rotate(-45deg);
  transform-origin: left center;
}

.arrow-up::after {
  width: 14px;
  height: 2px;
  top: 70%;
  right: 0;
  transform: translateY(-50%) rotate(45deg);
  transform-origin: right center;
}

/* ===================== АНИМАЦИИ ===================== */

/* Плавающее движение мышки */
@keyframes mouse-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Движение колёсика */
@keyframes wheel-scroll {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(15px); opacity: 0; }
}

/* Анимация для стрелки */
@keyframes arrow-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.arrow-up {
  animation: arrow-float 2s ease-in-out infinite;
}

@media (max-width: 1200px) {
  :root { --logo-scale: 0.9; }
}

@media (max-width: 992px) {
  :root { --logo-scale: 0.8; }
}

@media (max-width: 768px) {
  :root { --logo-scale: 0.7; }
    
  .logo-wrapper {
    flex-direction: column;
    gap: calc(var(--gap-between-parts) * 0.8 * var(--logo-scale));
  }
    
  .logo-text-block {
    align-items: center;
  }
    
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  :root { --logo-scale: 0.6; }
    
  .mouse {
    width: 25px;
    height: 40px;
  }
    
  .wheel {
    width: 3px;
    height: 8px;
  }
}

@media (max-width: 360px) {
  :root { --logo-scale: 0.5; }
}

/* Поддержка prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-indicator,
  .mouse,
  .wheel,
  .part1 .logo-svg,
  .arrow-up {
      animation: none !important;
      transition: none !important;
  }
}