@font-face {
    font-family: 'Mulish';
    src: url('../fonts/Mulish-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Mulish';
    src: url('../fonts/Mulish-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Mulish';
    src: url('../fonts/Mulish-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Mulish';
    src: url('../fonts/Mulish-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

:root {
    --energo-blue: #008ce6;
    --energo-dark: #121214;
    --energo-text: #252528;
    --energo-muted: #494b50;
    --energo-bg: #f4f4f4;
    --energo-white: #ffffff;
    --energo-line: #e2e2e3;
    --energo-section-alt: #ebebeb;
    --energo-radius-lg: 20px;
    --energo-radius-md: 15px;
    --energo-radius-sm: 10px;
}

body {
    font-family: 'Mulish', sans-serif;
    font-size: 14px;
    color: var(--energo-text);
    background: var(--energo-bg);
}

a {
    transition: color 0.3s ease;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 10px;
    padding: 14px 25px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--energo-blue);
    color: var(--energo-white);
}

.btn-primary:hover {
    background: var(--energo-text);
}

.btn-primary--on-dark,
.btn-primary--hover-white {
    gap: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary--on-dark:hover,
.btn-primary--on-dark:focus-visible,
.btn-primary--hover-white:hover,
.btn-primary--hover-white:focus-visible {
    background: var(--energo-white);
    color: var(--energo-text);
}

.btn-primary--on-dark .btn__label {
    transition: color 0.3s ease;
}

.btn-primary--on-dark .btn__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 0;
    height: 20px;
    margin-left: 0;
    overflow: hidden;
    opacity: 0;
    transition: width 0.3s ease, margin-left 0.3s ease, opacity 0.3s ease;
}

.btn-primary--on-dark .btn__arrow .icon {
    width: 14px;
    height: 12px;
    fill: var(--energo-blue);
}

.btn-primary--on-dark:hover .btn__arrow,
.btn-primary--on-dark:focus-visible .btn__arrow {
    width: 20px;
    margin-left: 10px;
    opacity: 1;
}

/* Margins */
.mt-10 {
    margin-top: 10px !important;
}

.mb-10 {
    margin-bottom: 10px !important;
}

.mb-10 {
    margin-bottom: 10px !important;
}

.mt-15 {
    margin-top: 15px !important;
}

.mb-15 {
    margin-bottom: 15px !important;
}

.mt-20 {
    margin-top: 20px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.mt-30 {
    margin-top: 30px !important;
}

.mb-30 {
    margin-bottom: 30px !important;
}

.mt-40 {
    margin-top: 40px !important;
}

.mb-40 {
    margin-bottom: 40px !important;
}

/* Sizes */
.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.w-50 {
    width: 50%;
}

.h-50 {
    height: 50%;
}


/* Typography */
.text-lead {
    font-weight: 400;
    font-size: 18px;
    line-height: 1.2;
    color: var(--energo-text);
}

.title-h1 {
    font-weight: 700;
    font-size: 44px;
    line-height: 1.2;
    color: var(--energo-text);
}

.title-h2 {
    font-weight: 700;
    font-size: 38px;
    line-height: 1.25;
    color: var(--energo-text);
}

.title-h3 {
    font-weight: 700;
    font-size: 28px;
    line-height: 1.25;
    color: var(--energo-text);
}

.title-h4 {
    font-weight: 700;
    font-size: 24px;
    line-height: 1.25;
    color: var(--energo-text);
}

.title-h5 {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.25;
    color: var(--energo-text);
}

.title-h6 {
    font-weight: 500;
    font-size: 16px;
    line-height: 1.25;
    color: var(--energo-text);
}

/* Colors */
.text-white {
    color: var(--energo-white);
}

/* Top Bar */
.top-bar {
    background: #e2e2e3;
    padding: 8px 0;
}

.top-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar__item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar__item .icon {
   background: rgba(255, 255, 255, 0.5);
   border-radius: 4px;
}

.top-bar__link,
.top-bar__text {
    font-weight: 500;
    font-size: 14px;
    color: var(--energo-text);
    text-decoration: none;
}

.top-bar__link:hover {
    color: var(--energo-blue);
}

/* Header */
.header-shell {
    position: sticky;
    top: 0;
    z-index: 100;
}

.header {
    position: relative;
    padding: 20px 0;
    background: var(--energo-bg);
    border-bottom: 1px solid rgba(209, 209, 211, 0.3);
}

.header__logo {
    display: block;
}

.header__logo picture,
.header__logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 243px;
    max-height: 36px;
}

.header__menu {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__menu-list {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.header__menu-list li {
    display: inline-block;
}

.header__menu-list li a {
    display: block;
    padding: 5px 10px;
    text-decoration: none;
    color: var(--energo-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.header__menu-list li a:hover {
    color: var(--energo-blue);
}

.header__menu-list li.current-menu-item a {
    color: var(--energo-blue);
}

.header__menu-list .menu-item-has-services-megamenu {
    position: relative;
}

.header__menu-list .menu-item-has-services-megamenu > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Зона наведения между пунктом «Услуги» и выпадающей панелью */
.header__menu-list .menu-item-has-services-megamenu::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 24px;
    z-index: 91;
}

.header-shell.is-services-open .menu-item-has-services-megamenu > a,
.header__menu-list .menu-item-has-services-megamenu > a:hover,
.header__menu-list .menu-item-has-services-megamenu > a:focus-visible {
    color: var(--energo-blue);
}

.header__menu-chevron {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.header-shell.is-services-open .header__menu-chevron {
    transform: rotate(180deg);
}

/* Services megamenu */
.header-services-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 90;
    padding: 20px 0;
    background: var(--energo-bg);
    box-shadow: 0 24px 48px rgba(18, 18, 20, 0.08);
}

.header-services-panel::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -16px;
    height: 16px;
}

.header-shell:not(.is-services-open) .header-services-panel {
    pointer-events: none;
}

.header-services-backdrop {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 85;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(18, 18, 20, 0.55);
    backdrop-filter: blur(4px);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.header-services-backdrop[hidden] {
    display: none !important;
}

.header-shell.is-services-open .header-services-backdrop:not([hidden]) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.header-services-panel__grid {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 420px) minmax(0, 420px);
    gap: 20px;
    align-items: start;
}

.header-services-panel__categories-list {
    list-style: none;
    margin: 0;
    padding: 0 14px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 390px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(209, 209, 211, 0.8) rgba(226, 226, 227, 0.5);
}

.header-services-panel__categories-list::-webkit-scrollbar {
    width: 4px;
}

.header-services-panel__categories-list::-webkit-scrollbar-track {
    background: rgba(226, 226, 227, 0.5);
    border-radius: 18px;
}

.header-services-panel__categories-list::-webkit-scrollbar-thumb {
    background: rgba(209, 209, 211, 0.8);
    border-radius: 18px;
}

.header-services-panel__category {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-height: 58px;
    padding: 20px;
    border-radius: var(--energo-radius-md);
    background: var(--energo-white);
    color: var(--energo-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-services-panel__category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.header-services-panel__category-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 140, 230, 0.12);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--energo-blue);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-services-panel__category.is-active .header-services-panel__category-badge,
.header-services-panel__category:hover .header-services-panel__category-badge,
.header-services-panel__category:focus-visible .header-services-panel__category-badge {
    background: rgba(0, 140, 230, 0.24);
    color: var(--energo-blue);
}

.header-services-panel__category-text {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    transition: color 0.2s ease;
}

.header-services-panel__category.is-active,
.header-services-panel__category:hover,
.header-services-panel__category:focus-visible {
    background: var(--energo-text);
    color: var(--energo-white);
}

.header-services-panel__category.is-active .header-services-panel__category-text,
.header-services-panel__category:hover .header-services-panel__category-text,
.header-services-panel__category:focus-visible .header-services-panel__category-text {
    color: var(--energo-white);
}

.header-services-panel__category-arrow {
    width: 14px;
    height: 12px;
    fill: var(--energo-blue);
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.header-services-panel__category.is-active .header-services-panel__category-arrow,
.header-services-panel__category:hover .header-services-panel__category-arrow,
.header-services-panel__category:focus-visible .header-services-panel__category-arrow {
    opacity: 1;
}

.header-services-panel__category.is-active .header-services-panel__category-arrow,
.header-services-panel__category:hover .header-services-panel__category-arrow {
    fill: var(--energo-blue);
}

.header-services-panel__links-wrap,
.header-services-panel__portfolio-wrap {
    position: relative;
    height: 390px;
    max-height: 390px;
}

.header-services-panel__links {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--energo-white);
    border-radius: var(--energo-radius-lg);
    padding: 20px 10px 20px 30px;
    overflow: hidden;
}

.header-services-panel__links-list {
    list-style: none;
    margin: 0;
    padding: 0 14px 0 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(209, 209, 211, 0.8) rgba(226, 226, 227, 0.5);
}

.header-services-panel__links-list::-webkit-scrollbar {
    width: 4px;
}

.header-services-panel__links-list::-webkit-scrollbar-track {
    background: rgba(226, 226, 227, 0.5);
    border-radius: 18px;
}

.header-services-panel__links-list::-webkit-scrollbar-thumb {
    background: rgba(209, 209, 211, 0.8);
    border-radius: 18px;
}

.header-services-panel__link {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 100%;
    color: var(--energo-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.header-services-panel__link-arrow {
    width: 14px;
    height: 12px;
    fill: var(--energo-blue);
    flex-shrink: 0;
    margin-top: 3px;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.header-services-panel__link:hover,
.header-services-panel__link:focus-visible {
    color: var(--energo-blue);
}

.header-services-panel__link:hover .header-services-panel__link-arrow,
.header-services-panel__link:focus-visible .header-services-panel__link-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.header-services-panel__portfolio {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--energo-white);
    border-radius: var(--energo-radius-lg);
    padding: 20px;
    overflow: hidden;
}

.header-services-panel__portfolio-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--energo-text);
}

.header-services-panel__portfolio-empty {
    margin: 0;
    padding: 20px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--energo-muted);
    opacity: 0.75;
}

.header-services-panel__portfolio-list {
    list-style: none;
    margin: 0;
    padding: 0 14px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(209, 209, 211, 0.8) rgba(226, 226, 227, 0.5);
}

.header-services-panel__portfolio-list::-webkit-scrollbar {
    width: 4px;
}

.header-services-panel__portfolio-list::-webkit-scrollbar-track {
    background: rgba(226, 226, 227, 0.5);
    border-radius: 18px;
}

.header-services-panel__portfolio-list::-webkit-scrollbar-thumb {
    background: rgba(209, 209, 211, 0.8);
    border-radius: 18px;
}

.header-services-panel__project {
    display: grid;
    grid-template-columns: 137px 1fr 25px;
    gap: 15px;
    align-items: center;
    min-height: 100px;
    padding: 10px;
    border-radius: var(--energo-radius-sm);
    background: var(--energo-bg);
    color: var(--energo-text);
    text-decoration: none;
    transition: box-shadow 0.2s ease;
}

.header-services-panel__project-media {
    display: block;
    width: 137px;
    height: 80px;
    border-radius: var(--energo-radius-sm);
    overflow: hidden;
    line-height: 0;
    background: var(--energo-line);
}

.header-services-panel__project-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.header-services-panel__project:hover .header-services-panel__project-media img {
    transform: scale(1.05);
}

.header-services-panel__project-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.header-services-panel__project-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 5px;
    background: var(--energo-dark);
}

.header-services-panel__project-action .icon {
    width: 16px;
    height: 16px;
    fill: var(--energo-white);
}

.header-services-panel__project:hover .header-services-panel__project-action,
.header-services-panel__project:focus-visible .header-services-panel__project-action {
background: var(--energo-blue);
}

@media (max-width: 1399.98px) {
    .header-services-panel__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .header-services-panel {
        display: none !important;
    }
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    }

.btn-search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.btn-search-toggle svg {
    fill: var(--energo-blue);
        transition: all 0.3s ease;
}

.btn-search-toggle:hover svg {
    fill: var(--energo-text);
}

/* Search modal */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.search-modal-open {
    overflow: hidden;
}

.search-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.search-modal:not([hidden]) {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.search-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 18, 20, 0.55);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.search-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin-top: min(12vh, 120px);
    background: var(--energo-white);
    border-radius: var(--energo-radius-lg);
    box-shadow: 0 24px 60px rgba(18, 18, 20, 0.18), 0 0 0 1px var(--energo-line);
    padding: 24px 24px 20px;
    max-height: min(78vh, 640px);
    display: flex;
    flex-direction: column;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.search-modal.is-open .search-modal__dialog {
    transform: translateY(0) scale(1);
}

.search-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.search-modal__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--energo-dark);
    line-height: 1.25;
}

.search-modal__close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: -8px -8px 0 0;
    border: none;
    border-radius: var(--energo-radius-sm);
    background: transparent;
    color: var(--energo-muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.search-modal__close:hover {
    background: var(--energo-bg);
    color: var(--energo-text);
}

.search-modal__form {
    margin-bottom: 12px;
}

.search-modal__field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--energo-bg);
    border-radius: var(--energo-radius-md);
    border: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-modal__field:focus-within {
    border-color: var(--energo-blue);
    box-shadow: 0 0 0 3px rgba(0, 140, 230, 0.15);
}

.search-modal__icon {
    display: flex;
    color: var(--energo-blue);
    flex-shrink: 0;
}

.search-modal__input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: var(--energo-text);
    outline: none;
}

.search-modal__input::placeholder {
    color: var(--energo-muted);
    font-weight: 400;
}

.search-modal__status {
    min-height: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--energo-muted);
    margin-bottom: 8px;
}

