/* Responsive rules */

@media (max-width: 1260px) {
    .container,
    .ps {
        padding: 0 30px;
    }
}

@media (max-width: 1000px) {
    .container,
    .ps {
        padding: 0 20px;
    }

    .phone-link-string {
        display: none;
    }

    .phone-link-icon {
        display: block;
    }

    .practice-item {
        width: 100%;
        min-height: auto;
        max-height: fit-content;
    }
}

@media (max-width: 900px) {
    .hero-left {
        margin-top: 20px;
        padding-top: 0;
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: none;
    }

    .hero-overlay {
        background: linear-gradient(to right, rgba(10, 10, 10, 0.45) 0%, rgba(10, 10, 10, 0.25) 40%, rgba(210, 210, 210, 0.9) 100%);
    }

    .hero {
        background-image: none;
        flex-direction: column;
        height: auto;
    }

    .whatsapp-link,
    .telegram-link,
    .hero-name,
    .hero-title {
        display: none;
    }

    .burger,
    .mobile-img-wrap,
    .hero-top-mobile {
        display: block;
    }

    #logo {
        width: 71px;
    }

    .desc {
        font-size: 1.3em;
        text-align: left;
        width: auto;
        padding-bottom: 20px;
    }

    .style-line-wrap {
        gap: 25px;
        transform: translateX(20px);
    }

    .first-line-grey {
        background: var(--first-line-grey);
    }

    .first-line-grey::before {
        border-top-color: var(--first-line-grey);
        border-right-color: var(--first-line-grey);
    }

    .style-line-grey-end {
        margin: 40px 0 0 -20px;
    }

    .section-title-group {
        margin: 0 -20px 30px;
        overflow: hidden;
    }

    .section-title {
        margin-left: 10px;
    }

    .stats {
        font-size: 1.3em;
    }

    .stat-years-num {
        font-size: 2.7em;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        background: var(--white);
        height: 0;
        overflow: hidden;
        width: 100vw;
        opacity: 0;
        transition: all .4s ease;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        background: linear-gradient(to bottom, rgb(255, 255, 255) 0%, rgb(222, 222, 222) 100%);
        justify-content: center;
        /*background: url("images/contacts-bg.png") no-repeat center;*/
        /*background-size: cover;*/
        /*transform: translateX(-100%);*/
    }

    .main-nav.open {
        height: 50vh;
        opacity: 1;
        /*transform: translateX(0)*/
    }

    .main-nav ul {
        flex-direction: column;
        gap: 30px
    }

    .about-text {
        width: 60%;
    }

    .about-gramota {
        width: 37%;
    }
}

@media (max-width: 768px) {
    .about-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .about-text {
        width: 100%;
    }

    .about-gramota {
        width: 60%;
    }

    .slogan {
        padding: 20px 0;
    }
}

@media (max-height: 640px) {
    .hero-left {
        font-size: .9rem;
    }

    .slogan {
        padding-top: 20px;
    }
}

@media (max-height: 570px) {
    .hero-left {
        font-size: .85rem;
    }
}

@media (max-height: 530px) {
    .hero-left {
        font-size: .8rem;
    }
}

@media (max-height: 500px) {
    .hero-left {
        font-size: .75rem;
    }
}

@media (max-height: 480px) {
    .hero-left {
        font-size: .7rem;
    }
}


@media (max-width: 640px) {
    html {
        font-size: 16px;
    }

    .container,
    .ps {
        padding: 0 15px;
    }

    .site-header {
        padding: 5px 0;
    }

    #logo {
        height: 40px;
    }

    .main-nav {
        top: 50px;
    }

    .hero {
        min-height: 100vh;
    }

    .mobile-img-wrap {
        margin-top: 50px;
    }

    .hero-name-mobile {
        font-size: 1.4rem;
    }

    .desc {
        font-size: 1.15rem;
        line-height: 1.2em;
    }

    .style-line-dark {
        width: 200px;
    }

    .style-line-grey {
        width: 140px;
    }

    .section-title-group {
        margin: 0 -15px 30px;
    }

    .stats {
        font-size: 1.15rem;
    }

    .stat-years-num {
        font-size: 2.4rem;
    }

    .slogan {
        padding: 10px 0 20px;
    }

    .practice-back {
        background-position: 20% 50%;
    }

    .ps {
        font-size: .8rem;
    }

    .about-text li,
    .practice-item li {
        padding-left: 11px;
    }

    .about-text li::before,
    .practice-item li::before {
        width: 5px;
        height: 5px;
    }

    .zoomable-photo {
        display: none;
    }

    .static-photo {
        display: block;
    }

    .contacts-grid {
        flex-direction: column;
        align-items: start;
        gap: 30px;
    }

    .contacts-column {
        width: 100%;
    }

    .scroll-top {
        right: 30px;
        width: 45px;
        height: 45px;
        font-size: 25px;
    }
}

@media (max-width: 520px) {
    .hero-top-mobile {
        top: 20px;
    }

    .hero-title-mobile {
        display: none;
    }

    .hero-left {
        margin-top: 15px;
    }

    .hero-title {
        display: block;
        font-size: 2rem;
        letter-spacing: 1px;
        width: min-content;
        line-height: 1.1em;
        margin: 0 auto 15px;
        text-align: center;
    }

    . .about-gramota {
        width: 70%;
    }
}

@media (max-width: 480px) {
    .hero-left {
        margin-top: 15px;
    }

    .hero-title {
        margin-bottom: 12px;
    }

    .desc {
        padding-bottom: 15px;
    }

    .style-line-grey-end {
        width: 140px;
    }

    .slogan {
        font-size: 1.3rem;
    }

    .about-gramota {
        width: 80%;
    }
}

@media (max-width: 400px) {
    .hero-top-mobile {
        top: 10px;
    }

    .about-gramota {
        width: 95%;
    }
}
