
/*=============================ОБЩИЕ СТИЛИ ТОЛЬКО ГЛАВНОЙ СТРАНИЦЫ*/
body{
    background-color: #F8F8F8;
}
.box{
    max-width: 1000px;
    margin: auto;
    width: 100%;
    padding: 0 15px;
}
h1{
    color: #fff;
    font-family: 'unbounded';
    font-weight:500;
}
#hero .hero-p-1{
    font-family: 'unbounded';
    font-weight:300;
    line-height: 22px;
}
h1,
#hero .hero-p-1{
    color:#eceaea;
}
h2{
    text-align: center;
    margin-bottom: 80px;
}
.hero-p-1{
    color: #fff;
}
.header-menu svg line {
    color: #fff;
}
.h67{height:67px; background-color: #000;position: relative; z-index: 1;}
/*=============================HERO*/
#hero{
    background-color: #000;
    margin-top:-10px;
}

.hero-box{
    padding: 70px 0;
    background-image: url('/assets/img/69a95bbd1d21a_black.jpg');
    background-size: cover;
    height: 810px;
    position: relative;
    overflow: hidden;
    width:100%;
    max-width: 1300px; 
    margin: auto;
}
#hero .box{
    width: 1300px;
    height: 100%;
    max-width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 270px;
    color: #fff;
    position: relative;
    z-index: 1;
}
.info-hero{
    display:flex;
    gap: 30px;
    font-size: 18px;
}
/*=============================ABOUT*/
#about{
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about-but{
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
    gap: 30px;
}
.tab-content {
    display: none;
    gap:65px;
}
.tab-list{
    position: relative;
}
.next-tab {
    position: absolute;
    right: 0;
    bottom: -25px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    background-image: url(/assets/img/right-arrow.svg);
    background-size: cover;
    background-color: transparent;
    transition: filter 0.3s ease, transform 0.3s ease;
}
.next-tab:hover {
    filter: invert(46%) sepia(77%) saturate(428%) hue-rotate(177deg) brightness(95%) contrast(92%);
    transform: scaleX(1.1); 
}
.tab-content p{
    margin-top: 10px;
    font-size: 16px;
    line-height: 22px;
}
.tab-content.active {
    display: flex;
}
.tab-btn{
    padding: 10px 45px;
    font-size: 20px;
    font-weight: 500;
    background-color: #f0f0f0;
    position: relative;
    color: #000;
}
.tab-btn.active::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -30px; 
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent; 
    border-top: 20px solid #4187bc; 
}
.tab-btn:hover{
    cursor: pointer;
    background-color: #dddddd;
}
.tab-btn.active {
    color: #fff;
}
/* ── Видео-плеер в блоке «О компании» ── */
    .about-media {
        position: relative;
        width: 363px;
        min-width: 363px;
        height: 204px;
        border-radius: 8px;
        overflow: hidden;
        flex-shrink: 0;
    }
    .about-img--poster,
    .about-video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
        display: block;
    }
    .about-video { opacity: 0; transition: opacity .3s; }
    .about-media.playing .about-img--poster { opacity: 0; }
    .about-media.playing .about-video       { opacity: 1; }
    .about-media.playing .about-play-btn    { opacity: 0; pointer-events: none; }

    /* Кнопка Play — по центру через flex */
    .about-play-btn {
        position: absolute;
        top: 50%; left: 50%;
        transform: translate(-50%, -50%);
        width: 60px; height: 60px;
        background: rgba(255,255,255,.92);
        border: none; border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        cursor: pointer;
        color: #ed7055;
        transition: opacity .3s;
        z-index: 3;
    }
    .about-play-btn svg { margin-left: 3px; }

    /* Анимированные кольца — позиционируем от центра кнопки */
    .about-play-ring {
        position: absolute;
        top: 50%; left: 50%;
        border-radius: 50%;
        border: 2px solid #fff;
        animation: play-ring 2.2s ease-out infinite;
        pointer-events: none;
    }
    .about-play-ring--1 {
        width: 86px; height: 86px;
        margin-top: -43px; margin-left: -43px;
        animation-delay: 0s;
    }
    .about-play-ring--2 {
        width: 112px; height: 112px;
        margin-top: -56px; margin-left: -56px;
        animation-delay: .7s;
    }
    @keyframes play-ring {
        0%   { transform: scale(.75); opacity: .7; }
        100% { transform: scale(1.05); opacity: 0; }
    }
