.dms-page {
    overflow: hidden;
}

.dms-page__body {
    padding: clamp(15px, 2rem, 30px) 0 clamp(15px, 2rem, 30px);
}

.dms-content {
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 5vw, 80px);
}

.dms-content > section {
    padding: 0;
}

.dms-hero {
    padding: clamp(15px, 2rem, 30px) 0;
}

.merident-breadcrumbs.dms-hero__breadcrumbs {
    margin-bottom: clamp(16px, 1.5rem, 24px);
}

.dms-hero__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(34px, 5vw, 70px);
    min-height: clamp(410px, 31rem, 540px);
    padding: clamp(36px, 5rem, 76px);
    overflow: hidden;
    border-radius: var(--md-radius-sm);
    background:
        linear-gradient(135deg, rgba(42, 53, 88, 0.98) 0%, rgba(23, 31, 57, 1) 58%, rgba(13, 20, 39, 1) 100%),
        var(--md-color-bg-primary);
    box-shadow: 0 34px 100px rgba(10, 10, 10, 0.28);
    isolation: isolate;
}

.dms-hero__panel::before,
.dms-hero__panel::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.dms-hero__panel::before {
    inset: 0;
    background:
        linear-gradient(112deg, rgba(81, 161, 217, 0.22) 0%, rgba(81, 161, 217, 0.08) 30%, rgba(81, 161, 217, 0) 60%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 1px, rgba(255, 255, 255, 0) 1px 92px);
    opacity: 0.82;
}

.dms-hero__panel::after {
    top: -34%;
    right: -14%;
    width: 42%;
    height: 168%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.018) 64%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(17deg);
}

.dms-hero--has-bg .dms-hero__panel {
    background: #11182f;
}

.dms-hero--has-bg .dms-hero__panel::before {
    background:
        linear-gradient(90deg, rgba(15, 23, 43, 0.94) 0%, rgba(15, 23, 43, 0.88) 42%, rgba(15, 23, 43, 0.72) 68%, rgba(15, 23, 43, 0.58) 100%),
        linear-gradient(135deg, rgba(81, 161, 217, 0.22) 0%, rgba(81, 161, 217, 0.08) 34%, rgba(81, 161, 217, 0) 72%);
    opacity: 1;
}

.dms-hero__background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.dms-hero__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    opacity: 1;
}

.dms-hero__main,
.dms-advantages {
    position: relative;
    z-index: 2;
}

.dms-hero__main {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.dms-hero__copy {
    max-width: 820px;
    min-width: 0;
}

.dms-hero__title {
    max-width: 790px;
    margin: 0;
    color: var(--md-color-text-primary);
    font-size: clamp(38px, 3.8rem, 64px);
    line-height: 1.04;
    font-weight: var(--md-font-weight-medium);
    letter-spacing: 0;
    text-wrap: balance;
}

.dms-hero__lead {
    max-width: 700px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.6;
    font-weight: var(--md-font-weight-light);
}

.dms-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 28px;
}

.dms-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 30px;
    border-radius: var(--md-radius-sm);
    background: linear-gradient(135deg, #51A1D9 0%, #6CC5FB 100%);
    color: var(--md-color-text-dark);
    font-size: 16px;
    line-height: 1.2;
    font-weight: var(--md-font-weight-semibold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0;
    box-shadow: 0 22px 58px rgba(81, 161, 217, 0.24);
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.dms-button:hover,
.dms-button:focus {
    color: var(--md-color-text-dark);
    box-shadow: 0 26px 64px rgba(81, 161, 217, 0.34);
}

.dms-hero__phone {
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    line-height: 1.4;
    font-weight: var(--md-font-weight-medium);
    text-decoration: none;
}

.dms-hero__phone:hover,
.dms-hero__phone:focus {
    color: #6CC5FB;
}

.dms-advantages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dms-advantages__item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    min-height: 96px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--md-radius-sm);
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.034) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 14px 34px rgba(6, 10, 22, 0.14);
    list-style: none;
    overflow: hidden;
}

