*{
    box-sizing: border-box;
}
body{
    background-color: #FFFAF0;
   font-family: 'IBM';
    font-weight: 450;
    
}

a{
    text-decoration: none;
}
html,
body {
    height: 100%;
    margin: 0;
      -ms-overflow-style: none; 
    scrollbar-width: none;  
}
body::-webkit-scrollbar {
    display: none; 
}
body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a,
button {
    transition:
        transform .25s ease,
        opacity .25s ease,
        color .3s ease,
        background-color .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

a {
    position: relative;
    display: inline-block;
}

a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 1px;
    background: currentColor;

    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

a:hover {
    opacity: .75;
}

a:hover::after {
    transform: scaleX(1);
}

a:active {
    transform: scale(.97);
}

a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

button {
    cursor: pointer;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

button:active {
    transform: translateY(0) scale(.96);
}

button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

button:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.header_border{
    border: 1px solid black;
    padding: 8px 15px;
    margin-bottom: 30px;
    width: fit-content;
}
.header_title{
    font-family: 'Iosevka_Charon';
    font-weight: 800;
    font-size: 65px;
}
.main{
     width: 100%;
    max-width: 1300px;

    margin: 0 auto;
    padding: 0 70px;

    box-sizing: border-box;
}
.hidden_field {
    display:none;
}
.header_title-style{
    font-family: 'Neucha';
    font-weight: 400;
    font-style: italic;
    color: #8B06D3;
}
.header_description{
    max-width: 540px;
    margin-top: 20px;
    line-height: 25px;
    font-size: 18px;
}
.header_button{
    background-color: black;
    color: #FFFAF0;
    padding: 15px;
    margin-top: 25px;
    border: none;
    font-family: 'IBM';
    font-weight: 600;
}
.hero_bg{
    max-height: 550px;
}

.header{
    width: 100%;
    max-width: 1300px;

    margin: 23px auto 40px;
    padding: 0 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-sizing: border-box;
}
.header_list{
    display: flex;
    gap: 25px;
    color: black;
}
.header_link{
    color: black;
}
.img_header_phone{
    max-width: 30px;
}
.footer{
    width: 100%;
    max-width: 1300px;

    margin: 20px auto 0;
    padding: 15px 70px;

    border-top: 1px solid black;

    display: flex;
    justify-content: space-between;
    font-size: 14px;

    box-sizing: border-box;
}
.hero{
    display: flex;
    max-width: 1300px;
   
    justify-content: space-between;
    position: relative;
}
.cursor {
   position:fixed;

    width:20px;
    height:20px;

    background:white;

    border-radius:50%;

    pointer-events:none;

    z-index:999999;

    transform:translate(-50%, -50%);

    mix-blend-mode:difference;
}
.cursor{
    opacity: 0;
    transition: opacity .2s;
}

.cursor.show{
    opacity: 1;
}
.hero_project{
        position: fixed;
    right: 0;
    height: fit-content;
    gap: 30px;
     writing-mode: vertical-rl;
    text-orientation: upright;
    display: flex;
    align-items: center;
        justify-content: space-around;
    background-color: black;
    color: white;
    width: 60px;
    padding: 25px 0px;
    letter-spacing: 8px;
        font-size: 18px;
        overflow: hidden;
    transition: color .4s ease;
    z-index: 1;
}
.hero_project::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #8B06D3;

    transform: translateY(100%);
    transition: transform .45s cubic-bezier(.77,0,.18,1);

    z-index: -1;
}

.hero_project span,
.hero_project img {
    transition: transform .4s ease;
}


.hero_project:hover::before {
    transform: translateY(0);
}


.hero_project:hover {
    color: #FFFAF0;
}

.hero_project.btn_trans:before {
    background: #db4c00;
}
.hero_project.soma:before {
    background: #bb5a00;
}
.hero_project.horseman:before {
    background: #bb5a00;
}
.hero_project.naish:before {
    background: #af2a47;
}
.hero_project.btn_sevil:before {
    background: #6286b0;
}
.hero_project.btn_barber:before {
    background: #4c4c4c;
}
.hero_project:hover span {
    transform: translateY(-5px);
}


.hero_project:hover img {
    transform: translateY(5px) rotate(45deg);
    filter: brightness(0) invert(1);
}
.hero_project img{
    width: 18px;
}
.hero_bg2{
    display: none;
}
.burger{
    display:none;
    width:40px;
    height:40px;
    border:none;
    background:transparent;
    cursor:pointer;
    padding:0;

    flex-direction:column;
    justify-content:center;
    gap:6px;
}

.burger span{
    width:30px;
    height:2px;
    background:#000;
    border-radius: 2px;
    transition:.3s;
}
.burger span:nth-child(2){
    width:15px;
}
.burger.services span,.burger.about span {
    background:#fff;
}
.burger.table span{
    background: #f5e1d6;
}

.burger.soma span,.burger.horse span {
    background:#83460c;
}
.header_title{
    max-width: 505px;
}
.phone_wrapper{
    position:relative;
    display:flex;
    align-items:center;
}

.phone_link{
    display:flex;
}

.phone_number{
    position:absolute;
    right:0;
    top:45px;

    font-size:14px;
    color:inherit;

    opacity:0;
    visibility:hidden;
    transform:translateY(-10px);

    transition:.3s ease;
    white-space:nowrap;
}
.footer a{
    color: #000;
}
@view-transition { navigation: auto; }

::view-transition-old(root) {
    animation: fadeOut .3s ease forwards;
}
::view-transition-new(root) {
    animation: fadeInUp .5s ease forwards;
}

@keyframes fadeOut { to { opacity: 0; } }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}

