/* =====================================
   AUTOFIX PRO - RESPONSIVE DESIGN
===================================== */

/* =====================================
   LARGE TABLETS AND SMALL LAPTOPS
===================================== */
@media (max-width: 1100px) {

    .navigation {
        gap: 13px;
    }

    .logo-name {
        font-size: 20px;
    }

    .header-container {
        gap: 12px;
    }

    .phone-number {
        font-size: 14px;
    }

    .working-hours,
    .working-time {
        font-size: 10px;
    }

    .service-card {
        gap: 12px;
        padding: 15px;
    }

    .service-icon {
        flex-basis: 110px;
    }

    .service-content h3 {
        font-size: 17px;
    }

    .service-content p {
        font-size: 13px;
    }

    .advantages-container {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 25px;
    }

    .advantage-item:nth-child(2) {
        border-right: none;
    }

    .advantage-item:nth-child(3) {
        padding-left: 10px;
    }
}

/* =====================================
   TABLETS
===================================== */
@media (max-width: 850px) {

    /* HEADER */
    .header-container {
        position: relative;
        min-height: 85px;
    }

    .logo {
        order: 1;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 42px;
        height: 42px;
        background: transparent;
        border: 1px solid var(--orange);
        cursor: pointer;
        padding: 8px;
        z-index: 1002;
        order: 3;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--orange);
        transition: 0.3s;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .header-contact {
        order: 2;
        margin-left: auto;
        margin-right: 12px;
    }

    .navigation {
        position: absolute;
        top: 85px;
        left: 0;
        width: 100%;
        background: #090909;
        border-bottom: 1px solid var(--border);
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 15px 0 25px;
    }

    .navigation.open {
        display: flex;
    }

    .navigation .nav-link {
        width: 100%;
        text-align: center;
        padding: 13px;
    }

    /* HERO */
    .hero-heading-main {
        white-space: normal;
        font-size: clamp(38px, 6vw, 58px);
    }

    .hero-heading-sub {
        font-size: clamp(34px, 5vw, 48px);
    }

    .hero-benefits {
        gap: 18px;
    }

    /* SERVICES AND OTHER SECTIONS */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 145px;
        padding: 18px 25px;
    }

    .service-icon {
        flex-basis: 135px;
    }

    .service-content h3 {
        font-size: 20px;
    }

    .service-content p {
        font-size: 14px;
    }

    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-image {
        height: 320px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item:last-child {
        grid-column: span 2;
    }
}


/* =====================================
   MOBILE PHONES
===================================== */
@media (max-width: 600px) {

    .container {
        width: 94%;
    }

    /* HEADER */
    .header-container {
        min-height: 76px;
        gap: 7px;
    }

    .logo {
        gap: 6px;
    }

    .logo-gear {
        width: 39px;
        height: 39px;
    }

    .logo-gear .fa-cog {
        font-size: 39px;
    }

    .logo-letter {
        font-size: 18px;
    }

    .logo-name {
        font-size: 16px;
        letter-spacing: 0;
    }

    .logo-tagline {
        font-size: 7px;
        letter-spacing: 1.5px;
        margin-top: 3px;
    }

    .header-contact {
        gap: 6px;
        margin-right: 7px;
    }

    .phone-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .phone-number {
        font-size: 12px;
    }

    .working-hours,
    .working-time {
        font-size: 9px;
    }

    .menu-toggle {
        width: 36px;
        height: 36px;
        padding: 7px;
    }

    .navigation {
        top: 76px;
    }

    /* HERO */

    .hero {
        min-height: 530px;
        background-position: 60% center;
    }

    .hero-content {
        padding: 55px 0;
    }

    .hero-label {
        font-size: 11px;
        letter-spacing: 2px;
        margin-bottom: 18px;
    }

    .hero h1 {
        margin-bottom: 20px;
    }

    .hero-heading-main {
        white-space: normal;
        font-size: clamp(31px, 8vw, 42px);
        line-height: 1.12;
    }

    .hero-heading-sub {
        font-size: clamp(30px, 7vw, 38px);
        line-height: 1.1;
        margin-top: 8px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 24px;
    }

    .hero-description br {
        display: none;
    }

    .hero-buttons {
        flex-direction: row;
        align-items: flex-start;
    }

    .hero-buttons a {
        min-width: 160px;
        text-align: center;
    }

    .hero-benefits {
        flex-direction: column;
        align-items: flex-start;
        gap: 13px;
        margin-top: 28px;
    }

    .benefit-item {
        font-size: 12px;
    }

    .benefit-item i {
        font-size: 16px;
    }

    /* SERVICES */
    .services-section {
        padding: 30px 0 20px;
    }

    .section-heading {
        gap: 12px;
    }

    .section-heading span {
        width: 45px;
    }

    .section-heading h2 {
        font-size: 17px;
    }

    .service-card {
        gap: 12px;
        padding: 14px 10px;
        min-height: 135px;
    }

    .service-icon {
        flex: 0 0 95px;
    }

    .service-icon svg {
        height: 85px;
    }

    .service-content h3 {
        font-size: 16px;
        margin-bottom: 7px;
    }

    .service-content p {
        font-size: 12px;
        line-height: 1.45;
        margin-bottom: 10px;
    }

    .learn-more {
        font-size: 12px;
    }

    /* ADVANTAGES */

    .advantages-section {
        padding: 25px 0;
    }

    .advantages-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .advantage-item,
    .advantage-item:first-child,
    .advantage-item:nth-child(3) {
        border-right: none;
        padding: 0 10px;
    }

    .advantage-icon {
        flex-basis: 48px;
    }

    .advantage-text h4 {
        font-size: 14px;
        white-space: normal;
    }

    .advantage-text p {
        font-size: 12px;
    }

    /* ABOUT, GALLERY, CONTACT */

    .about-section,
    .gallery-section,
    .contact-section {
        padding: 55px 0;
    }

    .about-image {
        height: 230px;
    }

    .about-content h2,
    .contact-info h2 {
        font-size: 29px;
    }

    .about-content p,
    .contact-info p {
        font-size: 14px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item,
    .gallery-item:last-child {
        grid-column: auto;
        height: 210px;
    }

    .contact-detail {
        gap: 14px;
    }

    .footer {
        padding-top: 30px;
    }
}

/* =====================================
   VERY SMALL PHONES
===================================== */
@media (max-width: 360px) {

    .logo-gear {
        width: 32px;
        height: 32px;
    }

    .logo-gear .fa-cog {
        font-size: 32px;
    }

    .logo-letter {
        font-size: 15px;
    }

    .logo-name {
        font-size: 14px;
    }

    .logo-tagline {
        font-size: 6px;
        letter-spacing: 1px;
    }

    .header-contact {
        gap: 4px;
        margin-right: 4px;
    }

    .phone-icon {
        width: 26px;
        height: 26px;
        font-size: 10px;
    }

    .phone-number {
        font-size: 10px;
    }

    .working-hours,
    .working-time {
        font-size: 8px;
    }

    .menu-toggle {
        width: 32px;
        height: 32px;
    }

    .hero-heading-main {
        font-size: 30px;
    }

    .hero-heading-sub {
        font-size: 28px;
    }

    .service-icon {
        flex-basis: 78px;
    }

    .service-content h3 {
        font-size: 14px;
    }
}
