.section{
    margin-top: 35px;
    overflow-x: hidden;
}

.sectionPage{
    margin-top: 160px;
}

.titlePage h1{
    color: #A19467;
    font-size: 48px;
    font-weight: 100;
}

.titlePage p{
    margin-top: 5px;
    color: #999;
}

.lineContent{
    display: flex;
    width: 100%;
    height: 1px;
    background: #ddd;
    margin-top: 20px;
}

.line{
    width: 150px;
    background: #A19467;
}

.breadcrumbs{
    display: flex;
    margin-top: 18px;
    font-size: 14px;
}

.breadcrumbs a{
    color: #A19467;
}

.breadcrumbs span{
    margin: 0 5px;
    color: #A19467;
}

.breadcrumbs p{
    color: #999;
}

.btnCenterContainer{
    display: flex;
    justify-content: center;
}

.btnBorderWhite{
    display: inline-block;
    border-radius: 80px;
    background: none;
    border: 1px solid #fff;
    font-size: 14px;
    padding: 14px 28px;
    color: #fff;
    font-weight: 500;
    transition: .4s;
}

.btnBorderWhite:hover{
    background: #A19467;
    border: 1px solid #A19467;
    color: #fff;
}

.btnBackground{
    display: inline-block;
    border-radius: 80px;
    background: #A19467;
    border: 1px solid #A19467;
    padding: 14px 28px;
    color: #fff;
    font-weight: 500;
    transition: .4s;
    font-size: 14px;
}

.btnBackground:hover{
    background: none;
    border: 1px solid #A19467;
    color: #A19467;
}

.titleSection{
    display: grid;
    justify-items: center;
    text-align: center;
}

.titleSection h2{
    color: #A19467;
    font-weight: 100;
    font-size: 48px;
}

.titleSection p{
    margin-top: 15px;
    color: #999;
    font-size: 14px;
    width: 100%;
}

/* justifyContentCenter */

.justifyContentCenter{
    display: flex;
    justify-content: center;
}

/* service */

.serviceContainer{
    display: grid;
    justify-items: center;
    grid-template-columns: 1fr 1fr 1fr;
}

.serviceItem{
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #A19467;
    width: 360px;
    height: 360px;
    position: relative;
    transition: .4s;
    margin-top: 40px;
}

.serviceItemImg{
    width: 320px;
    height: 320px;
    transition: .4s;
    position: relative;
}

.serviceItemImgMask{
    background: #00000041;
    width: 100%;
    height: 100%;
    transition: .4s;
    position: absolute;
    left: 0;
    top: 0;
}

.serviceItemImg img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.serviceItem:hover .serviceItemImg{
    width: 100%;
    height: 100%;
}

.serviceItemImgText{
    position: absolute;
    left: 0;
    top: 0;
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: calc(100% - 40px);
    height: 100%;
    padding: 0 20px;
    text-align: center;
}

.serviceItemImgText p{
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    width: 100%;
}

.serviceItemImgText .btnBorderWhite{
    margin-top: 15px;
}

.serviceBtnMore{
    margin-top: 40px;
}

@media(min-width: 320px) and (max-width: 720px){
    
    .sectionPage{
        margin-top: 60px;
    }

    .titlePage h1{
        font-size: 38px;
    }

    .titleSection h2{
        font-size: 32px;
    }
    
    .titleSection p{
        width: 100%;
    }

    /* service */

    .serviceContainer{
        display: grid;
        justify-items: center;
        grid-template-columns: 1fr;
    }

    .serviceItem{
        width: 300px;
        height: 300px;
        margin-top: 30px;
    }
    
    .serviceItemImg{
        width: 260px;
        height: 260px;
    }
    
}

@media(min-width: 720px) and (max-width: 1200px){
    /* service */

    .serviceContainer{
        display: grid;
        justify-items: center;
        grid-template-columns: 1fr 1fr;
    }

    .serviceItem{
        width: 320px;
        height: 320px;
        margin-top: 30px;
    }
    
    .serviceItemImg{
        width: 280px;
        height: 280px;
    }

    .serviceItemImgText{
        position: absolute;
        left: 0;
        top: 0;
        z-index: 99;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
        height: 100%;
        text-align: center;
    }
    
    .serviceItemImgText p{
        color: #fff;
        font-size: 24px;
        font-weight: bold;
        width: 100%;
    }
    
    .serviceItemImgText .btnBorderWhite{
        margin-top: 15px;
    }
    
}

.textComponent p{
    color: #333 !important;
    font-weight: unset;
    margin-top: 10px;
}

.textComponent a{
    color: #7f86bf;
    font-weight: unset;
    font-size: 16px;
    margin-top: 10px;
}

.textComponent h2 {
    margin-top: 10px !important;
    font-size: 26px !important; 
    margin-bottom: 10px !important; 
}

.textComponent h3 {
    margin-top: 10px !important; 
    font-size: 20px !important; 
    margin-bottom: 10px !important;
}
.textComponent p {
    font-size: 14px !important;
    margin-bottom: 10px !important;
}