@media (min-width:769px){

    .phone_wrapper:hover .phone_number{
        opacity:1;
        visibility:visible;
        transform:translateY(0);
    }

}
@media (max-width: 1150px) {
    .header_title{
font-size: 52px;
    }
    .header_title{
    max-width: 400px;
}
}
@media (max-width: 1050px) {
    .header_title{
font-size: 52px;
    }
    .hero_project span{
        font-size: 16px;
    }
    .hero_bg {
    max-height: 480px;
}
.hero_project{
    width: 55px;
}
.header, .main{
    padding: 0 55px;
}
.footer{
    padding: 15px 50px;
}
}
@media (max-width: 980px) {
.hero_bg {
        max-height: 440px;
    }
        .header_title {
        font-size: 52px;
    }
}
@media (max-width: 905px) {
    .header_title {
        font-size: 52px;
    }
    .hero_project span {
        font-size: 14px;
    }
     .header,
    .main,
    .footer{
        padding-left:55px;
        padding-right:55px;
    }

    .header{
        margin-top:23px;
        margin-bottom:40px;
    }

    .footer{
        margin-top:20px;
    }
}

@media (max-width: 768px){
    .hero_bg{
        display: none;
    }
    .hero_bg2{
    display: block;
    max-height: 330px;
    margin: 0 auto;
    margin-top: 30px;
}
 .cursor{
        display:none;
    }
 .navigation{
        position:fixed;
        top:0;
        right:-100%;
        width:280px;
        height:100vh;
        background:#FFFAF0;
        transition:.35s;
        display:flex;
        justify-content:center;
        align-items:center;
        z-index:100;
    }

    .navigation.active{
        right:0;
    }
.navigation.services,.navigation.about, .navigation.table{
    background:#000000;
}

    .header_list{
        display:flex;
        flex-direction:column;
        gap:30px;
        text-align:center;
    }

    .burger{
        display:flex;
        z-index:101;
    }

    .img_header_phone{
        display:none;
    }
    .burger.active span:nth-child(1){
    transform:translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2){
    opacity:0;
}

.burger.active span:nth-child(3){
    transform:translateY(-8px) rotate(-45deg);
}
.overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 99;
}

.overlay.active{
    opacity: 1;
    visibility: visible;
}

.navigation{
    z-index: 100;
}
.footer{
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}
.footer a{
text-align: center;
}

.header_button{
        display: block;
    margin: 25px auto 0;
    width: 100%;
    text-align: center;
}
.header_title {
        font-size: 28px;
    }
    .item_title{
        font-size: 26px;
    }
}
@media (max-width: 580px){
.main_sec{
    padding-right: 10px;
}
.header_description{
    font-size: 16px;
}
.hero_bg2{
    max-height: 300px;
}
}
@media (max-width: 515px){
    .hero_project {
        width: 40px;
    }
    .header,
    .main,
    .footer{
        padding-left:45px;
        padding-right:45px;
    }

    .header{
        margin-top:23px;
        margin-bottom:40px;
    }
}
@media (max-width: 420px){
    .hero_bg2 {
        max-height: 270px;
    }
         .header,
    .main,
    .footer{
        padding-left:45px;
        padding-right:45px;
    }

    .header{
        margin-bottom:25px;
    }

    .hero_bg2{
        max-height:270px;
    }

    .header_border{
        margin-bottom:20px;
    }
}