
@media screen and (max-width: 768px) {

    body {
        padding: 70px 0 1px; /* Уменьшаем отступ сверху для шапки */
    }

    nav {
        padding: 1rem 0;
    }
    /*Главная страница и навигация */
    .nav-links {
        font-size: 1.1em;
    }

    .nav-links a {
        margin: 0 0.5rem;
        font-size: 1rem;
    }
    section h1 {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }
    section h2 {
        font-size: 1.2rem;
        margin-bottom: 1.3rem;
    }

    .hero {
        padding: 1.5rem 1rem;
    }

    .hero h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .section-title h1,
    .section-title h2 {
        font-size: 1.3rem;
    }

    .section-title .subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .features-section h3 {
        font-size: 1.7rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 400px;
    }

    .stat-item {
        padding: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .stat-image {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }

    .stat-title {
        font-size: 1.1rem;
    }

    .feature-value {
        font-size: 1.2rem;
    }

    #questions h2,
    #service-blocks,
    .questions-section h3,
    #prices h3,
    #about h2 {
        font-size: 1.3rem;
    }

    .faq-item {
        padding: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .faq-question {
        font-size: 1rem;
        padding-left: 1.8rem;
    }

    .faq-icon {
        left: 1.5rem;
    }

    .faq-answer,
    .faq-article {
        font-size: 0.9rem;
    }

    .question-item {
        padding: 1rem;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .cards-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
    }

    .service-card {
        padding: 20px;
    }

    .team-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .team-member {
        padding: 15px;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .swiper-slide {
        width: 300px;
        height: 300px;
        padding: 15px;
    }

    .worker-image img {
        width: 150px;
        height: 150px;
    }

    .prices-table {
        overflow-x: auto;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 6px 8px;
    }

    .about-price {
        margin: 15px 20px 20px;
        font-size: 1rem;
    }

    .highlight ul {
        margin: 20px 30px;
    }

    .highlight li {
        padding: 1.5rem 1.5rem;
        font-size: 1rem;
        min-height: 70px;
    }

    .contacts-content,
    .addresses-content {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .phone-card {
        height: auto;
        padding: 1em 1.5em;
        font-size: 1.1rem;
    }

    .phone-card:hover {
        transform: scale(1.1);
        font-size: 1.15rem;
    }

    .contact-card {
        padding: 0 1em;
        margin: 1em;
    }

    .contact-item {
        padding: 0 1em;
    }

    .footer-on-top-links {
        gap: 10px;
        font-size: 0.7em;
    }

    .footer {
        font-size: 0.7em;
        padding: 10px 0;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 15px;
        right: 15px;
    }
    .service-block {
        overflow-x: auto;
    }
    /*Страница услуг*/
    .service-block {
        margin: 15px 20px 20px;
        font-size: 1rem;
    }

    .block-content {
        padding: 15px 5px !important;
    }

    .block-image {
        height: 300px !important;
        max-width: 100% !important;
    }

    .block-image img {
        width: 80% !important;
        height: 80% !important;
    }
    #services h2 {
        font-size: 1.2rem;
    }

    .cases-container {
        grid-template-columns: 1fr; /* Одна колонка на мобильных */
        gap: 15px;
        padding: 1.5rem 1rem 2rem;
        margin: 0.5rem;
        display: grid; /* Меняем flex на grid для лучшего контроля */
    }

    .case-item {
        width: 100%;
    }

    .case-content {
        padding:1rem;
    }

    .case-text {
        font-size: 11px;
        line-height: 1;
        margin-bottom: 10px;
    }

    .pdf-preview {
        margin-top: 3px;
        width: 140px;
        height:140px;
    }

    .pdf-preview embed {
        width: 100%;
        max-width: 200px;
        height: 130px;
    }

    .mt-2 {
        font-size: 9px;
    }

    .process-bankruptcy {
        font-size: 0.9rem;
    }

    .warning-card {
        padding: 1rem;
    }

    .steps-content {
        padding: 1rem;
    }

    .content-menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(10px, 2fr));
        max-width: 20rem;
    }

    .points-item {
        width: 9rem;
        height: 4rem;
    }

    .points-item a{
        font-size: 0.6rem;
    }
}

