.section-block {
    padding: 42px 0;
}

.home-hero {
    position: relative;
    padding: 28px 0 24px;
}

.home-hero__bg {
    position: relative;
    height: 680px;
    overflow: hidden;
    border-radius: 34px;
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
}

.home-hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 16, 28, 0.68) 0%, rgba(10, 16, 28, 0.36) 45%, rgba(10, 16, 28, 0.16) 100%);
}

.home-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-hero .container {
    position: relative;
    margin-top: -680px;
    z-index: 2;
    height: 680px;
    display: flex;
    align-items: center;
}

.home-hero__content {
    max-width: 780px;
    padding: 36px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

.home-hero__label {
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-hero__content h1 {
    margin: 0 0 18px;
    font-size: 58px;
    line-height: 1.02;
    font-weight: 800;
    color: #fff;
}

.home-hero__content p {
    margin: 0 0 24px;
    max-width: 660px;
    font-size: 18px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
}

.home-hero__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.home-hero__facts {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.home-hero__fact {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 14px;
    font-weight: 600;
}

.services-grid,
.advantages-grid,
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.process-grid {
    grid-template-columns: repeat(4, 1fr);
}

.glass-card {
    min-height: 280px;
    padding: 28px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.service-card h3,
.advantage-card h3,
.process-card h3 {
    margin: 0 0 14px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    color: #111827;
}

.service-card p,
.advantage-card p,
.process-card p {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.7;
    color: #566273;
}

.service-card__list {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.service-card__list li {
    position: relative;
    padding-left: 18px;
    font-size: 15px;
    line-height: 1.65;
    color: #334155;
}

.service-card__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1f6fff;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1f6fff;
    font-size: 16px;
    font-weight: 700;
}

.service-link::after {
    content: "→";
    transition: transform 0.2s ease;
}

.service-link:hover::after {
    transform: translateX(4px);
}

.service-card--accent {
    background: linear-gradient(180deg, rgba(31,111,255,0.12), rgba(255,255,255,0.64));
}

.about-card {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 32px;
    padding: 28px;
}

.about-card__media {
    overflow: hidden;
    border-radius: 24px;
    min-height: 420px;
}

.about-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-card__content h2 {
    margin: 0 0 18px;
    font-size: 46px;
    line-height: 1.08;
    font-weight: 800;
    color: #111827;
}

.about-card__content p {
    margin: 0 0 16px;
    font-size: 17px;
    line-height: 1.8;
    color: #566273;
}

.about-list {
    margin: 22px 0 26px;
    padding: 0;
    list-style: none;
}

.about-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.7;
    color: #1f2937;
}

.about-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1f6fff;
}

.advantages-grid {
    grid-template-columns: repeat(5, 1fr);
}

.advantage-card {
    min-height: 220px;
}

.advantage-card h3 {
    font-size: 22px;
}

.process-card {
    min-height: 100%;
}

.process-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(41,124,255,0.96), rgba(25,111,255,0.88));
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.consult-card {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr;
    gap: 24px;
    align-items: center;
    padding: 30px 34px;
}

.consult-card__left h2 {
    margin: 0 0 14px;
    font-size: 40px;
    line-height: 1.1;
    font-weight: 800;
    color: #111827;
}

.consult-card__left p {
    margin: 0;
    font-size: 17px;
    line-height: 1.75;
    color: #5f6b7a;
}

.consult-card__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.consult-phone {
    font-size: 34px;
    line-height: 1.1;
    font-weight: 800;
    color: #111827;
}

.contacts-card {
    padding: 34px;
}

.contacts-card__content h2 {
    margin: 0 0 22px;
    font-size: 44px;
    line-height: 1.08;
    font-weight: 800;
    color: #111827;
}

.contacts-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 28px;
    margin-bottom: 28px;
}