.search-modal.is-loading .search-modal__status {
    color: var(--energo-blue);
}

.search-modal__results {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    margin: 0 -6px 0 0;
    padding-right: 6px;
}

.search-modal__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-modal__item {
    border-bottom: 1px solid var(--energo-line);
}

.search-modal__item:last-child {
    border-bottom: none;
}

.search-modal__result-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 4px;
    text-decoration: none;
    color: inherit;
    border-radius: var(--energo-radius-sm);
    transition: background 0.2s ease;
}

.search-modal__result-link:hover {
    background: rgba(0, 140, 230, 0.06);
}

.search-modal__result-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--energo-text);
    line-height: 1.35;
}

.search-modal__result-type {
    font-size: 12px;
    font-weight: 500;
    color: var(--energo-muted);
}

.search-modal__empty {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--energo-muted);
    line-height: 1.5;
}

.search-modal__footer {
    margin-top: 16px;
    padding-top: 4px;
    display: flex;
    justify-content: flex-end;
}

.search-modal__all-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--energo-blue);
    text-decoration: none;
    padding: 10px 4px;
    border-radius: var(--energo-radius-sm);
    transition: color 0.2s ease, background 0.2s ease;
}

.search-modal__all-link:hover {
    color: var(--energo-text);
    background: var(--energo-bg);
}

