:root {
    --first-family: "Inter Tight", Inter, "Segoe UI", Roboto, system-ui, -apple-system, Arial, "Noto Sans", "Liberation Sans", sans-serif;
    --second-family: "Source Code Pro", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
	margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; 
    font-family: var(--first-family);
    background: #000;
}

body.menu-open {
    overflow: hidden;
}

code, kbd, pre, samp {
    font-family: var(--second-family);
}

a {
    text-decoration: none;
}

li {
    list-style-type: none;
}

/* Header */
.site-header {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background: transparent;
    z-index: 1000;
}

.site-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    padding: 20px;
}

.header--overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
    pointer-events: auto;
}

.site-header.header--solid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(8px);
}

.site-nav-label {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 80%;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    color: #f2f2f2;
}

.site-nav-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: calc(100% - 50%);
}

.home-links, .other-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: auto;
    gap: 1em;
}

.link-active {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 80%;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    color: #fff;
}

.link-disabled {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 80%;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    color: #5e5e5e;
    cursor: pointer;
    position: relative;
}

.link-active:hover {
    color: #ffffffbb;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    justify-content: center;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.menu-toggle-text {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 80%;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    color: #f2f2f2;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: #fff;
    margin: 2px 0;
    transition: all 0.3s ease;
}

/* Mobile Menu Styles */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 45px;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: #1a1a1a;
    z-index: 1999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    top: 0;
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.mobile-menu-label {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 80%;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    color: #f2f2f2;
}

.mobile-menu-close {
    background: none;
    border: none;
    width: auto;
    height: 24px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-close-text {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 80%;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    color: #f2f2f2;
}

.close-line {
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.close-line:first-child {
    transform: rotate(45deg);
}

.close-line:last-child {
    transform: rotate(-45deg);
}

.mobile-menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 20px 80px 20px;
}

.mobile-menu-link-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-link-active,
.mobile-link-disabled {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 24px;
    line-height: 80%;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 8px 0;
}

.mobile-link-active {
    color: #fff;
    padding: 8px 0.8em 8px 0;
}

.mobile-link-active::before,
.mobile-link-active::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-family: var(--second-family);
    font-size: inherit;
    color: inherit;
}

.mobile-link-active::before {
    content: '[';
    font-size: inherit; /* или 1em */
    left: -0.5em;
    transform: translate(5px, -50%);
}

.mobile-link-active::after {
    content: ']';
    font-size: inherit; /* или 1em */
    right: -0.5em;
    transform: translate(-5px, -50%);
}

.mobile-link-active:hover::before {
    opacity: 1;
    transform: translate(0, -50%);
}

.mobile-link-active:hover::after {
    opacity: 1;
    transform: translate(0, -50%);
}

.mobile-link-disabled {
    color: #5e5e5e;
    cursor: pointer;
    position: relative;
}

.mobile-link-active:hover {
    color: #ffffffbb;
}

.mobile-menu-footer {
    margin-top: auto;
}

.mobile-menu-copyright {
    margin-bottom: 24px;
}

.mobile-menu-copyright p {
    font-family: var(--main-family);
    font-size: 12px;
    line-height: 140%;
    color: #fff;
    border: none;
    max-width: 50ch;
    margin: 0;
}

.mobile-menu-contact p {
    font-family: var(--main-family);
    font-size: 12px;
    line-height: 140%;
    color: #fff;
    margin: 0 0 8px 0;
}

.mobile-menu-contact a {
    font-family: var(--main-family);
    font-size: 14px;
    line-height: 140%;
    color: #fff;
    text-decoration: none;
}

.tooltip {
    position: fixed;
    /* background: rgba(242, 242, 242, 0.1); */
    backdrop-filter: blur(8px);
    color: #f2f2f2;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: var(--second-family);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.tooltip.show {
    opacity: 1;
    visibility: visible;
}

.tooltip::after {
    display: none;
}

/* Активные ссылки с эффектом скобок */
.link-active,
.mobile-link-active {
    position: relative;
    display: inline-block;
    transition: color 0.2s ease;
}

.link-active::before,
.link-active::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-family: var(--second-family);
    font-size: inherit;
    color: inherit;
}

.link-active::before {
    content: '[';
    left: -0.7em;
    transform: translate(5px, -50%);
}

.link-active::after {
    content: ']';
    right: -0.7em;
    transform: translate(-5px, -50%);
}

.link-active:hover::before {
    opacity: 1;
    transform: translate(0, -50%);
}

.link-active:hover::after {
    opacity: 1;
    transform: translate(0, -50%);
}

/* Десктоп - неактивные ссылки */
.link-disabled {
    position: relative;
    cursor: not-allowed;
}

/* Мобильная версия */
.mobile-link-active,
.mobile-link-disabled {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 24px;
    line-height: 80%;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 8px 0;
}

.mobile-link-active {
    color: #fff;
    position: relative;
    display: inline-block;
    transition: color 0.2s ease;
}

