html {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Courier New', Courier, monospace, sans-serif;
    font-size: 14px;
    color: #2d3033;
    background-color: #fff;
    position: relative;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6,
ul, ol {
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: visible;
}

.cf:before, .cf:after {
    content: " ";
    display: table;
}
.cf:after {
    clear: both;
}
.cf {
    *zoom: 1;
}

/* Header */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 25px rgba(0,0,0,0.1);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 3px solid #ffdd10;
}

.header__logo {
    font-size: 26px;
    font-weight: 800;
    color: #34495e;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Menu */
.menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.menu > li {
    position: relative;
    background: linear-gradient(135deg, #34495e, #2d3033);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(52,73,94,0.3);
    overflow: visible;
}
.menu > li:not([aria-haspopup="true"]) {
    margin-right: 8px;
}

.menu > li[aria-haspopup="true"] {
    margin-right: 8px;
}
.menu > li > a {
    display: block;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 24px;
    transition: all 0.4s ease;
    border-radius: 8px;
}

.menu > li:hover {
    background: linear-gradient(135deg, #ffdd10, #fff);
    box-shadow: 0 12px 35px rgba(255,221,16,0.4);
}

.menu > li:hover > a {
    color: #34495e;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(52,73,94,0.3);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    width: calc(100% + 50px);
    margin-top: 4px;
    background: linear-gradient(135deg, #34495e, #2d3033);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    list-style: none;
    z-index: 1000;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    border-radius: 8px;
}

.submenu li {
    border-radius: 1px solid rgba(255,255,255,0.1);
}

.submenu > li > a {
    padding: 14px 24px;
    font-size: 14px;
    transition: all 0.3s ease;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
    
}

.submenu > li:hover > a {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(52,73,94,0.3);
    color: #ffdd10;
    
}
.menu > li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    
}
/* Intro */
.intro {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(52,73,94,0.92), rgba(255,221,16,0.15)),
                url('Images/yellow-tools-frame-with-copy-space.png') no-repeat center / cover;
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
}

.intro__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.intro__title {
    margin-bottom: 80px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.1;
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 4px 4px 20px rgba(0,0,0,0.8);
    letter-spacing: 2px;
}
.intro p {
    color: #fff;
}
/* Marquee */
.marquee-container {
    display: flex;
    align-items: center;
    overflow: hidden;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    max-width: 90%;
    margin: 40px auto;
}

.marquee {
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.2;
    padding: 20px 0;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    animation: marquee 25s linear infinite;
}

.marquee::after {
    content: "Наши контакты: Андрей +7(991)110-2402 , Константин +7(989)579-5811";
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}


/* Section Headers */
.section__header {
    max-width: 1200px;
    margin: 0 auto 60px;
    text-align: center;
    padding: 80px 0 40px;
}

.section__title {
    font-size: clamp(40px, 6vw, 64px);
    padding: 25px;
    color: #2d3033;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ffdd10, #34495e);
}

.section__subtitle {
    font-size: 20px;
    color: #666;
    font-weight: 500;
    margin-top: 20px;
}

/* Works */
.works {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    justify-content: center;
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.works__item,
.works__item1 {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 350px;
    border: 4px solid transparent;
    background: #fff;
}

.works__item:hover,
.works__item1:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
    border-color: #ffdd10;
}

.works__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.works__item:hover .works__photo,
.works__item1:hover .works__photo {
    transform: scale(1.1);
}

.works__content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.95));
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 30px 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
}

.works__item:hover .works__content,
.works__item1:hover .works__content {
    opacity: 1;
}

.works__title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.works__text {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 600;
}

/* Features - 2 колонки */
.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.features__header {
    grid-column: 1 / -1;
    text-align: center;
    font-size: clamp(40px, 6vw, 64px);
    color: #34495e;
    font-weight: 900;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 30px 0;
}

.features__item {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255,255,255,0.9);
    border-radius: 25px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.12);
    border: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    position: relative;
}

.features__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffdd10, #34495e);
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
}

.features__item:hover {
    transform: translateY(-15px);
    border-color: #ffdd10;
    box-shadow: 0 25px 60px rgba(255,221,16,0.25);
}

.features__icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ffdd10, #fff);
    border: 5px solid #34495e;
    border-radius: 50%;
    margin: 0 auto 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 35px rgba(52,73,94,0.35);
    transition: all 0.4s ease;
}

.features__item:hover .features__icon {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 20px 50px rgba(255,221,16,0.5);
}

.features__icon img {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.features__subtitle {
    font-size: clamp(36px, 6vw, 52px);
    color: #34495e;
    font-weight: 900;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.features__title {
    font-size: 22px;
    color: #2d3033;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.features__text {
    font-size: 17px;
    color: #555;
    line-height: 1.8;
    font-weight: 500;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2d3033 0%, #1a1f26 100%);
    color: #fff;
}

.footer__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 80px 20px;
}

.footer__block {
    text-align: center;
}

.footer__title {
    margin-bottom: 25px;
    font-size: 16px;
    font-weight: 800;
    color: #ffdd10;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer__text {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
}

.copyright {
    padding: 30px 20px;
    background: #1a1f26;
    text-align: center;
    border-top: 2px solid #ffdd10;
}

.copyright__text {
    font-size: 14px;
    color: #ccc;
}

.copyright__text span {
    color: #ffdd10;
    font-weight: 700;
}
/* Button Up */
.footer-up {
    position: fixed;
    bottom: 35px;
    right: 30px;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    cursor: pointer;
    background: linear-gradient(135deg, #ffdd10, #fff);
    border: 6px solid #34495e;
    box-shadow: 0 12px 35px rgba(255,221,16,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 20px;
    font-weight: bold;
    color: #34495e;
}

.footer-up:hover {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 20px 50px rgba(255,221,16,0.6);
}

.footer-ics {
    width: 35px;
    height: 20px;
    position: relative;
}

.footer-ics::before,
.footer-ics::after {
    content: '';
    position: absolute;
    left: 10px;
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    border-left: 6px solid #34495e;
    border-bottom: 6px solid #34495e;
    animation: animate 3s linear infinite;
}

.footer-ics::after {
    animation-delay: -1.5s;
}

@keyframes animate {
    0% { opacity: 0; transform: translateY(20px) rotate(135deg); }
    15%, 85% { opacity: 1; }
    50% { opacity: 1; transform: translateY(0) rotate(135deg); }
    100% { opacity: 0; transform: translateY(-20px) rotate(135deg); }
}

/* Media Queries */
@media (max-width: 991px) {
    .header {
        padding: 0 15px;
    }
    
    .menu {
        justify-content: flex-start;
        gap: 6px;
    }
    
    .intro {
        padding: 100px 15px 60px;
        min-height: 90vh;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 15px 80px;
    }
    
    .works {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
        padding: 0 15px;
    }
    
    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-up {
        width: 65px;
        height: 65px;
        bottom: 25px;
        right: 25px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .intro__title {
        font-size: 32px;
        margin-bottom: 60px;
    }
    
    .works {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .works__item,
    .works__item1 {
        height: 300px;
    }
    
    .features {
        gap: 30px;
        padding: 50px 10px 60px;
    }
    
    .features__item {
        padding: 30px 15px;
    }
    
    .features__icon {
        width: 85px;
        height: 85px;
    }
    
    .features__icon img {
        width: 50px;
        height: 50px;
    }
    
    .footer-up {
        width: 60px;
        height: 60px;
        right: 20px;
        bottom: 20px;
    }
}