.dms-advantages__item::before {
    display: none;
}

.dms-advantages__mark {
    flex: 0 0 auto;
    width: 26px;
    height: 8px;
    margin-top: 8px;
    border-radius: 8px;
    background: rgba(108, 197, 251, 0.62);
}

.dms-advantages__text {
    min-width: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    line-height: 1.42;
    font-weight: var(--md-font-weight-semibold);
    letter-spacing: 0;
}

.dms-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(28px, 4vw, 60px);
    align-items: start;
}

.dms-intro__lead-col {
    min-width: 0;
}

.service-content .dms-intro__lead {
    margin: 0;
    padding-left: clamp(18px, 2vw, 26px);
    border-left: 2px solid #6CC5FB;
    color: var(--md-color-text-primary);
    font-size: clamp(22px, 1.7rem, 28px);
    line-height: 1.28;
    font-weight: var(--md-font-weight-medium);
    letter-spacing: 0;
    text-wrap: balance;
}

.dms-intro__body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding-top: 4px;
}

.service-content .dms-intro__body p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 16px;
    line-height: 1.7;
    font-weight: var(--md-font-weight-light);
}

.dms-section-head {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 780px;
    margin-bottom: clamp(28px, 3.4vw, 44px);
}

.dms-section-head--wide {
    max-width: 920px;
}

.service-content .dms-section-head__title,
.service-content .dms-coverage__title {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    color: var(--md-color-text-primary);
    font-size: clamp(30px, 2.45rem, 42px);
    line-height: 1.08;
    font-weight: var(--md-font-weight-bold);
    letter-spacing: 0;
    text-wrap: balance;
}

.dms-title-accent {
    color: #6CC5FB;
    font-weight: var(--md-font-weight-semibold);
}

.service-content .dms-section-head__text,
.service-content .dms-coverage__lead {
    max-width: 760px;
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.62;
    font-weight: var(--md-font-weight-light);
}

.service-content .dms-insurers__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-content .dms-insurer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    list-style: none;
}

.service-content .dms-insurer::before {
    display: none;
}

.dms-insurer__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 88px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--md-radius-sm);
    background: rgba(235, 241, 247, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.dms-insurer__logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 50px;
    object-fit: contain;
}

.dms-insurer__logo[src$="vsk.svg"] {
    max-width: 62px;
    max-height: 62px;
}

.dms-insurer__logo[src$="zetta.png"],
.dms-insurer__logo[src$="energogarant.png"],
.dms-insurer__logo[src$="rosgosstrakh.png"] {
    max-height: 44px;
}

.dms-insurer__name {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13.5px;
    line-height: 1.38;
    font-weight: var(--md-font-weight-light);
}

.service-content .dms-process__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    list-style: none;
}

.service-content .dms-process__item {
    position: relative;
    min-width: 0;
    padding: clamp(28px, 3vw, 40px) clamp(18px, 2vw, 28px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    list-style: none;
    overflow: hidden;
}

.service-content .dms-process__item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.service-content .dms-process__item::before {
    display: none;
}

.dms-process__number {
    display: block;
    margin-bottom: 18px;
    color: #6CC5FB;
    font-size: 15px;
    line-height: 1;
    font-weight: var(--md-font-weight-semibold);
    font-variant-numeric: tabular-nums;
}

.service-content .dms-process__title {
    margin: 0;
    color: var(--md-color-text-primary);
    font-size: clamp(19px, 1.32rem, 22px);
    line-height: 1.28;
    font-weight: var(--md-font-weight-semibold);
    letter-spacing: 0;
}

.service-content .dms-process__text {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15.5px;
    line-height: 1.64;
    font-weight: var(--md-font-weight-light);
}

.dms-coverage {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(30px, 5vw, 78px);
    align-items: start;
}

.dms-coverage__intro {
    min-width: 0;
}

.dms-coverage__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 42px) clamp(28px, 4vw, 56px);
    min-width: 0;
}

.dms-coverage__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 0;
}

