/* Compatibility layer for the preserved VozniNet homepage design. */
.vozninet-home { min-height: 100vh; }
.vozninet-home.admin-bar { margin-top: 0; }
.vozninet-home .container-fluid { overflow: hidden; }
.vozninet-home .screen-reader-text:focus { color: #111; background: #fff; }
.vozninet-home .header-right { display: flex; justify-content: flex-end; align-items: center; }
.vozninet-home .header .nav { display: block; }
.vozninet-home .header .nav-list .sub-menu { display: none; position: absolute; min-width: 230px; padding: 14px; background: #203d49; box-shadow: 0 12px 28px rgba(0,0,0,.25); }
.vozninet-home .header .nav-list li { position: relative; }
.vozninet-home .header .nav-list li:hover > .sub-menu,
.vozninet-home .header .nav-list li:focus-within > .sub-menu { display: block; }
.vozninet-home .header .nav-list .sub-menu li { margin: 8px 0; }
.vozninet-home .mobile-btn { display: none; min-width: 42px; height: 42px; }
.vozninet-home .promo-feed { border: 0; padding: 0; background: transparent; }
.vozninet-home .promo-feed-text { display: block; }
.vozninet-home .promo-picture img { height: auto; }
.vozninet-home .cases-picture img { width: 100%; height: 205px; object-fit: cover; display: block; }
.vozninet-home .cases-descr { margin-bottom: 0; }
.vozninet-home .reviews-list { overflow: hidden; }
.vozninet-home .reviews-arrow { color: #fff; border: 0; font-size: 22px; line-height: 1; }
.vozninet-home .reviews-arrow-right { transform: none; }
.vozninet-home .reviews-pagination { position: static; }
.vozninet-home .news-picture { display: block; }
.vozninet-home .news-picture img { width: 100%; height: 190px; object-fit: cover; display: block; }
.vozninet-home .footer-logo-text { display: inline-block; color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; }
.vozninet-home .footer-copyright { margin: 34px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.62); font-size: 14px; }
.vozninet-home .feedback .wpcf7-form { position: relative; z-index: 2; }
.vozninet-home .feedback .wpcf7-form p { margin: 0; }
.vozninet-home .feedback input:not([type="submit"]),
.vozninet-home .feedback textarea { width: 100%; }
.vozninet-home .feedback textarea { min-height: 120px; resize: vertical; }
.vozninet-home .wpcf7-response-output { color: #fff; }
.vozninet-home .btn-up { position: fixed; z-index: 60; left: 20px; bottom: 0; width: 58px; height: 50px; border: 0; border-radius: 8px 8px 0 0; background: #12ba6a; cursor: pointer; }
.vozninet-home .btn-up::before { content: ""; display: block; width: 22px; height: 22px; margin: auto; border-top: 3px solid #fff; border-left: 3px solid #fff; transform: rotate(45deg) translate(4px,4px); }
.vozninet-home .btn-up_hide { display: none; }
.contact-dialog { width: min(92vw, 620px); max-height: 90vh; padding: 34px; color: #203b32; border: 0; border-radius: 18px; box-shadow: 0 24px 80px rgba(0,0,0,.42); }
.contact-dialog::backdrop { background: rgba(5,22,27,.75); }
.contact-dialog h2 { color: #14362c; font-size: 32px; margin: 0 40px 22px 0; }
.contact-dialog__close { position: absolute; top: 12px; right: 15px; width: 40px; height: 40px; border: 0; border-radius: 50%; color: #fff; background: #157a45; font-size: 28px; line-height: 1; }
.contact-dialog input:not([type="submit"]), .contact-dialog textarea { width: 100%; padding: 11px; border: 1px solid #cddbd2; border-radius: 8px; }
.contact-dialog input[type="submit"] { border: 0; border-radius: 9px; padding: 11px 18px; color: #fff; background: #157a45; font-weight: 700; }

@media (max-width: 1024px) {
  .vozninet-home .header-center { order: 3; width: 100%; }
  .vozninet-home .header-row { flex-wrap: wrap; }
  .vozninet-home .header-left, .vozninet-home .header-right { width: 50%; }
  .vozninet-home .mobile-btn { display: inline-block; margin-left: 14px; }
  .vozninet-home .header .nav { display: none; width: 100%; padding-top: 16px; }
  .vozninet-home .header .nav.is-open { display: block; }
  .vozninet-home .header .nav-list { flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 14px; background: #203d49; }
  .vozninet-home .header .nav-list li { margin: 8px 0; }
  .vozninet-home .header .nav-list .sub-menu { display: block; position: static; padding: 6px 0 0 18px; box-shadow: none; }
}

@media (max-width: 767px) {
	.vozninet-home .header .social-list { display: none; }
	.vozninet-home .header-left { width: calc(100% - 58px); }
	.vozninet-home .header-right { width: 58px; }
	.vozninet-home .mobile-btn { margin-left: auto; }
  .vozninet-home .promo-title { margin-top: 42px; }
  .vozninet-home .promo-picture { left: 0; }
  .vozninet-home .promo-picture img { max-width: 100%; width: 100%; }
  .vozninet-home .promo-linkk { display: none; }
  .vozninet-home .promo-more { top: -50px; right: 12px; margin-bottom: -50px; }
  .vozninet-home .cases-picture img, .vozninet-home .news-picture img { height: auto; aspect-ratio: 16 / 10; }
	.vozninet-home .footer { margin-bottom: 0; padding-bottom: 145px; }
	.vozninet-home .footer-row { row-gap: 0; }
	.vozninet-home .footer .col-2 { margin: 0 0 28px; }
	.vozninet-home .footer .footer-brand { width: 100%; margin-bottom: 34px; }
	.vozninet-home .footer-copyright { margin-top: 0; }
	.vozninet-home .btn-up { left: 14px; width: 50px; height: 46px; }
  .contact-dialog { padding: 26px 20px; }
}

@media (max-width: 520px) {
	.vozninet-home .header-logo-link { font-size: 22px; }
	.vozninet-home .promo-title { font-size: 34px; line-height: 1.16; }
	.vozninet-home .footer .col-2 { padding-right: 12px; padding-left: 12px; }
}

@media (max-width: 359px) {
    .vozninet-home .promo-title { font-size: 32px; }
    .vozninet-home .footer-title { font-size: 15px; }
    .vozninet-home .footer-list { font-size: 13px; }
}

/* 0.2.3: alignment with the original desktop and mobile layouts. */
.home-primary-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(28px, 3.2vw, 54px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-primary-menu a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.promo-title {
    font-weight: 400 !important;
}

.promo-title strong {
    font-weight: 800 !important;
}

.news-item::before,
.news-item::after,
.news-picture::before,
.news-picture::after,
.news-subtitle::before,
.news-subtitle::after {
    display: none !important;
    content: none !important;
}

@media (min-width: 768px) {
    .header-row {
        display: grid !important;
        grid-template-columns: 220px minmax(0, 1fr) 180px;
        align-items: center;
        gap: 24px;
    }

    .header-left,
    .header-center,
    .header-right {
        width: auto !important;
        max-width: none !important;
        flex: none !important;
    }

    .header-right {
        justify-self: end;
    }

    .promo-title {
        max-width: 760px;
        font-size: clamp(48px, 3.2vw, 64px) !important;
        line-height: 1.08 !important;
    }

    .news-list {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 30px !important;
        align-items: start;
    }

    .news-item {
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    .news-picture {
        position: relative;
        display: block;
        width: 100%;
        margin: 0 0 24px !important;
        padding: 0 !important;
    }

    .news-picture img {
        display: block;
        width: 100% !important;
        height: 165px !important;
        object-fit: cover;
    }

    .news-subtitle {
        position: static !important;
        display: block !important;
        min-height: 0 !important;
        margin: 0 0 14px !important;
        padding: 0 !important;
        color: #10c979 !important;
        line-height: 1.25 !important;
    }
}

@media (max-width: 767px) {
    .header-row {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        min-height: 74px;
    }

    .header-left {
        width: auto !important;
        flex: 1 1 auto !important;
    }

    .header-right {
        display: flex !important;
        align-items: center !important;
        width: auto !important;
        flex: 0 0 auto !important;
    }

    .header .social-list {
        display: flex !important;
        align-items: center;
        gap: 8px !important;
        margin-right: 12px !important;
    }

    .header .social-list a,
    .header .social-icon {
        display: block !important;
        width: 31px !important;
        height: 31px !important;
    }

    .home-primary-menu {
        display: block;
        padding: 18px 22px;
    }

    .home-primary-menu li + li {
        margin-top: 14px;
    }

    .promo-title {
        max-width: 540px;
        margin-left: auto !important;
        margin-right: auto !important;
        font-size: clamp(42px, 10.8vw, 58px) !important;
        line-height: 1.14 !important;
        text-align: center !important;
    }

    .news-list {
        display: block !important;
    }

    .news-item {
        width: 100% !important;
        margin: 0 0 48px !important;
    }

    .news-picture {
        display: block;
        margin: 0 0 18px !important;
        padding: 0 !important;
    }

    .news-picture img {
        display: block;
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }

    .news-subtitle {
        position: static !important;
        display: block !important;
        margin: 0 0 12px !important;
        padding: 0 !important;
        color: #10c979 !important;
        line-height: 1.25 !important;
    }

    #arcontactus .arcontactus-message-button,
    .arcontactus-widget .arcontactus-message-button {
        width: 64px !important;
        height: 64px !important;
        min-width: 64px !important;
        min-height: 64px !important;
    }
}

/* 0.2.3: mobile layout parity with the original VozniNet home page. */
@media (max-width: 767px) {
    .vozninet-home .header .row {
        flex-wrap: nowrap;
        align-items: center;
    }

    .vozninet-home .header-left {
        width: auto;
        flex: 1 1 auto;
    }

    .vozninet-home .header-right {
        width: auto;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .vozninet-home .header .social-list {
        display: flex !important;
        align-items: center;
        gap: 7px;
        margin: 0 4px 0 0;
        padding: 0;
    }

    .vozninet-home .header .social-list li {
        margin: 0;
    }

    .vozninet-home .header .social-list a,
    .vozninet-home .header .social-list img {
        display: block;
        width: 30px;
        height: 30px;
    }

    .vozninet-home .mobile-btn {
        min-width: 40px;
        width: 40px;
        height: 40px;
        margin: 0;
    }

    .vozninet-home .promo-row {
        display: block;
    }

    .vozninet-home .promo-left,
    .vozninet-home .promo-right {
        width: 100%;
        max-width: none;
        flex: 0 0 100%;
    }

    .vozninet-home .promo-title {
        max-width: 560px;
        margin: 60px auto 0;
        font-family: "Play-Regular", "Play", sans-serif;
        font-size: clamp(39px, 11.5vw, 50px);
        font-weight: 400;
        line-height: 1.16;
        letter-spacing: -.04em;
        text-align: center;
    }

    .vozninet-home .promo-title strong {
        font-family: "Play-Bold", "Play", sans-serif;
        font-weight: 700;
    }

    .vozninet-home .promo-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 150px;
        align-items: center;
        justify-items: center;
        gap: 0;
        max-width: 310px;
        margin: 52px auto 18px;
    }

    .vozninet-home .promo-item {
        min-width: 116px;
        width: 116px;
        height: 116px;
        margin: 0 !important;
    }

    .vozninet-home .promo-item:nth-child(3) {
        grid-column: 1 / -1;
    }

    .vozninet-home .promo-link {
        font-size: 15px;
    }

    .vozninet-home .promo-picture {
        position: relative;
        left: auto;
        top: auto;
        margin: 20px auto 0;
        text-align: center;
    }

    .vozninet-home .promo-picture img {
        width: 100%;
        max-width: 440px;
        height: auto;
        margin: 0 auto;
    }

    .vozninet-home .promo-linkk,
    .vozninet-home .promo-more {
        display: none !important;
    }

    .vozninet-home .news-list {
        display: block;
        margin: 24px 0 0;
    }

    .vozninet-home .news-item {
        width: 100%;
        margin: 0 0 38px;
    }

    .vozninet-home .news-picture {
        display: block;
        position: relative;
        z-index: 1;
    }

    .vozninet-home .news-picture::after {
        display: none !important;
        content: none !important;
    }

    .vozninet-home .news-picture img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        border: 10px solid #264657;
        opacity: .88;
    }

    .vozninet-home .news-subtitle {
        position: relative;
        z-index: 2;
        margin: 15px 0 10px;
    }

    body #arcontactus,
    body .arcontactus-widget {
        right: 8px !important;
        bottom: 8px !important;
    }

    body #arcontactus .arcontactus-message-button,
    body .arcontactus-widget .arcontactus-message-button {
        min-width: 68px !important;
        width: 68px !important;
        min-height: 68px !important;
        height: 68px !important;
    }
}

@media (max-width: 359px) {
    .vozninet-home .header-logo-link { font-size: 20px; }
    .vozninet-home .header .social-list { gap: 5px; }
    .vozninet-home .header .social-list a,
    .vozninet-home .header .social-list img { width: 27px; height: 27px; }
    .vozninet-home .promo-title { font-size: 36px; }
    .vozninet-home .promo-list { max-width: 286px; }
    .vozninet-home .promo-item { min-width: 112px; width: 112px; height: 112px; }
}
/* Modern: decorative artwork for News & Publications */
.vozninet-home .news-item {
	position: relative;
	overflow: visible;
}

.vozninet-home .news-decor {
	display: block;
	position: absolute;
	z-index: 0;
	top: -18px;
	left: 50%;
	width: 280px;
	height: 300px;
	transform: translateX(-50%);
	background-image: url('../img/news-picture-after.svg');
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	pointer-events: none;
}

.vozninet-home .news-subtitle,
.vozninet-home .news-descr {
	position: relative;
	z-index: 2;
}