.home-modern {
    --hm-teal: #00b0c8;
    --hm-teal-dark: #007e91;
    --hm-ink: #073241;
    --hm-muted: #5c7b86;
    --hm-line: rgba(0, 176, 200, .18);
    --hm-soft: #eefbfc;
    --hm-white: #ffffff;
    background: #f7fcfd;
    color: var(--hm-ink);
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
    overflow: hidden;
}

.home-modern a,
.home-modern button {
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.hm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--hm-teal-dark);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hm-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--hm-teal);
    border-radius: 999px;
}

.hm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 6px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.hm-btn--primary {
    background: var(--hm-teal);
    color: #fff;
    box-shadow: 0 18px 35px rgba(0, 176, 200, .25);
}

.hm-btn--primary:hover {
    color: #fff;
    background: var(--hm-teal-dark);
    transform: translateY(-2px);
}

.hm-btn--glass {
    color: #fff;
    border: 1px solid rgba(255,255,255,.56);
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
}

.hm-btn--glass:hover {
    color: var(--hm-ink);
    background: #fff;
}

.hm-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--hm-teal-dark);
    font-weight: 800;
}

.hm-link:hover {
    color: var(--hm-ink);
}

.hm-hero {
    position: relative;
    background:
        radial-gradient(circle at 18% 16%, rgba(255,255,255,.16), transparent 30%),
        linear-gradient(135deg, #064656 0%, #008ea3 52%, #00b0c8 100%);
    overflow: hidden;
}

.hm-hero__slide {
    position: relative;
    min-height: clamp(620px, 74vh, 760px);
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.hm-hero__slide::after {
    content: "";
    position: absolute;
    right: -8vw;
    bottom: -18vw;
    width: 38vw;
    height: 38vw;
    min-width: 420px;
    min-height: 420px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
}

.hm-hero__media {
    position: absolute;
    z-index: 1;
    top: 54px;
    right: max(28px, calc((100vw - 1140px) / 2));
    bottom: 86px;
    left: calc(50% + 18px);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 10px;
    box-shadow: 0 34px 90px rgba(7,50,65,.28);
    background: var(--hm-ink);
}

.hm-hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hm-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7,50,65,.02), rgba(7,50,65,.22));
}

.hm-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(4, 46, 58, .78) 0%, rgba(4, 46, 58, .5) 38%, rgba(4, 46, 58, .06) 58%, rgba(4, 46, 58, 0) 100%);
}

.hm-hero__container {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(260px, 1fr);
    gap: 46px;
    align-items: center;
    padding-top: 82px;
    padding-bottom: 118px;
}

.hm-hero__content {
    max-width: 540px;
    color: #fff;
}

.hm-hero__content .hm-eyebrow {
    color: #aef4ff;
    margin-bottom: 18px;
}

.hm-hero__content .hm-eyebrow::before {
    background: #fff;
}

.hm-hero__title {
    margin: 0;
    color: #fff;
    font-size: clamp(44px, 4.65vw, 74px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: 0;
    max-width: 560px;
    text-shadow: 0 18px 45px rgba(0,0,0,.28);
}

.hm-hero__desc {
    max-width: 510px;
    margin: 22px 0 0;
    color: rgba(255,255,255,.86);
    font-size: 17px;
    line-height: 1.75;
}

.hm-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hm-hero__controls {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.hm-hero__controls a {
    position: absolute;
    top: 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 999px;
    background: rgba(7, 50, 65, .44);
    box-shadow: 0 14px 30px rgba(0,0,0,.12);
    pointer-events: auto;
    transform: translateY(-50%);
    backdrop-filter: blur(12px);
}

.hm-hero__controls a:first-child {
    left: max(18px, calc((100vw - 1140px) / 2 - 72px));
}

.hm-hero__controls a:last-child {
    right: max(18px, calc((100vw - 1140px) / 2 - 72px));
}

.hm-hero__controls a:hover {
    background: var(--hm-teal);
    border-color: var(--hm-teal);
}

.hm-quick {
    position: relative;
    z-index: 4;
    margin-top: -42px;
}

.hm-quick__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--hm-line);
    box-shadow: 0 24px 55px rgba(7, 50, 65, .12);
}

.hm-quick__item {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    color: var(--hm-ink);
    background: #fff;
    font-weight: 800;
}

.hm-quick__item i {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    border-radius: 6px;
    color: #fff;
    background: var(--hm-teal);
}

