html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-offset, 120px);
}

body.home-page {
    --primary: #4fd8ff;
    --primary-soft: rgba(79, 216, 255, 0.16);
    --dark: #08131f;
    --light: #f4fbff;
    --text: #15202b;
    --border: #cfe3ef;
    --success: #17b890;
    background:
        radial-gradient(circle at top left, rgba(79, 216, 255, 0.20), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 122, 89, 0.16), transparent 24%),
        linear-gradient(180deg, #f8fcff 0%, #eef6fb 42%, #f4f7fb 100%);
    color: var(--text);
}

body.home-page main {
    width: 100%;
}

body.home-page header.header {
    background: rgba(8, 19, 31, 0.78);
    backdrop-filter: blur(18px);
}

body.home-page .logo {
    color: transparent;
    background: linear-gradient(135deg, #ffffff 0%, #8ae8ff 45%, #4fd8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    letter-spacing: 3px;
}

body.home-page nav.nav a {
    color: rgba(255, 255, 255, 0.78);
}

body.home-page nav.nav a:hover {
    color: #ffffff;
}

body.home-page footer {
    background: linear-gradient(180deg, #08131f 0%, #0d1d2e 100%);
}

.home-hero {
    max-width: 1240px;
    margin: 0 auto;
    padding: 44px 20px 24px;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 30px;
    align-items: center;
}

.home-hero__copy {
    display: grid;
    gap: 20px;
    animation: fadeUp 0.8s ease both;
}

.home-kicker,
.home-section-tag,
.home-section-head span {
    display: inline-flex;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(8, 19, 31, 0.08);
    color: #0b3850;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-hero h1 {
    font-size: clamp(2.5rem, 4vw, 4.7rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    max-width: 10ch;
    color: #08131f;
}

.home-hero p {
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 62ch;
    color: rgba(21, 32, 43, 0.78);
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    border: 1px solid transparent;
}

.home-btn:hover {
    transform: translateY(-2px);
}

.home-btn--solid {
    background: linear-gradient(135deg, #08131f 0%, #0d273d 100%);
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(8, 19, 31, 0.18);
}

.home-btn--ghost {
    background: rgba(255, 255, 255, 0.6);
    color: #08131f;
    border-color: rgba(8, 19, 31, 0.12);
}

.home-hero__facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.home-hero__facts div,
.home-feature,
.home-review,
.home-contact-card,
.home-contact-form {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(207, 227, 239, 0.85);
    box-shadow: 0 18px 50px rgba(8, 19, 31, 0.08);
    backdrop-filter: blur(12px);
}

.home-hero__facts div {
    padding: 16px 16px 15px;
    border-radius: 18px;
}

.home-hero__facts strong,
.home-review__meta strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.96rem;
    color: #08131f;
}

.home-hero__facts span,
.home-review__meta span {
    color: rgba(21, 32, 43, 0.7);
    font-size: 0.9rem;
}

.home-hero__visual {
    min-width: 0;
}

.home-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    min-height: 580px;
    background: linear-gradient(180deg, #08131f 0%, #0b1725 100%);
    box-shadow: 0 28px 80px rgba(8, 19, 31, 0.26);
    user-select: none;
    -webkit-user-select: none;
}

.home-carousel *,
.home-carousel *::before,
.home-carousel *::after {
    user-select: none;
    -webkit-user-select: none;
}

.home-carousel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(79, 216, 255, 0.16), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(255, 122, 89, 0.12), transparent 24%),
        linear-gradient(180deg, transparent 0%, rgba(8, 19, 31, 0.18) 100%);
    pointer-events: none;
    z-index: 1;
}

.home-carousel__track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    will-change: transform;
}

.home-carousel__track.is-dragging {
    cursor: grabbing;
}

.home-slide {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
    isolation: isolate;
}

.home-slide img {
    width: 100%;
    height: 100%;
    min-height: 580px;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
    -webkit-user-drag: none;
    pointer-events: none;
}

.home-slide__overlay {
    position: absolute;
    inset: auto 22px 22px 22px;
    z-index: 2;
    display: grid;
    gap: 12px;
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(8, 19, 31, 0.12) 0%, rgba(8, 19, 31, 0.72) 100%);
    color: #ffffff;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.20);
}

.home-slide__eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
}

