* {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #1a2b49;
    --secondary-color: #a8c0ff;
    --text-color: #333;
    --light-text: #f8f9fa;
    --background-light: #e6f0ff;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body {
    color: var(--text-color);
    line-height: 1.6;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--primary-color);
    color: var(--light-text);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
}

.lg {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lg img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background-color: var(--light-text);
    border-radius: 50%;
    padding: 2px;
}

.lg h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 10px;
    border-radius: 5px;
}

nav a:hover {
    color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--light-text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

section {
    padding: 80px 5% 40px;
}

#hm {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('fon.jpg') no-repeat center/cover fixed;
    filter: brightness(190%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light-text);
}

#hm h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    animation: fadeInDown 1s ease;
}

#hm p {
    background-color: rgba(78, 78, 78, 0.486);
    backdrop-filter: blur(5px);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    max-width: 800px;
    padding: 20px;
    margin: 0 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease;
}

#gl {
    background-color: var(--light-text);
}

.gallery {
    margin-bottom: 30px;
    position: relative;
    font-size: 2rem;
    color: var(--primary-color);
}

.gc {
    position: relative;
    max-width: 900px;
    margin: 0 auto 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.gc img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.gt {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--light-text);
    padding: 15px;
    font-size: 1.2rem;
    text-align: center;
}

.gb {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--light-text);
    border: none;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.gb:hover {
    opacity: 1;
}

#pb {
    left: 20px;
}

#nb {
    right: 20px;
}

.p2 {
    background-color: rgba(124, 141, 145, 0.658);
    backdrop-filter: blur(5px);
    max-width: 800px;
    padding: 25px;
    margin: 30px auto;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light-text);
    background-image: url('Free-download-minimalist-backgrounds.jpg');
    background-size: cover;
    background-position: center;
}

.p2 h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--light-text);
    text-align: center;
}

.p2 ul {
    list-style-type: none;
    columns: 2;
    column-gap: 30px;
}

.p2 li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    break-inside: avoid;
}

.p2 li:before {
    content: "•";
    color: var(--secondary-color);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

#rc {
    background-color: var(--background-light);
}

#rc h2 {
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 2rem;
}

.rct {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.mp {
    flex: 1;
    min-width: 300px;
    height: 400px;
    border: none;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.rb {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rx {
    background: var(--light-text);
    padding: 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    gap: 15px;
}

.rx:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: var(--primary-color);
    color: var(--light-text);
}

.rx i {
    font-size: 1.5rem;
}

footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 40px 5% 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.si {
    display: flex;
    gap: 15px;
}

.si a {
    color: var(--light-text);
    font-size: 1.5rem;
    transition: transform 0.3s, color 0.3s;
    display: inline-block;
}

.si a:hover {
    transform: translateY(-5px);
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Медиазапросы для адаптивности */
@media (max-width: 992px) {
    .p2 ul {
        columns: 1;
    }
}

@media (max-width: 768px) {
    header {
        padding: 10px 5%;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: var(--primary-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    nav.active {
        left: 0;
    }
    
    nav a {
        width: 100%;
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .gc img {
        height: 350px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-info {
        align-items: center;
    }
}

@media (max-width: 576px) {
    #hm {
        min-height: 500px;
        padding-top: 60px;
    }
    
    #hm h1 {
        font-size: 2rem;
    }
    
    .gc img {
        height: 250px;
    }
    
    .gt {
        font-size: 1rem;
        padding: 10px;
    }
    
    .gb {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .mp {
        height: 300px;
    }
    
    .rx {
        padding: 15px;
    }
    
    .rx i {
        font-size: 1.2rem;
    }
}