/* Сброс и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #2a4365;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #38b2ac, #4299e1);
    border-radius: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    gap: 10px;
}

.btn-telegram {
    background-color: #0088cc;
    color: white;
}

.btn-telegram:hover {
    background-color: #0077b5;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 136, 204, 0.2);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #1da851;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.btn-vk {
    background-color: #4C75A3;
    color: white;
}

.btn-vk:hover {
    background-color: #3d5f8a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(76, 117, 163, 0.2);
}

.btn-outline {
    background-color: transparent;
    border-color: #38b2ac;
    color: #38b2ac;
}

.btn-outline:hover {
    background-color: #38b2ac;
    color: white;
    transform: translateY(-3px);
}

/* Шапка */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #2a4365;
}

.logo-placeholder {
    display: flex;
    align-items: center;
    gap: 10px;
}



.logo-placeholder i {
    font-size: 2rem;
    color: #38b2ac;
}

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__list a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #4a5568;
    position: relative;
}

.nav__list a:hover {
    color: #38b2ac;
}

.nav__list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #38b2ac;
    transition: width 0.3s ease;
}

.nav__list a:hover::after {
    width: 100%;
}

.header__contacts {
    display: flex;
    align-items: center;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #2a4365;
}

.phone-link:hover {
    color: #38b2ac;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background-color: #2a4365;
    transition: all 0.3s ease;
}

/* Герой-блок */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    padding-top: 80px;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #2c5282 0%, #2d3748 100%);
}

.hero__bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* сохраняет пропорции, заполняя весь блок */
    z-index: -2; /* размещаем под оверлеем */
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1; /* между изображением и контентом */
}

.hero__content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 4rem;
}

.hero__scroll {
    margin-top: 3rem;
}

.scroll-down {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    color: white;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

.scroll-down i {
    font-size: 1.5rem;
    margin-top: 10px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Блок задач */
.tasks {
    padding: 100px 0;
    background-color: #f7fafc;
}

.tasks__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.task-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 5px solid #38b2ac;
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрирует содержимое по горизонтали */

}

.task-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(56, 178, 172, 0.15);
}

.task-card__icon {
    font-size: 3rem;
    color: #38b2ac;
    margin-bottom: 20px;
}

.task-card__title {
    font-size: 1.5rem;
    color: #2a4365;
    margin-bottom: 15px;
}

.task-card__text {
    color: #718096;
    margin-bottom: 20px;
}

.task-card__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #38b2ac;
    font-weight: 500;
    margin-top: auto; /* Прижмет кнопку к низу */
    width: fit-content; /* Чтобы кнопка не растягивалась на всю ширину */
}

.task-card__link:hover {
    gap: 10px;
    color: #2c7a7b;
}

/* Блок процесса */
.process {
    padding: 100px 0;
    background-color: white;
}

.process__steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.step {
    flex: 1;
    min-width: 200px;
    max-width: 220px;
    text-align: center;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -15px;
    width: 30px;
    height: 2px;
    background-color: #cbd5e0;
}

.step__number {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: #ccfff5;
    line-height: 1;
    margin-bottom: -20px;
}

.step__icon {
    font-size: 3rem;
    color: #38b2ac;
    margin-bottom: 15px;
}

.step__title {
    font-size: 1.3rem;
    color: #2a4365;
    margin-bottom: 10px;
}

.step__text {
    color: #718096;
    font-size: 0.95rem;
}

.process__cta {
    text-align: center;
    background: linear-gradient(135deg, #e6fffa 0%, #ebf8ff 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.process__cta-text {
    font-size: 1.5rem;
    color: #2a4365;
    margin-bottom: 25px;
}

.process__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero__title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .step {
        max-width: 100%;
        min-width: 170px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .header__contacts .phone-link span {
        display: none;
    }
    
    .hero__title {
        font-size: 2.3rem;
    }
    
    .hero__subtitle {
        font-size: 1.1rem;
    }
    
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .process__steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.9rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .task-card {
        padding: 20px;
    }
}

/* Блок портфолио */
.portfolio {
    padding: 100px 0;
    background-color: #f7fafc;
}

.portfolio__filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    background: white;
    border: 2px solid #cbd5e0;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #38b2ac;
    color: #38b2ac;
}

.filter-btn.active {
    background-color: #38b2ac;
    border-color: #38b2ac;
    color: white;
}

.portfolio__grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 50px;
}

