:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #6262a8;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --white: #fff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.6s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    scroll-margin-top: 100px;
}

.section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
}

.section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

/* Fullscreen section */
.fullscreen-section {
    height: 100vh;
    min-height: 600px;
    padding: 0 !important;
    scroll-margin-top: 0;
}

/* Features section */
#features {
    position: relative;
    color: var(--white);
    overflow: hidden;
    background: url('./assets/title-back.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
}

.features-container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.features-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.features-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
}

#features h2 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 30px;
}

#features h2::after {
    background-color: var(--white);
}

.features-list {
    list-style: none;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 8px;
    max-width: 700px;
    margin: 0 auto;
}

.features-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
    padding-left: 35px;
}

.features-list li:last-child {
    margin-bottom: 0;
}

.features-list i {
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--accent-color);
    font-size: 1.3rem;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
}

.nav ul {
    display: flex;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav ul li a:hover::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 30px;
}

.lang-label {
    color: var(--primary-color);
    margin-right: 8px;
    font-size: 0.9rem;
    opacity: 0.7;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-light);
    padding: 2px 5px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.lang-btn.active {
    color: var(--primary-color);
    font-weight: 500;
}

.lang-btn:not(.active):hover {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    opacity: 0;
    animation-fill-mode: both;
}

.animate.animated {
    opacity: 1;
}

.fadeIn {
    animation: fadeIn 1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.slideUp {
    animation: slideUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 3px solid var(--accent-color);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), 
                opacity 0.6s ease,
                box-shadow 0.3s ease;
}

.service-card.animated {
    transform: translateY(0);
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card h3 i {
    margin-right: 10px;
    color: var(--accent-color);
}

.service-card p i {
    margin-right: 10px;
    color: var(--accent-color);
}

/* Gallery */
.gallery-container {
    width: 80%;
    position: relative;
    margin: auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.gallery-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: var(--transition);
}

.slide img:hover {
    opacity: 0.9;
}

.gallery-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.gallery-controls button {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-controls button:hover {
    background-color: var(--white);
}

/* About */
.about-content {
    display: flex;
    gap: 40px;
}

.full-info {
    flex: 2;
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.full-info p {
    margin-bottom: 15px;
}

.achievements {
    flex: 1;
}

.achievements h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.achievement-item {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.98);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.achievement-item.animated {
    transform: scale(1);
    opacity: 1;
}

.achievement-item:hover {
    transform: translateY(-5px);
}

.achievement-text {
    margin-bottom: 15px;
    font-weight: 500;
}

.achievement-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-top: 10px;
}

.toggle-info-btn {
    display: none;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    margin: 20px auto 0;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.toggle-info-btn:hover {
    background-color: #7979c9;
}

/* Contacts */
.contacts-container {
    display: flex;
    gap: 40px;
}

.map-container {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-info {
    flex: 1;
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info p i {
    margin-right: 10px;
    color: var(--accent-color);
    margin-top: 3px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
}

/* Scroll to top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #7979c9;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

.close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

.toggle-info-btn {
    transition: all 0.3s ease;
}


/* Responsive */
@media (max-width: 992px) {
    .contacts-container {
        flex-direction: column;
    }
    
    .map-container {
        height: 300px;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-wrap: wrap;
        padding: 10px;
    }
    
    .logo {
        order: 1;
        flex: 1;
    }
    
    .mobile-menu-btn {
        order: 2;
        display: block;
    }
    
    .nav {
        order: 4;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: var(--shadow);
        padding: 20px;
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        z-index: 999;
        flex-direction: column;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav ul {
        flex-direction: column;
    }
    
    .nav ul li {
        margin: 10px 0;
    }
    
    .language-switcher {
        margin: 15px 0 0;
        justify-content: center;
    }
    
    .section {
        padding: 60px 0;
        scroll-margin-top: 120px;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    /* About section mobile changes */
    .about-content {
        display: flex;
        flex-direction: column;
    }
    
    .achievements {
        order: 1;
    }
    
    .full-info {
        order: 2;
        display: none;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    .full-info.active {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

    .toggle-info-btn {
        order: 3;
        display: block;
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
        z-index: 100;
        width: 100%;
        max-width: 300px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

        margin: 30px auto 0;
        
        
        text-align: center;
    }
    
    .about-content {
        padding-bottom: 80px; /* Добавляем отступ снизу */
    }
    
    /* Features section mobile */
    #features h2 {
        font-size: 2rem;
    }
    
    .features-list {
        padding: 20px;
    }
    
    .features-list li {
        font-size: 1rem;
        padding-left: 30px;
    }
    
    .features-list i {
        font-size: 1.1rem;
    }
    
    .gallery-container {
        width: 100% !important;
    }
    
    .gallery-container .slide img {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-container .slide img {
        height: 250px;
    }

    .toggle-info-btn {
        width: calc(100% - 20px);
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

.section-title {
    scroll-margin-top: 100px;
}

@media (max-width: 768px) {
    .section-title {
        scroll-margin-top: 120px;
    }
}