/*=============================PRODUCTS*/
#products{
    height: 1020px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.products-list{
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}
.products a{
    height: 253px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    
}
.products a img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.products{
    background-size: cover;
    overflow: hidden;
}
.products img,
.products button{
    transition: transform 0.5s ease;
}
.products h3{
    transition: letter-spacing 0.5s ease;
}
.products:hover img{
    transform: scale(1.1);
}
.products:hover button{
    transform: scale(1.3);
}
.product-1{
    grid-column: 1/6;
}
.product-2{
    grid-column: 6/13;
}
.product-3{
    grid-column: 1/5;
}
.product-4{
    grid-column: 5/9;
}
.product-5{
    grid-column: 9/13;
}
.product-6{
    grid-column: 1/8;
}
.product-7{
    grid-column: 8/13;
}
.products h3{
    font-size: 20px;
    color: #cbcbcb;
    position: relative;
    z-index:2;
}
.right-arrow-white{
    width: 40px;
    height: 40px;
    display: block;
    background-image: url('/assets/img/right-arrow-cb.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #ffffff00;
    margin-left: auto;
    position: relative;
    z-index:2;
}
/*=============================REVIEWS*/
#reviews{
    height: 722px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.partner-list{
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 40px;
}
.partner-list li{
    grid-column: span 2;
}
.partner-list img{
    max-width:100%;
}
.partner-list .partner-5{
    grid-column: 2/4;
}
.reviews-item {
    min-width: 50%; 
    display: flex;
    gap: 17px;
    box-sizing: border-box;
    padding: 20px;
    align-items: center;
}
.reviews-item>div{
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.reviews-item>div>div{
    font-size: 24px;
}
.reviews-item blockquote p {
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 10px;
    max-width: 255px;
}
.reviews-slider {
    position: relative;
    width: 100%;
    margin-top: 88px;
}
.reviews-viewport {
    overflow: hidden;
}
.reviews-list {
    display: flex;
    transition: transform 0.5s ease;
    padding: 0;
    margin: 0;
    list-style: none;
    cursor: grab;
}
.reviews-list img{
    border-radius: 100%;
}
.reviews-list.dragging {
    cursor: grabbing;
    transition: none;
}
.reviews-item {
    flex: 0 0 50%;
    box-sizing: border-box;
    padding: 20px;
}
.reviews-prev, 
.reviews-next { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    cursor: pointer; 
    width: 28px;
    height: 66px;
    display:block;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #ffffff00;
}
.reviews-prev { 
    left: -40px; 
    background-image: url('/assets/img/slider-arrow-left.svg');
} 
.reviews-next { 
    right: -40px; 
    background-image: url('/assets/img/slider-arrow-right.svg');
}
/*=============================INFO*/
#info{
    display: grid;
    align-items: center;
    min-height: 980px;
}
#info .box{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}
#info .box div{
    display: grid;
    height: 100%;
}
#info h2{
    text-align: left;
}
#info p{
    font-size: 20px;
    line-height: 25px;
    margin-bottom: 20px;
}
#info img{
    width: 100%;
}
.info-img{
    display: block;
    position: relative;
    overflow: hidden;
    margin-top: auto;
}
.info-img .right-arrow-white{
    position: absolute;
    right: 30px;
    top: 20px;
}
.info-img img{
    transition: transform ease 0.4s;
}
.info-img:hover img{
    transform: scale(1.1);
}
.info-img button{
    transition: transform ease 0.2s;
}
.info-img:hover button{
    transform: scaleX(1.3);
}

/*=============================BLOG*/
#blog .blog-list h3{
  font-size:16px;
}
#blog h2{
  text-align:left;
}

/*=============================AGENTS*/
#agents{
    padding: 80px 0;
}
.agents-but{
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
    gap: 30px;
}
.agents-btn{
    padding: 10px 45px;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    color: #000;
}
.agents-btn:hover{
    background-color: #dddddd;
}
.agents-content {
    display: none;
}
.agents-content.active {
    display: block;
}
.region-content {
    display: none;
}
.region-content.active {
    display: block;
}
.region-btn{
    padding: 8px;
    background-color:#f0f0f0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    color: #000;
}
.region-btn:hover{
    background-color: #dddddd;
}
.region-btn.active {
    background: #417cb9;
    color: white;
    font-weight: 700;
}    
.data-work{
    font-size: 16px;
    font-weight: 500;
    text-align: right;
}
.region-list{
    margin-top: 80px;
    display: flex;
    gap:20px;
    justify-content: space-between;
    margin-bottom: 20px;
}
td{
    font-size:16px;
    text-align: center;
    padding: 15px 0;
}
tr:nth-child(odd){
    background-color: #fff;
}
tr:nth-child(even){
    background-color: #F2F2F2;
}
/*=============================FAQ*/
#faq{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 110px;
}
#faq h2{
    font-size: 28px;
    text-align: left;
    height: 160px;
    display: flex;
    align-items: flex-end;
    color: #fff;
    padding: 10px;

    background-image: 
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url(/assets/img/faq-img.jpg);

    background-size: cover;
    background-position: center;
}
details summary {
    display: inline-flex;
    align-items: center;
    gap: 30px; 
    cursor: pointer;
    list-style: none;
    font-size: 24px;
    width: 100%;
}
details summary::-webkit-details-marker {
    display: none;
}
details summary::after {
    content: "";
    width: 18px;
    height: 18px;
    background-image: url('/assets/img/faq-plus.svg');
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.4s ease;
        flex-shrink: 0 
}
details[open] summary::after {
    background-image: url('/assets/img/faq-minus.svg');   
}
details[open] summary{
    align-items: flex-start;
}
details[open] summary::after {
    transform: rotate(180deg);
} 
.faq-answer {
    background-color: #F2F2F2;
    padding: 10px;
    margin-left: 20px;
    margin-top: 10px;

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

details[open] .faq-answer {
    max-height: 500px; /* запас */
    opacity: 1;
}

details{
    padding: 10px;
}
details:not(:last-child){
    border-bottom: 1px solid #b8b8b8;
}
details:hover{
    background-color: #F2F2F2;
}
/* FAQ плавное раскрытие */


#faq details {
    overflow: hidden;
    transition: background-color 0.3s ease;
}

#faq details summary {
    cursor: pointer;
    list-style: none;
}

#faq details summary::-webkit-details-marker {
    display: none;
}

#faq details .faq-answer {
    margin: 0;
    padding-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, opacity 0.35s ease, padding-top 0.35s ease;
}

#faq details[open] .faq-answer {
    max-height: 300px;
    opacity: 1;
    padding-top: 12px;
}