/*
Theme Name: Metriks
Theme URI: https://test1.vagizov.com
Author: Maxim Vagizov
Author URI: https://vagizov.com
Description: Clean custom WordPress theme for Metriks.
Version: 1.0.0
Text Domain: metriks
*/

:root {
    --site-bg: #F9F9F9;
    --site-text: #111111;
    --site-muted: #666666;
    --site-border: #e5e5e5;
    --site-accent: #2563eb;
    --site-container: 1200px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #F9F9F9;
    color: var(--site-text);
    font-family: 'Inter', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-container {
    width: min(100% - 32px, var(--site-container));
    margin: 0 auto;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-v20-cyrillic_latin-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-v20-cyrillic_latin-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-v20-cyrillic_latin-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-v20-cyrillic_latin-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 400;
}

/* Header */

.metriks-header {
    position: absolute;
    z-index: 50;
    top: 35px;
    left: 0;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
}

.admin-bar .metriks-header {
    top: 67px;
}

.metriks-header__inner {
    display: grid;
    grid-template-columns: 300.52px 1px 136.17px minmax(24px, 1fr) auto auto;
    align-items: center;
    column-gap: 25px;
    width: calc(100% - 115px);
    max-width: 1805.02px;
    height: 56px;
    margin: 0 auto;
}

.metriks-header__logo {
    display: flex;
    align-items: center;
    width: 300.52px;
    height: 56px;
}

.metriks-header__logo img {
    display: block;
    width: 300.52px;
    height: auto;
    max-height: 32.03px;
}

.metriks-header__divider {
    display: block;
    width: 1px;
    height: 49px;
    background: rgba(0, 0, 0, 0.11);
}

.metriks-header__label {
    width: 136.17px;
    color: #000000;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 18px;
}

.metriks-header__spacer {
    min-width: 24px;
}

.metriks-header__phone {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    color: #191919;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 110%;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.metriks-header__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 260px;
    height: 56px;
    padding: 12px 25px 12px 32px;
    border-radius: 120px;
    background: #191919;
    color: #F6F6F6;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 32px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.metriks-header__button:hover {
    transform: translateY(-1px);
    background: #000000;
}

.metriks-header__button-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: currentColor;
}

@media (max-width: 1440px) {
    .metriks-header__inner {
        grid-template-columns: 260px 1px 136px minmax(20px, 1fr) auto auto;
        width: calc(100% - 64px);
        column-gap: 22px;
    }

    .metriks-header__logo {
        width: 260px;
    }

    .metriks-header__logo img {
        width: 260px;
    }

    .metriks-header__phone {
        font-size: 26px;
    }
}

@media (max-width: 1180px) {
    .metriks-header {
        top: 24px;
    }

    .admin-bar .metriks-header {
        top: 56px;
    }

    .metriks-header__inner {
        grid-template-columns: 240px minmax(20px, 1fr) auto;
        width: calc(100% - 40px);
    }

    .metriks-header__logo {
        width: 240px;
    }

    .metriks-header__logo img {
        width: 240px;
    }

    .metriks-header__divider,
    .metriks-header__label,
    .metriks-header__phone {
        display: none;
    }
}

@media (max-width: 640px) {
    .metriks-header {
        top: 18px;
    }

    .admin-bar .metriks-header {
        top: 64px;
    }

    .metriks-header__inner {
        grid-template-columns: 1fr auto;
        width: calc(100% - 32px);
        height: 48px;
        column-gap: 16px;
    }

    .metriks-header__logo {
        width: 190px;
        height: 48px;
    }

    .metriks-header__logo img {
        width: 190px;
        max-height: 24px;
    }

    .metriks-header__spacer {
        display: none;
    }

    .metriks-header__button {
        width: 48px;
        height: 48px;
        padding: 0;
        border-radius: 50%;
    }

    .metriks-header__button span {
        display: none;
    }
}

/* Footer */

.metriks-footer {
    width: 100%;
    padding: 56px 0 40px;
    background: transparent;
    border: 0;
}

.metriks-footer__inner {
    display: grid;
    grid-template-columns: 300.52px minmax(0, 1fr);
    align-items: center;
    column-gap: 135px;
    width: calc(100% - 115px);
    max-width: 1805.02px;
    min-height: 56px;
    margin: 0 auto;
}

.metriks-footer__logo {
    display: flex;
    align-items: center;
    width: 300.52px;
    height: 56px;
}

.metriks-footer__logo img {
    display: block;
    width: 300.52px;
    height: auto;
    max-height: 32.03px;
}

