/* Общие стили */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;700&display=swap');

.bold{
    font-weight: 700;
}

.light{
    font-weight: 300;
}

.regular{
    font-weight: 400;
}

.mini-bold{
    font-weight: 500;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.2;
}

:root {
    --primary-color: #3f93bf;
    --accent-color: #41d597;
    --light-color: #ecf0f1;
    --text-color: #05344e;
    --text-light: #7e909a;
    --white-color: white;
    --dark-green: #34c085;
    --stroke: #d1dbe5;
}

.color-white{
    color: var(--white-color);
}

.color-blue{
    color: var(--primary-color);
}

.color-grey{
    color: var(--text-light);
}

body {
    color: var(--text-color);
    font-size: 1rem;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 1.3rem;
}

.mini-text{
    font-size: 0.8rem;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    width: fit-content;
}

.btn:hover {
    background-color: var(--dark-green);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.slide-in-left {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.slide-in-right {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Шапка */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    height: 54px;
    width: 150px;
    transition: transform 0.3s ease;
    background: url(picture/unicoLogo.svg) no-repeat center center;
    background-size: contain;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.contact-info {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    align-items: end;
}

.contact-info span {
    margin-bottom: 3px;
}

.burger-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.burger-menu:hover {
    transform: scale(1.1);
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 1100;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-container {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-logo {
    height: 50px;
}

.close-menu {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.close-menu:hover {
    transform: scale(1.1);
}

.mobile-nav-links {
    list-style: none;
    margin-bottom: 40px;
}

.mobile-nav-links li {
    margin-bottom: 20px;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.mobile-nav-links a:hover {
    color: var(--primary-color);
}

.mobile-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: auto;
}

/* Баннер */
.banner {
    background: url(picture/unicoLogoMiniLight.svg), url(picture/unicoLogoMiniSolid.svg), #3f93bf;
    background-size: 30%, 40%, cover;
    background-position: 90% 25%, 95% 10%, center;
    background-repeat: no-repeat;
    padding: 160px 20px 80px;
}

.title{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.title h2{
    max-width: 45%;
}

/* Услуги */
.what-about-us{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

/* Новые стили для блока преимуществ */
.advantages-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    margin-bottom: 20px;
}

.advantage-card {
    border-radius: 12px;
    padding: 30px;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(63, 147, 191, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(63, 147, 191, 0.15);
}

.advantage-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.advantage-card p {
    line-height: 1.6;
    color: var(--text-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: white;
    border-radius: 8px;
    padding: 30px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon img{
    height: 2.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon img {
    transform: scale(1.1);
}

/* Дополнительные стили для блока экспертизы */
.expertise-highlight {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid var(--light-color);
    border-radius: 8px;
    padding: 30px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.expertise-highlight:hover {
    transform: translateY(-5px);
}

/* О компании */
.about-company{
    display: flex;
    flex-direction: row;
    gap: 60px;
    justify-content: space-between;
}

.picture-about{
    width: 65%;
    height: auto;
    background-image: url(picture/test.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 40%;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.picture-about:hover {
    transform: scale(1.02);
}

.text-about-company{
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about {
    padding: 80px 0;
}

.about-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Футер */
.footer {
    border: 1px solid var(--stroke);
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.footer-column-two {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
}

.footer-logo {
    height: 54px;
    width: auto;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-phone {
    font-weight: 500;
}

.footer-schedule,
.footer-address {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-two{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-top: 1px solid var(--stroke);
    margin-top: 60px;
    padding-top: 60px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-company {
        flex-direction: column;
    }
    
    .picture-about {
        width: 100%;
        min-height: 400px;
    }
    
    .title h2 {
        max-width: 60%;
    }

    .banner {
        background-size: 50%, 60%, cover;
        background-position: 130% 25%, 150% 30%, center;
    }
}

@media (max-width: 768px) {
    .banner {
        background: url(picture/unicoLogoMiniSolid.svg), #3f93bf;
    }

    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .nav-desktop {
        gap: 30px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .contact-info {
        display: none;
    }
    
    .burger-menu {
        display: block;
    }
    
    .title h2 {
        max-width: 80%;
    }
    
    .advantages-section {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-column-two {
        gap: 30px;
    }

    .footer-column{
        display: none;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 15px;
    }

    .logo {
        width: 54px;
        height: 80px;
        background: url(picture/unicoLogoMini.svg) no-repeat center center;
        background-size: contain;
    }
    
    .banner {
        background-size: 50%, 60%, cover;
        background-position: 90% 20%, 95% 5%, center;
        padding: 120px 15px 40px;
    }
    
    .title h2 {
        max-width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .advantage-card,
    .service-card,
    .expertise-highlight {
        padding: 20px;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-two {
        margin-top: 40px;
        padding-top: 40px;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* Кнопка "Наверх" */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(63, 147, 191, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(63, 147, 191, 0.4);
}

.scroll-to-top i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-2px);
}

/* Адаптивность для кнопки "Наверх" */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Стили для блока FAQ */
.faq {
    padding: 80px 0;
    background-color: #f9fbfd; /* Светлый фон для contrast */
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--stroke);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background-color: white;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f5f7fa;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    background-color: white;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding: 0 25px 20px 25px;
    max-height: 500px; /* Достаточно большое значение для контента */
}

.faq-answer p {
    line-height: 1.6;
    color: var(--text-light);
}

/* Стили для блока клиентов */
.clients-section {
    padding: 80px 0;
    background-color: #f9fbfd;
    overflow: hidden;
}

.clients-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.clients-track {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 50px;
}

.client-logo {
    flex-shrink: 0;
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.client-logo:hover {
    opacity: 1;
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-150px * 6 - 50px * 6)); /* Ширина логотипов + gap */
    }
}

/* Адаптивность для блока клиентов */
@media (max-width: 768px) {
    .clients-section {
        padding: 60px 0;
    }
    
    .client-logo {
        width: 120px;
        height: 60px;
    }
    
    .clients-track {
        gap: 30px;
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-120px * 6 - 30px * 6));
        }
    }
}

@media (max-width: 576px) {
    .client-logo {
        width: 100px;
        height: 50px;
    }
    
    .clients-track {
        gap: 20px;
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-100px * 6 - 20px * 6));
        }
    }
}

/* Стили для страницы контактов */
.contacts-page {
    position: relative;
    height: calc(100vh - 80px);
    margin-top: 80px;
}

.map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f5; /* Заглушка для карты */
    filter: grayscale(100%);
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100px);
    z-index: 1;
}

.contacts-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.contacts-info {
    background: white;
    border-radius: 12px;
    padding: 30px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 40px;
    align-items: center;
}

.contact-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.contact-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-value {
    font-weight: 500;
    color: var(--text-color);
}

/* Адаптивность */
@media (max-width: 768px) {
    .contacts-info {
        flex-direction: column;
        gap: 25px;
        padding: 25px 30px;
    }
    
    .contact-item {
        flex-direction: row;
        gap: 15px;
        width: 100%;
        text-align: left;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        flex-shrink: 0;
    }
}

@media (max-width: 576px) {
    .contacts-page{
        height: auto;
    }

    .map-container{
        display: none;
    }

    .contacts-info {
        width: -webkit-fill-available;
        width: -moz-available;
        padding: 20px;
        gap: 20px;
    }
}

#map{
    background: url(picture/map.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    width: 100%;
    height: 100%;
}

/* Стили для точки на карте */
.map-point {
    position: absolute;
    top: calc(50vh - 80px);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    animation: pulse 2s infinite;
}

.map-point svg {
    transition: transform 0.3s ease;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.4);
    }
    50% {
        transform: translate(-50%, -50%) scale(0.45);
    }
    100% {
        transform: translate(-50%, -50%) scale(0.4);
    }
}

/* Адаптивность для точки на карте */
@media (max-width: 576px) {
    .map-point {
        display: none;
    }
}

@media (max-height: 930px) and (max-width: 768px){
    .map-point {
        display: none;
    }
}

@media (max-height: 750px) and (max-width: 4000px){
    .map-point {
        display: none;
    }
}