﻿:root {
  --main-color: #1A365D;
  --secondary-color: #718096;
  --bg-color: #FFFFFF;
  --secondary-bg-color: #E2E8F0;
  --accent-color: #E53E3E;

  --font-text: "Roboto", sans-serif
}

*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--main-color);
  font-family: var(--font-text);
  line-height: 1.2;
  background-color: var(--bg-color);
}

h1 {
  margin: 0;
  padding: 0;
}

h2 {
  margin: 0;
  padding: 0;
}

h3 {
  margin: 0;
  padding: 0;
}

h4 {
  margin: 0;
  padding: 0;
}

h5 {
  margin: 0;
  padding: 0;
}

h6 {
  margin: 0;
  padding: 0;
}

p {
  margin: 0;
  padding: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  font-family: inherit;
  font-size: inherit;
  background: none;
  cursor: pointer;
}

input {
  font-family: inherit;
  font-size: inherit;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(26, 54, 93, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 2px solid var(--accent-color);
}

.header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}


.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo__icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-color) 0%, #ff6b6b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.logo__icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.logo:hover .logo__icon::before {
  left: 100%;
}

.logo__icon i {
  color: white;
  font-size: 20px;
}

.logo__text {
  font-size: 24px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.5px;
}


.header__nav {
  display: flex;
}

.nav__list {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav__link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 16px;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav__link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav__link:hover,
.nav__link--active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.nav__link:hover::before,
.nav__link--active::before {
  width: 100%;
}


.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--accent-color);
  color: white;
  border: 2px solid var(--accent-color);
}

.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn--primary:hover::before {
  left: 100%;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(229, 62, 62, 0.3);
}


.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger__line {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.burger.active .burger__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active .burger__line:nth-child(2) {
  opacity: 0;
}

.burger.active .burger__line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


.footer {
  background: var(--main-color);
  color: white;
  margin-top: 70px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color) 0%, #ff6b6b 50%, var(--accent-color) 100%);
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 20px;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__brand {
  max-width: 350px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer__logo .logo__icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
}

.footer__logo .logo__text {
  font-size: 28px;
}

.footer__slogan {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  font-size: 16px;
}

.footer__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.footer__title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-color);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  padding: 4px 0;
}

.footer__link:hover {
  color: var(--accent-color);
  padding-left: 8px;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.contact__item i {
  width: 20px;
  color: var(--accent-color);
  font-size: 16px;
}

.contact__item:hover {
  color: var(--accent-color);
}

.social__links {
  display: flex;
  gap: 16px;
}

.social__link {
  width: 45px;
  height: 45px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social__link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-color);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.social__link i {
  position: relative;
  z-index: 2;
  font-size: 18px;
}

.social__link:hover {
  border-color: var(--accent-color);
  color: white;
}

.social__link:hover::before {
  transform: translateY(0);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copyright p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.footer__legal {
  display: flex;
  gap: 30px;
}

.legal__link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: color 0.3s ease;
}

.legal__link:hover {
  color: var(--accent-color);
}


@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(26, 54, 93, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .header__nav.active {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .nav__link {
    font-size: 20px;
    padding: 15px 30px;
  }

  .burger {
    display: flex;
  }

  .btn {
    display: none;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer__brand {
    max-width: none;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer__legal {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .header__container {
    padding: 0 15px;
  }

  .logo__text {
    font-size: 20px;
  }

  .logo__icon {
    width: 35px;
    height: 35px;
  }

  .footer__container {
    padding: 40px 15px 15px;
  }

  .social__links {
    justify-content: center;
  }
}

@media (max-width: 768px) {

  .footer__logo,
  .contact__item {
    justify-content: center;
    text-align: center;
  }

  .footer__title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

.body-no-scroll {
  overflow: hidden !important;
}

.header-scrolled {
  background: rgba(26, 54, 93, 0.98) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
}

.header-normal {
  background: rgba(26, 54, 93, 0.95) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.logo-rotate-360 {
  transform: rotateY(360deg) !important;
  transition: transform 0.6s ease !important;
}

.logo-rotate-0 {
  transform: rotateY(0deg) !important;
  transition: transform 0.6s ease !important;
}

.footer-element-hidden {
  opacity: 0 !important;
  transform: translateY(30px) !important;
  transition: opacity 0.6s ease, transform 0.6s ease !important;
}

.footer-element-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.social-link-hover {
  transform: translateY(-3px) scale(1.1) !important;
}

.social-link-normal {
  transform: translateY(0) scale(1) !important;
}

@media (max-width: 480px) {
  .header__container {
    padding: 0 15px;
  }

  .logo__text {
    font-size: 20px;
  }

  .logo__icon {
    width: 35px;
    height: 35px;
  }

  .footer__container {
    padding: 40px 15px 15px;
  }

  .social__links {
    justify-content: center;
  }
}

@media (max-width: 768px) {

  .footer__logo,
  .contact__item {
    justify-content: center;
    text-align: center;
  }

  .footer__title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}