.mobile-link-active::before,
.mobile-link-active::after {
    opacity: 0;
    transition: opacity 0.2s ease;
    font-size: larger;
    color: inherit;
    right: auto;
}

.mobile-link-active::before {
    content: '[ ';
}

.mobile-link-active::after {
    content: ' ]';
}

.mobile-link-active:hover::before,
.mobile-link-active:hover::after {
    opacity: 1;
}

.mobile-link-active:hover {
    color: #ffffffbb;
}

.mobile-link-disabled {
    color: #5e5e5e;
    cursor: not-allowed;
    position: relative;
}

/* Footer */

.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 14em;
}

.site-footer-top {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
    z-index: 20;
}

.site-footer-top img {
    width: 100%;
}

.site-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px;
    gap: 4em;
}

.footer-partnership-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
    gap: 2.5em;
}

.footer-partnership-block P {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 110%;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    text-align: center;
    color: #f2f2f2;
}

.footer-mail {
    font-family: var(--first-family);
    font-weight: 600;
    font-size: 30px;
    line-height: 90%;
    color: #f2f2f2;
}

.footer-mail:hover {
    color: #f2f2f2ab;
}

.footer-links-block {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.links-block-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
}

.links-block-middle {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1em;
}

.links-block-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1em;
}

.footer-all-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-link {
    font-family: var(--first-family);
    font-weight: 600;
    font-size: 30px;
    line-height: 100%;
    letter-spacing: -0.02em;
    text-transform: capitalize;
    color: #f2f2f2;
    margin: 0;
}

.footer-link:hover {
    color: #f2f2f2ab;
}

.footer-all-right p {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 80%;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    color: #f2f2f2;
    margin: 0;
}

/* 404-page */

body.error404 .site-header,
body.error404 .site-footer {
  display: none !important;
}

body.error404 .site-nav { 
    padding: 0 !important; 
}

.hm-wrap {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    font-family: var(--first-family);
    line-height: 1.6;
    color: #fff;
    flex-direction: column;
}

.hm-center { 
    text-align: center; 
}

.hm-title-lg {
  font-family: var(--first-family);
    font-weight: 600;
    font-size: 60px;
    line-height: 100%;
    letter-spacing: -0.02em;
    text-align: right;
    color: #f2f2f2;
    margin: 0;
}

.hm-subtitle {
  font-family: var(--first-family);
    font-weight: 600;
    font-size: 60px;
    line-height: 100%;
    letter-spacing: -0.02em;
    text-align: right;
    color: #f2f2f2;
}

.hm-spacer { 
    height: clamp(24px, 6vh, 72px);
}

.hm-btn-block {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hm-btn {
    display: inline-block;
    margin-top: 1.25rem;
    text-decoration: none;
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 30px;
    line-height: 90%;
    color: #f2f2f2;
    padding: .2em 0;
    border: 1px solid transparent;
    transition: background .2s ease, color .2s ease, transform .08s ease;
}

.hm-btn:hover { 
    background: #fff;
    color: #000;
}

.hm-btn:active { 
    transform: translateY(1px); 
}

.hm-btn:focus-visible { 
    outline: 2px dashed #fff; 
    outline-offset: 3px; 
}

/* Admin Bar */

body.admin-bar .mobile-menu.active {
	top: 46px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .mobile-menu.active {
		top: 46px; 
	}
}

/*  CF7 */

/* CF7 Response — сброс дефолтного */
.wpcf7-response-output {
    margin: 16px 0 0 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    font-family: var(--second-family) !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 110% !important;
    letter-spacing: -0.06em !important;
    text-transform: uppercase !important;
    color: #f2f2f2 !important;
}

/* Успех */
.wpcf7-response-output.wpcf7-mail-sent-ok {
    color: #f2f2f2 !important;
}

.wpcf7-response-output.wpcf7-mail-sent-ok::before {
    content: '[ OK ] — ';
}

/* Ошибка отправки */
.wpcf7-response-output.wpcf7-mail-sent-ng,
.wpcf7-response-output.wpcf7-spam-blocked {
    color: #5e5e5e !important;
}

.wpcf7-response-output.wpcf7-mail-sent-ng::before,
.wpcf7-response-output.wpcf7-spam-blocked::before {
    content: '[ ERR ] — ';
}

/* Ошибка валидации полей */
.wpcf7-response-output.wpcf7-validation-errors,
.wpcf7-response-output.wpcf7-acceptance-missing {
    color: #5e5e5e !important;
}

.wpcf7-response-output.wpcf7-validation-errors::before,
.wpcf7-response-output.wpcf7-acceptance-missing::before {
    content: '[ ERR ] — ';
}

/* Подсказки на полях */
.wpcf7-not-valid-tip {
    font-family: var(--second-family) !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    line-height: 110% !important;
    letter-spacing: -0.06em !important;
    text-transform: uppercase !important;
    color: #5e5e5e !important;
    margin-top: 6px !important;
    display: block !important;
}