.contacts-item {
    padding: 22px 24px;
    border-radius: 22px;
    background: rgba(255,255,255,0.48);
    border: 1px solid rgba(255,255,255,0.45);
    box-shadow: 0 11px 12px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.contacts-item__label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contacts-item p {
    margin: 0;
    font-size: 24px;
    line-height: 1.45;
    color: #111827;
}

.contacts-item a {
    color: #111827;
}

.contacts-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

@media (max-width: 1200px) {
    .services-grid,
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about-card,
    .consult-card {
        grid-template-columns: 1fr;
    }

    .consult-card__right {
        align-items: flex-start;
    }

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

    .home-hero__content h1 {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .section-block {
        padding: 28px 0;
    }

    .home-hero {
        padding-top: 14px;
    }

    .home-hero__bg,
    .home-hero .container {
        height: 560px;
    }

    .home-hero .container {
        margin-top: -560px;
    }

    .home-hero__content {
        padding: 24px;
    }

    .home-hero__content h1 {
        font-size: 36px;
    }

    .home-hero__content p {
        font-size: 16px;
    }

    .services-grid,
    .advantages-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .glass-card,
    .contacts-card,
    .consult-card,
    .about-card {
        padding: 22px;
    }

    .service-card h3,
    .advantage-card h3,
    .process-card h3,
    .about-card__content h2,
    .consult-card__left h2,
    .contacts-card__content h2 {
        font-size: 28px;
    }

    .consult-phone,
    .contacts-item p {
        font-size: 22px;
    }
}

/* RESPONSIVE FIX: mobile home page */
.home-hero__content,
.glass-card,
.about-card,
.consult-card,
.contacts-card,
.contacts-item {
    min-width: 0;
}

.home-hero__content h1,
.home-hero__content p,
.service-card h3,
.advantage-card h3,
.process-card h3,
.about-card__content h2,
.consult-card__left h2,
.contacts-card__content h2,
.contacts-item p,
.consult-phone {
    overflow-wrap: anywhere;
}

@supports (text-wrap: balance) {
    .home-hero__content h1,
    .service-card h3,
    .advantage-card h3,
    .process-card h3,
    .about-card__content h2,
    .consult-card__left h2,
    .contacts-card__content h2 {
        text-wrap: balance;
    }
}

@media (max-width: 768px) {
    .section-block {
        padding: 26px 0;
    }

    .home-hero {
        padding-top: 8px;
        padding-bottom: 18px;
    }

    .home-hero__bg,
    .home-hero .container {
        height: 620px;
    }

    .home-hero__bg {
        width: min(100%, calc(100% - 28px));
        border-radius: 28px;
    }

    .home-hero .container {
        margin-top: -620px;
    }

    .home-hero__content {
        width: 100%;
        max-width: none;
        padding: 24px;
        border-radius: 26px;
    }

    .home-hero__label {
        margin-bottom: 14px;
        padding: 7px 11px;
        font-size: 11px;
    }

    .home-hero__content h1 {
        font-size: clamp(31px, 8.5vw, 38px);
        line-height: 1.08;
        letter-spacing: -0.03em;
    }

    .home-hero__content p {
        margin-bottom: 20px;
        font-size: 16px;
        line-height: 1.62;
    }

    .home-hero__actions,
    .contacts-actions {
        gap: 10px;
    }

    .glass-card,
    .contacts-card,
    .consult-card,
    .about-card {
        padding: 22px;
        border-radius: 24px;
    }

    .about-card__media {
        min-height: 260px;
        border-radius: 20px;
    }

    .service-card h3,
    .advantage-card h3,
    .process-card h3,
    .about-card__content h2,
    .consult-card__left h2,
    .contacts-card__content h2 {
        font-size: clamp(25px, 7.4vw, 30px);
        line-height: 1.15;
    }

    .service-card p,
    .advantage-card p,
    .process-card p,
    .about-card__content p,
    .consult-card__left p {
        font-size: 16px;
        line-height: 1.65;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .consult-card__right {
        align-items: stretch;
    }

    .consult-phone,
    .contacts-item p {
        font-size: clamp(20px, 6vw, 24px);
    }
}

@media (max-width: 480px) {
    .home-hero__bg,
    .home-hero .container {
        height: 650px;
    }

    .home-hero .container {
        margin-top: -650px;
    }

    .home-hero__content {
        padding: 20px;
    }

    .home-hero__content h1 {
        font-size: clamp(29px, 8.2vw, 34px);
    }

    .home-hero__actions .glass-button,
    .contacts-actions .glass-button,
    .consult-card__right .glass-button {
        width: 100%;
    }
}

/* INDEX: horizontal advantages slider */
.home-card-slider {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    align-items: center;
    gap: 16px;
}

.home-card-slider__viewport {
    overflow: hidden;
    min-width: 0;
}

.home-card-slider__track {
    --home-card-slider-gap: 20px;
    display: flex;
    gap: var(--home-card-slider-gap);
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px;
}

.home-card-slider__track::-webkit-scrollbar {
    display: none;
}

.home-card-slider__item {
    flex: 0 0 calc((100% - 40px) / 3);
    scroll-snap-align: start;
}

.home-card-slider__button {
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: #1d4ed8;
    background: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.home-card-slider__button span {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    line-height: 1;
}

.home-card-slider__button:hover {
    transform: translateY(-1px);
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.10), 0 3px 8px rgba(15, 23, 42, 0.05);
}

.home-card-slider__button:active {
    transform: translateY(0);
}

.home-card-slider__button:disabled {
    opacity: 0.38;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.home-card-slider--advantages .advantages-grid {
    display: flex;
    grid-template-columns: none;
    margin: 0;
}

.home-card-slider--advantages .advantage-card {
    min-height: 240px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.home-card-slider--advantages .advantage-card h3 {
    font-size: clamp(24px, 2.2vw, 30px);
    line-height: 1.16;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
}

.home-card-slider--advantages .advantage-card p {
    margin-bottom: 0;
}

@media (max-width: 1200px) {
    .home-card-slider__item {
        flex-basis: calc((100% - 20px) / 2);
    }
}

@media (max-width: 768px) {
    .home-card-slider {
        display: block;
        padding-bottom: 56px;
    }

    .home-card-slider__viewport {
        overflow: hidden;
    }

    .home-card-slider__track {
        padding: 4px 2px 8px;
    }

    .home-card-slider__item {
        flex-basis: 100%;
    }

    .home-card-slider__button {
        position: absolute;
        right: 0;
        bottom: 0;
        width: 44px;
        height: 44px;
    }

    .home-card-slider__button--prev {
        right: 54px;
    }

    .home-card-slider__button span {
        font-size: 34px;
    }

    .home-card-slider--advantages .advantage-card {
        min-height: 0;
        padding: 26px;
    }

    .home-card-slider--advantages .advantage-card h3 {
        font-size: clamp(22px, 6.2vw, 26px);
        line-height: 1.16;
    }

    .home-card-slider--advantages .advantage-card p {
        font-size: 16px;
        line-height: 1.68;
    }
}

@media (max-width: 380px) {
    .home-card-slider--advantages .advantage-card {
        padding: 24px;
    }

    .home-card-slider--advantages .advantage-card h3 {
        font-size: 22px;
    }
}
