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

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
    color: #0a0a0a;
}

html {
    scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: clip;
}

/* Анимации */
.fade-in,
.fade-in-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Класс для видимых элементов */
.fade-in.visible,
.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Если JS отключен */
.no-js .fade-in,
.no-js .fade-in-scroll {
    opacity: 1;
    transform: none;
}


.header{
    background-color: #0a0a0a;
    padding: 33px 0 32px;
    font-size: 24px;
    line-height: 29px;
    color: #717171;
}

.container{
   max-width:1200px;
   margin: 0 auto;
   padding: 0 15px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
}

.menu {
    display: flex;
    flex-grow: 1;
    justify-content: flex-start;
}

.nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.nav-logo img {
    transition: transform 0.5s ease; 
}

.nav-logo img:hover {
    transform: rotate(360deg); 
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px; 
    padding: 0 20px;
}

.nav-phone {
    font-size: 24px;
    line-height: 29px;
}

.menu-item{
   
    margin-right: 20px;
}

.languages {
    display: flex;
    margin-left: 20px;
}

.nav-slash{
    border:1px solid #717171;
    margin: 5px;
}
.languages-item{
    font-size: medium;
}
.languages-item:hover{
    color: #490E84;
}
.menu-link:hover{
    color: #490E84;
}

.nav-phone:hover{
    color: #490E84;
}

.mobile-menu{
    display: none;
}

.headline {
    background-color: #f5f7f5;
    text-align: center;
    padding: 70px 0 40px;
}

.title {
    text-transform: uppercase;
    margin-bottom: 40px;
    color: #490E84;
    font-weight: 700;
    font-size: 64px;
    line-height: 77px;
}

.headline-img {
    margin-bottom: 25px;
}

.headline-btn {
    display: inline-block;
    font-weight: 700;
    font-size: 24px;
    line-height: 29px;
    text-transform: uppercase;
    color: #fff;
    background-color: #490E84;
    padding: 22px 117px 19px;
    border-radius: 30px;
}

.headline-btn:hover {
    background-color: #717171;
}