.hm-quick__item:hover {
    color: var(--hm-teal-dark);
}

.hm-about,
.hm-services,
.hm-reviews,
.hm-journal,
.hm-contact {
    padding: 94px 0;
}

.hm-about__grid {
    display: grid;
    grid-template-columns: minmax(300px, .92fr) minmax(0, 1.08fr);
    gap: 56px;
    align-items: center;
}

.hm-about__visual {
    position: relative;
    min-height: 610px;
}

.hm-about__visual img {
    width: 100%;
    height: 610px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 28px 70px rgba(7,50,65,.14);
}

.hm-about__note {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 8px;
    color: #fff;
    background: rgba(7, 50, 65, .82);
    backdrop-filter: blur(14px);
    font-weight: 800;
}

.hm-about__note i {
    color: #7df3ff;
}

.hm-about__content h2,
.hm-section-head h2,
.hm-contact h2 {
    margin: 14px 0 0;
    color: var(--hm-ink);
    font-size: clamp(32px, 4vw, 54px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
}

.hm-about__lead {
    margin: 20px 0 0;
    color: var(--hm-teal-dark);
    font-size: 20px;
    line-height: 1.55;
    font-weight: 700;
}

.hm-about__text {
    margin-top: 22px;
    color: var(--hm-muted);
    font-size: 16px;
    line-height: 1.85;
}

.hm-about__text p {
    margin-bottom: 14px;
}

.hm-about__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin-top: 28px;
}

.hm-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px 34px;
    align-items: end;
    margin-bottom: 34px;
}

.hm-section-head .hm-eyebrow,
.hm-section-head h2 {
    grid-column: 1;
}

.hm-section-head .hm-link {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
}

.hm-section-head--center {
    display: block;
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
}

.hm-section-head--center .hm-eyebrow {
    justify-content: center;
}

.hm-services {
    background: #fff;
}

.hm-services__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.hm-service {
    position: relative;
    display: grid;
    grid-template-rows: 210px 1fr;
    overflow: hidden;
    color: var(--hm-ink);
    background: #fff;
    border: 1px solid var(--hm-line);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(7,50,65,.06);
}

.hm-service:hover {
    color: var(--hm-ink);
    transform: translateY(-4px);
    box-shadow: 0 26px 54px rgba(7,50,65,.12);
    z-index: 2;
}

.hm-service__media {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--hm-soft);
}

.hm-service__media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(7,50,65,.02), rgba(7,50,65,.36));
}

.hm-service__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
}

.hm-service:hover .hm-service__media img {
    transform: scale(1.06);
}

.hm-service__num {
    position: absolute;
    left: 18px;
    top: 18px;
    min-width: 40px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(7, 50, 65, .82);
    border-radius: 6px;
    font-weight: 800;
    z-index: 2;
}

.hm-service__fallback {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--hm-teal), var(--hm-ink));
    font-size: 34px;
}

.hm-service__body {
    min-height: 194px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 22px;
}

.hm-service strong {
    color: var(--hm-ink);
    font-size: 19px;
    line-height: 1.3;
}

.hm-service__body > span {
    color: var(--hm-muted);
    line-height: 1.58;
}

.hm-service em,
.hm-post em {
    margin-top: auto;
    color: var(--hm-teal-dark);
    font-style: normal;
    font-weight: 800;
}

.hm-reviews {
    background: linear-gradient(180deg, #f7fcfd 0%, #eefbfc 100%);
}

.hm-reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.hm-review {
    min-height: 305px;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--hm-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(7,50,65,.07);
}

.hm-review__top,
.hm-review__author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.hm-review__top span:first-child {
    color: var(--hm-muted);
    font-weight: 800;
}

.hm-review__top .fa-google {
    color: #4285f4;
}

.hm-review__stars {
    color: #f7a600;
    white-space: nowrap;
}

.hm-review p {
    margin: 26px 0;
    color: var(--hm-muted);
    font-size: 16px;
    line-height: 1.8;
}

.hm-review__author {
    justify-content: flex-start;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--hm-line);
}

.hm-review__author span {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: var(--hm-ink);
}

.hm-journal {
    background: #fff;
}

.hm-journal__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.hm-post {
    display: grid;
    grid-template-rows: 190px 1fr;
    overflow: hidden;
    color: var(--hm-ink);
    border: 1px solid var(--hm-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(7,50,65,.06);
}

.hm-post:hover {
    color: var(--hm-ink);
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(7,50,65,.12);
}

.hm-post__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
}

