@font-face {
    font-family: "FF DIN";
    font-style: normal;
    font-weight: 300;
    src: url(fonts/ff-din_light.woff) format('woff2');
}
@font-face {
    font-family: "FF DIN";
    font-style: normal;
    font-weight: 400;
    src: url(fonts/ff-din_regular.woff2) format('woff2');
}
@font-face {
    font-family: "FF DIN";
    font-style: normal;
    font-weight: 500;
    src: url(fonts/ff-din_medium.woff2) format('woff2');
}
@font-face {
    font-family: "FF DIN";
    font-style: normal;
    font-weight: 700;
    src: url(fonts/ff-din_bold.woff2) format('woff2');
}

:root {
    --main-bg: rgba(0, 0, 0, 0.2);
    --secondary-bg: #141414;
    --secondary-bg_hover: #181818;
    --gradient: linear-gradient(12deg, 
                                rgba(255, 255, 255, 0.05) 0%, 
                                rgba(255, 255, 255, 0.25) 8%, 
                                rgba(255, 255, 255, 0.06) 15%, 
                                rgba(255, 255, 255, 0.08) 82%, 
                                rgba(229, 246, 255, 0.40) 95.5%, 
                                rgba(255, 255, 255, 0.10) 100%, 
                                rgba(229, 246, 255, 0.10) 100%);
}

* {box-sizing: border-box;}

