@media (min-width: 480px) {
    .main,
    .header,
    .footer {
        max-width: 480px;
    }

    .hero {
        padding-top: 17px;
    }
    .hero__inner {
        padding-top: 75px;
    }

    .header__logo-text {
        font-size: 50px;
    }
    .header__logo-line--second {
        margin-left: 107px;
    }
    .header__nav {
        width: 400px;
        height: 245px;
    }
    .nav__list {
        gap: 18px;
    }
    .nav__link {
        font-size: 19px;
    }
    .header__burger {
        width: 38px;
    }
    .header__burger-line {
        height: 3px;
        border-radius: 1px;
    }
    .header__burger-line:nth-child(2) {
        top: 9px;
    }
    .header__burger-line:nth-child(3) {
        bottom: -3px;
    }
    .header__burger--active .header__burger-line:nth-child(3) {
        bottom: 7px;
    }

    .btn {
        font-size: 18px;
    }

    .section__title {
        font-size: 30px;
        margin: 0 0 35px;
    }

    .about__item {
        font-size: 17px;
    }

    .price__list {
        gap: 15px;
    }
    .price__service {
        font-size: 17px;
    }
    .price__value {
        font-size: 17px;
    }
    .price__note {
       font-size: 17px; 
    }

    .faq__list {
        gap: 14px;
    }
    .faq__question {
        font-size: 17px;
    }
    .faq__answer {
        font-size: 15px;
    }

    .contacts__text {
        font-size: 14px;
    }

    form {
        display: grid;
        gap: 8px;
    }
    .request-form input {
        font-size: 16px;
    }
    .request-form select {
        font-size: 16px;
    }
    .request-form input,
    .request-form select {
        line-height: 1.4;
    }

    .about__item,
    .price__service,
    .price__note,
    .faq__question,
    .faq__answer,
    .contacts__text {
        line-height: 1.5;
    }
}

@media (min-width: 768px) {
    .main,
    .header,
    .footer {
        max-width: 640px;
    }
    .portfolio__slider {
        height: auto;
        max-width: 640px;
        margin: 0 auto;
    }
   .portfolio__item img {
        height: 600px;
        object-fit: cover;     /* обрежет лишнее, но заполнит блок красиво */
    }
    .portfolio__dots {
        display: flex;
        gap: 12px;
        margin-top: 30px;
        justify-content: center;
        align-items: center;
        width: 75px;
        height: 20px;
    }

    .portfolio__dot {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        border: 2px solid #ff2f92;
        background-color: #151515; 
        cursor: pointer;
        transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    }

    .portfolio__dot--active {
        background-color: #ff2f92;
        transform: scale(1.1);
    }

    .portfolio__dot:hover {
        opacity: 0.9;
    }

    .header__logo-text {
        padding: 40px 20px 8px;
        font-size: 65px;
        line-height: 0.9;
    }
    .header__logo-line--second {
        margin-left: 137px;
    }
    .header__brand {
        margin-top: 10px;
    }
    .header__nav {
        position: absolute;
        top: auto;
        left: auto;
        width: 100%;
        max-width: none;

        padding: 0;
        background: transparent;
        backdrop-filter: none;

        opacity: 1;
        transform: none;
        visibility: visible;
        pointer-events: auto;
    }
    .nav__list {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 35px;
    }
    .nav__link {
        font-size: 20px;
    }
    .header__burger {
        display: none;
    }

    .nav__link {
        color: #b8b8d0;
    }

    .nav__link--active {
        color: #ff2f92;
    }

    .hero__card .header {
        top: 10px;
    }
    .hero__inner {
        margin-top: 10px;
        padding-top: 140px;
    }
    .hero__photo {
        width: 330px;
        margin-top: 55px;
    }
    .hero__photo::before {
        width: 450px;
        height: 450px;
    }
    .hero__content {
        margin-top: 75px;
    }

    .btn {
        font-size: 20px;
    }
    .contacts__btn {
        width: 80%;
    }

    .section__title {
        font-size: 40px;
        margin: 15px 0 35px;
    }
    
    .about__item {
        font-size: 20px;
    }

    .price__list {
        gap: 25px;
    }
    .price__service {
        font-size: 20px;
    }
    .price__value {
        font-size: 20px;
    }
    .price__note {
        font-size: 20px;
    }

    .faq__question {
        font-size: 20px;
    }
    .faq__answer {
        font-size: 18px;
    }

    .contacts__text {
        font-size: 16px;
    }

    form {
        max-width: 480px;
        margin: 0 auto;
        display: grid;
        gap: 8px;
        font-size: 20px;
    }
    .request-form input, .request-form select {
        line-height: 1.8;
    }
    .request-form input {
        font-size: 19px;
    }
    .request-form select {
        font-size: 19px;
    }

    .contacts__map iframe {
        width: 100%;
        height: 420px;
    }

    .footer__inner { 
        font-size: 14px;
    }
}