.dms-coverage__mark {
    display: inline-block;
    width: 26px;
    height: 8px;
    border-radius: 8px;
    background: rgba(108, 197, 251, 0.62);
}

.service-content .dms-coverage__item-title {
    margin: 0;
    color: var(--md-color-text-primary);
    font-size: 19px;
    line-height: 1.32;
    font-weight: var(--md-font-weight-semibold);
    letter-spacing: 0;
}

.service-content .dms-coverage__item-text {
    margin: 9px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 15.5px;
    line-height: 1.62;
    font-weight: var(--md-font-weight-light);
}

.dms-faq.service-faq {
    display: grid;
    grid-template-columns: minmax(0, 0.52fr) minmax(0, 1fr);
    gap: clamp(30px, 5vw, 76px);
    align-items: start;
    padding: 0;
}

.dms-faq .service-faq__intro {
    max-width: none;
}

.service-content .dms-faq .service-faq__title {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    color: var(--md-color-text-primary);
    font-size: clamp(30px, 2.45rem, 42px);
    line-height: 1.08;
    font-weight: var(--md-font-weight-bold);
    letter-spacing: 0;
    text-wrap: balance;
}

.service-content .dms-faq .service-faq__title > span:not(.dms-title-accent) {
    color: var(--md-color-text-primary);
}

.dms-faq .service-faq__items {
    max-width: none;
    min-width: 0;
}

.dms-faq .service-faq__item:first-child {
    padding-top: 0;
}

body.page-template-page-dms .form-section,
body.page-template-page-dms-php .form-section {
    padding: clamp(42px, 5vw, 74px) 0 clamp(52px, 6vw, 86px);
}

body.page-template-page-dms .form-section__layout,
body.page-template-page-dms-php .form-section__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    gap: clamp(30px, 5vw, 70px);
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}

body.page-template-page-dms .form-section__column,
body.page-template-page-dms-php .form-section__column,
body.page-template-page-dms .form-section__column.col-lg-auto,
body.page-template-page-dms-php .form-section__column.col-lg-auto {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
}

