* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    width: 100%;
    font-size: 18px;
    font-family: "Manrope", sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    min-height: 100vh;
}

.desktop-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.desktop-nav li {
    margin: 0 20px;
}

.desktop-nav a {
    color: #333;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.desktop-nav a:hover {
    background-color: #f5f5f5;
    color: #d32f2f;
}

.hamburger-menu {
    display: none;
}

#menu__toggle {
    opacity: 0;
    position: absolute;
    z-index: -1;
}

.menu__btn {
    display: flex;
    align-items: center;
    position: fixed;
    top: 20px;
    left: 20px;
    width: 26px;
    height: 26px;
    background-color: rgba(245, 245, 220, 0.9);
    border-radius: 5px;
    z-index: 1000;
    cursor: pointer;
    padding: 5px;
}

.menu__btn > span,
.menu__btn > span::before,
.menu__btn > span::after {
    display: block;
    position: absolute;
    width: 16px;
    height: 2px;
    background-color: #333;
    transition: 0.3s;
}

.menu__btn > span::before {
    content: '';
    top: -6px;
}

.menu__btn > span::after {
    content: '';
    top: 6px;
}

.menu__box {
    display: block;
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100%;
    margin: 0;
    padding: 80px 20px 20px;
    list-style: none;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 2px 0px 10px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
    z-index: 999;
}

.menu__item {
    display: block;
    padding: 15px 20px;
    color: #333;
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.menu__item:hover {
    background-color: #f5f5f5;
    color: #d32f2f;
}

#menu__toggle:checked ~ .menu__btn > span {
    transform: rotate(45deg);
}

#menu__toggle:checked ~ .menu__btn > span::before {
    top: 0;
    transform: rotate(0deg);
}

#menu__toggle:checked ~ .menu__btn > span::after {
    top: 0;
    transform: rotate(90deg);
}

#menu__toggle:checked ~ .menu__box {
    left: 0;
}

header {
    width: 100%;
    min-height: 100px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

#logo {
    max-width: 150px;
    height: auto;
    font-size: 24px;
    font-weight: bold;
    color: #d32f2f;
    text-decoration: none;
}

.d7 form {
    display: flex;
    position: relative;
    width: 100%;
}

.d7 input {
    width: 300px;
    height: 42px;
    padding-left: 15px;
    padding-right: 100px;
    border-radius: 42px;
    border: 2px solid #324b4e;
    background: #F9F0DA;
    font-size: 16px;
    transition: all 0.3s ease;
}

.d7 input:focus {
    width: 320px;
    outline: none;
    border-color: #d32f2f;
    box-shadow: 0 0 5px rgba(211, 47, 47, 0.3);
}

.d7 button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 32px;
    border: none;
    background: #d32f2f;
    color: white;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.d7 button:hover {
    background: #b71c1c;
}

.connection {
    text-align: center;
    font-size: 14px;
}

#number {
    color: #d32f2f;
    font-size: 13px;
    font-weight: bold;
}

.error-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    text-align: center;
}

.error-animation {
    position: relative;
    margin-bottom: 40px;
}

.error-404 {
    font-size: clamp(80px, 15vw, 200px);
    font-weight: bold;
    color: #d32f2f;
    text-shadow: 3px 3px 10px rgba(211, 47, 47, 0.3);
    position: relative;
    z-index: 2;
}

.construction-tools {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    opacity: 0.2;
    z-index: 1;
}


.error-title {
    font-size: clamp(24px, 4vw, 40px);
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.error-message {
    font-size: clamp(16px, 3vw, 20px);
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.6;
}

.error-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: #d32f2f;
    color: white;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.btn-primary:hover {
    background-color: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
}

.btn-secondary {
    background-color: #f5f5dc;
    color: #333;
    border: 2px solid #d32f2f;
}

.btn-secondary:hover {
    background-color: #d32f2f;
    color: white;
    transform: translateY(-2px);
}




.icon:nth-child(2) {
    animation-delay: 0.2s;
}

.icon:nth-child(3) {
    animation-delay: 0.4s;
}

.icon:nth-child(4) {
    animation-delay: 0.6s;
}



.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2rem 0;
    text-align: center;
    backdrop-filter: blur(10px);
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #d32f2f;
}

.footer-section p, .footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #d32f2f;
}

@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }
    
    .hamburger-menu {
        display: block;
    }

    header {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 15px 20px;
        gap: 15px;
    }

    .header-left {
        flex-direction: column;
        gap: 15px;
    }

    .header-right {
        flex-direction: column;
        gap: 15px;
    }

    .d7 input {
        width: 100%;
        max-width: 300px;
    }

    .d7 input:focus {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .error-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

  

    .menu__box {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .error-container {
        padding: 20px 15px;
    }

    .d7 input {
        width: 100%;
        max-width: 250px;
        padding-right: 80px;
    }

    .d7 button {
        width: 60px;
        font-size: 14px;
    }
}