html {
    scroll-behavior: smooth;
}

/* ============================
   БАЗА
   ============================ */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #222;
    background-color: #f7f7f7;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================
   ШАПКА САЙТА
   ============================ */

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; /*йоу прикольная темка что бы не забыть строка под тож*/
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #333;
}

.main-nav a {
    margin-left: 25px;
    font-size: 16px;
    color: #444;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #ff6b00;
}


/* ============================
   HERO-БЛОК 1э
   ============================ */

/* HERO-БЛОК */
.hero {
    position: relative;
    padding: 0px 40px 0px;
    background-image: url("../img/colage.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
    color: #fff;
    
}


/* Контейнер для текста */
.hero-overlay {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

/* Подложка под текст — делает его читаемым */
.hero-caption {
    padding: 30px 40px;
    border-radius: 14px;
    max-width: 720px;
    color: #fff;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55); /* равномерное затемнение */
    z-index: 0;
}


/* Заголовок */
.hero-caption h1 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 0 0 12px rgba(0,0,0,0.6);
}

/* Подзаголовок */
.hero-caption p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #e0e0e0;
    text-shadow: 0 0 8px rgba(0,0,0,0.5);
}

.hero-text {
    margin-bottom: 40px;
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
    opacity: 0;
    transform: translateY(20px);
}



/* Кнопка */
.hero-button {
    display: inline-block;
    padding: 14px 28px;
    background-color: #111;
    color: white;
    font-size: 18px;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    position: relative;
    z-index: 2;
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 0.6s;
    opacity: 0;
    transform: translateY(20px);
}

/* Hover кнопки */
.hero-button:hover {
    background-color: #ff6b00;
    transform: translateY(-3px);
}


/* ============================
   БЛОК "НАШИ РЕШЕНИЯ"
   ============================ */

.solutions {
    margin-top: -50px;
    background: #fff;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
    position: relative;
    z-index: 10;
    padding-top: 50px;
    overflow: hidden; /* важно для маски */
    mask-image: linear-gradient(to top, black 80%, transparent 100%);
    
}


/* мягкий blur-переход сверху */
.solutions::before {
    content: "";
    position: absolute;
    top: -40px; /* насколько blur залезает вверх */
    left: 0;
    width: 100%;
    height: 80px; /* высота размытия */
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.6),
        rgba(255,255,255,0)
    );
    filter: blur(12px);
    z-index: 5;
    pointer-events: none;
}




.solutions-header {
    padding-top: 50px;
    text-align: center;
    margin-bottom: 40px; 
}

.solutions-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #111;
}

.solutions-header p {
    font-size: 16px;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

/* setochka cart */

/* Сетка: 2 карточки в строку */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* Карточка */
.solution-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;

    display: grid;
    grid-template-columns: 1fr 1fr; /* текст слева, картинка справа */
    gap: 20px;
}

/* Hover */
.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Левая часть — текст */
.solution-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #111;
}

.solution-content p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* Правая часть — картинка */
.solution-image {
    background: #f3f3f3; /* временная заглушка */
    border-radius: 10px;
    min-height: 140px;
    background-size: cover;
    background-position: center;
}

.solution-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #111;
}

.solution-card p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

/* ЭФФЕКТ ПРИ НАВЕДЕНИИ НА КАРТОЧКУ */

.trust {
    padding: 80px 40px;
    background: #fff;
    margin-top: 80px;
}

.trust-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.trust-title {
    font-size: 32px;
    color: #111;
    margin-bottom: 40px;
    font-weight: 600;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.trust-logo-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 30px;
    min-width: 220px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: 0.3s ease;
    cursor: pointer; /* ← курсор меняется */
}
.trust-logo-card {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s ease;
}

.trust-logo-card.visible {
    opacity: 1;
    transform: translateY(0);
}


/* hover эффект */
.trust-logo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* место под логотип */
.trust-logo-image {
    width: 100%;
    height: 70px; /* можно менять под твои реальные логотипы */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: 15px;
}


.trust-logo-name {
    font-size: 20px;
    color: #111;
    font-weight: 600;
    margin-bottom: 6px;
}

.trust-logo-desc {
    font-size: 14px;
    color: #555;
}

