.page-banner {
    position: relative;
    height: 350px;
    background: 
        linear-gradient(to right, rgba(10,18,25,0.82), rgba(10,18,25,0.35)),
        url("../images/banner11.png") center/cover no-repeat;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,18,25,0.5);
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.banner-content h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 46px;
    letter-spacing: -0.01em;
}

/* ======= */

/* ================= SERVICES ================= */
.services {
    padding: 110px 80px;
    background: var(--ivory);
}

.services-grid {
    display: block;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    border-top: 1px solid var(--line);
    counter-reset: service-counter;
}

.service-card {
    counter-increment: service-counter;
    width: 100%;
    height: auto;
    min-height: 0;
    line-height: normal;
    display: flex;
    align-items: center;
    gap: 34px;
    padding: 44px 10px;
    box-sizing: border-box;
    border: none;
    border-bottom: 1px solid var(--line);
    background: transparent;
    transition: 0.35s ease;
    cursor: default;
    position: relative;

    opacity: 0;
    transform: translateY(28px);
}

.service-card.in-view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

.service-card::before {
    content: "0" counter(service-counter);
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--gold);
    width: 40px;
    flex-shrink: 0;
}

.service-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 1px solid var(--gold-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.35s ease, background 0.35s ease;
}

.service-card img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-right: 0;
    flex-shrink: 0;
    opacity: 0.85;
    transition: filter 0.35s ease, transform 0.35s ease, opacity 0.35s ease;
}

.service-card p {
    margin: 0;
    flex: 1;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--ink);
}

.service-card::after {
    content: "→";
    font-family: var(--font-body);
    font-size: 20px;
    color: var(--gold);
    opacity: 0;
    transform: translateX(-10px);
    transition: 0.35s ease;
    flex-shrink: 0;
}

.service-card:hover {
    padding-left: 22px;
    box-shadow: inset 3px 0 0 var(--gold);
}

.service-card:hover .service-icon {
    border-color: var(--gold);
    background: rgba(184,145,47,0.08);
}

.service-card:hover img {
    filter: brightness(0) saturate(100%) invert(70%) sepia(45%) saturate(500%) hue-rotate(0deg);
    opacity: 1;
    transform: scale(1.08);
}

.service-card:hover p {
    color: var(--gold-soft);
}

.service-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Section 2 */
.process-section {
    padding: 140px 10%;
    background: var(--ivory);
    text-align: center;
    position: relative;
}

.process-header span {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}

.process-header h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 42px;
    margin: 18px 0 100px;
}

.process-wrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.process-line {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 0;
}

.process-item {
    width: 22%;
    position: relative;
    z-index: 2;
}

.circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 0 1px var(--gold-dim), 0 0 0 6px var(--navy-900);
}

.circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.number {
    position: absolute;
    top: -8px;
    left: 28%;
    transform: translateX(-50%);
    width: 46px;
    height: 46px;
    background: var(--navy-900);
    color: var(--ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, background 0.3s ease;
}

.number span {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 20px;
    line-height: 1;
    position: relative;
}

.process-item:hover .number {
    background: var(--gold);
    color: var(--navy-900);
}

.process-item:hover .number span {
    animation: numberFlash 0.5s ease;
}

@keyframes numberFlash {
    0%   { opacity: 1; transform: scale(1); }
    40%  { opacity: 0; transform: scale(0.6); }
    100% { opacity: 1; transform: scale(1); }
}


.process-item h3 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 22px;
    margin-bottom: 14px;
}

.process-item p {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--muted);
}


.circle::after {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 1px dashed var(--gold);
    opacity: 0;
    transform-origin: center;
}

.process-item:hover .circle::after {
    opacity: 1;
    animation: rotateDashed 6s linear infinite;
}

@keyframes rotateDashed {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}


/* Планшеты и мобильные */
@media (max-width: 1024px) {
    .services {
        padding: 60px 20px;
    }
    
    .process-wrapper {
        flex-wrap: wrap;
        justify-content: center;
        gap: 50px;
    }

    .process-item {
        width: 45%; /* По 2 в ряд */
    }

    .process-line {
        display: none; /* Прячем кривую линию, она не ложится в 2 ряда */
    }
}

@media (max-width: 768px) {
    .banner-content h1 {
        font-size: 32px;
    }

    .process-header h2 {
        font-size: 32px;
        margin-bottom: 50px;
    }

    .process-item {
        width: 100%; /* По 1 в ряд */
    }

    .service-card {
        justify-content: flex-start;
        gap: 16px;
        padding: 28px 4px;
    }

    .service-card::before {
        width: 30px;
        font-size: 14px;
    }

    .service-icon {
        width: 48px;
        height: 48px;
    }

    .service-card img {
        width: 22px;
        height: 22px;
    }

    .service-card p {
        font-size: 19px;
    }

    .service-card::after {
        display: none;
    }
    /* Секция процесса */
    .process-section {
        padding: 50px 10%;
    }
    .process-header h2 {
        margin: 20px 0;
    }

    .circle {
        width: 150px;
        height: 150px;
    }

    .circle::after {
        width: 170px;
        height: 170px;
        top: -10px;
        left: -10px;
    }
    

}

@media (max-width: 480px) {
    .service-card img {
        width: 22px;
        height: 22px;
    }

    .process-item h3 {
        font-size: 24px;
    }

    .process-item p {
        font-size: 16px;
    }
    
    .number {
        left: 50%; /* Центрируем номер на мобильных */
    }
}