/* Contact modal */
body.contact-modal-open {
    overflow: hidden;
}

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.contact-modal:not([hidden]) {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.contact-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 18, 20, 0.55);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.contact-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: min(90vh, 640px);
    overflow-y: auto;
    background: var(--energo-white);
    border-radius: var(--energo-radius-lg);
    box-shadow: 0 24px 60px rgba(18, 18, 20, 0.18), 0 0 0 1px var(--energo-line);
    padding: 40px;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-modal.is-open .contact-modal__dialog {
    transform: translateY(0) scale(1);
}

.contact-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.contact-modal__title {
    margin: 0;
font-weight: 700;
    font-size: 28px;
    color: var(--energo-dark);
    line-height: 1.25;
}

.contact-modal.contact-modal--success .contact-modal__header {
    justify-content: flex-end;
}

.contact-modal.contact-modal--success .contact-modal__title {
    display: none;
}

.contact-modal__close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: -8px -8px 0 0;
    border: none;
    border-radius: var(--energo-radius-sm);
    background: transparent;
    color: var(--energo-muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.contact-modal__close:hover {
    background: var(--energo-bg);
    color: var(--energo-text);
}

.contact-modal__lead {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--energo-muted);
    font-weight: 500;
}

.contact-modal__form-error {
    margin: 0 0 14px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #b42318;
    background: #fef3f2;
    border-radius: var(--energo-radius-sm);
    border: 1px solid #fecdca;
}