body {
    margin: 0;
    padding: 60px 0;
    border: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-font-smoothing: antialiased;
    font-family: "FF DIN";
    color: white;
    background-color: #111;
    background-image: url(graphics/background.svg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

main {
    padding: 69px 40px 32px 40px;
    width: 550px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--main-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(4px);
    box-sizing: border-box;
    position: relative;
}
main:before, main:after {
    content: "";
    display: block;
    width: 240px;
    height: 240px;
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
main:before {
    background-image: url(graphics/border-top-right.svg);
    top: -1px;
    right: -1px;
}
main:after {
    bottom: -1px;
    left: -1px;
    background-image: url(graphics/border-bottom-left.svg);
}

.avatar {
    width: 114px;
    height: 114px;
}

h1 {
    font-size: 36px;
    line-height: 32px;
    font-weight: 500;
    letter-spacing: -0.5px;
    margin-top: 20px;
    margin-bottom: 17px;
}

h1 .first-name {font-weight: 300;}

.tags {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

.tag {
    margin-right: 25px;
    font-size: 12px;
    font-weight: 500;
    line-height: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 8px;
    padding: 6px 10px;
    background: var(--gradient), var(--secondary-bg);
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    z-index: 0;
}
.tag:last-child {margin-right: 0;}
.tag:before {
    content: "";
    display: block;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    border-radius: 7px;
    background-color: var(--secondary-bg);
    position: absolute;
    top: 1px;
    left: 1px;
    z-index: -1;
}
.tag:not(:last-child):after {
    content: "";
    display: block;
    width: 9px;
    height: 26px;
    position: absolute;
    top: -1px;
    right: -17px;
    background-image: url(graphics/divider-slash.svg);
    background-size: contain;
    background-repeat: no-repeat;
}

p {
    margin: 0;
    text-align: center;
}

p.body {
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: -0.5px;
    margin-top: 21px;
    margin-bottom: 36px;
}

.buttons {
    display: flex;
    margin-bottom: 20px;
}

.button {
    padding: 16px 22px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    background: var(--gradient), var(--secondary-bg);
    border-radius: 12px;
    position: relative;
    z-index: 1;
    transition: transform;
    transition-timing-function: ease;
    transition-duration: 0.2s;
}
.button:before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: inherit;
    top: 0;
    left: 0;
    opacity: 0;
    background: linear-gradient(12deg,
                                rgba(255, 255, 255, 0.10) 0%,
                                rgba(255, 255, 255, 0.20) 0.01%,
                                rgba(255, 255, 255, 0.40) 5.5%,
                                rgba(255, 255, 255, 0.10) 15%,
                                rgba(255, 255, 255, 0.15) 73%,
                                rgba(255, 255, 255, 0.80) 96%,
                                rgba(255, 255, 255, 0.35) 99.99%,
                                rgba(255, 255, 255, 0.10) 100%),
                                var(--secondary-bg_hover);
    transition: opacity 0.2s ease;
    z-index: -2;
}
.button:after {
    content: "";
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    position: absolute;
    border-radius: 11px;
    top: 1px;
    left: 1px;
    background-color: var(--secondary-bg);
    z-index: -1;
}

.button:hover {transform: translateY(-1px);}
.button:hover:before {opacity: 1;}
.button:hover:after {background-color: var(--secondary-bg_hover);}

.button-telegram {
    padding-left: 20px;
    margin-right: 12px;
}
.button-telegram .icon {
    display: block;
    margin-right: 12px;
    width: 24px;
    height: 20px;
    background-image: url(graphics/telegram.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.button-vk {
    padding-left: 19px;
    padding-right: 21px;
    font-size: 0;
}
.button-vk .icon {
    width: 24px;
    height: 15px;
    background-image: url(graphics/vk.svg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

p small {
    display: block;
    margin 0;
    padding: 0;
    font-size: 14px;
    line-height: 20px;
    color: rgba(255, 255, 255, 0.5);
    max-width: 328px;
}

p small a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    z-index: 1;
    transition: color 0.1s ease;
}
p small a:hover {color: white;}

.divider {
    display: block;
    flex-shrink: 0;
    margin-top: 60px;
    margin-bottom: 24px;
    width: 100%;
    height: 1px;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.30) 52%, rgba(255, 255, 255, 0.00) 100%);
}

.browser-size-link {
    font-weight: 400;
    display: block;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    gap: 3px;
    transition: color 0.1s ease;
}
.browser-size-link:after {
    content: "";
    display: block;
    width: 12px;
    height: 14px;
    background-image: url(graphics/arrow.svg);
    background-size: 12px 9px;
    background-position: left top 3px;
    background-repeat: no-repeat;
    opacity: 0.2;
    transition: opacity, transform;
    transition-duration: 0.1s;
    transition-timing-function: ease;
}

.browser-size-link:hover {color: white;}
.browser-size-link:hover:after {
    transform: translateX(1px);
    opacity: 1;
}

@media screen and (max-width: 640px) {
    html {height: 100%}
    
    body {
        padding: 20px 12px;
        height: 100%;
        min-height: 0;
    }
    
    main {
        max-width: 340px;
        padding: 40px 20px 32px 20px;
    }
    
    h1 {
        font-size: 28px;
        line-height: 24px;
    }
    
    p.body {
        font-size: 16px;
        line-height: 23px;
        margin-bottom: 28px;
    }
    
    .button {
        font-size: 14px;
        line-height: 20px;
    }
    
    .button-telegram {
        padding: 16px 18px 16px 16px;
        margin-right: 8px
    }
    
    .button-vk {
        font-size: 0;
        padding: 16px 17px 16px 15px;
    }
    
    .divider {margin-top: 26px;}
    
    p small {line-height: 18px;}
}


/*---------------------------------------------------------------------------*/


.browser-size main {
    width: 360px;
    padding: 64px 56px 70px 56px;
}

.browser-size main:before, 
.browser-size main:after {
    content: "";
    display: block;
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.browser-size main:before {
    width: 120px;
    height: 121px;
    background-image: url(graphics/border-top-right_small.svg);
    top: -1px;
    right: -1px;
}
.browser-size main:after {
    width: 80px;
    height: 80px;
    bottom: -1px;
    left: -1px;
    background-image: url(graphics/border-bottom-left_small.svg);
}

.browser-size h1 {
    font-size: 14px;
    font-weight: 300;
    line-height: 18px;
    text-align: center;
    color: white;
    opacity: 0.5;
    margin-top: 0;
    margin-bottom: 13px;
    letter-spacing: 0 !important;
}

.size {
    display: flex;
    gap: 6px;
}
.size * {
    font-size: 36px;
    line-height: 36px;
    font-weight: 300;
}

.size_width, .size_height {font-weight: 500;}

.outer-size {
    position: absolute;
    margin: 0;
}
span.tag:after {display: none !important;}

.outer-size.width_top {
    left: 50%;
    top: -32px;
    transform: translateX(-50%);
}
.outer-size.width_bottom {
    left: 50%;
    bottom: -32px;
    transform: translateX(-50%);
}
.outer-size.height_left {
    left: -40px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
}
.outer-size.height_right {
    right: -40px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
}