* { 
    box-sizing: border-box; 
    margin: 0;
}

body { 
    font-size: 18px; 
    font-family: 'Times New Roman', Times, serif; 
    color: #000000;
    background-color: #d4d4d4;
    overflow-x: hidden; 
}

header {
    position: fixed;
    top: 0; 
    left: 0; 
    right: 0;
    height: 80px;
    background: #ffffff;
    z-index: 1500;
}

.menu {
    height: 80px;
    max-width: 1500px; 
    margin: 0 auto; 
    padding: 0 20px;
    display: flex; 
    align-items: center; 
    justify-content: space-between;
}

.menu img { 
    height: 80px; 
    width: auto; 
}

.switch {
    display: none;
}

.chocolate {
    width: 50px;
    height: 50px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    position: relative;
    cursor: pointer;
    align-items: center;
    justify-items: center;
}

.chocolate span:not(.point) {
    width: 10px;
    height: 10px;
    background: #000000;
}

.chocolate span:not(.point), .point {
    transition: 0.9s ease;
}

.point {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #000000;
    transform: scale(0);
}

.switch:checked ~ .menu .chocolate span:not(.point) {
    opacity: 0;
    transform: scale(0);
}

.switch:checked ~ .menu .chocolate .point {
    opacity: 1;
    transform: scale(1);
}

.switch:checked ~ nav {
    max-height: 300px;
}

nav {
    top: 80px;
    left: 0;
    right: 0;
    background: #363636;
    max-height: 0;
    overflow: hidden;
    transition: max-height 1.2s;
}

nav a { 
    display: block; 
    padding: 10px; 
    color: #ffffff; 
    text-decoration: none; 
    font-weight: bold;
    text-align: center;
    font-size: 20px;
}

nav a:hover {
    background: #d4d4d4;
    color: #000000;
}

main { 
    margin: 0 auto;  
}

.page-header {
    background: #000000;
    padding: 250px 0 200px;
}

.page-header h1, .page-header p {
    font-size: 30px;
    line-height: 2;
    text-align: center;
    color: #ffffff;
}

.contacts-section {
    max-width: 1200px; 
    margin: 200px auto;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin: 0 0 80px;
}

.card {
    border: 2px solid #000000;
    padding: 30px;
    background: #ffffff;
}

.card h3 {
    font-size: 20px;
    margin: 0 0 30px;
    text-transform: uppercase;
    font-weight: bold;
}

.card p {
    color: #363636;
}

.contacts-form {
    margin: 100px 0;
}

.contacts-form h2 {
    font-size: 25px;
    margin: 0 0 50px;
    text-align: center;
}

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form {
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
}

.form label {
    margin: 0 0 20px;
}

.form input, .form textarea {
    padding: 15px;
    background: #ffffff;
    border: 1px solid #000000;
    font-family: 'Times New Roman', serif;
    font-size: 18px;
}

.submit-button {
    display: inline-block;
    padding: 20px;
    margin: 20px 0 0 500px;
    background: #000000;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-family: 'Times New Roman', Times, serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.submit-button:hover {
    background: #363636;
}

footer {
    background: #000000;
    padding: 60px 0 30px;
    color: #A2ADD0;
}

.top {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 40px 40px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-first {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin: 0 0 50px;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons img {
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.footer-second {
    flex: 1.5;
    min-width: 300px;
    text-align: center;
}

.footer-second h3 {
    color: #ffffff;
    margin: 0 0 20px;
    font-size: 20px;
}

.footer-second input[type="email"] {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background: transparent;
    border: 1px solid #A2ADD0;
    border-radius: 10px;
    color: #ffffff;
    margin: 0 0 20px;
    font-family: 'Times New Roman', Times, serif;
}

.footer-second .button-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #A2ADD0;
    color: #ffffff;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Times New Roman', Times, serif;
}

.button img {
    width: 30px;
    height: 30px;
}

.footer-third {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.footer-third a {
    color: #A2ADD0;
    text-decoration: none;
    font-size: 18px;
}

.bottom {
    border-top: 1px solid #363636;
    padding: 30px 0 0;
    text-align: center;
    font-size: 15px;
    margin: 0 0 5px;
}

@media (max-width: 1024px) {
    .contacts-section {
        margin: 150px 0 0;
    }
}

@media (max-width: 768px) {
    body { 
        font-size: 15px; 
    }

    header, .menu {
        height: 60px;
    }
    
    .menu img {
        height: 50px;
    }
    
    .chocolate {
        width: 40px;
        height: 40px;
    }
    
    nav {
        top: 60px;
    }

    .contacts-section {
        margin: 100px 0;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    form {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .contacts-form {
        margin: 50px 0 0;
    }

    .submit-button {
        margin: 0;
    }

    .top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .footer-first, .footer-second, .footer-third {
        width: 100%;
        align-items: center;
    }

    .footer-logo { 
        height: 60px; 
        margin: 0 0 20px;
    }

    .social-icons { 
        justify-content: center; 
    }

    .footer-second .button-icons {
        flex-direction: column;
        align-items: center;
    }

    .button { 
        width: 100%; 
        max-width: 280px; 
        justify-content: center; 
    }

    .footer-third { 
        align-items: center; 
    }
}

@media (max-width: 480px) {
    body { 
        font-size: 10px; 
    }
    
    header, .menu {
        height: 50px;
    }
    
    .menu img {
        height: 40px;
    }
    
    .chocolate {
        width: 30px;
        height: 30px;
        gap: 2px;
    }
    
    .chocolate span:not(.point) {
        width: 6px;
        height: 6px;
    }
    
    .point {
        width: 20px;
        height: 20px;
    }
    
    nav {
        top: 50px;
    }
    
    nav a {
        font-size: 10px;
        text-align: left;
        padding: 0 0 20px;
    }

    .page-header h1, .page-header p {
        font-size: 20px;
    }
}