.contact-modal__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-modal__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-modal__label {
    font-size: 13px;
    font-weight: 600;
    color: var(--energo-text);
}

.contact-modal__required {
    color: var(--energo-blue);
}

.contact-modal__input,
.contact-modal__textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--energo-text);
    background: var(--energo-bg);
    border: 1px solid transparent;
    border-radius: var(--energo-radius-md);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-modal__textarea {
    resize: vertical;
    min-height: 96px;
}

.contact-modal__input::placeholder,
.contact-modal__textarea::placeholder {
    color: var(--energo-muted);
    font-weight: 400;
}

.contact-modal__input:hover,
.contact-modal__textarea:hover {
    border-color: rgba(0, 140, 230, 0.2);
}

.contact-modal__input:focus,
.contact-modal__textarea:focus {
    border-color: var(--energo-blue);
    box-shadow: 0 0 0 3px rgba(0, 140, 230, 0.15);
}

.contact-modal__input.is-invalid,
.contact-modal__textarea.is-invalid {
    border-color: #f04438;
    box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.12);
}

.contact-modal__field-error {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: #b42318;
}

.contact-modal__actions {
    margin-top: 4px;
}

.contact-modal__submit {
    width: 100%;
}

.contact-modal__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.contact-modal__pane--success {
    text-align: center;
    padding: 8px 4px 4px;
}

