:root {
    --gray:#5b5b5b;
    --orange:#d47a1c;
    --dark-gray:#333;
    --light-gray:#f5f5f5;
    --menu-gray: #444;
    --menu-light-gray: #555;
}

*{margin:0;padding:0;box-sizing:border-box;font-family:'Oswald','Arial Narrow',sans-serif;}

body{
    min-height:100vh;
    color:var(--dark-gray);
    overflow-x:hidden;
    background-color: var(--light-gray);
}

/* HERO СЕКЦИЯ С КАРТИНКОЙ */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: 
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.2)),
        url('/images/y.jpg') center center / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,.7);
    padding: 0 20px;
    overflow: hidden;
    padding-top: 120px; /* Отступ для хедера */
}

/* Анимированный заголовок */
.animated-title {
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.title-text {
    background: linear-gradient(90deg, #fff, var(--gray), #fff, var(--gray));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 3s linear infinite;
    display: inline-block;
}

.plus-sign {
    color: var(--orange);
    display: inline-block;
    margin-left: -15px; /* Сдвигаем плюс левее */
    animation: rotatePlus 5s linear infinite, pulse 2s ease-in-out infinite;
    font-size: 60px;
    font-weight: 400;
    position: relative;
    top: 12px; /* Опускаем плюс ниже */
    text-shadow: 0 0 10px rgba(212, 122, 28, 0.5);
}

@keyframes shine {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes rotatePlus {
    0% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        transform: rotate(180deg) scale(1);
    }
    75% {
        transform: rotate(270deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(212, 122, 28, 0.5);
    }
    50% {
        opacity: 0.8;
        text-shadow: 0 0 20px rgba(212, 122, 28, 0.8);
    }
}

/* Эффект свечения при наведении */
.animated-title:hover .plus-sign {
    animation: rotatePlus 2s linear infinite, pulse 1s ease-in-out infinite;
    text-shadow: 0 0 15px rgba(212, 122, 28, 1);
}

/* Индикатор прокрутки вниз */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    animation: bounce 2s infinite;
    z-index: 2;
}

.scroll-down::after {
    content: '↓';
    display: block;
    font-size: 24px;
    margin-top: 10px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ШАПКА С СЕРОЙ ЛИНИЕЙ */
.header{
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    background: transparent;
    transition: all 0.3s ease;
    border-bottom: none;
}

/* Затемнение при скролле */
.header.scrolled {
    height: 80px;
    top: 0;
    background-color: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    padding: 0;
}

.header-container{
    max-width: 1300px;
    margin: auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}

.logo-img{
    width: 320px;
    height: auto;
    display: block;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    position: relative;
    top: 0;
    left: 0;
}

/* Уменьшение лого при скролле */
.header.scrolled .logo-img {
    transform: none !important;
    position: relative;
    top: 0px;
    left: 0;
    width: 250px;
    transition: all 0.3s ease;
}

/* НАВИГАЦИЯ */
.nav-menu{
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link{
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
    text-shadow: 0 1px 3px rgba(0,0,0,.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: transparent;
    border-radius: 0px;
    border: 2px solid transparent;
    position: relative;
    display: inline-block;
    min-height: 44px;
    line-height: 1;
}

.nav-link:hover,
.nav-link.active {
    background: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 122, 28, 0.3);
    border-color: var(--orange);
    text-shadow: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.contact-btn{
    background: linear-gradient(135deg, var(--orange), #ff9c40);
    padding: 12px 24px;
    border: none !important;
    box-shadow: 0 4px 10px rgba(212, 122, 28, 0.4);
    position: relative;
    overflow: hidden;
}

.contact-btn::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: 0.5s;
}

.contact-btn:hover::before {
    left: 100%;
}

.contact-btn:hover{
    background: linear-gradient(135deg, #ff9c40, var(--orange));
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(212, 122, 28, 0.6);
    border: none !important;
}

/* Кнопка для перехода к услугам в hero-секции */
.hero-button {
    display: inline-block;
    margin-top: 30px;
    background: linear-gradient(135deg, var(--orange), #ff9c40);
    color: white;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 15px rgba(212, 122, 28, 0.4);
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.hero-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(212, 122, 28, 0.6);
    background: linear-gradient(135deg, #ff9c40, var(--orange));
}

/* Кнопка "Наверх" */
.scroll-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--orange), #ff9c40);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 122, 28, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #ff9c40, var(--orange));
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 122, 28, 0.6);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* Кнопка мобильного меню */
.mobile-menu-btn{
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
    width: 44px;
    height: 44px;
}

.mobile-menu-btn span{
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: 0.4s;
    box-shadow: 0 1px 3px rgba(0,0,0,.5);
    border-radius: 0px;
}

/* Оверлей для мобильного меню */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 999;
}

.nav-overlay.active {
    display: block;
}

body.menu-open {
    overflow: hidden;
}

/* Плавный скролл к якорям */
html {
    scroll-behavior: smooth;
}

/* ФИКС ДЛЯ УБРАНИЯ СЕРОГО ПИКСЕЛЯ НА ДЕСКТОПЕ */
@media (min-width: 901px) {
    .nav-link {
        background-color: transparent !important;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background-color: var(--orange) !important;
        background-image: none !important;
        border-color: var(--orange) !important;
    }
    
    .contact-btn {
        background: linear-gradient(135deg, var(--orange), #ff9c40) !important;
        border: none !important;
    }
    
    .contact-btn:hover {
        background: linear-gradient(135deg, #ff9c40, var(--orange)) !important;
        border: none !important;
    }
}

/* МОБИЛКА - ПЕРВЫЙ УРОВЕНЬ АДАПТИВНОСТИ */
@media(max-width: 1100px) {
    .logo-img {
        width: 280px;
    }
    
    .header.scrolled .logo-img {
        width: 220px;
    }
    
    .nav-menu {
        gap: 25px;
    }
    
    .nav-link {
        padding: 8px 16px;
        font-size: 15px;
    }
    
    .animated-title {
        font-size: 42px;
    }
    
    .plus-sign {
        font-size: 52px;
        top: 10px;
    }
}

/* МОБИЛКА - ВТОРОЙ УРОВЕНЬ (планшеты и телефоны) */
@media(max-width: 900px) {
    .header {
        top: 15px;
    }
    
    .logo-img {
        width: 240px;
    }
    
    .header.scrolled .logo-img {
        width: 180px;
    }
    
    .hero-section {
        height: 100vh;
        min-height: 500px;
        justify-content: flex-start;
        padding-top: 120px;
    }
    
    .hero-button {
        margin-top: 20px;
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .scroll-down {
        bottom: 20px;
    }
    
    .scroll-to-top {
        bottom: 30px;
        right: 30px;
        width: 45px;
        height: 45px;
    }
    
    .animated-title {
        font-size: 36px;
    }
    
    .plus-sign {
        font-size: 44px;
        top: 8px;
        margin-left: -12px;
    }
    
    /* Кнопка меню */
    .mobile-menu-btn{
        display: block;
        background: rgba(0, 0, 0, 0.4);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 0px;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-6px, 6px);
        background: var(--orange);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(45deg) translate(-6px, -6px);
        background: var(--orange);
    }
    
    /* Мобильное меню */
    .nav-menu{
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: linear-gradient(135deg, var(--menu-gray), var(--menu-light-gray));
        flex-direction: column;
        padding: 100px 25px 25px;
        gap: 15px;
        transition: .4s ease;
        z-index: 1000;
        margin: 0;
        box-shadow: -5px 0 25px rgba(0,0,0,0.7);
        border-left: 3px solid var(--orange);
    }
    
    .nav-menu.active{
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        font-size: 16px;
        padding: 18px 20px;
        border: 2px solid rgba(255,255,255,0.15);
        border-radius: 0px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        margin-bottom: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: rgba(212, 122, 28, 0.8);
        border-color: var(--orange);
        transform: translateY(-2px);
    }
    
    .nav-link.contact-btn {
        margin-top: 10px;
        background: linear-gradient(135deg, var(--orange), #ff9c40);
        border: none;
        padding: 20px 25px;
        font-size: 17px;
        font-weight: 700;
        margin-bottom: 0;
    }
    
    .nav-link.contact-btn:hover {
        background: linear-gradient(135deg, #ff9c40, var(--orange));
        transform: translateY(-2px) scale(1.02);
    }
    
    .header-container {
        padding: 0 20px;
        height: 65px;
    }
}

/* МОБИЛКА - ТРЕТИЙ УРОВЕНЬ (телефоны средние) */
@media(max-width: 768px) {
    .header {
        top: 10px;
    }
    
    .logo-img {
        width: 200px;
    }
    
    .header.scrolled .logo-img {
        width: 150px;
    }
    
    .hero-section {
        min-height: 400px;
        padding-top: 100px;
    }
    
    .hero-section p {
        font-size: 18px;
        margin-bottom: 20px;
        padding: 0 15px;
    }
    
    .hero-button {
        margin-top: 15px;
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .scroll-down {
        bottom: 15px;
        font-size: 12px;
    }
    
    .scroll-to-top {
        bottom: 25px;
        right: 25px;
        width: 40px;
        height: 40px;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
    
    .animated-title {
        font-size: 32px;
    }
    
    .plus-sign {
        font-size: 38px;
        top: 7px;
        margin-left: -10px;
    }
    
    .nav-menu {
        width: 260px;
        padding: 90px 20px 20px;
        gap: 12px;
    }
    
    .nav-link {
        padding: 16px 18px;
        font-size: 15px;
        margin-bottom: 6px;
    }
}

/* МОБИЛКА - ЧЕТВЕРТЫЙ УРОВЕНЬ (телефоны маленькие) */
@media(max-width: 480px) {
    .header {
        top: 8px;
    }
    
    .logo-img {
        width: 180px;
    }
    
    .header.scrolled .logo-img {
        width: 135px;
    }
    
    .hero-section {
        min-height: 350px;
        padding-top: 90px;
    }
    
    .hero-section h1 {
        margin-bottom: 10px;
    }
    
    .hero-section p {
        font-size: 16px;
        margin-bottom: 15px;
        line-height: 1.4;
    }
    
    .hero-button {
        margin-top: 10px;
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .scroll-down {
        bottom: 10px;
        font-size: 11px;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 35px;
        height: 35px;
    }
    
    .scroll-to-top svg {
        width: 18px;
        height: 18px;
    }
    
    .animated-title {
        font-size: 28px;
    }
    
    .plus-sign {
        font-size: 34px;
        top: 6px;
        margin-left: -8px;
    }
    
    .header-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .nav-menu {
        width: 240px;
        padding: 85px 18px 18px;
        gap: 10px;
    }
    
    .nav-link {
        padding: 15px 16px;
        font-size: 15px;
        margin-bottom: 5px;
    }
    
    .nav-link.contact-btn {
        padding: 18px 20px;
        font-size: 16px;
    }
    
    .mobile-menu-btn {
        padding: 6px;
        width: 40px;
        height: 40px;
    }
    
    .mobile-menu-btn span {
        width: 24px;
        height: 2px;
    }
}

/* МОБИЛКА - ПЯТЫЙ УРОВЕНЬ (очень маленькие телефоны) */
@media(max-width: 360px) {
    .header {
        top: 5px;
    }
    
    .logo-img {
        width: 160px;
    }
    
    .header.scrolled .logo-img {
        width: 120px;
    }
    
    .hero-section {
        min-height: 320px;
        padding-top: 80px;
    }
    
    .hero-section h1 {
        font-size: 24px;
    }
    
    .hero-section p {
        font-size: 14px;
    }
    
    .hero-button {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .scroll-down {
        bottom: 8px;
        font-size: 10px;
    }
    
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
    }
    
    .scroll-to-top svg {
        width: 16px;
        height: 16px;
    }
    
    .animated-title {
        font-size: 24px;
    }
    
    .plus-sign {
        font-size: 30px;
        top: 5px;
        margin-left: -7px;
    }
    
    .header-container {
        padding: 0 10px;
    }
    
    .nav-menu {
        width: 220px;
        padding: 80px 15px 15px;
        gap: 8px;
    }
    
    .nav-link {
        padding: 14px 15px;
        font-size: 14px;
    }
    
    .nav-link.contact-btn {
        padding: 16px 18px;
        font-size: 15px;
    }
}