/**
Theme Name: abstudio
Author: pxpn
Version: 1
*/

/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
    position: relative;
}

/* Prevent font size inflation */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
    margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul,
ol {
    list-style: none;
}

/* Set core body defaults */
body {
    line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
    line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
    text-wrap: balance;
}

/* Make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
    font: inherit;
}

/* Make sure textarea without a rows attribute are not tiny */
textarea:not([rows]) {
    min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
    scroll-margin-block: 5ex;
}

/*reset css end

 */

@font-face {
    font-family: "Helvetica Neue";
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    ascent-override: normal;
    descent-override: normal;
    line-gap-override: normal;
    src: url("assets/fonts/helvetica/HelveticaNeueLight.otf") format("opentype");
}

@font-face {
    font-family: "Helvetica Neue";
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    ascent-override: normal;
    descent-override: normal;
    line-gap-override: normal;
    src: url("assets/fonts/helvetica/HelveticaNeueBold.otf") format("opentype");
}

@font-face {
    font-family: "Helvetica Neue";
    font-weight: 400;
    font-style: italic;
    font-display: swap;
    ascent-override: normal;
    descent-override: normal;
    line-gap-override: normal;
    src: url("assets/fonts/helvetica/HelveticaNeueItalic.ttf") format("truetype");
}

@font-face {
    font-family: "Druk";
    font-weight: 400;
    font-style: italic;
    font-display: swap;
    ascent-override: normal;
    descent-override: normal;
    line-gap-override: normal;
    src: url("assets/fonts/druk.ttf") format("truetype");
}

@font-face {
    font-family: "Druk";
    src: url("assets/fonts/drukwidecyr-medium.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
  font-family: "Druk";
  src: url("assets/fonts/drukwidecyr-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


html {
    scroll-behavior: smooth;
}

main {
    z-index: 1;
}

body {
    background-color: #070707;
    color: #ffffff;
    position: relative;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

header {
    padding-top: 50px;
    z-index: 2;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

header a {
    text-decoration: none;
    color: #ffffff;
}

header #nav{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

#menu-social, #menu-header-menu {
    display: flex;
    gap: 24px;
    margin: 0;
    padding: 0;

}

#menu-social a, #menu-header-menu a {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    text-transform: lowercase;
    padding-bottom: 4px;

}

#menu-social a:hover, #menu-header-menu a:hover, #menu-header-menu li.current-menu-item a {
    border-bottom: 1px solid #ffffff;
}

#menu-header-menu {
    justify-content: flex-end;
}

.logo {
    margin: 0 auto;
}
.wrapper {
    margin: 0 auto;
    padding: 0 24px;
    max-width: 1920px;
}

h1  {
    font-family: 'Druk', Arial, sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 110px;
    z-index: 2;
}

p {
    font-size: clamp(16px, 1.6vw, 18px);
    line-height: 1.5;
    margin-bottom: 1.2em;
}

.opacity {
    opacity: 48%;
}

p.opacity {
    margin-top: 2em;
}

header #mobile-nav {
    display: none;
}

footer {
    display: none;
}

.fullscreen-menu {
    display: none;
}

@media (max-width: 968px) {

    .wrapper {
        padding: 0 16px;
    }

    main {
        padding-bottom: 70px;
    }

    header {
        position: sticky;
        padding-top: 24px;
        margin-bottom: 48px;
        background-color: #000;
    }

    header #nav {
        display: none;
    }

    header #mobile-nav {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        align-items: center;
        z-index: 500;
    }

    header #mobile-nav .logo {
        margin-left: 0;
    }

    header #mobile-nav .me {
        display: block;
        margin: 0 auto;
        width: 64px;
    }

    header #mobile-nav .burger-btn {
        margin-left: auto;
        width: 66px;
        height: 33px;
        position: relative;
        background: none;
        border: none;
        cursor: pointer;
    }

    header #mobile-nav .burger-btn::before,
    header #mobile-nav .burger-btn::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        transition: opacity 0.3s ease;
    }

    header #mobile-nav .burger-btn::before {
        background-image: url("/wp-content/themes/abstudio/assets/img/burger.svg");
        opacity: 1;
    }

    header #mobile-nav .burger-btn::after {
        background-image: url("/wp-content/themes/abstudio/assets/img/burger-off.svg");
        opacity: 0;
    }

    header #mobile-nav .burger-btn.active::before {
        opacity: 0;
    }

    header #mobile-nav .burger-btn.active::after {
        opacity: 1;
    }

    .fullscreen-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9); /* Полупрозрачный черный фон */
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 400;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }

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

    .fullscreen-menu .menu-nav ul {
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 48px;
        align-items: center;
    }

    .fullscreen-menu .menu-nav ul li {
        font-size: 14px;
    }

    footer {
        display: block;
        position: fixed;
        box-sizing: border-box;
        bottom: 0;
        width: 100%;
        z-index: 500;
    }

    footer .custom-social-menu {
        padding: 8px 24px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin: 0 4vw;
        border: 2px solid rgba(255, 255, 255, 0.16);
        border-radius: 22px;
        margin-bottom: 24px;
        background: #0000008c;
        z-index: 500;
        backdrop-filter: blur(10px);
    }

    footer .custom-social-menu li a {
        font-weight: 400;
        font-size: 14px;
        color: #ffffff;
        text-decoration: none;

    }
}