.metriks-footer__content {
    display: grid;
    grid-template-columns: minmax(340px, 1fr) auto auto;
    align-items: center;
    column-gap: 40px;
    min-height: 56px;
}

.metriks-footer__legal {
    display: flex;
    align-items: center;
    gap: 95px;
    min-width: 0;
}

.metriks-footer__copyright {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    color: rgba(0, 0, 0, 0.4);
    font-family: 'Inter', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 18px;
}

.metriks-footer__links {
    display: inline-flex;
    align-items: center;
    gap: 20px;
}

.metriks-footer__links a {
    white-space: nowrap;
    color: rgba(0, 0, 0, 0.4);
    font-family: 'Inter', Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.metriks-footer__links a:hover {
    color: rgba(0, 0, 0, 0.75);
}

.metriks-footer__phone {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    color: #191919;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 110%;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.metriks-footer__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 260px;
    height: 56px;
    padding: 12px 25px 12px 32px;
    border-radius: 120px;
    background: #191919;
    color: #F6F6F6;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 32px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.metriks-footer__button:hover {
    transform: translateY(-1px);
    background: #000000;
}

.metriks-footer__button-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: currentColor;
}

@media (max-width: 1440px) {
    .metriks-footer__inner {
        grid-template-columns: 260px minmax(0, 1fr);
        width: calc(100% - 64px);
        column-gap: 80px;
    }

    .metriks-footer__logo {
        width: 260px;
    }

    .metriks-footer__logo img {
        width: 260px;
    }

    .metriks-footer__content {
        column-gap: 28px;
    }

    .metriks-footer__legal {
        gap: 48px;
    }

    .metriks-footer__phone {
        font-size: 26px;
    }
}

@media (max-width: 1180px) {
    .metriks-footer {
        padding: 48px 0 32px;
    }

    .metriks-footer__inner {
        grid-template-columns: 1fr;
        row-gap: 28px;
        width: calc(100% - 40px);
    }

    .metriks-footer__logo {
        width: 240px;
        height: auto;
    }

    .metriks-footer__logo img {
        width: 240px;
    }

    .metriks-footer__content {
        grid-template-columns: 1fr auto;
        row-gap: 24px;
    }

    .metriks-footer__legal {
        grid-column: 1 / -1;
        justify-content: space-between;
        gap: 24px;
    }
}

@media (max-width: 760px) {
    .metriks-footer__content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }

    .metriks-footer__legal {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .metriks-footer__links {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .metriks-footer__phone {
        font-size: 24px;
    }

    .metriks-footer__button {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .metriks-footer {
        padding: 40px 0 28px;
    }

    .metriks-footer__inner {
        width: calc(100% - 32px);
    }

    .metriks-footer__logo {
        width: 190px;
    }

    .metriks-footer__logo img {
        width: 190px;
        max-height: 24px;
    }

    .metriks-footer__copyright {
        white-space: normal;
        font-size: 14px;
    }

    .metriks-footer__phone {
        font-size: 22px;
    }
}
/* Header mobile adaptation */

@media (max-width: 1180px) {
    .metriks-header {
        top: 20px;
        padding: 0 20px;
    }

    .admin-bar .metriks-header {
        top: 56px;
    }

    .metriks-header__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        max-width: none;
        height: 64px;
        margin: 0;
        padding: 8px 8px 8px 20px;
        border: 1px solid rgba(25, 25, 25, 0.08);
        border-radius: 120px;
        background: rgba(249, 249, 249, 0.9);
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .metriks-header__logo {
        width: 240px;
        height: auto;
    }

    .metriks-header__logo img {
        width: 240px;
        max-height: 26px;
    }

    .metriks-header__divider,
    .metriks-header__label,
    .metriks-header__spacer,
    .metriks-header__phone {
        display: none;
    }

    .metriks-header__button {
        width: auto;
        min-width: 220px;
        height: 48px;
        padding: 10px 20px 10px 24px;
        font-size: 15px;
        line-height: 24px;
    }
}

@media (max-width: 640px) {
    .metriks-header {
        top: 14px;
        padding: 0 14px;
    }

    .admin-bar .metriks-header {
        top: 60px;
    }

    .metriks-header__inner {
        height: 58px;
        padding: 7px 7px 7px 16px;
        border-radius: 100px;
    }

    .metriks-header__logo {
        width: 178px;
        height: auto;
    }

    .metriks-header__logo img {
        width: 178px;
        max-height: 22px;
    }

    .metriks-header__button {
        width: 44px;
        min-width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 50%;
    }

    .metriks-header__button span {
        display: none;
    }

    .metriks-header__button-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 380px) {
    .metriks-header__logo {
        width: 155px;
    }

    .metriks-header__logo img {
        width: 155px;
    }
}
/* Footer mobile adaptation */

@media (max-width: 1180px) {
    .metriks-footer {
        padding: 48px 20px 28px;
    }

    .metriks-footer__inner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        max-width: none;
        min-height: 0;
        margin: 0;
        padding: 28px;
        row-gap: 28px;
        border: 1px solid rgba(25, 25, 25, 0.08);
        border-radius: 32px;
        background: #ffffff;
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.04);
    }

    .metriks-footer__logo {
        width: 240px;
        height: auto;
    }

    .metriks-footer__logo img {
        width: 240px;
        max-height: 26px;
    }

    .metriks-footer__content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        min-height: 0;
        gap: 24px;
    }

    .metriks-footer__legal {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        width: 100%;
    }

    .metriks-footer__copyright {
        white-space: normal;
    }

    .metriks-footer__links {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px 20px;
    }

    .metriks-footer__phone {
        font-size: 26px;
    }

    .metriks-footer__button {
        width: auto;
        min-width: 260px;
    }
}

