@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
* {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}
html,
body {
  margin: 0px;
  height: 100%;
}
/* a blue color as a generic focus style */
button:focus-visible {
  outline: 2px solid #4a90e2 !important;
  outline: -webkit-focus-ring-color auto 5px !important;
}
a {
  text-decoration: none;
}

/* Additional global styles */
:root {
  --primary-color: #333333;
  --background-color: #fcfcfc;
  --border-color: #d0d0d0;
}

body {
  font-family: "Vela Sans", Helvetica, Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--primary-color);
}

img {
  max-width: 100%;
  height: auto;
}

.screen {
  max-width: 1512px;
  margin: 0 auto;
  padding: 0 20px;
}

@font-face {
  font-family: "Vela Sans";
  src: url("/static/core/fonts/VelaSans-Regular.woff2") format("woff2"),
    url("/static/core/fonts/VelaSans-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Vela Sans";
  src: url("/static/core/fonts/VelaSans-Medium.woff2") format("woff2"),
    url("/static/core/fonts/VelaSans-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Vela Sans";
  src: url("/static/core/fonts/VelaSans-SemiBold.woff2") format("woff2"),
    url("/static/core/fonts/VelaSans-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Vela Sans";
  src: url("/static/core/fonts/VelaSans-Light.woff2") format("woff2"),
    url("/static/core/fonts/VelaSans-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
}

/* Анимация подчеркивания */
.highlight {
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #333;
    transition: width 0.3s ease;
}

.highlight.visible::after {
    width: 100%;
}

/* Общие стили для кнопок */
.button, .project-link {
    transition: all 0.3s ease;
}

.button:hover, .project-link:hover {
    background-color: #333;
    color: #f8f8f8;
    border-color: #333;
}

/* Header styles */
.header {
    border-bottom: 1px solid #d0d0d0;
    padding: 20px 0;
    margin-bottom: 20px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1374px;
    margin: 0 auto;
    padding: 0 40px 0 20px; /* Увеличили отступ слева для лого */
}

.nav-logo {
    margin-right: 30px; /* Сдвигаем лого ближе к левому краю */
}

.nav-logo img {
    width: 93px;
    height: auto;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-links {
    display: flex;
    flex: 1;
    justify-content: space-around;
}

.nav-link {
    font-size: 25px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    position: relative;
    padding: 10px 15px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center;
    display: inline-block;
}

.nav-link:hover {
    color: #555;
    transform: scale(1.1);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-link.active {
    font-weight: 600;
}

/* Исправленное подчеркивание активной ссылки */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 15px;
    right: 15px;
    height: 2px;
    background-color: #333;
    border-radius: 2px;
    transform: scaleX(1); /* Изменили с 0 на 1 */
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.15);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Адаптивность */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .nav-logo {
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .nav-links {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .nav-link {
        padding: 8px 10px;
        font-size: 20px;
    }
    
    .nav-link:hover {
        transform: scale(1.05);
    }
    
    .nav-logo:hover img {
        transform: scale(1.08);
    }

    .nav-link.active::after {
        bottom: -3px;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        padding: 0 15px;
    }
    
    .nav-logo {
        margin-right: 0;
        margin-bottom: 12px;
        text-align: center;
    }
    
    .nav-logo img {
        width: 80px; /* Немного уменьшил лого */
    }
    
    .nav-links {
        width: 100%;
        flex-wrap: nowrap; /* Чтобы кнопки оставались в один ряд */
        justify-content: space-between; /* Равномерное распределение */
        gap: 5px; /* Минимальный отступ между кнопками */
    }
    
    .nav-link {
        padding: 6px 8px;
        font-size: 16px; /* Уменьшил размер шрифта */
        white-space: nowrap; /* Чтобы текст не переносился */
    }
    
    .nav-link:hover {
        transform: scale(1.03); /* Меньший эффект при наведении */
    }
    
    .nav-link.active::after {
        bottom: -6px;
        left: 8px;
        right: 8px;
        height: 1.5px;
    }
    
    .nav-logo:hover img {
        transform: scale(1.05); /* Меньший эффект при наведении */
    }

    .nav-link.active::after {
        bottom: -3px;
    }
}

/* Footer styles */
.footer {
    max-width: calc(100% - 200px);
    margin: 0 auto;
    padding: 30px 0;
    text-align: center;
}

.footer .footer-line {
    border: none;
    border-top: 1px solid #333;
    margin: 0 auto 20px;
    width: 100%;
    max-width: none; /* Переопределяем возможные ограничения */
    box-sizing: border-box; /* Учитываем padding родителя */
}

.footer-text {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .footer {
        max-width: calc(100% - 40px); /* Уменьшаем боковые отступы */
        padding: 20px 0; /* Уменьшаем вертикальные отступы */
    }
    
    .footer-text {
        font-size: 13px; /* Немного уменьшаем шрифт */
    }
}

@media (max-width: 480px) {
    .footer {
        max-width: calc(100% - 30px); /* Еще меньше боковые отступы */
        padding: 15px 0;
    }
    
    .footer-text {
        font-size: 12px;
        line-height: 1.4;
    }
}


@media (min-width: 1201px) {
    body {
        zoom: 0.8; /* Эффект 80% масштаба */
    }
}