body.page-template-page-dms .form-section__card,
body.page-template-page-dms-php .form-section__card {
    width: 100%;
    padding: clamp(28px, 3vw, 38px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.035) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

body.page-template-page-dms .form-section__label,
body.page-template-page-dms-php .form-section__label {
    display: none;
}

body.page-template-page-dms .form-section__title,
body.page-template-page-dms-php .form-section__title,
body.page-template-page-dms .form-section__info-title,
body.page-template-page-dms-php .form-section__info-title {
    color: var(--md-color-text-primary);
    font-size: clamp(28px, 2.35rem, 40px);
    line-height: 1.08;
    font-weight: var(--md-font-weight-bold);
    letter-spacing: 0;
    text-transform: none;
}

body.page-template-page-dms .form-section__subtitle,
body.page-template-page-dms-php .form-section__subtitle {
    max-width: 500px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 16px;
    line-height: 1.62;
}

body.page-template-page-dms .form-section__input,
body.page-template-page-dms-php .form-section__input {
    min-height: 56px;
    padding: 15px 20px;
}

body.page-template-page-dms .form-section__consent,
body.page-template-page-dms-php .form-section__consent {
    color: rgba(255, 255, 255, 0.78);
}

body.page-template-page-dms .form-section__submit,
body.page-template-page-dms-php .form-section__submit {
    min-height: 52px;
    padding: 0 24px;
    letter-spacing: 0;
}

body.page-template-page-dms .form-section__info,
body.page-template-page-dms-php .form-section__info {
    width: 100%;
    gap: 28px;
    justify-content: center;
}

body.page-template-page-dms .form-section__list,
body.page-template-page-dms-php .form-section__list {
    gap: 22px;
}

body.page-template-page-dms .form-section__item,
body.page-template-page-dms-php .form-section__item {
    gap: 14px;
}

body.page-template-page-dms .form-section__item-icon,
body.page-template-page-dms-php .form-section__item-icon {
    flex: 0 0 42px;
    justify-content: flex-start;
}

body.page-template-page-dms .form-section__item-icon img,
body.page-template-page-dms-php .form-section__item-icon img {
    width: 34px;
    height: auto;
}

body.page-template-page-dms .form-section__item-title,
body.page-template-page-dms-php .form-section__item-title {
    color: var(--md-color-text-primary);
    font-size: 21px;
    line-height: 1.28;
}

body.page-template-page-dms .form-section__item-text,
body.page-template-page-dms-php .form-section__item-text {
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    line-height: 1.55;
}

@media (max-width: 1199.98px) {
    .dms-hero__panel {
        padding: clamp(30px, 4rem, 56px);
    }

    .dms-hero__title {
        font-size: clamp(36px, 3.4rem, 54px);
    }

    .service-content .dms-insurers__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .service-content .dms-process__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-content .dms-process__item:nth-child(2n) {
        border-right: 0;
    }
}

@media (max-width: 991.98px) {
    .dms-hero__panel {
        min-height: auto;
    }

    .dms-hero--has-bg .dms-hero__panel::before {
        background:
            linear-gradient(180deg, rgba(15, 23, 43, 0.9) 0%, rgba(15, 23, 43, 0.82) 100%),
            linear-gradient(135deg, rgba(81, 161, 217, 0.18) 0%, rgba(81, 161, 217, 0) 70%);
    }

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

    .dms-intro,
    .dms-coverage,
    .dms-faq.service-faq {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    body.page-template-page-dms .form-section__layout,
    body.page-template-page-dms-php .form-section__layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }
}

@media (max-width: 767.98px) {
    .dms-content {
        gap: 56px;
    }

    .dms-hero__panel {
        padding: 28px;
    }

    .dms-hero__panel::after {
        display: none;
    }

    .dms-hero__title {
        font-size: clamp(32px, 2.8rem, 44px);
        line-height: 1.08;
    }

    .dms-hero__lead {
        font-size: 17px;
    }

    .dms-hero__background img {
        object-position: center top;
    }

    .service-content .dms-insurers__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 12px;
    }

    .service-content .dms-process__list,
    .dms-coverage__grid {
        grid-template-columns: 1fr;
    }

    .service-content .dms-process__item,
    .service-content .dms-process__item:not(:last-child) {
        padding-right: 0;
        padding-left: 0;
        border-right: 0;
    }

    .dms-insurer__logo-wrap {
        min-height: 76px;
        padding: 14px 12px;
    }

    .dms-insurer__logo {
        max-height: 42px;
    }

    .dms-insurer__logo[src$="vsk.svg"] {
        max-width: 54px;
        max-height: 54px;
    }

    .dms-insurer__name {
        font-size: 12.5px;
    }
}

@media (max-width: 575.98px) {
    .dms-hero {
        padding: clamp(15px, 1.5rem, 24px) 0;
    }

    .dms-hero__panel {
        gap: 28px;
        padding: 22px;
    }

    .dms-hero__title {
        font-size: clamp(29px, 2.3rem, 38px);
    }

    .dms-hero__lead {
        font-size: 16px;
    }

    .dms-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .dms-button {
        width: 100%;
        min-height: 54px;
        padding-right: 20px;
        padding-left: 20px;
    }

    .dms-hero__phone {
        width: 100%;
        text-align: center;
    }

    .dms-advantages__item {
        min-height: 84px;
        padding: 16px;
    }

    .dms-advantages__text {
        font-size: 16px;
    }

    .service-content .dms-section-head__title,
    .service-content .dms-coverage__title,
    .service-content .service-faq__title {
        font-size: clamp(28px, 2.2rem, 34px);
    }

    body.page-template-page-dms .form-section,
    body.page-template-page-dms-php .form-section {
        padding: 42px 0 56px;
    }

    body.page-template-page-dms .form-section__card,
    body.page-template-page-dms-php .form-section__card {
        padding: 24px;
    }
}