.textComponent ul, .textComponent ol {
    padding-left: 20px !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

.textComponent ul {
    list-style: disc !important; 
}

.textComponent ul, .textComponent ul li {
    list-style: disc !important; 
    font-size: 14px;
    margin-top: 15px;
}

.textComponent ol {
    list-style: decimal !important;
}

.textComponent ol li {
    margin-bottom: 5px !important; 
}


/* modals */

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.3s ease;
}

.modalContent {
    display: flex;
    justify-content: space-between;
    background-color: #fefefe;
    margin: 15% auto;
    width: 80%;
    max-width: 760px;
    border-radius: 10px;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.modalFormContent{
    width: 60%;
    padding: 20px;

}

.modalContentHeader h2{
    font-size: 20px;
}

.modalContentHeader p{
    font-size: 14px;
    color: #666;
    margin-top: 6px;
}

.modalForm label{
    display: inline-block;
    margin-top: 15px;
    width: 100%;
}

.modalForm label p{
    font-size: 12px;
    color: #999;
}

.modalForm input{
    padding: 14px;
    width: calc(100% - 28px);
    border: 1px solid #ddd;
    font-size: 14px;
    margin-top: 6px;
    border-radius: 5px;
}

.modalForm input:focus{
    border: 1px solid #D9B165;
    color: #D9B165;
}

.modalSubmitContainer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

.modalSubmitContainer p{
    color: #666;
    font-size: 14px;
    margin-left: 15px;
}

.modalSubmitContainer p a{
    text-decoration: underline;
}

.modalSubmitContainer p a:hover{
    text-decoration: none;
}

.modalImage{
    width: 40%;
    position: relative;
}

.modalImageMask{
    position: absolute;
    width: 100%;
    height: 100%;
    background: #00000088;
}

.modalImage img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.close {
    color: #fff;
    font-size: 28px;
    font-weight: unset;
    transition: .4s;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1;
}

.close:hover{
    transform: rotate(135deg);
}

.close:hover,
.close:focus {
    text-decoration: none;
    cursor: pointer;
}


/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media(min-width: 320px) and (max-width: 720px){

    .modalContent {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap-reverse;
        width: 90%;
        max-width: 760px;
        margin-top: 100px;
    }
    
    .modalFormContent{
        display: block;
        width: 100%;
        padding: 20px;
    
    }
    
 
    .modalSubmitContainer{
        flex-wrap: wrap;
    }
    
    .modalSubmitContainer p{
        width: 100%;
        margin: 0;
        margin-top: 10px;
    }
    
    .modalImage{
        width: 100%;
        height: 160px;
        position: relative;
    }
}

/* messageContainer */

/* Стиль для модального окна с статусом */
#statusModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Фон */
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.statusModalContent {
    background-color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    width: 460px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.statusModalIcon {
    display: flex;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 20px;
}

.statusIcon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #28a745; /* Зеленый для успеха */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    text-align: center;
}

.statusIcon.error {
    background-color: #dc3545; /* Красный для ошибки */
}

.statusIcon img{
    width: 40%;
}

.statusModalContent p {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media(min-width: 320px) and (max-width: 550px){
    .statusModalContent{
        width: calc(90% - 20px);
        padding: 40px 10px;
    }
}


.labelCheckbox{
    display: flex !important;
    align-items: center;
    text-align: left;
    margin-top: 15px;
    width: 100%;
}

.labelCheckbox input{
    width: auto !important;
    margin: 0 !important;
}

.labelCheckbox p{
    margin-left: 10px;
    font-size: 14px !important;
    font-weight: unset !important;
    color: #666;
    margin-top: 0 !important;
}

.labelCheckbox p a{
    color: #D9B165
}


.textComponent {
  margin: 0 auto;
  padding: 0 20px;
  color: #2f2f2f;
  background-color: #fff;
  border-left: 4px solid #A19467;
  box-sizing: border-box;
  line-height: 1.6;
}

.textComponent p {
  font-size: 17px;
  margin-bottom: 16px;
}

.textComponent ol {
  margin: 20px 0 30px 20px;
  padding-left: 0;
  list-style-position: inside;
  color: #444444;
}

.textComponent ol li {
  margin-bottom: 10px;
  font-weight: 600;
  color: #5c533f;
}

/* Акцент на цифры списка, цвет фирменный */
.textComponent ol li::marker {
  color: #A19467;
  font-weight: 700;
  font-size: 18px;
}

/* Ссылки внутри текста (если будут) */
.textComponent a {
  color: #A19467;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.textComponent a:hover {
  border-color: #A19467;
}

/* Первый абзац — чуть выделим */
.textComponent p:first-of-type {
  font-weight: 600;
  color: #4f4734;
  margin-bottom: 24px;
}

/* Последний абзац — тонкий курсив */
.textComponent p:last-of-type {
  font-style: italic;
  color: #7a7052;
  margin-top: 24px;
}

/* Адаптив */
@media (max-width: 600px) {
  .textComponent {
    padding: 20px 15px;
  }
  .textComponent p,
  .textComponent ol li {
    font-size: 16px;
  }
}

/* faq */

.faq-section {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 25px;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #333;
}

.faq-question {
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
    border-bottom: 1px solid #A19467;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    font-size: 16px;
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    color: #575757;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 20px;
}

@media (max-width: 768px) {
    .faq-container {
        grid-template-columns: 1fr;
    }
}