/* ============================
   ПРЕМИУМ-БЛОК "КАК МЫ РАБОТАЕМ"
   ============================ */

.workflow-premium {
    padding: 80px 40px;
    background-color: #fff;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 80px;
}

.workflow-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 60px;
    color: #111;
    font-weight: 600;
}

.workflow-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.workflow-step {
    flex: 1 1 calc(14% - 20px); /* 7 шагов по ширине */
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: box-shadow 0.3s ease;
}

.workflow-step:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.workflow-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.workflow-icon svg {
    width: 32px;
    height: 32px;
    stroke: #111;
    fill: none;
}


.workflow-step h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #111;
    font-weight: 600;
}

.workflow-step p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}
/* Стартовое состояние */
.workflow-step {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s ease;
}

/* Когда появляется */
.workflow-step.visible {
    opacity: 1;
    transform: translateY(0);
}

/* НАШИ рабОТЫ */

.works {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.work-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: 0.3s ease;
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.work-image {
    width: 100%;
    height: 200px;
    background: #eaeaea;
    background-size: cover;
    background-position: center;
}

.work-card h3 {
    font-size: 20px;
    margin: 15px;
}

.work-card p {
    font-size: 14px;
    color: #555;
    margin: 0 15px 20px;
}

/* Тёмный фон для модалки с работ-фотографий */
.modal {
    display: none;                 /* модалка скрыта */
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;                    /* прозрачная */
    transition: opacity 0.3s ease; /* не хватает s */
}

/* когда модалка активна */
.modal.show {
    opacity: 1;
}

/* контейнер */
.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}



/* стартовое состояние картинки — уменьшена */
.modal-content img {
    max-height: calc(90vh - 80px); /* 80px — место для подписи и отступа */ 
    width: auto;
    height: auto;
    border-radius: 10px;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}


/* при активной модалке — увеличиваем до 1 */
.modal.show .modal-content img {
    transform: scale(1);
    opacity: 1;
}


/* крестик */
.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

/* Подпись под фото */
.modal-caption {
    position: absolute;
    bottom: 20px;               /* отступ от низа */
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    white-space: nowrap;        /* чтобы текст не переносился */
}




.modal-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.35), rgba(0,0,0,0));
    border-radius: 10px;
    pointer-events: none;
    z-index: 1;
    display: none;
}



.modal.show .modal-caption {
    opacity: 1;
}


/* Стрелки */
.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    z-index: 10000;
    transition: 0.2s ease;
}

.modal-arrow:hover {
    color: #ddd;
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* ============================
   ФУТЕР
   ============================ */

.site-footer {
    background: #ffffff;
    padding: 50px 40px 30px;
    margin-top: 80px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

/* ЛОГОТИП */
.footer-logo {
    font-size: 28px;
    font-weight: bold;
    color: #111;
}

/* КОНТАКТЫ */
.footer-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #333;
}

.contact-item svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #111;
    stroke-width: 1.8;
}

/* Разделители между контактами */
.divider {
    width: 1px;
    height: 20px;
    background: #ddd;
}

/* СОЦСЕТИ */
.footer-socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f2f2;
    border-radius: 50%;
    transition: 0.3s ease;
}

.social-icon:hover {
    background: #ff6b00;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: #333;
    transition: 0.3s ease;
}

.social-icon:hover svg {
    fill: #fff;
}

/* НИЖНЯЯ СТРОКА */
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    color: #777;
}

/* === БУРГЕР ДЛЯ ГЛАВНОЙ СТРАНИЦЫ === */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    position: relative;
    z-index: 2000;
}

.burger span {
    width: 28px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: 0.3s ease;
}

.burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* === СОЦСЕТИ В БУРГЕР-МЕНЮ === */
.mobile-socials {
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

.mobile-social-icon {
    width: 64px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: transform 0.25s cubic-bezier(.25, .8, .25, 1),
    opacity 0.25s ease,
    background 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

/* SVG внутри */
.mobile-social-icon svg {
    width: 28px;
    height: 28px;
    stroke: #fff;
    fill: none;
}

/* Hover (ПК) */
.mobile-social-icon:hover {
    background: #ff6b00;
}

/* Нажатие (мобилки + ПК) */
.mobile-social-icon:active { 
    transform: scale(0.78);
    opacity: 0.6; }

/* Убираем фокус-рамку */
.mobile-social-icon:focus {
    outline: none;
}




/* === МОБИЛЬНОЕ МЕНЮ === */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background: #111;
    padding: 80px 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 1500;
}

.mobile-nav a {
    color: #fff;
    font-size: 20px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    transition: 0.3s ease;
}


.mobile-nav a:hover {
    color: #ff6b00;
}

.mobile-nav.active {
    transform: translateX(0);
}

/* === АДАПТИВ ДЛЯ МОБИЛОК === */
@media (max-width: 700px) {
    .main-nav {
        display: none;
    }

    .burger {
        display: flex;
    }
}

/* === Компактное мобильное меню === */
.mobile-nav {
    background: rgba(17, 17, 17, 0.75); /* было #111 */
    backdrop-filter: blur(6px);         /* мягкий блюр */
}


/* Кнопка "Оставить заявку" — как обычный пункт, но выделенная */
.mobile-nav-btn {
    font-size: 20px;
    color: #ff6b00;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-top: 10px;
    transition: 0.3s ease;
}

.mobile-nav-btn:hover {
    color: #ffa04d;
}

@media (max-width: 700px) {
    #hero {
        padding: 80px 20px;
        text-align: center;
    }

    #hero h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    #hero p {
        font-size: 16px;
        margin-top: 10px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        margin-top: 25px;
    }
}
@media (max-width: 700px) {
    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    .solution-card {
        padding: 20px;
    }

    .solution-card h3 {
        font-size: 20px;
    }

    .solution-card p {
        font-size: 15px;
    }
}

@media (max-width: 700px) {
    #about {
        padding: 60px 20px;
        text-align: center;
    }

    #about h2 {
        font-size: 26px;
    }

    #about p {
        font-size: 16px;
        line-height: 1.5;
    }
}
@media (max-width: 700px) {
    .trust-logos {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 20px;
    }

    .trust-logo-card {
        padding: 15px;
    }
}
@media (max-width: 700px) {
    .work-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    .work-card {
        height: 220px;
    }
}

@media (max-width: 700px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        text-align: center;
    }

    .footer-contacts {
        align-items: center;
    }

    .contact-item {
        justify-content: center;
    }

    .footer-socials {
        justify-content: center;
    }
}

@media (max-width: 700px) {
    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        text-align: center;
    }

    .footer-contacts {
        align-items: center;
    }

    .contact-item {
        justify-content: center;
    }

    .footer-socials {
        justify-content: center;
    }
}

@media (max-width: 700px) {
    section {
        padding: 60px 0;
    }

    h2.section-title {
        font-size: 26px;
        margin-bottom: 25px;
    }
}

#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 700px) {
    .works-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* ровно 2 карточки */
        gap: 16px;
        padding: 0 16px;
    }

    .work-card {
        height: 200px; /* чтобы не были слишком вытянутыми */
    }
}
@media (max-width: 700px) {
    .solutions::before {
        display: none;
    }

    .solutions {
        mask-image: none;
    }

    .solutions-header h2,
    .solutions-header p {
        color: #111;
    }
}
@media (max-width: 700px) {
    .hero {
        min-height: 100vh;
        padding: 0 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-overlay {
        padding: 40px 20px;
        text-align: center;
    }

    .hero-caption {
        padding: 0;
        max-width: 100%;
    }

    .hero-caption h1 {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .hero-caption p {
        font-size: 15px;
        margin-bottom: 20px;
    }
}

.hero-caption {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 700px) {
    .hero {
        min-height: 100vh;
        padding: 40px 20px 60px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .hero-caption {
        margin-top: 40px;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 30px;
    }
}
@media (max-width: 700px) {

    .hero {
        min-height: 100vh;
        padding: 0 !important; /* убиваем ВСЕ предыдущие паддинги */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .hero-overlay {
        margin-top: 0px; /* поднимаем текст */
    }

    .hero-text {
        margin-bottom: 40px;
    }
}