.contact-modal__success-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--energo-blue);
}

.contact-modal__success-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--energo-dark);
}

.contact-modal__success-text {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--energo-muted);
    font-weight: 500;
}

.contact-modal__pane--success .btn {
    min-width: 160px;
}

/* Footer */
.site-footer {
    padding: 60px 0;
    background: var(--energo-text);
    color: var(--energo-bg);
}

.site-footer__logo {
    margin-bottom: 40px;
}

.site-footer__logo a {
    display: inline-block;
}

.site-footer__logo img {
    display: block;
    width: 257px;
    max-width: 100%;
    height: auto;
}

.site-footer__grid {
    --bs-gutter-y: 40px;
    margin-bottom: 40px;
}

.site-footer__nav-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__nav-list a {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--energo-bg);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__nav-list a:hover {
    color: var(--energo-blue);
}

.site-footer__addresses {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.site-footer__address {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.site-footer__address-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    color: var(--energo-blue);
    background: rgba(73, 75, 80, 0.5);
}

.site-footer__address-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.site-footer__address-label {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(244, 244, 244, 0.5);
}

.site-footer__address-text {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--energo-bg);
}

.site-footer__contacts {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.site-footer__contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-footer__contact-row--phones {
    align-items: flex-start;
}

.site-footer__contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    color: var(--energo-blue);
    background: rgba(73, 75, 80, 0.5);
}

.site-footer__contact-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--energo-bg);
}

.site-footer__contact-link {
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__contact-link:hover {
    color: var(--energo-blue);
}

.site-footer__phones {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer__cta {
    align-self: flex-start;
    font-size: 16px;
}

.site-footer__bottom {
    margin: 0;
}

.site-footer__privacy {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--energo-bg);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer__privacy:hover {
    color: var(--energo-blue);
}

@media (max-width: 1199.98px) {
}

/* Mobile header & menu */
.btn-header-menu-toggle {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: var(--energo-radius-sm);
    background: var(--energo-text);
    cursor: pointer;
    position: relative;
}

.btn-header-menu-toggle__bar {
    position: absolute;
    left: 50%;
    width: 22px;
    height: 2px;
    margin-left: -11px;
    border-radius: 2px;
    background: var(--energo-bg);
    transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
}

.btn-header-menu-toggle__bar:nth-child(1) {
    top: 15px;
}

.btn-header-menu-toggle__bar:nth-child(2) {
    top: 21px;
}

.btn-header-menu-toggle__bar:nth-child(3) {
    top: 27px;
}

.header-shell.is-mobile-menu-open .btn-header-menu-toggle__bar:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
    background: rgba(209, 209, 211, 0.5);
}

.header-shell.is-mobile-menu-open .btn-header-menu-toggle__bar:nth-child(2) {
    opacity: 0;
}

.header-shell.is-mobile-menu-open .btn-header-menu-toggle__bar:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
    background: rgba(209, 209, 211, 0.5);
}