@media (max-width: 640px) {
    .metriks-footer {
        padding: 36px 14px 24px;
    }

    .metriks-footer__inner {
        padding: 22px;
        border-radius: 26px;
        gap: 24px;
    }

    .metriks-footer__logo {
        width: 178px;
    }

    .metriks-footer__logo img {
        width: 178px;
        max-height: 22px;
    }

    .metriks-footer__content {
        gap: 22px;
    }

    .metriks-footer__copyright {
        font-size: 14px;
        line-height: 18px;
    }

    .metriks-footer__links {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .metriks-footer__links a {
        font-size: 12px;
        line-height: 18px;
    }

    .metriks-footer__phone {
        font-size: 24px;
        line-height: 110%;
    }

    .metriks-footer__button {
        width: 100%;
        min-width: 0;
        height: 52px;
        padding: 10px 20px 10px 24px;
        font-size: 15px;
    }
}

@media (max-width: 380px) {
    .metriks-footer__phone {
        font-size: 22px;
    }

    .metriks-footer__button {
        font-size: 14px;
    }
}
/* Popup */

body.metriks-popup-opened {
    overflow: hidden;
}

.metriks-header__button,
.metriks-footer__button {
    border: 0;
    appearance: none;
    cursor: pointer;
}

.metriks-popup {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.metriks-popup[hidden] {
    display: none;
}

.metriks-popup__overlay {
    position: absolute;
    inset: -91px;
    background: rgba(217, 217, 217, 0.37);
    backdrop-filter: blur(16.95px);
    -webkit-backdrop-filter: blur(16.95px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.metriks-popup__dialog {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 313px;
    width: min(100%, 1261px);
    min-height: 576px;
    overflow: hidden;
    border-radius: 48px;
    background: #ffffff;
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.metriks-popup.is-open .metriks-popup__overlay {
    opacity: 1;
}

.metriks-popup.is-open .metriks-popup__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.metriks-popup__content {
    position: relative;
    padding: 96px 70px 79px 100px;
}

.metriks-popup__logo {
    display: block;
    width: 77px;
    height: auto;
    margin-bottom: 38px;
    opacity: 0.2;
}

.metriks-popup__title {
    position: relative;
    width: min(100%, 661px);
    margin: 0 0 20px;
    color: #000000;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 60px;
    font-weight: 600;
    line-height: 120%;
    letter-spacing: -0.03em;
}

.metriks-popup__title::after {
    content: "";
    position: absolute;
    right: 3px;
    bottom: 10px;
    width: 299px;
    height: 3px;
    border-radius: 99px;
    background: rgba(0, 0, 0, 0.2);
}

.metriks-popup__text {
    width: min(100%, 659px);
    margin: 0 0 14px;
    color: #000000;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 24px;
    font-weight: 300;
    line-height: 140%;
}

.metriks-popup__form {
    display: grid;
    grid-template-columns: 456px 294px;
    align-items: center;
    gap: 30px;
    margin-top: 14px;
}

.metriks-popup__field {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    width: 456px;
    height: 56px;
    padding: 12px 32px;
    gap: 12px;
    border: 1px solid #DDDDDD;
    border-radius: 120px;
    background: #ffffff;
}

.metriks-popup__field-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.metriks-popup__phone-prefix {
    flex: 0 0 auto;
    color: #000000;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 32px;
}

.metriks-popup__input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #000000;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 32px;
}

.metriks-popup__input::placeholder {
    color: rgba(0, 0, 0, 0.35);
}

.metriks-popup__submit {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 294px;
    height: 56px;
    padding: 12px 25px 12px 32px;
    border: 0;
    border-radius: 120px;
    background: #191919;
    color: #F6F6F6;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 32px;
    cursor: pointer;
}

.metriks-popup__submit::before,
.metriks-popup__submit::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    filter: blur(64.15px);
    opacity: 0.55;
}

.metriks-popup__submit::before {
    right: -26px;
    top: -39px;
    width: 264px;
    height: 123px;
    border-radius: 50%;
    background: #A4E259;
}

.metriks-popup__submit::after {
    left: -50px;
    bottom: -28px;
    width: 261px;
    height: 69px;
    border-radius: 50%;
    background: #E259DF;
}

.metriks-popup__submit-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: currentColor;
}

.metriks-popup__image {
    width: 313px;
    height: 357px;
    align-self: center;
    overflow: hidden;
    border-radius: 12px 0 0 12px;
    background: #f2f2f2;
}

.metriks-popup__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.metriks-popup__image--empty {
    background:
        radial-gradient(circle at 35% 30%, rgba(164, 226, 89, 0.55), transparent 34%),
        radial-gradient(circle at 70% 70%, rgba(226, 89, 223, 0.45), transparent 34%),
        #f2f2f2;
}

.metriks-popup__close {
    position: absolute;
    z-index: 5;
    top: -38px;
    right: -38px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transform: rotate(45deg);
}

.metriks-popup__close span {
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    background: #F49090;
    transform: translate(-50%, -50%);
}

.metriks-popup__close span:first-child {
    width: 31px;
    height: 4px;
    border-radius: 99px;
}

.metriks-popup__close span:last-child {
    width: 4px;
    height: 31px;
    border-radius: 99px;
}

/* Popup adaptive */

@media (max-width: 1280px) {
    .metriks-popup__dialog {
        grid-template-columns: minmax(0, 1fr) 280px;
        width: min(100%, 1080px);
    }

    .metriks-popup__content {
        padding: 76px 48px 64px 72px;
    }

    .metriks-popup__title {
        font-size: 52px;
    }

    .metriks-popup__text {
        font-size: 22px;
    }

    .metriks-popup__form {
        grid-template-columns: minmax(0, 456px) 294px;
    }

    .metriks-popup__field {
        width: 100%;
    }

    .metriks-popup__image {
        width: 280px;
    }
}

@media (max-width: 1024px) {
    .metriks-popup {
        align-items: flex-start;
        padding: 24px;
        overflow-y: auto;
    }

    .metriks-popup__dialog {
        grid-template-columns: 1fr;
        min-height: 0;
        border-radius: 36px;
    }

    .metriks-popup__content {
        padding: 54px 38px 42px;
    }

    .metriks-popup__logo {
        margin-bottom: 30px;
    }

    .metriks-popup__title {
        width: 100%;
        font-size: 44px;
    }

    .metriks-popup__title::after {
        display: none;
    }

    .metriks-popup__text {
        width: 100%;
        font-size: 20px;
    }

    .metriks-popup__form {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 28px;
    }

    .metriks-popup__field,
    .metriks-popup__submit {
        width: 100%;
    }

    .metriks-popup__image {
        display: none;
    }

    .metriks-popup__close {
        top: 18px;
        right: 18px;
        width: 38px;
        height: 38px;
    }

    .metriks-popup__close span:first-child {
        width: 27px;
    }

    .metriks-popup__close span:last-child {
        height: 27px;
    }
}

@media (max-width: 640px) {
    .metriks-popup {
        padding: 14px;
    }

    .metriks-popup__dialog {
        border-radius: 28px;
    }

    .metriks-popup__content {
        padding: 48px 22px 24px;
    }

    .metriks-popup__logo {
        width: 72px;
        margin-bottom: 26px;
    }

    .metriks-popup__title {
        font-size: 34px;
        line-height: 110%;
        letter-spacing: -0.04em;
    }

    .metriks-popup__text {
        margin-top: 16px;
        font-size: 17px;
        line-height: 140%;
    }

    .metriks-popup__field {
        height: 54px;
        padding: 10px 22px;
    }

    .metriks-popup__submit {
        height: 54px;
        padding: 10px 20px;
        font-size: 15px;
    }

    .metriks-popup__phone-prefix,
    .metriks-popup__input {
        font-size: 16px;
    }
}