/* header.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #0a1428 0%, #1a2744 100%);
  color: #e8e8e8;
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

.clickable {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.clickable:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

.clickable:hover::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: -1;
  animation: pulse 0.6s ease-out;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

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

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 20, 40, 0.95);
  backdrop-filter: blur(10px);
  padding: clamp(0.625rem, 2vw, 1.25rem);
  z-index: 1000;
  transition: transform 0.3s ease;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.header.hidden {
  transform: translateY(-100%);
}

.header-content {
  max-width: 75rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(0.9375rem, 2.5vw, 1.25rem);
}

.profile-photo {
  width: clamp(4.375rem, 6vw, 6.25rem);
  height: clamp(4.375rem, 6vw, 6.25rem);
  border-radius: 50%;
  border: 4px solid #ffd700;
  background: linear-gradient(45deg, #1a2744, #2a3a5a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.625rem, 2.25vw, 2.25rem);
  color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  margin: clamp(0.375rem, 0.625vw, 0.625rem) 0;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Убедимся, что логотип заполняет круг без искажений */
    border-radius: 50%; /* Сохраняем круглую форму */
}

.contact-icons {
  display: flex;
  gap: clamp(1.875rem, 4vw, 2.8125rem);
}

.contact-icons a {
  color: #d4af37;
  font-size: clamp(1.125rem, 1.5vw, 1.5rem);
  width: clamp(2.8125rem, 3.75vw, 3.75rem);
  height: clamp(2.8125rem, 3.75vw, 3.75rem);
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.contact-icons a:hover {
  color: #ffd700;
  background: rgba(255, 215, 0, 0.2);
  transform: scale(1.1);
}

.header-right {
  display: flex;
  align-items: center;
  gap: clamp(1.875rem, 2.5vw, 2.5rem);
}

.lang-select {
  position: relative;
}

.lang-toggle {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid #ffd700;
  color: #ffd700;
  padding: clamp(0.375rem, 0.625vw, 0.625rem) clamp(0.75rem, 1.125vw, 1.125rem);
  border-radius: 1.875rem;
  font-size: clamp(0.8125rem, 1vw, 1rem);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.lang-toggle:hover {
  background: rgba(255, 215, 0, 0.2);
}

.lang-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(10, 20, 40, 0.95);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 0.625rem;
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  z-index: 1000;
  min-width: clamp(8.75rem, 10vw, 10rem);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.lang-menu.show {
  display: block;
}

.lang-menu li {
  padding: clamp(0.5rem, 0.625vw, 0.625rem) clamp(0.75rem, 1vw, 1rem);
  color: #ffd700;
  cursor: pointer;
  transition: background 0.3s ease;
}

.lang-menu li a {
  text-decoration: none;
  color: #ffd700;
  display: block;
}

.lang-menu li:hover,
.lang-menu li a:hover {
  background: rgba(255, 215, 0, 0.2);
}

.hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: clamp(0.375rem, 0.5vw, 0.5rem);
}

.hamburger span {
  width: clamp(1.875rem, 2.5vw, 2.5rem);
  height: clamp(0.1875rem, 0.25vw, 0.25rem);
  background: #ffd700;
  margin: clamp(0.1875rem, 0.25vw, 0.25rem) 0;
  transition: 0.3s;
  border-radius: 0.25rem;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-8px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-7px, -8px);
}

.mobile-menu {
  position: fixed;
  top: clamp(5.625rem, 7.5vw, 7.5rem);
  right: -21.875rem;
  width: clamp(15rem, 17.5vw, 17.5rem);
  height: calc(100vh - clamp(5.625rem, 7.5vw, 7.5rem));
  background: rgba(10, 20, 40, 0.98);
  backdrop-filter: blur(15px);
  padding: clamp(0.9375rem, 1.875vw, 1.875rem);
  transition: right 0.3s ease;
  border-left: 1px solid rgba(255, 215, 0, 0.2);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  display: block;
  color: #d4af37;
  text-decoration: none;
  padding: clamp(0.75rem, 0.9375vw, 0.9375rem) 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
  font-size: clamp(1.1rem, 1.3vw, 1.3rem);
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: #ffd700;
}

/* Адаптивность */
@media (max-width: 768px) {
  .header {
    padding: clamp(0.5rem, 0.5vw, 0.5rem) 0;
  }

  .header-content {
    padding: 0 clamp(0.625rem, 0.9375vw, 0.9375rem);
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .profile-photo {
    width: clamp(3.125rem, 5vw, 5rem);
    height: clamp(3.125rem, 5vw, 5rem);
    font-size: clamp(1.875rem, 1.875vw, 1.875rem);
    margin: clamp(0.5rem, 0.5vw, 0.5rem) 0;
  }

  .contact-icons {
    gap: clamp(1.875rem, 3vw, 1.875rem);
  }

  .contact-icons a {
    width: clamp(2.1875rem, 3.125vw, 3.125rem);
    height: clamp(2.1875rem, 3.125vw, 3.125rem);
    font-size: clamp(1.25rem, 1.25vw, 1.25rem);
  }

  .header-right {
    gap: clamp(1.875rem, 1.875vw, 1.875rem);
  }

  .lang-toggle {
    padding: clamp(0.5rem, 0.5vw, 0.5rem) clamp(0.9375rem, 0.9375vw, 0.9375rem);
    font-size: clamp(0.875rem, 0.875vw, 0.875rem);
  }

  .hamburger {
    padding: clamp(0.375rem, 0.375vw, 0.375rem);
    z-index: 1001;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-8px, 8px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-7px, -6px);
  }

  .mobile-menu {
    top: clamp(6.25rem, 6.25vw, 6.25rem);
    right: -21.875rem;
    width: clamp(16.25rem, 16.25vw, 16.25rem);
    height: calc(100vh - clamp(6.25rem, 6.25vw, 6.25rem));
    background: rgba(10, 20, 40, 0.98);
    backdrop-filter: blur(15px);
    padding: clamp(1.25rem, 1.25vw, 1.25rem);
    transition: right 0.3s ease;
    border-left: 1px solid rgba(255, 215, 0, 0.2);
    z-index: 1000;
  }

  .mobile-menu.active {
    right: 0;
  }
}

@media (max-width: 480px) {
  .header {
    padding: clamp(0.375rem, 0.375vw, 0.375rem) 0;
  }

  .header-content {
    padding: 0 clamp(0.625rem, 0.625vw, 0.625rem);
  }

  .profile-photo {
    width: clamp(4.375rem, 4.375vw, 4.375rem);
    height: clamp(4.375rem, 4.375vw, 4.375rem);
    font-size: clamp(1.625rem, 1.625vw, 1.625rem);
    margin: clamp(0.375rem, 0.375vw, 0.375rem) 0;
  }

  .contact-icons a {
    width: clamp(2.8125rem, 2.8125vw, 2.8125rem);
    height: clamp(2.8125rem, 2.8125vw, 2.8125rem);
    font-size: clamp(1.125rem, 1.125vw, 1.125rem);
  }

  .lang-toggle {
    padding: clamp(0.375rem, 0.375vw, 0.375rem) clamp(0.75rem, 0.75vw, 0.75rem);
    font-size: clamp(0.8125rem, 0.8125vw, 0.8125rem);
  }

  .hamburger {
    padding: clamp(0.375rem, 0.375vw, 0.375rem);
    z-index: 1001;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-8px, 8px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-7px, -6px);
  }

  .mobile-menu {
    top: clamp(5.625rem, 5.625vw, 5.625rem);
    width: clamp(15rem, 15rem, 15rem);
    padding: clamp(0.9375rem, 0.9375vw, 0.9375rem);
  }
}
