
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
     font-family: 'Roboto', sans-serif;
    /* Шахматный фон */
       background-color: #fff;
    background-image: 
        linear-gradient(45deg, #000000 25%, transparent 25%), 
        linear-gradient(-45deg, #000000 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #000000 75%), 
        linear-gradient(-45deg, transparent 75%, #000000 75%);
    background-size: 130px 130px; /* Increased size of chessboard squares */
    background-position: 0 0, 0 65px, 65px -65px, -65px 0px;
    
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #2c3e50, #4a6a88);
    color: white;
    width: 100%;
    padding: 20px 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    flex-wrap: wrap;
}

header .logo img {
    width: 80px; /* Reduced logo size */
    transition: transform 0.3s ease;
}

header .logo img:hover {
    transform: scale(1.1);
}

.main-nav {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.6em;
    font-weight: 700;
    transition: color 0.3s, transform 0.3s;
}

.main-nav a:hover {
    color: #f1c40f;
    transform: translateY(-2px);
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-display {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.dropdown-display:hover {
    background: rgba(255, 255, 255, 0.2);
}

.dropdown-display img {
    width: 32px;
    height: 22px;
    border-radius: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    left: 0;
    background: white;
    list-style: none;
    color: #2c3e50;
    padding: 10px 0;
    margin: 0;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    display: none;
    min-width: 120px;
    z-index: 10;
}

.dropdown-menu li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.dropdown-menu li img {
    width: 28px;
    height: 18px;
}

.dropdown-menu li:hover {
    background: #f1f1f1;
}

.language-dropdown:hover .dropdown-menu {
    display: block;
}
#menu-checkbox {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    margin-left: 10px;
}

.menu-toggle span {
    display: block;
    height: 4px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 95%;
    max-width: 1400px;
    padding: 60px 20px;
}

.contact-info {
    text-align: center;
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    margin-top: 50px;
    width: 100%;
    max-width: 600px;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.contact-info h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2em;
    color: #2c3e50;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.contact-icon img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #f1c40f;
    transition: transform 0.3s;
}

.contact-icon img:hover {
    transform: scale(1.1);
}

.contact-card p {
    font-size: 1.5em;
    color: #34495e;
    line-height: 1.6;
}

.contact-card a {
    color: #2980b9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: #f1c40f;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s;
}

.social-links a img:hover {
    transform: scale(1.2);
}

@media screen and (max-width: 800px) {
    .main-nav {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100%;
        background-color: #2c3e50;
        flex-direction: column;
        padding: 60px 20px;
        gap: 20px;
        transition: left 0.3s ease;
        z-index: 100;
    }

    .main-nav a {
        font-size: 1.5em;
    }

    #menu-checkbox:checked ~ .main-nav {
        left: 0;
    }

    .menu-toggle {
        display: flex;
        order: 2;
        margin-left: 10px;
    }

    .language-dropdown {
        order: 1;
        margin-left: auto;
    }

    header {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 10px 20px;
    }
}

@media screen and (max-width: 768px) {
    .contact-info {
        padding: 30px;
    }
    .contact-info h1 {
        font-size: 2.5em;
    }
    .contact-card p {
        font-size: 1.3em;
    }
    .contact-icon img {
        width: 80px;
        height: 80px;
    }
}