.home-slide h2 {
    font-size: clamp(1.8rem, 2.6vw, 3rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.home-slide p {
    max-width: 42ch;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.98rem;
    line-height: 1.75;
}

.home-slide__accent {
    width: fit-content;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(79, 216, 255, 0.16);
    color: #8ae8ff;
    font-weight: 700;
    font-size: 0.92rem;
}

.home-carousel__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.home-carousel__dot {
    width: 11px;
    height: 11px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, width 0.2s ease;
}

.home-carousel__dot.is-active {
    width: 32px;
    background: #4fd8ff;
}

.home-section-head {
    display: grid;
    gap: 12px;
    margin-bottom: 28px;
    align-items: start;
}

.home-section-head--compact {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.home-section-head--iconic span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(8, 19, 31, 0.92), rgba(13, 39, 61, 0.92));
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    flex: 0 0 46px;
    box-shadow: 0 10px 24px rgba(8, 19, 31, 0.15);
}

.home-section-head--compact strong {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: rgba(8, 19, 31, 0.09);
    color: #08131f;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-section-head--centered {
    width: 100%;
    justify-content: center;
}

.home-section-head h2 {
    font-size: clamp(1.5rem, 2.3vw, 2.3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #08131f;
    max-width: 20ch;
}

.home-features,
.home-reviews,
.home-contacts {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 20px 20px;
    scroll-margin-top: var(--header-offset, 120px);
}

.home-features__grid,
.home-reviews__grid,
.home-contacts__grid {
    display: grid;
    gap: 18px;
}

.home-features__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-feature {
    border-radius: 24px;
    padding: 26px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease, border-color 0.3s ease;
}

.home-feature:hover,
.home-review:hover,
.home-contact-card:hover,
.home-contact-form:hover,
.home-about__panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 62px rgba(8, 19, 31, 0.12);
}

.home-feature__icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(79, 216, 255, 0.18), rgba(255, 122, 89, 0.12));
    margin-bottom: 16px;
    font-size: 1.55rem;
}

.home-feature h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #08131f;
}

.home-feature p {
    color: rgba(21, 32, 43, 0.74);
    line-height: 1.7;
}

.home-about {
    max-width: 1240px;
    margin: 28px auto 0;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    scroll-margin-top: var(--header-offset, 120px);
}

.home-about .home-section-head {
    margin-bottom: 0;
}

.home-about .home-section-head h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.3vw, 2.3rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #08131f;
}

.home-about__panel {
    width: 100%;
    padding: 26px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(207, 227, 239, 0.85);
    box-shadow: 0 18px 50px rgba(8, 19, 31, 0.08);
    backdrop-filter: blur(12px);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.home-about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.home-about__media img {
    width: 100%;
    display: block;
    border-radius: 24px;
}

.home-about__copy {
    display: grid;
    gap: 16px;
}

.home-about__copy h2 {
    font-size: clamp(1.8rem, 2.8vw, 2.8rem);
    line-height: 1.08;
    color: #08131f;
    letter-spacing: -0.03em;
}

.home-about__copy p,
.home-about__list {
    color: rgba(21, 32, 43, 0.78);
    line-height: 1.8;
}

.home-about__list {
    list-style: none;
    display: grid;
    gap: 10px;
    padding: 0;
}

.home-about__list li {
    position: relative;
    padding-left: 26px;
}

.home-about__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4fd8ff, #ff7a59);
    box-shadow: 0 0 0 6px rgba(79, 216, 255, 0.12);
}

.home-reviews__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-review,
.home-contact-card,
.home-contact-form {
    border-radius: 24px;
    padding: 24px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease, border-color 0.3s ease;
}

.home-review {
    display: grid;
    gap: 18px;
}

.home-review__text {
    font-size: 1rem;
    line-height: 1.85;
    color: rgba(21, 32, 43, 0.84);
}

.home-review__meta {
    padding-top: 14px;
    border-top: 1px solid rgba(8, 19, 31, 0.08);
}

.home-contacts__grid {
    grid-template-columns: 0.9fr 1.1fr;
}

.home-contact-card {
    display: grid;
    gap: 10px;
    align-content: start;
}

.home-contact-card p {
    color: rgba(21, 32, 43, 0.78);
    line-height: 1.7;
}

.home-contact-form {
    display: grid;
    gap: 14px;
}

.home-contact-form input,
.home-contact-form textarea {
    width: 100%;
    border: 1px solid rgba(8, 19, 31, 0.12);
    border-radius: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.92);
    color: #08131f;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-contact-form input:focus,
.home-contact-form textarea:focus {
    outline: none;
    border-color: rgba(79, 216, 255, 0.9);
    box-shadow: 0 0 0 4px rgba(79, 216, 255, 0.12);
}

.home-contact-form textarea {
    height: 180px;
    resize: none;
    overflow: auto;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1080px) {
    .home-hero,
    .home-contacts__grid {
        grid-template-columns: 1fr;
    }

    .home-features__grid,
    .home-reviews__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-carousel,
    .home-slide img {
        min-height: 500px;
    }

    .home-about__content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .home-hero,
    .home-features,
    .home-reviews,
    .home-contacts {
        padding-left: 16px;
        padding-right: 16px;
    }

    .home-hero__facts,
    .home-features__grid,
    .home-reviews__grid {
        grid-template-columns: 1fr;
    }

    .home-section-head--compact {
        margin-bottom: 16px;
    }

    .home-carousel,
    .home-slide img {
        min-height: 420px;
    }

    .home-slide__overlay {
        inset: auto 14px 14px 14px;
        padding: 18px;
    }
}
