/* Доработки архивной темы Wersis. Правила загружаются после archive-layout.css. */
@font-face {
    font-family: "Montserrat Wersis Menu";
    src: url("fonts/Montserrat-Medium.ttf") format("truetype");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Wersis Serif";
    src: url("fonts/BerlingskeSerif-Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

body.home h2:is(.h2, .cases-title, .h2-2, .h2-3, .h2-4, .h2-5, .h2-6, .h2-7, .h2-8),
.wersis-contact-layout h2 {
    font: 700 clamp(24px, 2.2vw, 34px)/1.2 "Wersis Serif", Georgia, serif;
    color: #25173a;
}

@media (max-width: 767px) {
    body.home h2:is(.h2, .cases-title, .h2-2, .h2-3, .h2-4, .h2-5, .h2-6, .h2-7, .h2-8) {
        font-size: 24px !important;
        line-height: 1.2 !important;
    }
}

body > :is(#main-content, #contacts, .footer-bottom) {
    isolation: isolate;
}

.wersis-skip {
    top: 1rem;
    transform: translateY(calc(-100% - 1rem));
    font: 600 16px/1.4 Arial, sans-serif;
}

.wersis-skip:focus { transform: none; }

.wersis-header .wersis-nav li {
    margin-bottom: 0;
}

.wersis-header .wersis-header-contacts img {
    width: 38px;
    height: 38px;
}

.wersis-header .wersis-header-phone {
    font-size: 23px;
}

.wersis-header .wersis-header-phone:is(:hover, :focus-visible) {
    color: #c88c85;
    text-decoration: none;
}

@media (min-width: 992px) {
    .wersis-header .wersis-logo img { transform: translateY(-3px); }
}

.wersis-header .wersis-nav a {
    display: block;
    font: 500 20px/1.35 "Montserrat Wersis Menu", Arial, sans-serif;
}

.wersis-header .wersis-nav a:is(:hover, :focus-visible) {
    color: #c88c85;
    text-decoration: none;
}

.wersis-header .wersis-nav a:focus-visible {
    outline: 2px solid #c88c85;
    outline-offset: 4px;
}

a:hover {
    color: #9224de;
}

@media (max-width: 1400px) {
    .wersis-header .wersis-desktop-nav a { font-size: 17px; }
}

@media (max-width: 991px) {
    .wersis-header .wersis-mobile-menu a { font-size: 23px; }
}

@media (max-width: 767px) {
    .wersis-header .wersis-header-contacts img { width: 24px; height: 24px; }
    .wersis-header .wersis-header-phone { font-size: 14px; }
}

@media (max-width: 360px) {
    .wersis-header-inner { flex-wrap: nowrap; gap: 5px; }
    .wersis-header .wersis-logo { margin-right: 0; }
    .wersis-header .wersis-logo img { width: 74px; }
    .wersis-header .wersis-header-contacts img { width: 20px; height: 20px; }
    .wersis-header .wersis-header-phone { font-size: 13px; }
}

body.home .section-4 {
    isolation: isolate;
    min-height: 0;
    padding: clamp(50px, 5.5vw, 92px) 0 clamp(55px, 5.2vw, 104px);
}

body.home .wersis-skip {
    top: 1rem;
    font: 600 15px/1.4 Arial, sans-serif;
}

body.home .wersis-skip:not(:focus) {
    clip-path: inset(50%);
}

body.home .section-4::after {
    bottom: 0;
    height: clamp(70px, 10.2vw, 195px) !important;
    background-position: center top;
    background-size: 100% 167%;
    pointer-events: none;
}

body.home .section-4 .l-constrained-5 {
    margin-top: 0;
}

body.home .section-4 .row {
    align-items: end;
}

body.home .section-4 .row > :first-child {
    padding-bottom: clamp(42px, 5vw, 76px);
}

body.home .section-4 .h1 {
    max-width: 100%;
    font-size: clamp(28px, 2.8vw, 48px);
    line-height: 1.15;
    text-wrap: balance;
    overflow-wrap: normal;
}

body.home .section-4 .text-25 {
    max-width: 35em;
    margin: 18px 0 26px;
    font-size: clamp(16px, 1.4vw, 21px);
    line-height: 1.5;
}

body.home .section-4 :is(.home-btn, .mobile-btn) {
    min-height: 66px;
    width: fit-content;
    max-width: 100%;
    padding: 12px 20px;
}

body.home .section-4 :is(.home-btn, .mobile-btn):focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

body.home .section-4 :is(.home-btn, .mobile-btn):hover {
    background-image: linear-gradient(90deg, #fdccc8, #c37676);
}

body.home .section-4 :is(.home-btn, .mobile-btn) .flare {
    display: none;
}

body.home .section-4 .advantages-block {
    max-width: 100%;
    margin-top: 22px;
}

body.home .section-4 .advantages-item {
    padding: 10px 12px;
    background: #faf4fb;
    line-height: 1.35;
}

body.home .section-4 .advantages-item__img-2::before {
    content: "";
    display: block;
    width: 42px;
    height: 50px;
    background: url("home-icons/experience.svg") center / contain no-repeat;
}

body.home .section-4 .sloi-24 {
    position: static;
    display: block;
    width: min(100%, 315px);
    max-width: 100%;
    height: auto;
    margin: 0;
}

@media (min-width: 992px) {
    body.home .section-4 .row > :first-child { width: 57%; }
    body.home .section-4 .vera_img { width: 43%; }
}

@media (max-width: 767px) {
    body.home .section-4 {
        padding: 32px 0 calc(clamp(45px, 10.2vw, 78px) + 12px);
    }

    body.home .section-4::after {
        height: clamp(45px, 10.2vw, 78px) !important;
    }

    body.home .section-4 .l-constrained-5 {
        margin-top: 0 !important;
    }

    body.home .section-4 .row > :first-child,
    body.home .section-4 .vera_img {
        width: 100%;
    }

    body.home .section-4 .row > :first-child {
        padding-bottom: 8px;
    }

    body.home .section-4 .h1 {
        font-size: clamp(24px, 6.6vw, 34px) !important;
    }

    body.home .section-4 .text-25 {
        margin: 14px 0 20px;
        padding: 0 !important;
        font-size: 16px !important;
    }

    body.home .section-4 .mobile-btn {
        display: flex;
        width: 100%;
        min-height: 64px;
        margin: 16px 0 0;
        padding-inline: 14px;
        gap: 10px;
    }

    body.home .section-4 .mobile-btn .text-23 {
        margin: 0 !important;
        font: 700 13px/1.25 Arial, sans-serif !important;
    }
    body.home .section-4 .mobile-btn .text-24 { margin-top: 4px !important; font-size: 13px !important; }
    body.home .section-4 .vera_img { justify-content: center; }
    body.home .section-4 .sloi-24 { width: min(48vw, 195px); }
}

#cases, #howto {
    scroll-margin-top: 76px;
}

body.home .cases {
    padding-block: clamp(18px, 2vw, 28px);
}

body.home .cases-title {
    font-size: clamp(26px, 2.25vw, 34px);
    line-height: 1.15;
    margin-bottom: 18px;
}

body.home .cases-item {
    padding: clamp(16px, 1.55vw, 24px);
    padding-inline: clamp(22px, 2vw, 34px);
}

@media (min-width: 768px) {
    body.home .cases-wrapper { align-items: stretch; }
}

body.home .cases-top__block {
    margin-bottom: 10px;
}

body.home .cases-top__block-left {
    flex: 0 0 66px;
    height: 66px;
    border-radius: 50%;
    justify-content: center;
}

body.home .cases-top__block-left img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 7px;
    border-radius: inherit;
}

body.home :is(.cases-top__block-right, .cases-subtitle, .cases-text, .cases-results li) {
    font-size: 16px;
    line-height: 1.3;
}

body.home .cases-subtitle {
    margin-bottom: 6px;
}

body.home .cases-text {
    padding-bottom: 10px;
}

body.home .cases-results li {
    gap: 8px;
    margin-bottom: 6px;
}

body.home .cases-results li:last-child {
    margin-bottom: 0;
}

body.home .cases-results li::before {
    flex-basis: 20px;
    height: 20px;
    font-size: 13px;
}

@media (min-width: 992px) and (max-height: 740px) {
    body.home .cases { padding-block: 12px; }
    body.home .cases-title { font-size: 30px; margin-bottom: 12px; }
    body.home .cases-item { padding: 16px 24px; }
    body.home .cases-top__block { margin-bottom: 8px; }
    body.home .cases-top__block-left { flex-basis: 52px; height: 52px; }
    body.home :is(.cases-text, .cases-results li) { font-size: 15px; line-height: 1.24; }
    body.home .cases-results li::before { flex-basis: 17px; height: 17px; }
}

@media (min-width: 1400px) and (max-height: 740px) {
    body.home .cases > .container { max-width: 1380px; }
}

body.home .section-3 {
    display: grid;
    align-items: center;
    height: auto;
    margin: 0;
    padding: 24px 0 !important;
    background-size: auto 100%;
    background-position: left center;
    background-color: #fff;
}

body.home .section-3 .blok-s-tekstom {
    padding: clamp(16px, 2.3vw, 32px) !important;
}

body.home .section-3 .blok-s::before {
    height: 32px;
    bottom: -8px;
    left: 8%;
    width: 84%;
}

body.home .section-3 .h2-3 {
    margin: 0 0 14px;
    padding: 0;
    left: 0;
}

body.home .section-3 .blok-s-tekstom .row {
    align-items: center;
}

body.home .section-3 .blok-s-tekstom .mb-3 {
    margin-bottom: 8px !important;
}

body.home .section-3 .blok-s-tekstom > .card {
    min-height: 0 !important;
}

body.home .section-3 .card-body {
    padding: 5px 0 5px 8px;
}

body.home .section-3 .text-14 {
    margin: 0;
    font-size: clamp(36px, 4.2vw, 64px) !important;
    line-height: 1.05;
}

body.home .section-3 .problem-text1 {
    margin: 0;
    font-size: clamp(16px, 1.2vw, 19px) !important;
    line-height: 1.4;
}

@media (min-width: 768px) {
    body.home .section-3 { min-height: clamp(380px, 68vh, 540px); }
    body.home #howto { background-size: auto min(100%, 590px); background-position: right bottom; }
}

@media (max-width: 767px) {
    body.home .section-3 { background-image: none; min-height: 0; }
    body.home .section-3 > .container > .row > :last-child { order: -1 !important; }
    body.home .section-3 .man-thinks {
        display: block !important;
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 30vh;
        object-fit: contain;
        margin: 0 auto 12px;
    }
}

@media (max-width: 360px) {
    body.home .section-3 .man-thinks { max-height: 23vh; }
}

body.home .section-2 .card-img-top {
    height: auto;
    aspect-ratio: 438 / 260;
    object-fit: cover;
}

body.home #howto img {
    max-width: 100%;
    height: auto;
}