.modal, .success-popup {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

.modal {
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none; 
  justify-content: center;
  align-items: center;
  overflow-y: auto; 
}

.modal-content {
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  overflow-y: auto; 
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.new-title,
.color-title{
     margin: 50px 0px;
     text-transform: uppercase;
     text-align: center;
     color: #717171;
     font-size: 32px;
     line-height: 39px;
     font-weight: 700;
}

.new-info{
    display: flex;
    align-items: center;
}

.new-text p{
    max-width: 560px;
    margin: 0 0 30px;
}

.new-text b{
    max-width: 560px;
    font-size: 20px;
    line-height: 26px;
    display: block;
}

.images-new{
    position: relative;

}

.images-new{
    transition: transform 0.3s ease-in-out;
    height: auto;
    display: block;  
    max-width: 100%; 
}

.images-new:hover {
    transform: scale(1.1); 
}


.color{
    padding-bottom: 50px;
}

.color-list{
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.color-item img{
    margin-bottom: 20px;
}

.color-item h3{
    font-size: 20px;
    line-height: 26px;
    margin: 0 0 10px;
}

.color-item p{
    margin: 0;
}

.color-item img {
    transition: transform 0.3s ease-in-out;
}

.color-item img:hover {
    transform: scale(1.1);
}

.contacts-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #574B63;
    color: #fff;
    margin-top: 50px;
    padding: 40px;
}

.contacts-content {
    max-width: 50%;       
    display: flex;        
    flex-direction: column; 
    align-items: center;   
    justify-content: center;
    text-align: center;      
}


.contacts-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center; 
}


.contacts-title {
    margin-bottom: 20px;
    font-size: 32px;
    line-height: 39px;
    text-transform: uppercase;
    text-align: left; 
}


.contacts-input {
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #fff;
    display: block;
    width: 100%;
    margin-bottom: 20px;
    background-color: #574B63;
    outline: none;
}

.contacts-input::placeholder {
    font-size: 14px;
    line-height: 18px;
    color: #fff;
    opacity: 0.5;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.contacts-input:focus::placeholder {
    color: transparent;
}

.input-tel{
    appearance: none; 
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color:#574B63;
    border: 1px solid #ccc;
    color:#ccc;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
}

.input-color {
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  width: 100%;
  appearance: none;
  background-color: #fff;
  color: #333;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2210%22%20height%3D%226%22%20viewBox%3D%220%200%2010%206%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200l5%206%205-6z%22%20fill%3D%22%23666%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
}

.input-color:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.contacts-form p {
    opacity: 0.5;
    text-align: center;
    margin: 30px 0;
}

.contacts-btn {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-self: center; 
}

.contacts-btn:hover {
    background-color: #490E84;
    color: #fff;
}

.footer{
    background-color: #0a0a0a;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
  text-align: center;
}

.footer-phone {
  white-space: nowrap;
}

.footer-link{
    flex-grow: 0;
}

.footer-phone{
    flex-grow: 0;
    font-size: 24px;
    line-height: 29px; 
}

.footer-logo {
    position: relative;  
    transform: translateX(-50%); 
    text-align: center;
}

.footer-logo img {
    transition: transform 0.5s ease; 
}

.footer-logo img:hover {
    transform: rotate(360deg); 
}

.footer-phone:hover{
    color: #490E84;
} 

.footer-link:hover{
    color: #490E84;
}

.footer-inner {
    color: #717171;
    display: flex;
    gap: 50px;
    align-items: center;
    padding: 50px 20px; 
    width: 100%;
}

.menu-btn{
    display: none;
}

.success-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #000;
  color: white;
  padding: 15px 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  z-index: 9999;
  font-size: 16px;
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

.success-popup.show {
  opacity: 1;
  visibility: visible;
}

@media(max-width:1200px){
.contacts-content{
    .fade-in,
    .fade-in-scroll {
        opacity: 1;
        transform: none;}
    margin: auto;
    padding-bottom: 30px;
}
}

@media(max-width:1200px){
    .headline-img{
        max-width: 100%;
    }

    .contacts-inner{
        display: block;
    }

    .contacts-form{
        width: auto;
    }

    .contacts-title{
        text-align: center;
    }

    .contacts-img{
        width: 100%;
    }
}

@media(max-width:1100px){
    .color-item{
       width: 50%;
       margin-bottom: 30px;
       }

       .color-list{
        flex-wrap: wrap;
       }
}


@media(max-width:1020px){
    .menu-btn {
        display: inline-block;
        width: 60px;
        height: 50px;
        background-color: transparent;
        border: none;
        cursor: pointer;
        position: relative;
        z-index: 50;
        order: 1;
    }

    .nav-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 10px;
    }

    .logo,
    .phone {
        position: relative;
    }

    .btn-line {
        position: absolute;
        left: 0;
        width: 100%;
        background-color: white;
        height: 2px;
        transition: .3s;
    }

    .btn-line:nth-child(1){
        top: 0;
    }
    .btn-line:nth-child(2){
        top: 16px;
    }
    .btn-line:nth-child(3){
        top: 32px;
    }
    .btn-line:nth-child(4){
        top: 48px;
    }

    .menu-open .btn-line:nth-child(1){
        transform: scaleX(0);
    }
    .menu-open .btn-line:nth-child(2){
        transform: rotate(45deg);
        top: 16px;
    }
    .menu-open .btn-line:nth-child(3){
        transform: rotate(-45deg);
        top: 32px;
    }
    .menu-open .btn-line:nth-child(4){
        transform: scaleX(0);
    }

    .menu{
        display:none;
    }
        
    
   .menu-open .menu {
        display: block;
    }

    .menu-item {
        padding: 20px 0;
        font-size: 36px;
        list-style: none;
    }

    .phone {
        text-align: center;
    }

    .nav-right {
        position: relative;
        order: 0; 
        display: flex;
        align-items: center;
        gap: 10px;
        justify-content: flex-start; 
    }

    .nav-phone {
        font-size: 18px;
    }

    .languages {
        margin-left: 10px;
    }
   
    .mobile-menu {
        position: fixed;
        top: 10%;
        left: 25%;
        width: 50%;
        height: 30%;
        background-color: rgba(0,0,0,0.95);
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
        transition: opacity 0.4s ease, transform 0.4s ease;
        z-index: 1000;
    }


    .mobile-menu.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }


    .mobile-menu-content {
        background: #fff;
        padding: 40px 50px;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        min-width: 260px;
        max-width: 90%;
        color: white;
    }

    .mobile-menu .close-btn {
        position: absolute;
        top: 15px;
        right: 15px;
        font-size: 28px;
        cursor: pointer;
        color: white;
        z-index: 1010;
    }


    .mobile-menu ul {
        list-style: none;
        padding: 0;
        margin: 40px 0 0 0;
    }

    .mobile-menu li {
        margin: 15px 0;
    }

    .mobile-menu a {
        text-decoration: none;
        font-size: 18px;
        color: white;
        transition: color 0.3s ease;
    }

    .mobile-menu a:hover {
        color: #490E84;
    }

}

@media(max-width:940px){
    .images-new{
        display: none;
    }

    .new-text p,
    .new-text b{
        max-width: 100%;
    }

    
@media (max-width: 732px) {
    .nav {
        flex-direction: column;
        align-items: center; 
        gap: 15px; 
        padding: 15px 10px;
    }

    .nav-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .nav-phone {
        font-size: 20px;
    }

    .languages {
        margin-left: 0;
        display: flex;
        gap: 10px;
    }

    .nav-logo {
        position: static; 
        transform: none;
    }

    .menu-btn {
        order: 0;
        align-self: center;
    }

    .menu {
        display: none;
    }
}

@media(max-width:768px){
    .headline,
    .new{
        padding:30px 0;
    }

    .color{
        padding-bottom: 50px;
    }
    .contacts-form{
        padding: 50px 70px;
    }
}

@media(max-width:640px){

    .footer-inner .logo{
        margin: 15px 0;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        gap: 20px; 
        padding: 20px;
    }
}


@media(max-width:560px){
    .title{
        font-size: 34px;
        line-height: 42px;
    }

    .new-title,
    .color-title,
    .contacts-title{
        font-size:28px;
        line-height: 32px;
    }

    .headline-btn{
        font-size: 16px;
        line-height: 22px;
        padding: 16px 90px;
    }

    .color-item,
    .color-item img{
        width: 100%;
        }

    .contacts-form{
        padding: 30px;
    }
}

@media(max-width:420px){

    .nav{
        flex-wrap: wrap;
    }

    .phone{
        flex-basis: auto;
        margin-top: 50px;
        order: 3;
        width: 100%;
    }

    .menu-item{
        font-size: 32px;
    }
}

@media(max-width:375px){
    .contacts-form{
        padding: 50px 10px;
    }
}
}