.hm-post:hover .hm-post__image img {
    transform: scale(1.05);
}

.hm-post__body {
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding: 20px;
}

.hm-post__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--hm-muted);
    font-size: 13px;
    font-weight: 700;
}

.hm-post__meta i {
    color: var(--hm-teal-dark);
}

.hm-post strong {
    color: var(--hm-ink);
    font-size: 18px;
    line-height: 1.34;
}

.hm-contact {
    background: var(--hm-ink);
}

.hm-contact__wrap {
    display: grid;
    grid-template-columns: minmax(260px, .86fr) minmax(0, 1.14fr);
    gap: 42px;
    align-items: start;
    padding: 46px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0,176,200,.22), rgba(255,255,255,.06));
    border: 1px solid rgba(255,255,255,.14);
}

.hm-contact .hm-eyebrow,
.hm-contact h2,
.hm-contact p {
    color: #fff;
}

.hm-contact .hm-eyebrow::before {
    background: #fff;
}

.hm-contact p {
    margin-top: 18px;
    color: rgba(255,255,255,.74);
    font-size: 17px;
}

.hm-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hm-form input,
.hm-form textarea {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    color: #fff;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 6px;
    background: rgba(255,255,255,.1);
    outline: none;
}

.hm-form textarea {
    grid-column: 1 / -1;
    min-height: 126px;
    padding-top: 16px;
    resize: vertical;
}

.hm-form input::placeholder,
.hm-form textarea::placeholder {
    color: rgba(255,255,255,.64);
}

.hm-form input:focus,
.hm-form textarea:focus {
    border-color: var(--hm-teal);
    background: rgba(255,255,255,.14);
}

.hm-form button {
    min-height: 54px;
    padding: 0 22px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: var(--hm-teal);
    font-weight: 800;
}

.hm-form button:hover {
    background: #fff;
    color: var(--hm-ink);
}

.hm-form .alert-notification {
    grid-column: 1 / -1;
}

@media (max-width: 1199px) {
    .hm-hero__container {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    }

    .hm-services__grid,
    .hm-reviews__grid,
    .hm-journal__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .hm-hero__slide {
        min-height: 680px;
    }

    .hm-hero__media {
        left: 46%;
    }

    .hm-quick {
        margin-top: 0;
    }

    .hm-quick__grid,
    .hm-about__grid,
    .hm-contact__wrap {
        grid-template-columns: 1fr;
    }

    .hm-about,
    .hm-services,
    .hm-reviews,
    .hm-journal,
    .hm-contact {
        padding: 70px 0;
    }

    .hm-about__visual,
    .hm-about__visual img {
        min-height: 0;
        height: 520px;
    }
}

@media (max-width: 767px) {
    .hm-hero__slide {
        min-height: 700px;
    }

    .hm-hero__shade {
        background: linear-gradient(180deg, rgba(4,46,58,.86), rgba(4,46,58,.62));
    }

    .hm-hero__media {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: .58;
    }

    .hm-hero__container {
        grid-template-columns: 1fr;
        padding-top: 82px;
        padding-bottom: 104px;
    }

    .hm-hero__title {
        font-size: 42px;
    }

    .hm-hero__desc {
        font-size: 16px;
    }

    .hm-hero__actions,
    .hm-about__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hm-btn,
    .hm-link {
        width: 100%;
        justify-content: center;
    }

    .hm-hero__controls a {
        width: 44px;
        height: 44px;
    }

    .hm-hero__controls a:first-child {
        left: 12px;
    }

    .hm-hero__controls a:last-child {
        right: 12px;
    }

    .hm-quick__grid,
    .hm-services__grid,
    .hm-reviews__grid,
    .hm-journal__grid,
    .hm-form {
        grid-template-columns: 1fr;
    }

    .hm-section-head {
        display: block;
    }

    .hm-section-head .hm-link {
        margin-top: 18px;
        justify-content: flex-start;
        width: auto;
    }

    .hm-about__visual,
    .hm-about__visual img {
        height: 430px;
    }

    .hm-contact__wrap {
        padding: 28px;
    }
}

@media (max-width: 420px) {
    .hm-hero__title {
        font-size: 36px;
    }

    .hm-hero__slide {
        min-height: 690px;
    }

    .hm-about__visual,
    .hm-about__visual img {
        height: 360px;
    }
}
