/* ========================================
   TEST-AVTO
   Modern tachograph service website
   ======================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #172033;
    background: #f4f6f9;
}

a {
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


/* ========================================
   HEADER
   ======================================== */

.header {
    position: relative;
    z-index: 10;
    background: #101722;
    color: #ffffff;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo a {
    color: #ffffff;
    text-decoration: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    color: #d9e0ea;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.25s ease;
}

.nav a:hover {
    color: #ffffff;
}


/* ========================================
   HERO
   ======================================== */

.hero {
    position: relative;
    overflow: hidden;
    background: #101722;
    color: #ffffff;
    padding: 110px 0 120px;
}

.hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: -180px;
    top: -180px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.hero::after {
    content: "";
    position: absolute;
    width: 700px;
    height: 700px;
    right: -280px;
    top: -280px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 820px;
}

.hero-label,
.section-label {
    display: inline-block;
    margin-bottom: 18px;
    color: #4da3ff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 850px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 28px;
}

.hero h1 span {
    color: #4da3ff;
}

.hero p {
    max-width: 720px;
    color: #c5ceda;
    font-size: 19px;
    line-height: 1.8;
    margin-bottom: 38px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 30px;
    background: #4da3ff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.button:hover {
    background: #358fe8;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(77, 163, 255, 0.25);
}


/* ========================================
   SERVICES
   ======================================== */

.services {
    background: #ffffff;
    padding: 100px 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 55px;
}

.section-heading h2 {
    color: #111827;
    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 18px;
}

.section-heading p {
    color: #697586;
    font-size: 17px;
    line-height: 1.7;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    position: relative;
    min-height: 270px;
    padding: 32px 28px;
    background: #f5f7fa;
    border: 1px solid #e5e9ef;
    border-radius: 12px;
    overflow: hidden;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.service-card::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    right: -25px;
    bottom: -25px;
    border-radius: 50%;
    border: 1px solid #dbe2ea;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: #c8d8e9;
    box-shadow: 0 18px 45px rgba(20, 35, 55, 0.10);
}

.service-number {
    margin-bottom: 45px;
    color: #4da3ff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
}

.service-card h3 {
    color: #172033;
    font-size: 23px;
    margin-bottom: 12px;
}

.service-card p {
    color: #697586;
    font-size: 15px;
    line-height: 1.7;
}


/* ========================================
   PROCESS
   ======================================== */

.process {
    background: #eef2f6;
    padding: 100px 0;
}

.process-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.process-item {
    display: flex;
    gap: 25px;
    min-height: 190px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e1e6ec;
    border-radius: 12px;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.process-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(20, 35, 55, 0.08);
}

.process-number {
    flex-shrink: 0;
    color: #4da3ff;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}

.process-content {
    padding-top: 1px;
}

.process-content h3 {
    color: #172033;
    font-size: 22px;
    margin-bottom: 10px;
}

.process-content p {
    color: #697586;
    font-size: 15px;
    line-height: 1.7;
}


/* ========================================
   CONTACTS
   ======================================== */

.contacts {
    background: #ffffff;
    padding: 100px 0;
}

.contact-box {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 70px;
    align-items: center;
    padding: 60px;
    background: #101722;
    color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.contact-box::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -100px;
    bottom: -150px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.contact-content {
    position: relative;
    z-index: 2;
}

.contact-content h2 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    margin-bottom: 20px;
}

.contact-content p {
    max-width: 600px;
    color: #bdc7d4;
    font-size: 16px;
    line-height: 1.8;
}

.contact-info {
    position: relative;
    z-index: 2;
}

.contact-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-item:first-child {
    padding-top: 0;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item span {
    display: block;
    margin-bottom: 5px;
    color: #8f9bab;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item strong {
    color: #ffffff;
    font-size: 19px;
}


/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: #0b1119;
    color: #8f9bab;
    padding: 28px 0;
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer p {
    font-size: 13px;
}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 900px) {

    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-box {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 45px;
    }
}


@media (max-width: 700px) {

    .header {
        padding: 18px 0;
    }

    .header .container {
        flex-direction: column;
        gap: 18px;
    }

    .nav {
        gap: 18px;
    }

    .nav a {
        font-size: 14px;
    }

    .hero {
        padding: 80px 0 90px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero p {
        font-size: 17px;
    }

    .services,
    .process,
    .contacts {
        padding: 75px 0;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

    .process-list {
        grid-template-columns: 1fr;
    }

    .process-item {
        min-height: auto;
        padding: 28px;
    }

    .contact-box {
        padding: 35px 28px;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }
}


@media (max-width: 480px) {

    .container {
        width: 92%;
    }

    .logo {
        font-size: 22px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 40px;
    }

    .button {
        width: 100%;
    }

    .section-heading {
        margin-bottom: 40px;
    }

    .service-card {
        min-height: auto;
    }

    .service-number {
        margin-bottom: 30px;
    }
}
