/*OUTSORTING*/
body { 
    font-family: 'Montserrat';
    margin: 0; 
    color: #333; 
} 
.container { 
    max-width: 1280px; 
    margin: 0 auto; 
    /*padding: 20px 20px;*/
    text-align: center;
}

@media (min-width: 992px){
    .container {
        width: 970px;
    }
}

@media (min-width: 1200px){
    .container {
        width: 1170px;
    }
}
@media (min-width: 1400px){
    .container {
        width: 1280px;
    }
}

h1, h3 { 
    color: #A1DB4C;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 40px;
}

h2 { 
    color: #A1DB4C;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 28px;
}
.hero { 
    background: #fff; 
    padding: 40px 20px 40px 20px; 
    text-align: center; 
}
.hero p { 
    max-width: 700px; 
    margin: 20px auto; 
    font-size: 18px; 
}

.pozhbez { 
    background: #F5F5F5; 
    padding: 40px 20px 60px 20px; 
    text-align: left;
}

.pozhbez-txt { 
    display: flex; 
    justify-content: center;
    margin-top: 40px; 
    max-width: 1280px;
    margin: 0 auto;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.pozhbez-left {
     max-width: 30%;
}

.img-rounded {
    border-radius: 5%;
}

.pozhbez-right {
     max-width: 70%;
}

.service { 
    background: #fff; 
    padding: 40px 20px 60px 20px; 
    text-align: center; 

}

.services { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; 
    margin-top: 40px; 
    text-align: left;

}
.card { 
    border: 1px solid #A1DB4C; 
    border-radius: 12px;
    padding: 20px; 
    background: #fff; 
}
.card h3 { 
    margin-top: 0;
    font-weight: 700;
    font-size: 22px;
    text-transform: none;
}

.steps--timeline {
display: flex;
justify-content: space-between;
gap: 20px;
position: relative;
margin-top: 40px;
}

.steps--timeline:before {
content: "";
position: absolute;
top: 25px;
left: 0;
right: 0;
height: 2px;
background: #e0e0e0;
z-index: 0;
}

.step-item {
text-align: center;
position: relative;
z-index: 1;
max-width: 200px;
}

.step-icon {
width: 50px;
height: 50px;
border-radius: 50%;
background: #A1DB4C;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 10px;
font-weight: bold;
}

.form {
    background: #fff; 
    text-align: center; 
    padding: 60px 20px; 
}

.form a { 
    display: inline-block; 
    margin-top: 20px; 
    padding: 12px 24px; 
    background: #fff; 
    color: #1f3c88; 
    text-decoration: none; 
    border-radius: 6px; 
}

.form-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.form-left {
    margin-bottom: 15px;
}

.form-left__title {
    margin-bottom: 15px;
    text-align: left;
}

.form-left__subtitle {
    width: 70%;
    line-height: 130%;
    text-align: left;
}

.form-right{
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    border: 1px solid #A1DB4C;
    background: #F6FFEA;
    padding: 25px;
    width: 100%; /* Адаптивная ширина */
    max-width: 650px; /* Ограничение для больших экранов */
    margin: 0 auto; /* Центрирование формы */
}

.form-inputs{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 10px;
}

.form-inputs input, .form-inputs textarea{
    font-family: 'Montserrat';
    height: 44px;
    background: #FFFFFF;
    border: 1px solid #7B7B7B;
    border-radius: 5px;
    width: 85%;
    margin-bottom: 15px;
    padding: 0px 20px;
    font-weight: 500;
    font-size: 14px;
    line-height: 180%;
    letter-spacing: 0.035em;
    color: black;
    outline: none;
    transition: border 0.4s ease;
}

.form-inputs textarea{
    height: 103px;
    padding: 13px 20px;
    margin-bottom: 0;
}

.input-column{
    width: 100%;
}

/*.input-column:first-child{
    margin-right: 15px;
}*/

.form-button button{
    width: 100%;
    border: none;
    background: #A1DB4C;
    color: white;
    font-weight: 500;
    padding: 13px 26px;
    border-radius: 15px;
    font-size: 16px;
    letter-spacing: 0.035em;
    transition: background 0.4s ease;
    cursor: pointer;
    font-family: 'Montserrat';
}

.form-button button:hover{
    background: #77A03A;
}

input._error{
    border: 1px solid red;
}

input._error::placeholder{
    color: red;
}

/*Footer*/
footer{
    padding: 35px 0px;
    background: #F5F5F5;
}

.footer-top{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 35px;
    border-bottom: 1px solid #77A03A;
}

.footer-logo img{
    height: 46px;
}

.footer-links{
    display: flex;
    align-items: center;
}

.footer-links__item{
    margin-right: 20px;
}

.footer-links__item:last-child{
    margin-right: 0;
}

.footer-links__item a{
    position: relative;
}

.footer-links__item a::after{
    position: absolute;
    display: block;
    content: "";
    width: 100%;
    height: 1px;
    background: #000;
    bottom: -2px;
    left: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.footer-links__item a:hover::after{
    opacity: 1;
}

.footer-bottom{
    padding-top: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

footer a{
    display: flex;
    align-items: center;
    color: #000;
}

.developer a {
    display: flex;
    align-items: center;
}

.developer a span{
    display: block;
    border-radius: 9px;
    border: 1px solid #000;
    margin-left: 12px;
    padding: 6px 37px;
}

.footer-links__item:first-child{
    display: flex;
    align-items: center;
}

.footer-links__item svg{
    margin-right: 5px;
    height: 22px;
    width: 22px;
}

@media screen and (max-width:992px){
    .footer-top{
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-logo{
        margin-bottom: 20px;
    }

    .footer-links{
        flex-direction: column;
        align-items: flex-start;
    }
    

    .footer-links__item{
        margin-right: 0;
        margin-bottom: 20px;
    }

    .footer-links__item:last-child{
        margin-bottom: 0;
    }
}

@media screen and (max-width: 768px){
    footer{
        padding: 25px 0px;
    }

    .footer-bottom{
        flex-direction: column;
        align-items: center;
    }

    .footer-top{
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer-bottom-left{
        margin-bottom: 10px;
    }

    .footer-links{
        align-items: center;
        justify-content: center;
    }

    .footer-logo img{
        height: 35px;
    }
      .pozhbez-left, .pozhbez-right {
      max-width: 100%;
    }
    .pozhbez-left {
      text-align: center; /* Центрировать картинку */
    }
    .steps--timeline {
    	flex-direction: column; /* Элементы друг под другом */
    	align-items: center; /* Выравнивание по центру */
    	gap: 20px;
    	margin-top: 30px;
    	padding-left: 0; /* Убираем отступ для иконки */
    	padding-right: 0;
    	margin-left: auto; /* Центрируем контейнер */
    	margin-right: auto;
    	max-width: calc(100% - 40px); /* Отступы по бокам */
    	box-sizing: border-box;
    	position: relative;
    	width: fit-content; /* Важно для центрирования */
    	left: auto;
    	right: auto;
    	transform: none;
    	margin-left: auto; /* Центрируем */
    	margin-right: auto; /* Центрируем */
    	padding-left: initial; /* Сброс */
    	padding-right: initial; /* Сброс */
    	max-width: none; /* Убираем ограничение, если нужно */
    	margin-left: auto; /* Центрируем */
    	margin-right: auto; /* Центрируем */
    	left: auto; /* Сброс позиционирования */
    	right: auto; /* Сброс позиционирования */
    	transform: none; /* Сброс трансформации */
    }
    .steps--timeline:before {
      display: none;
    }
    
    .step-item {
      max-width: 100%;
      text-align: center;
      margin-bottom: 20px;
    }
    .step-icon {
       margin-left: auto; /* Сброс сдвига иконки влево */
       margin-right: auto; /* Центрируем иконку по умолчанию */
     }
    .form-content {
        flex-direction: column; /* Ставим блоки друг под другом */
        align-items: center; /* Центрируем по горизонтали */
        text-align: center; /* Центрирование текста в левой части */
    }

    .input-column {
        width: 100%; /* Колонки становятся на всю ширину */
        /* margin-bottom: 25px;  Отступ между колонками */
    }
    
    .form-left__title {
        text-align: center;
    }

    .form-left__subtitle {
        width: 100%; /* Текст занимает всю ширину */
        text-align: center; /* Центрирование текста */
    }
    
    .form-inputs {
        flex-wrap: wrap;
    }

    .form-inputs input, .form-inputs textarea {
        /* width: 100%;  Поля ввода на всю ширину блока */
    }
}

.modal-thanks {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    border: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.thanks-content {
    position: relative;
    background: white;
    width: fit-content;
    padding: 30px;
    border-radius: 6px;
    margin: 0 auto;
    z-index: 1000;
}

.thanks-title {
    margin-bottom: 20px;
}

.thanks-title h3 {
    color: #A1DB4C;
    text-align: center;
    font-size: 32px;
    line-height: 36px;
    font-family: 'Inter';
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    text-align: center;
}

.thanks-subtitle {
    text-align: center;
}

.modal-cross {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal-cross svg {
    position: absolute;
    top: 25px;
    right: 25px;
    -webkit-transition: fill 0.4s ease;
    -o-transition: fill 0.4s ease;
    transition: fill 0.4s ease;
}