.portfolio-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item__image {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.image-comparison {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-before, .image-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-after {
    width: 50%;
}

.image-before img, .image-after img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-label {
    position: absolute;
    top: 15px;
    padding: 5px 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.9rem;
    border-radius: 4px;
    z-index: 10;
}

.image-before .image-label {
    left: 15px;
}

.image-after .image-label {
    right: 15px;
}

.comparison-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: white;
    cursor: col-resize;
    transform: translateX(-50%);
    z-index: 20;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-button::before, .slider-button::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 2px;
    background: #38b2ac;
}

.slider-button::before {
    transform: rotate(45deg);
    left: 12px;
}

.slider-button::after {
    transform: rotate(-45deg);
    right: 12px;
}

.image-single {
    width: 100%;
    height: 100%;
}

.image-single img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-item__content {
    padding: 40px 30px 40px 0;
    display: flex;
    flex-direction: column;
}

.portfolio-item__title {
    font-size: 1.8rem;
    color: #2a4365;
    margin-bottom: 20px;
}

.portfolio-item__description {
    margin-bottom: 30px;
    flex-grow: 1;
}

.portfolio-item__description p {
    margin-bottom: 15px;
    color: #4a5568;
    line-height: 1.6;
}

.portfolio-item__description strong {
    color: #2a4365;
}

.portfolio__more {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #e6fffa 0%, #ebf8ff 100%);
    border-radius: 20px;
}

.portfolio__more p {
    font-size: 1.3rem;
    color: #2a4365;
    margin-bottom: 25px;
}

/* Блок преимуществ */
.advantages {
    padding: 100px 0;
    background-color: white;
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.advantage-card {
    text-align: center;
    padding: 40px 30px;
    background: #f7fafc;
    border-radius: 15px;
    transition: all 0.3s ease;
    border-top: 4px solid #38b2ac;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(56, 178, 172, 0.15);
    background: white;
}

.advantage-card__icon {
    font-size: 3.5rem;
    color: #38b2ac;
    margin-bottom: 25px;
}

.advantage-card__title {
    font-size: 1.5rem;
    color: #2a4365;
    margin-bottom: 15px;
}

.advantage-card__text {
    color: #718096;
    line-height: 1.6;
}

/* Адаптивность для портфолио */
@media (max-width: 992px) {
    .portfolio-item {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .portfolio-item__content {
        padding: 30px;
    }
    
    .portfolio-item__image {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .portfolio__filter {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .portfolio-item__title {
        font-size: 1.5rem;
    }
    
    .advantages__grid {
        grid-template-columns: 1fr;
    }
    
    .advantage-card {
        padding: 30px 20px;
    }
}


/* Мобильное меню */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav__list a {
        display: block;
        padding: 10px 0;
        font-size: 1.1rem;
    }
    
    .burger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .burger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .burger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    body.no-scroll {
        overflow: hidden;
    }
}

/* Блок FAQ */
.faq {
    padding: 100px 0;
    background-color: #f7fafc;
}

.faq__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item__question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-item__question:hover {
    background-color: #f8f9fa;
}

.faq-item__question h3 {
    font-size: 1.2rem;
    color: #2a4365;
    margin: 0;
    flex: 1;
}

.faq-item__icon {
    width: 30px;
    height: 30px;
    background-color: #e6fffa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38b2ac;
    transition: all 0.3s ease;
}

.faq-item.active .faq-item__icon {
    transform: rotate(180deg);
    background-color: #38b2ac;
    color: white;
}

.faq-item__answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.faq-item.active .faq-item__answer {
    padding: 0 30px 25px 30px;
    max-height: 500px;
}

.faq-item__answer p {
    color: #4a5568;
    line-height: 1.6;
}

.faq__cta {
    text-align: center;
    background: linear-gradient(135deg, #e6fffa 0%, #ebf8ff 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.faq__cta p {
    font-size: 1.5rem;
    color: #2a4365;
    margin-bottom: 25px;
}

/* Блок контактов */
.contacts {
    padding: 100px 0;
    background-color: white;
}

.contacts__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contacts__subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 40px;
    text-align: center;
}

.contacts__methods {
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background-color: #e6fffa;
    transform: translateX(10px);
}

.contact-method__icon {
    font-size: 2.5rem;
    color: #38b2ac;
    min-width: 60px;
}

.contact-method__info h3 {
    font-size: 1.3rem;
    color: #2a4365;
    margin-bottom: 8px;
}

.contact-method__info p {
    color: #718096;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.contact-method__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #38b2ac;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}

.contact-method__link:hover {
    color: #2c7a7b;
    gap: 10px;
}

.contacts__additional {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 15px;
    padding: 30px;
}

.contacts__additional h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2a4365;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contacts__additional p {
    color: #4a5568;
    line-height: 1.5;
}

.contacts__visual {
    text-align: center;
}

.contacts__image {
    height: 300px;
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
}

.contacts__qr {
    background-color: #f7fafc;
    border-radius: 20px;
    padding: 30px;
}

.contacts__qr p {
    margin-top: 15px;
    color: #718096;
    font-size: 0.9rem;
}

/* Подвал */
.footer {
    background-color: #2d3748;
    color: #cbd5e0;
    padding: 60px 0 30px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__logo .logo {
    margin-bottom: 20px;
    color: white;
}

.footer__tagline {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
}

.footer__nav-title,
.footer__contacts-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

.footer__nav-list li {
    margin-bottom: 12px;
}

.footer__nav-list a {
    color: #cbd5e0;
    transition: color 0.3s ease;
}

.footer__nav-list a:hover {
    color: #38b2ac;
    padding-left: 5px;
}

.footer__social {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #4a5568;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #38b2ac;
    transform: translateY(-3px);
}

.footer__phone {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: white;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer__phone:hover {
    color: #38b2ac;
}

.footer__email {
    color: #cbd5e0;
    font-size: 1rem;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #4a5568;
    flex-wrap: wrap;
    gap: 20px;
}

.footer__copyright {
    color: #a0aec0;
    font-size: 0.9rem;
}

.footer__policy {
    color: #cbd5e0;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer__policy:hover {
    color: #38b2ac;
}

/* Адаптивность для новых блоков */
@media (max-width: 992px) {
    .contacts__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contacts__image {
        height: 250px;
    }
    
    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .faq__grid {
        grid-template-columns: 1fr;
    }
    
    .faq-item__question {
        padding: 20px;
    }
    
    .faq-item__question h3 {
        font-size: 1.1rem;
    }
    
    .faq-item__answer {
        padding: 0 20px;
    }
    
    .faq-item.active .faq-item__answer {
        padding: 0 20px 20px 20px;
    }
    
    .faq__cta {
        padding: 30px 20px;
    }
    
    .faq__cta p {
        font-size: 1.3rem;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .contact-method__icon {
        margin: 0 auto;
    }
    
    .contacts__additional {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__social {
        justify-content: center;
    }
    
    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}