body.home .section-5 > .container > .row {
    align-items: center;
}

body.home .section-5 {
    padding-block: clamp(28px, 6vh, 58px) !important;
}

body.home .section-5 .notebook2 {
    position: static !important;
    margin-inline: 0 !important;
    max-width: 100%;
}

@media (min-width: 992px) {
    body.home .section-5 .notebook2 { width: 41.666667%; }
}

@media (min-width: 768px) and (max-width: 991px) {
    body.home .section-5 .notebook2 { width: 50%; }
}

body.home .section-5 .notebook-right {
    display: block;
    position: static;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

body.home .section-5 .two-btn {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

body.home .section-5 .button-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    height: auto;
    min-height: 54px;
    margin: 0;
    padding: 12px 16px !important;
    color: #fff;
    background: linear-gradient(0deg, #7f0ece, #b750ff);
    box-shadow: 0 6px #631699;
}

body.home .section-5 .button-more:hover {
    background-image: linear-gradient(0deg, #7f0ece, #a84ae9);
}

body.home .section-5 .box-btn {
    color: #18362e;
    background-image: linear-gradient(-11deg, #d4f93d, #57d5cd);
    box-shadow: 0 6px #76af23;
}

body.home .section-5 .box-btn:hover {
    background-image: linear-gradient(-11deg, #c4e837, #57d5cd);
}

body.home .section-5 .button-more:focus-visible {
    outline: 2px solid #25173a;
    outline-offset: 4px;
}

body.home .section-5 .button-more .text-27 {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    color: inherit;
}

body.home .section-5 .button-more-left {
    text-align: left;
}

body.home .section-5 .button-more-right {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin: 0;
    background: url("home-icons/cloud.svg") center / contain no-repeat;
}

body.home .section-5 .box-btn .button-more-right {
    background-image: url("home-icons/box.svg");
}

@media (max-width: 991px) {
    body.home .section-5 .two-btn { grid-template-columns: 1fr; }
}

body.home .section-6 > .container > .h2-5 {
    margin-bottom: 12px;
}

body.home .section-6 > .container > .text-29 {
    margin-bottom: 24px;
}

body.home #about {
    height: auto;
    min-height: 0;
}

.wersis-about-portrait {
    width: min(100%, 320px);
    margin: 0 auto;
}

.wersis-about-photo {
    display: block;
    width: 100%;
    height: auto;
    mask-image: linear-gradient(to bottom, #000 83%, transparent);
}

@media (max-width: 767px) {
    .wersis-about-portrait { width: min(62%, 245px); margin-bottom: 14px; }
}

.wersis-certificate-gallery {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    max-width: 990px;
    margin: 18px auto 0;
}

body.home .wersis-certificates {
    display: flex;
    grid-column: 2;
    gap: 14px;
    max-width: none;
    overflow-x: auto;
    padding: 5px 4px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
}

.wersis-certificates::-webkit-scrollbar { display: none; }

.wersis-certificates a {
    flex: 0 0 clamp(100px, 10vw, 145px);
    scroll-snap-align: start;
}

.wersis-certificate-gallery button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #25173a;
    color: #fff;
    font: 28px/1 Arial, sans-serif;
    cursor: pointer;
}

.wersis-certificate-gallery > button:not([hidden]) {
    display: grid;
    place-items: center;
    border: 1px solid #d9c6e4;
    background: #f5edf8;
    color: #632c82;
}

.wersis-certificate-gallery > button:not(:disabled):hover {
    background: #632c82;
    color: #fff;
}

.wersis-certificate-gallery > button::before {
    content: "";
    width: 9px;
    height: 9px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translateX(-2px) rotate(-45deg);
}

.wersis-certificate-gallery > .wersis-certificate-prev::before {
    transform: translateX(2px) rotate(135deg);
}

.wersis-certificate-gallery button:disabled {
    opacity: .36;
    cursor: default;
}

.wersis-certificate-gallery :is(a, button):focus-visible {
    outline: 2px solid #763da6;
    outline-offset: 2px;
}

.wersis-certificate-dialog {
    width: min(94vw, 720px);
    max-height: 94vh;
    padding: 8px 12px 12px;
    border: 0;
    border-radius: 14px;
    background: #f8f5fa;
}

.wersis-certificate-dialog::backdrop {
    background: rgb(20 12 32 / 78%);
}

.wersis-certificate-dialog form {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 6px;
}

.wersis-certificate-dialog img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(94vh - 66px);
    margin: 0 auto;
}

@media (prefers-reduced-motion: no-preference) {
    .wersis-certificates { scroll-behavior: smooth; }
}

@media (max-width: 767px) {
    .wersis-certificate-gallery { gap: 6px; }
    .wersis-certificate-gallery > button { width: 32px; height: 36px; }
}

body.home .wersis-review-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 840px;
    margin: 28px auto 0;
    padding: 0 0 12px;
}

body.home .wersis-reviews {
    padding-bottom: 26px;
}

body.home .wersis-review-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    min-height: 66px;
    border-radius: 20px;
    text-decoration: none;
}

body.home .wersis-review-links :is(img, svg) {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
}

body.home .wersis-review-links .pink-button {
    color: #25173a;
    background: linear-gradient(90deg, #fdccc8, #ea9595);
    box-shadow: 0 6px #a06c66;
}

body.home .wersis-review-links .pink-button:hover {
    background-image: linear-gradient(90deg, #fdccc8, #c37676);
}

body.home .wersis-review-links .vk-button {
    color: #fff;
    background: linear-gradient(0deg, #7f0ece, #b750ff);
    box-shadow: 0 6px #631699;
}

body.home .wersis-review-links .vk-button:hover {
    background-image: linear-gradient(0deg, #7f0ece, #a84ae9);
}

@media (max-width: 767px) {
    body.home .wersis-review-links { grid-template-columns: 1fr; }
}

body.home .section-8 .gray-block1 {
    overflow: hidden;
    padding: clamp(16px, 3vw, 40px) !important;
}

body.home .section-8 :is(.how-work_img-left, .how-work_img-right, .how-work_img-left img, .how-work_img-right img) {
    position: static !important;
}

body.home .section-8 :is(.how-work_img-left, .how-work_img-right) img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 330px;
    margin: 0 auto;
    object-fit: contain;
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent),
                linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
    mask-composite: intersect;
}

@media (min-width: 768px) {
    body.home .section-8 .how-work_img-right { order: 3 !important; }
}

body.home #quiz {
    height: auto;
    min-height: 0;
    overflow: clip;
}

body.home #quiz::before {
    content: none;
}

.wersis-quiz-layout {
    --robot-width: clamp(265px, 32vw, 550px);
    --robot-left: min(0px, (100% - 100vw) / 2);
    --gripper-top: -77px;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
    margin-top: 100px;
}

.wersis-quiz-layout .wersis-quiz {
    position: relative;
    z-index: 1;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: clamp(18px, 3vw, 38px);
    border-radius: 20px 0 0 20px;
    background: #f3f1f2;
    box-shadow: none;
}

.wersis-quiz-meter {
    display: block;
    width: 100%;
    height: 28px;
    accent-color: #763da6;
    appearance: none;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.wersis-quiz-meter::-webkit-progress-bar { background: #fff; }
.wersis-quiz-meter::-webkit-progress-value { background: #763da6; border-radius: 999px; }
.wersis-quiz-meter::-moz-progress-bar { background: #763da6; border-radius: 999px; }
.wersis-quiz-progress { margin-top: 8px; }

.wersis-quiz-layout legend {
    width: 100%;
    margin-bottom: 18px;
    color: #25173a;
    font: 700 clamp(20px, 1.7vw, 25px)/1.3 Georgia, serif;
    text-align: center;
}

.wersis-quiz-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.wersis-quiz .wersis-quiz-options > label {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
    margin: 0;
    padding: 12px clamp(14px, 2vw, 24px);
    border: 1px solid #d4cbd6;
    border-radius: 10px;
    background: #fff;
}

.wersis-quiz-options input { flex: none; }

.wersis-quiz-layout legend:focus { outline-color: #763da6; }

.wersis-quiz-note {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 14px;
    padding: clamp(18px, 3vw, 38px);
    border-radius: 0 20px 20px 0;
    background: linear-gradient(#f7c9c4, #d1a09a);
    color: #25173a;
    font: 17px/1.5 Arial, sans-serif;
    text-align: center;
}

.wersis-quiz-note img { width: 118px; height: auto; }
.wersis-quiz-note p { margin: 0; }

.wersis-quiz-robot,
.wersis-quiz-gripper {
    position: absolute;
    pointer-events: none;
}

.wersis-quiz-robot {
    width: var(--robot-width);
    max-width: none;
    left: var(--robot-left);
    top: calc(var(--gripper-top) - var(--robot-width) * .19);
}

.wersis-quiz-gripper {
    z-index: 2;
    width: min(125px, var(--robot-width) * .28);
    left: calc(var(--robot-left) + var(--robot-width) * .76);
    top: var(--gripper-top);
}

@media (max-width: 767px) {
    .wersis-quiz-layout { grid-template-columns: 1fr; margin-top: 20px; }
    .wersis-quiz-options { grid-template-columns: 1fr; }
    .wersis-quiz-layout .wersis-quiz { border-radius: 20px 20px 0 0; }
    .wersis-quiz-note { border-radius: 0 0 20px 20px; }
    .wersis-quiz-robot, .wersis-quiz-gripper { display: none; }
}

.wersis-posts-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.wersis-posts-heading .h2 { margin: 0; }

.wersis-blog-link {
    padding: 12px 20px;
    border-radius: 12px;
    background: #763da6;
    color: #fff;
    font: 600 16px/1.3 Arial, sans-serif;
}

.wersis-blog-link:hover { background: #632c82; color: #fff; }

body.home .wersis-archive-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.wersis-post-cover { display: block; width: 100%; aspect-ratio: 425 / 300; object-fit: cover; }
.wersis-post-copy { padding: 18px; }
.wersis-post-copy p { margin: 0; }
.wersis-post-category { display: inline-block; margin-bottom: 8px; color: #632c82; font-size: 13px; font-weight: 700; }
.wersis-archive-card h3 a { text-decoration: none; }
.wersis-archive-card h3 a:is(:hover, :focus-visible) { color: #8b3eac; }

.wersis-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    margin-top: auto;
    padding: 12px 18px;
    border-top: 1px solid #eadfed;
    background: #faf7fb;
    color: #51465e;
    font: 400 14px/1.4 Arial, sans-serif;
}

.wersis-post-meta :is(span, a) { display: inline-flex; align-items: center; gap: 4px; }
.wersis-post-meta img { width: 16px; height: 16px; }
.wersis-post-meta time { margin-left: auto; white-space: nowrap; }

.wersis-contact-section {
    position: relative;
    isolation: isolate;
    padding-top: clamp(28px, 5vw, 64px);
    background: #f1ebe8;
    color: #25173a;
}

.wersis-contact-background {
    position: absolute;
    z-index: -1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.wersis-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 32%);
    align-items: end;
    gap: clamp(20px, 5vw, 72px);
}

.wersis-contact-layout h2 {
    max-width: 30ch;
    margin: 0 0 12px;
}

.wersis-contact-layout > div { padding-bottom: clamp(28px, 5vw, 64px); }
.wersis-contact-layout p { max-width: 51ch; margin: 0 0 20px; font: 17px/1.45 Arial, sans-serif; }
.wersis-contact-layout figure { width: min(100%, 350px); margin: 0 auto; }
.wersis-contact-layout figure img { display: block; width: 100%; height: auto; }

.wersis-contact-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
    max-width: 610px;
    margin: 0;
    font: 16px/1.45 Arial, sans-serif;
}

.wersis-contact-details dt { margin-bottom: 3px; font: 700 18px/1.3 "Wersis Serif", Georgia, serif; }
.wersis-contact-details dd { margin: 0; overflow-wrap: anywhere; }
.wersis-contact-details a[href^="tel:"] { white-space: nowrap; font-weight: 700; }
.wersis-contact-icons { display: flex; gap: 8px; }
.wersis-contact-icons img { display: block; width: 36px; height: 36px; }

.footer-bottom .text-63 {
    font-family: "Wersis Serif", Georgia, serif;
}

@media (max-width: 767px) {
    .wersis-contact-layout { grid-template-columns: 1fr; }
    .wersis-contact-layout > div { padding-bottom: 0; }
    .wersis-contact-layout figure { width: min(100%, 210px); }
    .wersis-contact-background {
        inset: auto 0 0;
        height: 275px;
        object-position: right bottom;
        mask-image: linear-gradient(transparent, #000 22%);
    }
    .footer-bottom > .container > .d-flex { gap: 10px 20px; }
}

@media (max-width: 360px) {
    .wersis-contact-details { grid-template-columns: 1fr; }
}