.header-mobile-menu {
    position: fixed;
    top: var(--header-mobile-height, 72px);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--energo-bg);
}

.header-mobile-menu[hidden] {
    display: none !important;
}

.header-mobile-menu__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 18px 16px 40px;
}

.header-mobile-menu__nav {
    width: 100%;
}

.header-mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.header-mobile-menu__list > li {
    margin: 0;
    padding: 0 0 25px;
    border-bottom: 1px solid rgba(226, 226, 227, 0.5);
}

.header-mobile-menu__list > li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.header-mobile-menu__list a {
    display: block;
    color: var(--energo-text);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-mobile-menu__list a:hover,
.header-mobile-menu__list a:focus-visible,
.header-mobile-menu__list .current-menu-item > a {
    color: var(--energo-blue);
}

.header-mobile-menu__list .header__menu-chevron,
.header-mobile-menu__list .menu-item-has-services-megamenu::after {
    display: none;
}

.header-mobile-menu__contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.header-mobile-menu__card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-radius: var(--energo-radius-md);
    background: var(--energo-white);
    box-sizing: border-box;
}

.header-mobile-menu__card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    border-radius: 4px;
    color: var(--energo-blue);
    background: rgba(0, 140, 230, 0.1);
}

.header-mobile-menu__card-icon .icon {
    fill: currentColor;
}

.header-mobile-menu__card-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.header-mobile-menu__card-label {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: rgba(73, 75, 80, 0.5);
}

.header-mobile-menu__card-value {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--energo-text);
}

.header-mobile-menu__card-value--link {
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-mobile-menu__card-value--link:hover,
.header-mobile-menu__card-value--link:focus-visible {
    color: var(--energo-blue);
}

body.header-mobile-menu-open {
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .top-bar {
        display: none;
    }

    .header {
        padding: 16px 0;
    }

    .header .row {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .header .row > .col {
        display: none;
    }

    .header__logo picture,
    .header__logo img {
        max-width: 139px;
        max-height: 35px;
    }

    .header__actions {
        gap: 14px;
    }

    .header__actions .btn-search-toggle {
        display: none;
    }

    .header__actions .btn-contact-open {
        padding: 10px;
        font-size: 14px;
        line-height: 1.3;
        white-space: nowrap;
    }

    .btn-header-menu-toggle {
        display: inline-flex;
    }

    .header-shell.is-mobile-menu-open {
        z-index: 110;
    }

    .header-shell.is-mobile-menu-open .header {
        z-index: 2;
        position: relative;
        background: var(--energo-bg);
    }
}

/* Yoast SEO breadcrumbs */
.energo-breadcrumbs__nav {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--energo-muted);
    margin-bottom: 30px;
}

.energo-breadcrumbs__nav a {
    color: rgba(73, 75, 80, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.energo-breadcrumbs__nav a:hover {
    color: var(--energo-blue);
}

.energo-breadcrumbs__nav .breadcrumb_last {
    color: var(--energo-text);
}

@media (max-width: 767.98px) {
    .site-footer {
        padding: 48px 0;
    }

    .site-footer__logo {
        margin-bottom: 32px;
    }

    .site-footer__grid {
        margin-bottom: 32px;
    }

    .site-footer__contacts {
        gap: 24px;
    }

        .site-footer__cta {
        width: 100%;
        }

                .contact-modal__dialog {
                padding: 24px;
                }
}

.scroll-top-btn {
    position: fixed;
    right: 40px;
    bottom: 40px;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: none;
    border-radius: 5px;
    background: var(--energo-blue);
    color: var(--energo-white);
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.scroll-top-btn:hover,
.scroll-top-btn:focus-visible {
    background: var(--energo-text);
}

.scroll-top-btn[hidden] {
    display: none;
}

.scroll-top-btn .icon {
    fill: currentColor;
}

@media (max-width: 767.98px) {
    .scroll-top-btn {
        right: 16px;
        bottom: 16px;
    }
}